/* ============================================================
   PROJECT ASTRAL — Main Stylesheet  v1.0.6
   Algalon / Deep-Space Cosmic Theme
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Space depths */
    --bg-primary:       #020309;
    --bg-secondary:     #04061a;
    --bg-card:          #080c1e;
    --bg-card-hover:    #0b1026;

    /* Celestial gold */
    --accent-gold:      #c8a951;
    --accent-gold-lt:   #f0d86a;
    --accent-gold-dk:   #8a6f2e;

    /* Algalon starlight blue */
    --accent-blue:      #4fc3f7;
    --accent-blue-dk:   #1a6fa8;

    /* Nebula purple */
    --accent-purple:    #a78bfa;

    /* Danger */
    --accent-red:       #c0392b;

    /* Text */
    --text-primary:     #e8e4f8;
    --text-secondary:   #8285a8;
    --text-muted:       #373a5c;

    /* Borders */
    --border:           rgba(79,195,247,0.07);
    --border-gold:      rgba(200,169,81,0.14);
    --border-bright:    rgba(200,169,81,0.38);
    --border-blue:      rgba(79,195,247,0.3);

    /* Shadows / glows */
    --glow:             0 0 30px rgba(200,169,81,0.22);
    --glow-blue:        0 0 40px rgba(79,195,247,0.14);
    --shadow-card:      0 4px 28px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.35);
    --shadow-hover:     0 28px 80px rgba(0,0,0,0.7), 0 0 50px rgba(200,169,81,0.07), 0 0 70px rgba(79,195,247,0.05);

    --font-heading:     'Cinzel', serif;
    --font-body:        'Open Sans', sans-serif;
    --radius:           7px;
    --ease:             0.25s ease;
    --ease-out:         cubic-bezier(0.16, 1, 0.3, 1);
    --header-h:         70px;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar          { width: 5px; height: 5px; }
::-webkit-scrollbar-track    { background: var(--bg-primary); }
::-webkit-scrollbar-thumb    { background: linear-gradient(to bottom, var(--accent-gold-dk), var(--accent-blue-dk)); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(to bottom, var(--accent-gold), var(--accent-blue)); }
::selection { background: rgba(200,169,81,0.28); color: var(--text-primary); }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Full-page persistent starfield */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(1px 1px at  4% 9%,  rgba(255,255,255,0.28) 0%, transparent 100%),
        radial-gradient(1px 1px at 12% 67%, rgba(79,195,247,0.32)  0%, transparent 100%),
        radial-gradient(1px 1px at 18% 38%, rgba(167,139,250,0.22) 0%, transparent 100%),
        radial-gradient(1px 1px at 26% 82%, rgba(255,255,255,0.18) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 33% 14%, rgba(200,169,81,0.38) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 56%, rgba(79,195,247,0.25)  0%, transparent 100%),
        radial-gradient(1px 1px at 47% 91%, rgba(255,255,255,0.15) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 29%, rgba(200,169,81,0.3)  0%, transparent 100%),
        radial-gradient(1px 1px at 61% 73%, rgba(79,195,247,0.28)  0%, transparent 100%),
        radial-gradient(1px 1px at 69% 6%,  rgba(255,255,255,0.22) 0%, transparent 100%),
        radial-gradient(1px 1px at 74% 48%, rgba(167,139,250,0.2)  0%, transparent 100%),
        radial-gradient(1px 1px at 82% 85%, rgba(79,195,247,0.18)  0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 88% 22%, rgba(200,169,81,0.28) 0%, transparent 100%),
        radial-gradient(1px 1px at 93% 60%, rgba(255,255,255,0.2)  0%, transparent 100%),
        radial-gradient(1px 1px at 97% 38%, rgba(167,139,250,0.18) 0%, transparent 100%),
        /* second layer — different positions */
        radial-gradient(1px 1px at  8% 44%, rgba(79,195,247,0.15)  0%, transparent 100%),
        radial-gradient(1px 1px at 15% 92%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 29% 25%, rgba(200,169,81,0.18)  0%, transparent 100%),
        radial-gradient(1px 1px at 44% 70%, rgba(167,139,250,0.14) 0%, transparent 100%),
        radial-gradient(1px 1px at 58% 12%, rgba(79,195,247,0.2)   0%, transparent 100%),
        radial-gradient(1px 1px at 72% 95%, rgba(255,255,255,0.12) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 52%, rgba(200,169,81,0.16)  0%, transparent 100%),
        radial-gradient(1px 1px at 96% 78%, rgba(79,195,247,0.14)  0%, transparent 100%);
    background-size: 1000px 700px;
}

a { color: var(--accent-gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-gold-lt); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.25; margin-bottom: 0.75rem; text-rendering: optimizeLegibility; }
p { margin-bottom: 1rem; }
code {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--accent-gold);
}

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 90px 0; }

/* ── Section typography ────────────────────────────────────── */
.section-title {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 40%, var(--accent-gold-lt) 70%, rgba(200,169,81,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 22px rgba(200,169,81,0.32));
}
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}
.section-divider {
    display: flex; align-items: center; justify-content: center; gap: 0.7rem;
    margin: 1.1rem auto 3rem;
    width: 360px;
    max-width: 100%;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,169,81,0.4));
}
.section-divider::after { background: linear-gradient(to left, transparent, rgba(200,169,81,0.4)); }
.section-divider-star {
    color: var(--accent-gold); font-size: 0.65rem; opacity: 0.7; flex-shrink: 0;
    animation: twinkle 3s ease-in-out infinite;
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.78rem 2rem;
    border: none; border-radius: var(--radius);
    font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; transition: all var(--ease); white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 55%, #e0b84a 100%);
    color: #07040a;
    box-shadow: 0 4px 22px rgba(200,169,81,0.38), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -120%; width: 65%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 180%; }
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-lt) 100%);
    color: #07040a; transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(200,169,81,0.55), 0 0 24px rgba(200,169,81,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: rgba(79,195,247,0.02); color: var(--accent-gold);
    border: 1px solid var(--border-bright);
    box-shadow: inset 0 1px 0 rgba(200,169,81,0.06);
    position: relative; overflow: hidden;
}
.btn-outline::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,169,81,0.06) 0%, transparent 100%);
    opacity: 0; transition: opacity var(--ease);
}
.btn-outline:hover::before { opacity: 1; }
.btn-outline:hover {
    color: var(--accent-gold-lt); border-color: var(--accent-gold);
    box-shadow: 0 0 28px rgba(200,169,81,0.14), 0 0 10px rgba(79,195,247,0.07), inset 0 1px 0 rgba(200,169,81,0.12);
    transform: translateY(-1px);
}
.btn-outline:active { transform: translateY(0); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(2,3,9,0.88);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(79,195,247,0.09);
    transition: all var(--ease);
}
.site-header::after {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,169,81,0.2), transparent);
    pointer-events: none;
}
.site-header.scrolled {
    background: rgba(2,3,9,0.97);
    box-shadow: 0 4px 50px rgba(0,0,0,0.75), 0 1px 0 rgba(79,195,247,0.07);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; }
.site-logo-mark {
    color: var(--accent-blue);
    font-size: 0.75rem;
    opacity: 0.7;
    animation: twinkle 4s ease-in-out infinite;
    line-height: 1;
    align-self: flex-start;
    margin-top: 3px;
}
.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.07em; line-height: 1.1;
}
.site-logo-sub {
    display: block; font-size: 0.52rem; color: var(--text-muted);
    letter-spacing: 0.24em; text-transform: uppercase; margin-top: 4px;
}
.site-logo:hover .site-logo-text { color: var(--accent-gold-lt); text-shadow: 0 0 20px rgba(200,169,81,0.4); }
.site-logo:hover .site-logo-mark { color: var(--accent-gold-lt); opacity: 1; }

/* Nav */
.primary-nav ul { display: flex; list-style: none; gap: 0; }
.primary-nav a {
    display: block; position: relative;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--ease);
    overflow: hidden;
}
.primary-nav a::after {
    content: '';
    position: absolute; bottom: 4px; left: 50%; right: 50%;
    height: 1px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-gold));
    transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-page-ancestor > a { color: var(--accent-gold); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-page-ancestor > a::after { left: 0.75rem; right: 0.75rem; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.header-username {
    font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.06em;
    color: var(--text-secondary); text-transform: uppercase;
    transition: color var(--ease);
    padding: 0.4rem 0.7rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
}
.header-username:hover {
    color: var(--accent-gold);
    border-color: var(--border-gold);
    background: rgba(200,169,81,0.04);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--accent-gold); transition: all var(--ease); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding-top: var(--header-h);
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 12% 68%, rgba(120,20,20,0.25)    0%, transparent 52%),
        radial-gradient(ellipse 55% 45% at 84% 16%, rgba(200,169,81,0.1)    0%, transparent 48%),
        radial-gradient(ellipse 65% 50% at 52% 98%, rgba(15,50,140,0.4)     0%, transparent 58%),
        radial-gradient(ellipse 45% 38% at 68% 42%, rgba(79,195,247,0.07)   0%, transparent 52%),
        radial-gradient(ellipse 38% 32% at 22% 22%, rgba(167,139,250,0.09)  0%, transparent 48%),
        radial-gradient(ellipse 30% 28% at 80% 75%, rgba(79,195,247,0.05)   0%, transparent 50%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(2,3,12,0.88)    0%, var(--bg-primary) 100%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particles canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
/* CSS star fallback behind canvas */
.hero-particles::before, .hero-particles::after {
    content: '';
    position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(200,169,81,0.7) 0%, transparent 100%),
        radial-gradient(1px   1px   at 70% 60%, rgba(79,195,247,0.6) 0%, transparent 100%),
        radial-gradient(1px   1px   at 40% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px   1px   at 85% 35%, rgba(200,169,81,0.45) 0%, transparent 100%),
        radial-gradient(1px   1px   at 25% 50%, rgba(79,195,247,0.4) 0%, transparent 100%),
        radial-gradient(1px   1px   at 55% 15%, rgba(167,139,250,0.45) 0%, transparent 100%),
        radial-gradient(1px   1px   at 90% 75%, rgba(255,255,255,0.28) 0%, transparent 100%),
        radial-gradient(1px   1px   at 33% 66%, rgba(200,169,81,0.35) 0%, transparent 100%),
        radial-gradient(1px   1px   at 78% 42%, rgba(79,195,247,0.35) 0%, transparent 100%);
    background-size: 460px 360px;
    animation: drift 30s linear infinite;
    opacity: 0.75;
}
.hero-particles::after {
    background-image:
        radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,0.38) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(79,195,247,0.45)  0%, transparent 100%),
        radial-gradient(1px 1px at 48% 12%, rgba(200,169,81,0.38)  0%, transparent 100%),
        radial-gradient(1px 1px at 92% 55%, rgba(167,139,250,0.32) 0%, transparent 100%),
        radial-gradient(1px 1px at  5% 82%, rgba(255,255,255,0.22) 0%, transparent 100%),
        radial-gradient(1px 1px at 72% 28%, rgba(79,195,247,0.28)  0%, transparent 100%);
    background-size: 310px 290px; animation-duration: 42s; animation-direction: reverse; opacity: 0.48;
}
@keyframes drift   { 0% { transform: translate(0,0); } 100% { transform: translate(72px,52px); } }
@keyframes twinkle { 0%,100% { opacity:1; } 50% { opacity:0.25; } }

