/* oki-games.com landing page.
   Tokens follow website/css/site.css (monochrome dark) plus ONE racing accent.
   Headings: the racing game's garage style (system-ui italic 900, uppercase, wide tracking).
   No web fonts, no external requests. Mobile first. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --bg-3: #161616;
  --fg: #e8e8e8;
  --dim: #8a8a8a;
  --faint: #555;
  --line: #262626;
  --line-2: #333;
  --hi: #fff;
  --accent: #ff5a1f;          /* "OKI orange" — the single racing accent */
  --on-accent: #0a0a0a;       /* 6.7:1 on the accent */
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: clamp(24px, 4vw, 48px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shared bits ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px;
  font: italic 800 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; flex: none; width: 34px; height: 6px;
  background: var(--accent); transform: skewX(-24deg);
}
.h2 {
  margin: 0 0 22px;
  font: italic 900 clamp(2.4rem, 9vw, 5rem)/.94 var(--sans);
  letter-spacing: .05em; text-transform: uppercase; color: var(--hi);
}
.lead { margin: 0 0 32px; max-width: 34em; color: #c9c9c9; font-size: clamp(1.02rem, .9rem + .5vw, 1.2rem); }

/* Skewed racing button; the skew lives on ::before so text and focus ring stay upright */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px;
  font: italic 900 15px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--on-accent);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent); transform: skewX(-14deg);
  box-shadow: 0 10px 40px -10px rgb(255 90 31 / .6);
  transition: background-color .2s, transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover::before { background: #ff6d38; transform: skewX(-14deg) scale(1.03); }
.btn:active::before { transform: skewX(-14deg) scale(.98); }
.btn--xl { min-height: 64px; padding: 0 42px; font-size: 17px; }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--dim); font-size: 15px; text-decoration: underline; text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.textlink:hover { color: var(--fg); text-decoration-color: currentColor; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }

/* ---------- 1. scroll-scrubbed hero ---------- */
.cine { position: relative; height: 100vh; height: 100lvh; background: #000; }
.cine-on .cine { height: 400vh; height: 400lvh; }
@media (max-aspect-ratio: 3/4) { .cine-on .cine { height: 300vh; height: 300lvh; } }

/* lvh: iOS toolbars never resize the stage */
.cine__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: #050505; }
.cine__poster, .cine__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block;
}
.cine__canvas { opacity: 0; }   /* the poster stays underneath, never hidden (LCP) */
.cine__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / .5), transparent 20%),
    linear-gradient(to top, rgb(0 0 0 / .82), rgb(0 0 0 / .32) 34%, transparent 58%),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgb(0 0 0 / .35));
}

.top {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
}
.top__skip {
  display: none; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: rgb(0 0 0 / .35);
  font: italic 800 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--hi);
  transition: border-color .2s, background-color .2s;
}
.top__skip:hover { border-color: var(--accent); background: rgb(0 0 0 / .6); }
.cine-on .top__skip { display: inline-flex; }
.top__r { display: flex; align-items: center; gap: 10px; min-width: 0; }
@media (max-width: 420px) { .cine-on .top__skip { padding: 0 12px; letter-spacing: .12em; } }

/* svh box: the copy never sits under the mobile toolbar */
.cine__copy {
  position: absolute; inset: 0 0 auto; z-index: 2;
  height: 100vh; height: 100svh;
  display: grid; align-content: end; gap: 22px;
  padding: 0 var(--gutter) max(9svh, 52px);
  pointer-events: none;
}
.cine__t { margin: 0; max-width: 60rem; pointer-events: auto; }
.cine-on .cine__copy > .cine__t { grid-area: 1 / 1; align-self: end; }

