/* Dungeonator 3000 landing: the game's own look (src/css/kit.css): night-purple slabs, chunky ink outlines, plastic
   buttons with a thick bottom edge, Bungee titles, Rubik text, and the six-colour stripes of the bedroom TV's games. */
/* the fonts, in subsets: a browser only downloads the ones a page's letters need */
@font-face { font-family: "Bungee"; src: url("/fonts/bungee-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Bungee"; src: url("/fonts/bungee-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Rubik"; src: url("/fonts/rubik-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; 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: "Rubik"; src: url("/fonts/rubik-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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: "Rubik"; src: url("/fonts/rubik-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; 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: "Rubik"; src: url("/fonts/rubik-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-latin-ext-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-cyrillic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-cyrillic-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
/* Bungee has no Cyrillic: Cyrillic titles fall back, letter by letter, to Rubik Mono One (as in the game) */
@font-face { font-family: "Rubik Mono One"; src: url("/fonts/rubik-mono-one-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --ink: #120a22; --bg: #150d28; --bg2: #1c1233; --slab: #291c47; --slab2: #33245a; --slab3: #3f2d6e;
  --txt: #fbf6ff; --txt2: #cdbfe9; --dim: #9585b8;
  --yellow: #ffd23f; --pink: #ff5ad1; --cyan: #35e0ff; --purple: #a66bff; --green: #5cf08a; --orange: #ff9a2e; --red: #ff4d5a;
  --line: 3px; --edge: 5px; --r: 14px;
  --display: "Bungee", "Rubik Mono One", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 1180px;
  color-scheme: dark;
}
/* Chinese, Japanese and Korean: the system's own fonts (the game ships Noto, too big for a web page); titles bold */
:root[data-script="hans"] { --display: "Bungee", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; --body: "Rubik", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:root[data-script="hant"] { --display: "Bungee", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; --body: "Rubik", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
:root[data-script="jpan"] { --display: "Bungee", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; --body: "Rubik", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; }
:root[data-script="kore"] { --display: "Bungee", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; --body: "Rubik", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:root[data-script="hans"] :is(h1, h2, h3, .hero-line, .btn, .bay-tag), :root[data-script="hant"] :is(h1, h2, h3, .hero-line, .btn, .bay-tag),
:root[data-script="jpan"] :is(h1, h2, h3, .hero-line, .btn, .bay-tag), :root[data-script="kore"] :is(h1, h2, h3, .hero-line, .btn, .bay-tag) { font-weight: 800; }
:root[data-script="hans"] body, :root[data-script="hant"] body, :root[data-script="jpan"] body { line-break: strict; overflow-wrap: anywhere; }
:root[data-script="kore"] body { word-break: keep-all; overflow-wrap: anywhere; }
:root:not([lang="en"]) .feature-copy p, :root:not([lang="en"]) .legal p { hyphens: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt); font: 400 18px/1.6 var(--body);
  background-image: radial-gradient(ellipse 90% 60% at 50% 0%, #2a1858 0%, transparent 70%);
  background-repeat: no-repeat; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #ffe27a; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- plastic buttons (the game's k-btn: an ink outline and a thick edge under it) */
.btn {
  --c: var(--yellow); --c2: #ffb51f; --t: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 400 15px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  color: var(--t); background: linear-gradient(var(--c), var(--c2)); border: var(--line) solid var(--ink); border-radius: 12px;
  padding: 13px 20px 12px; box-shadow: 0 var(--edge) 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(0); transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s;
  cursor: pointer; white-space: nowrap; user-select: none;
}
.btn:hover { color: var(--t); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 calc(var(--edge) + 1px) 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn:active { transform: translateY(var(--edge)); box-shadow: 0 0 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-big { font-size: 18px; padding: 17px 26px 16px; border-radius: 14px; }
.btn-small { font-size: 12px; padding: 9px 13px 8px; --edge: 4px; border-radius: 10px; }
.btn-ghost { --c: var(--slab2); --c2: var(--slab); --t: var(--txt); box-shadow: 0 var(--edge) 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.12); }
.btn-ghost:hover { --c: var(--slab3); --c2: var(--slab2); box-shadow: 0 calc(var(--edge) + 1px) 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.12); }
.btn.is-soon { cursor: default; --c: var(--slab3); --c2: var(--slab2); --t: var(--txt); }
.btn.is-soon:hover, .btn.is-soon:active { transform: none; filter: none; box-shadow: 0 var(--edge) 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.45); }

/* ---------- the bar on top (shows once the big logo has scrolled away) */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: rgba(18, 10, 34, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--line) solid var(--ink);
  transform: translateY(-110%); transition: transform 0.25s ease;
}
.nav.on, .nav-solid { transform: none; }
.nav-solid { position: sticky; }
.nav-home img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--txt2); text-decoration: none; font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--txt); }
.nav > .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }

/* ---------- hero */
.hero { position: relative; padding-top: max(40px, env(safe-area-inset-top, 0px)); }
.hero-copy { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-logo { width: min(720px, 92vw); margin-top: 8px; filter: drop-shadow(0 10px 24px rgba(8, 3, 22, 0.7)); }
.hero-logo img { width: 100%; }
.hero-line { font: 400 clamp(20px, 3.2vw, 30px)/1.2 var(--display); color: var(--txt); text-wrap: balance; }
.hero-sub { color: var(--txt2); font-size: clamp(17px, 2vw, 20px); max-width: 640px; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; margin-top: 8px; padding-bottom: var(--edge); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 4px 0 0; }
.chips li { font-size: 14px; font-weight: 500; color: var(--txt2); background: rgba(41, 28, 71, 0.8); border: 2px solid var(--slab3); border-radius: 999px; padding: 5px 12px; }
.chips li.chip-date { color: var(--ink); background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.hero-art { position: relative; margin-top: clamp(-40px, -3vw, -10px); z-index: 1; }
.hero-art img { width: 100%; aspect-ratio: 1600 / 517; object-fit: cover; object-position: 50% 60%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%); }

/* six stripes, the TV games' rainbow */
.stripes { display: grid; gap: 3px; padding: 0; }
.stripes i { display: block; height: 3px; }
.stripes i:nth-child(1) { background: var(--red); } .stripes i:nth-child(2) { background: var(--orange); } .stripes i:nth-child(3) { background: var(--yellow); }
.stripes i:nth-child(4) { background: var(--green); } .stripes i:nth-child(5) { background: var(--cyan); } .stripes i:nth-child(6) { background: var(--purple); }

/* ---------- trailer */
.trailer { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 24px; }
.eyebrow-h { font-size: clamp(26px, 4vw, 40px); text-align: center; margin-bottom: 28px; }
.screen { background: var(--ink); border: var(--line) solid var(--ink); border-radius: 22px; padding: 10px; box-shadow: 0 8px 0 var(--ink), 0 30px 80px rgba(166, 107, 255, 0.18); }
.screen video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }

/* ---------- features: picture and words, alternating sides */
.features { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 40px; display: flex; flex-direction: column; gap: 88px; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.feature:nth-child(even) .shot { order: 2; }
.shot { margin: 0; border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; background: var(--slab); box-shadow: 0 var(--edge) 0 var(--ink); transform: rotate(-0.6deg); }
.feature:nth-child(even) .shot { transform: rotate(0.6deg); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; }
.feature-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.feature-copy p:not(.kicker) { color: var(--txt2); text-wrap: pretty; }
.kicker { font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: 0.14em; }
.k-yellow { color: var(--yellow); } .k-pink { color: var(--pink); } .k-cyan { color: var(--cyan); } .k-green { color: var(--green); } .k-purple { color: var(--purple); }

/* the game's stickers: the machine's bays (as in the machine's panel: a coloured tag on a dark slot) */
.art { margin: 0; transform: rotate(-0.6deg); }
.feature:nth-child(even) .art { order: 2; transform: rotate(0.6deg); }
.bays { list-style: none; padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  background: var(--slab); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 var(--edge) 0 var(--ink); }
.bay { --c: var(--green); position: relative; display: grid; place-items: center; padding: 34px 10px 12px; background: var(--bg2);
  border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.04), 0 3px 0 var(--ink); }
.bay img { width: min(100%, 190px); filter: drop-shadow(0 8px 10px rgba(8, 3, 22, 0.55)); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.bay:hover img { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.bay-tag { position: absolute; inset: 0 0 auto; padding: 6px 10px 5px; border-bottom: var(--line) solid var(--ink); border-radius: 9px 9px 0 0;
  background: var(--c); color: var(--ink); font: 400 13px/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; }
.b-green { --c: var(--green); } .b-yellow { --c: var(--yellow); } .b-red { --c: #ff6b6b; } .b-pink { --c: var(--pink); }
/* a weapon and its linked sockets (as in the backpack: round sockets on a link) */
.rig { position: relative; padding: 22px 18px 20px; background: var(--slab); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 var(--edge) 0 var(--ink);
  display: grid; grid-template-columns: 0.9fr 1.4fr; align-items: center; gap: 8px; }
.rig-weapon { width: 100%; max-width: 260px; justify-self: center; filter: drop-shadow(0 10px 12px rgba(8, 3, 22, 0.55)); }
.sockets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; position: relative; }
.sockets li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.sockets img { width: 100%; max-width: 116px; aspect-ratio: 1; padding: 10px; background: radial-gradient(circle at 50% 40%, #3b2a66, var(--bg2) 70%);
  border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 4px var(--pink), 0 4px 0 4px var(--ink); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sockets li:hover img { transform: rotate(-8deg) scale(1.06); }
.sockets span { font-size: 14px; font-weight: 700; color: var(--txt); line-height: 1.2; }
/* the link between the sockets: a thick pink bar behind them */
.sockets::before { content: ""; position: absolute; left: 25%; right: 25%; top: 58px; bottom: 76px; border: 6px solid var(--pink); border-radius: 18px; opacity: 0.85; }

/* ---------- numbers */
.numbers { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 24px; }
.numbers ul { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  background: var(--slab); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: 0 var(--edge) 0 var(--ink); }
.numbers li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.numbers b { font: 400 clamp(28px, 3.6vw, 42px)/1 var(--display); color: var(--yellow); }
.numbers li:nth-child(2) b { color: var(--pink); } .numbers li:nth-child(3) b { color: var(--cyan); }
.numbers li:nth-child(4) b { color: var(--green); } .numbers li:nth-child(5) b { color: var(--orange); } .numbers li:nth-child(6) b { color: var(--purple); }
.numbers span { color: var(--txt2); font-size: 15px; font-weight: 500; }

/* ---------- screenshots */
.screens { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 24px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid button { display: block; width: 100%; padding: 0; border: var(--line) solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--slab); cursor: zoom-in; box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s ease; }
.grid button:hover { transform: translateY(-3px) rotate(-0.4deg); }
.grid button { position: relative; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.grid .cap { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 8px; border: 2px solid var(--ink);
  background: rgba(18, 10, 34, 0.88); color: var(--txt); font: 600 13px/1.25 var(--body); text-align: left; }
.lb-cap { position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 6px 12px; border-radius: 10px; border: 2px solid var(--ink); background: rgba(18, 10, 34, 0.9); font-weight: 600; }
.lb-cap:empty { display: none; }

.lightbox { width: min(96vw, 1600px); max-width: none; max-height: 92vh; padding: 0; border: var(--line) solid var(--ink); border-radius: 16px; background: var(--ink); color: var(--txt); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 4, 18, 0.88); }
.lightbox img { width: 100%; max-height: calc(92vh - 6px); object-fit: contain; border-radius: 13px; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--yellow); color: var(--ink); font: 700 30px/1 var(--body); cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.lb-prev { left: -14px; top: 50%; translate: 0 -50%; } .lb-next { right: -14px; top: 50%; translate: 0 -50%; }
.lb-close { right: -14px; top: -14px; background: var(--pink); }

/* ---------- outro */
.outro { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 104px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.outro h2 { font-size: clamp(30px, 5vw, 52px); }
.outro p { color: var(--txt2); margin-bottom: 10px; }

/* ---------- the language menu (a globe and the language's own name; the list opens under it) */
.lang { position: relative; font-size: 15px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 12px; border-radius: 999px;
  border: 2px solid var(--slab3); background: rgba(41, 28, 71, 0.8); color: var(--txt2); font-weight: 500; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--txt); border-color: var(--purple); }
.lang svg { width: 18px; height: 18px; fill: currentColor; }
.lang ul { list-style: none; margin: 0; padding: 8px; position: absolute; z-index: 30; display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 6px;
  max-height: min(78vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--slab); border: var(--line) solid var(--ink); border-radius: 14px; box-shadow: 0 var(--edge) 0 var(--ink), 0 20px 50px rgba(0, 0, 0, 0.5); }
.lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--txt); text-decoration: none; white-space: nowrap; }
.lang a:hover { background: var(--slab3); color: var(--txt); }
.lang a[aria-current] { color: var(--yellow); font-weight: 700; }
.lang-top { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top, 0px)); right: var(--gutter); }
.lang-top ul { right: 0; top: calc(100% + 8px); }
.lang-foot { margin-top: 10px; align-self: flex-start; }
.lang-foot ul { left: 0; bottom: calc(100% + 8px); }

/* ---------- footer */
.foot { background: var(--ink); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) max(36px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 6px; color: var(--txt2); font-size: 16px; }
.small { font-size: 14px; color: var(--dim); }

/* ---------- legal and 404 */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page main { flex: 1; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin-top: 22px; color: var(--yellow); }
.legal p { color: var(--txt2); }
.lost { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 48px var(--gutter); }
.lost img { width: min(420px, 80vw); }
.lost h1 { font-size: clamp(26px, 5vw, 40px); }
.lost p { color: var(--txt2); margin-bottom: 12px; }

/* ---------- reveal on scroll (only when the script runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .grid button, .nav { transition: none; }
}

/* ---------- narrower screens */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .shot, .feature:nth-child(even) .art { order: 0; }
  .features { gap: 64px; }
  .numbers ul { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links + .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero-art img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .chips li { font-size: 13px; }
  .nav-home img { height: 30px; }
  .trailer, .screens { padding-top: 56px; }
  .screen { padding: 6px; border-radius: 16px; }
  .screen video { border-radius: 11px; }
  .numbers ul { padding: 18px 10px; }
  .grid { gap: 10px; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; top: -56px; }
  .bays { padding: 12px; gap: 10px; }
  .bay { padding-top: 30px; }
  .bay-tag { font-size: 11px; }
  .rig { grid-template-columns: 1fr; padding: 16px 12px; }
  .rig-weapon { max-width: 150px; }
  .sockets { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .sockets::before { left: 12%; right: 12%; top: 30%; bottom: auto; height: 0; border-width: 3px; border-radius: 0; }
  .sockets span { font-size: 12px; }
  .grid .cap { font-size: 11px; padding: 3px 7px; left: 5px; bottom: 5px; }
  .lang ul { grid-template-columns: max-content; max-height: min(70vh, 520px); }
}
