/* Direction: stadium scoreboard — deep charcoal panel, one electric lime accent,
   condensed uppercase display type, crisp low-radius dark cards. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0d0f12;
  --surface: #15181d;
  --surface-2: #1d2129;
  --border: #272d37;
  --border-strong: #565759;
  --ink: #f3f6f8;
  --muted: #8f9aa9;
  --accent: #c9ff2e;
  --accent-hover: #d1ff4d;
  --accent-ink: #0d0f12;
  --accent-text: #cfff52;
  --accent-strong: #5f6f36;
  --accent-soft: #c9ff2e;
  --accent-border: #627b1f;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0f281b;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #321e10;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #331214;
  --danger-strong: #d16969;
  --chart-1: #c9ff2e;
  --chart-2: #2dd9c8;
  --chart-3: #82c5fc;
  --chart-4: #f195fe;
  --chart-5: #fea09c;
  --chart-6: #f0b220;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: 0.01em;
  --radius-card: 8px;
  --radius-btn: 6px;
  --radius-input: 6px;
  --card-pad: 1.25rem;
  --x-glow: rgba(201, 255, 46, 0.22);
  --x-line: rgba(255, 255, 255, 0.05);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #ddddde;
  --border-strong: #b6b7b8;
  --ink: #0d0f12;
  --muted: #6e6f71;
  --accent: #aad827;
  --accent-hover: #91b821;
  --accent-ink: #0d0f12;
  --accent-text: #566f14;
  --accent-strong: #5e7916;
  --accent-soft: #f3fae1;
  --accent-border: #d9ed9e;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #799b1a;
  --chart-2: #1aa194;
  --chart-3: #007bc0;
  --chart-4: #ad7ee3;
  --chart-5: #b64367;
  --chart-6: #cc7d1f;
}

/* Pacesetter — scoreboard texture, slide-in rows, lime glow on hover. */

.scoreboard-grid {
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--x-line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, var(--x-line) 0 1px, transparent 1px 48px);
  mask-image: radial-gradient(130% 90% at 12% 0%, rgba(0, 0, 0, 0.9), transparent 72%);
}

@keyframes ps-row-in {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(0);
  }
}

.row-in {
  animation: ps-row-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bar-fill {
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 14px var(--x-glow);
}

.glow-card {
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}

.glow-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 42px -18px var(--x-glow);
  transform: translateY(-3px);
}

html.reduced-motion .row-in,
html.reduced-motion .bar-fill {
  animation: none;
  transition: none;
}

html.reduced-motion .glow-card:hover {
  transform: none;
}
