:root {
    --bg: #070713;
    --bg-2: #0d1026;
    --panel: rgba(13, 16, 38, .72);
    --panel-strong: rgba(7, 7, 19, .88);
    --line: rgba(255, 255, 255, .16);
    --line-strong: rgba(255, 255, 255, .28);
    --text: #f7f8ff;
    --muted: #b5b8da;
    --soft: #7f86c5;
    --cyan: #00f0ff;
    --purple: #8a5cff;
    --pink: #ff2bd6;
    --orange: #ff9d42;
    --green: #51ffb8;
    --shadow: 0 26px 80px rgba(0, 0, 0, .44);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --nav-height: 82px;
    --page-width: 1320px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: -.01em;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
    animation: gridFloat 24s linear infinite;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }

.skip-link {
    position: fixed;
    left: 18px;
    top: 16px;
    z-index: 999;
    transform: translateY(-180%);
    background: #fff;
    color: #050510;
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.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;
}

.cosmos-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(0, 240, 255, .18), transparent 28%),
        radial-gradient(circle at 78% 24%, rgba(255, 43, 214, .17), transparent 31%),
        radial-gradient(circle at 50% 82%, rgba(138, 92, 255, .22), transparent 34%),
        linear-gradient(145deg, #050510 0%, #0a0b1e 42%, #11091f 100%);
}
#space-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}
.nebula {
    position: absolute;
    width: 42vmax;
    height: 42vmax;
    border-radius: 999px;
    filter: blur(42px);
    mix-blend-mode: screen;
    opacity: .35;
    animation: nebulaDrift 18s ease-in-out infinite alternate;
}
.nebula-a { left: -12vmax; top: 10vh; background: radial-gradient(circle, rgba(0,240,255,.55), transparent 65%); }
.nebula-b { right: -10vmax; top: -8vmax; background: radial-gradient(circle, rgba(255,43,214,.55), transparent 65%); animation-duration: 22s; }
.nebula-c { left: 32vw; bottom: -22vmax; background: radial-gradient(circle, rgba(138,92,255,.7), transparent 68%); animation-duration: 26s; }
.vector-grid {
    position: absolute;
    inset: -20%;
    background: conic-gradient(from 90deg at 50% 50%, transparent 0 18deg, rgba(255,255,255,.035) 20deg, transparent 22deg 42deg, rgba(0,240,255,.04) 44deg, transparent 46deg);
    opacity: .42;
    animation: slowRotate 70s linear infinite;
}
.constellation-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .38;
}
.constellation-lines path {
    fill: none;
    stroke: rgba(255,255,255,.22);
    stroke-width: 1;
    stroke-dasharray: 10 16;
    animation: dash 18s linear infinite;
}
.cursor-glow {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,.15), rgba(255,43,214,.08) 42%, transparent 70%);
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    opacity: .75;
    mix-blend-mode: screen;
}

.site-nav {
    position: fixed;
    z-index: 20;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--page-width), calc(100% - 48px));
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(7, 7, 19, .54);
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.site-nav.nav-scrolled {
    background: rgba(7, 7, 19, .82);
    border-color: rgba(255,255,255,.28);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.08rem;
}
.brand img { filter: drop-shadow(0 0 22px rgba(0,240,255,.42)); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    text-decoration: none;
    color: var(--muted);
    padding: 12px 15px;
    border-radius: 999px;
    font-weight: 750;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateY(-1px); }
.nav-links .nav-pill {
    color: #070713;
    background: linear-gradient(135deg, #fff, #a5faff 46%, #ffc0f3);
    box-shadow: 0 10px 28px rgba(0,240,255,.18);
}
/* Menu layout: main sections dead-centre in the bar, account actions right.
   .nav-center is absolutely centred against .site-nav (the fixed bar), so the
   brand width can't push it off-centre. */
.nav-links { flex: 1; justify-content: flex-end; }
.nav-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-auth { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }

main, .site-footer { position: relative; z-index: 3; }
.section-pad {
    width: min(var(--page-width), calc(100% - 48px));
    margin-inline: auto;
    padding: clamp(82px, 9vw, 136px) 0;
}
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    padding-top: 156px;
}
.kicker {
    margin: 0 0 16px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 900;
    font-size: .78rem;
}
.hero-title {
    margin: -4px 0 18px;
    font-size: clamp(3.2rem, 9vw, 7rem);
    line-height: .88;
    letter-spacing: -.05em;
    font-weight: 900;
    background: linear-gradient(100deg, #ffffff 0%, #d4e6ff 36%, #a7c0e6 68%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 42px rgba(180, 210, 255, .16);
}
.hero-lead,
.section-heading p,
.community-copy p,
.manifesto p,
.content-shell p,
.auth-intro p,
.dashboard-hero p,
.portal-card p,
.sound-card p,
.timeline-item p {
    color: var(--muted);
    line-height: 1.75;
}
.hero-lead {
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    max-width: 760px;
    margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 26px;
    border: 1px solid var(--line);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.02em;
    cursor: pointer;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.48), transparent);
    transform: translateX(-120%);
    transition: transform .55s ease;
}
.btn:hover::before { transform: translateX(120%); }
.btn-primary {
    color: #050510;
    background: linear-gradient(135deg, #ffffff 0%, #82f8ff 42%, #ff9cf0 100%);
    box-shadow: 0 18px 50px rgba(0,240,255,.18), 0 10px 40px rgba(255,43,214,.12);
}
.btn-secondary {
    color: #fff;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.signal-strip {
    margin-top: 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.signal-strip span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #dfe3ff;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    font-size: .92rem;
}

.hero-visual { min-height: 600px; display: grid; place-items: center; perspective: 1200px; }
.orbit-shell {
    position: relative;
    width: min(560px, 92vw);
    aspect-ratio: 1;
    transform-style: preserve-3d;
    animation: heroFloat 7s ease-in-out infinite;
}
.orbit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotateX(60deg) rotateZ(-18deg);
    filter: drop-shadow(0 0 22px rgba(0,240,255,.22));
}
.orbit-svg circle, .orbit-svg path {
    fill: none;
    stroke: rgba(255,255,255,.28);
    stroke-width: 1.4;
    stroke-dasharray: 9 15;
    animation: dash 16s linear infinite;
}
.vinyl-orb {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow:
        0 40px 120px rgba(0,0,0,.55),
        0 0 70px rgba(0,240,255,.2),
        inset 0 0 60px rgba(255,255,255,.1);
    transform: translateZ(90px) rotate(-4deg);
}
.vinyl-orb::before {
    content: "";
    position: absolute;
    inset: -2%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(255,255,255,.12) 0 1px, transparent 1px 8px), radial-gradient(circle, transparent 0 20%, rgba(7,7,19,.7) 46%, rgba(7,7,19,.96) 100%);
    mix-blend-mode: screen;
    opacity: .7;
    z-index: 2;
}
.vinyl-orb::after {
    content: "";
    position: absolute;
    width: 24%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 10%, var(--cyan) 11% 32%, #070713 33% 100%);
    z-index: 3;
    box-shadow: 0 0 44px rgba(0,240,255,.45);
}
.vinyl-orb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.24) contrast(1.06); }
.groove { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; z-index: 4; }
.groove-one { inset: 9%; }
.groove-two { inset: 19%; }
.groove-three { inset: 31%; }
.satellite {
    position: absolute;
    z-index: 6;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(7,7,19,.68);
    backdrop-filter: blur(12px);
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 900;
    font-size: .72rem;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.sat-a { left: 2%; top: 22%; animation: satelliteA 9s ease-in-out infinite; }
.sat-b { right: 0; top: 60%; animation: satelliteB 10s ease-in-out infinite; }
.sat-c { left: 42%; bottom: 1%; animation: satelliteC 8s ease-in-out infinite; }

.section-heading {
    max-width: 780px;
    margin-bottom: 38px;
}
.section-heading h2,
.community-copy h2,
.manifesto h2,
.auth-intro h1,
.dashboard-hero h1,
.content-shell h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    line-height: .92;
    letter-spacing: -.08em;
}
.section-heading p { font-size: 1.1rem; max-width: 690px; }
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.platform-card {
    position: relative;
    min-height: 154px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045));
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}
.platform-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .62;
    background: radial-gradient(circle at 20% 0%, var(--card-color, rgba(0,240,255,.35)), transparent 44%);
    transition: transform .4s ease, opacity .4s ease;
}
.platform-card:hover::before { transform: scale(1.2); opacity: .9; }
.platform-card > * { position: relative; z-index: 1; }
.platform-icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.94);
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 14px 32px rgba(0,0,0,.24);
}
.platform-icon img { max-height: 42px; object-fit: contain; }
.platform-card strong { display: block; font-size: 1.25rem; letter-spacing: -.04em; }
.platform-card em { display: block; margin-top: 5px; color: var(--muted); font-style: normal; }
.platform-card i { margin-left: auto; color: rgba(255,255,255,.62); font-style: normal; }
.platform-spotify { --card-color: rgba(29, 185, 84, .52); }
.platform-youtube { --card-color: rgba(255, 0, 64, .50); }
.platform-apple { --card-color: rgba(250, 250, 250, .28); }
.platform-instagram { --card-color: rgba(255, 43, 214, .48); }
.platform-discord { --card-color: rgba(88, 101, 242, .55); }
.platform-email { --card-color: rgba(255, 157, 66, .46); }

.split-section {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.sticky-heading { position: sticky; top: 132px; }
.sound-stack { display: grid; gap: 18px; }
.sound-card,
.portal-card,
.account-card,
.auth-card,
.content-shell,
.manifesto article,
.release-timeline {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
    backdrop-filter: blur(22px) saturate(130%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.sound-card {
    min-height: 230px;
    padding: clamp(24px, 4vw, 44px);
    position: relative;
    overflow: hidden;
}
.sound-card::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -30%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,.18), transparent 68%);
}
.sound-card span,
.portal-card span,
.timeline-item > span,
.account-card span {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .75rem;
}
.sound-card h3,
.portal-card h2,
.timeline-item h3 {
    margin: 14px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.community-panel {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .8fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}
.community-copy h2 { margin-bottom: 20px; }
.release-timeline { padding: 22px; display: grid; gap: 12px; }
.timeline-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}
.timeline-item h3 { font-size: 1.45rem; margin: 0 0 4px; }
.timeline-item p { margin: 0; }

