/* nebo-nashe.ru, version 3 (2026-10-12): variant D. The story of the game on one WebGL stage, then the facts from
   version 2: real frames with a caption, facts in ruled forms, one vermilion action. Brand colours and Fira faces
   (../бренд/README.md); everything is served from this site: no counters, cookies or outside fonts. */
@font-face { font-family: "Fira Sans"; src: url(../fonts/FiraSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url(../fonts/FiraSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url(../fonts/FiraSansExtraCondensed-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fira Sans Extra Condensed"; src: url(../fonts/FiraSansExtraCondensed-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fira Mono"; src: url(../fonts/FiraMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #0F131A; --plate: #171C25; --plate-2: #1D222B; --plate-3: #232831; --rule: #2B313B; --rule-2: #424853;
  --text: #F4F5F7; --muted: #B3B8C3; --dim: #8E95A3;
  --blue: #3769E0; --blue-hi: #4A7CF0; --blue-text: #7DA2F7;
  --red: #D7322A; --red-hi: #DE3A31; --red-press: #B5271F;
  --white: #FFFFFF; --ink: #0C1A3A; --amber: #F2A516;
  --display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Fira Mono", Consolas, ui-monospace, monospace;
  --gutter: 32px; --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-synthesis: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); text-decoration-color: rgba(125, 162, 247, .45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--white); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li, dd, td, figcaption, summary { text-wrap: pretty; }
b, strong { font-weight: 600; }
kbd { font: 500 .82em/1 var(--mono); padding: 3px 6px 2px; border: 1px solid var(--rule-2); background: var(--plate-2); white-space: nowrap; }
code { font: 500 .82em/1.5 var(--mono); padding: 1px 5px; background: var(--plate-2); border: 1px solid var(--rule); overflow-wrap: anywhere; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 18px; background: var(--blue); color: var(--white); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; color: var(--white); }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.logo img { height: 36px; width: auto; }
.top nav { display: flex; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current="page"] { color: var(--text); }

/* ---- the one action ---- */
.dl { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; background: var(--red); color: var(--white);
  font: 800 24px/1 var(--display); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .12s; }
.dl:hover { background: var(--red-hi); color: var(--white); }
.dl:active { background: var(--red-press); }
.dl.small { min-height: 44px; padding: 0 16px; font: 600 15px/1 var(--sans); letter-spacing: 0; }

/* ---- opener: the title, the frame, the record under it ---- */
.opener { padding: 52px 0 36px; }
.opener .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.opener h1 { font: 800 clamp(48px, 6.4vw, 88px)/.94 var(--display); letter-spacing: -.005em; }
.opener .lead { grid-column: 1; max-width: 40em; margin: 0; font-size: 20px; line-height: 1.5; color: var(--text); }
.get { grid-column: 2; grid-row: 1 / span 2; align-self: end; display: grid; gap: 10px; justify-items: start; }
.get p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 22em; }
.phone { display: none; margin: 0; padding: 12px 14px; border: 1px solid var(--rule-2); background: var(--plate); font-size: 16px; }
@media (hover: none) and (pointer: coarse) { .phone { display: block; } }

.frame { margin: 0; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); }
.frame.bleed img { max-height: none; }
figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
figcaption b { color: var(--text); font-weight: 600; }

.record { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; padding-top: 4px; padding-bottom: 88px; }
.record .about p { margin: 18px 0 0; max-width: 36em; }
.record .about figcaption { margin-top: 14px; }
/* the record of the game: a ruled form, label left, value right */
.form { margin: 14px 0 0; border-top: 1px solid var(--rule-2); }
.form div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.form dt { color: var(--dim); font-size: 15px; line-height: 1.5; }
.form dd { margin: 0; font-size: 17px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.age { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6em; padding: 2px 6px; border: 1.5px solid currentColor; font: 700 15px/1.1 var(--display); letter-spacing: .02em; }

/* ---- sections ---- */
.sec { padding: 88px 0; border-top: 1px solid var(--rule); }
.sec h2 { font: 800 clamp(38px, 4.6vw, 60px)/1 var(--display); letter-spacing: -.005em; }
.sec .intro { max-width: 40em; margin: 16px 0 0; color: var(--muted); font-size: 19px; }
.sec h3 { font: 700 26px/1.1 var(--display); }

/* what is in the game: a list of what it does beside the largest frame */
.game { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 56px; margin-top: 44px; align-items: start; }
.feats { margin: 0; }
.feats div + div { margin-top: 26px; }
.feats dt { font: 700 24px/1.15 var(--display); }
.feats dd { margin: 6px 0 0; color: var(--text); }
.game > .frame { position: sticky; top: 96px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }

/* tables in the form's language: a rule under the head, rules between rows, labels in plain text */
.table { width: 100%; margin-top: 40px; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.table th, .table td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-weight: 400; }
.table thead th { padding-top: 0; padding-bottom: 10px; color: var(--dim); font-size: 15px; border-bottom-color: var(--rule-2); }
.table tbody th { font: 700 24px/1.15 var(--display); padding-right: 32px; white-space: nowrap; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.modes td:nth-child(2) { max-width: 36em; }

/* maps: one row per map */
.maps { margin: 44px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.maps li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 20px 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.maps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); }
.maps h3 { font-size: 30px; }
.maps .kind { margin: 6px 0 0; color: var(--dim); font-size: 15px; }
.maps p { margin: 12px 0 0; }
.maps ul { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.45; }
.maps ul li { display: block; padding: 0 0 8px; border: 0; }
.maps ul li span { color: var(--dim); font-variant-numeric: tabular-nums; }

/* the alpha and the change log: dates down the left, versions on the right */
.state { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; margin-top: 18px; }
.state p { margin: 0; }
.log { margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.log > li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.log time { font: 700 24px/1.15 var(--display); font-variant-numeric: tabular-nums; }
.log article + article { margin-top: 28px; }
.log h3 { font: 600 19px/1.4 var(--sans); }
.log h3 .ver { color: var(--muted); font-weight: 400; margin-right: 8px; font-variant-numeric: tabular-nums; }
.log p { margin: 6px 0 0; max-width: 46em; }
.log .older { color: var(--muted); }

/* what is needed and how to install */
/* requirements beside the install steps: the short table rides along (sticky) instead of leaving an empty column under
   it while the long steps scroll (owner 2026-10-13: «подправить пустоты») */
.need { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.need > :first-child { position: sticky; top: 104px; }
.need .table { margin-top: 28px; }
.need .table tbody th { font: 600 17px/1.5 var(--sans); white-space: normal; width: 28%; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; padding: 0 0 30px; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--rule-2); font: 800 24px/1 var(--display); color: var(--text); }
.steps h3 { margin-top: 7px; font: 700 24px/1.15 var(--display); }
.steps p { margin: 8px 0 0; }
.ss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 4px; }
.ss div { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; background: #005A9E; color: #FFFFFF; font: 400 13px/1.4 "Segoe UI", var(--sans); }
.ss b { font: 400 17px/1.25 "Segoe UI", var(--sans); }
.ss small { font-size: 12px; color: #DCECF8; }
.ss u { align-self: flex-start; }
.ss i { align-self: flex-end; margin-top: auto; padding: 4px 10px; border: 1px solid #FFFFFF; font-style: normal; text-align: center; max-width: 100%; }
.ss .hit { outline: 2px solid var(--amber); outline-offset: 3px; }

/* questions */
/* two independent stacks: opening an answer moves only its own column */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; margin-top: 36px; align-items: start; }
.faq-col { border-top: 1px solid var(--rule-2); }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq-col + .faq-col { border-top: 0; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 19px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--blue-text); }
.faq .a { padding: 0 0 22px; max-width: 44em; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }

/* the bug report: one column like the other text blocks; the address is a plain outlined link in the body face, not a
   giant headline-sized line of its own (owner 2026-10-13: «не гармонично») */
.mail > * { max-width: 46em; }
.mail p { margin: 14px 0 0; max-width: 38em; }
.mail .addr { margin-top: 26px; }
.mail-link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--rule-2);
  color: var(--text); font: 600 18px/1 var(--sans); text-decoration: none; overflow-wrap: anywhere;
  transition: border-color 120ms, background-color 120ms; }
.mail-link:hover { border-color: var(--blue); background: rgba(55, 105, 224, 0.12); }

/* footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
.foot p { margin: 0 0 6px; max-width: 46em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .age { color: var(--text); }
.blank { padding: 0 3px; outline: 1px dashed var(--amber); outline-offset: 1px; color: var(--amber); font-style: normal; white-space: nowrap; }

/* documents (/license/, /privacy/) */
.doc { padding: 56px 0 88px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px 72px; align-items: start; }
.doc article { max-width: 44em; }
.doc h1 { font: 800 clamp(38px, 4.8vw, 60px)/1 var(--display); }
.doc .ed { margin: 14px 0 0; color: var(--dim); font-size: 16px; }
.doc h2 { margin: 44px 0 0; font: 700 28px/1.15 var(--display); }
.doc p, .doc ul { margin: 14px 0 0; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc aside { position: sticky; top: 96px; display: grid; gap: 10px; padding-top: 10px; font-size: 16px; }
.doc aside p { margin: 0; color: var(--muted); }


/* ======== variant D (2026-10-12): one WebGL stage under the story of the game, then the plain pages ======== */
/* alpha.26: put data-alpha26 on <html> when it is out. The log entry appears, the version line switches. */
.log > li.slot26 { display: none; }
[data-alpha26] .log > li.slot26 { display: grid; }
[data-alpha26] .before26, :root:not([data-alpha26]) .after26 { display: none; }

.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; z-index: 0; background: var(--ground); }
#acts { position: relative; z-index: 2; }
.act { position: relative; height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); scroll-margin-top: 0; }
.act--hero { --len: 1.7; } .act--drone { --len: 3.6; } .act--flight { --len: 4.4; } .act--strike { --len: 3.6; } .act--maps { --len: 2.2; } .act--hangar { --len: 3.2; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; touch-action: pan-y; }
.is-turning, .is-turning * { cursor: grabbing !important; user-select: none; }
.page { position: relative; z-index: 3; background: var(--ground); }
.page > .sec:first-child { border-top: 1px solid var(--rule-2); }
.foot { position: relative; z-index: 3; background: var(--ground); }
.home .top { z-index: 20; }

/* the opening */
.act--hero .pin::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 19, 26, .8) 0%, rgba(15, 19, 26, .55) 32%, rgba(15, 19, 26, 0) 58%); }
.hero { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 52%; transform: translateY(-50%); width: min(600px, 48vw); }
.hero h1 { font: 800 clamp(58px, 7.6vw, 120px)/.88 var(--display); letter-spacing: -.012em; }
.hero .lead { margin: 22px 0 0; font-size: 20px; line-height: 1.5; max-width: 29em; }
.hero .get { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.hero .get p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 32em; }
.hero .get .age { margin-left: 2px; color: var(--text); }
.scene-note { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: 22px; margin: 0; max-width: 26em; padding: 4px 9px 5px;
  background: rgba(15, 19, 26, .82); color: var(--muted); font-size: 13px; line-height: 1.4; }

