/* ════════════════════════════════════════════════════════════════════
   SALAMANDER: THE SEEKER — site v3 "SIGNAL TERMINAL"
   Dark-first cinematic one-pager. Same three faces as always:
   PixelSeek (display), JetBrains Mono (HUD), Inter (body).
   STUDIO section styles ported verbatim from v2 — user-approved.
   ════════════════════════════════════════════════════════════════════ */

/* ───── FONT ───────────────────────────────────────────────────────── */
@font-face {
    font-family: 'PixelSeek';
    src: url('pixel_font.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ───── RESET / TOKENS ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Dark terminal canvas */
    --bg-0:     #0d0d11;   /* page */
    --bg-1:     #131318;   /* raised band (matches old studio dark) */
    --bg-2:     #1a1a21;   /* cards */
    --paper:    #d3ddd8;   /* old sage — now an accent "paper" tone */

    --tx-1:     #ececf1;   /* primary text */
    --tx-2:     #a5a5ae;   /* secondary */
    --tx-3:     #6d6d78;   /* faint */

    --line:     rgba(236, 236, 241, 0.10);
    --line-2:   rgba(236, 236, 241, 0.18);

    /* Game accent palette (matched to promo-art halos) */
    --accent-tap:      #f97338;
    --accent-arcade:   #b89cf5;
    --accent-boss:     #f47a8c;
    --accent-news:     #f5b400;
    --accent-profile:  #7cc6f0;
    --accent-rank:     #f5b400;
    --accent-upgrades: #4dd9b6;
    --accent-quests:   #a26ce8;
    --accent-pass:     #fbb284;
    --accent-message:  #7cc6f0;

    --ember:    #f97338;   /* signature */
    --gold:     #f5b400;
    --bronze:   #cd7f32;

    --font-pixel: 'PixelSeek', 'Courier New', monospace;
    --font-hud:   'JetBrains Mono', ui-monospace, monospace;
    --font-body:  'Inter', system-ui, sans-serif;

    /* Studio-section legacy aliases (ported styles reference these) */
    --bg:      var(--paper);
    --bg-dark: var(--bg-1);
    --ink:     #141418;
}

html { scroll-behavior: smooth; overflow-x: clip; width: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--tx-1);
    overflow-x: clip;
    line-height: 1.6;
}

::selection { background: var(--ember); color: #0d0d11; }
img { display: block; max-width: 100%; }

/* Subtle global grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(236, 236, 241, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 236, 241, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: #2c2c34; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ember); }

/* ───── BOOT ───────────────────────────────────────────────────────── */
.boot {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-0);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1), visibility 0s 0.6s;
}
.boot.done { transform: translateY(-100%); visibility: hidden; }
.boot-inner { width: min(380px, 78vw); text-align: center; }
.boot-logo {
    font-family: var(--font-pixel);
    font-size: clamp(22px, 4vw, 30px);
    letter-spacing: 4px;
    color: var(--tx-1);
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 22px;
}
.boot-logo span { font-family: var(--font-hud); font-size: 10px; letter-spacing: 6px; color: var(--ember); }
.boot-bar { height: 3px; background: rgba(236, 236, 241, 0.12); overflow: hidden; }
.boot-bar span { display: block; height: 100%; width: 0%; background: var(--ember); transition: width 0.15s ease; }
.boot-line {
    font-family: var(--font-hud); font-size: 10px; letter-spacing: 1px;
    color: var(--tx-3); margin-top: 10px; text-align: left;
}
body.booting { overflow: hidden; }

/* ───── CURSOR (fast) ──────────────────────────────────────────────── */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--ember); }
.cursor-ring {
    width: 26px; height: 26px;
    border: 1px solid rgba(236, 236, 241, 0.5);
    transition: width 0.15s ease, height 0.15s ease, border-color 0.15s ease;
}
.cursor-ring.hot { width: 44px; height: 44px; border-color: var(--ember); }
@media (pointer: fine) {
    body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
    body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { display: block; }
}