.manifesto article,
.content-shell {
    padding: clamp(26px, 5vw, 58px);
    max-width: 980px;
}
.manifesto h2 { margin-bottom: 22px; }
.manifesto p,
.content-shell p { font-size: 1.08rem; }
.content-shell h2 { margin-top: 34px; font-size: 2rem; letter-spacing: -.05em; }
.content-shell a { color: var(--cyan); }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
    align-items: center;
    gap: clamp(28px, 6vw, 80px);
    padding-top: 154px;
}
.auth-intro h1 { margin-bottom: 20px; }
.auth-card {
    padding: clamp(22px, 4vw, 36px);
    display: grid;
    gap: 18px;
}
.auth-card label { display: grid; gap: 8px; }
.auth-card label span {
    color: #dfe3ff;
    font-weight: 800;
    font-size: .92rem;
}
.auth-card input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 16px 18px;
    color: #fff;
    background: rgba(2,4,14,.58);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-card input:focus {
    border-color: rgba(0,240,255,.78);
    box-shadow: 0 0 0 4px rgba(0,240,255,.12);
    background: rgba(2,4,14,.82);
}
.honeypot { display: none !important; }
.form-alert {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.16);
}
.form-alert p { margin: 0; color: #fff; }
.form-alert p + p { margin-top: 6px; }
.form-alert-error { background: rgba(255, 43, 92, .13); border-color: rgba(255, 43, 92, .32); }
.form-footnote { color: var(--muted); margin: 2px 0 0; }
.form-footnote a { color: var(--cyan); font-weight: 800; }
.flash {
    position: fixed;
    z-index: 50;
    top: 116px;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, calc(100% - 32px));
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(7,7,19,.88);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.flash-success { border-color: rgba(81,255,184,.35); }
.flash-error { border-color: rgba(255,43,92,.38); }
.status-card { max-width: 680px; }
.status-card h1 { margin: 0 0 14px; font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -.07em; }

/* .dashboard-hero geometry lives in the "Final template alignment fix" block
   near the end of the file — it is the LAST equal-specificity rule, so any
   layout declared here would silently lose the cascade (.page-hero later in
   this file overrides columns/gap too). Don't re-add geometry here. */
.account-card strong { display: block; word-break: break-word; }
.account-card em { color: var(--muted); font-style: normal; }
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 0;
}
.portal-card { padding: 36px; min-height: 280px; }

.site-footer {
    width: min(var(--page-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 38px 0 54px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,.12);
}
.site-footer strong { display: block; color: #fff; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #fff; }

[data-reveal] {
    opacity: 0;
    transform: translateY(24px) scale(.98);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

@keyframes nebulaDrift {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(8vw, -4vh, 0) scale(1.12); }
}
@keyframes slowRotate { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -420; } }
@keyframes gridFloat { to { background-position: 42px 42px; } }
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-18px) rotateX(3deg) rotateY(-4deg); }
}
@keyframes satelliteA { 50% { transform: translate3d(24px, -24px, 40px); } }
@keyframes satelliteB { 50% { transform: translate3d(-18px, 28px, 60px); } }
@keyframes satelliteC { 50% { transform: translate3d(16px, 22px, 30px); } }

@media (max-width: 980px) {
    .site-nav { height: auto; min-height: 68px; align-items: flex-start; border-radius: 28px; flex-wrap: wrap; }
    .nav-toggle {
        display: inline-grid;
        gap: 6px;
        place-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255,255,255,.16);
        background: rgba(255,255,255,.06);
        border-radius: 14px;
        color: #fff;
    }
    .nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 99px; }
    .nav-links {
        display: none;
        width: 100%;
        padding-top: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav.nav-open .nav-links { display: flex; }
    .nav-center,
    .nav-auth {
        position: static;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .hero, .split-section, .community-panel, .auth-shell, .dashboard-hero { grid-template-columns: 1fr; }
    .hero { padding-top: 132px; }
    .hero-visual { min-height: 430px; }
    .platform-grid, .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .sticky-heading { position: static; }
}
@media (max-width: 660px) {
    .section-pad { width: min(100% - 24px, 1180px); }
    .platform-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .hero-actions { align-items: stretch; }
    .btn { width: 100%; }
    .platform-card { min-height: 128px; padding: 18px; }
    .platform-icon { width: 64px; height: 64px; }
    .site-footer { flex-direction: column; }
    .hero-title { font-size: clamp(2.6rem, 14vw, 3.8rem); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
    .cursor-glow { display: none; }
}


.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -18px -18px 34px rgba(0,0,0,.34), 0 0 60px rgba(255,255,255,.08);
    opacity: .9;
    filter: saturate(1.2);
}
.planet::before {
    content: "";
    position: absolute;
    inset: 8% 10% auto auto;
    width: 26%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.65), rgba(255,255,255,0) 70%);
    filter: blur(2px);
}
.planet-a {
    width: 170px; height: 170px; left: 6vw; top: 14vh;
    background: radial-gradient(circle at 30% 28%, #fff1b0 0, #ffb95a 28%, #7f2eff 70%, #241a52 100%);
    animation: planetFloatA 18s ease-in-out infinite;
}
.planet-b {
    width: 96px; height: 96px; right: 8vw; top: 20vh;
    background: radial-gradient(circle at 35% 30%, #d8ffff 0, #7cf7ff 30%, #3a72ff 65%, #101a50 100%);
    animation: planetFloatB 15s ease-in-out infinite;
}
.planet-c {
    width: 240px; height: 240px; right: -40px; bottom: 10vh;
    background: radial-gradient(circle at 30% 28%, #ffd9ff 0, #f773ff 28%, #6d43ff 65%, #18143e 100%);
    animation: planetFloatC 22s ease-in-out infinite;
}
.planet-d {
    width: 64px; height: 64px; left: 42vw; bottom: 16vh;
    background: radial-gradient(circle at 30% 28%, #f4ffcf 0, #62ffc6 35%, #0086ff 80%, #091538 100%);
    animation: planetFloatD 14s ease-in-out infinite;
}
.planet.ringed::after {
    content: "";
    position: absolute;
    left: -12%; right: -12%; top: 44%; height: 18%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.55);
    transform: rotate(-18deg);
    box-shadow: 0 0 24px rgba(255,255,255,.18);
}
.hero-copy { position: relative; }
.hero-copy::after {
    content: "";
    position: absolute;
    left: -50px; top: 80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,43,214,.12), transparent 68%);
    filter: blur(16px);
    pointer-events: none;
}
.hero-visual::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,240,255,.12), rgba(138,92,255,.09) 45%, transparent 70%);
    filter: blur(24px);
    z-index: -1;
}
.satellite {
    box-shadow: 0 8px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12);
}
@keyframes planetFloatA {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    50% { transform: translate3d(24px,-14px,0) rotate(14deg); }
}
@keyframes planetFloatB {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-12px,18px,0) scale(1.06); }
}
@keyframes planetFloatC {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    50% { transform: translate3d(-24px,-20px,0) rotate(-10deg); }
}
@keyframes planetFloatD {
    0%,100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(18px,-10px,0); }
}
@media (max-width: 980px) {
    .planet-a { width: 120px; height: 120px; }
    .planet-b { width: 74px; height: 74px; }
    .planet-c { width: 160px; height: 160px; }
    .planet-d { display: none; }
}
@media (max-width: 660px) {
    .planet-a { left: -20px; top: 16vh; }
    .planet-b { right: 2vw; top: 12vh; }
    .planet-c { right: -50px; bottom: 18vh; }
}


/* Home store CTA + shared helpers */
.monetise-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    padding-top: clamp(82px, 9vw, 136px);
}
.store-note,
.empty-panel,
.download-card {
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
    backdrop-filter: blur(22px) saturate(130%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.store-note,
.empty-panel {
    padding: clamp(24px, 4vw, 38px);
}
.store-note span,
.download-card span,
.product-tag {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .76rem;
}
.store-note strong {
    display: block;
    margin: 12px 0 8px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1;
    letter-spacing: -.06em;
}
.store-note p,
.download-card p,
.post-body {
    color: var(--muted);
    line-height: 1.7;
}
.download-list {
    display: grid;
    gap: 18px;
}
.portal-link { display: block; color: inherit; text-decoration: none; }
.post-body { white-space: normal; word-break: break-word; }
code {
    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 2px 6px;
}
@media (max-width: 980px) {
    .monetise-panel { grid-template-columns: 1fr; }
}


/* Production community/store/forum polish + universe upgrade */
.cosmos-background::before,
.cosmos-background::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    mix-blend-mode: screen;
}
.cosmos-background::before {
    background:
        radial-gradient(ellipse at 28% 34%, rgba(0, 240, 255, .18), transparent 28%),
        radial-gradient(ellipse at 72% 64%, rgba(255, 43, 214, .16), transparent 30%),
        radial-gradient(ellipse at 52% 46%, rgba(255, 255, 255, .045), transparent 18%);
    filter: blur(18px);
    animation: universePulse 16s ease-in-out infinite;
}
.cosmos-background::after {
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(0,240,255,.07) 46deg, transparent 90deg, rgba(255,43,214,.07) 150deg, transparent 230deg, rgba(255,157,66,.05) 302deg, transparent 360deg);
    animation: slowRotate 140s linear infinite reverse;
    opacity: .48;
}
.stellar-dust {
    position: absolute;
    inset: -10%;
    opacity: .5;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.22) 0 1px, transparent 1.4px),
        radial-gradient(circle at 40% 70%, rgba(0,240,255,.28) 0 1px, transparent 1.5px),
        radial-gradient(circle at 80% 35%, rgba(255,43,214,.25) 0 1px, transparent 1.5px);
    background-size: 190px 190px, 260px 260px, 330px 330px;
    animation: dustDrift 34s linear infinite;
}
.planet {
    z-index: 1;
    position: absolute;
    border-radius: 50%;
    overflow: visible;
    opacity: .92;
    filter: saturate(1.28) contrast(1.08) drop-shadow(0 0 34px rgba(255,255,255,.08));
    box-shadow:
        inset -28px -30px 44px rgba(0,0,0,.48),
        inset 10px 10px 22px rgba(255,255,255,.12),
        0 0 74px rgba(0,240,255,.12);
}
.planet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 28% 24%, rgba(255,255,255,.72), rgba(255,255,255,0) 18%),
        repeating-linear-gradient(18deg, rgba(255,255,255,.06) 0 3px, rgba(0,0,0,.08) 4px 9px);
    mix-blend-mode: screen;
    opacity: .58;
}
.planet-a {
    width: 176px; height: 176px; left: 5vw; top: 13vh;
    background:
        radial-gradient(circle at 35% 28%, #fff5bb 0, #ffb550 24%, #d95a5a 43%, #5e39ff 72%, #17113a 100%);
    animation: planetOrbitA 34s ease-in-out infinite;
}
.planet-b {
    width: 92px; height: 92px; right: 10vw; top: 17vh;
    background:
        radial-gradient(circle at 35% 30%, #eaffff 0, #71f8ff 27%, #236bff 66%, #071441 100%);
    animation: planetOrbitB 26s ease-in-out infinite;
}
.planet-c {
    width: 250px; height: 250px; right: -56px; bottom: 8vh;
    background:
        radial-gradient(circle at 30% 28%, #ffdfff 0, #f35cff 24%, #7b4cff 58%, #17133a 100%);
    animation: planetOrbitC 42s ease-in-out infinite;
}
.planet-d {
    width: 66px; height: 66px; left: 44vw; bottom: 13vh;
    background:
        radial-gradient(circle at 34% 26%, #f7ffd5 0, #63ffc9 36%, #0087ff 74%, #071234 100%);
    animation: planetOrbitD 21s ease-in-out infinite;
}
.planet-e {
    width: 44px; height: 44px; left: 22vw; bottom: 26vh;
    background: radial-gradient(circle at 35% 30%, #fff 0, #ffdc7a 30%, #ff5fa7 65%, #2d123e 100%);
    animation: planetOrbitE 18s ease-in-out infinite;
}
.planet-f {
    width: 120px; height: 120px; right: 31vw; top: 54vh;
    background: radial-gradient(circle at 35% 25%, #f0fdff 0, #9af0ff 20%, #5160ff 46%, #0a0f3d 100%);
    animation: planetOrbitF 31s ease-in-out infinite;
}
.planet.ringed::after {
    content: "";
    position: absolute;
    left: -22%; right: -22%; top: 42%; height: 22%;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.48);
    border-left-color: rgba(0,240,255,.65);
    border-right-color: rgba(255,43,214,.5);
    transform: rotate(-17deg);
    box-shadow: 0 0 26px rgba(255,255,255,.20);
}
.planet.moonlet::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    right: -24px;
    top: 40%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 18px rgba(255,255,255,.55);
}
@keyframes universePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: .7; }
    50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}
@keyframes dustDrift { to { transform: translate3d(-130px, 90px, 0); } }
@keyframes planetOrbitA {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
    25% { transform: translate3d(38px,-22px,0) rotate(9deg) scale(1.03); }
    50% { transform: translate3d(76px,10px,0) rotate(20deg) scale(.98); }
    75% { transform: translate3d(26px,36px,0) rotate(31deg) scale(1.04); }
}
@keyframes planetOrbitB {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    33% { transform: translate3d(-42px,28px,0) rotate(-16deg); }
    66% { transform: translate3d(-16px,-34px,0) rotate(-30deg); }
}
@keyframes planetOrbitC {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    25% { transform: translate3d(-34px,-42px,0) rotate(-8deg); }
    50% { transform: translate3d(-78px,5px,0) rotate(-18deg); }
    75% { transform: translate3d(-24px,38px,0) rotate(-28deg); }
}
@keyframes planetOrbitD {
    0%,100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(50px,-30px,0); }
}
@keyframes planetOrbitE {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(70px,-18px,0) scale(.84); }
}
@keyframes planetOrbitF {
    0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
    50% { transform: translate3d(-56px,42px,0) rotate(18deg); }
}