/* copy plates over the stage: graphite, solid, at the left */
.plate { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 54%; transform: translateY(-50%);
  width: min(500px, calc(100vw - 2 * var(--gutter))); padding: 24px 28px 26px; background: rgba(15, 19, 26, .93); }
.plate h2 { font: 800 clamp(40px, 4.2vw, 62px)/.98 var(--display); letter-spacing: -.005em; }
.plate h3 { font: 800 clamp(30px, 2.9vw, 42px)/1 var(--display); }
.plate p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.chapter { opacity: 0; pointer-events: none; } /* opacity and lift follow the scroll (main.js) */

/* captions over the sortie and the strike: a title in the frame like in a documentary, no box; the corner of the
   scene darkens under it */
.scene-cap { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: calc(7vh + 92px); width: min(640px, calc(100vw - 2 * var(--gutter))); }
.scene-cap h2, .scene-cap h3 { font: 800 clamp(52px, 5.6vw, 88px)/.9 var(--display); letter-spacing: -.012em; }
.scene-cap p { margin: 14px 0 0; max-width: 29em; font-size: 19px; line-height: 1.5; }
.act--flight .pin::before, .act--strike .pin::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 95% at 0% 100%, rgba(11, 14, 20, .86) 0%, rgba(11, 14, 20, .62) 28%, rgba(11, 14, 20, .2) 48%, rgba(11, 14, 20, 0) 62%); }