/* ───── SCROLL PROGRESS ────────────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 8500; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--ember), var(--gold)); }

/* ───── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 8000;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 4vw, 44px);
    height: 60px;
    background: rgba(13, 13, 17, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-mark {
    font-family: var(--font-pixel);
    font-size: 13px; letter-spacing: 2px;
    color: var(--tx-1); text-decoration: none;
    white-space: nowrap;
}
.nav-links { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; }
.nav-links a {
    font-family: var(--font-hud);
    font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--tx-2); text-decoration: none;
    transition: color 0.18s ease;
    position: relative;
    padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: var(--ember);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--tx-1); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-version {
    font-family: var(--font-hud); font-size: 10px; letter-spacing: 2px;
    color: var(--tx-2);
    border: 1px solid var(--line-2);
    padding: 5px 10px;
    display: inline-flex; align-items: center; gap: 7px;
    white-space: nowrap;
}
.nv-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4caf50;
    animation: nvPulse 2s ease-in-out infinite;
}
@keyframes nvPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--tx-1); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.nav-panel {
    position: fixed; top: 60px; left: 0; right: 0; z-index: 7900;
    background: rgba(13, 13, 17, 0.97);
    border-bottom: 1px solid var(--line);
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.nav-panel.open { max-height: 320px; }
.nav-panel a {
    font-family: var(--font-hud); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--tx-2); text-decoration: none;
    padding: 16px clamp(18px, 4vw, 44px);
    border-top: 1px solid var(--line);
}
.nav-panel a:hover { color: var(--ember); }
@media (max-width: 860px) {
    .nav-links, .nav-version { display: none; }
    .nav-toggle { display: flex; }
}

/* ───── SHARED PRIMITIVES ──────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); position: relative; z-index: 1; }
.section-head { margin-bottom: clamp(36px, 6vh, 64px); }
.section-tag {
    display: inline-block;
    font-family: var(--font-hud);
    font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--ember);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-pixel);
    font-size: clamp(30px, 5.4vw, 58px);
    line-height: 1.12;
    letter-spacing: 3px;
    color: var(--tx-1);
    text-transform: uppercase;
}
.section-title em { font-style: normal; color: var(--ember); }
.section-sub {
    margin-top: 16px;
    font-size: 15px; color: var(--tx-2);
    max-width: 560px;
}

/* Reveal system — single class + delay modifiers */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rv-1 { transition-delay: 0.12s; }
.rv-2 { transition-delay: 0.24s; }
.rv-3 { transition-delay: 0.36s; }
.rv.visible { opacity: 1; transform: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-hud);
    font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none;
    padding: 15px 26px;
    border: 1px solid var(--tx-1);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}