.board-page .section-pad,
.shop-page .section-pad { width: min(var(--page-width), calc(100% - 48px)); }
@media (max-width: 980px) {
    .planet-a { width: 120px; height: 120px; }
    .planet-b { width: 74px; height: 74px; }
    .planet-c { width: 160px; height: 160px; }
    .planet-f { width: 88px; height: 88px; }
}
@media (max-width: 660px) {
    .planet-a { left: -28px; top: 13vh; }
    .planet-b { right: 2vw; top: 11vh; }
    .planet-c { right: -70px; bottom: 17vh; }
    .planet-d,.planet-e,.planet-f { display: none; }
}

/* Uniform page template cleanup */
.site-main {
    min-height: calc(100vh - 150px);
}
.page-shell {
    padding-top: clamp(112px, 10vw, 148px);
    padding-bottom: clamp(64px, 8vw, 112px);
    display: grid;
    gap: 28px;
}
.page-shell-narrow {
    width: min(960px, calc(100% - 48px));
}
.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
    margin: 0 0 8px;
}
.page-hero-copy {
    min-width: 0;
    display: grid;
    align-content: center;
}
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.45rem, 6vw, 5.25rem);
    line-height: .92;
    letter-spacing: -.075em;
}
.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
    line-height: 1.7;
}
.page-panel,
.page-side-card,
.page-alert,
.page-strip {
    border: 1px solid rgba(255,255,255,.15);
    background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.038));
    backdrop-filter: blur(22px) saturate(130%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
.page-panel,
.page-side-card,
.page-alert { border-radius: var(--radius-xl); }
.page-side-card {
    padding: clamp(26px, 3vw, 38px);
    min-width: 0;
}
.page-side-card span,
.page-panel > span,
.download-card span,
.product-tag {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .74rem;
}
.page-side-card strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.1;
    word-break: break-word;
}
.page-side-card p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.6;
}
.page-side-card a:not(.btn) {
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
    word-break: break-word;
}
/* Quick links row inside a side card (My downloads / My orders / Store). */
.side-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 12px;
}
.side-card-links a { white-space: nowrap; }
.side-card-links a:hover { text-decoration: underline; }
.page-actions,
.page-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.page-actions { margin-top: 18px; }
.page-toolbar { justify-content: flex-end; }
.page-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 999px;
}
.page-strip strong,
.page-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #e8ebff;
    font-size: .95rem;
}
.page-strip strong {
    background: rgba(0,240,255,.12);
    color: #fff;
}
.page-alert {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
.page-alert strong { display: block; color: #fff; font-size: 1.12rem; }
.page-alert span { color: var(--muted); }
.page-stack { display: grid; gap: 20px; }
.page-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.page-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin: 0;
}
.page-breadcrumbs a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 850;
}
.page-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
}
.page-stats div {
    padding: 28px 26px;
    border-right: 1px solid rgba(255,255,255,.11);
}
.page-stats div:last-child { border-right: 0; }
.page-stats strong {
    display: block;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1;
}
.page-stats span {
    display: block;
    margin-top: 8px;
    color: var(--cyan);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 900;
}

/* Keep old page-specific classes but route them through the shared system. */
.auth-shell,
.dashboard-hero,
.store-shell,
.forum-board,
.status-page {
    min-height: auto;
    align-items: start;
}
.auth-shell {
    grid-template-columns: 1fr;
}
.auth-layout {
    margin-bottom: 0;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
    align-items: center;
}
.auth-card,
.forum-editor,
.content-shell,
.status-card {
    padding: clamp(28px, 4vw, 44px);
}
.dashboard-shell .dashboard-grid {
    padding: 0;
    width: auto;
    margin: 0;
}
.dashboard-grid {
    padding-top: 0;
}
.account-card {
    padding: 22px 26px;
}
.account-card span,
.account-card em { display: block; }
.account-card strong { margin: 10px 0 8px; font-size: 1.2rem; }
.portal-link { color: inherit; text-decoration: none; }
.portal-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.portal-card p { flex: 1; }
.portal-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--cyan);
    font-weight: 800;
    font-size: .92rem;
    transition: transform .2s ease, gap .2s ease;
}
.portal-card:hover .portal-go { gap: 10px; }
.account-actions { margin-top: 18px; }

/* Fan dashboard "one list, one highlight" (dashboard.php): every destination
   lives in ONE stacked link list; exactly one row carries the primary
   treatment, chosen server-side from account state. Rows never reorder. */
.portal-list { padding: 0; overflow: hidden; }
.portal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 26px;
    color: inherit;
    text-decoration: none;
    transition: background .18s ease;
}
.portal-row + .portal-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.portal-row:hover { background: rgba(255, 255, 255, .05); }
.portal-row-copy { min-width: 0; }
.portal-row h2 { margin: 0 0 4px; font-size: 1.22rem; line-height: 1.15; letter-spacing: -.02em; }
.portal-row p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.portal-row .shop-order-status { margin: 0 6px 0 0; vertical-align: middle; }
.portal-row .portal-go { margin: 0; font-size: 1.05rem; transition: transform .2s ease; }
.portal-row:hover .portal-go { transform: translateX(4px); }
.portal-row--primary { background: rgba(0, 240, 255, .05); }
.portal-row--primary:hover { background: rgba(0, 240, 255, .09); }
.portal-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, .35);
    color: var(--cyan);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    vertical-align: middle;
}
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .84rem; white-space: nowrap; }
@media (max-width: 660px) {
    .portal-row { padding: 16px 18px; }
    /* .btn goes full-width at this breakpoint sitewide; the row pill must not. */
    .portal-row .btn { width: auto; }
}

/* Forum uniform pass */
.forum-table {
    overflow: hidden;
    margin: 0;
}
.forum-table-row {
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.forum-table-row:last-child { border-bottom: 0; }
.forum-table-head {
    background: rgba(255,255,255,.055);
}
.forum-category-row,
.forum-topic-row {
    color: inherit;
    text-decoration: none;
}
.forum-recent-panel { padding: clamp(26px, 3vw, 36px); }
.forum-thread { margin: 0; }
.forum-post-traditional {
    background: linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.035));
    backdrop-filter: blur(18px) saturate(125%);
}
.topic-meta-card .page-actions { margin-top: 18px; }
.forum-editor .kicker { margin-bottom: 10px; }

/* Store uniform pass */
.store-trust-card ol {
    margin: 14px 0 18px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.7;
}
.store-product-list { display: grid; gap: 16px; }
.store-product-card {
    border-radius: var(--radius-xl);
}
.product-buy-box .form-alert { margin: 0; }
.buy-actions { display: grid; gap: 10px; }
.buy-actions form { margin: 0; }
.buy-actions .btn,
.product-buy-box > .btn { width: 100%; }
.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(24px, 3vw, 36px);
    color: inherit;
    text-decoration: none;
}
.download-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -.055em;
}
.download-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Content/status pages */
.content-shell {
    max-width: none;
}
.content-shell h2:first-child { margin-top: 0; }
.status-card {
    max-width: none;
}
.status-card .btn + .btn { margin-left: 0; }

@media (max-width: 980px) {
    .page-hero,
    .auth-layout {
        grid-template-columns: 1fr;
    }
    .page-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .page-toolbar { justify-content: flex-start; }
    .forum-category-table .forum-table-row,
    .forum-topic-table .forum-table-row {
        grid-template-columns: minmax(0, 1fr) 70px 70px;
    }
    .forum-category-table .forum-table-row > :last-child,
    .forum-topic-table .forum-table-row > :last-child {
        grid-column: 1 / -1;
    }
    .store-product-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .product-buy-box { grid-column: 1 / -1; }
    .product-art { width: 96px; height: 96px; border-radius: 24px; }
}
@media (max-width: 660px) {
    .page-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 92px;
        gap: 16px;
    }
    .page-hero h1 {
        font-size: clamp(2.15rem, 14vw, 3.8rem);
    }
    .page-grid-3,
    .page-stats,
    .forum-category-table .forum-table-row,
    .forum-topic-table .forum-table-row,
    .store-product-card {
        grid-template-columns: 1fr;
    }
    .page-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.11);
    }
    .page-stats div:last-child { border-bottom: 0; }
    .page-alert,
    .download-card,
    .forum-editor-head {
        flex-direction: column;
        align-items: stretch;
    }
    .forum-table-head { display: none; }
    .forum-count { text-align: left; }
    .product-art { width: 100%; height: 150px; }
}


