/* ARBLAST website (arblast.io): one stylesheet for the marketing pages (body.mk: home, /organisers/, /schools/,
   /clubs/) and the text pages (body.page: support, privacy, terms, bibs, poster, join). The look follows the game and
   the organiser console: deep night-blue, painted key art, team blue / red, yellow primary buttons and heavy italic
   condensed display type (Barlow Condensed, SIL OFL: /assets/fonts/OFL.txt) over a plain system font for reading. */

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
/* The full Barlow Condensed (every Latin letter, Vietnamese included: Ấ Đ Ơ Ữ), for the Vietnamese pages, which use it
   for all their display type so no word mixes two fonts (scripts/make-web-fonts.py; "Languages" at the end). */
@font-face { font-family: "Barlow Condensed Full"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-full-800i.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed Full"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-full-700.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed Full"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-full-600.woff") format("woff"); }

:root {
  /* STORE SWITCH (docs/WEBSITE.md "Store badges"). Each store shows either its "Coming soon" label (no link) or the
     official badge linking to the store page. To put a store live, swap the two values on its line, so that
     `-soon` is `none` and `-live` is `inline-flex`. Nothing else on the site needs to change. */
  --app-store-soon: inline-flex; --app-store-live: none;
  --google-play-soon: none; --google-play-live: inline-flex;

  --bg: #070918;
  --bg-2: #0c0f2b;
  --bg-3: #12163a;
  --panel: linear-gradient(180deg, rgba(30, 36, 92, 0.62), rgba(13, 16, 44, 0.86));
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.26);
  --text: #f5f7ff;
  --muted: #c3cae3;
  --faint: #9ba3c4;
  --yellow: #ffd21a;
  --yellow-hi: #ffe766;
  --yellow-lo: #f5b400;
  --ink: #1b1500;
  --blue: #2f7bff;
  --blue-hi: #7fb0ff;
  --cyan: #33e6ff;
  --red: #ff3b4a;
  --red-hi: #ff7a85;
  --green: #35e07c;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; } /* <picture> gives WebP a JPEG/PNG fallback; the img lays out as if it stood alone */
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* MARK: Text pages (support, privacy, terms, bibs, join). Selectors match the earlier site.css so join.css keeps working. */

body.page {
  background: radial-gradient(1200px 600px at 15% 0%, #10307a44, transparent), var(--bg);
}
.page main { max-width: 720px; margin: 0 auto; padding: 36px 16px 56px; box-sizing: content-box; }
.page h1 {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 9vw, 60px); line-height: 0.95; letter-spacing: 0.005em; margin: 8px 0 10px;
}
.page h2 { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 28px; line-height: 1.1; margin: 36px 0 8px; letter-spacing: 0.01em; }
.page h3 { font-size: 18px; margin: 22px 0 6px; }
.page a { color: var(--blue-hi); }
.page .back a { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-decoration: none; letter-spacing: 0.01em;
  background: linear-gradient(90deg, #3d7bff, #ff3d57); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page .meta { color: var(--faint); font-size: 15px; margin: 0 0 24px; }
.page .summary { background: #ffffff0d; border: 1px solid #ffffff1a; border-radius: 16px; padding: 4px 20px 8px; }
.page .summary h2 { margin-top: 16px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page code { background: #ffffff14; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.page main > footer { margin-top: 48px; font-size: 14px; opacity: 0.6; }
.page .kicker { margin: 0; }

/* Downloads on the text pages (bibs). */
.page .downloads { list-style: none; padding: 0; display: grid; gap: 12px; margin: 18px 0; }
.page .downloads li { margin: 0; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: #ffffff0d; border: 1px solid var(--line); color: var(--text);
}
.page .download { color: var(--text); }
.download:hover { border-color: var(--line-strong); background: #ffffff14; }
.download .icon { width: 26px; height: 26px; color: var(--yellow); }
.download strong { display: block; }
.download .txt > span { display: block; color: var(--faint); font-size: 15px; }
.page-figure { margin: 22px 0; display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.page-figure img { border-radius: 10px; box-shadow: var(--shadow); }
.page-figure figcaption { color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .page-figure { grid-template-columns: 120px 1fr; } }

/* The arena poster page (/poster/): the poster, one big download button, numbered steps. */
.poster-get { display: grid; justify-items: center; gap: 14px; margin: 8px 0 8px; padding: 26px 20px 20px; border-radius: var(--radius); background: #ffffff0d; border: 1px solid var(--line); text-align: center; }
.poster-sheet { display: block; width: min(100%, 380px); padding: 10px; background: #fff; border-radius: 4px; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.poster-sheet img { width: 100%; }
.page .poster-download { width: min(100%, 460px); margin-top: 8px; color: var(--ink); }
.poster-file { margin: 0; color: var(--faint); font-size: 15px; }
.page .poster-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; counter-reset: step; }
.page .poster-steps li { position: relative; margin: 0; padding: 14px 16px 14px 62px; border-radius: 14px; background: #ffffff0d; border: 1px solid var(--line); counter-increment: step; }
.poster-steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px;
}
.page .btn-sm .icon { width: 1.1em; height: 1.1em; }
@media (max-width: 520px) {
  .poster-get { padding: 20px 14px 16px; }
  .page .poster-download { font-size: 19px; padding: 0 16px; }
  .page .poster-steps li { padding-left: 56px; }
}

/* MARK: Header */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 9, 24, 0.8); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand {
  display: inline-flex; align-items: baseline; font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 30px; line-height: 1; letter-spacing: 0.01em; text-decoration: none; border-radius: 6px;
}
.wm-ar { background: linear-gradient(180deg, #a6f4ff, var(--cyan) 45%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.04em; }
.wm-blast { background: linear-gradient(180deg, #fff3a8, var(--yellow) 45%, #ff8a1a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.site-header .nav { display: flex; gap: 2px; margin-left: 18px; }
.site-header .nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px;
}
.site-header .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header .signin { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-header .signin:hover { color: var(--text); }
.site-header .btn-ghost { color: var(--text); }
.cta-short { display: none; }
@media (max-width: 1000px) { .site-header .nav { display: none; } }
@media (max-width: 560px) {
  .brand { font-size: 27px; }
  .site-header .signin { display: none; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}

/* MARK: Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; min-height: 54px; padding: 0 26px;
  border-radius: 14px; border: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 21px;
  line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 0.95em; height: 0.95em; stroke-width: 2.6; }
.btn-primary, .page .btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 48%, var(--yellow-lo));
  box-shadow: inset 0 -4px 0 rgba(120, 70, 0, 0.3), 0 10px 28px rgba(255, 190, 0, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: inset 0 -4px 0 rgba(120, 70, 0, 0.3), 0 14px 34px rgba(255, 190, 0, 0.36); }
.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 17px; border-radius: 11px; }
.btn-lg { min-height: 62px; padding: 0 32px; font-size: 24px; border-radius: 16px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* MARK: Type */

.display { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
.kicker {
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 17px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yellow); margin: 0 0 10px;
}
.hl { background: linear-gradient(180deg, #fff3a8, var(--yellow) 45%, #ff9a1a); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.hl-blue { color: var(--cyan); }

/* MARK: Layout */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(38px, 5.6vw, 64px); line-height: 0.95; margin: 0 0 16px; text-wrap: balance; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 19px; margin: 0; }
.section-head p a { color: var(--blue-hi); }

/* MARK: Hero */

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 24, 0.94) 0%, rgba(7, 9, 24, 0.78) 34%, rgba(7, 9, 24, 0.2) 62%, rgba(7, 9, 24, 0.05) 100%),
    linear-gradient(180deg, rgba(7, 9, 24, 0) 60%, var(--bg) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr); align-items: end; gap: 24px;
  min-height: min(780px, calc(100svh - var(--header-h))); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.hero-copy { align-self: center; max-width: 720px; }
.hero h1 { font-size: clamp(50px, 6.8vw, 98px); line-height: 0.9; margin: 0 0 22px; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #e4e8f7; margin: 0 0 30px; max-width: 580px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { margin: 14px 0 0; color: var(--faint); font-size: 15px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(7, 9, 24, 0.55); border: 1px solid var(--line-strong); color: #e8ecf8;
}
.trust .icon { width: 17px; height: 17px; color: var(--green); stroke-width: 2.6; }
.hero-figures { position: relative; height: clamp(420px, 44vw, 600px); align-self: end; pointer-events: none; }
.hero-figures::after {
  content: ""; position: absolute; left: 4%; right: 0; bottom: -2%; height: 16%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 220, 140, 0.45), rgba(255, 180, 60, 0.12) 60%, transparent);
}
.hero-figures img { position: absolute; bottom: 0; height: 100%; width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.hero-figures .fig-blue { left: 2%; z-index: 2; }
.hero-figures .fig-red { right: 0; height: 93%; z-index: 1; bottom: 2%; }

@media (max-width: 860px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 9, 24, 0.15) 0%, rgba(7, 9, 24, 0.25) 26%, rgba(7, 9, 24, 0.92) 48%, var(--bg) 70%);
  }
  .hero-bg { bottom: auto; height: 62%; min-height: 380px; }
  .hero-bg img { object-position: 50% 30%; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 12px; gap: 0; }
  .hero-figures { order: -1; height: clamp(210px, 50vw, 380px); width: clamp(200px, 48vw, 360px); margin: 0 auto 22px; }
  .hero-figures .fig-blue { left: 0; }
  .hero-figures .fig-red { right: 0; }
  .hero-copy { max-width: none; }
}
@media (max-width: 560px) {
  .kicker { font-size: 15px; letter-spacing: 0.12em; }
  .hero h1 { font-size: clamp(44px, 13vw, 58px); margin-bottom: 16px; }
  .hero .lead { font-size: 17px; margin-bottom: 22px; }
  .btn-lg { min-height: 56px; padding: 0 18px; font-size: 21px; }
  .cta-row .btn { width: 100%; }
  .trust { margin-top: 22px; }
  .trust li { font-size: 13px; }
}

/* MARK: Facts strip */

.facts { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 22, 58, 0.9), rgba(10, 12, 34, 0.9)); }
.facts-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid li { padding: 26px 20px; border-left: 1px solid var(--line); }
.facts-grid li:first-child { border-left: 0; padding-left: 0; }
.facts-grid strong { display: block; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: 1; color: #fff; }
.facts-grid span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid li { padding: 20px 16px; }
  .facts-grid li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-grid li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts-grid strong { font-size: 28px; }
}

/* MARK: Steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); counter-reset: step; }
.step {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step-media { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0e26; border-bottom: 1px solid var(--line); }
.step-media > img, .step-media > picture > img { width: 100%; height: 100%; object-fit: cover; }
.step-body { padding: 22px 24px 26px; }
.step-body h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.step-num {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(180deg, var(--yellow-hi), var(--yellow) 50%, var(--yellow-lo)); color: var(--ink);
  font-size: 24px; font-style: italic; box-shadow: inset 0 -3px 0 rgba(120, 70, 0, 0.3);
}
.step-body p { margin: 0; color: var(--muted); }
.step-body a { color: var(--blue-hi); }
/* Step 2: the poster on a wall. */
.media-wall {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 92px),
    radial-gradient(80% 90% at 50% 40%, #2a2f6b, #121540 70%);
}
.media-wall .poster { position: relative; width: 56%; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); border-radius: 2px; }
.media-wall .poster img { width: 100%; height: auto; border-radius: 2px; }
.media-wall .poster::before, .media-wall .poster::after {
  content: ""; position: absolute; top: -10px; width: 64px; height: 22px; background: rgba(255, 240, 200, 0.55); z-index: 1;
}
.media-wall .poster::before { left: -14px; transform: rotate(-32deg); }
.media-wall .poster::after { right: -14px; transform: rotate(30deg); }
.media-wall .wall-tag {
  position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgba(7, 9, 24, 0.75);
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow);
}
/* Step 4: the player's phone, held sideways. */
.media-phone {
  display: grid; place-items: center;
  background: radial-gradient(70% 90% at 30% 20%, rgba(47, 123, 255, 0.45), transparent 70%), radial-gradient(70% 90% at 80% 90%, rgba(255, 59, 74, 0.4), transparent 70%), #0d1030;
}
.phone {
  width: 84%; padding: 2.2% 2.6%; border-radius: 9% / 19%; background: #05060f;
  box-shadow: 0 0 0 2px #2b2f4d, 0 22px 50px rgba(0, 0, 0, 0.6);
}
.phone img { width: 100%; height: auto; border-radius: 5% / 11%; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .step-body h3 { font-size: 27px; } }

/* MARK: Modes */

.modes { margin-top: clamp(40px, 6vw, 64px); }
.modes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.modes-head h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 30px; text-transform: uppercase; }
.modes-head p { margin: 0; color: var(--muted); }
/* Five tiles: three across, the last row centred; two across on tablets, one on phones. */
.mode-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.mode { position: relative; flex: 1 1 300px; max-width: calc((100% - 32px) / 3); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: #0b0e26; }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mode-text { position: absolute; inset: auto 0 0 0; padding: 56px 16px 14px; background: linear-gradient(180deg, transparent, rgba(5, 6, 20, 0.94) 55%); }
.mode-text strong { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.mode-text span { display: block; margin-top: 5px; font-size: 15px; line-height: 1.35; color: #dfe4f5; }
.mode-text .tag { display: inline-block; margin-left: 6px; font-size: 17px; color: var(--yellow); white-space: nowrap; }
.modes-foot { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.modes-foot a { color: var(--blue-hi); }
@media (max-width: 1000px) { .mode { flex-basis: 260px; max-width: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .mode { flex-basis: 100%; max-width: 100%; } }

/* MARK: Store badges (docs/WEBSITE.md "Store badges"). The switch is the two :root lines at the top of this file.
   Live: the official badges at 40 px tall (Apple's onscreen minimum; Google's badge no smaller than the App Store's),
   the App Store badge first, at least a quarter of their height clear around them. Soon: a label in our own style. */

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 2px 0; }
.stores-label { margin: 0; flex-basis: 100%; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.store { display: inline-flex; }
.store-soon {
  display: var(--app-store-soon); align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: rgba(7, 9, 24, 0.55); color: #e8ecf8; font-size: 14px; font-weight: 600; line-height: 1.25;
}
.store-android .store-soon { display: var(--google-play-soon); }
.store-soon .icon { width: 18px; height: 18px; color: var(--yellow); stroke-width: 2.4; }
.store-live { display: var(--app-store-live); border-radius: 8px; line-height: 0; }
.store-android .store-live { display: var(--google-play-live); }
.store-live img { height: 40px; width: auto; }
.store-live:focus-visible { outline: 3px solid var(--yellow); outline-offset: 5px; }
.hero .stores { margin-top: 22px; }
.final .stores { justify-content: center; margin-top: 10px; }
.final .stores-label { max-width: none; margin: 0 0 2px; font-size: 15px; color: #e4e8f7; }
.page .stores { margin: 14px 0 8px; }
.footer-stores { margin-top: 20px; }
.footer-stores .stores-label { color: var(--faint); font-size: 14px; }
.footer-legal { margin: 18px 0 0; max-width: 980px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
@media (max-width: 560px) { .store-soon { font-size: 13px; } }

/* MARK: What you need */

.needs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.need { display: flex; flex-direction: column; padding: 22px 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.need .badge { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; background: rgba(47, 123, 255, 0.16); color: var(--cyan); border: 1px solid rgba(51, 230, 255, 0.25); }
.need .badge .icon { width: 26px; height: 26px; }
.need h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.25; }
.need h3 small { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.need p { margin: 0; color: var(--muted); font-size: 16px; }
.need .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 700; font-size: 15px; text-decoration: none; }
.need .more:hover { text-decoration: underline; }
.need .more .icon { width: 17px; height: 17px; }

/* MARK: Safety & privacy */

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pillar { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; }
.pillar-safety::before { background: linear-gradient(90deg, var(--yellow), #ff8a1a); }
.pillar-privacy::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.pillar h3 { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; }
.pillar > p { margin: 0 0 18px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ticks .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); }
.pillar-safety .ico { color: var(--yellow); }
.pillar-privacy .ico { color: var(--cyan); }
.ticks .ico .icon { width: 22px; height: 22px; }
.ticks strong { display: block; font-size: 17px; line-height: 1.3; }
.ticks span { display: block; color: var(--muted); font-size: 16px; line-height: 1.5; }
.pillar-links { margin: 22px 0 0; font-size: 15px; color: var(--faint); }
.pillar-links a { color: var(--blue-hi); }
.stop-callout {
  margin-top: clamp(16px, 2.4vw, 28px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255, 59, 74, 0.45);
  background: linear-gradient(120deg, rgba(225, 32, 44, 0.24), rgba(13, 16, 44, 0.9) 60%);
}
.stop-callout figure { margin: 0; height: 100%; }
.stop-callout img { width: 100%; height: 100%; object-fit: cover; }
.stop-callout .copy { padding: clamp(24px, 3.4vw, 44px); }
.stop-callout h3 { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); line-height: 0.95; text-transform: uppercase; }
.stop-callout p { margin: 0; color: #e0e5f5; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .stop-callout { grid-template-columns: 1fr; }
  .stop-callout figure { aspect-ratio: 16 / 9; }
}

/* MARK: Console showcase */

.console-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: clamp(20px, 3vw, 32px); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: #0b0e26; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feature-list .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 210, 26, 0.12); border: 1px solid rgba(255, 210, 26, 0.3); color: var(--yellow); }
.feature-list .ico .icon { width: 22px; height: 22px; }
.feature-list strong { display: block; font-size: 18px; line-height: 1.3; }
.feature-list span { display: block; color: var(--muted); font-size: 16px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.gallery li { margin: 0; }
.gallery figcaption { padding: 16px 4px 0; }
.gallery figcaption strong { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin-bottom: 6px; }
.gallery figcaption span { color: var(--muted); font-size: 16px; }
.gallery .shot-wrap { margin: 0; }
@media (max-width: 860px) {
  .console-feature { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* MARK: Benefits (landing pages) */

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { padding: 26px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.benefit .badge { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; background: rgba(255, 210, 26, 0.12); border: 1px solid rgba(255, 210, 26, 0.3); color: var(--yellow); }
.benefit .badge .icon { width: 26px; height: 26px; }
.benefit h3 { margin: 0 0 8px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.benefit p { margin: 0; color: var(--muted); }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .benefits { grid-template-columns: 1fr; } }

/* MARK: FAQ */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 700; font-size: 18px; line-height: 1.35; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 9px; background-color: rgba(255, 255, 255, 0.08);
  background-image: linear-gradient(var(--yellow), var(--yellow)), linear-gradient(var(--yellow), var(--yellow));
  background-size: 12px 2.5px, 2.5px 12px; background-position: center; background-repeat: no-repeat;
}
.faq details[open] summary::after { background-size: 12px 2.5px, 0 0; }
.faq summary:hover { background: rgba(255, 255, 255, 0.03); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--blue-hi); }
.faq .answer strong { color: var(--text); }

/* MARK: Final call to action */

.final { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 11vw, 140px) 0; text-align: center; }
.final-bg { position: absolute; inset: 0; z-index: -2; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 50% 50%, rgba(7, 9, 24, 0.62), rgba(7, 9, 24, 0.9)), linear-gradient(180deg, var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.final h2 { font-size: clamp(44px, 7vw, 84px); line-height: 0.92; margin: 0 auto 18px; max-width: 900px; text-wrap: balance; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }
.final p { max-width: 640px; margin: 0 auto 30px; font-size: 19px; color: #e4e8f7; }
.final .cta-row { justify-content: center; }
.final .cta-note a { color: var(--text); }

/* MARK: Footer */

footer.site-footer { margin: 0; padding: 48px 0 40px; border-top: 1px solid var(--line); background: #05060f; font-size: 15px; opacity: 1; color: var(--faint); }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-top p { margin: 10px 0 0; max-width: 340px; }
.site-footer .footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
.site-footer .footer-links li { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom p { margin: 0; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--text); text-decoration: underline; }

/* MARK: Cookie notice (marketing pages; built by site.js). Both answers carry the same weight. */

.consent {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; width: min(420px, calc(100% - 32px));
  padding: 20px 20px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(30, 36, 92, 0.97), rgba(13, 16, 44, 0.98)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  color: var(--text); font-size: 15px; line-height: 1.5;
}
.consent-title { margin: 0 0 6px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; }
.consent-title:focus { outline: none; }
.consent-title:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.consent p { margin: 0 0 14px; color: var(--muted); }
.consent a { color: var(--blue-hi); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn {
  min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.4); cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--text); font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase;
}
.consent-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 560px) { .consent { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px 16px 14px; } }

/* MARK: Languages (docs/WEBSITE.md "Languages"). scripts/site-l10n.py writes the menu, the footer list and the
   translated pages; each page's <html lang> picks its type here. */

.lang-menu { position: relative; }
.site-header .lang-menu > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
}
.site-header .lang-menu > summary::-webkit-details-marker { display: none; }
.site-header .lang-menu > summary:hover, .site-header .lang-menu[open] > summary { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.site-header .lang-menu > summary .icon { width: 20px; height: 20px; }
.site-header .lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow);
}
.site-header .lang-menu li { margin: 0; }
.site-header .lang-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.site-header .lang-menu a:hover { background: rgba(255, 255, 255, 0.08); }
.site-header .lang-menu a[aria-current] { color: var(--yellow); }
@media (max-width: 560px) {
  /* A phone: the menu spans the screen under the header, two languages a row. */
  .site-header .lang-menu > summary { padding: 0 8px; }
  .site-header .lang-menu ul { position: fixed; top: calc(var(--header-h) + 6px); left: 12px; right: 12px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
}

.lang-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; font-size: 14px; }
.lang-list .icon { width: 17px; height: 17px; color: var(--faint); }
.site-footer .lang-list a[aria-current], .page .lang-list a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.page main > .lang-list { margin-top: 12px; opacity: 0.8; }

/* The translated privacy policy and terms: the English version prevails. */
.page .translation-note {
  margin: -10px 0 24px; padding: 10px 14px; border-left: 3px solid var(--yellow); border-radius: 0 10px 10px 0;
  background: #ffffff0d; color: var(--muted); font-size: 15px;
}

/* Vietnamese: the full Barlow Condensed (top of this file) for all display type. */
:root:lang(vi) { --display: "Barlow Condensed Full", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif; }
/* Chinese and Korean: Barlow Condensed for Latin letters and digits, then the platforms' own CJK fonts (Apple, Windows,
   Android / Noto) for the text, upright: CJK type is never slanted. */
:root:lang(zh-Hans) { --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC"; }
:root:lang(zh-Hant) { --cjk: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC"; }
:root:lang(ko) { --cjk: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", "Source Han Sans K"; }
:root:is(:lang(zh-Hans), :lang(zh-Hant), :lang(ko)) {
  --display: "Barlow Condensed", var(--cjk), sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, var(--cjk), "Helvetica Neue", Arial, sans-serif;
  font-synthesis: weight;
}
/* Stacked Vietnamese capitals and full-height CJK characters need more room between lines than English capitals. */
:is(:lang(vi), :lang(zh), :lang(ko)) :is(.display, .page h1, .page h2, .btn, .step-body h3, .mode-text strong, .facts-grid strong,
  .pillar h3, .stop-callout h3, .gallery figcaption strong, .benefit h3, .consent-title) { line-height: 1.18; }
:is(:lang(zh), :lang(ko)) :is(.kicker, .join-kicker, .join-code-label) { letter-spacing: 0.04em; }
/* Korean headings break between words (at spaces), as Korean is set. */
:lang(ko) :is(h1, h2, h3, .display) { word-break: keep-all; overflow-wrap: break-word; }
/* Long German and Dutch compounds break with a hyphen, not off the edge of a phone. */
:is(:lang(de), :lang(nl)) :is(h1, h2, h3, .display, .btn) { hyphens: auto; overflow-wrap: break-word; }
