/* High Riders website. One stylesheet for every page, both languages. No external fonts or CDNs. */

/* Saira Condensed (SIL OFL 1.1, The Saira Project Authors), the game's UI face; unmodified TTFs, see assets/fonts/OFL.txt.
   The game sets it slanted; there is no italic face, so the browser slants it (font-synthesis). */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/SairaCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/SairaCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #120e0d;
  --bg-2: #1a1412;
  --plate: #221a18;
  --plate-2: #2b211e;
  --line: #3d302b;
  --red: #c42912;
  --red-hi: #dc3a20;
  --red-text: #ec452d;      /* the brand red's hue, lighter: only for small text. 4.99:1 on --bg, 5.19:1 on the hero's
                               #0b0807, 4.44:1 on --plate (so no small red text sits on plates) */
  /* --red #c42912: buttons, rules, marks and large display text: 3.36:1 on --bg, 3.49:1 on #0b0807 (>= 3:1 for large
     text); white on --red 5.72:1. */
  --cream: #f4efe0;
  --muted: #c3b9a6;
  --white: #ffffff;
  --display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cut: 14px;
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--white); text-decoration-color: var(--cream); }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--cream); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Display type: condensed, heavy, slanted, upper case like the game UI. */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-synthesis: style;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
  margin: 0;
}
h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
h3 { font-size: 1.45rem; }
.kicker {
  font-family: var(--display); font-weight: 600; font-style: italic; font-synthesis: style;
  text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--red-text); margin: 0 0 .5rem;
}
.lede { color: var(--muted); font-size: 1.125rem; max-width: 46rem; margin: 1rem 0 0; }