/* Final template alignment fix — LAST .dashboard-hero rule in the file, so
   the hero geometry must live here: earlier .dashboard-hero blocks and the
   shared .page-hero rule all lose the cascade at equal specificity. The
   mobile collapse must ALSO be re-declared below, because the shared 980px
   collapse for .page-hero sits earlier in the file and would lose to this. */
.dashboard-hero {
    padding-top: 0;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 30px;
    align-items: start;
}
@media (max-width: 980px) {
    .dashboard-hero { grid-template-columns: 1fr; }
}
.auth-shell {
    min-height: auto;
}

/* Uniform forum/store component definitions */
.forum-table-row {
    display: grid;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    color: inherit;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.forum-category-table .forum-table-row { grid-template-columns: minmax(0, 1.4fr) 92px 92px minmax(220px, .74fr); }
.forum-topic-table .forum-table-row { grid-template-columns: minmax(0, 1.4fr) 92px 92px minmax(210px, .65fr); }
.forum-table-head {
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .72rem;
    font-weight: 900;
}
.forum-category-row:hover,
.forum-topic-row:hover {
    background: rgba(255,255,255,.07);
    transform: translateY(-1px);
}
.forum-cell-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.forum-icon,
.forum-topic-dot {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #050510;
    background: linear-gradient(135deg, #fff, #92f8ff 48%, #ff9cf0);
    box-shadow: 0 12px 34px rgba(0,240,255,.16);
    font-weight: 900;
}
.forum-topic-dot {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: .85rem;
}
.forum-cell-main strong,
.forum-latest strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25;
}
.forum-cell-main em,
.forum-latest em {
    display: block;
    color: var(--muted);
    font-style: normal;
    line-height: 1.45;
    margin-top: 4px;
}
.forum-count {
    font-weight: 950;
    color: #fff;
    text-align: center;
}
.forum-latest {
    min-width: 0;
}
.forum-latest strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}
.forum-panel-title h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    letter-spacing: -.06em;
}
.forum-panel-title a {
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
}
.forum-mini-list {
    display: grid;
    gap: 10px;
}
.forum-mini-list a {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}
.forum-mini-list a:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.forum-mini-list span {
    color: var(--cyan);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 900;
}
.forum-mini-list strong { color: #fff; }
.forum-mini-list em { color: var(--muted); font-style: normal; }
.forum-empty-row {
    padding: 28px;
}
.forum-empty-row h1,
.forum-empty-row h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -.06em;
}
.forum-empty-row p { color: var(--muted); }
.forum-badge {
    display: inline-block;
    margin: 8px 7px 0 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #050510;
    background: #fff;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.forum-thread {
    display: grid;
    gap: 14px;
}
.forum-post-traditional {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    box-shadow: 0 18px 52px rgba(0,0,0,.24);
}
.post-user-card {
    padding: 24px;
    background: rgba(2,4,14,.38);
    border-right: 1px solid rgba(255,255,255,.1);
}
.post-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #82f8ff, #ff9cf0);
    color: #050510;
    font-weight: 950;
}
.post-user-card strong {
    display: block;
    color: #fff;
    word-break: break-word;
}
.post-user-card em {
    display: block;
    color: var(--muted);
    font-style: normal;
    margin-top: 6px;
}
.post-content-card {
    min-width: 0;
    padding: 26px 30px 30px;
}
.post-content-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
}
.post-content-head a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 900;
}
.forum-editor {
    display: grid;
    gap: 16px;
}
.forum-editor-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}
.forum-editor-head h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -.06em;
}
.forum-editor-head span {
    color: var(--muted);
    font-weight: 750;
}
.forum-editor label {
    display: grid;
    gap: 8px;
}
.forum-editor label span {
    color: #dfe3ff;
    font-weight: 850;
}
.forum-editor input,
.forum-editor textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 16px 18px;
    color: #fff;
    background: rgba(2,4,14,.58);
    outline: none;
}
.forum-editor textarea {
    min-height: 220px;
    resize: vertical;
}
.forum-editor input:focus,
.forum-editor textarea:focus {
    border-color: rgba(0,240,255,.78);
    box-shadow: 0 0 0 4px rgba(0,240,255,.12);
}

/* Editor toolbar (Bold / Italic / Quote) + live preview. Simple markdown-lite:
   **bold**, *italic*, "> quote" — rendered identically here and server-side
   (see forum_body_html() in _settings_vinylstate/includes/forum.php). */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.editor-toolbar button {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    font-size: .92rem;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.editor-toolbar button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); transform: translateY(-1px); }
.editor-toolbar button i { font-style: italic; }
.editor-toolbar-hint {
    margin-left: 4px;
    color: var(--soft);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.post-preview-wrap {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px dashed rgba(255,255,255,.16);
    border-radius: 16px;
    background: rgba(255,255,255,.03);
}
.post-preview-wrap[hidden] { display: none; }
.post-preview-label {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .68rem;
}
.post-preview { color: #e8ebff; }
.post-quote {
    display: block;
    margin: 4px 0;
    padding: 8px 14px;
    border-left: 3px solid rgba(0,240,255,.55);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border-radius: 0 10px 10px 0;
}
.post-body strong { color: #fff; }
.post-body em { color: #dfe3ff; }

.store-product-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) minmax(250px, 310px);
    gap: 24px;
    align-items: center;
    padding: clamp(20px, 3vw, 28px);
}
.store-product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(0,240,255,.14), transparent 32%), radial-gradient(circle at 88% 80%, rgba(255,43,214,.12), transparent 30%);
    pointer-events: none;
}
.store-product-card > * {
    position: relative;
    z-index: 1;
}
.product-art {
    width: 128px;
    height: 128px;
    border-radius: 32px;
    display: grid;
    place-items: center;
    background:
        repeating-radial-gradient(circle, rgba(255,255,255,.15) 0 1px, transparent 2px 9px),
        radial-gradient(circle at 35% 30%, #9afcff, #8a5cff 42%, #070713 75%);
    box-shadow: inset 0 0 38px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.28);
}
.product-art span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 24px rgba(255,255,255,.4);
}
.product-info h2 {
    margin: 12px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1;
    letter-spacing: -.06em;
}
.product-info p {
    color: var(--muted);
    line-height: 1.65;
    max-width: 680px;
}
.product-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.product-feature-list span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #e8ebff;
    font-size: .9rem;
}
.product-buy-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(2,4,14,.42);
    border: 1px solid rgba(255,255,255,.11);
}
.product-buy-box > span {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .75rem;
    font-weight: 900;
}
.product-buy-box > strong {
    display: block;
    font-size: 2.1rem;
    line-height: 1;
}
.status-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 6vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.07em;
}
.status-card p {
    color: var(--muted);
    line-height: 1.65;
}
@media (max-width: 980px) {
    .store-product-card { grid-template-columns: 96px minmax(0, 1fr); }
    .product-buy-box { grid-column: 1 / -1; }
    .product-art { width: 96px; height: 96px; border-radius: 24px; }
    .forum-post-traditional { grid-template-columns: 1fr; }
    .post-user-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 660px) {
    .store-product-card { grid-template-columns: 1fr; }
    .product-art { width: 100%; height: 150px; }
    .forum-category-table .forum-table-row,
    .forum-topic-table .forum-table-row { grid-template-columns: 1fr; }
}


/* ============================================================
   Interactive universe: clickable planets, sun + world panel
   ============================================================ */

/* Extra nebula + second dust layer for a denser galaxy. */
.nebula-d {
    right: 22vw;
    bottom: 4vh;
    background: radial-gradient(circle, rgba(255, 157, 66, .5), transparent 66%);
    animation-duration: 20s;
}
.stellar-dust::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 22% 48%, rgba(255,255,255,.18) 0 1px, transparent 1.5px),
        radial-gradient(circle at 64% 14%, rgba(138,92,255,.26) 0 1px, transparent 1.6px),
        radial-gradient(circle at 86% 72%, rgba(0,240,255,.22) 0 1px, transparent 1.5px);
    background-size: 150px 150px, 220px 220px, 300px 300px;
    animation: dustDriftAlt 46s linear infinite;
    opacity: .6;
}
@keyframes dustDriftAlt { to { transform: translate3d(160px, -120px, 0); } }

/* The clickable layer. It never blocks page content (pointer-events: none);
   only the bodies inside catch clicks, and only where they peek past content. */
.universe-portals {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.universe-portals button {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    pointer-events: auto;
    cursor: pointer;
    transition: filter .3s ease;
}
.universe-portals button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 8px;
}
.universe-portals .planet:hover,
.universe-portals .planet:focus-visible {
    filter: saturate(1.6) brightness(1.18) drop-shadow(0 0 40px rgba(255, 255, 255, .2));
}

/* Hover/focus halo. A dedicated child so it never fights the planet's own
   ::before / ::after (used for texture and rings). */
