/* HOPPA website — ONE hand-written stylesheet, ONE token system, no build step.
   A game landing page in the spirit of the big game sites: a full-bleed hero with the game's own splash video, one
   giant PLAY NOW, the LATEST DROP featured big with past drops in a rail, a few big PLAY tiles, PLAY ANYWHERE, news.
   Colours are the game's (styles/ui.css --hp-*): the deep navy ground, white text, and the game's LIGHT highlight —
   CTAs are white / paper pills with ink text, the chunky ink ring and the offset ink shadow (styles/social.css
   .pz-popup__btn.is-ok); active nav, picks and focus are white. Cyan is a small secondary accent (labels, lines, the
   logo's cut). No sharp pink outside the logo's cut line. Titan One for display, Rubik for UI and body.
   The look's variables (ground, panels, tile framing) live in the THEME block right below: switching between the
   "night" and "seoul" treatments is that block plus the hero art in the page generator.
   site/tools/audit.mjs checks every page against these tokens (spacing, type, overflow, dropdowns, back-to-top). */

@font-face { font-family: 'Rubik'; src: url('../assets/fonts/rubik-latin.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titan One'; src: url('../assets/fonts/titanone-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  /* ---- the game's palette */
  --deep: #141620; --ink: #1e2130; --ink2: #292d40; --ink3: #363b52;
  --paper: #f3ece0; --sand: #e3d9c6; --hi: #ffffff; --hi-dark: #b9bdc9; --mist: #9a9eab;
  --cyan: #2de2e6; --err: #ff8fa6; --ok: #6ee7a8;
  /* the ten cities: one colour each (the HOPPA ID city picks, the ID card dot) */
  --c-hkcentral: #ff6b6f; --c-darling: #38bdf8; --c-asakusa: #ff8f45; --c-shibuya: #4ade80; --c-pattaya: #2dd4bf;
  --c-newyork: #a78bfa; --c-london: #f472b6; --c-shanghai: #e7b27a; --c-taipei: #e879f9; --c-seoul: #7b9bff;
  /* ---- THEME: "seoul" (the chosen look, mockup 2) — a bluer navy from the game's ink, the panel's thin rim + drop
     shadow on tiles, the Seoul key art centred in the hero. <html data-theme="night"> switches to mockup 1. */
  --bg: #121a33; --bg-2: #17213f; --card: #1b2547; --line: rgb(255 255 255 / .1); --rim: rgb(255 255 255 / .16);
  --tile-ring: inset 0 0 0 2px rgb(255 255 255 / .08); --tile-shadow: 0 14px 32px rgb(0 0 0 / .3);
  --hero-fade: radial-gradient(ellipse 60% 55% at 50% 52%, rgb(18 26 51 / .55), rgb(18 26 51 / 0) 75%), linear-gradient(0deg, var(--bg) 0%, rgb(18 26 51 / .55) 30%, rgb(18 26 51 / .15) 65%, rgb(18 26 51 / .35) 100%);
  --hdr-solid: rgb(18 26 51 / .94); --hero-align: center;
  --text: #ffffff; --text-2: rgb(243 236 224 / .78); --text-3: rgb(243 236 224 / .62);
  /* ---- type */
  --f-body: 'Rubik', 'HOPPA CJK', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-disp: 'Titan One', 'HOPPA CJK Display', 'Rubik', system-ui, sans-serif;
  --t-mega: clamp(44px, 6vw, 92px);
  --t-h2: clamp(30px, 3.6vw, 52px);
  --t-h3: clamp(30px, 3.4vw, 56px);
  --t-card: 24px;
  --t-lead: clamp(17px, 1.3vw, 19px);
  --t-body: 16px; --t-sm: 15px; --t-xs: 13px; --t-micro: 12px;
  --t-btn: 17px; --t-btn-sm: 15px; --t-btn-xl: clamp(22px, 2vw, 26px);
  --t-tag: clamp(14px, 1.6vw, 22px);
  --t-emoji: 20px; --t-num: 13px;
  /* ---- space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 136px;
  --gut: clamp(16px, 4vw, 64px); --max: 1440px; --hdr-h: 72px;
  /* ---- shape */
  --r-sm: 10px; --r-md: 14px; --r: 20px; --r-pill: 999px;
  --ol: 3px;   /* the game's ink ring on its buttons */
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
/* THEME: "night" (mockup 1) — the deepest navy, borderless tiles, the splash split, everything left-aligned */
:root[data-theme='night'] { --bg: var(--deep); --bg-2: #1a1d2b; --card: var(--ink); --tile-ring: none; --tile-shadow: none;
  --hero-fade: linear-gradient(0deg, var(--bg) 0%, rgb(20 22 32 / .55) 34%, rgb(20 22 32 / 0) 62%), linear-gradient(90deg, rgb(20 22 32 / .6), rgb(20 22 32 / 0) 55%);
  --hdr-solid: rgb(20 22 32 / .94); --hero-align: start; }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + var(--s4)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 500 var(--t-body)/1.55 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--s4); top: var(--s4); z-index: 100; transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
main { overflow-x: clip; }
.todo { display: inline-block; padding: 0 var(--s2); border-radius: var(--r-pill); font-style: normal; color: var(--cyan); outline: 1px dashed var(--cyan); }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) h4, :lang(ko) p { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) h4 { word-break: auto-phrase; }

/* ------------------------------------------------------------------ type */
.disp { font-family: var(--f-disp); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.lab { display: inline-flex; align-items: center; gap: var(--s2); font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-3); }
.sec { position: relative; padding: var(--s9) 0 0; }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.sec-h h2 { font-size: var(--t-h2); line-height: 1; }
.sec-head { display: grid; gap: var(--s3); max-width: 760px; margin-bottom: var(--s6); }
.sec-head h2 { font-size: var(--t-h2); line-height: 1; }
.more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--rim); font: 800 var(--t-xs)/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.more:hover { background: rgb(255 255 255 / .08); }

