/* usderbygame.com: the game's own night-at-the-track look. Its dark green,
   the gold of the kick, the saddle cloth's red; the HUD's heavy italic for
   headings. System fonts only: the site asks nothing of any other server. */
:root {
  --bg: #05100b;
  --panel: #0b1c13;
  --panel-2: #10261a;
  --line: rgba(245, 207, 82, 0.22);
  --ink: #f4f3ee;
  --muted: #a7b6ab;
  --gold: #f5cf52;
  --gold-deep: #c9961e;
  --red: #c8102e;
  --display: -apple-system, 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.gutter { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.inner { max-width: 1080px; margin: 0 auto; }
.eyebrow { font: 800 12px/1 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: 0.005em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.02; text-transform: uppercase; }
h3 { font-size: 24px; line-height: 1.1; text-transform: uppercase; }
p { margin: 0; }

/* The play button: the start pad's bevelled gold. */
.play { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 0 40px; border-radius: 8px; text-decoration: none;
  font: italic 900 26px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #241800;
  background: linear-gradient(180deg, #fff3c2 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(120, 80, 0, 0.45), 0 10px 30px rgba(245, 207, 82, 0.28), 0 2px 0 #6d4c00;
  transition: transform 0.12s, box-shadow 0.12s; }
.play:hover { transform: translateY(-1px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(120, 80, 0, 0.45), 0 14px 36px rgba(245, 207, 82, 0.4), 0 2px 0 #6d4c00; }
.play:active { transform: translateY(1px); }
.play svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; }
.hero picture img { width: 100%; height: auto; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, rgba(5, 16, 11, 0) 0%, var(--bg) 92%); pointer-events: none; }
.cta { position: relative; z-index: 1; margin-top: clamp(-150px, -11vw, -60px); display: grid; justify-items: center; gap: 14px; text-align: center; padding-bottom: 20px; }
.cta .sub { color: var(--muted); font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.store b { color: var(--ink); font-weight: 700; }

/* Features: a screenshot from a phone held sideways, and what it shows. */
.features { display: grid; gap: clamp(48px, 8vw, 88px); padding-block: clamp(48px, 8vw, 96px); }
.features > header { display: grid; gap: 12px; text-align: center; justify-items: center; }
.features > header p { color: var(--muted); max-width: 52ch; }
.feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature .text { display: grid; gap: 12px; min-width: 0; }
.feature .text p { color: var(--muted); max-width: 44ch; }
.feature .num { font: italic 900 15px/1 var(--display); color: var(--gold); letter-spacing: 0.12em; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); background: var(--panel); aspect-ratio: 2340 / 1080; max-width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Coming next */
.next { padding-block: clamp(44px, 7vw, 80px); background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next .inner { display: grid; gap: 28px; }
.next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.next li { padding: 18px; border-radius: 10px; background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.06); display: grid; gap: 6px; }
.next li b { font: italic 900 18px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.next li span { color: var(--muted); font-size: 15px; }
.final { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: clamp(56px, 9vw, 104px); }

/* Footer */
footer.site { padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
footer.site .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* Legal and support pages */
.doc-head { padding-block: 20px; border-bottom: 1px solid var(--line); }
.doc-head .inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.doc-head .brand { font: italic 900 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.doc-head .brand span { color: var(--gold); }
.doc-head .mini { padding: 10px 18px; min-height: 0; font-size: 15px; border-radius: 6px; }
.doc { padding-block: 44px 72px; }
.doc .inner { max-width: 720px; display: grid; gap: 20px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.02; text-transform: uppercase; }
.doc .date { color: var(--muted); font-size: 14px; }
.doc h2 { font-size: 22px; text-transform: none; margin-top: 12px; }
.doc p, .doc li { color: #d9ddd7; max-width: 66ch; }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.mail { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.mail code { font: 600 17px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); user-select: all; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .play { width: min(100%, 360px); }
}
@media (prefers-reduced-motion: reduce) { .play { transition: none; } }
