/* SkateBox on the web: the tokens every page shares (landing, legal, the app).
   The phone's look: the desktop app's dark #0C0F14, SkateBox orange #FF5A2A,
   the system font (SF on Apple devices), cards with rounded corners. The site
   is dark only, like the phone's brand surfaces. */
:root {
  --bg: #0c0f14;
  --bg-2: #12161d;
  --card: #171c24;
  --card-2: #1e2430;
  --line: #262d39;
  --text: #f2f4f7;
  --text-2: #a8afbb;
  --text-3: #6c7483;
  --accent: #ff5a2a;
  --accent-2: #ff7a50;
  --accent-soft: rgba(255, 90, 42, 0.14);
  --gold: #ffc240;
  --good: #3dd98c;
  --bad: #ff6b5a;
  --warn: #ffb020;
  --blue: #4da3ff;
  --radius: 16px;
  --radius-s: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Added 2026-10-31 (website polish). Add new tokens, never rename these: every
     stylesheet under web/ reads them.
     Breakpoints (CSS cannot read a variable in a media query, so these are the numbers
     everyone writes): phone (max-width: 767px), tablet (min-width: 768px) and
     (max-width: 1099px), computer (min-width: 1100px). body also carries is-phone /
     is-tablet / is-desktop (main.js) for the rare JS need. */
  --bp-tablet: 768px;
  --bp-desktop: 1100px;
  /* type: the phone's sizes (caption2 11, footnote 13, subheadline 15, body 17 on iOS;
     16 is the web's body so inputs never zoom on iPhone) */
  --fs-2xs: 10px;   /* the tiles' uppercase labels */
  --fs-xs: 11px;
  --fs-s: 13px;
  --fs-m: 15px;
  --fs-body: 16px;
  --fs-l: 17px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 28px;
  --fs-4xl: 34px;
  --label-tracking: 0.04em;
  /* spacing on a 4 / 8 rhythm */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --gutter: 16px;   /* the page's side margin on a phone */
  --radius-xs: 6px;
  --radius-m: 12px;
  /* the app's frame */
  --bar-h: 52px;    /* the top bar, without the safe area */
  --tab-h: 50px;    /* the bottom tab bar, without the safe area */
  --side-w: 244px;  /* the computer's sidebar */
  --view-max: 760px;
  --bar-bg: rgba(18, 22, 29, 0.86);
  --hover: rgba(255, 255, 255, 0.045);
  --press: rgba(255, 255, 255, 0.08);
  --scrim: rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 18px 48px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  /* layers, low to high. A map's own controls stay inside the map (isolation). */
  --z-sticky: 15;
  --z-bar: 20;
  --z-tabbar: 30;
  --z-sheet: 50;
  --z-toast: 70;
  /* motion: short and purposeful */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-1: 150ms;
  --dur-2: 220ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, label, summary, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.num { font-variant-numeric: tabular-nums; }
/* the phone's small uppercase tracked label (the tiles' RUNS / BEST TIME) */
.label { display: block; font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--text-2); }
.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; }

/* keyboard focus shows, a tap or a click does not */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; border-radius: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-quiet { background: var(--card-2); color: var(--text); }
.btn-danger { background: #c62f22; color: #fff; }
.btn:active:not(:disabled) { opacity: 0.82; }
.btn[disabled], .btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* hover only where there is a pointer that hovers: on a phone a tapped button would stay lit */
@media (hover: hover) {
  a:hover { text-decoration: underline; }
  .btn-primary:hover { background: var(--accent-2); }
  .btn-ghost:hover { border-color: var(--text-3); }
  .btn-quiet:hover { background: #262e3c; }
  .btn-danger:hover { background: #d83a2c; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* the site header and footer (landing and legal pages) */
.site-head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none !important; }
.brand img { height: 26px; width: auto; }
.site-head .btn { min-height: 38px; padding: 0 14px; font-size: 15px; }
.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 16px 40px;
  color: var(--text-3); font-size: 14px;
}
.site-foot .inner { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--text-2); }
