html {
    color-scheme: dark;
}

:root {
    --bg-top: #121a31;
    --bg-mid: #0a1324;
    --bg-deep: #050a14;
    --panel: rgba(24, 34, 61, 0.42);
    --panel-strong: rgba(20, 33, 58, 0.68);
    --line: rgba(93, 160, 255, 0.18);
    --line-strong: rgba(82, 145, 245, 0.56);
    --text-main: #eef4ff;
    --text-soft: rgba(222, 232, 248, 0.66);
    --text-faint: rgba(222, 232, 248, 0.42);
    --accent: #4b96ff;
    --accent-soft: rgba(75, 150, 255, 0.16);
    --warm: #d8ab72;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 50% 44%, rgba(78, 132, 204, 0.2), transparent 26%),
        radial-gradient(circle at 78% 88%, rgba(78, 112, 196, 0.16), transparent 22%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-deep) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px),
        radial-gradient(circle at 30% 48%, rgba(255, 231, 167, 0.85) 0 1px, transparent 1.7px),
        radial-gradient(circle at 46% 40%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.7px),
        radial-gradient(circle at 64% 58%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px),
        radial-gradient(circle at 82% 36%, rgba(255, 244, 195, 0.84) 0 1px, transparent 1.7px),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.68) 0 1px, transparent 1.8px);
    opacity: 0.72;
    pointer-events: none;
    z-index: -4;
}

.starfield,
.scene-glow,
.planet {
    position: fixed;
    pointer-events: none;
}

.starfield {
    inset: 0;
    background:
        radial-gradient(circle at 10% 72%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.7px),
        radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.8px),
        radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.8px),
        radial-gradient(circle at 76% 52%, rgba(255, 230, 170, 0.78) 0 1px, transparent 1.8px),
        radial-gradient(circle at 94% 88%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px);
    opacity: 0.55;
    z-index: -3;
}

.scene-glow {
    z-index: -2;
    border-radius: 50%;
}

.scene-glow-left {
    top: 180px;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(78, 142, 225, 0.32), rgba(78, 142, 225, 0.1) 54%, transparent 70%);
}

.scene-glow-right {
    right: 40px;
    bottom: 120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(55, 97, 192, 0.22), transparent 72%);
}

.planet {
    right: -120px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    z-index: -2;
    border-radius: 50%;
    background:
        radial-gradient(circle at 44% 34%, rgba(81, 106, 168, 0.78), rgba(18, 30, 55, 0.9) 38%, rgba(8, 13, 23, 1) 72%),
        linear-gradient(180deg, rgba(16, 24, 40, 0.2), rgba(211, 160, 85, 0.14));
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.58), 0 0 0 2px rgba(97, 174, 255, 0.14);
}

