/* ============================================================
   RIFF‑SHFTR — css/base.css  v3.0.0
   Global palette, typography, resets — loaded on ALL pages
   ============================================================ */

:root {
  --gold:         #d4af37;
  --gold-dim:     rgba(212, 175, 55, 0.45);
  --gold-glow:    rgba(212, 175, 55, 0.18);
  --bg:           #000000;
  --bg-2:         #0d0d0d;
  --bg-3:         #141414;
  --bg-4:         #1a1a1a;
  --text-main:    #ffffff;
  --text-soft:    #c7c7c7;
  --text-muted:   #666666;
  --accent-soft:  rgba(212, 175, 55, 0.35);
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --player-h:     90px;
  --topbar-h:     56px;
  --orange:       #ff6a00;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0.04em; }
p  { margin: 0; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── BRAKE GLOW ───────────────────────────────────────────── */
#brake-glow {
  position: fixed;
  bottom: -170px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 360px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease-out;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 0, 0, 0.50) 0%,
    rgba(255, 0, 0, 0.22) 35%,
    rgba(255, 0, 0, 0.10) 55%,
    rgba(255, 0, 0, 0.0)  100%
  );
  filter: blur(65px);
}

body.lights-on #brake-glow { opacity: 1; }

body.engine-running #brake-glow {
  opacity: 1;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 80, 0, 0.65) 0%,
    rgba(255, 40, 0, 0.30) 35%,
    rgba(255,  0, 0, 0.10) 55%,
    rgba(255,  0, 0, 0.0)  100%
  );
}

@media (max-width: 480px)  { :root { --topbar-h: 52px; } }
@media (min-width: 1024px) { :root { --player-h: 80px; } }