.portal-flare {
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    border: 1.5px solid transparent;
    pointer-events: none;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .3s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.universe-portals button:hover .portal-flare,
.universe-portals button:focus-visible .portal-flare {
    opacity: 1;
    transform: scale(1.04);
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 0 30px rgba(0, 240, 255, .4), inset 0 0 20px rgba(255, 255, 255, .22);
}

/* Reposition the interactive bodies into the page margins so they actually
   peek out from behind content and stay clickable on desktop. */
.planet-a { left: 4vw; top: 12vh; }
.planet-b { right: 7vw; top: 15vh; }
.planet-c { right: -40px; bottom: 9vh; }
.planet-d { left: 3.5vw; bottom: 12vh; }
.planet-e { right: 5vw; top: 42vh; }
.planet-f { left: 5vw; top: 56vh; }

/* The sun. */
.sun {
    position: absolute;
    left: 2vw;
    top: 33vh;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    z-index: 2;
    background: radial-gradient(circle at 50% 50%, #fffdf2 0%, #ffe98c 24%, #ffb347 50%, #ff7a2f 70%, rgba(255, 110, 45, 0) 74%);
    box-shadow:
        0 0 50px rgba(255, 196, 92, .65),
        0 0 110px rgba(255, 140, 60, .45),
        0 0 200px rgba(255, 96, 40, .26);
    filter: saturate(1.15);
    animation: sunPulse 7s ease-in-out infinite;
}
.sun::before {
    content: "";
    position: absolute;
    inset: -54%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 214, 130, 0) 0deg 7deg, rgba(255, 214, 130, .36) 8deg 9deg, rgba(255, 214, 130, 0) 10deg 16deg);
    -webkit-mask: radial-gradient(circle, #000 36%, transparent 70%);
    mask: radial-gradient(circle, #000 36%, transparent 70%);
    opacity: .8;
    animation: slowRotate 60s linear infinite;
}
.sun::after {
    content: "";
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 42% 38%, #ffffff 0%, #ffe07a 32%, rgba(255, 160, 60, 0) 64%);
    mix-blend-mode: screen;
    animation: sunFlare 5s ease-in-out infinite;
}
.sun:hover,
.sun:focus-visible {
    filter: saturate(1.3) brightness(1.16);
}
@keyframes sunPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes sunFlare {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* World info panel (modal). */
.world-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    place-items: center;
    padding: 24px;
}
.world-panel:not([hidden]) { display: grid; }
.world-panel-scrim {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 16, .62);
    backdrop-filter: blur(8px);
    animation: worldFade .3s ease;
}
.world-panel-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-xl);
    background: linear-gradient(150deg, rgba(20, 22, 48, .94), rgba(8, 8, 22, .94));
    backdrop-filter: blur(26px) saturate(140%);
    box-shadow: var(--shadow), 0 0 60px rgba(0, 240, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .1);
    animation: worldRise .4s cubic-bezier(.2, .8, .2, 1);
}
.world-panel-card:focus { outline: none; }
.world-panel-tag {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .74rem;
}
.world-panel-card h2 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: .95;
    letter-spacing: -.06em;
}
.world-panel-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 24px;
}
.world-panel-card .btn { width: 100%; }
.world-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.world-panel-close:hover {
    background: rgba(255, 255, 255, .14);
    transform: rotate(90deg);
}
body.world-open { overflow: hidden; }

@keyframes worldFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes worldRise {
    from { opacity: 0; transform: translateY(26px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Discovery hint + meter. */
.universe-tip {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 40;
    margin: 0;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(7, 7, 19, .82);
    backdrop-filter: blur(16px);
    color: #eaf0ff;
    font-weight: 750;
    font-size: .9rem;
    box-shadow: var(--shadow);
    animation: tipIn .5s ease;
}
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.world-progress {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 41;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, .3);
    background: rgba(7, 7, 19, .8);
    backdrop-filter: blur(16px);
    color: #dffcff;
    font-weight: 850;
    font-size: .82rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    /* it's a <button> now — the songdex trigger */
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}
.world-progress:hover { border-color: rgba(0, 240, 255, .65); transform: translateY(-1px); }
.world-progress.is-complete {
    border-color: rgba(81, 255, 184, .55);
    color: #ccffe9;
    box-shadow: 0 0 30px rgba(81, 255, 184, .25);
}

/* Songdex: the full catalogue panel, opened from the worlds-explored chip.
   Click a song -> app.js hands off to the universe (fly there + play). */
.songdex {
    position: fixed;
    right: 18px;
    bottom: 66px;
    z-index: 40;
    width: min(340px, calc(100vw - 36px));
    max-height: min(62vh, 560px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, .25);
    background: rgba(7, 8, 20, .92);
    backdrop-filter: blur(20px) saturate(130%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.songdex-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.songdex-head strong { font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.songdex-total { margin-left: auto; color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.songdex-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    color: #cfd6e8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.songdex-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.songdex-body { overflow-y: auto; padding: 8px 10px 12px; }
.songdex-group { margin: 0 0 2px; }
.songdex-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 9px 8px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background .15s ease;
}
.songdex-group-head:hover { background: rgba(255, 255, 255, .06); }
.songdex-group-head strong { flex: 1; min-width: 0; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.songdex-group-head em { color: var(--muted); font-style: normal; font-size: .74rem; }
.songdex-chev { color: var(--muted); font-style: normal; font-size: .8rem; transition: transform .2s ease; }
.songdex-group.is-open .songdex-chev { transform: rotate(180deg); }
.songdex-tag {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, .3);
    color: var(--cyan);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.songdex-group ul { margin: 0; padding: 0 0 4px 8px; list-style: none; }
.songdex-group li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #d7def0;
    font: inherit;
    font-size: .88rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.songdex-group li button:hover { background: rgba(0, 240, 255, .1); color: #fff; }
.songdex-group li button span { color: var(--cyan); margin-right: 4px; }

@media (max-width: 980px) {
    .sun { width: 116px; height: 116px; left: 1vw; top: 30vh; }
}
@media (max-width: 660px) {
    .sun { display: none; }
    .planet-a { left: -28px; top: 11vh; }
    .planet-b { right: 1vw; top: 9vh; }
    .universe-tip { font-size: .82rem; width: max-content; max-width: calc(100% - 28px); text-align: center; }
    .world-progress { right: 12px; bottom: 12px; font-size: .76rem; }
}


/* ============================================================
   WebGL universe (Three.js) — overrides when it boots
   ============================================================ */
#universe-gl {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Lenis smooth scroll (added to <html> by the bundle when the 3D scene boots). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Once the 3D scene is live, retire the 2D/CSS cosmos so we don't
   double-render, and turn the planet buttons into an invisible but still
   keyboard-operable fallback (the 3D bodies are the visible controls). */
.webgl-on .cosmos-background > :not(#universe-gl),
.webgl-on .cosmos-background::before,
.webgl-on .cosmos-background::after {
    display: none;
}
/* Loading veil — prevents any flash of the pre-WebGL background on (re)load. */
.universe-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: #04050b;
    transition: opacity .85s ease;
}
.universe-loader.is-hidden { opacity: 0; pointer-events: none; }
.universe-loader-core {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, #fff, #88b6ff 55%, rgba(136,182,255,0) 72%);
    box-shadow: 0 0 40px rgba(140, 180, 255, .6);
    animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }

/* The old 2D hero orb, CSS planets, nebula grid and gradients are retired
   everywhere now. With WebGL you get the 3D scene; without it, clean dark
   space. The portal buttons stay only as a keyboard-accessible fallback. */
body { background: #04050b; }
body::after { display: none; }
.cosmos-background {
    background: radial-gradient(circle at 50% 36%, #0a0c18 0%, #050610 56%, #02030a 100%);
}
.cosmos-background::after { display: none; }
.cosmos-background::before {
    content: "";
    position: absolute;
    inset: 0;
    animation: none;
    opacity: .55;
    filter: none;
    mix-blend-mode: normal;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 70% 60%, rgba(200,220,255,.6), transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(255,240,220,.5), transparent),
        radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,.5), transparent),
        radial-gradient(1px 1px at 55% 15%, rgba(220,235,255,.5), transparent);
    background-repeat: repeat;
    background-size: 320px 320px, 260px 260px, 200px 200px, 380px 380px, 300px 300px;
}
.webgl-on .cosmos-background { background: #04050b; }
.webgl-on .cosmos-background::before { display: none; }

.hero-visual { opacity: 0; pointer-events: none; }
.universe-portals { pointer-events: none; }
.universe-portals button {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: none;
    box-shadow: none;
    filter: none;
    animation: none;
}
.universe-portals button::before,
.universe-portals button::after,
.portal-flare { display: none; }
.webgl-on .universe-portals button {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: none;
    box-shadow: none;
    filter: none;
    animation: none;
}
.webgl-on .universe-portals button::before,
.webgl-on .universe-portals button::after,
.webgl-on .portal-flare {
    display: none;
}

/* "Scroll to fly" affordance — only meaningful with the 3D scene. */
.scroll-hint { display: none; }
.webgl-on .scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 30;
    margin: 0;
    color: var(--muted);
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .7rem;
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
}
.webgl-on .scroll-hint.is-gone {
    opacity: 0;
    transform: translate(-50%, 12px);
}
.scroll-hint-arrow {
    font-size: 1.15rem;
    animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
    0%, 100% { transform: translateY(0); opacity: .5; }
    50% { transform: translateY(6px); opacity: 1; }
}
.webgl-on .universe-tip { bottom: 78px; }

/* Ambient sound toggle. */
.sound-toggle {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 40;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(7, 7, 19, .8);
    backdrop-filter: blur(16px);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: border-color .2s ease, transform .2s ease;
}
.sound-toggle:hover { transform: translateY(-2px); border-color: var(--cyan); }
.sound-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sound-toggle-icon {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}
.sound-toggle-icon i {
    width: 3px;
    height: 6px;
    border-radius: 2px;
    background: var(--muted);
    transition: background .2s ease;
}
.sound-toggle.is-on .sound-toggle-icon i {
    background: var(--cyan);
    animation: soundEq 1s ease-in-out infinite;
}
.sound-toggle.is-on .sound-toggle-icon i:nth-child(2) { animation-delay: .2s; }
.sound-toggle.is-on .sound-toggle-icon i:nth-child(3) { animation-delay: .4s; }
.sound-toggle.is-on .sound-toggle-icon i:nth-child(4) { animation-delay: .1s; }
@keyframes soundEq {
    0%, 100% { height: 5px; }
    50% { height: 16px; }
}

@media (max-width: 660px) {
    .sound-toggle { left: 12px; bottom: 12px; width: 42px; height: 42px; }
    .webgl-on .universe-tip { bottom: 70px; }
}


/* Per-planet markers (futuristic HUD that flashes on a focused planet) */
.world-markers {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
}
.world-markers:not(.is-on) { display: none; }
.world-marker {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px));
    display: grid;
    place-items: center;
    pointer-events: auto;
    text-decoration: none;
    color: #fff;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    opacity: 0;
    animation: markerIn .4s var(--d, 0s) ease forwards;
}
.world-marker-dot {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 240, 255, .7);
    background: rgba(7, 10, 24, .68);
    backdrop-filter: blur(6px);
    animation: markerFlash 1.6s var(--d, 0s) infinite;
    transition: transform .2s ease, border-color .2s ease;
}
.world-marker-dot img { width: 21px; height: 21px; object-fit: contain; filter: brightness(1.7); }
.world-marker:hover .world-marker-dot,
.world-marker:focus-visible .world-marker-dot { transform: scale(1.16); border-color: #fff; }
.world-marker-label {
    position: absolute;
    top: calc(100% + 7px);
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #eaf2ff;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 24, .9);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}
.world-marker:hover .world-marker-label,
.world-marker:focus-visible .world-marker-label { opacity: 1; transform: translateY(0); }
@keyframes markerIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes markerFlash {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 240, 255, .4), inset 0 0 8px rgba(0, 240, 255, .2); }
    50% { box-shadow: 0 0 24px rgba(0, 240, 255, .9), inset 0 0 13px rgba(0, 240, 255, .45); }
}
@media (prefers-reduced-motion: reduce) {
    .world-marker, .world-marker-dot { animation: none; opacity: 1; }
}


/* Floating chapter title above a focused planet */
.world-title {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    pointer-events: none;
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .35s ease;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .7);
    will-change: transform, opacity;
}
.world-title:not(.is-on) { display: none; }
.world-title-tag {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: .72rem;
}
.world-title-name {
    color: #fff;
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 900;
}

/* Popup that expands next to the planet when you click a dot */
.world-pop {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 62;
    width: min(300px, 76vw);
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(20, 22, 48, .94), rgba(8, 8, 22, .94));
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow), 0 0 50px rgba(0, 240, 255, .12);
    transform-origin: left center;
    opacity: 0;
    transition: opacity .28s ease, scale .28s cubic-bezier(.2, .8, .2, 1);
    scale: .9;
}
.world-pop:not([hidden]).is-on { opacity: 1; scale: 1; }
.world-pop-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.world-pop-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.world-pop-tag {
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .68rem;
}
.world-pop-tag:empty { display: none; }
.world-pop-title {
    margin: 8px 0 6px;
    font-size: 1.5rem;
    line-height: 1.05;
    letter-spacing: -.03em;
}
.world-pop-text {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
    font-size: .95rem;
}
.world-pop-cta { width: 100%; }
@media (prefers-reduced-motion: reduce) {
    .world-pop { transition: opacity .2s ease; scale: 1; }
}