/* ------------------------------------------------------------------ the game's buttons */
.gbtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border: 0; border-radius: var(--r-pill); cursor: pointer; background: var(--hi); color: var(--ink); font: 400 var(--t-btn)/1 var(--f-disp); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 var(--ol) var(--ink), 0 5px 0 var(--ol) var(--ink); transition: transform .25s var(--spring), background .12s; }
.gbtn svg { width: 16px; height: 16px; flex: none; }
.gbtn:hover { transform: translateY(-2px); }
.gbtn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ol) var(--ink), 0 2px 0 var(--ol) var(--ink); }
.gbtn-paper { background: var(--paper); }
.gbtn-paper:hover { background: var(--hi); }
.gbtn-xl { min-height: 72px; padding: 0 var(--s7); font-size: var(--t-btn-xl); --ol: 4px; box-shadow: 0 0 0 var(--ol) var(--ink), 0 7px 0 var(--ol) var(--ink); }
.gbtn-xl svg { width: 22px; height: 22px; }
.gbtn-sm { min-height: 42px; padding: 0 var(--s4); font-size: var(--t-btn-sm); }
.gbtn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5); }
.gbtn-ghost:hover { background: rgb(255 255 255 / .1); }
.gbtn-ghost:active { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .5); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px var(--s3); border-radius: var(--r-pill); font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.chip-hi { background: var(--hi); color: var(--ink); }
.chip-cyan { background: var(--cyan); color: var(--ink); }
.chip-line { box-shadow: inset 0 0 0 2px var(--rim); color: var(--text); }

/* ------------------------------------------------------------------ the logo (the game's 4-cut wordmark) */
.logo { display: block; color: var(--hi); }
.logo svg { width: 100%; height: auto; overflow: visible; }

