/* Riverline Reborn — site
   The look comes from the game itself: the ink, cream, river green and amber of its logo, the gold
   of its menu selection, the mint line of its HUD panels, and the four fonts of its menus. */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-700.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-600.woff") format("woff"); }
@font-face { font-family: "Rajdhani"; font-weight: 600; font-display: swap; src: url("../assets/fonts/rajdhani-600.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../assets/fonts/manrope-500.woff") format("woff"); }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-style: italic; font-display: swap; src: url("../assets/fonts/crimson-text-600-italic.woff") format("woff"); }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #06141b;
  --ink-2: #0a1c25;
  --ink-3: #102a34;
  --cream: #f0ebda;
  --cream-2: rgba(240, 235, 218, .68);
  --cream-3: rgba(240, 235, 218, .38);
  --line: rgba(240, 235, 218, .13);
  --river: #8fb4b0;
  --mint: #9fe6dc;
  --amber: #ff7a1f;
  --gold: #ffb347;
  --red: #e2553f;

  --pad: clamp(20px, 5vw, 88px);
  --max: 1480px;
  --top: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-label: "Rajdhani", "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Crimson Text", Georgia, "Times New Roman", serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 500 17px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--ink); font: 600 15px var(--f-label); letter-spacing: .08em; text-decoration: none; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type */