.hero-content {
    position: relative; z-index: 2;
    max-width: 840px; padding: 2rem;
}
/* Void circle — Algalon's deep space eye */
.hero-content::before {
    content: '';
    position: absolute; width: 680px; height: 680px; border-radius: 50%;
    background: radial-gradient(circle, rgba(2,3,15,0.72) 0%, rgba(5,8,30,0.35) 45%, transparent 72%);
    border: 1px solid rgba(79,195,247,0.06);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: void-breathe 9s ease-in-out infinite;
    pointer-events: none;
}
/* Outer orbital ring */
.hero-content::after {
    content: '';
    position: absolute; width: 760px; height: 760px; border-radius: 50%;
    border: 1px dashed rgba(79,195,247,0.06);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: -1;
    animation: orbit-rotate 90s linear infinite;
    pointer-events: none;
}
@keyframes void-breathe {
    0%,100% { opacity:0.5; transform:translate(-50%,-50%) scale(1); }
    50%      { opacity:0.9; transform:translate(-50%,-50%) scale(1.035); }
}
@keyframes orbit-rotate { to { transform: translate(-50%,-50%) rotate(360deg); } }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.45rem 1.6rem;
    border: 1px solid rgba(79,195,247,0.32);
    border-radius: 100px;
    font-family: var(--font-heading); font-size: 0.68rem;
    letter-spacing: 0.26em; text-transform: uppercase;
    color: var(--accent-blue); margin-bottom: 2rem;
    background: rgba(79,195,247,0.04);
    box-shadow: 0 0 24px rgba(79,195,247,0.07), inset 0 1px 0 rgba(79,195,247,0.12);
    position: relative;
}
.hero-badge::before, .hero-badge::after {
    content: '◆';
    font-size: 0.4rem; opacity: 0.5;
    animation: twinkle 2.5s ease-in-out infinite;
}
.hero-badge::after { animation-delay: 1.25s; }

.hero-title {
    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 900; color: var(--text-primary);
    line-height: 0.95; margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-shadow: 0 0 80px rgba(200,169,81,0.2), 0 4px 0 rgba(0,0,0,0.6);
}
.hero-title span {
    background: linear-gradient(130deg, var(--accent-gold-dk) 0%, var(--accent-gold) 30%, var(--accent-gold-lt) 60%, var(--accent-blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: block;
    font-size: 1.12em;
    filter: drop-shadow(0 0 40px rgba(200,169,81,0.45));
    letter-spacing: 0.05em;
}
.hero-subtitle {
    font-size: 1.05rem; color: var(--text-secondary);
    margin-bottom: 2.75rem; letter-spacing: 0.03em;
    max-width: 560px; margin-left: auto; margin-right: auto;
    line-height: 1.9;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-status {
    display: inline-flex; align-items: center; gap: 0.85rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(2,3,9,0.55);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    padding: 0.5rem 1.4rem;
}
.hero-status strong { color: var(--accent-gold-lt); font-weight: 700; }
.hero-status .status-dot {
    background: #6ddc8b;
    box-shadow: 0 0 0 0 rgba(109,220,139,0.7);
    animation: astralPulse 2s ease-out infinite;
}
.hero-status.is-offline .status-dot {
    background: #e07070;
    box-shadow: 0 0 8px #e07070;
    animation: none;
}
.hero-status.is-offline strong { color: #e07070; }
.hero-scroll {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    color: rgba(79,195,247,0.4);
    font-family: var(--font-heading); font-size: 0.6rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    animation: scroll-bounce 3s ease-in-out infinite;
    transition: color var(--ease);
}
.hero-scroll:hover { color: var(--accent-gold); }
.hero-scroll::after {
    content: '';
    display: block; width: 1px; height: 48px;
    background: linear-gradient(to bottom, rgba(79,195,247,0.5), transparent);
}
@keyframes scroll-bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}

/* ── Status dot ────────────────────────────────────────────── */
.status-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue), 0 0 22px rgba(79,195,247,0.45);
    animation: pulse-star 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
.status-dot.large { width: 14px; height: 14px; }
.status-dot.offline { background: #c0392b; box-shadow: 0 0 10px #c0392b; animation: none; }
@keyframes pulse-star {
    0%,100% { transform:scale(1);   box-shadow: 0 0 8px var(--accent-blue), 0 0 18px rgba(79,195,247,0.3); }
    50%      { transform:scale(1.5); box-shadow: 0 0 18px var(--accent-blue), 0 0 36px rgba(79,195,247,0.5); }
}

/* ── Stats bar ─────────────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(4,6,22,0.98) 100%);
    border-bottom: 1px solid rgba(79,195,247,0.09);
    position: relative;
}
.stats-bar::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 120% at 50% 110%, rgba(79,195,247,0.04) 0%, transparent 65%);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.stat-item {
    padding: 1.75rem 1rem; text-align: center;
    border-right: 1px solid rgba(79,195,247,0.07);
    transition: background var(--ease);
    position: relative; overflow: hidden;
}
.stat-item::before {
    content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-gold-dk), transparent);
    transform: scaleX(0); transition: transform 0.4s var(--ease-out);
}
.stat-item:hover { background: rgba(79,195,247,0.025); }
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:last-child { border-right: none; }
.stat-value {
    font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700;
    color: var(--accent-gold); line-height: 1; margin-bottom: 0.4rem;
    text-shadow: 0 0 24px rgba(200,169,81,0.45);
    transition: text-shadow var(--ease);
}
.stat-item:hover .stat-value { text-shadow: 0 0 36px rgba(200,169,81,0.65); }
.stat-label { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.22em; text-transform: uppercase; }

/* ── News ──────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s var(--ease-out);
    box-shadow: var(--shadow-card);
    position: relative;
}
/* Left accent reveal bar */
.news-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}
.news-card:hover { border-color: rgba(200,169,81,0.28); transform: translateY(-7px); box-shadow: var(--shadow-hover); }
.news-card:hover::before { opacity: 1; }
.news-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
/* Empty-state placeholder when a post has no Featured Image. Atmospheric
   starfield + centered diamond mark (matches the rest of the astral
   visual language — no more random scroll/parchment emoji that felt
   AI-generated). Inline emojis passed via the template are hidden. */
.news-card-image-placeholder {
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
    font-size: 0 !important;          /* hide any inline emoji content */
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(200,169,81,0.10) 0%, transparent 60%),
        radial-gradient(1px 1px at 18% 38%, rgba(167,139,250,0.32) 0%, transparent 100%),
        radial-gradient(1.4px 1.4px at 33% 14%, rgba(200,169,81,0.45) 0%, transparent 100%),
        radial-gradient(1px 1px at 61% 73%, rgba(79,195,247,0.32) 0%, transparent 100%),
        radial-gradient(1.4px 1.4px at 88% 22%, rgba(200,169,81,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 47% 91%, rgba(255,255,255,0.18) 0%, transparent 100%),
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-card-hover) 100%);
    background-size: 100% 100%, 320px 200px, 320px 200px, 320px 200px, 320px 200px, 320px 200px, 100% 100%;
}
/* Centered diamond ornament — same shape as section dividers + hero
   ribbon mark, so the placeholder feels brand-consistent. */
.news-card-image-placeholder::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 14px; height: 14px;
    transform: translate(-50%, -50%) rotate(45deg);
    border: 1px solid var(--accent-gold);
    background: rgba(2,3,9,0.6);
    box-shadow: 0 0 22px rgba(200,169,81,0.32);
}
.news-card-image-placeholder::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 90px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(200,169,81,0.5) 50%, transparent 100%);
    transform: translate(-50%, -50%);
}
.news-card-body { padding: 1.6rem; }
.news-card-meta {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 0.1em; margin-bottom: 0.8rem;
    display: flex; gap: 0.75rem; align-items: center;
}
.news-card-meta .category {
    color: var(--accent-gold); text-transform: uppercase;
    padding: 0.12rem 0.55rem;
    background: rgba(200,169,81,0.08);
    border: 1px solid rgba(200,169,81,0.18);
    border-radius: 3px;
    font-family: var(--font-heading);
}
.news-card-title { font-size: 1.06rem; margin-bottom: 0.7rem; line-height: 1.4; }
.news-card-title a { color: var(--text-primary); transition: color var(--ease); }
.news-card-title a:hover { color: var(--accent-gold); }
.news-card-excerpt { font-size: 0.87rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.7; }
.news-card-link {
    font-family: var(--font-heading); font-size: 0.72rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-gold);
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: gap var(--ease), color var(--ease);
}
.news-card-link::after { content: '→'; transition: transform var(--ease); }
.news-card:hover .news-card-link { gap: 0.75rem; }
.news-card:hover .news-card-link::after { transform: translateX(3px); }

/* ── Features ──────────────────────────────────────────────── */
.features-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(5,7,22,0.97) 100%);
    position: relative; overflow: hidden;
}
.features-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(79,195,247,0.45), var(--accent-gold), rgba(79,195,247,0.45), transparent);
}
.features-section::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(79,195,247,0.05) 0%, transparent 65%),
        radial-gradient(ellipse 40% 30% at 15%  50%, rgba(167,139,250,0.03) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 85%  50%, rgba(79,195,247,0.03)  0%, transparent 60%);
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.feature-card {
    background: linear-gradient(160deg, rgba(8,12,31,0.9) 0%, rgba(5,8,22,0.95) 100%);
    border: 1px solid rgba(79,195,247,0.08);
    border-radius: var(--radius);
    padding: 2.5rem 1.75rem 2rem;
    text-align: center;
    transition: all 0.35s var(--ease-out);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(4px);
}
/* numbered corner */
.feature-card-num {
    position: absolute; top: 1rem; right: 1.1rem;
    font-family: var(--font-heading); font-size: 0.6rem;
    color: var(--text-muted); letter-spacing: 0.1em; opacity: 0.6;
}
/* top accent line */
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-blue), var(--accent-gold), var(--accent-blue), transparent);
    opacity: 0; transition: opacity 0.35s ease;
}
/* inner top glow */
.feature-card::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(79,195,247,0.07) 0%, transparent 65%);
    opacity: 0; transition: opacity 0.35s ease;
}
.feature-card:hover {
    border-color: rgba(79,195,247,0.22);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover), 0 0 50px rgba(79,195,247,0.05);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }
/* Icon orbital ring */
.feature-icon-wrap {
    width: 80px; height: 80px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,195,247,0.1) 0%, rgba(8,12,31,0.5) 60%, transparent 100%);
    border: 1px solid rgba(79,195,247,0.18);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s var(--ease-out);
    position: relative; flex-shrink: 0;
}
.feature-icon-wrap::before {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid rgba(79,195,247,0.07);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.feature-icon-wrap::after {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 1px solid rgba(200,169,81,0.05);
    transition: border-color 0.4s ease;
}
.feature-card:hover .feature-icon-wrap {
    border-color: rgba(79,195,247,0.45);
    box-shadow: 0 0 28px rgba(79,195,247,0.22), inset 0 0 20px rgba(79,195,247,0.07);
    transform: scale(1.06);
}
.feature-card:hover .feature-icon-wrap::before {
    border-color: rgba(79,195,247,0.2);
    box-shadow: 0 0 15px rgba(79,195,247,0.08);
}
.feature-card:hover .feature-icon-wrap::after { border-color: rgba(200,169,81,0.12); }
.feature-icon { font-size: 2rem; line-height: 1; }
.feature-title {
    font-size: 1rem; color: var(--accent-gold);
    letter-spacing: 0.05em; margin-bottom: 0.65rem;
    text-shadow: 0 0 14px rgba(200,169,81,0.28);
}
.feature-desc { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ── Rates ─────────────────────────────────────────────────── */
.rates-section {
    background: var(--bg-primary);
    position: relative; overflow: hidden;
}
.rates-section::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200,169,81,0.03) 0%, transparent 65%),
        radial-gradient(ellipse 40% 35% at 15% 80%, rgba(79,195,247,0.03) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 85% 20%, rgba(167,139,250,0.03) 0%, transparent 55%);
}
.rates-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; max-width: 880px; margin: 0 auto;
    position: relative;
}
.rate-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid rgba(79,195,247,0.07);
    border-left: 3px solid rgba(200,169,81,0.12);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    transition: all var(--ease);
    position: relative; overflow: hidden;
}
.rate-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(200,169,81,0.03) 0%, transparent 60%);
    opacity: 0; transition: opacity var(--ease);
}
.rate-item:hover { border-left-color: var(--accent-gold); box-shadow: var(--glow); }
.rate-item:hover::before { opacity: 1; }
.rate-name { font-family: var(--font-heading); font-size: 0.82rem; color: var(--text-secondary); letter-spacing: 0.05em; }
.rate-value {
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 0 16px rgba(200,169,81,0.4);
    transition: text-shadow var(--ease);
}
.rate-item:hover .rate-value { text-shadow: 0 0 28px rgba(200,169,81,0.65); }