/* Inline auth overlay — login / join / register loaded over the universe. */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;          /* never eat clicks unless actually open */
    transition: opacity .32s ease;
}
/* These two beat the base rule so a closed overlay is fully inert (otherwise
   .auth-overlay{display:grid} overrides [hidden]{display:none} and the
   invisible full-screen scrim swallows every click). */
.auth-overlay[hidden] { display: none; }
.auth-overlay:not([hidden]).is-on { opacity: 1; pointer-events: auto; }
.auth-overlay-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 30%, rgba(4, 6, 22, .58), rgba(2, 3, 12, .86));
    backdrop-filter: blur(10px) saturate(125%);
}
.auth-overlay-card {
    position: relative;
    width: min(1240px, calc(100vw - 40px));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(26px, 4vw, 52px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 26px;
    background: linear-gradient(150deg, rgba(20, 22, 48, .94), rgba(8, 8, 22, .95));
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: var(--shadow), 0 0 60px rgba(0, 240, 255, .14);
    transform: translateY(14px) scale(.96);
    opacity: 0;
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .34s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.auth-overlay-card::-webkit-scrollbar { width: 10px; }
.auth-overlay-card::-webkit-scrollbar-track { background: transparent; }
.auth-overlay-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}
.auth-overlay-card::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .38); }
.auth-overlay.is-on .auth-overlay-card { transform: none; opacity: 1; }
.auth-overlay-close {
    position: sticky;
    top: 0;
    float: right;
    margin: -6px -6px 0 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(10, 12, 28, .85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.auth-overlay-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.auth-overlay-loading {
    padding: 40px 6px;
    text-align: center;
    color: var(--cyan);
    letter-spacing: .04em;
}
/* Pages keep their real grid layouts inside the glass panel — only the
   full-page chrome (outer padding, min-height, container width) is stripped. */
.auth-overlay .section-pad,
.auth-overlay .page-shell,
.auth-overlay .auth-shell,
.auth-overlay .store-shell,
.auth-overlay .forum-board,
.auth-overlay .dashboard-shell,
.auth-overlay .status-page {
    min-height: 0;
    padding: 0;
    margin: 0;
    width: auto;
}
.auth-overlay .page-shell {
    display: grid;
    gap: 24px;
}
.auth-overlay .page-hero,
.auth-overlay .auth-layout,
.auth-overlay .dashboard-hero { margin: 0; }
.auth-overlay .auth-intro .kicker,
.auth-overlay .kicker { margin-bottom: 8px; }
.auth-overlay .page-hero h1,
.auth-overlay .auth-intro h1,
.auth-overlay h1 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
}
.auth-overlay .auth-intro p { font-size: 1.05rem; }
/* The auth form sits directly on the overlay glass (no inner panel chrome);
   store/forum cards keep their own .page-panel styling. */
.auth-overlay .auth-card {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}
/* The base .flash is position:fixed, viewport-relative — inside the overlay
   that makes it float over whatever content happens to sit at top:116px of
   the viewport instead of appearing where it's actually placed in the DOM
   (first inside the injected content, right above the page heading). Drop
   it into normal flow instead. */
.auth-overlay .flash {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    margin: 0 0 16px;
}
.auth-overlay .page-stack { gap: 18px; }
body.auth-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .auth-overlay,
    .auth-overlay-card { transition: opacity .2s ease; transform: none; }
}

/* Mini player — appears over the universe when a song-marker is tapped. */
.audio-player {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(20, 22, 48, .92), rgba(8, 8, 22, .94));
    backdrop-filter: blur(22px) saturate(140%);
    box-shadow: var(--shadow), 0 0 50px rgba(0, 240, 255, .14);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
    max-width: min(460px, 92vw);
}
.audio-player[hidden] { display: none; }
.audio-player.is-on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.audio-toggle {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, .5);
    background: rgba(0, 240, 255, .12);
    color: #eafaff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .15s ease;
}
.audio-toggle:hover { background: rgba(0, 240, 255, .22); transform: scale(1.05); }
.audio-toggle::before { content: '\275A\275A'; font-size: .8rem; letter-spacing: 2px; }
.audio-toggle.is-paused::before { content: '\25B6'; margin-left: 3px; letter-spacing: 0; }
.audio-player.is-playing .audio-toggle { box-shadow: 0 0 18px rgba(0, 240, 255, .4); }
.audio-player-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(12, 14, 30, .92);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: grid;
    place-items: center;
}
.audio-player-close:hover { background: rgba(255, 255, 255, .16); }
.audio-meta { display: grid; gap: 2px; min-width: 96px; }
.audio-cluster {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 800;
}
.audio-title { font-size: 1rem; line-height: 1.1; color: #fff; }
.audio-viz { width: 132px; height: 40px; opacity: .9; }
@media (max-width: 560px) { .audio-viz { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .audio-player { transition: opacity .2s ease; transform: translateX(-50%); }
}

/* ============================ Store (redesigned) ====================== */
.store-redux { display: block; }
.store-hero {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
}
.store-hero-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(0, 240, 255, .35);
    border-radius: 999px;
    background: rgba(0, 240, 255, .08);
    color: var(--cyan);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.store-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    line-height: .96;
    letter-spacing: -.055em;
}
.store-hero > p {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}
.store-hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}
.store-hero-trust span {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: .88rem;
    color: #d7def0;
}

/* Music / Merch switcher on the merged /store page. */
.store-mode-tabs {
    display: flex;
    gap: 8px;
    margin: 30px auto 34px;
    padding: 6px;
    max-width: 560px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}
.store-mode-tabs a {
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #d7def0;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.store-mode-tabs strong { font-size: 1.02rem; font-weight: 850; letter-spacing: -.01em; }
.store-mode-tabs span { font-size: .78rem; color: var(--muted); }
.store-mode-tabs a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.store-mode-tabs a.is-active {
    background: linear-gradient(135deg, #ffffff 0%, #82f8ff 46%, #ff9cf0 100%);
    color: #050510;
    box-shadow: 0 10px 28px rgba(0, 240, 255, .18);
}
.store-mode-tabs a.is-active strong { color: #050510; }
.store-mode-tabs a.is-active span { color: rgba(5, 5, 16, .62); }
@media (max-width: 520px) {
    .store-mode-tabs { flex-direction: column; border-radius: 22px; }
    .store-mode-tabs a { flex-direction: row; justify-content: center; gap: 8px; }
}

.store-login-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    padding: 24px 30px;
    border: 1px solid rgba(0, 240, 255, .22);
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(0, 240, 255, .08), rgba(120, 80, 255, .08));
}
.store-login-banner-copy { display: grid; gap: 3px; }
.store-login-banner-copy strong { font-size: 1.05rem; }
.store-login-banner-copy span { color: var(--muted); font-size: .9rem; }

/* Store sections: Albums & EPs first, then singles grouped by EP tag. */
.store-group { display: grid; gap: 20px; }
.store-group + .store-group { margin-top: 40px; }
.store-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.store-group-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -.03em;
}
.store-group-head h2 em {
    font-style: normal;
    font-weight: 700;
    color: var(--soft);
    font-size: .62em;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-left: 4px;
}
.store-group-count {
    flex: none;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--cyan);
    padding: 6px 12px;
    border: 1px solid rgba(0,240,255,.28);
    border-radius: 999px;
    background: rgba(0,240,255,.07);
}

.store-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 18px;
}
.album-card { border-color: rgba(0,240,255,.22); }
.album-card .release-art {
    aspect-ratio: 24 / 9;
    background:
        radial-gradient(140% 160% at 20% 15%, hsla(var(--art-hue, 200), 85%, 60%, .6), transparent 58%),
        radial-gradient(140% 160% at 85% 90%, hsla(calc(var(--art-hue, 200) + 40), 85%, 52%, .55), transparent 60%),
        linear-gradient(150deg, #171a34, #0a0b1a);
}
.album-tracklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 2px;
}
.album-tracklist li {
    position: relative;
    padding-left: 16px;
    color: #cdd6ea;
    font-size: .8rem;
    line-height: 1.45;
}
.album-tracklist li::before {
    content: "♪";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: .8rem;
}

