:root {
    --bg: #0b0f19;
    --card: #121a2b;
    --text: #e9eefc;
    --muted: #aab6d6;
    --line: #223053;
    --btn: #2a6cff;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
    background: linear-gradient(180deg, #070a12, #0b0f19);
    color: var(--text)
}

a {
    color: #bcd3ff;
    text-decoration: none
}

header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 25, .75);
    border-bottom: 1px solid rgba(34, 48, 83, .6);
    z-index: 10
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center
}

.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--btn);
    box-shadow: 0 0 22px rgba(42, 108, 255, .8)
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px
}

.nav a {
    padding: 8px 10px;
    border: 1px solid rgba(34, 48, 83, .7);
    border-radius: 12px;
    background: rgba(18, 26, 43, .6)
}

h1,
h2 {
    margin: 12px 0
}

.card {
    background: rgba(18, 26, 43, .75);
    border: 1px solid rgba(34, 48, 83, .7);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25)
}

.grid {
    display: grid;
    gap: 12px
}

.grid.cols2 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media (max-width:740px) {
    .grid.cols2 {
        grid-template-columns: 1fr
    }

    .wrap {
        padding: 12px
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(34, 48, 83, .8);
    background: rgba(18, 26, 43, .65);
    color: var(--text);
    cursor: pointer
}

.btn.primary {
    background: var(--btn);
    border-color: rgba(42, 108, 255, .8)
}

.muted {
    color: var(--muted);
    font-size: .92rem
}

.list {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(34, 48, 83, .7);
    border-radius: 14px;
    background: rgba(10, 14, 25, .35)
}

.badge {
    font-size: .78rem;
    padding: 4px 8px;
    border-radius: 99px;
    border: 1px solid rgba(34, 48, 83, .8);
    color: var(--muted)
}

.gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr))
}

@media (max-width:980px) {
    .gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

@media (max-width:740px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media (max-width:420px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

.thumb {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 14px;
    border: 1px solid rgba(34, 48, 83, .7);
    object-fit: cover;
    background: rgba(10, 14, 25, .35)
}

.drop {
    border: 2px dashed rgba(42, 108, 255, .55);
    border-radius: 18px;
    padding: 14px;
    text-align: center;
    background: rgba(18, 26, 43, .45)
}

.drop.drag {
    border-color: rgba(42, 108, 255, .95);
    box-shadow: 0 0 0 6px rgba(42, 108, 255, .12)
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(34, 48, 83, .5);
    overflow: hidden
}

.progress>div {
    height: 100%;
    width: 0;
    background: var(--btn)
}

.toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(34, 48, 83, .7);
    background: rgba(18, 26, 43, .92);
    display: none
}

.toast.show {
    display: block
}