/* ── CTA ───────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 90% at 50% 50%,  rgba(200,169,81,0.06) 0%, transparent 58%),
        radial-gradient(ellipse 45% 65% at 28% 85%,  rgba(79,195,247,0.04) 0%, transparent 52%),
        radial-gradient(ellipse 45% 65% at 72% 18%,  rgba(167,139,250,0.04) 0%, transparent 52%);
}
.cta-section::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(79,195,247,0.35), var(--accent-gold), rgba(79,195,247,0.35), transparent);
}
.cta-inner { position: relative; z-index: 1; }
/* Decorative corner ornaments on the CTA */
.cta-frame {
    display: inline-block;
    position: relative;
    padding: 0.5rem 2rem;
}
.cta-frame::before, .cta-frame::after {
    content: '◆ ◆ ◆';
    position: absolute;
    font-size: 0.4rem; letter-spacing: 0.6rem;
    color: rgba(200,169,81,0.35);
}
.cta-frame::before { top: 0; left: 50%; transform: translateX(-50%); }
.cta-frame::after  { bottom: 0; left: 50%; transform: translateX(-50%); }

/* ── Realm page ────────────────────────────────────────────── */
.realm-status-card {
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(5,8,22,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem; max-width: 700px; margin: 0 auto;
    box-shadow: var(--shadow-card);
    position: relative; overflow: hidden;
}
.realm-status-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-blue), var(--accent-gold), var(--accent-blue), transparent);
}
.realm-status-indicator { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.realm-status-label { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-primary); }
.realm-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.realm-stat { text-align: center; }

/* Connect steps */
.connect-steps { display: flex; flex-direction: column; gap: 1.25rem; max-width: 700px; margin: 0 auto; }
.connect-step {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(5,8,22,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--ease);
    position: relative; overflow: hidden;
}
.connect-step::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-gold-dk));
    opacity: 0; transition: opacity var(--ease);
}
.connect-step:hover { border-color: rgba(79,195,247,0.18); }
.connect-step:hover::before { opacity: 1; }
.connect-step-num {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-gold-dk), var(--accent-gold));
    color: #07040a; font-family: var(--font-heading); font-weight: 700;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(200,169,81,0.3), 0 0 8px rgba(200,169,81,0.2);
    position: relative;
}
.connect-step-num::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid rgba(200,169,81,0.2);
}
.connect-step h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--accent-gold); margin-bottom: 0.4rem; }
.connect-step p  { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.7; }
.code-block {
    background: rgba(2,3,9,0.8);
    border: 1px solid rgba(200,169,81,0.15);
    border-left: 3px solid var(--accent-gold-dk);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-family: monospace; font-size: 0.9rem;
    color: var(--accent-gold); margin-top: 0.75rem;
    word-break: break-all;
    box-shadow: inset 0 0 20px rgba(200,169,81,0.03);
}

/* ── Characters ────────────────────────────────────────────── */
.char-search-wrap { max-width: 560px; margin: 0 auto 3rem; }
.char-search-form { display: flex; gap: 0.75rem; }
.char-search-form input {
    flex: 1; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.75rem 1rem; color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.95rem; outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.char-search-form input:focus { border-color: rgba(79,195,247,0.4); box-shadow: 0 0 0 3px rgba(79,195,247,0.07); }
.char-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 0.75rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all var(--ease); position: relative; overflow: hidden;
}
.char-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-gold-dk));
    opacity: 0; transition: opacity var(--ease);
}
.char-card:hover { border-color: var(--border-gold); }
.char-card:hover::before { opacity: 1; }
.char-name { font-family: var(--font-heading); color: var(--accent-gold); font-size: 1.1rem; }
.char-meta { display: flex; gap: 1.5rem; font-size: 0.85rem; color: var(--text-secondary); }
.char-armory-link { display: inline-block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--accent-gold); }
.char-armory-link:hover { color: var(--accent-gold-lt); }

/* ── Downloads ─────────────────────────────────────────────── */
.downloads-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.download-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem;
    display: flex; align-items: flex-start; gap: 1.25rem;
    transition: all var(--ease); position: relative; overflow: hidden;
}
.download-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-blue), transparent);
    opacity: 0; transition: opacity var(--ease);
}
.download-card:hover { border-color: rgba(79,195,247,0.2); box-shadow: var(--glow-blue); }
.download-card:hover::before { opacity: 1; }
.download-icon { font-size: 2.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.download-info h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.download-info p  { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0; }

/* ── Page header ───────────────────────────────────────────── */
.page-header {
    padding: calc(var(--header-h) + 5rem) 0 3.75rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 75% 90% at 50% -25%, rgba(79,195,247,0.09)   0%, transparent 58%),
        radial-gradient(ellipse 55% 65% at 50%   8%, rgba(200,169,81,0.07)   0%, transparent 52%),
        radial-gradient(ellipse 35% 45% at 18%  55%, rgba(167,139,250,0.05)  0%, transparent 50%),
        radial-gradient(ellipse 35% 45% at 82%  55%, rgba(79,195,247,0.04)   0%, transparent 50%),
        /* scattered stars */
        radial-gradient(1px 1px at 12%  25%, rgba(79,195,247,0.55)  0%, transparent 100%),
        radial-gradient(1px 1px at 35%  15%, rgba(200,169,81,0.45)  0%, transparent 100%),
        radial-gradient(1px 1px at 58%  32%, rgba(255,255,255,0.3)  0%, transparent 100%),
        radial-gradient(1px 1px at 78%  18%, rgba(167,139,250,0.4)  0%, transparent 100%),
        radial-gradient(1px 1px at 90%  40%, rgba(79,195,247,0.4)   0%, transparent 100%),
        radial-gradient(1px 1px at 22%  72%, rgba(255,255,255,0.2)  0%, transparent 100%),
        radial-gradient(1px 1px at 68%  78%, rgba(200,169,81,0.3)   0%, transparent 100%);
    pointer-events: none;
}
.page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(79,195,247,0.38), var(--accent-gold-dk), rgba(79,195,247,0.38), transparent);
}
.page-title {
    font-size: 2.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin: 0;
    position: relative; z-index: 1;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-lt) 45%, var(--accent-blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 24px rgba(200,169,81,0.42));
}

/* ── Post pages ────────────────────────────────────────────── */
.post-header {
    padding: calc(var(--header-h) + 4rem) 0 3rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.post-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(79,195,247,0.3), var(--accent-gold-dk), rgba(79,195,247,0.3), transparent);
}
.post-title { font-size: 2.25rem; max-width: 820px; margin: 0 auto 1rem; color: var(--text-primary); }
.post-meta { font-size: 0.82rem; color: var(--text-muted); display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.post-content { padding: 4.5rem 0; }
.post-content .container { max-width: 820px; }
.post-body { font-size: 1rem; line-height: 2; color: var(--text-secondary); }
.post-body h2, .post-body h3 { color: var(--accent-gold); margin-top: 2.5rem; text-shadow: 0 0 14px rgba(200,169,81,0.25); }
.post-body p { margin-bottom: 1.5rem; }
.post-body img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.25rem 0; }
.post-body ul, .post-body ol { padding-left: 1.5rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body blockquote {
    border-left: 3px solid var(--accent-gold-dk);
    background: rgba(200,169,81,0.03);
    padding: 1rem 1.5rem; margin: 1.5rem 0;
    color: var(--text-secondary); font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-secondary); padding: 4.5rem 0 2rem;
    position: relative; overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(79,195,247,0.32), var(--accent-gold-dk), rgba(79,195,247,0.32), transparent);
}
.site-footer::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 50% 40% at 15% 100%, rgba(79,195,247,0.03)  0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(167,139,250,0.03) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,169,81,0.02)  0%, transparent 65%);
}
/* Faint watermark brand name */
.footer-watermark {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 12rem; font-weight: 900;
    color: rgba(79,195,247,0.018);
    letter-spacing: 0.2em; text-transform: uppercase;
    pointer-events: none; user-select: none;
    white-space: nowrap; overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3.5rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.footer-brand-name {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    color: var(--accent-gold); letter-spacing: 0.06em;
    display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem;
}
.footer-brand-name::before { content: '✦'; color: var(--accent-blue); font-size: 0.65rem; opacity: 0.7; }
.footer-brand p { font-size: 0.87rem; color: var(--text-secondary); max-width: 270px; line-height: 1.75; }
.footer-heading {
    font-family: var(--font-heading); font-size: 0.72rem;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent-gold); margin-bottom: 1.35rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-heading::after { content: ''; flex: 1; height: 1px; background: rgba(200,169,81,0.15); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { font-size: 0.87rem; color: var(--text-secondary); transition: all var(--ease); padding-left: 0; }
.footer-links a:hover { color: var(--accent-gold); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(79,195,247,0.06); padding-top: 1.75rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.77rem; color: var(--text-muted);
    position: relative; z-index: 1;
}

/* ── Pagination ────────────────────────────────────────────── */
.nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); font-family: var(--font-heading);
    font-size: 0.78rem; color: var(--text-secondary); transition: all var(--ease);
}
.nav-links .page-numbers:hover { border-color: var(--accent-gold); color: var(--accent-gold); box-shadow: var(--glow); }
.nav-links .current { background: rgba(200,169,81,0.08); border-color: var(--accent-gold); color: var(--accent-gold); }

/* ── Mobile nav & actions ──────────────────────────────────── */
.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.mobile-nav-actions {
    display: none; flex-direction: column; gap: 0.75rem;
    margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border);
}

/* ── Astral form card (replaces flat .register-card aesthetic) ── */
.register-card {
    position: relative;
    padding: 2.75rem 2.5rem;
    background:
        radial-gradient(ellipse 90% 50% at 50% 0%, rgba(200,169,81,0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.95) 100%);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transition: border-color var(--ease);
}
/* Top gold rule + top-left corner bracket. Bottom-right corner skipped
   (would need a third pseudo-element which CSS doesn't have without
   wrapping or extra spans — not worth the markup cost here). */
.register-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.65;
}
.register-card::after {
    content: '';
    position: absolute; top: -1px; left: -1px;
    width: 18px; height: 18px;
    border: 1px solid var(--accent-gold);
    border-right: none; border-bottom: none;
    opacity: 0.6;
    pointer-events: none;
}

.register-header {
    text-align: center; margin-bottom: 2rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gold);
}
.register-header h2 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 18px rgba(200,169,81,0.3);
}
.register-header p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }

/* Status banners — semantic colours, sharper-looking pill tone */
.register-error {
    background: rgba(192,57,43,0.12);
    border: 1px solid rgba(224,112,112,0.45);
    border-left: 3px solid #e07070;
    border-radius: var(--radius);
    color: #ffb8b8;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.register-success {
    background: rgba(32,139,60,0.12);
    border: 1px solid rgba(109,220,139,0.4);
    border-left: 3px solid #6ddc8b;
    border-radius: var(--radius);
    color: #b6f0c4;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.register-warning {
    background: rgba(200,169,81,0.08);
    border: 1px solid var(--border-gold);
    border-left: 3px solid var(--accent-gold);
    border-radius: var(--radius);
    color: var(--accent-gold-lt);
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.register-success-card {
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,169,81,0.12) 0%, transparent 65%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.95) 100%);
    border: 1px solid var(--border-bright);
    padding: 3.5rem 2.5rem;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 60px rgba(200,169,81,0.08);
}
.register-success-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.85;
}
.register-success-card::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.55;
}
.register-success-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 24px rgba(200,169,81,0.55));
}
.register-success-card h2 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 22px rgba(200,169,81,0.35);
}
.register-success-card p { color: var(--text-secondary); margin-bottom: 0; }

.register-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.form-label {
    font-size: 0.72rem;
    font-family: var(--font-heading);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.85;
}

.form-input {
    background: rgba(2,3,9,0.65);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    padding: 0.85rem 1.1rem;
    width: 100%;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:hover {
    border-color: var(--border-bright);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(2,3,9,0.85);
    box-shadow:
        0 0 0 3px rgba(200,169,81,0.12),
        0 0 22px rgba(200,169,81,0.18),
        inset 0 1px 0 rgba(200,169,81,0.06);
}
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0 1000px rgba(2,3,9,0.85) inset;
    transition: background-color 9999s ease-in-out 0s;
}
.form-hint {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-top: 0.15rem;
}

/* ── Roadmap ───────────────────────────────────────────────── */
.roadmap-board {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; align-items: start; margin-top: 2rem;
}
.roadmap-column {
    display: flex; flex-direction: column; gap: 0;
}
/* Single scroll container — no extra wrap, no positioned overlays.
   Spotlight fade is done with mask-image keyed off scroll edges via
   the .is-at-top / .is-at-bottom classes the JS toggles. */
.roadmap-column-list {
    margin-top: 1rem;
    max-height: 640px;
    overflow-y: auto;
    padding: 0.5rem 8px 0.5rem 0;
    display: flex; flex-direction: column; gap: 1rem;
    scrollbar-gutter: stable;
    -webkit-mask-image: linear-gradient(180deg,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%);
            mask-image: linear-gradient(180deg,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%);
    transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
}
.roadmap-column-list.is-at-top {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 60px), transparent 100%);
}
.roadmap-column-list.is-at-bottom {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60px, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 60px, #000 100%);
}
.roadmap-column-list.is-not-scrollable {
    -webkit-mask-image: none;
            mask-image: none;
}
.roadmap-column-list::-webkit-scrollbar       { width: 8px; }
.roadmap-column-list::-webkit-scrollbar-track { background: rgba(2,3,9,0.4); border-radius: 999px; }
.roadmap-column-list::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-gold-dk), rgba(79,195,247,0.4));
    border-radius: 999px;
    border: 1px solid rgba(200,169,81,0.18);
}
.roadmap-column-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-gold), var(--accent-blue));
}
.roadmap-column-header {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.8rem 1.1rem;
    min-height: 4.2rem; box-sizing: border-box;
    border-radius: var(--radius);
    font-family: var(--font-heading); font-size: 0.82rem;
    letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700;
    line-height: 1.2;
}
.roadmap-column-header > span:nth-child(2) { flex: 1; }
.roadmap-count {
    margin-left: auto; background: rgba(255,255,255,0.14);
    border-radius: 20px; padding: 0.1em 0.65em; font-size: 0.75rem;
}
.status-in-progress { background: rgba(79,195,247,0.09);  border: 1px solid rgba(79,195,247,0.28);  color: var(--accent-blue); }
.status-planned     { background: rgba(200,169,81,0.09);  border: 1px solid rgba(200,169,81,0.28);  color: var(--accent-gold); }
.status-completed   { background: rgba(109,220,139,0.07); border: 1px solid rgba(109,220,139,0.28); color: #6ddc8b; }
.status-cancelled   { background: rgba(100,100,120,0.07); border: 1px solid rgba(100,100,140,0.18); color: var(--text-muted); }
.status-under-consideration { background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.28); color: #a78bfa; }
.roadmap-card {
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(7,10,22,0.92) 100%);
    border: 1px solid rgba(79,195,247,0.07);
    border-radius: var(--radius); padding: 1.3rem;
    transition: all 0.35s var(--ease-out);
    box-shadow: var(--shadow-card);
    position: relative; overflow: hidden;
    /* Prevent flex-shrink — without this, in the column flex list with
       max-height all 16 Completed cards squish down to ~50px each to
       fit the cap instead of overflowing into the scroll area. */
    flex-shrink: 0;
}
/* Status-colored left border */
.roadmap-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: var(--status-color, var(--accent-gold-dk));
    opacity: 0.5; transition: opacity var(--ease);
}
.roadmap-card:hover { border-color: rgba(79,195,247,0.2); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.roadmap-card:hover::before { opacity: 1; }
.roadmap-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.65rem; align-items: center; }
.roadmap-tag {
    display: inline-block;
    background: rgba(200,169,81,0.1); border: 1px solid rgba(200,169,81,0.22);
    color: var(--accent-gold); font-size: 0.7rem;
    font-family: var(--font-heading); letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.15em 0.6em; border-radius: 3px;
}
.roadmap-priority-badge {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    padding: 0.15rem 0.5rem; border-radius: 3px; border: 1px solid currentColor; opacity: 0.8;
}
.roadmap-card-title { font-size: 0.98rem; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.4; }
.roadmap-card-desc  { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0.75rem; }
.roadmap-card-desc p { margin-bottom: 0.4rem; }
.roadmap-card-date  { font-size: 0.73rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── Bug Reports ───────────────────────────────────────────── */
/* Three column-header tints — red/gold/green for the three states. */
.bugstatus-reported    { background: rgba(224,112,112,0.09); border: 1px solid rgba(224,112,112,0.32); color: #e07070; }
.bugstatus-in-progress { background: rgba(200,169,81,0.09); border: 1px solid rgba(200,169,81,0.32); color: #c8a951; }
.bugstatus-fixed       { background: rgba(109,220,139,0.07); border: 1px solid rgba(109,220,139,0.32); color: #6ddc8b; }

/* Bug card differs from roadmap card: it's an <a> so the entire tile
   is a clickable target into the discussion view. */
.bug-card {
    text-decoration: none; color: inherit; display: block;
}
.bug-card:hover .roadmap-card-title { color: var(--accent-gold); }
.bug-card-meta {
    display: flex; flex-wrap: wrap; gap: 0.7rem;
    font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em;
    margin-top: 0.4rem;
}
.bug-empty-cell {
    padding: 1.4rem 1rem; text-align: center;
    color: var(--text-muted); font-size: 0.82rem; font-style: italic;
    border: 1px dashed rgba(200,169,81,0.18); border-radius: var(--radius);
    background: rgba(2,3,9,0.4);
}

/* Submit-bug collapsible card on the archive page. */
.astral-bug-submit {
    margin: 0 0 2.5rem;
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(7,10,22,0.9) 100%);
    border: 1px solid rgba(200,169,81,0.22);
    border-radius: var(--radius); padding: 1rem 1.4rem;
}
.astral-bug-submit > summary {
    cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-heading); font-size: 0.95rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent-gold);
}
.astral-bug-submit > summary::-webkit-details-marker { display: none; }
.astral-bug-submit-chevron { transition: transform 0.25s ease; }
.astral-bug-submit[open] .astral-bug-submit-chevron { transform: rotate(180deg); }
.astral-bug-form { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.astral-bug-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.astral-bug-form label > span {
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
.astral-bug-form input[type="text"],
.astral-bug-form textarea,
.astral-bug-comment-form textarea {
    background: rgba(2,3,9,0.6); border: 1px solid var(--border);
    border-radius: 4px; padding: 0.7rem 0.9rem;
    color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
    transition: border-color var(--ease);
}
.astral-bug-form input[type="text"]:focus,
.astral-bug-form textarea:focus,
.astral-bug-comment-form textarea:focus {
    border-color: var(--accent-gold); outline: none;
}
.astral-bug-form-error {
    color: #e07070; font-size: 0.85rem; margin: 0;
    padding: 0.6rem 0.9rem; border-radius: 4px;
    background: rgba(224,112,112,0.08); border: 1px solid rgba(224,112,112,0.3);
}
.astral-bug-form-actions { display: flex; justify-content: flex-end; }
.astral-bug-form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    align-items: start;
}
.astral-bug-form-row select {
    background: rgba(2,3,9,0.6); border: 1px solid var(--border);
    border-radius: 4px; padding: 0.7rem 0.9rem;
    color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
    width: 100%;
}
.astral-bug-form-row select:focus { border-color: var(--accent-gold); outline: none; }
.astral-bug-form-priority { display: flex; flex-direction: column; gap: 0.35rem; }
.astral-bug-form-priority-label {
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
.astral-bug-form-priority-group { display: flex; gap: 0.4rem; }
.astral-bug-priority-pill {
    flex: 1; cursor: pointer; text-align: center;
    padding: 0.7rem 0.4rem; border-radius: 4px;
    background: rgba(2,3,9,0.6); border: 2px solid transparent;
    transition: border-color var(--ease), background var(--ease);
    font-size: 0.85rem; color: var(--text-secondary);
}
.astral-bug-priority-pill input { display: none; }
.astral-bug-priority-pill:has(input:checked) {
    border-color: var(--p-color); color: var(--p-color); font-weight: 600;
}
@media (max-width: 540px) {
    .astral-bug-form-row { grid-template-columns: 1fr; }
}

/* Card + single-page badges. */
.bug-card-tags, .bug-single-tags {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem;
}
.bug-single-tags { margin: 0.7rem 0 0.5rem; }
.bug-tag {
    display: inline-flex; align-items: center;
    font-size: 0.7rem; font-family: var(--font-heading);
    letter-spacing: 0.07em; text-transform: uppercase;
    padding: 0.18em 0.6em; border-radius: 3px;
    border: 1px solid currentColor;
}
.bug-tag-cat {
    color: var(--accent-gold); border-color: rgba(200,169,81,0.32);
    background: rgba(200,169,81,0.08);
}
.bug-tag-pri { font-weight: 700; }

/* Login hint shown to guests in place of the submit form. */
.astral-bug-loginhint {
    margin: 0 0 2.5rem; padding: 0.9rem 1.4rem;
    background: rgba(79,195,247,0.06); border: 1px solid rgba(79,195,247,0.18);
    border-radius: var(--radius); color: var(--text-secondary);
    font-size: 0.9rem; text-align: center;
}
.astral-bug-loginhint a { color: var(--accent-gold); font-weight: 600; }

/* ── Bug moderation (GM/Admin/reporter actions) ──────────────── */
/* Inline GM/Admin label rendered next to a username. Two visual
   variants — 'GM' = blue, 'Admin' = gold — so staff are immediately
   recognisable in comments and reporter lines without needing a
   separate user list lookup. */
.astral-gm-badge {
    display: inline-block;
    padding: 0.05em 0.5em; margin-left: 0.4em;
    font-size: 0.62rem; font-weight: 700;
    font-family: var(--font-heading); letter-spacing: 0.12em;
    text-transform: uppercase; vertical-align: 1px;
    border-radius: 3px;
    color: var(--accent-blue); border: 1px solid rgba(79,195,247,0.5);
    background: rgba(79,195,247,0.08);
}
.astral-gm-badge.is-admin {
    color: var(--accent-gold); border-color: rgba(200,169,81,0.6);
    background: rgba(200,169,81,0.1);
}

/* Staff comments get a subtle gold left-bar so they stand out in
   long discussion threads. */
.astral-bug-comment.is-staff {
    border-color: rgba(200,169,81,0.32);
    box-shadow: inset 3px 0 0 var(--accent-gold);
}

/* Header action row on the single-bug page (Edit / status changer / Delete). */
.bug-actions {
    display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
    margin-top: 1.2rem; padding-top: 1rem;
    border-top: 1px dashed rgba(200,169,81,0.18);
}
.bug-action-btn {
    display: inline-flex; align-items: center; gap: 0.4em;
    padding: 0.45rem 0.95rem; border-radius: 4px;
    background: rgba(2,3,9,0.6); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.82rem;
    text-decoration: none; cursor: pointer; font-family: inherit;
    transition: all var(--ease);
}
.bug-action-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.bug-action-danger { color: #e07070; border-color: rgba(224,112,112,0.32); }
.bug-action-danger:hover { background: rgba(224,112,112,0.12); border-color: #e07070; color: #e07070; }
.bug-delete-form { display: inline-flex; margin: 0; }

.bug-status-changer {
    display: inline-flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
    margin: 0;
}
.bug-status-changer-label {
    font-family: var(--font-heading); font-size: 0.72rem;
    letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-muted);
    margin-right: 0.2rem;
}
.bug-status-pill {
    cursor: pointer; padding: 0.4rem 0.8rem; border-radius: 4px;
    font-size: 0.78rem; font-family: inherit;
    background: rgba(2,3,9,0.6); border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    transition: all var(--ease);
}
.bug-status-pill:hover:not(:disabled) {
    border-color: var(--pill-color); color: var(--pill-color);
    background: rgba(255,255,255,0.04);
}
.bug-status-pill.is-active {
    border-color: var(--pill-color); color: var(--pill-color);
    background: color-mix(in srgb, var(--pill-color) 15%, transparent);
    cursor: default; font-weight: 600;
}
.bug-status-pill:disabled { opacity: 0.95; }

/* Inline comment-delete (small trash icon, top-right of each comment). */
.astral-bug-comment-meta { display: inline-flex; gap: 0.6rem; align-items: center; }
.astral-bug-comment-delete { display: inline-flex; margin: 0; }
.astral-bug-comment-delete button {
    background: transparent; border: 0; cursor: pointer;
    color: var(--text-muted); font-size: 0.85rem; padding: 0 0.2rem;
    transition: color var(--ease);
}
.astral-bug-comment-delete button:hover { color: #e07070; }

/* Edit form on the single-bug page mirrors the submit form's chrome. */
.astral-bug-edit-form {
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(7,10,22,0.9) 100%);
    border: 1px solid rgba(200,169,81,0.22);
    border-radius: var(--radius); padding: 1.4rem 1.6rem;
}

/* The bug report body is the main artifact on this page — it has to
   visually outweigh the discussion thread below. Give it a framed
   card with a status-colored left bar, a labelled header, and more
   generous internal padding than the comment cards.
   The status colour drives the bar + the inline status chip, so a
   "Fixed" report reads green at a glance even if you scrolled past
   the hero. */
.bug-report-body {
    max-width: 820px; margin: 0 auto 2.5rem;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--status-color, var(--accent-gold)) 6%, var(--bg-card)) 0%,
        rgba(7,10,22,0.95) 100%);
    border: 1px solid color-mix(in srgb, var(--status-color, var(--accent-gold)) 30%, transparent);
    border-left: 4px solid var(--status-color, var(--accent-gold));
    border-radius: var(--radius);
    padding: 1.6rem 2rem 1.8rem;
    box-shadow: 0 14px 40px rgba(0,0,0,0.32),
                0 0 0 1px rgba(255,255,255,0.02) inset;
    position: relative; overflow: hidden;
}
/* Subtle radial highlight in the upper-right so the card has depth
   without competing with the hero panel above. */
.bug-report-body::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(140% 80% at 100% 0%,
        color-mix(in srgb, var(--status-color, var(--accent-gold)) 10%, transparent) 0%,
        transparent 60%);
    pointer-events: none; opacity: 0.7;
}
.bug-report-body > * { position: relative; }
.bug-report-body-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem; margin-bottom: 1rem; padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bug-report-body-label {
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent-gold); font-weight: 700;
}
.bug-report-body-status {
    font-family: var(--font-heading); font-size: 0.82rem;
    letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
    padding: 0.25rem 0.7rem; border-radius: 999px;
    background: rgba(2,3,9,0.55);
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
/* Inside the card the body text uses the standard .post-body rules
   (handled separately) but the first paragraph reads a touch larger
   to stress the report's key claim. */
.bug-report-body .post-body { color: var(--text-primary); }
.bug-report-body .post-body > p:first-child {
    font-size: 1.06rem; color: var(--text-primary);
}

/* Tone the discussion comments down a notch so the report frame
   stays visually dominant. They were on equal footing before. */
.astral-bug-comment {
    background: rgba(7,10,22,0.4);
    border-color: rgba(255,255,255,0.05);
}

/* ── Screenshot dropzone + gallery ───────────────────────────── */
.astral-bug-form-screens > span { /* match the other form-label rows */
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-secondary); display: block; margin-bottom: 0.35rem;
}
.astral-bug-dropzone {
    position: relative;
    border: 2px dashed rgba(200,169,81,0.35);
    border-radius: var(--radius);
    background: rgba(2,3,9,0.5);
    transition: border-color var(--ease), background var(--ease);
}
.astral-bug-dropzone.is-dragover {
    border-color: var(--accent-gold);
    background: rgba(200,169,81,0.08);
}
.astral-bug-dropzone.has-rejected {
    border-color: #e07070;
    animation: bugDropShake 0.35s;
}
@keyframes bugDropShake {
    0%,100%   { transform: translateX(0); }
    25%       { transform: translateX(-3px); }
    75%       { transform: translateX(3px); }
}
.astral-bug-dropzone-input {
    /* visually hide but keep keyboard-accessible. */
    position: absolute; left: -9999px; opacity: 0;
}
.astral-bug-dropzone-prompt {
    cursor: pointer; padding: 1.6rem 1.4rem;
    text-align: center; display: flex; flex-direction: column; gap: 0.45rem;
    color: var(--text-secondary);
}
.astral-bug-dropzone-icon { font-size: 1.6rem; }
.astral-bug-dropzone-text { font-size: 0.95rem; }
.astral-bug-dropzone-text strong { color: var(--accent-gold); }
.astral-bug-dropzone-hint {
    font-size: 0.75rem; letter-spacing: 0.05em; color: var(--text-muted);
}