/* choices on the plates: plain buttons, the chosen one on a white plate */
.tabs, .maptabs, .slots, .missions { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.tabs button, .maptabs button, .slots button, .missions button {
  min-height: 44px; padding: 10px 12px 11px; border: 1px solid var(--rule-2); background: var(--plate-2); color: var(--text);
  font: 600 15px/1.2 var(--sans); cursor: pointer; transition: background-color .12s, border-color .12s, color .12s; }
.tabs button:hover, .maptabs button:hover, .slots button:hover, .missions button:hover { border-color: var(--muted); }
.tabs [aria-selected="true"], .maptabs [aria-selected="true"], .slots [aria-current="true"], .missions [aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ground); }
.panel .maptabs button, .panel .missions button { background: rgba(15, 19, 26, .35); border-color: rgba(244, 245, 247, .28); }
.panel .maptabs [aria-selected="true"], .panel .missions [aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ground); }
.missions button { min-height: 44px; padding: 8px 11px 9px; font-weight: 400; font-size: 14px; }
.missions .empty { color: var(--muted); font-size: 15px; }

.spec { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.spec th, .spec td { padding: 7px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); font-weight: 400; }
.spec th { width: 38%; padding-right: 12px; color: var(--dim); }
.spec td { font-variant-numeric: tabular-nums; }
.plate .role { margin-top: 16px; font-size: 16px; }