/* ------------------------------------------------------------------ header (over the hero, solid once scrolled) */
.hdr { position: fixed; z-index: 40; inset: 0 0 auto 0; background: linear-gradient(180deg, rgb(10 12 20 / .85), rgb(10 12 20 / 0)); transition: background .25s; }
.hdr.is-scrolled, .hdr.is-solid { background: var(--hdr-solid); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { display: flex; align-items: center; gap: var(--s5); height: var(--hdr-h); }
.hdr-logo { width: 116px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--s1); margin-right: auto; }
.nav a { display: flex; align-items: center; height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); font: 800 var(--t-xs)/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: rgb(255 255 255 / .82); white-space: nowrap; }
.nav a:hover { color: var(--hi); background: rgb(255 255 255 / .1); }
.nav a[aria-current] { background: var(--hi); color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: var(--s3); flex: none; }
.menu-btn { display: none; width: 44px; height: 44px; flex: none; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 0 0 var(--ol) var(--ink), 0 4px 0 var(--ol) rgb(0 0 0 / .42); }
.menu-btn svg { width: 20px; height: 20px; }
.menu { display: none; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .hdr-right { margin-left: auto; }
  .menu-btn { display: grid; }
  .menu:not([hidden]) { display: grid; gap: var(--s2); padding: var(--s3) 0 var(--s5); }
  .menu a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--s5); border-radius: var(--r-md); background: var(--ink2); font: 400 var(--t-card)/1 var(--f-disp); text-transform: uppercase; text-decoration: none; }
  .menu a[aria-current] { background: var(--hi); color: var(--ink); }
  .menu a svg { width: 20px; height: 20px; }
  .hdr:has(.menu:not([hidden])) { background: var(--hdr-solid); }
}
@media (max-width: 520px) {
  :root { --hdr-h: 64px; }
  .hdr-in { gap: var(--s2); }
  .hdr-logo { width: 92px; }
  .hdr-right { gap: var(--s2); }
  .hdr .gbtn-sm { padding: 0 var(--s3); font-size: var(--t-xs); --ol: 2px; }
  .hdr .gbtn-sm svg { display: none; }
}

/* ------------------------------------------------------------------ hero: the game's splash, both halves */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--hdr-h); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: 1fr 1fr; background: var(--deep); }
.hero-media.single { grid-template-columns: 1fr; }
.hero-half { position: relative; overflow: hidden; }
.hero-half img, .hero-half video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media.single img { object-position: 50% 35%; }
/* the game title's split over the poster: the calm city on the left, the same city in a Boss War on the right, a
   diagonal line between (the videos fade in over the Seoul poster once they play) */