/* Cut-corner plates (the game's .plate.cut). */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);   /* viewport-fit=cover: the bar also covers the status-bar area */
  background: rgba(18, 14, 13, .92);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .site-header { background: rgba(18, 14, 13, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* Home page: the header lies over the hero art. Transparent (with a soft dark scrim for the logo and links) at the top
   of the page, solid once scrolled (site.js adds .is-solid). Without JavaScript (no html.js) it stays solid. */
.site-header.over-hero { position: fixed; left: 0; right: 0; top: 0; }
html.js .site-header.over-hero:not(.is-solid) {
  background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
html.js .site-header.over-hero:not(.is-solid) .nav a { color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
html.js .site-header.over-hero:not(.is-solid) .nav a.nav-social img { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .75)); }
section[id] { scroll-margin-top: calc(85px + env(safe-area-inset-top)); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
/* Wide screens: the bar spans the window with the same side padding as the hero text (which hugs the left there),
   so the logo lines up with the headline; the page content below stays in the centred column. */
@media (min-width: 900px) {
  .site-header .wrap { max-width: none; padding-left: clamp(24px, 6vw, 150px); padding-right: clamp(24px, 6vw, 150px); }
}
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { width: 84px; height: auto; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--display); font-weight: 600; font-style: italic; font-synthesis: style;
  text-transform: uppercase; letter-spacing: .06em; font-size: .98rem;
  text-decoration: none; padding: 10px 10px; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav .nav-hide-sm { display: none; }
@media (max-width: 419px) { .nav .nav-hide-xs { display: none; } }
/* Instagram / TikTok glyphs (local white SVGs): icon-only links, 40x40 tap target, placed before the Discord button */
.nav a.nav-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; }
.nav-social img { display: block; width: 20px; height: 20px; opacity: .85; transition: opacity .15s ease; }
.nav a.nav-social:hover img, .nav a.nav-social:focus-visible img { opacity: 1; }
.nav a.nav-social:focus-visible { outline: 3px solid var(--cream); outline-offset: 0; border-radius: 8px; }
@media (min-width: 760px) {
  .nav .nav-hide-sm { display: inline-block; }
  .brand img { width: 96px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 10px 26px 10px 22px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-style: italic; font-synthesis: style;
  text-transform: uppercase; letter-spacing: .03em; font-size: 1.25rem; line-height: 1.05;
  background: var(--red); color: var(--white); border: 0;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn:hover { background: var(--red-hi); color: var(--white); }
.btn small { display: block; font-size: .78rem; letter-spacing: .12em; font-weight: 600; opacity: .95; }
/* Official store badges (unmodified artwork in assets/brand/). The App Store badge is shown 48 px tall; the Google Play PNG
   has about 41 px of transparent padding on each side, so it is shown 72 px tall with -12 px margins on all sides and the
   visible badge lines up with the Apple one on one row. Without a URL the badge is a non-link span; site.js turns it into a link once config.js has one. */
.store-buttons { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; margin-top: 22px; }
.store-badge[hidden] { display: none; }
.store-badge { display: block; line-height: 0; flex: 0 0 auto; }
.store-badge img { display: block; height: 48px; width: auto; max-width: none; }
.store-badge-gp { margin: -12px; }
.store-badge-gp img { height: 72px; }
a.store-badge:focus-visible, a.nav-discord:focus-visible, a.discord-btn:focus-visible, a.social-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.store-badge[aria-disabled="true"] { cursor: default; }

/* Discord: official-style button (blurple #5865F2, white text). Non-link until config.js has discordUrl. */
.discord-btn, .site-header .nav a.nav-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #5865f2; color: #fff; border-radius: 8px; text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.1; text-shadow: none;
}
.discord-btn { min-height: 48px; padding: 12px 22px; }
a.discord-btn:hover, .site-header .nav a.nav-discord:hover { background: #4752c4; color: #fff; }
.discord-btn[aria-disabled="true"] { cursor: default; }
.discord-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.site-header .nav a.nav-discord, html.js .site-header.over-hero:not(.is-solid) .nav a.nav-discord {
  min-height: 44px; margin-left: 8px; color: #fff; text-shadow: none; text-transform: none; letter-spacing: 0; font-style: normal;
}
/* Discord symbol (official white, 64x48, never recoloured/distorted): clear space is at least 1/3 of its 18px height */
.discord-btn img, .nav-discord img { display: block; width: 24px; height: 18px; flex: none; }
.site-header .nav a.nav-discord { min-width: 44px; padding: 8px 10px; }
@media (min-width: 900px) {
  .site-header .nav a.nav-discord { padding: 8px 16px; }
  .site-header .nav a.nav-discord .nav-discord-label {
    position: static !important; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap;
  }
}
html.js .site-header.over-hero:not(.is-solid) .nav a.nav-discord { box-shadow: 0 2px 10px rgba(0, 0, 0, .45); }

/* ---------- hero ---------- */
/* The art starts at the very top of the page (under the fixed header and, on iPhone, the status bar). Phones and
   tablets: the art, then the text on the dark ground below it. Desktop: the text over the bottom-left of the art. */
.hero { position: relative; background: #0b0807; }
.hero-media { position: relative; margin: 0; }
.hero-media::before {  /* top scrim: keeps the logo and links readable where the header lies over the art */
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; pointer-events: none;
  height: calc(150px + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(5, 3, 3, .6) 0%, rgba(5, 3, 3, .42) 32%, rgba(5, 3, 3, .2) 62%,
    rgba(5, 3, 3, .06) 85%, rgba(5, 3, 3, 0) 100%);
}
.hero-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 600px) { .hero-media img { aspect-ratio: 16 / 10; object-position: 50% 35%; } }
.hero-body { position: relative; padding: 18px 0 40px; }
.hero-body::before {  /* fades the art into the page on phones */
  content: ""; position: absolute; left: 0; right: 0; top: -90px; height: 90px;
  background: linear-gradient(to bottom, rgba(11, 8, 7, 0), #0b0807);
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.3rem, 9.5vw, 4.4rem); max-width: 17ch; }
.hero h1 .accent { color: var(--red); }
.hero .pitch { font-size: 1.15rem; color: var(--cream); max-width: 36rem; margin: 14px 0 0; }

@media (min-width: 900px) {
  /* svh = the viewport with the browser's toolbars shown, so the buttons are never under a toolbar; vh is the fallback */
  .hero { min-height: max(620px, min(100vh, 1000px)); display: flex; align-items: center; overflow: hidden; }
  @supports (height: 100svh) { .hero { min-height: max(620px, min(100svh, 1000px)); } }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { height: 100%; }
  .hero-media::after {  /* the picture is already dark on the left: only a light extra shade behind the text, none on the right */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(11, 8, 7, .35) 0%, rgba(11, 8, 7, .18) 32%, rgba(11, 8, 7, 0) 48%);
  }
  .hero .kicker, .hero h1, .hero .pitch { text-shadow: 0 2px 14px rgba(0, 0, 0, .75); }
  .hero-media img { aspect-ratio: auto; object-position: 100% 0%; transform-origin: 100% 0; }
  /* centred in the space under the 78 px header; the text hugs the left, in the dark part of the picture */
  .hero-body { padding: calc(78px + 32px) 0 48px; width: 100%; }
  .hero-body::before { display: none; }
  .hero-body .wrap { max-width: none; margin: 0; padding-left: clamp(24px, 6vw, 150px); padding-right: var(--gutter); }
  .hero-body .kicker, .hero h1, .hero .pitch, .hero .store-buttons { max-width: min(36rem, 34vw); }
  .hero h1 { font-size: clamp(2.2rem, 4.1vw, 4.4rem); }
}

/* Wide screens that are not very flat: enlarge the hero art from its top-right corner, so the empty ground at the
   bottom is cropped while the hero still fills the screen. Flatter screens already crop the bottom by themselves. */
@media (min-width: 1200px) and (max-aspect-ratio: 17/10) {
  .hero-media img { transform: scale(1.14); }
  .hero-body .kicker, .hero h1, .hero .pitch, .hero .store-buttons { max-width: min(36rem, 31vw); }
  .hero h1 { font-size: clamp(2.1rem, 3.8vw, 4.2rem); }
}

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 34px; }

/* community band: one dark cut-corner panel (blurple accent on the left edge). Text column: heading, three points, the
   large Discord button, a small social line. From 960px the snow artwork lies behind the text as the panel background
   (right 68 %, fading into the panel colour on its left); below that it is a 16:7 strip on top, fading into the panel
   at its bottom edge. */
.community { padding: 56px 0; }
.community-panel {
  --plate: #040a1f;  /* the night-blue of the artwork's dark left side, so panel and picture read as one surface */
  position: relative; overflow: hidden; background: var(--plate); box-shadow: inset 3px 0 0 #5865f2;
}
.community-art { position: relative; aspect-ratio: 16 / 7; overflow: hidden; }
.community-art picture, .community-art img { display: block; width: 100%; height: 100%; }
.community-art img { object-fit: cover; object-position: 60% 70%; }
.community-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--plate) 0%, rgba(4, 10, 31, 0) 25%);
}
.community-text { padding: 22px 22px 28px 25px; }
.community-text .kicker { margin-top: 0; }
.community-text h2 { margin-bottom: 0; }
.community-points { list-style: none; margin: 22px 0 0; padding: 0; }
.community-points li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.community-points li:first-child { padding-top: 0; border-top: 0; }
.community-points li:last-child { padding-bottom: 0; }
.community-points strong {
  display: block; font-family: var(--display); font-weight: 700; font-style: italic; font-synthesis: style;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; line-height: 1.2; color: var(--cream); white-space: nowrap;
}
.community-points strong::before {
  content: ""; display: inline-block; width: 14px; height: 5px; margin-right: 10px; background: var(--red);
  transform: skewX(-20deg); vertical-align: .2em;
}
.community-points span { display: block; margin: 4px 0 0 24px; color: var(--muted); font-size: 1rem; }
.community-panel .discord-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.community-panel .discord-btn { display: flex; flex: 1 1 100%; min-height: 56px; padding: 0 26px; font-size: 1.1rem; }
.community-panel .discord-btn img { width: 28px; height: 21px; }
/* Instagram / TikTok: secondary buttons next to the Discord one (50/50 on the row below it on phones) */
.social-btn {
  display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32); border-radius: 8px; color: var(--cream); text-decoration: none;
  font-family: var(--body); font-weight: 700; font-size: 1.1rem; line-height: 1.1;
}
.social-btn:hover, .social-btn:focus-visible { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .55); color: var(--cream); }
.social-btn img { display: block; width: 24px; height: 24px; flex: none; opacity: 1; }
/* icon-only at every width: three labelled buttons do not fit a phone row */
.community-panel .social-btn .social-label { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.social-btn { padding: 0; }
/* 760px: button row (round social buttons) and the points list (term | text grid) */
@media (min-width: 760px) {
  .community-points li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
  .community-points span { margin: 0; }
  .community-panel .discord-cta { flex-wrap: nowrap; align-items: center; }
  .community-panel .discord-btn { display: inline-flex; flex: 0 0 auto; }
  .social-btn { flex: 0 0 56px; width: 56px; height: 56px; padding: 0; justify-content: center; }
}
/* Below 1200 px the art is a strip on top of the panel (the text would run into the green truck otherwise). */
@media (min-width: 760px) { .community-art { aspect-ratio: 21 / 8; } .community-art img { object-position: 60% 64%; } }
/* 1200px: art behind the text. Panel 1140 px: art box 775 x 370, image 775 x 517 (cover), trucks y 37-78 %.
   Green truck starts at 32 % + 0.27 x 68 % = 50.4 % of the panel; the text block (and the points list) ends before it. */
@media (min-width: 1200px) {
  .community-panel { display: flex; align-items: center; min-height: 340px; }
  .community-art { position: absolute; top: 0; right: 0; bottom: 0; width: 68%; aspect-ratio: auto; }
  .community-art img { object-position: 100% 56%; }
  .community-art::after { background: linear-gradient(to right, var(--plate) 0%, rgba(4, 10, 31, .55) 22%, rgba(4, 10, 31, 0) 48%); }
  .community-text { position: relative; z-index: 1; max-width: 54%; padding: 40px 32px 40px 47px; }
  .community-points { max-width: calc(100% - 24px); }
}

/* trailer: a full-bleed, frameless band right after the hero. Muted loop that plays while it is on screen; the sound
   button turns the sound on. The video keeps its own black letterbox bars, which merge with the pure black band. */
.trailer-band { position: relative; background: #000; overflow: hidden; }
.trailer-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.trailer-sound, .trailer-fallback { position: absolute; z-index: 2; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 28px; }
.trailer-sound {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 8px 24px 8px 22px; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-style: italic; font-synthesis: style; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.05rem; line-height: 1.05;
  background: rgba(18, 14, 13, .82); color: var(--white); border: 0; box-shadow: inset 0 0 0 2px var(--red);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.trailer-sound:hover { background: var(--red); }
.trailer-sound[aria-pressed="true"] { background: var(--red); }
.trailer-sound[aria-pressed="true"]:hover { background: var(--red-hi); }
.trailer-sound:focus-visible { outline-offset: -6px; }  /* the cut corners would clip an outer ring */
html:not(.js) .trailer-sound { display: none; }
@media (min-width: 600px) {
  .trailer-sound, .trailer-fallback { bottom: 36px; }
}

/* feature rows: picture + text. All pictures are shown 16:9 (object-fit: cover, focus set per picture). */
.feature-rows { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
.feature-row { display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.feature-row > *, .maps > *, .feature-extras > * { min-width: 0; }
.feature-row figure { margin: 0; aspect-ratio: 16 / 9; background: var(--plate); overflow: hidden; }
.feature-row img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-row img.pos-start { object-position: 40% 50%; }    /* kanyon start line: trucks and HUD */
.feature-row img.pos-center { object-position: 50% 50%; }   /* combat frame is already 16:9 */
.feature-row img.pos-garage { object-position: 50% 100%; }  /* garage: truck and the paint swatches (bottom 360 of 425 px) */
.feature-row h3 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); }
.feature-row p { color: var(--muted); margin: 12px 0 0; max-width: 30rem; }
.feature-row .kicker { margin: 0; }
@media (min-width: 860px) {
  .feature-rows { gap: 56px; }
  .feature-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; }
  .feature-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .feature-row.flip figure { order: 2; }
}

/* extra features: plain four-column row, same look as .community-points (no boxes) */
.feature-extras {
  list-style: none; margin: 56px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .08);
  display: grid; gap: 22px 32px; grid-template-columns: minmax(0, 1fr);
}
.feature-extras strong {
  display: block; font-family: var(--display); font-weight: 700; font-style: italic; font-synthesis: style;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; line-height: 1.2; color: var(--cream);
}
.feature-extras strong::before {
  content: ""; display: inline-block; width: 14px; height: 5px; margin-right: 10px; background: var(--red);
  transform: skewX(-20deg); vertical-align: .2em;
}
.feature-extras span { display: block; margin: 6px 0 0 24px; color: var(--muted); font-size: 1rem; }
@media (min-width: 620px) { .feature-extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feature-extras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* maps */
.maps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding: 0; margin: 0; list-style: none; }
.map { position: relative; background: var(--plate); overflow: hidden; }
.map img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.map .map-text { padding: 16px 20px 20px; }
.map h3 { font-size: 2rem; }
.map p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 900px) { .maps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { background: var(--plate); margin: 0 0 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 700; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 800 1.6rem/1 var(--display); color: var(--red-text);  /* a mark, 4.44:1 on the plate */
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 .7em; }

/* CTA band */
.cta { background: var(--red); color: var(--white); padding: 54px 0; }
.cta h2 { color: var(--white); }
.cta p { margin: 10px 0 0; max-width: 40rem; }

/* ---------- documents (support, legal) ---------- */
.doc-hero { padding: 48px 0 18px; border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, var(--bg-2), var(--bg)); }
.doc-hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
.doc-hero .meta { color: var(--muted); margin: 12px 0 0; font-size: .98rem; }
.doc { padding: 36px 0 72px; }
.doc .wrap { display: grid; gap: 32px; }
.doc-body { max-width: 760px; min-width: 0; }
.doc-body h2 { font-size: clamp(1.7rem, 5vw, 2.2rem); margin: 2.2rem 0 .8rem; scroll-margin-top: 93px; }
.doc-body h3 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; scroll-margin-top: 93px; }
.doc-body p, .doc-body li { color: #e3dccb; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; }
.doc-body li { margin: .3rem 0; }
.doc-body strong { color: var(--cream); }
.doc-body code, .doc-body kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em;
  background: var(--plate-2); padding: 1px 6px; border-radius: 3px; color: var(--cream);
}
.game-text {  /* a message exactly as the game shows it */
  font-family: var(--display); font-weight: 800; font-style: italic; font-synthesis: style; letter-spacing: .03em;
  background: var(--plate-2); padding: 1px 8px; color: var(--cream); white-space: normal;
}
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.doc-body table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .96rem; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-body th { font-family: var(--display); font-style: italic; font-synthesis: style; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--cream); background: var(--plate); }
.callout { background: var(--plate); border-left: 4px solid var(--red); padding: 16px 18px; margin: 1.2rem 0; }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 2px 52px; margin: 0 0 16px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 34px; display: grid; place-items: center;
  background: var(--red); color: var(--white); font: 800 1.2rem/1 var(--display); font-style: italic; font-synthesis: style;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.toc { background: var(--plate); padding: 18px 20px; align-self: start; }