.cine__kicker {
  margin: 0 0 14px;
  font: italic 800 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgb(255 255 255 / .78);
}
/* Always two stacked lines (OKI / GAMES); sized by width AND height so short landscape screens fit */
.cine__h1 {
  margin: 0;
  font: italic 900 clamp(3rem, min(19vw, 15vh), 9.5rem)/.86 var(--sans);
  font-size: clamp(3rem, min(19vw, 15svh), 9.5rem);
  letter-spacing: .08em; text-transform: uppercase; color: var(--hi);
  text-shadow: 0 4px 40px rgb(0 0 0 / .45);
}
.cine__h1 span { display: block; }
.cine__h1 span:first-child { color: var(--accent); }
.cine__cue {
  display: none; align-items: center; gap: 12px; margin: 26px 0 0;
  font: italic 800 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgb(255 255 255 / .7);
}
.cine__cue::after {
  content: ''; width: 64px; height: 2px; background: currentColor;
  transform-origin: 0 50%; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.cine-on .cine__cue { display: flex; }

.cine__t--b {
  font: italic 900 clamp(2.3rem, 10vw, 5.6rem)/.96 var(--sans);
  letter-spacing: .04em; text-transform: uppercase; color: var(--hi);
  text-shadow: 0 4px 40px rgb(0 0 0 / .45);
}
.cine__t--b em { font-style: inherit; color: var(--accent); }
.cine__t--c { display: grid; justify-items: start; gap: 16px; }
.cine__t--c .btn { min-height: 64px; padding: 0 44px; font-size: 18px; margin-left: 8px; }
.cine__note {
  margin: 0; font: italic 800 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .75);
}

.cine__bar {
  display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
.cine-on .cine__bar { display: block; }

/* No cine-on (reduced motion, Save-Data, no JS): a static 100lvh hero with everything visible */
html:not(.cine-on) .cine__t { opacity: 1 !important; animation: none !important; }

/* Fallback (Firefox release, older Safari): cine.js writes --p (0..1). Opacity outside 0..1 clamps. */
.cine-on .cine__t--a { opacity: calc(1 - var(--p, 0) * 6); }
.cine-on .cine__t--b { opacity: calc(min((var(--p, 0) - .28) * 9, (.70 - var(--p, 0)) * 9)); }
.cine-on .cine__t--c { opacity: calc((var(--p, 0) - .78) * 9); }
/* invisible cards must not catch taps; cine.js sets data-act from the raw scroll position */
.cine-on .cine__t { pointer-events: none; }
.cine-on .cine[data-act="a"] .cine__t--a,
.cine-on .cine[data-act="c"] .cine__t--c { pointer-events: auto; }
.cine-on .cine__t:focus-within { opacity: 1 !important; }

@supports (animation-timeline: view()) {   /* compositor-threaded in Chrome and Safari 26.4+ */
  .cine-on .cine { view-timeline: --cine block; }
  .cine-on .cine__t, .cine-on .cine__bar { animation: linear both; animation-timeline: --cine; }
  .cine-on .cine__t--a { animation-name: cine-out; animation-range: contain 0% contain 17%; }
  .cine-on .cine__t--b { animation-name: cine-inout; animation-range: contain 26% contain 72%; }
  .cine-on .cine__t--c { animation-name: cine-in; animation-range: contain 78% contain 90%; }
  .cine-on .cine__bar { animation-name: cine-bar; animation-range: contain 0% contain 100%; }
}
@keyframes cine-out { from { opacity: 1; } to { opacity: 0; transform: translateY(-5svh); } }
@keyframes cine-in { from { opacity: 0; transform: translateY(5svh); } to { opacity: 1; transform: none; } }
@keyframes cine-inout {
  0% { opacity: 0; transform: translateY(4svh); }
  22%, 78% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4svh); }
}
@keyframes cine-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 900px) {
  .cine__copy { padding-bottom: max(11svh, 64px); }
  .cine__kicker { font-size: 12px; }
}

/* ---------- 2. the game ---------- */
.game { position: relative; padding: clamp(72px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); background: var(--bg); }
.game::before {               /* the garage's skewed livery stripe, as a section opener */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent) 0 22%, transparent 22% 24%, var(--line-2) 24% 100%);
}
.game__grid { display: grid; gap: 48px; align-items: center; margin-top: clamp(12px, 2vw, 28px); }
.game__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-left: 8px; }
/* Install as an app: the Play button's skew as a thin outline, shown only when the browser offers it (install.js) */
.btn-install {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  font: italic 900 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); background: none; border: 0; cursor: pointer;
}
.btn-install::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border: 1.5px solid var(--accent); transform: skewX(-14deg); transition: background-color .2s;
}
.btn-install:hover::before { background: rgb(255 90 31 / .12); }
.btn-install[hidden] { display: none; }
/* where the browser has no install prompt, "Install app" unfolds one line of steps for it (install.js) */
.install-howto { margin: 14px 0 0; padding-left: 8px; max-width: 46ch; font-size: 14px; color: var(--fg); }
.install-howto b { color: var(--hi); }
.install-howto[hidden] { display: none; }
@media (min-width: 960px) {
  .game__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 64px; }
}