.display {
  margin: 0;
  font: 700 clamp(46px, 7.4vw, 120px)/.9 var(--f-display);
  letter-spacing: .004em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display--band { font-size: clamp(40px, 5.2vw, 88px); }
.display--end { font-size: clamp(56px, 10vw, 168px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(14px, 1.6vw, 24px);
  font: 600 14px/1 var(--f-label); letter-spacing: .32em; text-transform: uppercase; color: var(--cream-2);
}
.eyebrow b { display: inline-flex; align-items: center; gap: 14px; color: var(--amber); letter-spacing: .12em; font-weight: 600; }
.eyebrow b::after { content: ""; width: 40px; height: 2px; background: var(--amber); }
.eyebrow--band b::after { width: 22px; }

/* The store tag: two tones, like the rule under the logo. */
.soon { display: inline-flex; align-items: stretch; font: 600 13px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.soon b { padding: 9px 10px 8px 12px; background: var(--amber); color: var(--ink); font-weight: 600; }
.soon span { padding: 9px 12px 8px 10px; border: 1px solid var(--amber); border-left: 0; color: var(--cream); }
.soon--top { font-size: 12px; }
.soon--top b, .soon--top span { padding-top: 8px; padding-bottom: 7px; }
.soon--big { font-size: clamp(15px, 1.5vw, 20px); }
.soon--big b, .soon--big span { padding: 13px 18px 12px; }

/* The button is the game's menu selection: a gold bar with ink text. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px 14px 18px;
  background: var(--gold); color: var(--ink);
  font: 600 19px/1 var(--f-label); letter-spacing: .08em; text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn svg { fill: currentColor; transition: transform .25s var(--ease); }
.btn:hover { background: var(--cream); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream-3); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }

kbd {
  display: inline-grid; place-items: center; min-width: clamp(30px, 2vw, 36px); height: clamp(28px, 1.9vw, 34px); padding: 0 8px;
  border: 1px solid var(--cream-3); border-bottom-width: 2px; border-radius: 4px;
  font: 600 clamp(13px, .86vw, 15px)/1 var(--f-label); letter-spacing: .06em; color: var(--cream);
}
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 600 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); }
.keys span { margin: 0 6px 0 2px; }

/* HUD corners over a picture. */
.corners { position: absolute; inset: 12px; pointer-events: none; }
.corners i { position: absolute; width: 16px; height: 16px; border: 2px solid var(--mint); opacity: .75; }
.corners i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ top bar */
.top {
  position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: var(--top);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  transition: background .35s, box-shadow .35s;
}
.top.is-solid { background: rgba(6, 20, 27, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top__brand { flex: none; width: 0; margin-right: -28px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .35s, width .35s var(--ease), margin .35s var(--ease); }
.top__brand img { width: 104px; max-width: none; }
.top.is-solid .top__brand { width: 104px; margin-right: 0; opacity: 1; pointer-events: auto; }
.top__nav { display: flex; gap: clamp(16px, 2.4vw, 38px); margin-right: auto; }
.top__nav a {
  position: relative; padding: 8px 0;
  font: 600 15px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--cream-2);
  transition: color .2s;
}
.top__nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav a:hover, .top__nav a.is-now { color: var(--cream); }
.top__nav a.is-now::after, .top__nav a:hover::after { transform: scaleX(1); }
.top__side { display: flex; align-items: center; gap: 18px; }
.top__progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line); }
.top__progress i { display: block; height: 100%; width: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }

.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: none; border: 1px solid var(--cream-3); cursor: pointer; font: 600 13px/1 var(--f-label); letter-spacing: .16em; }
.lang__btn:hover { border-color: var(--cream); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; margin: 0; padding: 6px; list-style: none; background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang__list button { display: block; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: start; cursor: pointer; font: 600 16px/1 var(--f-label); letter-spacing: .06em; color: var(--cream-2); }
.lang__list button:hover { background: rgba(240, 235, 218, .07); color: var(--cream); }
.lang__list button[aria-selected="true"] { background: var(--gold); color: var(--ink); }

/* ------------------------------------------------------------------ flight rail */
.rail { position: fixed; z-index: 40; right: 30px; top: calc(var(--top) + 34px); bottom: 44px; width: 1px; display: none; }
.rail__line { position: absolute; inset: 0; background: var(--line); }
.rail__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--amber); transform: scaleY(0); transform-origin: top; }
.rail__jet { position: absolute; left: -11px; top: -11px; max-width: none; fill: var(--cream); transform: translateY(0) rotate(180deg); will-change: transform; filter: drop-shadow(0 0 6px rgba(6, 20, 27, .9)); }
.rail__marks { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.rail__marks li { position: absolute; left: -8px; width: 9px; height: 2px; margin-top: -1px; background: var(--cream-3); transition: background .3s, width .3s, left .3s; }
.rail__marks span { position: absolute; left: 100%; top: -2px; margin-left: 9px; writing-mode: vertical-rl; font: 600 11px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; color: var(--cream-2); opacity: 0; transition: opacity .3s; }
.rail__marks li.is-past { background: var(--amber); }
.rail__marks li.is-now { left: -14px; width: 15px; background: var(--amber); }
.rail__marks li.is-now span { opacity: 1; }
@media (min-width: 1180px) { .rail { display: block; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; height: 100vh; height: 100svh; min-height: 620px; padding: 0 var(--pad) clamp(40px, 7vh, 84px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 20, 27, .62) 0%, rgba(6, 20, 27, 0) 20%, rgba(6, 20, 27, 0) 46%, rgba(6, 20, 27, .9) 100%),
    linear-gradient(90deg, rgba(6, 20, 27, .5) 0%, rgba(6, 20, 27, 0) 52%);
}
.hero__logo { margin: 0 0 4px -1.4%; width: clamp(270px, 41vw, 640px); }
.hero__logo img { width: 100%; filter: drop-shadow(0 10px 30px rgba(6, 20, 27, .5)); }
.hero__tag { margin: 0 0 clamp(22px, 3vh, 34px); font: italic 600 clamp(22px, 2.4vw, 36px)/1.15 var(--f-serif); text-shadow: 0 2px 18px rgba(6, 20, 27, .7); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.hero__hud { flex: none; min-width: 236px; margin-right: 34px; padding: 13px 18px 13px 16px; background: rgba(6, 20, 27, .62); border-left: 2px solid var(--mint); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hud__k { font: 600 13px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--cream-2); }
.hud__k b { color: var(--amber); font-weight: 600; }
.hud__name { margin: 7px 0 11px; font: 700 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.hud__bar { height: 2px; background: var(--line); }
.hud__bar i { display: block; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; }
.hud__note { margin-top: 10px; font: 500 12px/1.3 var(--f-body); color: var(--cream-3); }

/* ------------------------------------------------------------------ sections */
.sec { position: relative; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(84px, 11vw, 176px) var(--pad) clamp(56px, 7vw, 110px); }
.sec__head { margin-bottom: clamp(30px, 4.4vw, 68px); }
.sec__note { margin-top: clamp(20px, 2.4vw, 34px); max-width: 60ch; font: italic 600 clamp(19px, 1.7vw, 25px)/1.3 var(--f-serif); color: var(--cream-2); }

/* trailer */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.player__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  border: 0; cursor: pointer; color: var(--cream);
  background: radial-gradient(34% 46% at 50% 56%, rgba(6, 20, 27, .5) 0%, rgba(6, 20, 27, .22) 100%), linear-gradient(180deg, rgba(6, 20, 27, .1) 40%, rgba(6, 20, 27, .6) 100%);
}
.player__ring { display: grid; place-items: center; width: clamp(84px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--cream); padding-left: 5px; transition: background .3s, color .3s, transform .4s var(--ease), border-color .3s; }
.player__ring svg { fill: currentColor; width: 36%; height: 36%; }
.player__play:hover .player__ring { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.07); }
.player__label { display: flex; flex-direction: column; align-items: center; gap: 9px; font: 600 14px/1 var(--f-label); letter-spacing: .26em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 2px rgba(6, 20, 27, .9), 0 0 18px rgba(6, 20, 27, .9); }
.player__label b { font: 600 22px/1 var(--f-label); letter-spacing: .26em; color: var(--cream); }
.player.is-playing .player__play, .player.is-playing .corners { display: none; }

/* ------------------------------------------------------------------ feature bands */
.band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(26px, 4.4vw, 80px); margin-top: clamp(70px, 8vw, 124px); }
.sec__head + .band { margin-top: 0; }
.band--flip .band__stage { order: 2; }
.stage { position: relative; aspect-ratio: 16 / 9; background: var(--ink-2); overflow: hidden; }
.stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__cap { position: absolute; left: 0; bottom: 0; display: flex; gap: 12px; padding: 11px 18px 10px 14px; background: rgba(6, 20, 27, .72); border-left: 2px solid var(--mint); font: 600 13px/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; }
.stage__cap b { color: var(--amber); font-weight: 600; }