.sidebar {
    position: fixed;
    top: 112px;
    left: 18px;
    z-index: 20;
    width: 54px;
    padding: 10px 8px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(14, 22, 38, 0.42);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.menu-toggle {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-links {
    display: none;
    margin-top: 14px;
    flex-direction: column;
    gap: 10px;
}

.nav-pill {
    display: block;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.nav-pill.is-active {
    border-color: rgba(85, 154, 255, 0.24);
    background: var(--accent-soft);
    color: var(--text-main);
}

.sidebar.is-open {
    width: 170px;
}

.sidebar.is-open .nav-links {
    display: flex;
}

.screen {
    width: min(1540px, calc(100vw - 48px));
    margin: 22px auto 0;
    padding-bottom: 28px;
}

.gate-screen {
    width: min(1080px, calc(100vw - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 0 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.gate-topbar {
    margin-bottom: 0;
}

.gate-panel {
    margin: auto 0;
    padding: 42px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(26, 37, 63, 0.42), rgba(13, 22, 39, 0.26));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    text-align: center;
}

.gate-eyebrow,
.gate-title,
.gate-copy,
.gate-button {
    margin: 0;
}

.gate-eyebrow {
    color: var(--warm);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gate-title {
    margin-top: 14px;
    font-size: clamp(44px, 8vw, 76px);
    font-weight: 200;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gate-copy {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.6;
}

.gate-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.gate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gate-button-primary {
    background: linear-gradient(180deg, rgba(78, 133, 221, 0.9), rgba(49, 95, 184, 0.9));
    color: #f8fbff;
    box-shadow: 0 16px 42px rgba(47, 96, 188, 0.3);
}

.gate-button-secondary {
    border: 1px solid var(--line);
    background: rgba(22, 33, 56, 0.58);
    color: var(--text-main);
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.brand-lockup {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.brand-mark,
.meta-mark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #ffd15a, #fd8652, #ed4f8d, #8961ff, #41c6ff, #62e183, #ffd15a);
    color: #081220;
    font-size: 11px;
    box-shadow: 0 0 22px rgba(75, 150, 255, 0.2);
}

.brand-name,
.brand-tagline,
.wordmark,
.hero-subtitle,
.status,
.gallery-label,
.gallery-hint,
.footer-link {
    margin: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
}

.brand-tagline {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 13px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-panels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.pill-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(22, 33, 56, 0.58);
    color: var(--text-soft);
    font-size: 12px;
    padding: 6px 12px;
    cursor: pointer;
}

.btc-pill-button {
    border-color: rgba(216, 171, 114, 0.34);
    color: var(--warm);
    background: rgba(34, 28, 20, 0.58);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.key-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(22, 33, 56, 0.58);
    color: var(--text-soft);
    font-size: 12px;
}

.key-beta {
    color: var(--warm);
}

.key-state {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.help-pill {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(216, 171, 114, 0.34);
    border-radius: 50%;
    background: rgba(22, 33, 56, 0.58);
    color: var(--warm);
    font-size: 13px;
    cursor: pointer;
}

.info-card {
    max-width: 360px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(20, 31, 53, 0.78);
    box-shadow: var(--shadow);
}

.info-card-label,
.info-card-body {
    margin: 0;
}

.info-card-label {
    color: var(--warm);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.info-card-body {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.hero-stage {
    margin-top: 210px;
}

.hero-frame {
    position: relative;
    min-height: 410px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(26, 37, 63, 0.32), rgba(13, 22, 39, 0.2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 34px;
    border-radius: 26px;
    border: 2px solid rgba(74, 123, 226, 0.68);
    box-shadow: 0 0 32px rgba(75, 150, 255, 0.12), inset 0 0 32px rgba(75, 150, 255, 0.04);
}

.hero-star {
    position: absolute;
    z-index: 1;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
}

.hero-star-1 {
    top: 110px;
    left: 86px;
}

.hero-star-2 {
    top: 138px;
    left: 156px;
}

.hero-star-3 {
    top: 128px;
    right: 142px;
}

.hero-star-4 {
    top: 170px;
    right: 96px;
}

.hero-enter-ring,
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-enter-ring {
    position: absolute;
    left: 62px;
    top: 118px;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 7px solid rgba(78, 133, 221, 0.78);
    box-shadow: inset 0 0 18px rgba(75, 150, 255, 0.16), 0 0 20px rgba(75, 150, 255, 0.18);
}

.hero-enter {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(20, 26, 42, 0.92);
    color: var(--text-main);
    font-size: 11px;
    cursor: pointer;
}

.hero-content {
    width: min(460px, calc(100% - 220px));
    margin: 56px auto 0;
    text-align: center;
}

.wordmark {
    font-size: clamp(44px, 6vw, 62px);
    font-weight: 200;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(208, 229, 255, 0.92);
    text-shadow: 0 0 20px rgba(75, 150, 255, 0.14);
}

.hero-subtitle {
    margin-top: 6px;
    color: rgba(208, 221, 245, 0.56);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.search-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(280px, 100%);
    margin: 16px auto 0;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: rgba(37, 42, 67, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.bubble-row {
    width: min(320px, 100%);
    margin: 18px auto 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.bubble-track {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    animation: bubble-scroll 22s linear infinite;
}

.bubble-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(82, 145, 245, 0.24);
    background: rgba(24, 38, 65, 0.68);
    color: rgba(222, 232, 248, 0.68);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-input {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 12px;
    outline: none;
}

.search-warning {
    position: absolute;
    left: 12px;
    right: 38px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(222, 232, 248, 0.54);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.84;
    transition: opacity 0.2s ease;
}

.search-row:focus-within .search-warning,
.search-row.has-value .search-warning {
    opacity: 0;
}

.search-go {
    position: relative;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

@keyframes bubble-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 53, 78, 0.86);
    color: rgba(235, 242, 255, 0.74);
    font-size: 12px;
}

.meta-privacy .meta-mark {
    width: 14px;
    height: 14px;
    font-size: 7px;
}

.status {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 12px;
}

.gallery-shell {
    margin-top: 42px;
}

.albums-page-shell {
    margin-top: 120px;
}

.albums-status {
    margin-top: 18px;
    text-align: center;
}

.gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.gallery-label {
    color: rgba(237, 244, 255, 0.88);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-hint {
    color: var(--text-soft);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 56%, rgba(4, 7, 15, 0.34));
    pointer-events: none;
}

.card:hover {
    transform: translateY(-6px) scale(1.014);
    border-color: rgba(92, 159, 255, 0.34);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.card img,
.card video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.empty {
    grid-column: 1 / -1;
    padding: 44px 0;
    text-align: center;
    color: var(--text-soft);
}

.sentinel {
    height: 1px;
}

.footer-link {
    margin-top: 76px;
    font-size: 13px;
    text-align: center;
}

.footer-anchor {
    color: var(--accent);
    text-decoration: none;
}

.footer-anchor:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .screen {
        width: calc(100vw - 24px);
        margin-top: 14px;
    }

    .gate-screen {
        width: calc(100vw - 24px);
        padding-top: 14px;
    }

    .sidebar {
        top: 90px;
        left: 10px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-panels {
        justify-content: flex-start;
    }

    .hero-stage {
        margin-top: 120px;
    }

    .gate-panel {
        padding: 28px 22px;
    }

    .hero-frame {
        min-height: 360px;
        padding: 22px;
    }

    .hero-frame::before {
        inset: 22px;
    }

    .hero-enter-ring {
        left: 38px;
        top: 112px;
        width: 68px;
        height: 68px;
    }

    .hero-enter {
        width: 46px;
        height: 46px;
    }

    .hero-content {
        width: min(360px, calc(100% - 140px));
        margin-top: 64px;
    }
}

@media (max-width: 640px) {
    .planet {
        width: 280px;
        height: 280px;
        right: -100px;
        bottom: -80px;
    }

    .scene-glow-left {
        top: 220px;
        width: 340px;
        height: 340px;
    }

    .sidebar {
        width: 46px;
        padding: 8px 6px;
    }

    .sidebar.is-open {
        width: 150px;
    }

    .screen {
        width: calc(100vw - 12px);
    }

    .gate-screen {
        width: calc(100vw - 12px);
    }

    .hero-stage {
        margin-top: 92px;
    }

    .hero-frame {
        min-height: 320px;
        padding: 18px;
        border-radius: 28px;
    }

    .hero-frame::before {
        inset: 12px;
        border-radius: 22px;
    }

    .hero-enter-ring {
        position: relative;
        left: auto;
        top: auto;
        margin: 26px auto 10px;
    }

    .hero-content {
        width: 100%;
        margin-top: 10px;
    }

    .wordmark {
        font-size: 36px;
    }

    .gate-title {
        font-size: 34px;
    }

    .gate-copy {
        font-size: 14px;
    }

    .gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 10px;
    }
}