.astral-bug-dropzone-previews {
    list-style: none; padding: 0.6rem 0.6rem 0.8rem; margin: 0;
    border-top: 1px solid rgba(200,169,81,0.18);
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}
.astral-bug-dropzone-preview {
    position: relative; border-radius: 4px; overflow: hidden;
    background: #000; border: 1px solid rgba(255,255,255,0.06);
}
.astral-bug-dropzone-preview img {
    display: block; width: 100%; height: 90px; object-fit: cover;
}
.astral-bug-dropzone-preview-meta {
    display: block; padding: 0.35rem 0.4rem;
    font-size: 0.66rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.astral-bug-dropzone-preview-remove {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: rgba(0,0,0,0.7); color: #fff; font-size: 1rem; line-height: 1;
}
.astral-bug-dropzone-preview-remove:hover { background: #e07070; }

/* Saved-screenshot gallery on the bug detail card. */
.bug-report-body-shots {
    margin-top: 1.6rem; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.bug-report-body-shots-label {
    display: block; margin-bottom: 0.7rem;
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent-gold); font-weight: 700;
}
.astral-bug-gallery {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
}
.astral-bug-gallery li { position: relative; }
.astral-bug-gallery a, .astral-bug-gallery img {
    display: block; width: 100%; border-radius: 4px;
}
.astral-bug-gallery img {
    height: 110px; object-fit: cover;
    border: 1px solid rgba(200,169,81,0.18);
    transition: transform var(--ease), border-color var(--ease);
}
.astral-bug-gallery a:hover img {
    transform: scale(1.02);
    border-color: var(--accent-gold);
}

/* Edit-mode gallery: small × button overlaid. */
.astral-bug-existing-shots-label {
    display: block; margin-bottom: 0.5rem;
    font-family: var(--font-heading); font-size: 0.74rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.astral-bug-gallery.is-edit img { height: 90px; }
.astral-bug-gallery-remove-form {
    position: absolute; top: 4px; right: 4px; margin: 0;
}
.astral-bug-gallery-remove {
    width: 22px; height: 22px; border-radius: 50%;
    border: 0; cursor: pointer;
    background: rgba(0,0,0,0.75); color: #fff; font-size: 1rem; line-height: 1;
}
.astral-bug-gallery-remove:hover { background: #e07070; }

/* Single-bug discussion list. */
.astral-bug-discussion .astral-bug-comments {
    list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem;
}
.astral-bug-comment {
    background: rgba(7,10,22,0.55); border: 1px solid rgba(79,195,247,0.1);
    border-radius: var(--radius); padding: 1rem 1.2rem;
}
.astral-bug-comment-head {
    display: flex; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.82rem; color: var(--text-muted);
}
.astral-bug-comment-author { color: var(--accent-gold); font-weight: 600; }
.astral-bug-comment-body {
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65;
}
.astral-bug-comment-body p { margin: 0 0 0.5rem; }
.astral-bug-comment-form {
    margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem;
}
.astral-bug-comment-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.astral-bug-comment-form label > span {
    font-family: var(--font-heading); font-size: 0.78rem;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
.astral-bug-comment-form button { align-self: flex-end; }

/* ── Armory ────────────────────────────────────────────────── */
.armory-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--bg-card); border: 1px solid var(--border-bright);
    border-radius: var(--radius); padding: 1.5rem 2rem; margin-bottom: 1rem;
    box-shadow: var(--glow);
}
.armory-banner h3 { color: var(--accent-gold); font-family: var(--font-heading); }
.armory-embed-wrap { width: 100%; background: var(--bg-primary); }
.armory-embed-wrap iframe { width: 100%; border: none; display: block; min-height: 800px; }
body.page-template-page-armory .section,
body.page-template-page-armory footer.site-footer { margin-top: 0; }

/* ── News archive ──────────────────────────────────────────── */
.news-grid-large { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.news-filter-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.85rem;
    border: 1px solid var(--border); color: var(--text-muted);
    text-decoration: none; transition: all var(--ease);
}
.news-filter-btn:hover, .news-filter-btn.active {
    border-color: var(--filter-color, var(--accent-gold));
    color: var(--filter-color, var(--accent-gold));
    background: rgba(200,169,81,0.08);
}
.news-type-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem;
    border-radius: 999px; border: 1px solid; text-transform: uppercase; letter-spacing: .04em;
}
.news-pagination {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; flex-wrap: wrap;
}
.news-pagination a, .news-pagination span {
    padding: 0.5rem 1rem; border-radius: 4px; border: 1px solid var(--border);
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: all var(--ease);
}
.news-pagination a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.news-pagination .current { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(200,169,81,0.1); }

/* ── Announcement banner ───────────────────────────────────── */
.announcement-banner {
    background: linear-gradient(90deg, rgba(79,195,247,0.06) 0%, rgba(200,169,81,0.08) 50%, rgba(79,195,247,0.06) 100%);
    border-bottom: 1px solid rgba(200,169,81,0.18);
    padding: 0.65rem 0; text-align: center;
    font-size: 0.87rem; color: var(--accent-gold-lt);
    letter-spacing: 0.04em; position: relative;
}
.announcement-banner::before, .announcement-banner::after {
    content: '✦'; color: var(--accent-blue); font-size: 0.45rem; opacity: 0.6;
    position: absolute; top: 50%; transform: translateY(-50%);
}
.announcement-banner::before { left: 2rem; }
.announcement-banner::after  { right: 2rem; }
.announcement-banner-link { color: var(--accent-gold-lt); display: inline-flex; align-items: center; gap: 0.6rem; transition: color var(--ease); }
.announcement-banner-link:hover { color: #fff; }
.announcement-banner-arrow { background: rgba(200,169,81,0.18); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.8rem; transition: background var(--ease), transform var(--ease); }
.announcement-banner-link:hover .announcement-banner-arrow { background: rgba(200,169,81,0.35); transform: translateX(2px); }

/* ── Admin panel ───────────────────────────────────────────── */
.admin-stats {
    display: flex; align-items: center; gap: 2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem;
}
.admin-stat { display: flex; flex-direction: column; align-items: center; }
.admin-stat-val { font-size: 1.6rem; font-weight: 700; font-family: var(--font-heading); color: var(--text-primary); line-height: 1; }
.admin-stat-label { font-size: 0.73rem; color: var(--text-muted); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-card); font-size: 0.88rem; }
.admin-table th { background: var(--bg-secondary); color: var(--text-muted); font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.03); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(79,195,247,0.015); }
.admin-badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.73rem; font-weight: 600; }
.admin-badge.online  { background: rgba(32,139,60,0.15);  color: #6ddc8b; border: 1px solid rgba(32,139,60,0.35); }
.admin-badge.offline { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border); }
.admin-badge.banned  { background: rgba(192,57,43,0.15);  color: #e07070; border: 1px solid rgba(192,57,43,0.35); }
.admin-gm-admin  { color: var(--accent-gold); font-weight: 600; font-size: 0.82rem; }
.admin-gm-gm     { color: var(--accent-blue); font-size: 0.82rem; }
.admin-gm-player { color: var(--text-muted); font-size: 0.82rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.admin-btn { padding: 0.3rem 0.65rem; border-radius: 4px; font-size: 0.76rem; font-weight: 600; border: 1px solid; cursor: pointer; background: transparent; transition: background 0.15s; white-space: nowrap; }
.admin-btn.kick  { color: #f4c542; border-color: rgba(244,197,66,0.35); }
.admin-btn.kick:hover  { background: rgba(244,197,66,0.1); }
.admin-btn.ban   { color: #e07070; border-color: rgba(224,112,112,0.35); }
.admin-btn.ban:hover   { background: rgba(224,112,112,0.1); }
.admin-btn.unban { color: #6ddc8b; border-color: rgba(109,220,139,0.35); }
.admin-btn.unban:hover { background: rgba(109,220,139,0.1); }
.admin-btn.reset { color: var(--text-muted); border-color: var(--border); }
.admin-btn.reset:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.admin-filter-toggle { display: flex; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-filter-btn { padding: 0.45rem 1rem; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: background 0.15s, color 0.15s; display: flex; align-items: center; gap: 0.4rem; }
.admin-filter-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.admin-filter-btn.active { background: var(--bg-card); color: var(--accent-gold); }
.admin-filter-count { background: rgba(255,255,255,0.09); border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.7rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .rates-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .primary-nav, .header-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .primary-nav.open {
        display: block; position: fixed;
        top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: rgba(2,3,9,0.98); backdrop-filter: blur(20px);
        padding: 2rem; overflow-y: auto; border-top: 1px solid var(--border);
    }
    .primary-nav.open ul { flex-direction: column; gap: 0.2rem; }
    .primary-nav.open a  { font-size: 1.05rem; padding: 1rem 1.25rem; }
    .mobile-nav-actions  { display: flex; }
    .header-username     { display: none; }
    .stats-grid          { grid-template-columns: repeat(2, 1fr); }
    .features-grid, .news-grid, .rates-grid, .downloads-grid { grid-template-columns: 1fr; }
    .footer-grid         { grid-template-columns: 1fr; gap: 2.25rem; }
    .footer-watermark    { font-size: 5rem; }
    .footer-bottom       { flex-direction: column; gap: 0.5rem; text-align: center; }
    .realm-stats-row     { grid-template-columns: repeat(2, 1fr); }
    .char-search-form    { flex-direction: column; }
    .armory-banner       { flex-direction: column; text-align: center; }
    .armory-banner .btn  { width: 100%; }
    .admin-stats         { flex-wrap: wrap; gap: 1rem; }
    .admin-table th:nth-child(4), .admin-table td:nth-child(4),
    .admin-table th:nth-child(5), .admin-table td:nth-child(5) { display: none; }
    .roadmap-board       { grid-template-columns: 1fr; }
    .section             { padding: 65px 0; }
    .section-title       { font-size: 1.65rem; }
    .hero-subtitle       { font-size: 0.95rem; }
    .stats-bar           { padding: 1.25rem 0; }
    .stat-value          { font-size: 1.6rem; }
    .btn                 { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .header-inner        { gap: 0.75rem; }
    .rate-item           { padding: 1.25rem 1rem; }
    .connect-step        { padding: 1.25rem; }
    .register-card       { padding: 1.75rem 1.25rem; }
    .footer-grid         { gap: 2.5rem; }
}
@media (max-width: 480px) {
    .container   { padding: 0 1.1rem; }
    .hero-title  { font-size: 2.7rem; }
    .hero-badge  { font-size: 0.62rem; letter-spacing: 0.18em; }
    .hero-content::before, .hero-content::after { display: none; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
    .section     { padding: 55px 0; }
    .connect-step { flex-direction: column; gap: 0.75rem; }
    .connect-step-num { width: 38px; height: 38px; font-size: 1rem; }
    .code-block  { font-size: 0.78rem; }
    .realm-stats-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .page-title  { font-size: 1.85rem; }
    .section-title { font-size: 1.45rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .announcement-banner::before, .announcement-banner::after { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   ASTRAL v1.1 — Stormforge / Tauri visual primitives
   Pure CSS additions, no replacements. Existing classes still work
   identically; new templates opt in by adding `.astral-*` classes.
   ════════════════════════════════════════════════════════════════ */

/* ── Ornamental card with corner brackets + top rule ─────────── */
.astral-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(200,169,81,0.04) 0%, transparent 30%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.92) 100%);
    border: 1px solid var(--border-gold);
    padding: 2rem 2.25rem;
    transition: border-color var(--ease), transform var(--ease);
}
.astral-card::before,
.astral-card::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--accent-gold);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity var(--ease), border-color var(--ease);
}
/* Top-left corner bracket */
.astral-card::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
}
/* Bottom-right corner bracket */
.astral-card::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
}
.astral-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}
.astral-card:hover::before,
.astral-card:hover::after { opacity: 1; }

/* Optional gold rule above the card heading */
.astral-card-rule {
    width: 38px; height: 2px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
    margin: 0 0 0.75rem;
}

/* ── Numbered feature row (replaces emoji feature cards) ─────── */
/* Used by .astral-features-grid wrapping multiple .astral-feature */
.astral-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    overflow: hidden;
}
.astral-feature {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 2rem 2rem 2rem 1.5rem;
    background: var(--bg-card);
    transition: background var(--ease);
}
.astral-feature:hover { background: var(--bg-card-hover); }

.astral-feature-num {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-gold);
    opacity: 0.75;
    letter-spacing: 0.02em;
    text-shadow: 0 0 20px rgba(200,169,81,0.18);
    align-self: start;
    padding-top: 0.25rem;
    /* Decorative vertical rule between number and content */
    border-right: 1px solid var(--border-gold);
    padding-right: 1.25rem;
    text-align: right;
}
.astral-feature-body { display: flex; flex-direction: column; gap: 0.55rem; }
.astral-feature-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0;
}
.astral-feature-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Constellation divider (richer than .section-divider) ────── */
.astral-divider-ribbon {
    position: relative;
    margin: 1.4rem auto 3rem;
    height: 18px;
    width: min(440px, 80%);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.astral-divider-ribbon::before,
.astral-divider-ribbon::after {
    content: '';
    flex: 1; height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(200,169,81,0.45) 70%, transparent 100%);
}
.astral-divider-ribbon::after {
    background: linear-gradient(to left, transparent 0%, rgba(200,169,81,0.45) 70%, transparent 100%);
}
.astral-divider-ribbon-medal {
    margin: 0 0.9rem;
    width: 12px; height: 12px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    position: relative;
    box-shadow: 0 0 12px rgba(200,169,81,0.28);
    flex-shrink: 0;
}
.astral-divider-ribbon-medal::before {
    content: '';
    position: absolute; inset: 2px;
    background: var(--accent-gold);
    opacity: 0.55;
    animation: twinkle 4s ease-in-out infinite;
}
/* The decorative horizontal line through the diamond was removed —
   it lived inside a `rotate(45deg)` parent, so even with a counter-
   rotate the y-position drifted off the parent ribbon's gold line.
   The flanking gold gradients already meet the diamond cleanly. */