.hero-split { position: absolute; inset: 0; }
.hero-split video { position: absolute; top: 0; height: 100%; width: 58%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero-split video.is-on { opacity: 1; }
.hs-calm { left: 0; }
.hs-war { right: 0; clip-path: polygon(20% 0, 100% 0, 100% 100%, 6% 100%); }
.hs-line { position: absolute; inset: 0; opacity: 0; background: rgb(255 255 255 / .85); clip-path: polygon(53.4% 0, 53.75% 0, 45.85% 100%, 45.5% 100%); transition: opacity .8s; }
.hero-split:has(video.is-on) .hs-line { opacity: 1; }
.hero-half video { opacity: 0; transition: opacity .8s; }
.hero-half video.is-on { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-fade); }
.hero-in { position: relative; display: grid; gap: var(--s5); justify-items: var(--hero-align); text-align: var(--hero-align); padding-top: var(--s6); padding-bottom: var(--s6); will-change: transform, opacity; }
.hero-logo { width: min(760px, 86vw); }
.hero-tag { font: 800 var(--t-tag)/1.2 var(--f-body); letter-spacing: .42em; text-transform: uppercase; color: var(--cyan); }
.hero-sub { font-weight: 600; color: var(--text-2); }
.drop-chip { display: inline-flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s4) var(--s2) var(--s2); border-radius: var(--r-pill); background: rgb(20 22 32 / .72); box-shadow: inset 0 0 0 2px var(--rim); font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.drop-chip:hover { background: rgb(20 22 32 / .9); }
.plats { display: flex; flex-wrap: wrap; justify-content: var(--hero-align); gap: var(--s2); }
.plat { display: inline-flex; align-items: center; gap: var(--s2); min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--rim); font: 700 var(--t-xs)/1 var(--f-body); color: rgb(255 255 255 / .86); }
.plat svg { width: 18px; height: 18px; }
.hero-pause { position: absolute; z-index: 2; right: var(--gut); bottom: var(--s8); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(20 22 32 / .7); color: var(--hi); box-shadow: inset 0 0 0 2px var(--rim); cursor: pointer; }
.hero-pause svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ drops: the featured drop + the rail */
.rel { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2); font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; }
.rel b { padding: 6px var(--s3); border-radius: var(--r-sm); background: var(--cyan); color: var(--ink); }
.rel span { padding: 6px var(--s3); border-radius: var(--r-sm); background: rgb(12 14 22 / .66); color: var(--hi); }
.feat { position: relative; display: grid; align-items: end; min-height: 560px; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring), var(--tile-shadow); }
.feat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feat:hover > img { transform: scale(1.03); }
.feat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 14 22 / .9) 0%, rgb(12 14 22 / .5) 40%, rgb(12 14 22 / 0) 70%); }
.feat-in { position: relative; z-index: 1; min-width: 0; display: grid; gap: var(--s4); justify-items: start; max-width: 640px; padding: var(--s7); }
.feat h3 { font-size: var(--t-mega); line-height: 1; overflow-wrap: break-word; }
.feat p { font-size: var(--t-lead); color: var(--text-2); max-width: 30em; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s5)) / 4); gap: var(--s5); margin-top: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--s2); }
.rail::-webkit-scrollbar { display: none; }
.rcard { position: relative; display: grid; align-items: end; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--card); text-decoration: none; scroll-snap-align: start; box-shadow: var(--tile-ring), var(--tile-shadow); }
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rcard:hover img { transform: scale(1.05); }
.rcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(12 14 22 / .94), rgb(12 14 22 / 0) 58%); }
.rcard-in { position: relative; z-index: 1; min-width: 0; display: grid; gap: var(--s2); padding: var(--s5); }
.rcard h4 { font: 400 var(--t-card)/1.05 var(--f-disp); text-transform: uppercase; }
.rcard time { font: 700 var(--t-micro)/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--hi-dark); }
.rail-nav { display: flex; gap: var(--s2); }
.rail-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--hi); box-shadow: inset 0 0 0 2px var(--rim); cursor: pointer; }
.rail-nav button:hover { background: rgb(255 255 255 / .1); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ PLAY tiles */
.tiles { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s5); }
.tile { position: relative; display: grid; align-items: end; min-height: 300px; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring), var(--tile-shadow); }
.tile-big { grid-row: span 2; min-height: 640px; }
.tile > img, .tile > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover > img, .tile:hover > picture > img { transform: scale(1.04); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(12 14 22 / .92), rgb(12 14 22 / 0) 62%); }
.tile-in { position: relative; z-index: 1; min-width: 0; display: grid; gap: var(--s3); justify-items: start; padding: var(--s6); }
.tile h3 { font-size: var(--t-h3); line-height: 1.08; }
/* the small label sits on a dark plate over busy art, a clear step above the title, wrapping inside the tile */
.tile .lab, .feat-in > .lab { max-width: 100%; padding: 6px var(--s3); border-radius: var(--r-sm); background: rgb(12 14 22 / .72); line-height: 1.35; white-space: normal; margin-bottom: var(--s1); }
.tile p { color: var(--text-2); max-width: 28em; }

/* ------------------------------------------------------------------ PLAY ANYWHERE */
.any { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--s7); align-items: center; padding: var(--s7); border-radius: var(--r); background: var(--bg-2); box-shadow: var(--tile-ring); }
.any h2 { font-size: var(--t-h2); line-height: .95; margin: var(--s3) 0; }
.any .lead { margin-bottom: var(--s5); }
.devs { display: grid; grid-template-columns: 1.5fr 1.1fr .6fr; gap: var(--s4); align-items: end; }
.devs figure { display: grid; gap: var(--s3); justify-items: center; }
.devs img { border-radius: var(--r-md); box-shadow: 0 0 0 6px #0b0d14, 0 0 0 8px var(--rim); }
.devs figcaption { font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--hi-dark); }