.tabs { display: flex; flex-direction: column; gap: 3px; margin: clamp(18px, 2.2vw, 30px) 0 clamp(16px, 2vw, 26px); }
.tab {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 16px 12px;
  background: transparent; border: 0; cursor: pointer; overflow: hidden; text-align: start;
  font: 600 clamp(19px, 1.65vw, 25px)/1 var(--f-label); letter-spacing: .1em; color: var(--cream-2);
  transition: background .25s, color .25s;
}
.tab b { min-width: 24px; font: 600 13px/1 var(--f-label); letter-spacing: .14em; color: var(--cream-3); }
.tab i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(6, 20, 27, .5); transform: scaleX(var(--p, 0)); transform-origin: left; opacity: 0; }
[dir="rtl"] .tab i { transform-origin: right; }
.tab:hover { background: rgba(240, 235, 218, .07); color: var(--cream); }
.tab[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.tab[aria-selected="true"] b { color: rgba(6, 20, 27, .6); }
.tab[aria-selected="true"] i { opacity: 1; }
.tabs--solo .tab { cursor: default; }

.fx { display: none; grid-template-columns: minmax(150px, clamp(230px, 17vw, 330px)) minmax(0, 1fr); align-items: center; gap: clamp(16px, 1.8vw, 30px); }
.fx.is-on { display: grid; animation: fx-in .5s var(--ease) both; }
@keyframes fx-in { from { opacity: 0; transform: translateY(8px); } }
.fx__text { font-size: clamp(16px, 1.02vw, 19px); line-height: 1.5; color: var(--cream-2); }
.fx__text p + p { margin-top: 12px; }

/* The explanatory drawings: cream lines on a faint grid, amber for what the player does. */
.fx__art {
  width: 100%; height: auto; overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(240, 235, 218, .045) 1px, transparent 1px) 0 -1px / 100% 16.666%,
    linear-gradient(90deg, rgba(240, 235, 218, .045) 1px, transparent 1px) -1px 0 / 9.0909% 100%,
    var(--ink-2);
}
.fx__art .k { fill: none; stroke: var(--cream); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fx__art .k2 { fill: none; stroke: var(--cream-3); stroke-width: 1.2; }
.fx__art .ka { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fx__art .km { fill: none; stroke: var(--mint); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fx__art .fa { fill: var(--amber); }
.fx__art .fc { fill: var(--cream); }
.fx__art .fm { fill: var(--mint); }
.fx__art .tx { font: 600 9px var(--f-label); letter-spacing: .1em; text-transform: uppercase; fill: var(--cream-2); }
.fx__art .ta { fill: var(--amber); }
.fx__art .tm { fill: var(--mint); }
.fx__art .a-dash { stroke-dasharray: 3 4; }
.fx.is-on .a-wave { animation: a-wave 2.6s linear infinite; }
@keyframes a-wave { to { transform: translateX(-30px); } }

/* shared: tracers, alert */
.a-gun__tr { stroke-dasharray: 7 9; }
.fx.is-on .a-gun__tr { animation: a-tracer .42s linear infinite; }
@keyframes a-tracer { to { stroke-dashoffset: -16; } }
.fx.is-on .a-alert { animation: a-alert 5s steps(1) infinite; }
@keyframes a-alert { 0%, 12%, 24%, 36%, 48% { opacity: 1; } 6%, 18%, 30%, 42% { opacity: .15; } 53%, 100% { opacity: 0; } }

/* A1 low flight: the ground comes by, the jet climbs over the island and skims the barge. */
.fx.is-on .a-low__land { animation: a-low-land 6s linear infinite; }
@keyframes a-low-land { to { transform: translateX(-360px); } }
.a-low__jet { transform: translateY(86px); }
.a-low__ptr { transform: translateY(89px); }
.fx.is-on .a-low__jet { animation: a-low-jet 6s ease-in-out infinite; }
.fx.is-on .a-low__ptr { animation: a-low-ptr 6s ease-in-out infinite; }
@keyframes a-low-jet { 0%, 9% { transform: translateY(86px); } 19%, 52% { transform: translateY(42px); } 64%, 100% { transform: translateY(86px); } }
@keyframes a-low-ptr { 0%, 9% { transform: translateY(89px); } 19%, 52% { transform: translateY(45px); } 64%, 100% { transform: translateY(89px); } }

/* A2 afterburner: three seconds of thrust, ten to charge again. */
.a-boost__bar { transform-box: fill-box; transform-origin: left center; }
.a-boost__flame { transform-box: fill-box; transform-origin: right center; transform: scaleX(.35); }
.fx.is-on .a-boost__bar { animation: a-boost-bar 6.5s linear infinite; }
.fx.is-on .a-boost__flame { animation: a-boost-flame 6.5s linear infinite; }
.fx.is-on .a-boost__jet { animation: a-boost-jet 6.5s ease-in-out infinite; }
.fx.is-on .a-boost__air { animation: a-boost-air 6.5s linear infinite; }
.fx.is-on .a-boost__t1 { animation: a-boost-t1 6.5s steps(1) infinite; }
.fx.is-on .a-boost__t2 { animation: a-boost-t2 6.5s steps(1) infinite; }
@keyframes a-boost-bar { 0% { transform: scaleX(1); } 23% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes a-boost-flame { 0%, 21% { transform: scaleX(1.55); opacity: 1; } 26%, 100% { transform: scaleX(.35); opacity: .75; } }
@keyframes a-boost-jet { 0% { transform: translateX(0); } 7% { transform: translateX(30px); } 21% { transform: translateX(38px); } 42%, 100% { transform: translateX(0); } }
@keyframes a-boost-air { 0% { transform: translateX(70px); opacity: 0; } 2% { opacity: 1; } 23% { transform: translateX(-230px); opacity: 1; } 24% { transform: translateX(40px); opacity: 0; } 30% { opacity: .55; } 100% { transform: translateX(-60px); opacity: .55; } }
@keyframes a-boost-t1 { 0% { opacity: 1; } 23%, 100% { opacity: .3; } }
@keyframes a-boost-t2 { 0% { opacity: .3; } 23%, 100% { opacity: 1; } }

/* B1 cannon */
.a-gun__hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-gun__hit { animation: a-gun-hit 1.5s ease-out infinite; }
.fx.is-on .a-gun__tg { animation: a-gun-tg 1.5s linear infinite; }
@keyframes a-gun-hit { 0%, 50% { opacity: 0; transform: scale(.5); } 58% { opacity: 1; transform: scale(.8); } 85%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes a-gun-tg { 0%, 54%, 70%, 100% { transform: none; } 58% { transform: translate(2px, -1px); } 64% { transform: translate(-1px, 1px); } }

/* B2 rockets: a salvo, then the blast that takes both boats. */
.a-rkt__r { opacity: 0; }
.fx.is-on .a-rkt__r { animation: a-rkt-fly 3.6s linear infinite; }
.fx.is-on .a-rkt__r2 { animation-delay: .25s; }
.fx.is-on .a-rkt__r3 { animation-delay: .5s; }
.fx.is-on .a-rkt__r4 { animation-delay: .75s; }
@keyframes a-rkt-fly { 0% { opacity: 0; transform: translateX(0); } 1% { opacity: 1; } 13% { opacity: 1; transform: translateX(126px); } 14%, 100% { opacity: 0; transform: translateX(126px); } }
.a-rkt__blast, .a-rkt__core { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-rkt__blast { animation: a-rkt-blast 3.6s ease-out infinite; }
.fx.is-on .a-rkt__core { animation: a-rkt-core 3.6s linear infinite; }
.fx.is-on .a-rkt__tg { animation: a-rkt-tg 3.6s linear infinite; }
.fx.is-on .a-rkt__lbl { animation: a-rkt-lbl 3.6s linear infinite; }
@keyframes a-rkt-blast { 0%, 12% { opacity: 0; transform: scale(.1); } 15% { opacity: 1; transform: scale(.35); } 44% { opacity: 1; transform: scale(1); } 62%, 100% { opacity: 0; transform: scale(1.08); } }
@keyframes a-rkt-core { 0%, 12% { opacity: 0; transform: scale(.4); } 14% { opacity: 1; transform: scale(1); } 19% { opacity: .4; transform: scale(.7); } 21% { opacity: 1; transform: scale(1.2); } 26% { opacity: .4; transform: scale(.8); } 28% { opacity: 1; transform: scale(1.4); } 33% { opacity: .4; transform: scale(.9); } 35% { opacity: 1; transform: scale(1.6); } 50%, 100% { opacity: 0; transform: scale(1.9); } }
@keyframes a-rkt-tg { 0%, 34% { opacity: 1; } 44%, 90% { opacity: .12; } 100% { opacity: 1; } }
@keyframes a-rkt-lbl { 0%, 14% { opacity: 0; } 24%, 62% { opacity: 1; } 72%, 100% { opacity: 0; } }

/* B3 guided missile: the lock closes, the missile bends after the target. */
.a-msl__lock { fill: none; stroke: var(--cream); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.a-msl__orbit { transform-origin: 89.4px 211.3px; opacity: 0; }
.a-msl__trail { stroke-dasharray: 100; stroke-dashoffset: 100; }
.a-msl__hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-msl__tg { animation: a-msl-tg 4.4s linear infinite; }
.fx.is-on .a-msl__lock { animation: a-msl-lock 4.4s ease-out infinite; }
.fx.is-on .a-msl__orbit { animation: a-msl-orbit 4.4s cubic-bezier(.45, 0, .8, .6) infinite; }
.fx.is-on .a-msl__trail { animation: a-msl-trail 4.4s cubic-bezier(.45, 0, .8, .6) infinite; }
.fx.is-on .a-msl__hit { animation: a-msl-hit 4.4s ease-out infinite; }
@keyframes a-msl-tg { 0% { transform: translateY(0); opacity: 1; } 59% { transform: translateY(60px); opacity: 1; } 61%, 90% { transform: translateY(60px); opacity: 0; } 91% { transform: translateY(0); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes a-msl-lock { 0% { transform: scale(1.9); stroke: var(--cream); opacity: .4; } 18%, 100% { transform: scale(1); stroke: var(--amber); opacity: 1; } }
@keyframes a-msl-orbit { 0%, 21% { opacity: 0; transform: rotate(0deg); } 22% { opacity: 1; transform: rotate(0deg); } 59% { opacity: 1; transform: rotate(56.5deg); } 60%, 100% { opacity: 0; transform: rotate(56.5deg); } }
@keyframes a-msl-trail { 0%, 22% { stroke-dashoffset: 100; opacity: 1; } 59% { stroke-dashoffset: 0; opacity: 1; } 78%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes a-msl-hit { 0%, 58% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(.7); } 80%, 100% { opacity: 0; transform: scale(1.5); } }

/* C1 flares: the missile comes for the jet and leaves for the flares. */
.a-flr__m { transform: translate(232px, 10px) rotate(157deg); opacity: 0; }
.a-flr__f { opacity: 0; }
.a-flr__f1 { --dx: 56px; --dy: -44px; } .a-flr__f2 { --dx: 70px; --dy: -28px; } .a-flr__f3 { --dx: 80px; --dy: -11px; }
.a-flr__f4 { --dx: 80px; --dy: 11px; } .a-flr__f5 { --dx: 70px; --dy: 28px; } .a-flr__f6 { --dx: 56px; --dy: 44px; }
.a-flr__hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-flr__m { animation: a-flr-m 5s linear infinite; }
.fx.is-on .a-flr__f { animation: a-flr-f 5s ease-out infinite; }
.fx.is-on .a-flr__hit { animation: a-flr-hit 5s ease-out infinite; }
@keyframes a-flr-m { 0% { transform: translate(232px, 10px) rotate(157deg); opacity: 0; } 4% { opacity: 1; } 38% { transform: translate(152px, 44px) rotate(157deg); } 45% { transform: translate(140px, 37px) rotate(206deg); } 52% { transform: translate(128px, 22px) rotate(228deg); opacity: 1; } 53%, 100% { transform: translate(128px, 22px) rotate(228deg); opacity: 0; } }
@keyframes a-flr-f { 0%, 27% { opacity: 0; transform: translate(0, 0); } 28% { opacity: 1; transform: translate(0, 0); } 41% { opacity: 1; transform: translate(var(--dx), var(--dy)); } 52% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1.3); } 74%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes a-flr-hit { 0%, 51% { opacity: 0; transform: scale(.3); } 53% { opacity: 1; transform: scale(.8); } 72%, 100% { opacity: 0; transform: scale(1.6); } }

/* C2 interception */
.a-int__m { transform: translate(236px, 66px); }
.a-int__hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-int__m { animation: a-int-m 4s linear infinite; }
.fx.is-on .a-int__hit { animation: a-int-hit 4s ease-out infinite; }
.a-int .a-alert { animation-duration: 4s !important; }
@keyframes a-int-m { 0% { transform: translate(246px, 66px); opacity: 1; } 46% { transform: translate(152px, 66px); opacity: 1; } 47%, 100% { transform: translate(152px, 66px); opacity: 0; } }
@keyframes a-int-hit { 0%, 45% { opacity: 0; transform: scale(.3); } 48% { opacity: 1; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* D1 fuel: under the line, over the lane, and the tank fills. */
.a-fuel__jet { transform: translateY(56px); }
.a-fuel__bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(.28); }
.fx.is-on .a-fuel__land { animation: a-fuel-land 6s linear infinite; }
.fx.is-on .a-fuel__jet { animation: a-fuel-jet 6s ease-in-out infinite; }
.fx.is-on .a-fuel__bar { animation: a-fuel-bar 6s linear infinite; }
.fx.is-on .a-fuel__arrows { animation: a-fuel-arrows .9s steps(1) infinite; }
@keyframes a-fuel-arrows { 50% { opacity: .35; } }
@keyframes a-fuel-land { to { transform: translateX(-420px); } }
@keyframes a-fuel-jet { 0% { transform: translateY(56px); } 8%, 55% { transform: translateY(89.500px); } 68%, 100% { transform: translateY(56px); } }
@keyframes a-fuel-bar { 0% { transform: scaleX(.28); } 9% { transform: scaleX(.24); } 54% { transform: scaleX(1); } 100% { transform: scaleX(.28); } }

/* D2 ammunition: four boxes, four colours. */
.fx__art .c1, .fx__art .c2, .fx__art .c3, .fx__art .c4 { fill: none; stroke-width: 1.8; }
.fx__art .c1 { stroke: #7fd67f; } .fx__art .b1 { fill: #7fd67f; }
.fx__art .c2 { stroke: #ff9d3c; } .fx__art .b2 { fill: #ff9d3c; }
.fx__art .c3 { stroke: #5fb4ff; } .fx__art .b3 { fill: #5fb4ff; }
.fx__art .c4 { stroke: #b48cff; } .fx__art .b4 { fill: #b48cff; }
.a-ammo__c rect:last-child { transform-box: fill-box; transform-origin: left center; transform: scaleX(.2); }
.fx.is-on .a-ammo__jet { animation: a-ammo-jet 4.8s linear infinite; }
/* each box is taken when the jet is over it: --t is that moment */
.a-ammo__c1 { --t: 1.12s; } .a-ammo__c2 { --t: 1.89s; } .a-ammo__c3 { --t: 2.66s; } .a-ammo__c4 { --t: 3.42s; }
.fx.is-on .a-ammo__c rect:first-child { animation: a-ammo-box 4.8s ease-out var(--t) infinite; }
.fx.is-on .a-ammo__c rect:last-child { animation: a-ammo-bar 4.8s ease-out var(--t) infinite; }
@keyframes a-ammo-jet { from { transform: translateX(0); } to { transform: translateX(300px); } }
@keyframes a-ammo-box { 0% { opacity: 1; transform: translateY(0); } 6% { opacity: .9; transform: translateY(-16px); } 11%, 68% { opacity: .15; transform: translateY(0); } 76%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes a-ammo-bar { 0% { transform: scaleX(.2); } 9%, 68% { transform: scaleX(1); } 76%, 100% { transform: scaleX(.2); } }

/* D3 repair */
.a-rep__seg path { fill: none; stroke: var(--mint); stroke-width: 4; }
.a-rep__s { fill: none; stroke: var(--red); stroke-width: 4; opacity: .55; }
.a-rep__plus { opacity: 0; font-size: 11px !important; }
.fx.is-on .a-rep__jet { animation: a-ammo-jet 4.6s linear infinite; }
.fx.is-on .a-rep__box { animation: a-rep-box 4.6s ease-out infinite; }
.fx.is-on .a-rep__s { animation: a-rep-seg 4.6s steps(1) infinite; }
.fx.is-on .a-rep__s2 { animation-delay: .18s; } .fx.is-on .a-rep__s3 { animation-delay: .36s; } .fx.is-on .a-rep__s4 { animation-delay: .54s; }
.fx.is-on .a-rep__plus { animation: a-rep-plus 4.6s ease-out infinite; }
@keyframes a-rep-box { 0%, 46% { opacity: 1; transform: translateY(0); } 52% { opacity: .9; transform: translateY(-14px); } 58%, 92% { opacity: 0; transform: translateY(-14px); } 93% { opacity: 0; transform: translateY(0); } 100% { opacity: 1; } }
@keyframes a-rep-seg { 0% { stroke: var(--red); opacity: .55; } 48% { stroke: var(--mint); opacity: 1; } 88% { stroke: var(--red); opacity: .55; } }
@keyframes a-rep-plus { 0%, 46% { opacity: 0; transform: translateY(6px); } 52% { opacity: 1; transform: translateY(0); } 72% { opacity: 1; transform: translateY(-6px); } 82%, 100% { opacity: 0; transform: translateY(-10px); } }

/* E bridge: warned at 500 m, braked from 400 m, through the gap. */
.a-brg__jet { transform: translateX(-50px); }
.a-brg__tr { stroke-dasharray: 7 6; opacity: 0; }
.a-brg__span { transform-box: fill-box; transform-origin: center; }
.a-brg__hit { opacity: 0; transform-box: fill-box; transform-origin: center; }
.fx.is-on .a-brg__jet { animation: a-brg-jet 6.5s infinite; }
.fx.is-on .a-brg__tr { animation: a-brg-tr 6.5s linear infinite, a-tracer .3s linear infinite; }
.fx.is-on .a-brg__span1 { animation: a-brg-s1 6.5s ease-in infinite; }
.fx.is-on .a-brg__span2 { animation: a-brg-s2 6.5s ease-in infinite; }
.fx.is-on .a-brg__hit { animation: a-brg-hit 6.5s ease-out infinite; }
.fx.is-on .a-brg__alert { animation: a-brg-alert 6.5s steps(1) infinite; }
@keyframes a-brg-jet { 0% { transform: translateX(-50px); animation-timing-function: linear; } 22% { transform: translateX(66px); animation-timing-function: cubic-bezier(.1, .6, .4, 1); } 60% { transform: translateX(112px); animation-timing-function: cubic-bezier(.6, 0, .9, .5); } 82%, 100% { transform: translateX(270px); } }
@keyframes a-brg-tr { 0%, 27% { opacity: 0; } 28%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes a-brg-s1 { 0%, 54% { transform: none; opacity: 1; } 74% { transform: translate(-5px, 30px) rotate(-48deg); opacity: 0; } 95% { transform: none; opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes a-brg-s2 { 0%, 55% { transform: none; opacity: 1; } 76% { transform: translate(5px, 32px) rotate(40deg); opacity: 0; } 95% { transform: none; opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes a-brg-hit { 0%, 53% { opacity: 0; transform: scale(.3); } 56% { opacity: 1; transform: scale(.8); } 74%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes a-brg-alert { 0%, 13% { opacity: 0; } 14%, 26%, 38%, 50% { opacity: 1; } 20%, 32%, 44% { opacity: .15; } 56%, 100% { opacity: 0; } }

/* ------------------------------------------------------------------ bridges between sections */
.bridge { position: relative; height: 132px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); overflow: hidden; }
.bridge svg { width: 100%; height: 100%; overflow: visible; }
.bridge .br { fill: none; stroke: var(--cream-3); stroke-width: 1.4; stroke-linecap: round; }
.bridge .br-deck { stroke: var(--cream-2); stroke-width: 2; }
.bridge .br-water { fill: none; stroke: var(--river); stroke-width: 1.4; opacity: .55; }
.bridge .br-seg { transform-box: fill-box; transform-origin: center; transition: transform 1.25s cubic-bezier(.55, 0, .9, .45), opacity .9s ease-in .35s; transition-delay: var(--d, 0s), calc(var(--d, 0s) + .3s); }
.bridge.is-down .br-seg { transform: translateY(var(--dy, 90px)) rotate(var(--r, 30deg)); opacity: 0; }
.bridge .br-shot { stroke: var(--amber); stroke-width: 2; stroke-linecap: round; opacity: 0; }
.bridge .br-flash { fill: var(--amber); opacity: 0; transform-box: fill-box; transform-origin: center; }
.bridge.is-down .br-shot { animation: br-shot .32s linear both; }
.bridge.is-down .br-flash { animation: br-flash .8s ease-out .22s both; }
@keyframes br-shot { 0% { opacity: 0; transform: translateY(-46px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(0); } }
@keyframes br-flash { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* ------------------------------------------------------------------ phases */
.phases { display: flex; gap: 4px; height: clamp(320px, 33vw, 500px); --open-w: 52%; }
.phase { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: var(--ink-2); color: var(--cream); cursor: pointer; overflow: hidden; text-align: start; transition: flex-grow .75s var(--ease); }
.phase.is-open { flex-grow: 12; cursor: default; }
.phase__media { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--open-w); transform: translateX(-50%); }
[dir="rtl"] .phase__media { left: auto; right: 50%; transform: translateX(50%); }
.phase__media img, .phase__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phase__media img { filter: saturate(.8) brightness(.62); transition: filter .6s; }
.phase:hover .phase__media img, .phase.is-open .phase__media img { filter: none; }
.phase__media video { opacity: 0; transition: opacity .45s; }
.phase.is-open .phase__media video.is-ready { opacity: 1; }
.phase::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(6, 20, 27, 0), rgba(6, 20, 27, .88)); pointer-events: none; }
.phase__n { position: absolute; z-index: 1; left: 0; right: 0; bottom: 14px; text-align: center; font: 700 22px/1 var(--f-display); letter-spacing: .02em; color: var(--cream); transition: color .3s; }
.phase__name { position: absolute; z-index: 1; left: 50%; bottom: 50px; max-height: calc(100% - 66px); writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font: 600 13px/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--cream-2); }
.phase.is-open .phase__n { left: 22px; right: auto; bottom: 22px; text-align: start; font-size: clamp(40px, 4.4vw, 68px); color: var(--amber); animation: phase-in .5s var(--ease) .2s both; }
.phase.is-open .phase__name { left: clamp(84px, 8vw, 118px); right: 18px; bottom: 27px; max-height: none; writing-mode: horizontal-tb; transform: none; font: 700 clamp(24px, 2.6vw, 40px)/1 var(--f-display); letter-spacing: .01em; color: var(--cream); animation: phase-in .5s var(--ease) .28s both; }
[dir="rtl"] .phase.is-open .phase__n { left: auto; right: 22px; }
[dir="rtl"] .phase.is-open .phase__name { left: auto; right: clamp(84px, 8vw, 118px); }
@keyframes phase-in { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ hangar */
.hangar { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: clamp(26px, 4.4vw, 80px); }
.jets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jet { padding: 0; border: 0; background: none; cursor: pointer; text-align: start; color: var(--cream-2); }
.jet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.5) brightness(.65); outline: 2px solid transparent; outline-offset: -2px; transition: filter .3s, outline-color .3s; }
.jet span { display: block; margin-top: 9px; font: 600 clamp(14px, .95vw, 17px)/1.15 var(--f-label); letter-spacing: .12em; text-transform: uppercase; }
.jet:hover img { filter: saturate(.9) brightness(.9); }
.jet[aria-selected="true"] { color: var(--gold); }
.jet[aria-selected="true"] img { filter: none; outline-color: var(--gold); }
.spec { display: none; }
.spec.is-on { display: block; animation: fx-in .5s var(--ease) both; }
.spec__role { margin: clamp(22px, 2.6vw, 36px) 0 clamp(12px, 1.4vw, 20px); font: italic 600 clamp(26px, 2.6vw, 38px)/1.1 var(--f-serif); }
.bars { margin: 0; }
.bars > div { display: grid; grid-template-columns: minmax(84px, 118px) 1fr; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.bars > div:last-child { border-bottom: 1px solid var(--line); }
.bars dt { font: 600 clamp(13px, .88vw, 16px)/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--cream-2); }
.bars dd { display: flex; align-items: center; gap: 16px; margin: 0; }
.bars i { position: relative; flex: 1; height: 6px; background: rgba(240, 235, 218, .1); overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform: scaleX(var(--v)); transform-origin: left; }
[dir="rtl"] .bars i::after { transform-origin: right; }
.spec.is-on .bars i::after { animation: bar-in 1s var(--ease) both; }
@keyframes bar-in { from { transform: scaleX(0); } }
.bars b { min-width: 58px; text-align: end; font: 700 clamp(24px, 1.7vw, 30px)/1 var(--f-display); letter-spacing: .02em; }

/* ------------------------------------------------------------------ bonus */
.bonus { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.bcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 16px; overflow: hidden; background: var(--ink-2); outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .3s; }
.bcard__media { position: absolute; inset: 0; }
.bcard__media img, .bcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard__media img { filter: saturate(.7) brightness(.6); transition: filter .5s; }
.bcard__media video { opacity: 0; transition: opacity .45s; }
.bcard.is-on { outline-color: var(--gold); }
.bcard.is-on .bcard__media img { filter: none; }
.bcard.is-on .bcard__media video.is-ready { opacity: 1; }
.bcard::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, rgba(6, 20, 27, 0), rgba(6, 20, 27, .92)); pointer-events: none; }
.bcard__code { position: absolute; z-index: 1; left: 16px; top: 14px; font: 600 13px/1 var(--f-label); letter-spacing: .22em; color: var(--amber); text-shadow: 0 1px 8px rgba(6, 20, 27, .8); }
.bcard__v { position: relative; z-index: 1; font: 700 clamp(24px, 2.3vw, 38px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.bcard__m { position: relative; z-index: 1; margin-top: 6px; font: 500 13px/1.3 var(--f-body); color: var(--cream-2); }
.bcard--locked { background: repeating-linear-gradient(135deg, var(--ink-2) 0 10px, #0d232d 10px 20px); }
.bcard--locked .bcard__media { display: grid; place-items: center; color: var(--cream-3); }
.bcard--locked .bcard__v { color: var(--cream-3); letter-spacing: .08em; }
.bcard--locked::after { display: none; }

/* ------------------------------------------------------------------ flight sheet */
.sheet__art { margin-bottom: clamp(-120px, -7vw, -44px); }
.sheet__art img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent 100%); mask-image: linear-gradient(180deg, #000 42%, transparent 100%); }
.sheet { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); background: rgba(6, 20, 27, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet > div { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2.2vw, 32px) clamp(16px, 2vw, 28px) clamp(20px, 2.4vw, 34px); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet dd { margin: 0; font: 700 clamp(60px, 7.4vw, 116px)/.86 var(--f-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sheet dt { max-width: 24ch; font: 500 15px/1.35 var(--f-body); color: var(--cream-2); }
.sheet > div:nth-child(4n+1) dd { color: var(--gold); }

/* ------------------------------------------------------------------ end */
.end { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 92vh; margin-top: clamp(40px, 6vw, 90px); padding: clamp(90px, 12vw, 170px) var(--pad); overflow: hidden; text-align: center; }
.end__media { position: absolute; inset: -4%; z-index: -1; }
.end__media img { width: 100%; height: 100%; object-fit: cover; filter: blur(7px) brightness(.5) saturate(1.1); animation: end-drift 26s ease-in-out infinite alternate; }
@keyframes end-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-1.5%); } }
.end::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(6, 20, 27, 0) 26%, rgba(6, 20, 27, 0) 70%, var(--ink) 100%); }
.end__body { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.6vw, 34px); }
.end__logo { width: clamp(220px, 26vw, 380px); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 26px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--cream-3); }
.foot p { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { font: 600 13px/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--cream-2); }
.foot a:hover { color: var(--gold); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) {
  .bonus { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bcard { aspect-ratio: 4 / 3; }
  .hero__hud { margin-right: 0; }
}
@media (max-width: 900px) {
  :root { --top: 60px; }
  .top__nav { display: none; }
  .top__side { margin-left: auto; }
  .top__progress { display: block; }
  .band, .hangar { grid-template-columns: minmax(0, 1fr); }
  .band--flip .band__stage { order: 0; }
  .band__info { display: flex; flex-direction: column; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tab { width: auto; padding: 11px 14px 10px; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line); }
  .tab b { display: none; }
  .tab[aria-selected="true"] { box-shadow: none; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 34px; }
  .hero__hud { min-width: 0; padding: 10px 14px 10px 12px; }
  .hud__name { font-size: 24px; margin: 5px 0 8px; }
  .hud__note { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .phases { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 8px; height: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .phases::-webkit-scrollbar { display: none; }
  .phase, .phase.is-open { aspect-ratio: 4 / 5; scroll-snap-align: center; cursor: default; }
  .phase__media { left: 0; width: 100%; transform: none; }
  .phase__media img { filter: none; }
  .phase .phase__n, .phase.is-open .phase__n { left: 16px; right: auto; bottom: 16px; text-align: start; font-size: 46px; color: var(--amber); animation: none; }
  .phase .phase__name, .phase.is-open .phase__name { left: 76px; bottom: 21px; writing-mode: horizontal-tb; transform: none; font: 700 26px/1 var(--f-display); letter-spacing: .01em; color: var(--cream); white-space: normal; animation: none; }
  .bonus { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; grid-template-columns: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .bonus::-webkit-scrollbar { display: none; }
  .bcard { aspect-ratio: 3 / 4; scroll-snap-align: center; }
  .jets { grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
  .fx { grid-template-columns: minmax(0, 1fr); }
  .fx__art { max-width: 340px; }
  .soon--top { display: none; }
  .bridge { height: 104px; }
  .player__label b { font-size: 18px; }
}

/* ------------------------------------------------------------------ calm mode */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fx__art *, .end__media img, .bridge * { animation: none !important; transition: none !important; }
  .phase, .bars i::after, .fx.is-on, .spec.is-on { transition: none; animation: none !important; }
}
