/* ═══════════════════════════════════════════════════
   STΛRLIGHT UNIT · GAME SITE · style.css
   games.starlight-unit.de
═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --void:       #060913;
    --surface:    #091525;
    --elevated:   #0f1e30;
    --cyan:       #6fbaff;
    --cyan-dim:   rgba(111,186,255,0.11);
    --cyan-mid:   rgba(111,186,255,0.22);
    --amber:      #d4a35a;
    --amber-dim:  rgba(212,163,90,0.10);
    --green:      #4ade80;
    --text:       #c8d8e8;
    --text-sub:   #6a8099;
    --text-muted: #3a4f63;
    --border:     rgba(111,186,255,0.08);
    --border-mid: rgba(111,186,255,0.20);
    --max-w:      1100px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--void); color: var(--text);
    font-family: 'Spectral', Georgia, serif;
    font-weight: 300; line-height: 1.75; overflow-x: hidden;
}

/* ── STARFIELD ──────────────────────────────────── */
#starfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,0.025) 2px,rgba(0,0,0,0.025) 4px); }
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient::before { content: ''; position: absolute; top: -20%; left: -15%; width: 60%; height: 60%;
    background: radial-gradient(circle,rgba(111,186,255,0.05) 0%,transparent 70%); }
.ambient::after  { content: ''; position: absolute; bottom: -20%; right: -15%; width: 50%; height: 50%;
    background: radial-gradient(circle,rgba(111,186,255,0.03) 0%,transparent 70%); }

.site { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; padding-top: var(--top-bars-h, 96px); padding-bottom: 52px; }

/* ── TICKER ─────────────────────────────────────── */
.ticker-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; border-bottom: 1px solid var(--border); overflow: hidden;
    background: rgba(6,9,19,0.92); backdrop-filter: blur(10px); }
.ticker-inner { display: flex; align-items: stretch; }
.ticker-label { flex-shrink: 0; padding: 9px 20px; background: var(--cyan); color: var(--void);
    font-family: 'JetBrains Mono',monospace; font-size: 9px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; display: flex; align-items: center; }
.ticker-scroll { overflow: hidden; flex: 1; }
.ticker-text { display: inline-block; white-space: nowrap; padding: 9px 0;
    font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--text-sub);
    letter-spacing: 0.12em; animation: ticker 40s linear infinite;
    min-width: 200%; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-pulse { color: #6fbeff; font-weight: 600; animation: tickerPulse 1.55s ease-in-out infinite; text-shadow: 0 0 8px rgba(111,190,255,0.35); }
@keyframes tickerPulse { 0%,100% { opacity: 1; text-shadow: 0 0 8px rgba(111,190,255,0.42); } 50% { opacity: 0.34; text-shadow: 0 0 2px rgba(111,190,255,0.16); } }

/* ── NAV ────────────────────────────────────────── */
.site-nav { position: fixed; top: var(--ticker-h, 32px); left: 0; right: 0; z-index: 200;
    background: rgba(6,9,19,0.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    height: 64px; position: relative; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(111,186,255,0.2));
    transition: filter 0.3s;
}
.nav-logo:hover .nav-logo-img { filter: drop-shadow(0 0 12px rgba(111,186,255,0.4)); }
.nav-logo-mark { font-family: 'Syncopate',sans-serif; font-size: 11px; font-weight: 700;
    color: white; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.nav-logo-mark span { color: var(--cyan); }
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links a { display: block; padding: 0 16px; height: 64px; line-height: 64px;
    font-family: 'JetBrains Mono',monospace; font-size: 9.5px; font-weight: 600;
    color: var(--text-sub); text-decoration: none; letter-spacing: 0.16em;
    text-transform: uppercase; transition: color 0.2s, background 0.2s;
    border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--cyan); background: var(--cyan-dim); }
.nav-links a.active { color: var(--cyan); border-bottom-color: var(--cyan); }

.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px; gap: 6px; background: none;
    border: 1px solid var(--border-mid); border-radius: 8px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--cyan);
    border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,9,19,0.97); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px); z-index: 300; max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22,1,0.36,1); }