/* ------------------------------------------------------------------ news cards (home: 3; the drops page: all) */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.ncard { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring), var(--tile-shadow); }
.ncard-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ncard-art img { width: 100%; height: 100%; object-fit: cover; }
.ncard-art .rel { position: absolute; left: var(--s4); top: var(--s4); }
.ncard-body { display: grid; gap: var(--s2); align-content: start; padding: var(--s5) var(--s5) var(--s6); }
.ncard time { font: 700 var(--t-micro)/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--hi-dark); }
.ncard h3 { font: 400 var(--t-card)/1.1 var(--f-disp); }
.ncard p { font-size: var(--t-sm); color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.filters button { min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--rim); font: 800 var(--t-xs)/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.filters button[aria-pressed='true'] { background: var(--hi); color: var(--ink); box-shadow: none; }

/* ------------------------------------------------------------------ inner pages */
.page { padding-top: calc(var(--hdr-h) + var(--s8)); }
.page-head { display: grid; gap: var(--s4); max-width: 860px; margin-bottom: var(--s7); }
.page-head h1 { font-size: var(--t-mega); line-height: .95; }
.panel { padding: var(--s6); border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring), var(--tile-shadow); }
.rows { display: grid; gap: var(--s2); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 52px; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: rgb(255 255 255 / .05); font-weight: 700; }
.row small { font-size: var(--t-sm); font-weight: 600; color: var(--text-3); }
.tt { display: grid; overflow: hidden; border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring), var(--tile-shadow); }
.tt-row { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: var(--s5); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.tt-row:first-child { border-top: 0; }
.tt-row dt { font: 800 var(--t-micro)/1.6 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.tt-row dd { font-weight: 600; }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.usp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.usp div { padding: var(--s5); border-radius: var(--r); background: var(--card); font-weight: 700; box-shadow: var(--tile-ring); }
.roadmap { position: relative; display: grid; gap: var(--s2); padding-left: var(--s6); }
.roadmap::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 24px; border-left: 3px dashed var(--rim); }
.rm { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding: var(--s3) var(--s5); border-radius: var(--r-md); background: var(--card); font-weight: 700; }
.rm::before { content: ''; position: absolute; left: calc(-1 * var(--s6) + 3px); top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--rim); }
.rm.is-done::before { background: var(--hi); box-shadow: 0 0 0 3px var(--bg); }
.kit-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.kit-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.team div { display: grid; gap: var(--s1); padding: var(--s4); border-radius: var(--r-md); background: rgb(255 255 255 / .05); }
.prose { display: grid; gap: var(--s3); max-width: 860px; }
.prose h2 { margin: var(--s7) 0 var(--s1); font: 400 var(--t-card)/1.1 var(--f-disp); text-transform: uppercase; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { display: grid; gap: var(--s2); padding-left: var(--s5); }
.prose strong, .prose a { color: var(--hi); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); background: var(--card); }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { position: sticky; top: 0; padding: var(--s3) var(--s4); text-align: left; background: var(--ink2); font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.table-wrap td { padding: var(--s3) var(--s4); vertical-align: top; font-size: var(--t-sm); color: var(--text-2); border-top: 1px solid var(--line); }
.table-wrap td:first-child { color: var(--hi); font-weight: 700; }

/* ------------------------------------------------------------------ the HOPPA ID page */
.id-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s7); align-items: start; }
.id-side { position: sticky; top: calc(var(--hdr-h) + var(--s5)); display: grid; gap: var(--s4); }
.step { display: grid; gap: var(--s3); margin: 0; padding: var(--s5); border: 0; border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring); }
.step-h { display: flex; align-items: center; gap: var(--s3); padding: 0; font: 400 var(--t-card)/1.1 var(--f-disp); text-transform: uppercase; }
legend.step-h { float: left; width: 100%; margin-bottom: var(--s3); }
legend.step-h + * { clear: both; }
.num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 var(--t-num)/1 var(--f-disp); box-shadow: 0 0 0 var(--ol) var(--c, var(--ink)); }
.looks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2); }
.looks label { position: relative; display: grid; justify-items: center; gap: var(--s1); padding: var(--s2); border-radius: var(--r-md); background: rgb(255 255 255 / .06); cursor: pointer; font-size: var(--t-xs); font-weight: 700; }
.looks label:has(input:checked) { background: var(--hi); color: var(--ink); }
.looks label:has(input:focus-visible), .cities-pick label:has(input:focus-visible) { outline: 3px solid var(--hi); outline-offset: 2px; }
.looks input, .swatches input, .cities-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.looks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: rgb(0 0 0 / .2); }
.swatches { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatches label { position: relative; cursor: pointer; }
.swatches i { display: block; width: 40px; height: 40px; border-radius: 50%; font-style: normal; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .14); }
.swatches input:checked + i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--hi); }
.swatches input:focus-visible + i { outline: 3px solid var(--hi); outline-offset: 6px; }
.swatches-emoji i { display: grid; place-items: center; border-radius: var(--r-md); background: rgb(255 255 255 / .06); font-size: var(--t-emoji); }
.cities-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.cities-pick label { position: relative; display: grid; justify-items: center; gap: var(--s2); padding: var(--s3) var(--s1); border-radius: var(--r-md); background: rgb(255 255 255 / .06); cursor: pointer; text-align: center; font-size: var(--t-xs); font-weight: 700; line-height: 1.25; }
.cities-pick label:has(input:checked) { background: var(--hi); color: var(--ink); }
.more-box { border-radius: var(--r); background: var(--card); box-shadow: var(--tile-ring); }
.more-box > summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 var(--s5); cursor: pointer; list-style: none; font-weight: 700; }
.more-box > summary::-webkit-details-marker { display: none; }
.more-box > summary::after { content: '+'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 var(--t-card)/1 var(--f-disp); transition: transform .3s var(--spring); }
.more-box[open] > summary::after { transform: rotate(45deg); }
.more-in { display: grid; gap: var(--s5); padding: var(--s2) var(--s5) var(--s5); }
.plain { border: 0; margin: 0; padding: 0; }
.plain legend { margin-bottom: var(--s2); padding: 0; }
/* the ID card: the game's paper card on the navy */
.idcard { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: var(--s4); padding: var(--s5) var(--s5) var(--s6); border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: 0 0 0 4px var(--ink), 0 10px 0 4px rgb(0 0 0 / .4); }
.idcard::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--cyan) 0 50%, var(--ink) 50% 100%); }
.idcard-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 2px dashed rgb(30 33 48 / .2); }
.idcard-head .logo { width: 104px; color: var(--ink); }
.idcard-name { display: flex; align-items: center; gap: var(--s2); font: 400 var(--t-h2)/1.05 var(--f-disp); overflow-wrap: anywhere; }
.idcard-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); margin-top: var(--s4); }
.idcard-fields div { display: grid; gap: 2px; min-width: 0; }
.idcard-fields dt { font: 800 var(--t-micro)/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #5d6274; }
.idcard-fields dd { display: flex; align-items: center; gap: var(--s2); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.idcard-kid { align-self: stretch; display: grid; place-items: end center; overflow: hidden; border-radius: var(--r-md); background: radial-gradient(circle at 50% 35%, #fff, var(--sand) 75%); }
.idcard-kid img { width: 100%; }
.idcard-code { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-top: var(--s3); border-top: 2px dashed rgb(30 33 48 / .2); }
.idcard-bars { flex: 1; max-width: 260px; height: 36px; }
.idcard-bars rect { fill: var(--ink); }
.idcard .chip { background: var(--ink); color: var(--paper); font-variant-numeric: tabular-nums; }
.swatch-dot { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px rgb(30 33 48 / .3); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s2); min-width: 0; }
.field-label { font-weight: 700; }
.field-opt { margin-left: var(--s2); font-size: var(--t-xs); font-weight: 600; color: var(--text-3); }
.fields-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.input { width: 100%; min-height: 52px; padding: var(--s3) var(--s4); border: 0; border-radius: var(--r-md); background: rgb(0 0 0 / .28); color: var(--hi); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .12); font: 500 var(--t-body)/1.3 var(--f-body); outline: none; transition: box-shadow .15s; }
.input:hover { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .24); }
.input:focus { box-shadow: inset 0 0 0 2px var(--hi); }
.input[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--err); }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; }
select.input option { background: var(--ink); }
.hint { font-size: var(--t-sm); line-height: 1.45; color: var(--text-3); }
.err { font-size: var(--t-sm); font-weight: 700; color: var(--err); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px var(--rim); font: 700 var(--t-sm)/1 var(--f-body); }
.pick input:checked + span { background: var(--hi); color: var(--ink); box-shadow: none; }
.pick input:focus-visible + span { outline: 3px solid var(--hi); outline-offset: 2px; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s3) var(--s5); border-radius: var(--r-md); background: rgb(255 255 255 / .05); }
.consent-txt { font-size: var(--t-sm); line-height: 1.45; color: var(--text-2); }
.consent-txt a { color: var(--hi); }
.toggle { position: relative; flex: none; width: 64px; height: 36px; border-radius: var(--r-pill); background: rgb(0 0 0 / .45); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .14); cursor: pointer; transition: background .25s; }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.toggle-knob { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); pointer-events: none; transition: transform .35s var(--spring); }
.toggle-txt { display: none; }
.toggle:has(input:checked) { background: var(--hi); }
.toggle:has(input:checked) .toggle-knob { transform: translateX(28px); background: var(--ink); }
.toggle:has(input:focus-visible) { outline: 3px solid var(--hi); outline-offset: 3px; }
.toggle:has(input[aria-invalid='true']) { box-shadow: 0 0 0 2px var(--err); }
.pfoot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.saved { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--t-sm); font-weight: 600; color: var(--text-2); }
.saved svg { width: 18px; height: 18px; color: var(--ok); }
.status { display: grid; gap: var(--s2); justify-items: start; padding: var(--s4) var(--s5); border-radius: var(--r-md); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 2px var(--rim); }
.status b { font-weight: 800; }
.status p { font-size: var(--t-sm); color: var(--text-2); }
.status-soon { box-shadow: inset 0 0 0 2px var(--cyan); }
.status-ok { box-shadow: inset 0 0 0 2px var(--ok); }
.status-err { box-shadow: inset 0 0 0 2px var(--err); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ ONE dropdown (js/dropdown.js) */
.dd { position: relative; display: inline-flex; min-width: 0; width: 100%; }
.dd-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 52px; padding: 0 var(--s4); border: 0; border-radius: var(--r-md); background: rgb(0 0 0 / .28); color: var(--hi); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .12); font: 500 var(--t-body)/1.2 var(--f-body); text-align: left; cursor: pointer; }
.dd-btn:hover { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .24); }
.dd-btn[aria-expanded='true'], .dd-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hi); }
.dd-btn[aria-invalid='true'] { box-shadow: inset 0 0 0 2px var(--err); }
.dd-btn > svg { width: 18px; height: 18px; flex: none; }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-empty .dd-val { color: var(--text-3); }
.dd-chev { flex: none; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: 45deg; translate: 0 -25%; transition: rotate .2s var(--ease); }
.dd-btn[aria-expanded='true'] .dd-chev { rotate: 225deg; translate: 0 25%; }
.dd-lang { width: auto; }
.dd-lang .dd-btn { min-height: 42px; gap: var(--s2); padding: 0 var(--s4); border-radius: var(--r-pill); background: transparent; box-shadow: inset 0 0 0 2px var(--rim); font: 800 var(--t-xs)/1 var(--f-body); letter-spacing: .06em; }
.dd-lang .dd-btn[aria-expanded='true'], .dd-lang .dd-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--hi); }
.dd-list { position: fixed; z-index: 60; display: grid; align-content: start; gap: 2px; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: var(--s2); list-style: none; border-radius: var(--r); background: var(--ink); box-shadow: inset 0 0 0 2px var(--rim), 0 24px 56px rgb(0 0 0 / .5); animation: ddIn .22s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dd-opt { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) var(--s4); border-radius: var(--r-md); font-weight: 600; cursor: pointer; }
.dd-opt > span { flex: 1; min-width: 0; }
.dd-opt.is-active { background: rgb(255 255 255 / .08); }
.dd-opt[aria-selected='true'] { background: var(--hi); color: var(--ink); font-weight: 800; }
.dd-opt[aria-disabled='true'] { opacity: .5; cursor: default; }
.dd-opt small { font: 800 var(--t-micro)/1 var(--f-body); letter-spacing: .1em; opacity: .7; }
.dd-opt svg { width: 18px; height: 18px; flex: none; visibility: hidden; }
.dd-opt[aria-selected='true'] svg { visibility: visible; }
.dd-sheet { inset: auto 0 0 0 !important; max-height: 72svh; padding: var(--s5) var(--s4) max(var(--s5), env(safe-area-inset-bottom)); border-radius: var(--r) var(--r) 0 0; animation: sheetIn .3s var(--ease); }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
.dd-sheet::before { content: ''; justify-self: center; width: 44px; height: 5px; margin-bottom: var(--s3); border-radius: var(--r-pill); background: var(--rim); }
.dd-sheet .dd-opt { min-height: 54px; }
.dd-scrim { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .55); }