/* ── Stat card (refined version of .stat-item with accent rail) */
.astral-stat-card {
    position: relative;
    padding: 1.6rem 1.25rem 1.4rem;
    background: linear-gradient(180deg, rgba(200,169,81,0.03) 0%, transparent 100%);
    border: 1px solid var(--border-gold);
    text-align: center;
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease);
}
.astral-stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.45;
    transition: opacity var(--ease);
}
.astral-stat-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.astral-stat-card:hover::before { opacity: 0.85; }
.astral-stat-card-value {
    font-family: var(--font-heading);
    font-size: 1.9rem; font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 24px rgba(200,169,81,0.28);
}
.astral-stat-card-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-secondary);
}

/* ── Hero badge revised (smaller dots flanking text) ─────────── */
.astral-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.85rem;
    padding: 0;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.85;
}
.astral-hero-eyebrow::before,
.astral-hero-eyebrow::after {
    content: '';
    width: 36px; height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold));
}
.astral-hero-eyebrow::after { background: linear-gradient(to left, transparent, var(--accent-gold)); }

/* ── CTA banner with bordered scroll feel ────────────────────── */
.astral-cta-banner {
    position: relative;
    padding: 3.5rem 2rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200,169,81,0.08) 0%, transparent 70%),
        var(--bg-card);
    border-top: 1px solid var(--border-gold);
    border-bottom: 1px solid var(--border-gold);
    text-align: center;
    overflow: hidden;
}
.astral-cta-banner::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.55;
}
.astral-cta-banner::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.55;
}

/* ── Realm status hero panel (replaces .realm-status-card) ───── */
/* Big atmospheric centerpiece. Player count is the star; everything
   else is supporting cast. Ornamental corners + animated radial glow
   behind the player number. */
.astral-realm-hero {
    position: relative;
    padding: 3.5rem 2rem 2.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 35%, rgba(200,169,81,0.13) 0%, transparent 65%),
        radial-gradient(ellipse 90% 50% at 50% 100%, rgba(79,195,247,0.08) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.96) 100%);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}
/* Top + bottom gold rules */
.astral-realm-hero::before,
.astral-realm-hero::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.7;
}
.astral-realm-hero::before { top: 0; }
.astral-realm-hero::after  { bottom: 0; }

/* Bigger corner brackets — this is the page hero, deserves emphasis */
.astral-realm-hero-corner {
    position: absolute;
    width: 32px; height: 32px;
    border: 1px solid var(--accent-gold);
    opacity: 0.8;
    pointer-events: none;
}
.astral-realm-hero-corner.tl { top: 14px;    left: 14px;    border-right: none; border-bottom: none; }
.astral-realm-hero-corner.tr { top: 14px;    right: 14px;   border-left: none;  border-bottom: none; }
.astral-realm-hero-corner.bl { bottom: 14px; left: 14px;    border-right: none; border-top: none; }
.astral-realm-hero-corner.br { bottom: 14px; right: 14px;   border-left: none;  border-top: none; }