.mobile-menu.open { max-height: 400px; }
.mobile-menu a { display: block; padding: 15px 28px; font-family: 'JetBrains Mono',monospace;
    font-size: 11px; font-weight: 600; color: var(--text-sub); text-decoration: none;
    letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid var(--border);
    transition: color 0.2s, background 0.2s; }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--cyan); background: var(--cyan-dim); }

/* ── HERO ───────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: brightness(0.42) saturate(0.7); }
.page-hero-overlay { position: absolute; inset: 0;
    background: linear-gradient(180deg,rgba(6,9,19,0.1) 0%,rgba(6,9,19,0.8) 100%); }
.page-hero-content { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 72px 40px 64px; }
.page-eyebrow { font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--cyan);
    letter-spacing: 0.28em; text-transform: uppercase; margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px; }
.page-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.page-title { font-family: 'Syncopate',sans-serif; font-weight: 700;
    font-size: clamp(26px,4vw,52px); color: white; text-transform: uppercase;
    letter-spacing: 0.03em; line-height: 1.1; margin-bottom: 20px; }
.page-title em { font-style: normal; color: var(--cyan); }
.page-lead { font-size: 17px; font-style: italic; color: var(--text-sub); max-width: 620px; line-height: 1.9; }

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 36px;
    display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ''; width: 18px; height: 1px; background: var(--text-muted); }
.section-title { font-family: 'Syncopate',sans-serif; font-size: clamp(20px,3vw,30px); font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 24px; }

/* ── PROSE ──────────────────────────────────────── */
.prose { font-size: 16px; color: var(--text-sub); line-height: 1.9; }
.prose p { margin-bottom: 1.4em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; font-style: normal; }
.prose em { color: var(--cyan); font-style: italic; }
.prose h3 { font-family: 'Syncopate',sans-serif; font-size: 12px; font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.12em; margin: 2em 0 0.8em; }

/* ── FEATURE CARDS ──────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 8px; }
.feature-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
    background: linear-gradient(145deg,var(--surface) 0%,var(--void) 100%);
    position: relative; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s; }
.feature-card:hover { border-color: var(--border-mid); transform: translateY(-4px); }
.feature-card::before { content: ''; position: absolute; inset: 0; border-radius: 16px;
    background: radial-gradient(circle at top left, var(--cyan-dim) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 44px; height: 44px; border: 1px solid var(--border-mid); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    background: var(--cyan-dim); color: var(--cyan); }
.feature-title { font-family: 'Syncopate',sans-serif; font-size: 11px; font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.feature-text { font-size: 13px; font-style: italic; color: var(--text-sub); line-height: 1.8; }

/* ── STORY SPOTLIGHT / THE 100-CHAPTER SPIN-OFF ─── */
.story-section { scroll-margin-top: calc(var(--top-bars-h, 96px) + 24px); }
.story-spotlight {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(245px, 0.65fr);
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(212,163,90,0.30); border-radius: 16px;
    background: linear-gradient(120deg, rgba(24,28,48,0.92) 0%,rgba(8,23,38,0.94) 55%,rgba(8,15,29,0.98) 100%);
}
.story-spotlight::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    width: 62%; aspect-ratio: 1; right: -20%; top: -85%;
    background: radial-gradient(circle, rgba(212,163,90,0.13), transparent 67%);
}
.story-spotlight-copy, .story-spotlight-aside { min-width: 0; }
.story-kicker {
    font-family: 'JetBrains Mono',monospace; font-size: 9px;
    letter-spacing: .17em; color: var(--amber);
    text-transform: uppercase; margin-bottom: 14px;
}
.story-title {
    font-family: 'Syncopate',sans-serif; font-size: clamp(20px,2.6vw,32px);
    line-height: 1.38; font-weight: 700; color: #fff;
    letter-spacing: .02em; text-transform: uppercase; margin-bottom: 20px;
    overflow-wrap: anywhere;
}
.story-spotlight-copy p { font-size: 15px; line-height: 1.85; color: var(--text-sub); margin-bottom: 16px; }
.story-spotlight-copy p strong { color: var(--text); font-weight: 600; }
.story-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 25px; }
.story-links .btn { max-width: 100%; }
.story-spotlight-aside {
    display: flex; flex-direction: column; justify-content: center; gap: 18px;
    padding-left: clamp(18px,2vw,28px);
    border-left: 1px solid rgba(212,163,90,0.22);
}
.story-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.story-fact {
    min-width: 0; display: flex; flex-direction: column;
    padding: 12px; border: 1px solid rgba(111,186,255,.15);
    border-radius: 8px; background: rgba(6,9,19,.37);
}
.story-fact dd { order: 0; font-family: 'Syncopate',sans-serif; font-weight: 700; font-size: clamp(21px,2.3vw,29px); line-height: 1.4; color: #fff; }
.story-fact dt { order: 1; font-family: 'JetBrains Mono',monospace; font-size: 9px; line-height: 1.5; color: var(--cyan); }
.story-note { font-size: 12px; line-height: 1.7; color: var(--text-sub); }

@media (max-width: 820px) {
    .story-spotlight { grid-template-columns: minmax(0,1fr); }
    .story-spotlight-aside { border-left: none; border-top: 1px solid rgba(212,163,90,.22); padding: 20px 0 0; }
}
@media (max-width: 400px) {
    .story-spotlight { padding: 22px 17px; }
    .story-kicker { font-size: 8px; letter-spacing: .08em; }
    .story-links .btn { white-space: normal; text-align: center; padding: 11px 16px; }
    .story-fact { padding: 10px; }
}

/* ── PRINCIPLE BLOCKS (big text features) ───────── */
.principle-list { display: flex; flex-direction: column; gap: 1px; }
.principle-item { display: flex; gap: 28px; align-items: baseline; padding: 20px 0;
    border-bottom: 1px solid var(--border); }
.principle-item:last-child { border-bottom: none; }
.principle-bullet { font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--cyan);
    letter-spacing: 0.2em; text-transform: uppercase; flex-shrink: 0; padding-top: 4px; min-width: 120px; }