/* ------------------------------------------------------------------ footer: slim */
.foot { margin-top: var(--s9); padding: var(--s6) 0 var(--s9); border-top: 1px solid var(--line); background: rgb(0 0 0 / .18); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.foot .logo { width: 104px; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-right: auto; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; font: 700 var(--t-xs)/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: rgb(255 255 255 / .82); }
.foot-links a:hover { color: var(--hi); text-decoration: underline; }
.foot small { width: 100%; font-size: var(--t-xs); color: var(--text-3); }

/* ------------------------------------------------------------------ back to top (the game's round paper button) */
.totop { position: fixed; z-index: 50; right: max(var(--s4), calc(env(safe-area-inset-right) + var(--s4))); bottom: max(var(--s4), calc(env(safe-area-inset-bottom) + var(--s4)));
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 var(--ol) var(--ink), 0 5px 0 var(--ol) rgb(0 0 0 / .42);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--spring), visibility 0s .3s; }
.totop svg { width: 22px; height: 22px; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .3s var(--spring), visibility 0s; }
.totop:hover { background: var(--hi); }
.totop:focus-visible { border-radius: 50%; }
.dd-open .totop { visibility: hidden; }

/* ------------------------------------------------------------------ scroll reveals (js/common.js) */
.js .rv { opacity: 0; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv-up { transform: translateY(40px); }
.js .rv-scale { transform: scale(.95); }
.js .rv.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .rail { grid-auto-columns: calc((100% - 2 * var(--s5)) / 3); }
  .any, .press-grid, .id-grid { grid-template-columns: minmax(0, 1fr); }
  .id-side { position: static; order: -1; }
}
@media (max-width: 800px) {
  .sec { padding-top: var(--s8); }
  .hero { min-height: 92svh; }
  .hero-in { gap: var(--s4); }
  .hero-pause { top: calc(var(--hdr-h) + var(--s3)); bottom: auto; }
  .gbtn-xl { width: 100%; min-height: 64px; }
  .feat { min-height: 520px; }
  .feat::after { background: linear-gradient(0deg, rgb(12 14 22 / .95) 12%, rgb(12 14 22 / 0) 78%); }
  .feat-in { padding: var(--s5); }
  .feat h3 { font-size: var(--t-h2); }
  .rail { grid-auto-columns: 78%; gap: var(--s4); margin-right: calc(-1 * var(--gut)); padding-right: var(--gut); }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .tile-big { grid-row: auto; min-height: 460px; }
  .tile { min-height: 340px; }
  .tile-in { padding: var(--s5); }
  .any { padding: var(--s5); gap: var(--s6); }
  .devs { gap: var(--s2); }
  .news { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .usp, .team { grid-template-columns: minmax(0, 1fr); }
  .tt-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fields-2 { grid-template-columns: minmax(0, 1fr); }
  .page { padding-top: calc(var(--hdr-h) + var(--s6)); }
}
@media (max-width: 520px) {
  .idcard { grid-template-columns: minmax(0, 1fr) 96px; padding: var(--s4) var(--s4) var(--s6); }
  .idcard-fields { grid-template-columns: minmax(0, 1fr); }
  .cities-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities-pick label { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; padding: var(--s2) var(--s3); }
  .kit-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-row { padding: var(--s3) var(--s4); }
  .step { padding: var(--s4); }
  .panel { padding: var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .gbtn, .feat > img, .rcard img, .tile > img, .totop { transition: none; }
  .dd-list, .dd-sheet { animation: none; }
}