.shot {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--bg-3); border: 1px solid var(--line);
}
.shot__vid { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(0 0 0 / .55), transparent 45%);
}
.shot:hover .shot__vid { transform: scale(1.035); }
.shot__cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font: italic 800 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .8);
}

.specs {
  list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.specs li { display: flex; flex-direction: column; min-width: 0; padding: 26px 22px 28px; background: var(--bg-2); }
.spec__k { font: italic 900 clamp(1.7rem, 5vw, 2.2rem)/1.05 var(--sans); letter-spacing: .02em; color: var(--hi); overflow-wrap: anywhere; }
.spec__h {
  margin: 14px 0 8px;
  font: italic 800 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.spec__p { color: var(--dim); font-size: 15px; line-height: 1.55; }
@media (min-width: 600px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  /* nine USPs (rico 2026-10-06, + slipstream, adrenaline): 3 x 3 */
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs li:last-child:nth-child(odd) { grid-column: auto; }
}

/* ---------- the protoseum (rico 2026-10-06): lowkey, small type, no imagery ---------- */
/* Donate (rico 2026-10-06): one sentence + an outlined button, so it never competes with Play now */
.donate { padding: clamp(40px, 6vw, 64px) 0; border-top: 1px solid var(--line); background: var(--bg); }
.donate__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.donate__h { margin: 0 0 8px; font: italic 900 clamp(1.7rem, 5vw, 2.2rem)/1.05 var(--sans); color: var(--hi); }
.donate__p { margin: 0; max-width: 34em; color: #c9c9c9; }
/* PayPal's own button look (gold pill, blue wordmark), drawn in CSS: nothing loads from PayPal before the click */
.pp {
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 30px; border-radius: 26px;
  background: #ffc439; color: #111; text-decoration: none; font: 600 16px/1 Helvetica, Arial, sans-serif;
  transition: filter .15s;
}
.pp:hover { filter: brightness(.95); }
.pp:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pp__w { font: italic 800 21px/1 Verdana, Helvetica, Arial, sans-serif; letter-spacing: -.02em; }
.pp__w b { font-weight: 800; color: #003087; }
.pp__w i { color: #009cde; }
.museum { padding: 40px 0 48px; border-top: 1px solid var(--line); background: var(--bg); }
.museum__h { margin: 0 0 4px; font: italic 800 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); }
.museum__p { margin: 0 0 8px; color: var(--dim); font-size: 13px; }
.museum__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.museum__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; min-width: 0; }
.museum__list .textlink { font-size: 14px; }
.museum__note { color: var(--dim); font-size: 12px; opacity: .75; }

/* ---------- 3. comments (widget lives in okc.css / okc.js) ---------- */
.talk { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.talk__in { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.talk__in > * { max-width: 780px; }   /* reading column, left edge on the page grid */
body .okc {          /* theme hooks the widget exposes; body raises specificity over okc.css defaults */
  --okc-bg: var(--bg-2);
  --okc-card: var(--bg-3);
  --okc-line: var(--line);
  --okc-fg: var(--fg);
  --okc-dim: var(--dim);
  --okc-accent: var(--accent);
  --okc-danger: #ff5d5d;
}
body .okc :is(input, textarea, select) { font-size: max(16px, 1em); }   /* iOS: no zoom on focus */

/* ---------- 4. footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.brand--foot { gap: 10px; font: italic 900 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--hi); }
.brand--foot img { width: 28px; height: 28px; }
.foot__copy { margin: 0; color: var(--dim); font-size: 14px; }
.foot__friends { margin: 0; color: var(--dim); font-size: 14px; }
.foot__friends a { color: var(--fg); text-underline-offset: 4px; }
.foot__nav { display: flex; gap: 4px; margin-left: -10px; }
.foot__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--dim); font-size: 14px; text-decoration: none;
}
.foot__nav a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .foot__nav { margin-left: 0; } }
.foot__legal { margin: 0; flex-basis: 100%; color: var(--dim); font-size: 12px; }   /* non-affiliation line, own row */

/* ---------- 404 ---------- */
.lost {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center; gap: 0;
  padding: 48px var(--gutter);
  background: radial-gradient(ellipse at 30% 20%, rgb(255 90 31 / .12), transparent 55%), var(--bg);
}
.lost__in { width: 100%; max-width: 760px; margin: 0 auto; }
.lost .brand { margin-bottom: 40px; }
.lost__code {
  margin: 0;
  font: italic 900 clamp(5rem, 30vw, 12rem)/.85 var(--sans); letter-spacing: .04em; color: var(--accent);
}
.lost .h2 { margin-top: 18px; }
.lost__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-left: 8px; }

/* ---------- /me/: My races (rico 2026-10-06: "oki games users wanna see their best races and laptimes") ---------- */
.top--page { position: static; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.me { padding: clamp(36px, 7vw, 72px) 0 clamp(56px, 8vw, 96px); }
.me__who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -8px 0 6px; color: var(--dim); }
.me__who b { color: var(--hi); font-weight: 650; overflow-wrap: anywhere; }
.me__rule { margin: 0 0 36px; max-width: 46em; color: var(--dim); font-size: 13px; line-height: 1.5; }
.me__h { margin: 40px 0 14px; font: italic 800 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.me__empty { margin: 0; color: var(--dim); }
.me__gate { display: grid; justify-items: start; gap: 18px; padding: 8px 0 24px; }
.me__gate p { margin: 0; color: #c9c9c9; }
.laps { width: 100%; max-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.laps th, .laps td { padding: 10px 12px 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.laps th { color: var(--dim); font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.laps td:last-child { color: var(--hi); font-weight: 650; }
.races { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.me-race { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; background: var(--bg-2); }
.me-race__pos { font: italic 900 1.7rem/1 var(--sans); color: var(--hi); }
.me-race__pos small { display: block; margin-top: 4px; font: 700 11px/1 var(--sans); letter-spacing: .08em; color: var(--dim); font-style: normal; }
.me-race--dnf .me-race__pos { color: #ff5d5d; }
.me-race__main { min-width: 0; }
.me-race__replays { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.me-race__replays a { display: inline-flex; align-items: center; min-height: 44px; }
.me-race__t { margin: 0 0 4px; color: var(--hi); font-weight: 650; overflow-wrap: anywhere; }
.me-race__d { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.me-race__d .is-clean { color: #7ad97a; }
.me-race__d .is-pen { color: #ffb38a; }
.me-race__score { font: italic 900 1.2rem/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.me__more { margin-top: 20px; }
@media (max-width: 480px) {
  .me-race { grid-template-columns: 58px minmax(0, 1fr); }
  .me-race__score { grid-column: 2; }
}

/* ---------- /datenschutz/ + /impressum/: legal text (lane privacy2), a readable measure in the page style ---------- */
.legal { padding: clamp(36px, 7vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal__in { max-width: 820px; }
.legal .h2 { font-size: clamp(2.2rem, 8vw, 4rem); }
.legal section { margin: 0 0 30px; }
.legal h2 { margin: 0 0 10px; font: italic 800 13px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hi); }
.legal p, .legal li { margin: 0 0 10px; color: #c9c9c9; overflow-wrap: anywhere; }
.legal .lead { margin-bottom: 36px; }
.legal ul { margin: 0 0 10px; padding-left: 1.2em; }
.legal a { color: var(--fg); text-underline-offset: 3px; text-decoration-color: var(--accent); }
.legal strong { color: var(--hi); font-weight: 650; }
.legal code { font-size: .92em; color: var(--hi); }
.foot__nav a[aria-current="page"] { color: var(--fg); }