.principle-text { font-size: 15px; font-style: italic; color: var(--text-sub); line-height: 1.85; }
.principle-text strong { color: var(--text); font-style: normal; font-weight: 600; }

/* ── META CARD ──────────────────────────────────── */
.meta-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px;
    background: linear-gradient(145deg,var(--surface) 0%,var(--void) 100%); }
.meta-card-title { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--cyan);
    letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px; }
.meta-row { display: flex; justify-content: space-between; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--border); }
.meta-row:last-child { border-bottom: none; }
.meta-key { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.14em; text-transform: uppercase; }
.meta-val { font-size: 13px; font-style: italic; color: var(--text-sub); text-align: right; max-width: 55%; }
.meta-val strong { color: var(--text); font-style: normal; font-weight: 600; }

/* ── INFO GRID ──────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-grid-wide { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }

/* ── STATUS BADGE ───────────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 100px;
    font-family: 'JetBrains Mono',monospace; font-size: 9px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; }
.status-alpha { background: rgba(111,186,255,0.1); color: var(--cyan);
    border: 1px solid rgba(111,186,255,0.25); }
.status-beta  { background: rgba(212,163,90,0.1); color: var(--amber);
    border: 1px solid rgba(212,163,90,0.25); }
.status-dev   { background: rgba(74,222,128,0.1); color: var(--green);
    border: 1px solid rgba(74,222,128,0.25); }
.status-plan  { background: rgba(58,79,99,0.3); color: var(--text-muted);
    border: 1px solid var(--border-mid); }

/* ── CHANGELOG / TIMELINE ───────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-phase { margin-bottom: 48px; }
.timeline-phase-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.timeline-phase-name { font-family: 'Syncopate',sans-serif; font-size: 12px; font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.1em; }
.timeline-entries { display: flex; flex-direction: column; gap: 0; }
.timeline-entry { display: flex; gap: 0; position: relative; }
.timeline-entry::before { content: ''; position: absolute; left: 86px; top: 0; bottom: 0;
    width: 1px; background: var(--border); }
.timeline-entry:first-child::before { top: 22px; }
.timeline-entry:last-child::before { height: 22px; }
.tl-date { flex-shrink: 0; width: 86px; padding: 14px 20px 14px 0; text-align: right;
    font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.1em; line-height: 1.4; padding-top: 18px; }
.tl-dot { flex-shrink: 0; width: 0; display: flex; align-items: flex-start; padding-top: 18px;
    position: relative; z-index: 1; }
.tl-dot::after { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); box-shadow: 0 0 8px var(--cyan); margin-left: -3px; margin-top: 4px; }
.tl-content { flex: 1; padding: 14px 0 14px 28px; }
.tl-version { font-family: 'JetBrains Mono',monospace; font-size: 11px; font-weight: 600;
    color: white; letter-spacing: 0.1em; margin-bottom: 4px; }
.tl-desc { font-size: 13px; font-style: italic; color: var(--text-sub); line-height: 1.7; }

/* ── QUOTE BLOCK ────────────────────────────────── */
.quote-block { border-left: 3px solid var(--cyan); padding: 24px 32px;
    background: linear-gradient(135deg,var(--cyan-dim) 0%,transparent 100%);
    border-radius: 0 12px 12px 0; margin: 36px 0; }