/* Eyebrow row: pulsing dot + status text */
.astral-realm-eyebrow {
    display: inline-flex; align-items: center; gap: 0.85rem;
    padding: 0.45rem 1.5rem;
    background: rgba(2,3,9,0.5);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.astral-realm-eyebrow .astral-pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #6ddc8b;
    box-shadow: 0 0 0 0 rgba(109,220,139, 0.7);
    animation: astralPulse 2s ease-out infinite;
}
.astral-realm-eyebrow.is-offline .astral-pulse-dot {
    background: #e07070;
    box-shadow: 0 0 0 0 rgba(224,112,112, 0.5);
}
.astral-realm-eyebrow strong { color: var(--text-primary); font-weight: 700; }

@keyframes astralPulse {
    0%   { box-shadow: 0 0 0 0 rgba(109,220,139, 0.7); }
    70%  { box-shadow: 0 0 0 14px rgba(109,220,139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(109,220,139, 0); }
}

/* Realm name — big Cinzel headline in gold */
.astral-realm-name {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 40%, var(--accent-gold-lt) 70%, rgba(200,169,81,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 28px rgba(200,169,81,0.32));
}

/* Sub-line — realm tagline / world / version */
.astral-realm-tagline {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Inner divider between name and player-count */
.astral-realm-rule {
    display: flex; align-items: center; justify-content: center; gap: 0.85rem;
    margin: 0 auto 2rem;
    width: min(280px, 70%);
}
.astral-realm-rule::before, .astral-realm-rule::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,169,81,0.45));
}
.astral-realm-rule::after { background: linear-gradient(to left, transparent, rgba(200,169,81,0.45)); }
.astral-realm-rule-mark {
    width: 10px; height: 10px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(200,169,81,0.32);
}

/* Player count — the protagonist */
.astral-realm-count {
    font-family: var(--font-heading);
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-gold);
    text-shadow:
        0 0 40px rgba(200,169,81,0.45),
        0 0 80px rgba(200,169,81,0.15);
    letter-spacing: 0.04em;
    margin: 0;
}
.astral-realm-count-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.65rem;
}

/* Bottom strip — realm details (expansion / patch / type / max-level) */
.astral-realm-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gold);
}
.astral-realm-meta-cell {
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-right: 1px solid var(--border-gold);
}
.astral-realm-meta-cell:last-child { border-right: none; }
.astral-realm-meta-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}
.astral-realm-meta-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .astral-realm-hero { padding: 2.5rem 1rem 1.75rem; }
    .astral-realm-hero-corner { width: 22px; height: 22px; }
    .astral-realm-name { font-size: 2.1rem; letter-spacing: 0.12em; }
    .astral-realm-count { font-size: 3.4rem; }
    .astral-realm-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; }
    .astral-realm-meta-cell:nth-child(2) { border-right: none; }
}

/* ── Horizontal section accent (gold rule between sections) ──── */
/* Full-bleed gold hairline that fades at both edges. Used as a visual
   transition between full-bleed sections on the front page. No end
   ornaments — those drifted vertically off the line on previous
   iterations and added noise rather than helping. */
.astral-section-accent {
    display: block;
    height: 1px;
    margin: 0;
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200,169,81,0.32) 18%,
        var(--accent-gold) 50%,
        rgba(200,169,81,0.32) 82%,
        transparent 100%);
    pointer-events: none;
    box-shadow: 0 0 14px rgba(200,169,81,0.18);
}

/* ── News card astral upgrade (top accent + corner bracket) ────── */
/* The .news-card class already exists upstream — this BLOCK augments it
   with the same chrome vocabulary as .astral-card so news cards on the
   front page + /news/ listing feel part of the same design system.
   Pure additive: the existing border, image, body, hover stay intact. */
.news-card {
    position: relative;
    border: 1px solid var(--border-gold) !important;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse 100% 50% at 50% 0%, rgba(200,169,81,0.05) 0%, transparent 60%),
        var(--bg-card);
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.45;
    transition: opacity var(--ease);
    z-index: 2;
    pointer-events: none;
}
.news-card::after {
    content: '';
    position: absolute; top: 10px; left: 10px;
    width: 14px; height: 14px;
    border: 1px solid var(--accent-gold);
    border-right: none; border-bottom: none;
    opacity: 0.4;
    transition: opacity var(--ease);
    pointer-events: none;
    z-index: 2;
}
.news-card:hover {
    border-color: var(--border-bright) !important;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.news-card:hover::before { opacity: 0.95; }
.news-card:hover::after  { opacity: 1; }

/* ── Section header with right-aligned action link ──────────────── */
/* Used for "Latest News" front-page section so the title + the
   View-All shortcut sit on the same row visually. */
.astral-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}
.astral-section-head .section-title { text-align: left; margin-bottom: 0.4rem; }
.astral-section-head .astral-section-action {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid var(--border-gold);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    transition: all var(--ease);
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(200,169,81,0.04);
    flex-shrink: 0;
}
.astral-section-head .astral-section-action:hover {
    color: var(--accent-gold-lt);
    border-color: var(--accent-gold);
    background: rgba(200,169,81,0.1);
    box-shadow: 0 0 18px rgba(200,169,81,0.15);
}
.astral-section-head-text { flex: 1; min-width: 240px; }
@media (max-width: 600px) {
    .astral-section-head { flex-direction: column; align-items: flex-start; }
    .astral-section-head .astral-section-action { align-self: stretch; justify-content: center; }
}

/* ── Hero scroll indicator polish ──────────────────────────────── */
.astral-hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    z-index: 3;
    opacity: 0.7;
    pointer-events: none;
    animation: astralScrollFloat 3s ease-in-out infinite;
}
.astral-hero-scroll-chevron {
    width: 14px; height: 14px;
    border-right: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    margin-top: 0.15rem;
    opacity: 0.85;
}
@keyframes astralScrollFloat {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%     { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ── Hero ribbon under subtitle (ornamental separator) ────────── */
/* Wrapper centers a child diamond mark with two flanking gold lines.
   Uses an auto-margin block + grid inside so it centers reliably even
   inside hero-content with its absolute void/orbital ring overlays. */
.astral-hero-ribbon {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.85rem;
    width: 280px;
    max-width: 70%;
    margin: 1.75rem auto 1.75rem;
    pointer-events: none;
}
.astral-hero-ribbon::before {
    content: ''; height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,169,81,0.55));
}
.astral-hero-ribbon::after {
    content: ''; height: 1px;
    background: linear-gradient(to left, transparent, rgba(200,169,81,0.55));
}
.astral-hero-ribbon-mark {
    width: 9px; height: 9px;
    border: 1px solid var(--accent-gold);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(200,169,81,0.32);
    flex-shrink: 0;
    justify-self: center;
}

/* ── Roadmap hero stats strip (5 status cells) ───────────────── */
.astral-roadmap-meta {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gold);
}
/* Bug tracker has only 3 status columns — keep them centered in the
   hero panel instead of left-aligning into the leftmost 3/5ths. */
.astral-roadmap-meta.is-bug-meta {
    grid-template-columns: repeat(3, minmax(0, 220px));
    justify-content: center;
}
.astral-roadmap-meta-cell {
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-right: 1px solid var(--border-gold);
}
.astral-roadmap-meta-cell:last-child { border-right: none; }
.astral-roadmap-meta-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.45rem;
    font-weight: 700;
}
.astral-roadmap-meta-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
/* Status-tinted variants: number color matches the kanban column color */
.astral-roadmap-meta-cell.is-cancelled .astral-roadmap-meta-value { color: #e07070; }
.astral-roadmap-meta-cell.is-under-consideration .astral-roadmap-meta-value { color: #a78bfa; }
.astral-roadmap-meta-cell.is-planned .astral-roadmap-meta-value { color: #c8a951; }
.astral-roadmap-meta-cell.is-in-progress .astral-roadmap-meta-value { color: #4fc3f7; }
.astral-roadmap-meta-cell.is-completed .astral-roadmap-meta-value { color: #6ddc8b; }

@media (max-width: 768px) {
    .astral-roadmap-meta { grid-template-columns: repeat(3, 1fr); border-top: none; padding-top: 1rem; }
    .astral-roadmap-meta-cell { border-bottom: 1px solid var(--border-gold); padding: 0.6rem 0.3rem; }
    .astral-roadmap-meta-cell:nth-child(3) { border-right: none; }
}

/* ── Steps deck (3 horizontal cards inside a realm-hero panel) ─── */
.astral-steps-deck {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0.5rem auto 0;
    text-align: left;
    max-width: 920px;
}
.astral-step-card {
    position: relative;
    padding: 1.6rem 1.5rem 1.5rem;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200,169,81,0.05) 0%, transparent 60%),
        rgba(2,3,9,0.45);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.astral-step-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.45;
    transition: opacity var(--ease);
}
.astral-step-card::after {
    content: '';
    position: absolute; top: 10px; left: 10px;
    width: 14px; height: 14px;
    border: 1px solid var(--accent-gold);
    border-right: none; border-bottom: none;
    opacity: 0.45;
    transition: opacity var(--ease);
    pointer-events: none;
}
.astral-step-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-bright);
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200,169,81,0.10) 0%, transparent 60%),
        rgba(2,3,9,0.55);
}
.astral-step-card:hover::before { opacity: 0.85; }
.astral-step-card:hover::after  { opacity: 1; }

.astral-step-card-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 50%, var(--accent-gold-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 14px rgba(200,169,81,0.28));
    margin-bottom: 0.85rem;
}
.astral-step-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.astral-step-card-body {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0;
}
.astral-step-card-body code {
    background: rgba(200,169,81,0.08);
    border: 1px solid var(--border-gold);
    color: var(--accent-gold-lt);
    padding: 0.1em 0.45em;
    border-radius: 3px;
    font-size: 0.92em;
}
.astral-step-card-body strong { color: var(--text-primary); }

/* When .astral-realm-hero contains a steps deck, drop the bottom padding
   so the cards visually anchor on the panel's bottom rule. */
.astral-realm-hero.astral-hero-steps { padding-bottom: 2.5rem; }

@media (max-width: 820px) {
    .astral-steps-deck { grid-template-columns: 1fr; max-width: 540px; }
}

/* ── Server Rates deck — atmospheric multiplier cards ────────── */
.astral-rate-deck {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.astral-rate-card {
    position: relative;
    padding: 2rem 1.5rem 1.85rem;
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(200,169,81,0.07) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.93) 100%);
    border: 1px solid var(--border-gold);
    text-align: center;
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.astral-rate-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.4;
    transition: opacity var(--ease);
}
.astral-rate-card::after {
    content: '';
    position: absolute; top: 10px; left: 10px;
    width: 14px; height: 14px;
    border: 1px solid var(--accent-gold);
    border-right: none; border-bottom: none;
    opacity: 0.45;
    transition: opacity var(--ease);
    pointer-events: none;
}
.astral-rate-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-bright);
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(200,169,81,0.14) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card-hover) 0%, rgba(8,12,30,0.93) 100%);
}
.astral-rate-card:hover::before { opacity: 0.85; }
.astral-rate-card:hover::after  { opacity: 1; }