.store-release-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
    gap: 24px;
}
.release-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(22, 24, 44, .72), rgba(10, 11, 26, .72));
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.release-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, .3);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .4), 0 0 40px hsla(var(--art-hue, 200), 80%, 50%, .14);
}
.release-art {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 130% at 30% 20%, hsla(var(--art-hue, 200), 85%, 58%, .55), transparent 60%),
        radial-gradient(120% 130% at 80% 90%, hsla(calc(var(--art-hue, 200) + 40), 85%, 50%, .5), transparent 62%),
        linear-gradient(150deg, #14162c, #0a0b1a);
}
.release-disc {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #0a0b14 22%, transparent 23%),
        repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .14) 0 1px, transparent 1px 4px),
        conic-gradient(from 0deg, hsla(var(--art-hue, 200), 80%, 60%, .9), hsla(calc(var(--art-hue, 200) + 60), 80%, 55%, .9), hsla(var(--art-hue, 200), 80%, 60%, .9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.release-format {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 6, 16, .7);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #eafaff;
}
.release-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.release-tag {
    color: var(--cyan);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.release-head h2 { margin: 4px 0 0; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.02em; }
.release-desc { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.release-features { display: flex; flex-wrap: wrap; gap: 6px; }
.release-features span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    font-size: .72rem;
    color: #cdd6ea;
}
.release-features .is-ready { border-color: rgba(80, 220, 160, .4); color: #74e6b0; }
.release-features .is-pending { border-color: rgba(255, 200, 90, .35); color: #ffd06a; }
.release-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.release-price { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; }
.release-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.release-actions form { margin: 0; }
.release-actions .btn { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.release-note { font-size: .82rem; color: #ffd06a; text-align: right; }
.store-how {
    margin-top: 26px;
    padding: 28px 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 22px;
    background: rgba(255, 255, 255, .03);
}
.store-how .kicker { color: var(--cyan); }
.store-how ol { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 6px; color: #d7def0; }
.store-how > a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.store-how > a:hover { text-decoration: underline; }

/* Honesty note on the music store: streaming is near-identical quality,
   buying = supporting the band. Warm, personal, low-key. */
.store-honesty {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(120, 160, 255, .28);
    background: linear-gradient(150deg, rgba(70, 100, 210, .12), rgba(120, 80, 200, .08));
}
.store-honesty-heart { font-size: 1.3rem; line-height: 1.3; }
.store-honesty p { margin: 0; color: #d7def0; font-size: .95rem; line-height: 1.6; }
.store-honesty strong { color: #fff; }

/* Song search — filters both the album grid and the track list below by
   title, purely client-side (see [data-track-search] in app.js). */
.store-search { display: grid; gap: 8px; margin-bottom: 4px; }
.store-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    max-width: 420px;
}
.store-search-field span { font-size: 1rem; opacity: .7; }
.store-search-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    padding: 12px 0;
    outline: none;
}
.store-search-field input::placeholder { color: var(--muted); }
.store-search-empty { margin: 0; color: var(--muted); }

/* Compact single-track rows — replaces the big release-card grid for
   individual songs so browsing a large catalogue takes far less scrolling
   than a grid of full art-banner cards. Albums keep their rich cards above;
   this is just for one-song-at-a-time listings. */
.track-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 10px 16px;
}
.track-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(22, 24, 44, .55), rgba(10, 11, 26, .55));
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.track-row:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 240, 255, .3);
    background: linear-gradient(160deg, rgba(22, 24, 44, .78), rgba(10, 11, 26, .78));
}
.track-row-art {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(120% 130% at 30% 20%, hsla(var(--art-hue, 200), 85%, 58%, .55), transparent 60%),
        linear-gradient(150deg, #14162c, #0a0b1a);
}
.track-row-disc {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #0a0b14 26%, transparent 27%),
        conic-gradient(from 0deg, hsla(var(--art-hue, 200), 80%, 60%, .9), hsla(calc(var(--art-hue, 200) + 60), 80%, 55%, .9), hsla(var(--art-hue, 200), 80%, 60%, .9));
}
.track-row-meta { flex: 1; min-width: 0; display: grid; gap: 4px; }
.track-row-meta h3 {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.track-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.track-row-tags span {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
    font-size: .72rem;
    color: #cdd6ea;
}
.track-row-tags .is-ready { border-color: rgba(80, 220, 160, .4); color: #74e6b0; }
.track-row-tags .is-pending { border-color: rgba(255, 200, 90, .35); color: #ffd06a; }
.track-row .release-buy {
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.track-row .release-price { font-size: 1.1rem; }
.track-row .release-actions .btn { min-height: 38px; padding: 9px 16px; font-size: .85rem; }
.track-row .release-note { text-align: right; }
@media (max-width: 660px) {
    .track-row { flex-wrap: wrap; }
    .track-row .release-buy { flex: none; width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
}

/* ============ Buy modal — payment method chooser ============
   One shared dialog per store page (markup in store.php, logic in app.js
   [data-buy-open]). Re-parented to <body> on open so position:fixed works
   even when the store is mounted inside the universe overlay. */
body.buy-open { overflow: hidden; }
.buy-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    transition: opacity .24s ease;
}
.buy-overlay.is-on { opacity: 1; }
.buy-overlay[hidden] { display: none; }
.buy-overlay-scrim { position: absolute; inset: 0; background: rgba(3, 4, 12, .74); backdrop-filter: blur(7px); }
.buy-card {
    position: relative;
    width: min(440px, 100%);
    max-height: min(86vh, 640px);
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(168deg, rgba(27, 29, 55, .98), rgba(9, 10, 24, .98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 240, 255, .06);
    padding: 26px 26px 22px;
    transform: translateY(14px) scale(.97);
    transition: transform .24s ease;
    outline: none;
}
.buy-overlay.is-on .buy-card { transform: none; }
.buy-card-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    color: #cfd6e8;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.buy-card-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.buy-card-head { display: grid; gap: 6px; padding-right: 30px; }
.buy-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    color: #74e6b0;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.buy-card-head h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; }
.buy-card-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.buy-card-sub strong { color: #fff; font-size: 1.05rem; }
.buy-methods { margin: 18px 0 0; display: grid; gap: 10px; }
.buy-methods-label {
    margin: 0 0 2px;
    color: #cdd6ea;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.buy-method {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font: inherit;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.buy-method:hover,
.buy-method:focus-visible { border-color: rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .07); transform: translateY(-1px); }
.buy-method:disabled { opacity: .45; cursor: default; transform: none; }
.buy-method-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--cyan);
}
.buy-method-icon-paypal,
.buy-method-icon-crypto { background: rgba(255, 255, 255, .92); }
.buy-method-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.buy-method-copy strong { font-size: .98rem; letter-spacing: -.01em; }
.buy-method-copy span { color: var(--muted); font-size: .8rem; }
.buy-method-go { flex: none; color: var(--cyan); font-size: 1.1rem; transition: transform .18s ease; }
.buy-method:hover .buy-method-go { transform: translateX(3px); }
.buy-methods.is-busy .buy-method { pointer-events: none; }
.buy-method.is-going { border-color: rgba(0, 240, 255, .6); background: rgba(0, 240, 255, .1); }
.buy-method.is-going .buy-method-copy span::after { content: ' — connecting…'; color: var(--cyan); }
.buy-trust {
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
}
.buy-trust a { color: var(--cyan); text-decoration: none; }
.buy-trust a:hover { text-decoration: underline; }
@media (max-width: 480px) {
    /* Bottom-sheet feel on phones: closer to the thumb, full width. */
    .buy-overlay { padding: 10px; align-items: end; }
    .buy-card { border-radius: 20px; }
}

/* ============================ Music (platforms) ====================== */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 20px;
}
.music-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 106px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(22, 24, 44, .78), rgba(10, 11, 26, .82));
    text-decoration: none;
    color: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease, box-shadow .25s ease;
}
.music-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background: radial-gradient(120% 140% at -6% -20%, var(--card-color, rgba(0,240,255,.4)), transparent 62%);
    transition: opacity .3s ease, transform .3s ease;
}
.music-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .24);
    box-shadow: 0 20px 46px rgba(0, 0, 0, .38), 0 0 40px var(--card-color, rgba(0,240,255,.22));
}
.music-card:hover::before { opacity: .8; transform: scale(1.08); }
.music-spotify { --card-color: rgba(29, 185, 84, .55); }
.music-youtube { --card-color: rgba(255, 0, 64, .5); }
.music-apple { --card-color: rgba(250, 82, 160, .42); }
.music-instagram { --card-color: rgba(255, 43, 214, .48); }
.music-discord { --card-color: rgba(88, 101, 242, .55); }
.music-email { --card-color: rgba(255, 157, 66, .48); }
.music-card-logo {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
/* Apple Music + Email use dark-on-light logo art, so their badge stays a
   light chip; every other platform logo is light-on-transparent, made for
   the dark glass chip above (was a solid white box, which made light-colored
   logo art unreadable — see the Apple Music / YouTube wordmarks). */
.music-apple .music-card-logo,
.music-email .music-card-logo {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(0, 0, 0, .06);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 24px rgba(0, 0, 0, .22);
}
.music-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.music-card-meta { display: grid; gap: 4px; flex: 1; min-width: 0; }
.music-card-meta strong { font-size: 1.22rem; letter-spacing: -.02em; }
.music-card-meta em { font-style: normal; font-size: .92rem; color: var(--muted); }
.music-card-go {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 1.05rem;
    opacity: .8;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s ease, border-color .25s ease, opacity .25s ease;
}
.music-card:hover .music-card-go {
    transform: translate(3px, -3px) scale(1.06);
    opacity: 1;
    background: var(--card-color, rgba(0,240,255,.3));
    border-color: transparent;
}

/* Song catalogue on /music: one compact panel per EP. */
.catalogue-heading { margin-top: 56px; }
.catalogue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}
.catalogue-panel { padding: 20px 22px; }
.catalogue-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}
.catalogue-list li {
    position: relative;
    padding-left: 17px;
    color: #d7def0;
    font-size: .95rem;
    line-height: 1.5;
}
.catalogue-list li::before {
    content: "\266A";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: .8rem;
}

/* ============================ Video (YouTube) ======================== */
.video-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 980px) {
    .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
    .video-grid { grid-template-columns: 1fr; }
}
.video-card { margin: 0; display: grid; gap: 12px; }
.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #05060f;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Click-to-load YouTube facade: poster + play badge until the user asks for the player. */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #05060f; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .25s ease, transform .35s ease; }
.video-facade:hover img, .video-facade:focus-visible img { opacity: 1; transform: scale(1.03); }
.video-facade-play { position: absolute; top: 50%; left: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(7, 7, 19, .78); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.video-facade-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #ffffff; }
.video-facade:hover .video-facade-play { background: rgba(113, 58, 255, .85); }
.video-card figcaption { font-weight: 700; font-size: 1.05rem; color: #e7ecfb; padding-left: 2px; }
.video-group + .video-group { margin-top: 56px; }
.video-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.video-group-title { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: #f3f6ff; letter-spacing: .01em; }
.video-group-count {
    flex: none;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9fb0d6;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}

/* Forum guest call-to-action (read as guest, log in to post). */
.forum-guest-cta { text-align: center; display: grid; gap: 12px; padding: 36px 30px; }
.forum-guest-cta .kicker { color: var(--cyan); }
.forum-guest-cta h2 { margin: 0; }
.forum-guest-cta p { margin: 0 auto; max-width: 42ch; color: var(--muted); }
.forum-guest-cta .page-actions { justify-content: center; margin-top: 6px; }


/* Homepage = the 3D universe; the planets carry the content. The HTML sections
   stay in the DOM (SEO / no-WebGL) but are visually retired, and a spacer keeps
   the page scrollable so the camera can orbit. */
body.webgl-on.home-page main#main-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    pointer-events: none;
}
.universe-scroll-space { display: none; }
body.webgl-on.home-page .universe-scroll-space { display: block; height: 300vh; }


/* Centered homepage header (Vinyl-State + short description) */
.universe-header { display: none; }
body.home-page .universe-header {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
    position: fixed;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 38;
    pointer-events: none;
    padding: 0 16px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .7);
    animation: headerIn 1s ease both;
}
.universe-header strong {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
}
.universe-header span {
    font-size: clamp(.82rem, 1.6vw, 1rem);
    color: var(--muted);
    letter-spacing: .02em;
    max-width: 540px;
}
@keyframes headerIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 660px) { body.home-page .universe-header { top: 78px; } }