.btn-fill { background: var(--tx-1); color: var(--bg-0); }
.btn-fill:hover { background: var(--ember); border-color: var(--ember); color: #fff; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55); }
.btn-ghost { background: transparent; color: var(--tx-1); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn-x { width: 15px; height: 15px; filter: invert(1); }

/* ───── HERO ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; flex-direction: column;
    justify-content: center;
    overflow: clip;
    padding-top: 60px;
}
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-haze {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 45% at 50% 58%, rgba(249, 115, 56, 0.10), transparent 70%),
        radial-gradient(ellipse 45% 35% at 78% 18%, rgba(245, 180, 0, 0.05), transparent 70%);
}
.hero-stage { position: relative; z-index: 2; text-align: center; padding: 0 18px; }
.hero-meta {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-hud);
    font-size: 10px; letter-spacing: 3.5px;
    color: var(--tx-2);
    margin-bottom: clamp(20px, 4vh, 36px);
    flex-wrap: wrap;
    justify-content: center;
}
.hm-dot { color: var(--ember); font-size: 7px; }
.hero-word {
    font-family: var(--font-pixel);
    font-size: clamp(44px, 11vw, 138px);
    line-height: 0.95;
    letter-spacing: clamp(2px, 0.8vw, 10px);
    color: var(--tx-1);
    text-shadow: 0 0 90px rgba(249, 115, 56, 0.35);
    display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 20px);
    font-weight: 400;
}
.hw-sub {
    font-family: var(--font-hud);
    font-size: clamp(11px, 1.6vw, 16px);
    letter-spacing: clamp(6px, 1.6vw, 18px);
    color: var(--ember);
    font-weight: 600;
}
.hero-tag {
    margin-top: clamp(22px, 4.5vh, 40px);
    font-family: var(--font-hud);
    font-size: clamp(12px, 1.7vw, 17px);
    letter-spacing: 5px;
    color: var(--tx-2);
}
.hero-tag i { font-style: normal; color: var(--tx-3); padding: 0 6px; }
.hero-tag b { color: var(--gold); font-weight: 700; }
.hero-actions {
    margin-top: clamp(26px, 5vh, 44px);
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero-foot {
    position: absolute; left: 0; right: 0; bottom: 22px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(18px, 4vw, 44px);
    z-index: 2;
}
.hf-coord { font-family: var(--font-hud); font-size: 9px; letter-spacing: 2px; color: var(--tx-3); }
.hf-scroll {
    font-family: var(--font-hud); font-size: 9px; letter-spacing: 4px; color: var(--tx-2);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hf-scroll i {
    width: 1px; height: 34px;
    background: linear-gradient(180deg, var(--ember), transparent);
    animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 700px) { .hf-coord { display: none; } .hero-foot { justify-content: center; } }

/* ───── TICKER ─────────────────────────────────────────────────────── */
.ticker {
    position: relative; z-index: 2;
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 12px 0;
}
.ticker-row { overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; will-change: transform; }
.ticker-track span {
    font-family: var(--font-pixel);
    font-size: 16px; letter-spacing: 5px;
    color: var(--tx-3);
}
.t-left .ticker-track { animation: tickLeft 26s linear infinite; }
@keyframes tickLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───── SYSTEMS — scroll-driven horizontal rail ────────────────────── */
.systems { position: relative; height: 380vh; background: var(--bg-0); }
.systems-pin {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; flex-direction: column;
    justify-content: center;
    overflow: clip;
    padding: 76px clamp(18px, 4vw, 44px) 30px;
}
.systems-head { margin-bottom: clamp(20px, 4vh, 40px); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.systems-hint {
    font-family: var(--font-hud); font-size: 11px; letter-spacing: 4px;
    color: var(--ember);
    animation: hintBlink 1.6s steps(2) infinite;
    white-space: nowrap;
}
@keyframes hintBlink { 50% { opacity: 0.25; } }
.systems-rail { overflow: visible; }
.systems-track {
    display: flex; gap: clamp(14px, 2vw, 26px);
    will-change: transform;
    width: max-content;
}
.sys-card {
    --mc: var(--ember);
    width: clamp(240px, 24vw, 320px);
    flex-shrink: 0;
    border: 1px solid var(--line);
    background: var(--bg-2);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.sys-card:hover { border-color: var(--mc); transform: translateY(-6px); }
.sys-card header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-hud); font-size: 9px; letter-spacing: 2px;
}
.sys-card header b { color: var(--mc); font-weight: 700; }
.sys-card header span { color: var(--tx-3); }
.sys-shot { position: relative; overflow: hidden; background: #0a0a0d; }
.sys-shot img {
    width: 100%;
    aspect-ratio: 9 / 13.5;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.sys-card:hover .sys-shot img { transform: scale(1.04); }
.sys-shot::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 64%, rgba(13, 13, 17, 0.9));
    pointer-events: none;
}
.sys-card footer { padding: 12px 14px 14px; }
.sys-card footer h3 {
    font-family: var(--font-pixel);
    font-size: 19px; letter-spacing: 3px;
    color: var(--mc);
    margin-bottom: 6px;
}
.sys-card footer p { font-size: 12px; line-height: 1.55; color: var(--tx-2); }
.systems-progress {
    margin-top: clamp(18px, 3.5vh, 32px);
    height: 2px;
    background: rgba(236, 236, 241, 0.1);
}
.systems-progress span { display: block; height: 100%; width: 0%; background: var(--ember); }

/* Mobile / coarse pointers: natural horizontal scroll, no pinning */
@media (max-width: 860px), (pointer: coarse) {
    .systems { height: auto; }
    .systems-pin { position: static; height: auto; padding-top: 64px; padding-bottom: 56px; }
    .systems-rail { overflow-x: auto; scrollbar-width: none; }
    .systems-rail::-webkit-scrollbar { display: none; }
    .systems-track { transform: none !important; }
    .sys-card { width: min(74vw, 300px); }
    .systems-progress { display: none; }
    .systems-head { flex-direction: column; align-items: flex-start; }
}

/* ───── ARENA ──────────────────────────────────────────────────────── */
.arena {
    position: relative;
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(72px, 10vh, 110px) 0 clamp(64px, 9vh, 96px);
    overflow: clip;
}
.arena-decor { position: absolute; inset: 0; pointer-events: none; }
.ad-coord { position: absolute; font-family: var(--font-hud); font-size: 9px; letter-spacing: 2px; color: var(--tx-3); }
.ad-tl { top: 18px; left: 22px; }
.ad-tr { top: 18px; right: 22px; }
.ad-bl { bottom: 16px; left: 22px; }
.ad-br { bottom: 16px; right: 22px; }
.ad-watermark {
    position: absolute; right: -2%; bottom: -7%;
    font-family: var(--font-pixel);
    font-size: clamp(120px, 22vw, 280px);
    letter-spacing: 8px;
    color: rgba(236, 236, 241, 0.028);
    user-select: none;
}

/* Flagship core-loop feature */
.mode-core {
    --ma: var(--ember);
    border: 1px solid var(--line-2);
    border-top: 3px solid var(--ma);
    background:
        radial-gradient(ellipse 70% 120% at 12% 0%, rgba(249, 115, 56, 0.07), transparent 60%),
        rgba(236, 236, 241, 0.02);
    padding: clamp(22px, 3.4vw, 40px);
    margin-bottom: 22px;
}
.mc-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mc-head .mr-tag { margin: 0; }
.mc-title {
    font-family: var(--font-pixel);
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 4px;
    color: var(--tx-1);
    line-height: 1;
}
.mc-lead {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.75;
    color: var(--tx-2);
    max-width: 760px;
    margin-bottom: clamp(20px, 3vh, 30px);
}
.mc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
}
.mc-stats div {
    text-align: center;
    padding: 18px 8px 14px;
    border-right: 1px solid var(--line);
}
.mc-stats div:last-child { border-right: none; }
.mc-stats b {
    display: block;
    font-family: var(--font-pixel);
    font-size: clamp(26px, 3.6vw, 38px);
    letter-spacing: 1px;
    color: var(--ma);
    margin-bottom: 6px;
}
.mc-stats span {
    font-family: var(--font-hud);
    font-size: 8.5px; letter-spacing: 2px;
    color: var(--tx-3);
}

/* Divider lead-in to the spend-modes */
.modes-lead {
    display: flex; align-items: center; gap: 16px;
    margin: 4px 0 22px;
}
.ml-line { flex: 1; height: 1px; background: var(--line-2); }
.ml-text {
    font-family: var(--font-hud);
    font-size: 10px; letter-spacing: 3px;
    color: var(--tx-3);
    white-space: nowrap;
}

/* Mode dossiers — one row per game mode, accent via --ma */
.mode-rows { display: grid; gap: 14px; margin-bottom: 42px; }
.mode-row {
    --ma: var(--ember);
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(18px, 3vw, 40px);
    border: 1px solid var(--line-2);
    border-left: 3px solid var(--ma);
    background: rgba(236, 236, 241, 0.02);
    padding: clamp(18px, 2.6vw, 28px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mode-row:hover {
    background: rgba(236, 236, 241, 0.045);
    transform: translateX(6px);
}
.mr-tag {
    display: block;
    font-family: var(--font-hud);
    font-size: 9px; letter-spacing: 3px;
    color: var(--ma);
    margin-bottom: 10px;
}
.mr-title {
    font-family: var(--font-pixel);
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: 3px;
    color: var(--tx-1);
    margin-bottom: 12px;
}
.mr-text { font-size: 14px; line-height: 1.7; color: var(--tx-2); max-width: 560px; }
.mr-steps {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--font-hud);
    font-size: 10px; letter-spacing: 1.5px;
}
.mr-steps span {
    border: 1px solid var(--line-2);
    padding: 6px 10px;
    color: var(--tx-2);
    background: rgba(13, 13, 17, 0.5);
}
.mr-steps span:last-child { border-color: var(--ma); color: var(--ma); }
.mr-steps i { font-style: normal; color: var(--ma); }
.mr-chips {
    list-style: none;
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.mr-chips li {
    font-family: var(--font-hud);
    font-size: 10px; letter-spacing: 2px;
    color: var(--tx-2);
    border-bottom: 1px dashed var(--line);
    padding: 8px 2px;
    display: flex; align-items: center; gap: 10px;
    transition: color 0.2s ease;
}
.mr-chips li::before { content: '▸'; color: var(--ma); font-size: 9px; }
.mode-row:hover .mr-chips li { color: var(--tx-1); }

.arena-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); }
.as-item { text-align: center; padding: 22px 8px 18px; border-right: 1px solid var(--line); }
.as-item:last-child { border-right: none; }
.as-num { display: block; font-family: var(--font-pixel); font-size: clamp(26px, 4vw, 40px); letter-spacing: 2px; color: var(--gold); margin-bottom: 6px; }
.as-label { font-family: var(--font-hud); font-size: 9px; letter-spacing: 2.5px; color: var(--tx-3); }

@media (max-width: 900px) {
    .mode-row { grid-template-columns: 1fr; gap: 18px; }
    /* Chips: 2-up grid that reads as a clean spec strip, not a loose wrap */
    .mr-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .mr-chips li { padding: 9px 2px; }
    .arena-stats { grid-template-columns: repeat(2, 1fr); }
    .as-item:nth-child(2) { border-right: none; }
    .as-item:nth-child(1), .as-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ───── RELEASE ────────────────────────────────────────────────────── */
.release { padding: clamp(72px, 10vh, 110px) 0; background: var(--bg-0); position: relative; }
.release-spread {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(20px, 3vw, 40px);
    align-items: stretch;
}
.release-art {
    position: relative;
    border: 1px solid var(--line);
    background: var(--bg-2);
    padding: 10px;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.release-art img { width: 100%; height: 100%; object-fit: cover; }
.ra-corner { position: absolute; width: 16px; height: 16px; border-color: var(--ember); border-style: solid; border-width: 0; }
.ra-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.ra-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.ra-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.ra-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.release-term {
    border: 1px solid var(--line-2);
    background: var(--bg-1);
    display: flex; flex-direction: column;
}
.rt-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
}
.rt-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c34; }
.rt-bar i:nth-child(1) { background: #f47a8c; }
.rt-bar i:nth-child(2) { background: #f5b400; }
.rt-bar i:nth-child(3) { background: #4dd9b6; }
.rt-bar span { margin-left: auto; font-family: var(--font-hud); font-size: 10px; letter-spacing: 2px; color: var(--tx-3); }
.rt-body { padding: 18px 18px 6px; flex: 1; }
.rt-body div {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--line);
}
.rt-body dt { font-family: var(--font-hud); font-size: 11px; letter-spacing: 2px; color: var(--tx-3); text-transform: uppercase; }
.rt-body dd { font-family: var(--font-hud); font-size: 12px; color: var(--tx-1); text-align: right; display: flex; align-items: center; gap: 8px; }
.rt-live { width: 7px; height: 7px; border-radius: 50%; background: #4caf50; animation: nvPulse 2s ease-in-out infinite; }
.rt-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 0; }
.rt-badges span {
    font-family: var(--font-hud); font-size: 9px; letter-spacing: 2px;
    color: var(--ember);
    border: 1px solid rgba(249, 115, 56, 0.4);
    padding: 6px 10px;
}
.rt-tagline {
    padding: 16px 18px 18px;
    font-family: var(--font-hud);
    font-size: 12px; letter-spacing: 1px;
    color: var(--gold);
    animation: caretBlink 1.2s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0.75; } }
@media (max-width: 900px) { .release-spread { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════
   STUDIO — ported verbatim from v2 (user-approved). Tokens aliased in
   :root (--bg, --bg-dark, --ink) keep the exact original look.
   ════════════════════════════════════════════════════════════════════ */
.section { padding: 6rem 0; position: relative; }

.section.about {
    background: var(--bg-dark);
    color: var(--bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(2.5rem, 5vh, 7rem);
    padding-bottom: clamp(2.5rem, 5vh, 7rem);
}

.section.about > .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

.section.about .section-head { flex-shrink: 0; margin-bottom: clamp(1.5rem, 3.5vh, 4.5rem); }
.section.about .studio-contact { flex-shrink: 0; margin-top: clamp(2rem, 4vh, 4.5rem); padding-top: clamp(1.5rem, 3vh, 3rem); }

@media (max-width: 900px) {
    .section.about {
        min-height: 0;
        overflow: visible;
        padding-top: clamp(3rem, 6vh, 5rem);
        padding-bottom: clamp(3rem, 6vh, 5rem);
    }
}

.about { background: var(--bg-dark); color: var(--bg); }

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    pointer-events: none;
}

.about .section-tag { color: #a5a5ae; }

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text .about-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text p {
    color: #c8c8cf;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.about-text strong { color: var(--accent-upgrades); font-weight: 600; }

.about-stats { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.stat {
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    --stat-accent: var(--accent-upgrades);
}

.stat.stat-boss    { --stat-accent: var(--accent-upgrades); }
.stat.stat-profile { --stat-accent: var(--accent-profile); }
.stat.stat-rank    { --stat-accent: var(--accent-rank); }

.stat::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--stat-accent);
    transform: scaleY(0.3);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.stat:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--stat-accent); }
.stat:hover::before { transform: scaleY(1); }

.stat-label {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a5a5ae;
}

.stat-number {
    font-family: var(--font-pixel);
    font-size: 2.2rem;
    color: var(--stat-accent);
    line-height: 1;
    background: transparent;
}

.studio-contact {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sc-left { display: flex; flex-direction: column; gap: 0.7rem; }

.sc-tag {
    font-family: var(--font-hud);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-tap);
    font-weight: 600;
    line-height: 1;
}

.sc-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #c8c8cf;
    line-height: 1.55;
    max-width: 520px;
    margin: 0;
}

.sc-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.3rem;
    text-decoration: none;
    font-family: var(--font-hud);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #c8c8cf;
    transition: color 0.2s ease, transform 0.2s ease;
    width: max-content;
}
.sc-social:hover { color: #ffffff; transform: translateX(2px); }

.sc-social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: invert(1);
    transition: transform 0.25s ease;
    display: block;
}
.sc-social:hover .sc-social-icon { transform: scale(1.08); }

.sc-cta { margin: 0; flex-shrink: 0; background: var(--bg); color: var(--ink); border-color: var(--bg); }
.sc-cta:hover { background: var(--accent-tap); border-color: var(--accent-tap); color: #ffffff; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45); }

@media (max-width: 900px) { .about-content { grid-template-columns: 1fr; gap: 2.4rem; } }
@media (max-width: 700px) {
    .studio-contact { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; }
    .sc-cta { width: 100%; justify-content: center; }
    .sc-text { font-size: 0.92rem; }
}

/* ───── FOOTER ─────────────────────────────────────────────────────── */
.footer { background: var(--bg-0); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 30px clamp(18px, 4vw, 44px) 22px; }
.footer-row {
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.ft-meta { font-family: var(--font-hud); font-size: 10px; letter-spacing: 2px; color: var(--tx-3); }
.ft-mark {
    font-family: var(--font-pixel); font-size: 18px; letter-spacing: 3px;
    color: var(--tx-1); text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ft-mark span { font-family: var(--font-hud); font-size: 8px; letter-spacing: 5px; color: var(--ember); }
.ft-links { display: flex; gap: 18px; }
.ft-links a {
    font-family: var(--font-hud); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--tx-2); text-decoration: none;
}
.ft-links a:hover { color: var(--ember); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 16px;
    font-family: var(--font-hud); font-size: 9px; letter-spacing: 2px;
    color: var(--tx-3);
}
.blink { animation: hintBlink 1.6s steps(2) infinite; color: #4caf50; }
@media (max-width: 700px) { .footer-row { flex-direction: column; } }

/* ───── MOBILE POLISH (≤600px) ─────────────────────────────────────── */
@media (max-width: 600px) {
    .navbar { height: 54px; padding: 0 16px; }
    .nav-panel { top: 54px; }
    .nav-mark { font-size: 11px; letter-spacing: 1.5px; }
    .hero { padding-top: 54px; }

    /* Hero meta — stack the two badges, drop the dot (it read as a stray
       orange speck between wrapped lines) */
    .hero-meta { flex-direction: column; gap: 6px; font-size: 9px; letter-spacing: 2.5px; }
    .hm-dot { display: none; }
    .hero-word { font-size: clamp(38px, 13vw, 64px); }
    .hw-sub { letter-spacing: 5px; }
    .hero-tag { font-size: 11px; letter-spacing: 2.5px; }
    .hero-tag i { padding: 0 3px; }
    .hero-actions { width: 100%; padding: 0 8px; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }

    .ticker { padding: 9px 0; }
    .ticker-track span { font-size: 12px; letter-spacing: 3px; }

    .section-head { margin-bottom: 28px; }
    .section-title { font-size: clamp(26px, 8vw, 38px); }
    .section-sub { font-size: 13.5px; }

    .systems-pin { padding-top: 48px; padding-bottom: 40px; }
    .sys-card footer p { font-size: 11.5px; }

    .arena { padding: 56px 0 48px; }

    /* CORE LOOP flagship */
    .mode-core { padding: 20px 16px; border-top-width: 2px; }
    .mc-title { font-size: clamp(26px, 9vw, 40px); letter-spacing: 2px; }
    .mc-lead { font-size: 13px; line-height: 1.7; }
    .mc-stats { grid-template-columns: 1fr 1fr; }
    .mc-stats div:nth-child(2) { border-right: none; }
    .mc-stats div:nth-child(1), .mc-stats div:nth-child(2) { border-bottom: 1px solid var(--line); }
    .mc-stats b { font-size: clamp(24px, 8vw, 32px); }
    .mc-stats span { font-size: 8px; letter-spacing: 1.5px; }

    /* Lead-in divider */
    .modes-lead { gap: 10px; margin: 2px 0 18px; }
    .ml-text { font-size: 8.5px; letter-spacing: 1.5px; white-space: normal; text-align: center; }

    /* Mode rows */
    .mode-row { padding: 16px 14px; border-left-width: 2px; }
    .mode-row:hover { transform: none; }
    .mr-title { font-size: clamp(22px, 7vw, 30px); }
    .mr-text { font-size: 13px; }
    .mr-steps { gap: 6px; font-size: 9px; }
    .mr-steps span { padding: 5px 7px; }
    .mr-chips { grid-template-columns: 1fr; }
    .mr-chips li { padding: 8px 2px; border-bottom: 1px dashed var(--line); }

    .as-item { padding: 16px 6px 13px; }
    .as-num { font-size: clamp(22px, 8vw, 34px); }
    .as-label { font-size: 8px; letter-spacing: 1.5px; }

    .release { padding: 56px 0; }
    .rt-body div { flex-wrap: wrap; }
    .rt-body dd { text-align: left; }

    .ad-coord, .hf-coord { display: none; }
    .ad-watermark { font-size: 110px; }

    .footer-bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
}

/* ───── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .boot { display: none; }
    body.booting { overflow: auto; }
    .ticker-track { animation: none !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
    .hero-particles { display: none; }
    .rv { opacity: 1; transform: none; transition: none; }
    .hf-scroll i, .systems-hint, .nv-dot, .rt-live, .rt-tagline, .blink { animation: none !important; }
    .systems { height: auto; }
    .systems-pin { position: static; height: auto; }
    .systems-rail { overflow-x: auto; }
    .systems-track { transform: none !important; }
}
