/* Rockstar Trivia — shared shell.
   Palette follows the LocalWow brand: dark monochrome, warm orange accent,
   green reserved for "live". */

:root {
  --bg: #121212;
  --surface: #1f1f1f;
  --surface-2: #2a2a2a;
  --line: #383838;
  --text: #f5f5f5;
  --muted: #bebebe;
  --accent: #ff914d;
  --accent-soft: #fff5e6;
  --live: #7ed957;
  --radius: 14px;
  --font: 'Assistant', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100dvh; }

button { font-family: inherit; cursor: pointer; border: none; }
button:disabled { cursor: not-allowed; }

/* --- shared bits ------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.brand h1 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}
.dot.on { background: var(--live); box-shadow: 0 0 0 3px rgba(126, 217, 87, 0.18); }
.dot.off { background: #d9534f; }

.wrap { max-width: 860px; margin: 0 auto; padding: 20px; }

.muted { color: var(--muted); }

/* Visually hidden but read by screen readers. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