/* Futuristic, more transparent popup */
.world-pop {
    background: linear-gradient(150deg, rgba(10, 16, 34, .4), rgba(6, 10, 22, .4));
    border: 1px solid rgba(120, 230, 255, .35);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .5), 0 0 42px rgba(0, 230, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px) saturate(150%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
.world-pop-cta { background: linear-gradient(135deg, rgba(130, 244, 255, .95), rgba(185, 165, 255, .95)); }


/* More space between the top nav and the centered header */
body.home-page .universe-header { top: 124px; }
@media (max-width: 660px) { body.home-page .universe-header { top: 96px; } }

/* Homepage footer: slim fixed bottom pill (was rendering behind the nav) */
body.webgl-on.home-page .site-footer {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 38;
    margin: 0;
    padding: 9px 20px;
    border-top: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(7, 10, 24, .42);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    gap: 18px;
    pointer-events: auto;
}
body.webgl-on.home-page .site-footer > div:first-child { display: none; }
body.webgl-on.home-page .scroll-hint { bottom: 62px; }


/* ============================================================
   Auth pages (login / join / set-password / confirm)
   ============================================================ */

/* Dim the universe behind the form so the copy stays readable even when the
   3D sun drifts behind the heading. Sits above the canvas, below the content. */
.auth-page main#main-content::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(90% 90% at 70% 38%, rgba(3, 4, 12, .34), transparent 62%),
        linear-gradient(180deg, rgba(3, 4, 12, .52), rgba(3, 4, 12, .72));
}
/* Galaxy affordances make no sense while someone is filling in a form. */
body.auth-page .scroll-hint,
body.auth-page .universe-tip,
body.auth-page .world-progress { display: none; }

/* Balance the hero: a touch smaller than content pages so the headline and
   the form read as one composition instead of competing. */
.auth-intro h1 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
.auth-intro p { max-width: 46ch; }

/* The form panel gets denser glass than regular page panels — it floats over
   the brightest part of the scene. */
.auth-page .auth-card {
    border-color: rgba(255, 255, 255, .2);
    background: linear-gradient(150deg, rgba(16, 18, 40, .9), rgba(8, 9, 22, .93));
    backdrop-filter: blur(26px) saturate(135%);
}

/* Flash messages: unmistakable success/error styling instead of a plain pill. */
.flash {
    padding: 16px 22px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}
.flash-success {
    border-color: rgba(81, 255, 184, .42);
    background: linear-gradient(150deg, rgba(10, 38, 30, .93), rgba(7, 10, 18, .93));
    box-shadow: var(--shadow), 0 0 44px rgba(81, 255, 184, .16);
}
.flash-success::before { content: "✓  "; color: var(--green); font-weight: 900; }
.flash-error {
    border-color: rgba(255, 43, 92, .45);
    background: linear-gradient(150deg, rgba(46, 10, 22, .93), rgba(10, 7, 14, .93));
    box-shadow: var(--shadow), 0 0 44px rgba(255, 43, 92, .14);
}


/* ============================================================
   Merch shop (Printful)
   ============================================================ */
.merch-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.merch-buy-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.merch-variant-select { flex: 1 1 180px; min-width: 0; }
.merch-qty-select { flex: 0 0 72px; }
.merch-variant-select select,
.merch-qty-select input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: 11px 12px;
    color: #fff;
    background: rgba(2, 4, 14, .58);
    font-size: .88rem;
}
.merch-buy-form .btn { flex: 0 0 auto; min-height: 44px; padding: 11px 18px; font-size: .88rem; }

.shop-checkout-card { max-width: none; }
.shop-checkout-line { color: var(--muted); margin: 0 0 8px; }
.shop-address-form { max-width: 520px; margin-top: 18px; }
.shop-order-summary {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    display: grid;
    gap: 10px;
}
.shop-order-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
}
.shop-order-summary-row strong { color: #fff; font-weight: 800; }
.shop-order-summary-total {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 800;
}
.shop-order-summary-total strong { font-size: 1.3rem; }
.shop-pay-actions { margin-top: 20px; }
.shop-pay-actions form { margin: 0; }

.shop-order-card { flex-wrap: wrap; }
.shop-order-status {
    display: inline-block;
    margin-bottom: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .08);
    color: #dfe3ff;
}
.shop-order-status-pending { color: #8fd8ff; background: rgba(80, 180, 255, .14); }
.shop-order-status-paid,
.shop-order-status-dispatching,
.shop-order-status-submitted,
.shop-order-status-on_hold,
.shop-order-status-in_production { color: #ffd06a; background: rgba(255, 200, 90, .12); }
.shop-order-status-shipped,
.shop-order-status-delivered { color: #74e6b0; background: rgba(80, 220, 160, .14); }
.shop-order-status-failed,
.shop-order-status-cancelled,
.shop-order-status-dispatch_failed { color: #ff8fa8; background: rgba(255, 43, 92, .12); }
.shop-order-status-refunded { color: var(--muted); background: rgba(255, 255, 255, .07); }
/* Music orders (/downloads, body .store-page): 'paid' is the terminal success
   state (download ready), not an in-progress stage like merch — show green. */
.store-page .shop-order-status-paid { color: #74e6b0; background: rgba(80, 220, 160, .14); }
.shop-order-tracking { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.shop-order-tracking a { color: var(--cyan); font-weight: 800; text-decoration: none; }

/* Orders as a table — shared by /downloads (music orders) and /my-shop-orders
   (merch). One glass panel, header row + one grid row per order. */
.orders-table { padding: 0; overflow: hidden; }
.orders-table-head,
.orders-table-row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(120px, .9fr) minmax(70px, .5fr) minmax(110px, .9fr) minmax(120px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px 22px;
}
.orders-table-head {
    padding: 12px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--cyan);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.orders-table-row + .orders-table-row { border-top: 1px solid rgba(255, 255, 255, .08); }
.orders-item { min-width: 0; display: grid; gap: 3px; justify-items: start; }
.orders-item strong { font-size: .98rem; letter-spacing: -.01em; line-height: 1.25; }
.orders-item-meta { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.orders-item-meta a { color: var(--cyan); font-weight: 800; text-decoration: none; }
.orders-item-meta a:hover { text-decoration: underline; }
.orders-note { color: #ffd06a; font-size: .78rem; line-height: 1.45; }
.orders-status .shop-order-status { margin: 0; }
.orders-total { font-weight: 800; font-size: .92rem; white-space: nowrap; }
.orders-date { color: var(--muted); font-size: .84rem; }
.orders-action { justify-self: end; }
.orders-action .btn {
    width: auto;              /* beats the sitewide 660px .btn { width:100% } */
    min-height: 36px;
    padding: 7px 14px;
    font-size: .8rem;
    white-space: nowrap;
}
/* Section headers on the combined orders page (Music / Merch). */
.orders-section-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 26px 0 12px;
}
.orders-section-head:first-of-type { margin-top: 0; }
.orders-section-head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.orders-section-head span { color: var(--muted); font-size: .85rem; }

/* Contact & booking cards. */
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 3vw, 34px); }
.contact-card h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.6; flex: 1; }
.contact-card .btn { align-self: flex-start; }
.contact-card .page-actions { margin-top: 4px; }

/* Downloads variant: paid items only, so no Status column. */
.orders-table--downloads .orders-table-head,
.orders-table--downloads .orders-table-row {
    grid-template-columns: minmax(0, 2.4fr) minmax(70px, .5fr) minmax(110px, .9fr) minmax(120px, auto);
}
@media (max-width: 780px) {
    .orders-table-head { display: none; }
    .orders-table-row {
        grid-template-columns: auto auto minmax(0, 1fr);
        grid-template-areas:
            "item item item"
            "status total action";
        row-gap: 10px;
    }
    .orders-table--downloads .orders-table-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "item item"
            "total action";
    }
    .orders-item { grid-area: item; }
    .orders-status { grid-area: status; }
    .orders-total { grid-area: total; }
    .orders-date { display: none; }
    .orders-action { grid-area: action; }
}
/* Secondary guidance line under an order's meta row (pending/failed hints). */
.order-status-note { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }


/* ============================================================
   Support ticket system
   ============================================================ */
.support-ticket-table .forum-table-row { grid-template-columns: minmax(0, 1.4fr) minmax(140px, .5fr) minmax(140px, .45fr) minmax(140px, .45fr); }
.support-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    background: rgba(255, 255, 255, .08);
    color: #dfe3ff;
}
.support-status-open { color: #82f8ff; background: rgba(0, 240, 255, .12); }
.support-status-awaiting_customer { color: #ffd06a; background: rgba(255, 200, 90, .14); }
.support-status-resolved { color: #74e6b0; background: rgba(80, 220, 160, .14); }
.support-status-closed { color: var(--muted); background: rgba(255, 255, 255, .06); }
.support-post-staff .post-user-card { background: rgba(0, 240, 255, .08); }
.support-new-ticket { margin-top: 22px; }

/* Admin */
.admin-filter-strip { justify-content: flex-start; gap: 8px; }
.admin-filter-strip a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #dfe3ff;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 750;
}
.admin-filter-strip a.is-active { background: rgba(0, 240, 255, .16); color: #fff; }
.admin-filter-strip a:last-child { margin-left: auto; color: var(--cyan); font-weight: 900; }
.admin-status-form { margin-top: 14px; }
.admin-status-form select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(2, 4, 14, .58);
}
.admin-merch-group { margin-bottom: 16px; }
.admin-merch-group h2 { margin: 0 0 14px; font-size: 1.4rem; letter-spacing: -.03em; }
.admin-merch-variant-list { display: grid; gap: 10px; }
.admin-merch-variant-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}
.admin-merch-variant-name { flex: 1 1 160px; font-weight: 750; color: #fff; }
.admin-merch-price-form,
.admin-merch-toggle-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.admin-merch-price-form input {
    width: 90px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    padding: 9px 10px;
    color: #fff;
    background: rgba(2, 4, 14, .58);
}
.admin-merch-price-form .btn,
.admin-merch-toggle-form .btn { min-height: 40px; padding: 9px 14px; font-size: .82rem; }

@media (max-width: 660px) {
    .merch-buy-form { flex-direction: column; align-items: stretch; }
    .merch-qty-select { flex: none; }
    .support-ticket-table .forum-table-row { grid-template-columns: 1fr; }
    .admin-merch-variant-row { flex-direction: column; align-items: stretch; }
}