.toc h2 { font-size: 1.1rem; letter-spacing: .08em; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .96rem; }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--cream); text-decoration: underline; }
@media (min-width: 1000px) {
  .doc .wrap { grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; }
  .toc { position: sticky; top: 84px; order: 2; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 52px; background: #0d0a09; color: var(--muted); font-size: .96rem; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { width: 120px; }
.footer-brand p { margin: 12px 0 0; max-width: 26rem; }
.footer-links { display: grid; gap: 4px 28px; grid-template-columns: 1fr 1fr; padding: 0; margin: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 7px 0; color: var(--cream); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal-small { margin: 28px 0 0; font-size: .86rem; color: #a89f8e; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound h1 { font-size: clamp(4rem, 20vw, 9rem); color: var(--red); }
.notfound p { color: var(--muted); }
.notfound .btn { margin: 8px 6px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================================================
   PLACEHOLDERS NOT FILLED YET. A sentence that needs a value we do not have yet is written twice:
     <span class="ph-set" data-ph="SUPPORT_EMAIL">… SUPPORT_EMAIL …</span><span class="ph-unset">neutral sentence</span>
   While the HTML still contains the token, the rules below hide the first and show the second. Filling a token (the
   sed command in web/site.config.md, which edits *.html only, never this file) changes data-ph too, so these
   selectors stop matching and the real text appears. Keep the token names here as they are.
   ===================================================================================================== */
.ph-unset { display: none; }
[data-ph="SUPPORT_EMAIL"], [data-ph="POSTAL_ADDRESS"], [data-ph="GOVERNING_LAW"], [data-ph="EFFECTIVE_DATE"],
[data-ph="HOSTING_LOCATION"] { display: none !important; }
[data-ph="SUPPORT_EMAIL"] + .ph-unset, [data-ph="POSTAL_ADDRESS"] + .ph-unset, [data-ph="GOVERNING_LAW"] + .ph-unset,
[data-ph="EFFECTIVE_DATE"] + .ph-unset, [data-ph="HOSTING_LOCATION"] + .ph-unset { display: inline; }