/* the bench: labels in a column at the right with a line to their part */
.parts { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.parts li { position: absolute; left: 0; top: 0; width: 280px; color: var(--muted); font-size: 15px; line-height: 1.4; opacity: 0; transition: opacity .3s; }
.parts li b { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
.parts li.is-on { opacity: 1; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; fill: none; stroke: rgba(244, 245, 247, .62); stroke-width: 1; }
.leaders circle { fill: var(--text); stroke: var(--ground); stroke-width: 1.5; }
.leaders.is-on { opacity: 1; }

/* names over the 3D: places, launch points, targets */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tags span { position: absolute; left: 0; top: 0; padding: 3px 8px 4px; background: rgba(15, 19, 26, .88); color: var(--text); font: 600 14px/1.2 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.tags span.is-on { opacity: 1; }
.tags .t-ours { background: var(--red); color: var(--white); }
.tags .t-enemy { background: var(--blue); color: var(--white); }
.tags .t-poi { background: rgba(244, 245, 247, .9); color: var(--ground); font-weight: 400; font-size: 13px; }

/* the staff table: the panel at the right */
.act--maps .pin::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(15, 19, 26, .94) 0%, rgba(15, 19, 26, .8) 30%, rgba(15, 19, 26, 0) 52%); }
.panel { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 92px; width: 440px; max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); overflow: auto; }
.panel h2 { font: 800 clamp(48px, 4.8vw, 72px)/.92 var(--display); letter-spacing: -.012em; }
.panel p { margin: 12px 0 0; font-size: 16px; line-height: 1.5; }
.panel .sub { color: var(--muted); }
.panel .desc { font-size: 16px; }
.panel .facts { margin-top: 8px; color: var(--dim); font-size: 14px; }
.panel .mission { font-size: 15px; min-height: 4.4em; }
.panel .legend { margin-top: 10px; color: var(--dim); font-size: 14px; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.legend .k-enemy { margin-left: 16px; }
.legend .k-enemy::before { border-radius: 0; background: var(--blue); transform: rotate(45deg); }

/* the hangar */
.act--hangar .plate h3 { margin-top: 20px; }

/* the drone camera's OSD */
#osd { position: fixed; inset: 0; z-index: 1; display: none; pointer-events: none; color: #FFFFFF; white-space: pre;
  font: 500 clamp(13px, 1.4vw, 21px)/1.3 var(--mono); letter-spacing: .03em;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; transform: translateX(var(--jx, 0)); }