.quote-block p { font-size: 17px; font-style: italic; color: var(--text); line-height: 1.95;
    margin-bottom: 1em; }
.quote-block p:last-child { margin-bottom: 0; }

/* ── BUTTONS ────────────────────────────────────── */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 8px;
    font-family: 'JetBrains Mono',monospace; font-size: 10px; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
    transition: all 0.25s; white-space: nowrap; }
.btn-cyan { background: var(--cyan); color: var(--void); box-shadow: 0 0 24px rgba(111,186,255,0.2); }
.btn-cyan:hover { background: white; box-shadow: 0 0 40px rgba(111,186,255,0.4); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-mid); color: var(--text-sub); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-ghost-cyan { border: 1px solid var(--cyan-mid); color: var(--cyan); }
.btn-ghost-cyan:hover { background: var(--cyan-dim); transform: translateY(-2px); }

/* ── LEGAL ──────────────────────────────────────── */
.legal-body { font-size: 14px; color: var(--text-sub); line-height: 1.9; }
.legal-body h2 { font-family: 'Syncopate',sans-serif; font-size: 11px; font-weight: 700;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.12em;
    margin: 2.5em 0 1em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 1em; }
.legal-body ul { padding-left: 20px; margin-bottom: 1em; }
.legal-body a { color: var(--cyan); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text); }

/* ── FOOTER ─────────────────────────────────────── */
footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
    background: rgba(6,9,19,0.95); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 0 40px; height: 52px;
    display: flex; align-items: center; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; width: 100%;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 12px; }
.footer-copy { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.16em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: 'JetBrains Mono',monospace; font-size: 8.5px; color: var(--text-muted);
    letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono',monospace;
    font-size: 8.5px; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 6px var(--green); animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ── FADE IN ────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); animation: fadeIn 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.18s; }
.fade-in:nth-child(3) { animation-delay: 0.32s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* ── LOGOS ROW ──────────────────────────────────────── */
.logos-row {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 0 8px;
}
.logo-badge {
    max-height: 140px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 0 18px rgba(111,186,255,0.12));
}
.logo-badge:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 28px rgba(111,186,255,0.28));
}

