/* Shared reset + design tokens for all Desktop Drift pages.
   Tokens are the single source of truth for colour/typography/shape (see AGENTS.md →
   Design language, DESIGN.md). Never hardcode colours inline — use var(). */

/* Distinctive display font (logo/headings). Self-hosted, offline, no CDN.
   Body stays system for speed and file size. */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/unbounded-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Backgrounds — warm dark browns */
  --bg-deep:   #0b0907;   /* deepest */
  --bg-mid:    #14110f;
  --bg-raise:  #2a2622;   /* raised surface */
  --bg-vignette: radial-gradient(120% 120% at 50% 0%,
                 var(--bg-raise) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  /* Subtle grain (feTurbulence in data-URI) — depth without raster assets. */
  --grain: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='160'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  /* Full screen background = grain over vignette. */
  --bg-screen: var(--grain), var(--bg-vignette);

  /* Accent — amber (the one signature colour) */
  --accent:      #ffb14d;
  --accent-gold: #ffd34d;   /* combo gold */

  /* Text */
  --ink: #fff;

  /* Surfaces (neutral panels/cards) */
  --surface:      rgba(255,255,255,.05);
  --surface-line: rgba(255,255,255,.12);

  /* Accent surfaces */
  --accent-tint: rgba(255,177,77,.10);
  --accent-line: rgba(255,177,77,.40);
  --accent-glow: rgba(255,177,77,.70);

  /* Garage stat bars */
  --stat-spd: rgba(255,177,77,.82);
  --stat-hdl: rgba(90,210,255,.75);
  --stat-acc: rgba(120,220,120,.82);

  /* Accent text gradient (logo/headings) */
  --accent-text: linear-gradient(180deg, var(--ink) 0%, var(--accent) 130%);

  /* Shape and motion */
  --r-panel: 10px;
  --r-card:  16px;
  --ease:    .14s;

  /* Typography */
  --font-display: 'Unbounded', -apple-system, system-ui, sans-serif;
  --font-body:    -apple-system, system-ui, sans-serif;
}

html, body {
  margin: 0; height: 100%; overflow: hidden; background: var(--bg-deep);
  touch-action: none;          /* disable scroll/zoom */
  user-select: none;           /* disable text selection */
  -webkit-user-select: none;   /* Safari / iOS */
  -webkit-touch-callout: none; /* disable callout menu on long press (iOS) */
}