#osd.is-on { display: block; }
#osd span { position: absolute; }
#osd [data-o="tl"] { left: 6%; top: calc(64px + 4%); }
#osd [data-o="tr"] { right: 6%; top: calc(64px + 4%); text-align: right; }
#osd [data-o="bl"] { left: 6%; bottom: 7%; }
#osd [data-o="bc"] { left: 50%; bottom: 7%; transform: translateX(-50%); text-align: center; }
#osd [data-o="br"] { right: 6%; bottom: 7%; text-align: right; }
#osd .o-x { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.3em; }

/* the plain page */
.modes { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-2); }
.modes > li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr); gap: 16px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.modes img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plate); }
.modes h3 { font-size: 30px; }
.modes p { margin: 10px 0 0; max-width: 36em; }
.modes .cap { color: var(--dim); font-size: 15px; }
.modes .num { margin: 4px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.again { margin: 8px 0 0; }

/* reduced motion: the scenes stand still, the copy is laid out once */
.is-still .act { height: auto; min-height: 100vh; min-height: 100svh; }
.is-still .pin { position: relative; height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 96px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 40px; overflow: visible; }
.is-still .plate, .is-still .chapter, .is-still .panel { position: relative; left: auto; right: auto; top: auto; transform: none; opacity: 1; }
.is-still .panel { align-self: flex-end; max-height: none; width: min(440px, 100%); }
@media (min-width: 901px) { .is-still .act--hero .hero { position: relative; left: auto; top: auto; transform: none; margin-bottom: auto; margin-top: 8vh; } }
/* no WebGL: the acts read as plain sections, the opening keeps a frame from the game */
.no-gl .act { height: auto; }
.no-gl .pin { position: relative; height: auto; display: flex; flex-direction: column; gap: 12px; padding: 72px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); overflow: visible; }
.no-gl .act--hero .pin { min-height: 90vh; justify-content: center; background: url(../img/hero-1600.webp) center / cover; }
.no-gl .hero, .no-gl .plate, .no-gl .chapter, .no-gl .panel { position: relative; left: auto; right: auto; top: auto; transform: none; opacity: 1; }
.no-gl .scene-note, .no-gl .parts, .no-gl .leaders, .no-gl .tags, .no-gl .maptabs, .no-gl .missions, .no-gl .mission, .no-gl .legend, .no-gl .slots, .no-gl .act--hangar .spec, .no-gl .act--hangar h3 { display: none; }
@media (max-width: 1080px) {
  .top .wrap { flex-wrap: wrap; row-gap: 0; }
  .top nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 10px); overflow-x: auto; border-top: 1px solid var(--rule); scrollbar-width: none; }
  .top nav a { flex: none; }
  .game, .record, .state, .need { grid-template-columns: minmax(0, 1fr); }
  .need > :first-child { position: static; }
  .maps li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .maps li > ul { grid-column: 2; }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc aside { position: static; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .top { position: static; }
  .game > .frame { position: static; }
  html { scroll-padding-top: 70px; }
  .top .wrap { min-height: 56px; gap: 12px; }
  .logo img { height: 30px; }
  .opener { padding: 28px 0 24px; }
  .opener .wrap { grid-template-columns: minmax(0, 1fr); }
  .opener .lead { font-size: 18px; }
  .get { grid-column: 1; grid-row: auto; }
  .get .dl { width: 100%; }
  .record { padding-bottom: 56px; }
  .form div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
  .sec { padding: 56px 0; }
  .sec .intro { font-size: 17px; }
  .game { margin-top: 28px; }
  .game .frame { order: -1; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 36px; }
  .table { margin-top: 28px; font-size: 16px; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table td, .table tbody th { display: block; width: auto; }
  .table tbody tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .table td, .table tbody th { padding: 0; border: 0; }
  .table tbody th { margin-bottom: 6px; white-space: normal; }
  .table td + td { margin-top: 6px; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--dim); }
  .need .table tbody th { width: auto; }
  .maps li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px 0; }
  .maps li > ul { grid-column: 1; }
  .log > li { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  .ss { grid-template-columns: minmax(0, 1fr); }
  .steps > li { gap: 0 14px; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 32px 0 56px; }
}
@media (max-width: 900px) {
  .act--hero .pin::before { background: linear-gradient(0deg, rgba(15, 19, 26, .9) 0%, rgba(15, 19, 26, .7) 42%, rgba(15, 19, 26, 0) 66%); }
  .hero { left: var(--gutter); right: var(--gutter); top: auto; bottom: 28px; transform: none; width: auto; }
  .hero h1 { font-size: clamp(46px, 13vw, 72px); }
  .hero .lead { margin-top: 14px; font-size: 17px; }
  .hero .get { margin-top: 18px; }
  .hero .get .dl { width: 100%; }
  .scene-note { display: none; }
  .plate { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; padding: 16px var(--gutter) 20px; }
  .scene-cap { left: var(--gutter); right: var(--gutter); bottom: 22px; width: auto; }
  .scene-cap h2, .scene-cap h3 { font-size: clamp(38px, 11vw, 48px); }
  .scene-cap p { margin-top: 8px; font-size: 15px; }
  .act--flight .pin::before, .act--strike .pin::before { background: linear-gradient(0deg, rgba(11, 14, 20, .9) 0%, rgba(11, 14, 20, .66) 20%, rgba(11, 14, 20, 0) 42%); }
  .act--maps .pin::before { background: linear-gradient(0deg, rgba(15, 19, 26, .96) 0%, rgba(15, 19, 26, .88) 40%, rgba(15, 19, 26, 0) 60%); }
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; padding: 0 var(--gutter) 18px; }
  .panel h2 { font-size: 36px; }
  .plate h2 { font-size: 36px; }
  .plate h3 { font-size: 28px; }
  .plate p { margin-top: 8px; font-size: 15px; }
  .tabs, .maptabs, .missions, .slots { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .tabs button, .maptabs button, .missions li, .slots li { flex: none; }
  .tabs button, .maptabs button, .missions button, .slots button { white-space: nowrap; }
  .tabs, .maptabs, .slots { margin-top: 12px; }
  .spec { margin-top: 8px; font-size: 14px; }
  .spec th, .spec td { padding: 4px 0; }
  .act--drone .plate > p:first-of-type, .act--drone .spec tr:nth-child(n+4) { display: none; }
  .plate .role { margin-top: 10px; font-size: 14px; }
  .parts li { width: auto; padding: 2px 7px 3px; background: rgba(15, 19, 26, .86); font-size: 13px; }
  .parts li b { font-size: 13px; }
  .parts li span { display: none; }
  .panel { max-height: 56svh; overflow: auto; }
  .panel .sub, .panel .desc { display: none; }
  .panel .mission { min-height: 0; font-size: 14px; }
  .act--hangar .plate > p:first-of-type { display: none; }
  .act--hangar .plate h3 { margin-top: 6px; }
  #osd { font-size: 12px; }
  #osd [data-o="tl"], #osd [data-o="tr"] { top: 4%; }
  #osd [data-o="bl"], #osd [data-o="bc"], #osd [data-o="br"] { bottom: 25%; }
  #osd .o-x { top: 30%; }
  .modes > li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .is-still .pin, .no-gl .pin { padding: 72px var(--gutter) 24px; }
}
@media (min-width: 901px) {
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
