:root {
    --red: #ff292d;
    --black: #000;
    --ink: #0b0d12;
    --line: rgba(255, 255, 255, .14);
    --muted: rgba(255, 255, 255, .68);
    --display: 'Saira Condensed', 'Saira', system-ui, sans-serif;
    --body: 'Saira', system-ui, sans-serif;
    --pad: clamp(18px, 5.5vw, 108px);
    /* angled "game UI" corners */
    --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    --slant: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--red) #000; }
body { font-family: var(--body); color: #fff; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .92; text-transform: uppercase; }
em { font-style: normal; color: var(--red); }

.tag { display: inline-flex; align-items: center; gap: 10px; font: 600 .82rem var(--display); letter-spacing: .28em; text-transform: uppercase; }
.tag::before { content: ''; width: 28px; height: 8px; background: var(--red); clip-path: var(--slant); }
.word { display: inline-block; white-space: nowrap; transform-style: preserve-3d; }
.char { display: inline-block; transform-style: preserve-3d; }
[data-chars] { perspective: 900px; }

.btn {
    display: inline-block; padding: 14px 40px; background: var(--red); color: #000;
    font: 800 1.05rem var(--display); text-transform: uppercase; letter-spacing: .14em;
    clip-path: var(--slant); transition: background .25s, letter-spacing .25s;
}
.btn:hover { background: #fff; letter-spacing: .2em; }

/* ============================================================ global layers */
#webgl { position: fixed; inset: 0; width: 100%; height: 100vh; z-index: 0; display: block; }
#smooth-wrapper { position: relative; z-index: 1; }
.screen-fx { position: fixed; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 66%, rgba(0, 0, 0, .55) 100%); }
.flash { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; background: radial-gradient(circle at 65% 50%, #ffd9a0, #ff292d 60%, transparent); }
.reticle { position: fixed; top: -17px; left: -17px; width: 34px; height: 34px; z-index: 95; pointer-events: none; opacity: 0; }
.reticle::after { content: ''; position: absolute; left: 15px; top: 15px; width: 4px; height: 4px; background: var(--red); }
.reticle i { position: absolute; background: #fff; transition: .2s; }
.reticle i:nth-child(1) { left: 16px; top: 0; width: 2px; height: 9px; }
.reticle i:nth-child(2) { left: 16px; bottom: 0; width: 2px; height: 9px; }
.reticle i:nth-child(3) { top: 16px; left: 0; height: 2px; width: 9px; }
.reticle i:nth-child(4) { top: 16px; right: 0; height: 2px; width: 9px; }
.reticle.is-locked i { background: var(--red); }
.reticle.is-locked i:nth-child(1) { top: 6px; } .reticle.is-locked i:nth-child(2) { bottom: 6px; }
.reticle.is-locked i:nth-child(3) { left: 6px; } .reticle.is-locked i:nth-child(4) { right: 6px; }

/* ===================================================================== boot */
.boot { position: fixed; inset: 0; z-index: 90; perspective: 1500px; display: grid; place-items: center; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(160deg, #101218, #000 60%); }
.door::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; background: var(--red); box-shadow: 0 0 24px var(--red); }
.door-l { left: 0; transform-origin: left center; } .door-l::after { right: 0; }
.door-r { right: 0; transform-origin: right center; } .door-r::after { left: 0; }
.boot-ui { position: relative; width: min(560px, 84vw); display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 34px 28px; background: #000; clip-path: var(--cut); border: 1px solid var(--line); }
.boot-gun { width: 70%; animation: sway 2.2s ease-in-out infinite alternate; filter: drop-shadow(0 14px 22px rgba(255, 41, 45, .45)); }
@keyframes sway { from { transform: perspective(700px) rotateY(-26deg) translateY(-4px); } to { transform: perspective(700px) rotateY(26deg) translateY(4px); } }
.boot-bar { display: flex; gap: 3px; width: 100%; }
.boot-bar i { flex: 1; height: 18px; background: rgba(255, 255, 255, .1); transform: skewX(-20deg); }
.boot-bar i.on { background: var(--red); box-shadow: 0 0 10px rgba(255, 41, 45, .8); }
.boot-row { width: 100%; display: flex; justify-content: space-between; align-items: baseline; font: 600 .9rem var(--display); text-transform: uppercase; letter-spacing: .24em; }
.boot-row b { font-size: 2.4rem; font-weight: 900; letter-spacing: 0; }

/* ====================================================================== HUD */
.hud-top { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 2.6vw, 44px); pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.hud-logo img { width: clamp(108px, 10vw, 140px); height: auto; }
.hud-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #1c1c1e; border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background .25s, border-color .25s, color .25s, translate .25s; }
.social a:hover { background: var(--red); border-color: var(--red); color: #000; translate: 0 -3px; }
.social svg { width: 18px; height: 18px; }
.hud-top::before { content: ''; position: absolute; inset: 0 0 -26px; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .86), transparent); pointer-events: none; }
.hud-nav { display: flex; gap: clamp(18px, 2.4vw, 42px); }
.hud-nav a { position: relative; padding: 8px 2px; font: 700 .98rem var(--display); letter-spacing: .18em; text-transform: uppercase; transition: color .25s; }
.hud-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); clip-path: var(--slant); transform: scaleX(0); transition: transform .3s; }
.hud-nav a:hover { color: var(--red); }
.hud-nav a:hover::after, .hud-nav a.is-active::after { transform: scaleX(1); }
@media (min-width: 981px) {
    .hud-top .menu-btn, body > .menu { display: none; }
    /* equal side columns keep the menu centred */
    .hud-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
    .hud-logo { justify-self: start; }
}
.menu-btn { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 22px; background: var(--red); color: #000; clip-path: var(--slant); }
.menu-btn span { font: 800 .95rem var(--display); letter-spacing: .18em; text-transform: uppercase; min-width: 46px; }
.menu-btn i { position: absolute; right: 18px; width: 18px; height: 2px; background: #000; transition: .3s; }
.menu-btn i:nth-of-type(1) { top: 40%; } .menu-btn i:nth-of-type(2) { top: 56%; }
.menu-btn { padding-right: 52px; }
.menu-open .menu-btn i:nth-of-type(1) { top: 48%; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-of-type(2) { top: 48%; transform: rotate(-45deg); }

.hud-zone { position: fixed; left: clamp(16px, 2.6vw, 44px); bottom: 20px; z-index: 20; display: flex; align-items: center; gap: 12px; pointer-events: none; transform-origin: bottom; }
.hud-zone b { padding: 2px 14px; background: var(--red); color: #000; font: 900 1.5rem var(--display); clip-path: var(--slant); }
.hud-zone span { font: 700 .95rem var(--display); letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.hud-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 6px; }
.hud-rail a { position: relative; display: block; width: 22px; height: 16px; }
.hud-rail a::after { content: ''; position: absolute; right: 0; top: 7px; width: 10px; height: 2px; background: rgba(255, 255, 255, .45); transition: .3s; }
.hud-rail a.is-active::after { width: 22px; height: 4px; top: 6px; background: var(--red); }
.hud-rail span { position: absolute; right: 30px; top: -2px; white-space: nowrap; font: 700 .75rem var(--display); letter-spacing: .18em; text-transform: uppercase; background: #000; padding: 1px 8px; opacity: 0; transform: translateX(8px); transition: .25s; pointer-events: none; }
.hud-rail a:hover span { opacity: 1; transform: none; }
.hud-progress { position: fixed; right: clamp(16px, 2.6vw, 44px); bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.hud-progress div { width: clamp(80px, 12vw, 190px); height: 8px; background: rgba(255, 255, 255, .14); transform: skewX(-24deg); overflow: hidden; }
.hud-progress div span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.hud-progress b { font: 800 1rem var(--display); min-width: 42px; text-align: right; }

/* ===================================================================== menu */
.menu { position: fixed; inset: 0; z-index: 50; background: #000; clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); visibility: hidden; transition: clip-path .55s cubic-bezier(.7, 0, .2, 1), visibility 0s .55s; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--pad) 40px; perspective: 1000px; overflow-y: auto; }
.menu-open .menu { clip-path: polygon(0 0, 100% 0, 100% 100%, -40% 140%); visibility: visible; transition: clip-path .55s cubic-bezier(.7, 0, .2, 1); }
.menu-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .2; filter: grayscale(1) contrast(1.2); }
.menu ol { position: relative; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 2px 60px; justify-content: start; }
.menu li a { display: grid; grid-template-columns: 38px auto; align-items: baseline; padding: 6px 18px 6px 0; border-left: 4px solid transparent; padding-left: 14px; transition: .25s; }
.menu small { color: var(--red); font: 700 .85rem var(--display); }
.menu strong { font: 900 clamp(1.8rem, 5vh, 3.4rem)/1 var(--display); text-transform: uppercase; }
.menu em { grid-column: 2; color: var(--muted); font-size: .8rem; }
.menu li a:hover, .menu li a:focus-visible { border-color: var(--red); background: linear-gradient(90deg, rgba(255, 41, 45, .28), transparent); transform: translateX(14px); }
.menu-foot { position: relative; margin-top: 34px; }

.fallback { display: none; }
.no-webgl .fallback { display: block; }
.no-webgl #webgl, .no-webgl .markers { display: none; }

/* ============================================================== 01 drop zone */
.drop { position: relative; height: 100vh; min-height: 560px; overflow: hidden; perspective: 1100px; }
.drop::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .72), transparent 46%); pointer-events: none; }
.drop-menu { position: absolute; z-index: 3; left: var(--pad); top: 50%; translate: 0 -46%; transform-style: preserve-3d; }
.drop-title { font-size: clamp(4.2rem, min(13vw, 23vh), 13rem); line-height: .8; letter-spacing: -.01em; margin: 14px 0 34px; }
.drop-title > span { display: block; text-shadow: 0 12px 40px rgba(0, 0, 0, .8); }
.drop-title .outline .char { color: transparent; -webkit-text-stroke: 2px #fff; text-shadow: none; }
.main-menu li a { position: relative; display: inline-block; padding: 7px 40px 7px 18px; margin-bottom: 6px; font: 700 1.25rem var(--display); letter-spacing: .12em; text-transform: uppercase; isolation: isolate; }
.main-menu li a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: scaleX(.012); transform-origin: left; transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.main-menu li a:hover, .main-menu li a:focus-visible { color: #000; }
.main-menu li a:hover::before, .main-menu li a:focus-visible::before { transform: scaleX(1); }

.beat { position: absolute; z-index: 3; left: var(--pad); bottom: 17%; max-width: 460px; padding: 22px 28px 24px; background: linear-gradient(100deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .55)); border-left: 6px solid var(--red); clip-path: var(--cut); visibility: hidden; opacity: 0; }
.beat-right { left: auto; right: var(--pad); }
.beat small, .dossier small { display: block; margin-bottom: 8px; color: var(--red); font: 700 .8rem var(--display); letter-spacing: .3em; text-transform: uppercase; }
.beat h2 { font-size: clamp(2.4rem, min(6vw, 9vh), 5rem); margin-bottom: 12px; }
.beat p { color: var(--muted); }

.markers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.marker { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .3s; }
.marker.is-on { opacity: 1; }
.marker::before { content: ''; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; background: var(--red); border: 2px solid #fff; rotate: 45deg; animation: ping 1.8s ease-out infinite; }
.marker { font: 700 .72rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; text-indent: 18px; white-space: nowrap; text-shadow: 0 1px 6px #000, 0 0 3px #000; margin-top: -5px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 41, 45, .8); } 100% { box-shadow: 0 0 0 18px rgba(255, 41, 45, 0); } }
.deploy-hint { position: absolute; z-index: 3; left: 50%; bottom: 24px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 .75rem var(--display); letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; }
.deploy-hint i { width: 16px; height: 16px; border: solid var(--red); border-width: 0 4px 4px 0; rotate: 45deg; animation: nudge 1.1s ease-in-out infinite alternate; }
@keyframes nudge { from { translate: 0 -5px; } to { translate: 0 3px; } }
.fallback-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .55; }

/* ================================================================ 02 ally */
.ally { position: relative; height: 100vh; min-height: 600px; overflow: hidden; background: radial-gradient(ellipse at 66% 60%, #3b0508, #000 68%); }
.ally-stage { position: absolute; inset: 0; perspective: 1200px; }
.ally-slab { position: absolute; right: -6%; top: -10%; bottom: -10%; width: 52%; background: linear-gradient(200deg, var(--red), #7a0508); clip-path: polygon(34% 0, 100% 0, 66% 100%, 0 100%); transform-origin: right; opacity: .92; }
.ally-word { position: absolute; left: 0; white-space: nowrap; font: 900 clamp(6rem, 21vw, 21rem)/.85 var(--display); pointer-events: none; }
.ally-word-a { top: 9%; color: rgba(255, 255, 255, .09); }
.ally-word-b { bottom: 2%; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); }
.ally-photo { position: absolute; right: 1%; bottom: 0; width: min(68vw, 118vh); filter: drop-shadow(-24px 10px 40px rgba(0, 0, 0, .75)); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.ally-card { position: absolute; z-index: 2; left: var(--pad); top: 24%; max-width: 480px; padding: 30px 34px; background: rgba(0, 0, 0, .82); clip-path: var(--cut); border-left: 6px solid var(--red); transform-origin: left center; }
.ally-card h2 { font-size: clamp(2.8rem, min(6.4vw, 11vh), 6rem); margin: 14px 0; }
.ally-line { font-size: 1.1rem; margin-bottom: 26px; }
.ally-line strong { display: block; color: var(--red); text-transform: uppercase; letter-spacing: .16em; }

/* ============================================================ 03 operator */
.operator { position: relative; height: 100vh; min-height: 600px; overflow: hidden; perspective: 1100px; }
.operator-back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 0; mix-blend-mode: screen; pointer-events: none; }
.operator-back span { font: 900 clamp(5rem, 17vw, 17rem)/.86 var(--display); text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 41, 45, .3); }
.dossier { position: absolute; z-index: 2; left: var(--pad); top: 30%; width: min(400px, 34vw); padding: 24px 26px 28px; background: linear-gradient(135deg, rgba(11, 13, 18, .93), rgba(0, 0, 0, .7)); border-top: 3px solid var(--red); clip-path: var(--cut); transform-origin: center; }
.dossier h2 { font-size: clamp(2.2rem, min(4.6vw, 8vh), 4.2rem); margin-bottom: 14px; }
.dossier p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.dossier-2 { visibility: hidden; top: 34%; }
.dossier-3 { visibility: hidden; left: auto; right: var(--pad); top: 24%; }
.operator { cursor: ew-resize; touch-action: pan-y; user-select: none; }
.spin-hint { position: absolute; z-index: 2; left: 50%; bottom: 22px; translate: -50% 0; white-space: nowrap; font: 700 .75rem var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.fallback-operator { position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 80%; object-fit: contain; }

/* ============================================================== 04 armory */
.armory { position: relative; height: 100vh; min-height: 600px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: crosshair; }
.armory-head { position: absolute; left: var(--pad); top: 15%; z-index: 2; pointer-events: none; }
.armory-head h2 { font-size: clamp(2.8rem, min(6vw, 11vh), 6.4rem); margin-top: 8px; }
.weapon-name { position: absolute; right: var(--pad); top: 17%; z-index: 2; font: 600 1.1rem var(--display); text-transform: uppercase; letter-spacing: .3em; text-align: right; pointer-events: none; }
.weapon-name b { display: block; font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: 0; color: transparent; -webkit-text-stroke: 2px var(--red); }
.fire-btn { position: absolute; z-index: 2; right: var(--pad); bottom: 15%; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, var(--red) 0 58%, transparent 59%); border: 2px solid var(--red); display: grid; place-content: center; text-align: center; cursor: crosshair; }
.fire-btn span { font: 900 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: #000; }
.fire-btn small { font-size: .55rem; color: #000; text-transform: uppercase; letter-spacing: .12em; }
.fire-btn:active { transform: scale(.93); }
.slots { position: absolute; z-index: 2; left: 50%; bottom: 12%; translate: -50% 0; display: flex; gap: 12px; }
.slot { position: relative; width: clamp(96px, 12vw, 176px); padding: 18px 14px 12px; background: rgba(11, 13, 18, .86); border: 1px solid var(--line); clip-path: var(--cut); transition: .25s; }
.slot small { position: absolute; left: 20px; top: 2px; font: 800 .85rem var(--display); }
.slot:hover { transform: translateY(-6px); }
.slot.is-active { background: linear-gradient(160deg, var(--red), #7c080b); border-color: var(--red); transform: translateY(-12px); }
.fallback-gun { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(760px, 90%); }

/* =========================================================== 05 cinematic */
.cinematic { position: relative; height: 100vh; min-height: 520px; overflow: hidden; display: grid; place-items: center; perspective: 1300px; }
.monitor { position: relative; width: min(94vw, 156vh); aspect-ratio: 16 / 9; background: var(--ink); clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px); border: 2px solid var(--red); transform-style: preserve-3d; }
.monitor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cine-word { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; font-size: clamp(4rem, 14vw, 14rem); pointer-events: none; text-shadow: 0 10px 40px #000; }
.cine-word-l { left: 3%; } .cine-word-r { right: 3%; color: var(--red); }
.sound-btn { position: absolute; right: 34px; bottom: 18px; padding: 8px 22px; background: rgba(0, 0, 0, .82); clip-path: var(--slant); font: 700 .85rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
.sound-btn[aria-pressed="true"] { background: var(--red); color: #000; }

/* =============================================================== 06 squad */
.squad { position: relative; height: 100vh; min-height: 640px; overflow: hidden; perspective: 1400px; background: linear-gradient(112deg, transparent 0 54%, rgba(255, 41, 45, .16) 54% 76%, transparent 76%); }
.squad-head { position: absolute; z-index: 3; left: var(--pad); top: clamp(88px, 13vh, 140px); max-width: 44%; }
.squad-head h2 { font-size: clamp(2rem, min(3.8vw, 7vh), 4.4rem); margin-top: 8px; }
.squad-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.fighter { position: absolute; inset: 0; visibility: hidden; transform-style: preserve-3d; }
.fighter.is-active { visibility: visible; }
.fighter-art { position: absolute; right: 18%; top: 13%; height: 62%; aspect-ratio: .86; transform-style: preserve-3d; }
.fighter-art::before { content: ''; position: absolute; inset: -14px 18px 18px -14px; border: 2px solid var(--red); clip-path: var(--cut); }
.fighter-art img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); scale: 1.0; }
.fighter-info { position: absolute; left: var(--pad); bottom: max(150px, 20vh); z-index: 2; max-width: 40%; }
.fighter-info small { display: inline-block; padding: 3px 18px; background: var(--red); color: #000; font: 800 1rem var(--display); letter-spacing: .2em; text-transform: uppercase; clip-path: var(--slant); }
.fighter-info h3 { font-size: clamp(2.8rem, min(7vw, 13vh), 8rem); max-width: 8ch; margin-top: 12px; text-shadow: 0 10px 30px #000; }
.roster { position: absolute; z-index: 4; left: 50%; bottom: 68px; translate: -50% 0; display: flex; gap: 10px; perspective: 800px; }
.roster button { position: relative; width: clamp(58px, 8vw, 118px); height: clamp(72px, 13vh, 126px); overflow: hidden; clip-path: var(--cut); border-bottom: 4px solid transparent; filter: grayscale(1) brightness(.6); transition: filter .25s, border-color .25s, translate .25s; }
.roster img { width: 100%; height: 100%; object-fit: cover; }
.roster span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: rgba(0, 0, 0, .8); font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.roster button:hover { filter: none; translate: 0 -6px; }
.roster button[aria-selected="true"] { filter: none; border-color: var(--red); translate: 0 -12px; }

/* =============================================================== 07 comms */
.comms { position: relative; height: 100vh; min-height: 640px; overflow: hidden; perspective: 1200px; }
.comms::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 56%, rgba(255, 41, 45, .16), transparent 62%); }
.comms-head { position: absolute; z-index: 20000; left: 0; right: 0; top: 13%; text-align: center; padding-inline: 20px; pointer-events: none; }
.comms-head h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); margin-top: 8px; }
.tunnel { position: absolute; inset: 0; transform-style: preserve-3d; }
.signal { position: absolute; left: 50%; top: 57%; width: min(940px, 88vw); display: grid; grid-template-columns: 300px 1fr; background: linear-gradient(120deg, #16080a, #07080b 60%); clip-path: var(--cut); border: 1px solid rgba(255, 41, 45, .5); }
.signal-face { overflow: hidden; }
.signal-face img { width: 100%; height: 100%; object-fit: cover; }
.signal-body { padding: 26px 34px 28px; }
.signal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font: 700 .8rem var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--red); }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 100%; background: var(--red); animation: wave .9s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-duration: .6s; }
@keyframes wave { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.signal blockquote { font-size: clamp(1.05rem, 1.7vw, 1.45rem); font-weight: 500; line-height: 1.55; }
.signal figcaption { margin-top: 22px; }
.signal figcaption strong { display: block; font: 900 1.7rem var(--display); text-transform: uppercase; }
.signal figcaption span { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* =============================================================== 08 intel */
.intel { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 88px 16px 70px;
    background: radial-gradient(ellipse 60% 38% at 50% 58%, rgba(255, 41, 45, .2), transparent 70%); }
.intel-head { text-align: center; flex: none; }
.intel-head h2 { font-size: clamp(2.4rem, min(6vw, 9vh), 5.4rem); margin-top: 4px; }
.drum-stage { --w: min(36vw, 52vh, 540px); position: relative; flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; }
.drum { position: relative; width: var(--w); height: calc(var(--w) * .68); transform-style: preserve-3d; }
.story { position: absolute; inset: 0; overflow: hidden; background: var(--ink); backface-visibility: hidden; clip-path: var(--cut); border-bottom: 5px solid rgba(255, 255, 255, .18); }
.story img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: grayscale(.85) brightness(.6); transition: filter .4s; }
.story.is-front { border-color: var(--red); }
.story.is-front img { filter: none; }
.story-no { position: absolute; left: 0; top: 0; padding: 4px 22px 4px 18px; background: var(--red); color: #000; font: 900 1.3rem var(--display); clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.story-text { display: none; }
.drum-base { position: absolute; left: 50%; bottom: 0; width: min(86vw, 820px); height: 16%; translate: -50% 40%; border-radius: 50%; border-top: 3px solid var(--red); background: radial-gradient(ellipse at 50% 0, rgba(255, 41, 45, .45), transparent 70%); pointer-events: none; }
.brief { flex: none; width: min(860px, 100%); min-height: clamp(84px, 13vh, 120px); margin-top: 22px; text-align: center; perspective: 700px; }
.brief time { display: block; font: 700 .8rem var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.brief p { font: 700 clamp(1.15rem, min(2.4vw, 3.6vh), 2rem)/1.3 var(--display); }
.drum-nav { flex: none; display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.drum-prev, .drum-next { width: 52px; height: 38px; background: var(--ink); border: 1px solid var(--line); clip-path: var(--slant); font-size: 1.1rem; }
.drum-prev:hover, .drum-next:hover { background: var(--red); color: #000; }
.ticks { display: flex; gap: 5px; }
.ticks button { width: 20px; height: 8px; background: rgba(255, 255, 255, .2); transform: skewX(-24deg); transition: .3s; }
.ticks button.is-active { width: 40px; background: var(--red); }

/* ================================================================== 09 hq */
.hq { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; padding: 100px var(--pad) 80px; gap: 40px; perspective: 1300px; }
.hq-base { position: relative; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; cursor: grab; touch-action: pan-y; user-select: none; }
.hq-base:active { cursor: grabbing; }
.hq-base .tag { position: absolute; left: 0; top: 0; }
.hq-side { align-self: center; }
.hq-side h2 { font-size: clamp(3.4rem, 7vw, 6.6rem); }
.hq-side > p { color: var(--muted); margin-top: 8px; }
.hq-mail { display: inline-block; margin: 14px 0 26px; font: 800 clamp(1.5rem, 2.6vw, 2.3rem) var(--display); letter-spacing: .04em; border-bottom: 3px solid var(--red); }
.hq-mail:hover { color: var(--red); }
#contactForm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#contactForm label { display: block; padding: 8px 16px 6px; background: rgba(11, 13, 18, .9); border-left: 3px solid var(--line); transition: .25s; }
#contactForm label:focus-within { border-color: var(--red); background: rgba(255, 41, 45, .1); }
#contactForm label span { display: block; font: 700 .72rem var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
#contactForm input, #contactForm textarea { width: 100%; background: none; border: 0; outline: 0; padding: 3px 0; resize: vertical; }
#contactForm .wide, #contactForm .btn, .form-note { grid-column: 1 / -1; }
#contactForm .btn { justify-self: start; border: 0; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ========================================================== 10 extraction */
.extract { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; overflow: hidden; padding-top: 120px; }
.extract::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#000 0%, transparent 22%, transparent 45%, rgba(0, 0, 0, .94) 80%); pointer-events: none; }
.extract > * { position: relative; }
.extract-title { text-align: center; margin-bottom: auto; padding-inline: 14px; }
.extract-title h2 { margin-top: 12px; line-height: .82; }
.extract-title .stay { display: block; font-size: clamp(2.4rem, 7vw, 6.4rem); }
.extract-title .game { display: block; font-size: clamp(4.4rem, 17vw, 16rem); text-shadow: 0 2px 0 #b3181c, 0 4px 0 #8e1215, 0 6px 0 #6b0d0f, 0 8px 0 #4a090a, 0 26px 44px #000; }
.extract-cta { width: min(1120px, 100% - 32px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 80px; padding: 0 38px 0 0; background: var(--red); clip-path: var(--cut); }
.extract-cta img { width: 230px; align-self: flex-end; }
.extract-cta div { flex: 1; min-width: 230px; padding-block: 24px; color: #000; }
.extract-cta h3 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.extract-cta div a { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.extract-cta .btn { background: #000; color: var(--red); }
.extract-cta .btn:hover { background: #fff; color: #000; }
.extract-foot { width: min(1120px, 100% - 32px); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 26px; padding: 40px 0 30px; }
.extract-foot img { width: 180px; height: auto; }
.extract-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; max-width: 560px; }
.extract-foot li a { font: 700 .9rem var(--display); text-transform: uppercase; letter-spacing: .16em; }
.extract-foot li a:hover { color: var(--red); }
.copyright { width: 100%; text-align: center; padding: 18px 16px 62px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); background: rgba(0, 0, 0, .85); }
.copyright a { color: var(--red); }

/* the footer has its own links; keep the HUD out of its way */
html[data-zone="extract"] .hud-zone,
html[data-zone="extract"] .hud-progress { visibility: hidden; }

/* ============================================================== responsive */
@media (max-width: 980px) {
    .hud-nav { display: none; }
}
@media (max-width: 1100px) {
    .signal { grid-template-columns: 220px 1fr; }
}

@media (max-width: 860px) {
    .reticle, .hud-rail { display: none; }
    .hud-progress div { width: 70px; }
    .hud-zone span { font-size: .75rem; }
    .hud-top { background: linear-gradient(#000 30%, transparent); }
    .menu ol { grid-auto-flow: row; grid-template-rows: none; }
    .menu { justify-content: flex-start; }
    .menu strong { font-size: 1.9rem; }
    .menu em { display: none; }

    .drop::before { background: linear-gradient(transparent 38%, rgba(0, 0, 0, .9) 78%); }
    .drop-menu { top: auto; bottom: 108px; translate: none; right: var(--pad); }
    .drop-title { font-size: clamp(4rem, 23vw, 8rem); margin: 10px 0 18px; }
    .drop-menu .tag { font-size: .68rem; letter-spacing: .16em; }
    .main-menu li a { font-size: 1.05rem; padding-block: 4px; margin-bottom: 2px; }
    .deploy-hint { bottom: 62px; font-size: .65rem; }
    .deploy-hint i { display: none; }
    .beat { left: 16px; right: 16px; bottom: 80px; max-width: none; }

    .ally-photo { width: 130vw; right: -15vw; bottom: 300px; max-height: calc(100vh - 380px); object-fit: contain; object-position: bottom; }
    .ally-card { left: 16px; right: 16px; top: auto; bottom: 66px; padding: 20px; }
    .ally-card h2 { font-size: 2.9rem; margin: 8px 0; }
    .ally-line { font-size: .95rem; margin-bottom: 16px; }
    .ally-slab { width: 90%; right: -30%; }
    .ally-word-a { top: 14%; }

    .spin-hint { display: none; }
    .dossier, .dossier-2, .dossier-3 { left: 16px; right: 16px; width: auto; top: auto; bottom: 66px; padding: 18px 20px 20px; }
    .dossier h2 { font-size: 2.4rem; margin-bottom: 8px; }
    .dossier p { font-size: .92rem; line-height: 1.6; }

    .armory-head { top: 12%; left: 16px; }
    .weapon-name { top: auto; bottom: 31%; right: auto; left: 16px; text-align: left; font-size: .8rem; }
    .weapon-name b { font-size: 3.4rem; }
    .fire-btn { right: 16px; bottom: 27%; width: 90px; height: 90px; }
    .slots { bottom: 74px; gap: 8px; }
    .slot { width: 29vw; padding: 20px 10px 12px; }

    .squad-head { top: 84px; left: 16px; right: 16px; max-width: none; }
    .squad-head h2 { font-size: 2.2rem; }
    .fighter-info { max-width: none; }
    .fighter-art { right: auto; left: 50%; margin-left: -29vw; top: 23%; height: auto; width: 58vw; max-height: 40vh; }
    .fighter-info { left: 16px; bottom: calc(100px + clamp(72px, 13vh, 126px)); }
    .fighter-info h3 { font-size: min(2.6rem, 11vw); max-width: none; margin-top: 4px; }
    .roster { bottom: 66px; gap: 6px; }

    .comms-head { top: 11%; }
    .comms-head .tag { font-size: .64rem; letter-spacing: .12em; }
    .signal { grid-template-columns: 1fr; top: 58%; }
    .signal-face { display: flex; justify-content: center; padding-top: 18px; }
    .signal-face img { width: 112px; height: 112px; border-radius: 50%; border: 3px solid var(--red); }
    .signal-body { padding: 16px 20px 22px; }
    .signal blockquote { font-size: .98rem; }

    .intel { padding-bottom: 66px; }
    .intel .tag { font-size: .68rem; letter-spacing: .14em; }
    .drum-stage { --w: min(66vw, 40vh); }
    .ticks button { width: 10px; } .ticks button.is-active { width: 22px; }

    .hq { grid-template-columns: 1fr; padding: 80px 16px 60px; }
    .hq-base { min-height: 340px; }

    .extract-cta { padding: 0; justify-content: center; text-align: center; }
    .extract-cta img { align-self: center; order: 3; margin-top: -6px; }
    .extract-cta div { flex-basis: 100%; padding: 24px 18px 0; }
    .extract-foot { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .hud-actions { gap: 10px; }
    .hud-top .social { gap: 6px; }
    .hud-top .social a { width: 32px; height: 32px; }
    .hud-top .social svg { width: 15px; height: 15px; }
    .hud-top .menu-btn { width: 52px; height: 36px; padding: 0; }
    .hud-top .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .hud-top .menu-btn i { right: 17px; }
}
@media (max-width: 480px) {
    #contactForm { grid-template-columns: 1fr; }
}

/* ========================================================== reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
.reduced .beat, .reduced .markers { display: none; }
.reduced .operator, .reduced .comms { height: auto; padding-block: 100px; }
.reduced .dossier { position: relative; inset: auto; visibility: visible; margin: 20px var(--pad); }
.reduced .tunnel { position: static; padding-top: 140px; display: grid; justify-items: center; gap: 24px; }
.reduced .signal { position: static; }
.reduced .ally-card, .reduced .cine-word { transform: none; }
.reduced .cine-word { display: none; }
