/* TERMINAL VOID landing. Colors and font as in the game (docs/landing.md, section 6). */
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JBM"; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JBM"; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* box drawing and ► for the logo and buttons (the latin/cyrillic files have none of them) */
@font-face { font-family: "JBM"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-symbols-400-normal.woff2) format("woff2");
  unicode-range: U+2550-256C, U+2588, U+2591, U+25A0-25A1, U+25BA; }
@font-face { font-family: "JBM"; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-symbols-700-normal.woff2) format("woff2");
  unicode-range: U+2550-256C, U+2588, U+2591, U+25A0-25A1, U+25BA; }

:root {
  --bg: #05070a;
  --g: #e8ebee;
  --t: rgba(232, 235, 238, .9);
  --d: rgba(232, 235, 238, .62);
  --b: rgba(232, 235, 238, .28);
  --red: #ff4f4f;
  --ship: #2bd4ff;
  --ok: #5dffa8;
  --f: "JBM", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;
  --gut: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--t);
  font: 15px/1.55 var(--f);
  font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0;
  overflow-x: hidden;
}
pre, code, button, a { font-family: inherit; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
pre { margin: 0; line-height: 1.2; white-space: pre; text-align: left; }
h1, h2, p { margin: 0; }
a { color: var(--g); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--g); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ship); outline-offset: 3px; }

/* ---------- buttons: a 1-character frame, caps, ► before the action ---------- */
.btn {
  display: inline-block; text-decoration: none; text-transform: uppercase; letter-spacing: .08em;
  color: var(--g); border: 1px solid var(--g); padding: 13px 20px; font-weight: 700; font-size: 15px;
  background: rgba(5, 7, 10, .55); transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--g); color: var(--bg); }
.btn.main { background: var(--g); color: var(--bg); padding: 15px 22px; font-size: 16px; }
.btn.main:hover, .btn.main:focus-visible { background: transparent; color: var(--g); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: calc(56px + env(safe-area-inset-top)) var(--gut) 64px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; display: flex; justify-content: center; background: var(--bg) url(/media/hero-poster.webp) center top / cover no-repeat; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(rgba(5,7,10,.5), rgba(5,7,10,.5)),
  linear-gradient(to bottom, rgba(5,7,10,.2) 0%, rgba(5,7,10,.75) 55%, var(--bg) 100%); }
.hero-in { max-width: 560px; margin: 0 auto; text-align: center; }
.logo { font-size: 0; margin: 0 0 22px; }
.logo pre { display: inline-block; font-size: clamp(13px, 4.6vw, 20px); font-weight: 700; color: var(--g); line-height: 1.15; }
.tagline { font-size: clamp(22px, 6.4vw, 34px); line-height: 1.2; font-weight: 700; color: var(--g); letter-spacing: -.01em; margin-bottom: 14px; text-wrap: balance; }
.cur { color: var(--ship); animation: blink 1.05s steps(1) infinite; margin-left: .1em; }
@keyframes blink { 50% { opacity: 0; } }
.sub { color: var(--t); margin: 0 auto 26px; max-width: 30em; text-wrap: pretty; }
.fine { color: var(--d); font-size: 13px; margin-top: 12px; }
.scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: var(--d); text-decoration: none; font-size: 14px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }

.langsw { display: inline-flex; align-items: center; gap: 2px; color: var(--d); font-size: 13px; }
.langsw button { background: none; border: 0; color: var(--d); font-size: 13px; padding: 10px 6px; cursor: pointer; letter-spacing: .06em; }
.langsw button[aria-pressed="true"] { color: var(--g); text-decoration: underline; text-underline-offset: 4px; }
.langsw.top { position: absolute; top: calc(6px + env(safe-area-inset-top)); right: 8px; }

/* ---------- blocks ---------- */
main { display: block; }
.blk { max-width: 1080px; margin: 0 auto; padding: 72px var(--gut) 8px; }
.cmd { color: var(--ok); font-size: 13px; margin-bottom: 6px; opacity: .85; }
.blk h2 { font-size: 22px; color: var(--g); letter-spacing: .02em; margin-bottom: 22px; line-height: 1.25; }
.lead { color: var(--t); margin: -8px 0 22px; max-width: 38em; }