.astral-rate-card-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}
.astral-rate-card-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 45%, var(--accent-gold-lt) 75%, rgba(200,169,81,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(200,169,81,0.32));
}
.astral-rate-card-x {
    font-size: 0.5em;
    margin-right: 0.08em;
    opacity: 0.55;
    background: linear-gradient(180deg, var(--text-muted) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: none;
    vertical-align: 0.18em;
}

@media (max-width: 980px) {
    .astral-rate-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .astral-rate-deck { grid-template-columns: 1fr; }
    .astral-rate-card-value { font-size: 2.4rem; }
}

/* ── Why Play features — 3-col card grid v2 (replaces v1 grid) ─── */
.astral-features-deck {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.astral-feature-card {
    position: relative;
    padding: 2.1rem 1.6rem 1.8rem;
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200,169,81,0.06) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.93) 100%);
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), background var(--ease);
}
.astral-feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.4;
    transition: opacity var(--ease);
}
.astral-feature-card::after {
    content: '';
    position: absolute; top: 12px; left: 12px;
    width: 16px; height: 16px;
    border: 1px solid var(--accent-gold);
    border-right: none; border-bottom: none;
    opacity: 0.45;
    transition: opacity var(--ease);
    pointer-events: none;
}
.astral-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-bright);
    background:
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(200,169,81,0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-card-hover) 0%, rgba(8,12,30,0.93) 100%);
}
.astral-feature-card:hover::before { opacity: 0.85; }
.astral-feature-card:hover::after  { opacity: 1; }
/* Roman numeral watermark — sits behind the body text in low alpha */
.astral-feature-card-watermark {
    position: absolute; right: 0.75rem; bottom: -0.5rem;
    font-family: var(--font-heading);
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-gold);
    opacity: 0.06;
    letter-spacing: -0.03em;
    pointer-events: none;
    transition: opacity var(--ease);
}
.astral-feature-card:hover .astral-feature-card-watermark { opacity: 0.13; }

.astral-feature-card-eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    opacity: 0.85;
}
.astral-feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin: 0 0 0.65rem;
    text-transform: uppercase;
    line-height: 1.3;
}
.astral-feature-card-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    position: relative; z-index: 1;
}

@media (max-width: 980px) {
    .astral-features-deck { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .astral-features-deck { grid-template-columns: 1fr; }
    .astral-feature-card-watermark { font-size: 4.5rem; }
}

/* ── "REQUIRED" badge (legacy — small inline pill) ───────────── */
.astral-required-badge {
    display: inline-block;
    padding: 0.35rem 0.95rem;
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #07040a;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 55%, var(--accent-gold-lt) 100%);
    border-radius: 100px;
    box-shadow: 0 4px 18px rgba(200,169,81,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ── Launcher hero panel (sibling of realm-hero, gold-toned) ──── */
/* Reuses .astral-realm-hero base CSS for the chrome (corners, rules,
   eyebrow shape, name, tagline, rule mark, meta strip). Overrides
   below switch the eyebrow's pulsing-green-online vibe to a static
   gold "required" tone. */
.astral-launcher-panel { padding-bottom: 2rem; }

/* Solid gold dot variant of the eyebrow indicator (no pulse animation
   — this is a static status, not a server-online check). */
.astral-eyebrow-gold {
    color: var(--accent-gold) !important;
}
.astral-eyebrow-gold .astral-realm-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-gold);
    box-shadow: 0 0 14px rgba(200,169,81,0.55);
}
.astral-eyebrow-gold strong {
    color: var(--accent-gold-lt);
}

/* Body description sitting between the diamond rule and the bottom
   strip. Sits where the player count lives on the realm hero. */
.astral-launcher-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 1.75rem;
}
.astral-launcher-desc strong {
    color: var(--text-primary);
    display: inline-block;
    margin-top: 0.25rem;
}

/* Wrapper that centers the beta-pill horizontally */
.astral-launcher-pill-wrap {
    display: flex; justify-content: center;
    margin-bottom: 0.5rem;
}
.astral-launcher-pill {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: 1px dashed var(--border-bright);
    border-radius: 100px;
    color: var(--accent-gold-lt);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(200,169,81,0.04);
    box-shadow: 0 0 18px rgba(200,169,81,0.08), inset 0 1px 0 rgba(200,169,81,0.08);
}

/* ── Mobile collapse for the new primitives ──────────────────── */
@media (max-width: 768px) {
    .astral-features-grid { grid-template-columns: 1fr; }
    .astral-feature { grid-template-columns: 60px 1fr; padding: 1.5rem 1.25rem; gap: 1rem; }
    .astral-feature-num { font-size: 2rem; padding-right: 0.85rem; }
    .astral-stat-card-value { font-size: 1.55rem; }
    .astral-card { padding: 1.4rem 1.5rem; }
    .astral-cta-banner { padding: 2.5rem 1.25rem; }
    .astral-launcher-hero { padding: 1.8rem 1.4rem; }
}

/* ── Countdown Timer (inside hero, below realm-status pill) ─── */
.astral-countdown {
    position: relative;
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 60% at 50% 35%, rgba(200,169,81,0.10) 0%, transparent 65%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.96) 100%);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}
.astral-countdown::before,
.astral-countdown::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.7;
}
.astral-countdown::before { top: 0; }
.astral-countdown::after  { bottom: 0; }

.astral-countdown-corner {
    position: absolute;
    width: 24px; height: 24px;
    border: 1px solid var(--accent-gold);
    opacity: 0.75;
    pointer-events: none;
}
.astral-countdown-corner.tl { top: 10px;    left: 10px;    border-right: none; border-bottom: none; }
.astral-countdown-corner.tr { top: 10px;    right: 10px;   border-left: none;  border-bottom: none; }
.astral-countdown-corner.bl { bottom: 10px; left: 10px;    border-right: none; border-top: none; }
.astral-countdown-corner.br { bottom: 10px; right: 10px;   border-left: none;  border-top: none; }

.astral-countdown-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.4rem 1.2rem;
    background: rgba(2,3,9,0.5);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}
.astral-countdown-eyebrow-mark {
    width: 6px; height: 6px;
    background: var(--accent-gold);
    transform: rotate(45deg);
}

.astral-countdown-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    line-height: 1.3;
}

.astral-countdown-cells {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.astral-countdown-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 78px;
    padding: 0.85rem 0.6rem 0.7rem;
    background: rgba(2,3,9,0.45);
    border: 1px solid rgba(200,169,81,0.25);
    border-radius: 6px;
}
.astral-countdown-cell-value {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 50%, var(--accent-gold-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.astral-countdown-cell-label {
    font-family: var(--font-heading);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.7rem;
}
.astral-countdown-cell-sep {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: rgba(200,169,81,0.4);
    font-weight: 300;
    padding-top: 0.6rem;
    user-select: none;
}

.astral-countdown-expired {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--accent-gold-dk) 0%, var(--accent-gold) 50%, var(--accent-gold-lt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ── Realm Progression Timeline (/realm) ────────────────────── */
.astral-timeline {
    position: relative;
    max-width: 1080px;
    margin: 1.5rem auto 0;
    padding: 1rem 0 2rem;
}
/* Centre line — full-height gold gradient */
.astral-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: linear-gradient(180deg,
        transparent 0%,
        var(--accent-gold) 8%,
        var(--accent-gold) 92%,
        transparent 100%);
    opacity: 0.55;
}

.astral-timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 3rem;
    box-sizing: border-box;
}
.astral-timeline-left  { margin-left: 0;  padding-right: 3rem; }
.astral-timeline-right { margin-left: 50%; padding-left: 3rem; }

/* Connector dot on the centre line */
.astral-timeline-dot {
    position: absolute;
    top: 2.4rem;
    width: 14px; height: 14px;
    background: var(--bg-card);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(8,12,30,0.95), 0 0 14px rgba(200,169,81,0.4);
    z-index: 2;
}
.astral-timeline-left  .astral-timeline-dot { right: -7px; }
.astral-timeline-right .astral-timeline-dot { left:  -7px; }

/* Short horizontal connector from dot to card */
.astral-timeline-item::after {
    content: '';
    position: absolute;
    top: 3.0rem;
    width: 2.4rem; height: 1px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, rgba(200,169,81,0.1) 100%);
    opacity: 0.6;
}
.astral-timeline-left::after  { right: 0.6rem; }
.astral-timeline-right::after { left:  0.6rem; background: linear-gradient(270deg, var(--accent-gold) 0%, rgba(200,169,81,0.1) 100%); }

/* The card itself */
.astral-timeline-card {
    position: relative;
    padding: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,169,81,0.07) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,30,0.96) 100%);
    border: 1px solid var(--border-gold);
    overflow: hidden;
}
.astral-timeline-card::before,
.astral-timeline-card::after {
    content: '';
    position: absolute; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 50%, transparent 100%);
    opacity: 0.5;
}
.astral-timeline-card::before { top: 0; }
.astral-timeline-card::after  { bottom: 0; }

.astral-timeline-card-corner {
    position: absolute;
    width: 18px; height: 18px;
    border: 1px solid var(--accent-gold);
    opacity: 0.7;
    pointer-events: none;
}
.astral-timeline-card-corner.tl { top: 8px;    left: 8px;    border-right: none; border-bottom: none; }
.astral-timeline-card-corner.tr { top: 8px;    right: 8px;   border-left: none;  border-bottom: none; }
.astral-timeline-card-corner.bl { bottom: 8px; left: 8px;    border-right: none; border-top: none; }
.astral-timeline-card-corner.br { bottom: 8px; right: 8px;   border-left: none;  border-top: none; }

.astral-timeline-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #050811;
}
.astral-timeline-card-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8,12,30,0.85) 100%);
    pointer-events: none;
}
.astral-timeline-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.astral-timeline-card:hover .astral-timeline-card-image img {
    transform: scale(1.04);
}

.astral-timeline-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    text-align: left;
}

.astral-timeline-card-date {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    padding: 0.35rem 0.85rem;
    background: rgba(2,3,9,0.5);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    margin-bottom: 0.85rem;
}

.astral-timeline-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.astral-timeline-card-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Future (not yet reached) milestones: greyed out + desaturated.
   Past milestones use the default coloured treatment above. */
.astral-timeline-future .astral-timeline-card {
    filter: grayscale(0.85) brightness(0.7);
    opacity: 0.55;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.astral-timeline-future:hover .astral-timeline-card {
    filter: grayscale(0.5) brightness(0.85);
    opacity: 0.85;
}
.astral-timeline-future .astral-timeline-dot {
    background: #1a1d2a;
    border-color: rgba(200,169,81,0.35);
    box-shadow: 0 0 0 4px rgba(8,12,30,0.95);
}
.astral-timeline-future::after {
    opacity: 0.25;
}
.astral-timeline-future .astral-timeline-card-date {
    color: rgba(200,169,81,0.55);
    border-color: rgba(200,169,81,0.25);
}
.astral-timeline-future .astral-timeline-card-date::after {
    content: ' · Upcoming';
}

/* Mobile: collapse to single column, move line to left side */
@media (max-width: 760px) {
    .astral-timeline::before { left: 20px; }
    .astral-timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding: 1.25rem 0 1.25rem 56px;
    }
    .astral-timeline-left .astral-timeline-dot,
    .astral-timeline-right .astral-timeline-dot { left: 13px; right: auto; }
    .astral-timeline-left::after,
    .astral-timeline-right::after {
        left: 27px;
        right: auto;
        background: linear-gradient(90deg, var(--accent-gold) 0%, rgba(200,169,81,0.1) 100%);
    }
    .astral-timeline-card-image { height: 160px; }
    .astral-timeline-card-body  { padding: 1.25rem 1.25rem 1.5rem; }
}

@media (max-width: 640px) {
    .astral-countdown          { padding: 2.25rem 1rem 1.85rem; }
    .astral-countdown-title    { font-size: 1.25rem; margin-bottom: 1.5rem; }
    .astral-countdown-cells    { gap: 0.25rem; }
    .astral-countdown-cell     { min-width: 64px; padding: 0.75rem 0.4rem 0.65rem; }
    .astral-countdown-cell-value { font-size: 1.7rem; }
    .astral-countdown-cell-label { font-size: 0.58rem; letter-spacing: 0.18em; }
    .astral-countdown-cell-sep   { font-size: 1.4rem; padding-top: 0.45rem; }
    .astral-countdown-expired    { font-size: 1.4rem; }
}