/* ── DOWNLOAD BANNER BUTTON ─────────────────────────── */
.download-section {
    padding: 48px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border);
}
.download-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.download-btn {
    display: block;
    max-width: 420px;
    width: 90%;
    text-decoration: none;
    transition: transform 0.3s, filter 0.3s;
    /* Crop the transparent padding baked into the PNG */
    overflow: hidden;
}
.download-btn img {
    display: block;
    width: 122%;
    margin-left: -11%;
    margin-top: -5%;
    margin-bottom: -5%;
    height: auto;
    transition: filter 0.3s, transform 0.3s;
}
.download-btn:hover { transform: translateY(-4px); }
.download-btn:hover img { filter: brightness(1.08); }
.download-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
    margin-top: 4px;
}
.download-sub a, .meta-val a, .prose a { color: var(--cyan); text-underline-offset: 3px; }
.download-sub a:hover, .meta-val a:hover, .prose a:hover { color: #fff; }


/* ── SCREENSHOT GALLERY ─────────────────────────────── */
.screens-grid { display: flex; flex-direction: column; gap: 52px; margin-top: 8px; }
.screen-block { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.screen-block.reverse { grid-template-columns: 380px 1fr; }
.screen-block.reverse .screen-img { order: -1; }
.screen-img { border-radius: 16px; overflow: hidden; border: 1px solid var(--border-mid);
    cursor: zoom-in; flex-shrink: 0; transition: border-color 0.3s, transform 0.3s; }
.screen-img:hover { border-color: var(--cyan); transform: translateY(-4px); }
.screen-img img { display: block; width: 100%; height: auto; transition: filter 0.3s; }
.screen-img:hover img { filter: brightness(1.06); }
.screen-tag { font-family: 'JetBrains Mono',monospace; font-size: 9px; color: var(--cyan);
    letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px; }
.screen-tag::before { content: ''; width: 16px; height: 1px; background: var(--cyan); }
.screen-title { font-family: 'Syncopate',sans-serif; font-size: clamp(16px,2.5vw,22px); font-weight: 700;
    color: white; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; margin-bottom: 16px; }
.screen-desc { font-size: 15px; font-style: italic; color: var(--text-sub); line-height: 1.9; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(4,7,15,0.93);
    backdrop-filter: blur(18px); align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; animation: lbFade 0.22s ease; }
@keyframes lbFade { from { opacity:0; } to { opacity:1; } }
.lightbox-inner { position: relative; max-width: min(95vw,1000px); max-height: 92vh;
    cursor: default; animation: lbPop 0.28s cubic-bezier(0.22,1,0.36,1); }
@keyframes lbPop { from { transform:scale(0.9);opacity:0; } to { transform:scale(1);opacity:1; } }
.lightbox-img { display: block; max-width: 100%; max-height: 88vh; border-radius: 14px;
    border: 1px solid var(--border-mid); box-shadow: 0 40px 100px rgba(0,0,0,0.85); object-fit: contain; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px;
    border-radius: 50%; background: #0f1e30; border: 1px solid var(--border-mid);
    color: var(--text-sub); cursor: pointer; display: flex; align-items: center;
    justify-content: center; font-size: 18px; line-height: 1; transition: color 0.2s,border-color 0.2s; }
.lightbox-close:hover { color: white; border-color: var(--cyan); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
    .nav-inner { padding: 0 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
    .page-hero-content { padding: 52px 24px 44px; }
    .container { padding: 0 24px; }
    .section { padding: 52px 0; }
    .info-grid, .info-grid-wide { grid-template-columns: 1fr; gap: 32px; }
    footer { padding: 0 20px; height: auto; padding-top: 10px; padding-bottom: 10px; }
    .footer-inner { flex-wrap: wrap; gap: 6px; }
    .footer-copy { font-size: 8px; width: 100%; order: 1; }
.footer-links { order: 2; }
    .footer-status { display: none; }
    .screen-block, .screen-block.reverse { grid-template-columns: 1fr; }
    .screen-block.reverse .screen-img { order: 0; }
    main { padding-bottom: 72px; }
}
@media (max-width: 560px) {
    .feature-grid { grid-template-columns: 1fr; }
    .timeline-entry::before { left: 72px; }
    .tl-date { width: 72px; font-size: 7.5px; }
}

/* Shared Quantum CMS footer alignment: a single centered row at full width. */
footer { box-sizing: border-box; width: 100%; height: auto; min-height: 52px;
    padding: 10px clamp(16px, 3vw, 40px); }
footer .footer-inner { width: 100%; max-width: var(--max-w); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center; gap: 7px 18px; }
footer .footer-copy { min-width: 0; max-width: 100%; line-height: 1.55; overflow-wrap: anywhere; }
footer .footer-copy .quantum-cms-credit { display: inline; font: inherit;
    letter-spacing: .04em; text-transform: none; white-space: normal; }
footer .footer-copy .quantum-cms-credit strong { color: var(--cyan); font-weight: 700; }
footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center;
    gap: 9px 18px; }
footer .footer-status { justify-self: end; }
main { padding-bottom: 94px; }
@media (max-width: 960px) {
    footer { padding: 9px 18px; }
    footer .footer-inner { grid-template-columns: minmax(0,1fr); gap: 5px; text-align: center; }
    footer .footer-copy { grid-column: 1; }
    footer .footer-links { grid-column: 1; justify-content: center; }
    footer .footer-status { display: none; }
    main { padding-bottom: 115px; }
}
@media (max-width: 540px) {
    footer { padding: 8px 12px; }
    footer .footer-copy { font-size: 8px; }
    footer .footer-links { gap: 7px 13px; }
    main { padding-bottom: 136px; }
}

/* QUANTUM CMS LEGACY FOOTER v0: BEGIN
 * Canonical source: site_family/legacy-footer.css
 * Centered two-row footer across all regular public Starlight Unit sites.
 * Keep local CSS copies because standalone subdomain webroots are isolated.
 */
html[data-site-ticker="books_site"] { --qcms-legacy-accent: var(--amber, #d4a35a); }
html[data-site-ticker="games_site"] { --qcms-legacy-accent: var(--cyan, #6fbaff); }
html[data-site-ticker="core_site"] { --qcms-legacy-accent: var(--ember, #5b92ff); }
html[data-site-ticker="research_site"] { --qcms-legacy-accent: var(--ember, #6fbaff); }
html[data-site-ticker="studio_site"] { --qcms-legacy-accent: var(--cyan, #6fbaff); }
html[data-theme] { --qcms-legacy-accent: var(--accent, #5a84ff); }
.stu-footer {
  position: fixed; left: 0; right: 0; bottom: 0; inset-block-start: auto;
  z-index: 150; box-sizing: border-box; width: 100%; max-width: none;
  height: auto; min-height: 56px; margin: 0;
  padding: 9px clamp(14px, 3vw, 40px);
  display: flex; align-items: center; justify-content: center;
}
.stu-footer .footer-inner {
  box-sizing: border-box; flex: 0 1 auto; width: 100%; max-width: 1100px;
  margin-inline: auto; padding: 0;
  display: flex; flex-direction: column; flex-wrap: nowrap;
  align-items: center; justify-content: center;
  gap: 5px; text-align: center;
}
.stu-footer .footer-copy, .stu-footer .footer-inner > p {
  order: 0; box-sizing: border-box; min-width: 0; width: 100%; max-width: 100%;
  margin: 0; padding: 0; font-size: 8.5px; line-height: 1.55;
  font-family: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 400; letter-spacing: .12em; text-align: center;
  white-space: normal; overflow-wrap: break-word;
}
.stu-footer .footer-links {
  order: 1; box-sizing: border-box; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; min-width: 0; width: 100%;
  margin: 0; padding: 0; gap: 4px 17px; text-align: center;
}
.stu-footer .footer-links a {
  font-size: 8.5px; line-height: 1.45; letter-spacing: .1em;
  white-space: normal;
}
/* Statuses remain in the source and in the top status bars, not a third footer row. */
.stu-footer .footer-status { display: none; }
.stu-footer .quantum-cms-credit,
.stu-footer .footer-copy .quantum-cms-credit,
.stu-footer .footer-inner > p .quantum-cms-credit {
  display: inline; margin: 0; padding: 0; font: inherit;
  letter-spacing: .025em; text-transform: none; white-space: normal;
}
.stu-footer .quantum-cms-credit strong {
  color: var(--qcms-legacy-accent, var(--accent, var(--cyan, #6fbaff)));
  font-weight: 700;
}
/* Fixed footers must not conceal the last section or the legal links. */
.site > main { padding-bottom: 155px; }
body .content { padding-bottom: 155px; }
@media (max-width: 700px) {
  .stu-footer { padding: 8px 12px; }
  .stu-footer .footer-inner { gap: 5px; }
  .stu-footer .footer-copy, .stu-footer .footer-inner > p,
  .stu-footer .footer-links a { font-size: 8px; }
  .stu-footer .footer-links { gap: 5px 12px; }
  .site > main { padding-bottom: 190px; }
  body .content { padding-bottom: 190px; }
}
@media (max-width: 360px) {
  .site > main { padding-bottom: 225px; }
  body .content { padding-bottom: 225px; }
}
/* QUANTUM CMS LEGACY FOOTER v0: END */