/* screenshots: horizontal scroll on a phone, three in a row on a computer */
.shots {
  list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 10px; display: grid;
  grid-auto-flow: column; grid-auto-columns: min(70vw, 280px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shots li { scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1169; border: 1px solid var(--b); background: #000; }
.shots figcaption { margin-top: 10px; color: var(--g); font-size: 14px; }
.shots figcaption::before { content: "// "; color: var(--d); }

/* sideways rows still scroll, only the scrollbar is hidden (scrollbar-width: standard; ::-webkit-scrollbar: older Safari) */
.shots, .brow { scrollbar-width: none; }
.shots::-webkit-scrollbar, .brow::-webkit-scrollbar { display: none; }

/* what's inside */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feats li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; border: 1px solid var(--b); padding: 16px 14px; background: rgba(232,235,238,.025); }
.feats .ic { color: var(--ship); font-weight: 700; text-align: center; font-size: 16px; }
.feats b { color: var(--g); }

/* bosses: a row per sector; on a phone each row scrolls sideways */
.sector { margin-bottom: 26px; }
.sector h3 { margin: 0 0 10px; font-size: 13px; color: var(--d); font-weight: 400; letter-spacing: .1em; }
.brow { list-style: none; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 300px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.boss { scroll-snap-align: center; }
.boss button {
  all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer;
  border: 1px solid var(--b); padding: 16px 12px 12px; background: rgba(232,235,238,.02); text-align: left;
}
.boss button:hover, .boss button:focus-visible, .boss.on button { border-color: var(--c); background: rgba(232,235,238,.045); }
.boss button:focus-visible { outline: 2px solid var(--ship); outline-offset: 2px; }
.boss .art { min-height: 9.6em; display: flex; align-items: center; justify-content: center; font-size: 10.5px; }
.boss .spr { color: var(--c); font-size: 1em; line-height: 1.18; font-weight: 700; }
.boss .spr .a { color: var(--a, inherit); }
.boss .nm { margin-top: 12px; color: var(--g); font-weight: 700; font-size: 16px; letter-spacing: .06em; }
.boss .sb { color: var(--d); font-size: 13px; }
.boss .sp { margin-top: 8px; color: var(--c); font-size: 13px; min-height: 1.5em; white-space: nowrap; overflow: hidden; }
.boss .sp:empty::before { content: "\00a0"; }

/* chat */
.chat p:not(.cmd) { max-width: 34em; margin-bottom: 22px; }

/* final */
.final { text-align: center; padding-top: 96px; padding-bottom: 72px; }
.final .ship { color: var(--ship); font-weight: 700; font-size: 18px; display: inline-block; margin-bottom: 18px; }
.final h2 { margin-bottom: 26px; }

.foot {
  border-top: 1px solid var(--b); color: var(--d); font-size: 13px; padding: 18px var(--gut) calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: center;
}
.foot a { color: var(--d); }
.foot a:hover { color: var(--g); }

/* ---------- computer ---------- */
@media (min-width: 900px) {
  :root { --gut: 32px; }
  body { font-size: 16px; }
  .hero { padding-left: 48px; padding-right: 48px; }
  .hero-in { max-width: 1080px; width: 100%; text-align: left; padding-right: 400px; }
  .hero-bg { inset: auto; z-index: 0; right: max(48px, calc(50% - 540px)); top: 50%; transform: translateY(-50%);
    width: 340px; height: min(680px, 80vh); border: 1px solid var(--b); }
  .hero-shade { display: none; }
  .sub { margin-left: 0; }
  .tagline { font-size: 40px; }
  .logo pre { font-size: 22px; }
  .shots { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 24px; }
  .feats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brow { margin: 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 16px; }
  .boss .art { font-size: 11.5px; }
  .blk h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cur, .scroll { animation: none; }
}
