/* Pinwheel Fates — retro sports broadcast meets internet culture
   Dark, bold, community-focused — joyful chaos */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Light mode (default) --- */
:root {
  --bg-primary: #f4f4f8;
  --bg-secondary: #eaeaf0;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f6;
  --bg-input: #f8f8fc;
  --border: #d0d0dc;
  --border-bright: #b0b0c4;

  --text-primary: #1a1a2e;
  --text-secondary: #555570;
  --text-muted: #888898;

  --accent-score: #9a7000;
  --accent-highlight: #c7253e;
  --accent-governance: #0077aa;
  --accent-report: #7c4dcc;
  --accent-success: #1a8a50;
  --accent-danger: #d43545;
  --accent-elam: #d45520;

  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 20px rgba(199, 37, 62, 0.1);

  --overlay-subtle: rgba(0, 0, 0, 0.03);
  --overlay-light: rgba(0, 0, 0, 0.05);
  --overlay-border: rgba(0, 0, 0, 0.06);
}

/* --- Dark mode --- */
[data-theme="dark"] {
  --bg-primary: #0d0d1a;
  --bg-secondary: #141428;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --bg-input: #0f0f2a;
  --border: #2a2a5a;
  --border-bright: #3a3a7a;

  --text-primary: #e8e8f0;
  --text-secondary: #9898b4;
  --text-muted: #606080;

  --accent-score: #f0c040;
  --accent-highlight: #e94560;
  --accent-governance: #53d8fb;
  --accent-report: #b794f4;
  --accent-success: #48bb78;
  --accent-danger: #fc5c65;
  --accent-elam: #ff6b35;

  --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(233, 69, 96, 0.15);

  --overlay-subtle: rgba(255, 255, 255, 0.02);
  --overlay-light: rgba(255, 255, 255, 0.04);
  --overlay-border: rgba(255, 255, 255, 0.06);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-governance); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-content {
  padding: 2rem 0 3rem;
}

/* ===== Navigation ===== */
.nav {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-highlight);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 0.125rem;
}

.nav-brand {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--accent-score);
  margin-right: 1.5rem;
  white-space: nowrap;
}

.nav-brand span {
  color: var(--accent-highlight);
}

.nav-link {
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--overlay-light);
  text-decoration: none;
}

.nav-link.active {
  color: var(--accent-score);
}

.nav-spacer { flex: 1; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.nav-avatar {
  border-radius: 50%;
}

/* -- Mobile hamburger toggle -- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--accent-highlight);
    padding: 0.5rem 1.5rem 0.75rem;
    z-index: 200;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    padding: 0.5rem 0.6rem;
  }

  .nav-links .nav-spacer {
    display: none;
  }

  .nav-links .nav-user {
    padding: 0.5rem 0.6rem;
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: contents;
  }
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body {
  padding: 1.25rem;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.05rem; }

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  margin-bottom: 0.25rem;
}

.page-header .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Home Page: Pinwheel Post --- */
.home-post {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card, var(--bg-surface));
}
.home-post-masthead {
  text-align: center;
  border-bottom: 3px double var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}
.home-post-title {
  font-family: var(--font-heading, var(--font-body));
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.home-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.05em;
}
.home-post-headline {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.home-post-subhead {
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.home-post-section {
  margin-bottom: 1.25rem;
}
.home-post-section-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-highlight, var(--text-muted));
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  margin-bottom: 0.6rem;
}
.home-post-article {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary, var(--text-primary));
  white-space: pre-line;
}
.home-post-full-width {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1.25rem;
}
.home-post-hot-players {
  margin-top: 0.5rem;
}
.home-post-stat-line {
  font-size: 0.8rem;
  padding: 0.2rem 0;
}

/* --- Home Page: What Changed Widget --- */
.what-changed {
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-highlight, #ff5a5f) 0%, var(--accent-score, #00d9ff) 100%);
  border-left: 5px solid var(--accent-elam, #ffdd00);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.what-changed-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bg-primary, #1a1a2e);
  line-height: 1.6;
  text-align: center;
  padding: 0.4rem 0;
}
.what-changed-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.what-changed-fallback {
  font-style: italic;
  font-weight: 600;
  opacity: 0.85;
}

/* --- Game Detail: Contextual Annotations --- */
.game-annotation {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
.game-annotation-significance {
  border-left: 3px solid var(--accent-elam, #ffdd00);
}
.game-annotation-context {
  border-left: 3px solid var(--accent-score, #00d9ff);
}
.game-annotation-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.game-annotation-body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.game-annotation-line {
  margin: 0.25rem 0;
}
.game-annotation-rule-change {
  color: var(--accent-elam, #ffdd00);
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ===== Scores ===== */
.score {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 2.25rem;
  color: var(--accent-score);
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-sm {
  font-size: 1.75rem;
}

.score-winner {
  color: var(--text-primary);
}

.score-loser {
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== Arena Grid ===== */
.arena-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .arena-grid { grid-template-columns: 1fr; }
}

.game-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.game-panel:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.game-panel-header {
  padding: 0.6rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--overlay-light);
}

.game-panel-teams {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  gap: 0.75rem;
}

.team-score-block {
  text-align: center;
  flex: 1;
}

.team-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.team-name.winner { color: var(--text-primary); }

.vs-divider {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.game-panel-play {
  padding: 0.5rem 1.25rem;
  border-top: 1px solid var(--border);
  min-height: 60px;
  max-height: 120px;
  overflow-y: auto;
}

.play-line {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.15rem 0;
  font-family: var(--font-mono);
  line-height: 1.4;
}

.play-line.highlight {
  color: var(--accent-highlight);
  font-weight: 600;
}

/* ===== Elam Ending ===== */
.game-panel.elam {
  border-color: rgba(255, 107, 53, 0.3);
}

.game-panel.elam:hover {
  border-color: rgba(255, 107, 53, 0.5);
}

.elam-banner {
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-elam);
  text-align: center;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elam-target {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-elam);
  text-align: center;
  padding: 0.25rem;
}

.elam-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0.25rem 1rem;
  overflow: hidden;
}

.elam-progress-fill {
  height: 100%;
  background: var(--accent-elam);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ===== Standings Callouts ===== */
.standings-callouts {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1.25rem;
  background: var(--overlay-subtle);
  border-left: 3px solid var(--accent-highlight);
  border-radius: var(--radius);
}

.standings-callouts p {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 500;
}

.standings-callouts p:first-child {
  margin-top: 0;
}

.standings-callouts p:last-child {
  margin-bottom: 0;
}

/* ===== Standings Table ===== */
.standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.standings-table th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.standings-table th.num { text-align: right; }

.standings-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.standings-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
}

.standings-table tr:hover td {
  background: var(--overlay-subtle);
}

.rank {
  font-weight: 900;
  color: var(--text-muted);
  width: 2rem;
}

.rank-1 { color: var(--accent-score); }
.rank-2, .rank-3, .rank-4 { color: var(--accent-success); }

.team-link {
  font-weight: 700;
  color: var(--text-primary);
}

.team-link:hover { color: var(--accent-governance); }

.record {
  font-family: var(--font-mono);
  font-weight: 600;
}

.pct { color: var(--accent-score); }

.diff-positive { color: var(--accent-success); }
.diff-negative { color: var(--accent-danger); }

/* ===== Standings Badges ===== */
.badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.badge-clinch {
  background: var(--accent-success);
  color: var(--bg-primary);
}

.badge-elim {
  background: var(--accent-danger);
  color: var(--bg-primary);
  opacity: 0.7;
}

/* ===== Standings Trajectory Arrows ===== */
.traj-up, .traj-down {
  font-size: 0.8rem;
  font-weight: 700;
}

/* ===== Standings Legend ===== */
.standings-legend {
  display: flex;
  gap: 1.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.standings-legend strong {
  color: var(--text-secondary);
}

/* ===== Responsive: hide columns on small screens ===== */
@media (max-width: 640px) {
  .hide-mobile { display: none; }
}

/* ===== Recent Form Display ===== */
.recent-form-display {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.form-dot--win {
  background-color: var(--accent-success);
  color: var(--bg-primary);
}

.form-dot--loss {
  background-color: var(--accent-danger);
  color: var(--bg-primary);
}

/* ===== Game Detail ===== */
.game-header {
  text-align: center;
  padding: 2rem 1.5rem;
}

.game-matchup {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.game-team {
  text-align: center;
}

.game-team-name {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.game-team-name.score-winner {
  color: var(--text-primary);
}

.game-team-score {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-score);
  line-height: 1;
  margin-top: 0.25rem;
}

.game-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-status.final { color: var(--accent-highlight); font-weight: 700; }

.game-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .game-detail-grid { grid-template-columns: 1fr; }
}

/* ===== Box Score Table ===== */
.box-score-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
}

.box-score-table th {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 0.6rem;
  text-align: right;
  border-bottom: 2px solid var(--border);
}

.box-score-table th:first-child { text-align: left; }

.box-score-table td {
  padding: 0.5rem 0.6rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.box-score-table td:first-child {
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
}

.box-score-table .career-current-season td {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.box-score-table .team-header td {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--accent-score);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
}

/* ===== Play-by-Play ===== */
.pbp-list {
  list-style: none;
}

.pbp-item {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.pbp-quarter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 5rem;
}

.pbp-action {
  color: var(--text-secondary);
}

.pbp-points {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-score);
  margin-left: auto;
}

.pbp-score {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 4rem;
  text-align: right;
}

/* ===== Governance ===== */
.proposal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}

.proposal-card.passed {
  border-left: 3px solid var(--accent-success);
}

.proposal-card.failed {
  border-left: 3px solid var(--accent-danger);
}

.proposal-card.voting {
  border-left: 3px solid var(--accent-governance);
}

.proposal-text {
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.proposal-interpretation {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--accent-report);
  border-left: 2px solid var(--accent-report);
  line-height: 1.5;
}

.proposal-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-passed { background: rgba(72, 187, 120, 0.15); color: var(--accent-success); }
.status-failed { background: rgba(252, 92, 101, 0.15); color: var(--accent-danger); }
.status-voting { background: rgba(83, 216, 251, 0.15); color: var(--accent-governance); }
.status-confirmed { background: rgba(83, 216, 251, 0.15); color: var(--accent-governance); }
.status-submitted { background: rgba(136, 136, 170, 0.15); color: var(--text-secondary); }
.status-draft { background: rgba(136, 136, 170, 0.15); color: var(--text-secondary); }

.proposal-card.confirmed {
  border-left: 3px solid var(--accent-governance);
}

/* Vote tally bar */
.vote-tally {
  margin-top: 0.5rem;
}

.tally-bar {
  height: 6px;
  background: rgba(252, 92, 101, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.tally-yes {
  height: 100%;
  background: var(--accent-success);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.tally-numbers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.tally-yes-label { color: var(--accent-success); font-weight: 600; }
.tally-no-label { color: var(--accent-danger); font-weight: 600; }

/* ===== Reports ===== */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-report);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.report-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-report);
  margin-bottom: 0.5rem;
}

.report-content {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: normal;
  word-wrap: break-word;
  max-width: 720px;
}

.report-meta {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== Team Page ===== */
.team-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.team-color-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-info h1 {
  margin-bottom: 0.25rem;
}

.team-motto {
  font-style: italic;
  color: var(--text-secondary);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.hooper-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.hooper-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.hooper-archetype {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-governance);
  font-weight: 600;
}

.attr-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.attr-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  width: 3rem;
}

.attr-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.attr-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.attr-value {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  width: 1.5rem;
  text-align: right;
}

/* Attribute colors */
.attr-fill.scoring { background: var(--accent-highlight); }
.attr-fill.passing { background: var(--accent-governance); }
.attr-fill.defense { background: var(--accent-success); }
.attr-fill.speed { background: var(--accent-score); }
.attr-fill.stamina { background: #e67e22; }
.attr-fill.iq { background: var(--accent-report); }
.attr-fill.ego { background: var(--accent-danger); }
.attr-fill.chaotic_alignment { background: #9b59b6; }
.attr-fill.fate { background: #555577; }

/* ===== Spider Charts ===== */
.spider-chart {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}

.spider-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.spider-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.spider-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.spider-legend-label {
  white-space: nowrap;
}

/* ===== Hooper Page ===== */
.hooper-page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.hooper-page-header h1 {
  margin-bottom: 0.25rem;
}

.team-link-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.team-link-sm:hover {
  color: var(--accent-governance);
  text-decoration: none;
}

.team-dot-sm {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hooper-name-link {
  color: var(--text-primary);
  text-decoration: none;
}

.hooper-name-link:hover {
  color: var(--accent-governance);
  text-decoration: none;
}

.hooper-bio {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

.bio-edit-btn {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 0.5rem;
  transition: border-color 0.15s, color 0.15s;
}

.bio-edit-btn:hover {
  border-color: var(--accent-governance);
  color: var(--accent-governance);
}

.hooper-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .hooper-detail-grid { grid-template-columns: 1fr; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-score);
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.move-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.move-item:last-child {
  border-bottom: none;
}

.move-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-highlight);
}

.move-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ===== Rules ===== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  .rules-grid { grid-template-columns: 1fr; }
}

.rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}

.rule-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rule-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
}

.rule-value.changed {
  color: var(--accent-highlight);
}

.rule-value.default {
  color: var(--text-primary);
}

/* ===== Quarter Scores Table ===== */
.quarter-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-top: 0;
}

.quarter-table th,
.quarter-table td {
  padding: 0.4rem 0.75rem;
  text-align: center;
}

.quarter-table th:last-child,
.quarter-table td:last-child { border-right: none; }

.quarter-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--overlay-border);
}

.quarter-table td {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.quarter-table td.qt-team {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.quarter-table td.qt-bold,
.quarter-table td.qt-total.qt-bold {
  font-weight: 700;
  color: var(--text-primary);
}

.quarter-table td.qt-total {
  border-left: 1px solid var(--overlay-border);
  font-weight: 600;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* ===== Utility ===== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mono { font-family: var(--font-mono); }

/* ===== Legal Pages ===== */
.legal-page { max-width: 640px; margin: 0 auto; line-height: 1.7; }
.legal-page h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.legal-page h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.75rem; color: var(--accent-governance); }
.legal-page h3 { font-size: 1rem; margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.legal-page p { margin-bottom: 0.75rem; color: var(--text-secondary); }
.legal-page ul { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-secondary); }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--accent-governance); text-decoration: underline; }
.legal-page code { font-family: var(--font-mono); background: var(--bg-card); padding: 0.1em 0.3em; border-radius: 3px; font-size: 0.9em; }
.legal-updated { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== Home Page ===== */
.home-hero {
  text-align: center;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(233, 69, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent-score);
  line-height: 1;
  margin-bottom: 0.75rem;
  position: relative;
}

.hero-accent {
  color: var(--accent-highlight);
}

.hero-tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-tagline a {
  color: var(--accent-highlight);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.4rem 1rem;
  background: var(--overlay-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulse-blink 2s ease-in-out infinite;
}

@keyframes pulse-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pulse-sep {
  color: var(--text-muted);
}

/* Home sections */
.home-section {
  margin-bottom: 2rem;
}

.section-title-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title-text {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.section-title-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(240, 192, 64, 0.12);
  color: var(--accent-score);
}

.section-title-badge.report-badge {
  background: rgba(183, 148, 244, 0.12);
  color: var(--accent-report);
}

.section-title-badge.upcoming-badge {
  background: rgba(83, 216, 251, 0.12);
  color: var(--accent-governance);
}

.section-more {
  text-align: right;
  margin-top: 0.5rem;
}

.more-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.more-link:hover {
  color: var(--accent-governance);
  text-decoration: none;
}

/* Score cards */
.scores-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}

.score-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.score-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
  text-decoration: none;
}

.sc-teams {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sc-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sc-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sc-name.sc-winner {
  color: var(--text-primary);
}

.sc-score {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-muted);
  min-width: 2.5rem;
  text-align: right;
}

.sc-score.sc-score-win {
  color: var(--accent-score);
}

.sc-play {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--overlay-light);
  font-size: 0.75rem;
  color: var(--accent-elam);
  font-weight: 600;
  line-height: 1.4;
}

.sc-elam {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-elam);
  background: rgba(255, 107, 53, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* Two-column layout */
.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .home-columns { grid-template-columns: 1fr; }
}

/* Mini standings */
.mini-standings {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ms-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.ms-row:last-child {
  border-bottom: none;
}

.ms-row:hover {
  background: var(--overlay-subtle);
  text-decoration: none;
}

.ms-rank {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 1.25rem;
  text-align: center;
}

.ms-row:first-child .ms-rank {
  color: var(--accent-score);
}

.ms-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ms-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ms-record {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 2rem;
  text-align: right;
}

.ms-diff {
  font-size: 0.75rem;
  min-width: 2.5rem;
  text-align: right;
}

/* Playoff bracket */
.bracket {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 0;
  margin-bottom: 0.75rem;
}

.bracket-finals-only {
  grid-template-columns: 1fr;
}

.bracket-semis {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.bracket-matchup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
}

.bracket-round-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bracket-bestof {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.bracket-team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0;
  opacity: 0.55;
}

.bracket-team-lead {
  opacity: 1;
}

.bracket-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bracket-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bracket-wins {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: right;
  color: var(--text-secondary);
}

.bracket-team-lead .bracket-wins {
  color: var(--accent-success);
}

.bracket-wins-label {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 1px;
}

/* Bracket connector lines */
.bracket-connector {
  display: flex;
  flex-direction: column;
  position: relative;
}

.bracket-line-top {
  flex: 1;
  border-bottom: 2px solid var(--border);
  border-right: 2px solid var(--border);
  border-bottom-right-radius: 6px;
}

.bracket-line-mid {
  flex: 0 0 2px;
}

.bracket-line-bot {
  flex: 1;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  border-top-right-radius: 6px;
}

.bracket-finals {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bracket-finals .bracket-matchup {
  border-left: 3px solid var(--accent-score);
}

/* Champion banner */
.bracket-champion {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius);
}

.bracket-champion-icon {
  color: #ffd700;
  font-size: 0.9rem;
}

.bracket-champion-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bracket-champion-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-left: auto;
}

/* Mobile: stack bracket vertically */
@media (max-width: 480px) {
  .bracket {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .bracket-connector {
    display: none;
  }
  .bracket-finals .bracket-matchup {
    border-left: 1px solid var(--border);
    border-top: 3px solid var(--accent-score);
  }
}

/* Home report */
.home-report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-report);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
}

.home-report-content {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Upcoming games */
.upcoming-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.upcoming-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
}

.uc-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.uc-round-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.uc-vs {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
}

.how-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.how-number {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.how-title {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.how-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Explore grid */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .explore-grid { grid-template-columns: 1fr 1fr; }
}

.explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}

.explore-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
  text-decoration: none;
}

.explore-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.explore-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.explore-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== Rules Page ===== */
.rules-hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}

.rules-hero h1 {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.rules-hero-tagline {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.rules-hero-stat {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rules-tier-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.rules-tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .rules-tier-grid { grid-template-columns: 1fr; }
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}

.rule-card-changed {
  border-color: rgba(233, 69, 96, 0.3);
  background: rgba(233, 69, 96, 0.04);
}

.rule-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.rule-card-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rule-card-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-score);
}

.rule-card-value-changed {
  color: var(--accent-highlight);
}

.rule-bool-on {
  color: var(--accent-success);
  font-size: 0.75rem;
  font-weight: 800;
}

.rule-bool-off {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.rule-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.rule-card-range {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.7;
}

.rule-card-history {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.rule-change-entry {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}

.rule-change-entry:last-child {
  margin-bottom: 0;
}

.rule-change-arrow {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-highlight);
  font-size: 0.8rem;
}

.rule-change-round {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.rule-change-proposer {
  font-size: 0.7rem;
}

.rule-change-proposer a {
  color: var(--text-muted);
  text-decoration: none;
}

.rule-change-proposer a:hover {
  color: var(--accent-highlight);
  text-decoration: underline;
}

.rule-change-impact {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--accent-score);
  margin-top: 0.1rem;
}

/* Changed rules strip */
.rules-changed-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.rule-changed-card {
  background: rgba(233, 69, 96, 0.06);
  border: 1px solid rgba(233, 69, 96, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
}

.rule-changed-param {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.rule-changed-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.rule-old {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
}

.rule-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.rule-new {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-highlight);
  font-size: 1.1rem;
}

/* Rule history */
.rule-history-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.rule-history-item:last-child {
  border-bottom: none;
}

.rule-history-param {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.rule-history-change {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rule-history-round {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 4rem;
  text-align: right;
}

/* High-drift rule card: parameters far from default */
.rule-card-high-drift {
  border-color: rgba(255, 152, 0, 0.5);
  background: rgba(255, 152, 0, 0.06);
}

/* Drift bar: visual indicator of distance from default */
.rule-drift-bar-container {
  margin-top: 0.3rem;
  margin-bottom: 0.25rem;
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.rule-drift-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-highlight), rgba(255, 152, 0, 0.9));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.rule-drift-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.rule-drift-label-only {
  margin-top: 0.2rem;
  margin-bottom: 0.15rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Change count badge */
.rule-card-change-count {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-governance);
  letter-spacing: 0.02em;
}

/* Change history header */
.rule-history-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

/* Change entry layout — top row with arrow + round */
.rule-change-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Attribution line: governor + vote margin */
.rule-change-attribution {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.1rem;
  font-size: 0.7rem;
}

/* Vote margin badge */
.rule-change-vote-margin {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-success);
  background: rgba(76, 175, 80, 0.1);
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
}

/* Original proposal text */
.rule-change-proposal-text {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Rules CTA */
.rules-cta {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.rules-cta code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent-governance);
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.75rem;
}

.site-footer a:hover { color: var(--text-secondary); }

/* ===== Play Page ===== */
.play-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.play-hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  color: var(--accent-score);
}

.play-hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.play-join-btn {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--accent-governance);
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.play-join-btn:hover {
  background: #3ec8eb;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--bg-primary);
}

/* League status bar */
.play-status {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.play-status-item {
  text-align: center;
}

.play-status-value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--accent-score);
  line-height: 1;
}

.play-status-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

@media (max-width: 480px) {
  .play-status { gap: 1.25rem; }
  .play-status-value { font-size: 1.1rem; }
}

.play-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Rhythm steps */
.play-rhythm {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rhythm-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.rhythm-step:last-child {
  border-bottom: none;
}

.rhythm-num {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  min-width: 2rem;
  opacity: 0.6;
}

.rhythm-content {
  flex: 1;
}

.rhythm-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.rhythm-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.rhythm-desc em {
  color: var(--accent-governance);
  font-style: italic;
}

/* What you do cards */
.play-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .play-roles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .play-roles-grid { grid-template-columns: 1fr; }
}

.play-role-card {
  padding: 1.25rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.play-role-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.play-role-title {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.play-role-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.play-role-desc code {
  font-family: var(--font-mono);
  background: var(--bg-secondary);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  color: var(--accent-governance);
  font-weight: 700;
  font-size: 0.85em;
}

/* Discord commands list */
.play-commands {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.play-cmd {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.play-cmd:last-child {
  border-bottom: none;
}

.play-cmd-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-governance);
  min-width: 7rem;
  background: none;
  padding: 0;
}

.play-cmd-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FAQ */
.play-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.play-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.play-faq-item:last-child {
  border-bottom: none;
}

.play-faq-q {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.play-faq-a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.play-faq-a a {
  color: var(--accent-governance);
}

/* Bottom CTA */
/* How to Join steps */
.play-join-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.join-step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  min-width: 2rem;
  text-align: center;
}

.join-step-content {
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.join-step-content strong {
  color: var(--text-primary);
}

/* Season structure flow */
.play-season-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
}

.season-flow-step {
  flex: 1;
  min-width: 180px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.season-flow-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.season-flow-step h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.season-flow-step p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.season-flow-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  padding-top: 2rem;
}

@media (max-width: 640px) {
  .play-season-flow { flex-direction: column; align-items: center; }
  .season-flow-arrow { transform: rotate(90deg); padding-top: 0; }
}

/* Token economy grid */
.play-tokens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .play-tokens-grid { grid-template-columns: 1fr; }
}

.play-token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.play-token-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.play-token-count {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.play-token-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Voting details */
.play-voting-details {
  padding: 0;
}

.play-vote-rules {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.play-vote-rule {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.play-vote-rule strong {
  color: var(--text-primary);
}

.play-vote-rule code {
  font-family: var(--font-mono);
  background: var(--bg-input, var(--bg-card));
  padding: 0.1em 0.3em;
  border-radius: 3px;
  color: var(--accent-governance);
  font-weight: 700;
  font-size: 0.85em;
}

/* Proposal tiers */
.play-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.play-tier-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.play-tier-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 900;
  min-width: 2rem;
  text-align: center;
}

.play-tier-label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 120px;
}

.play-tier-detail {
  color: var(--text-muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .play-tier-row { flex-wrap: wrap; }
  .play-tier-label { min-width: auto; }
}

.play-cta {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.play-cta-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.play-cta-sub code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  color: var(--accent-governance);
  font-weight: 700;
}

/* Home page join CTA */
.home-join-cta {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.home-join-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-highlight),
    var(--accent-governance),
    var(--accent-score)
  );
}

.home-join-inner {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.home-join-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.home-join-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 460px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.home-join-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.home-join-learn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-join-learn:hover {
  color: var(--accent-governance);
  text-decoration: none;
}

/* Nav "Play" link highlight */
.nav-link-play {
  color: var(--accent-governance);
}

.nav-link-play:hover {
  color: var(--accent-governance);
  background: rgba(83, 216, 251, 0.08);
}

/* ===== Rules — Wild Card Section ===== */
.rules-wildcard {
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
}

.rules-wildcard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-highlight),
    var(--accent-governance),
    var(--accent-score)
  );
}

.wildcard-inner {
  padding: 2rem 1.75rem;
}

.wildcard-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-highlight);
  margin-bottom: 0.75rem;
}

.wildcard-headline {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  max-width: 600px;
}

.wildcard-headline .wc-accent {
  color: var(--accent-highlight);
}

.wildcard-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.wildcard-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.wildcard-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .wildcard-examples { grid-template-columns: 1fr; }
}

.wildcard-example {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-governance);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-style: italic;
}

.wildcard-example:nth-child(2) {
  border-left-color: var(--accent-highlight);
}

.wildcard-example:nth-child(3) {
  border-left-color: var(--accent-score);
}

.wildcard-example:nth-child(4) {
  border-left-color: var(--accent-report);
}

.wildcard-example:nth-child(5) {
  border-left-color: var(--accent-elam);
}

.wildcard-example:nth-child(6) {
  border-left-color: var(--accent-success);
}

.wildcard-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.wildcard-flow-step {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  padding: 0.3rem 0.7rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.wildcard-flow-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Rules tier reframe label */
.rules-starting-point {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.rules-starting-point strong {
  color: var(--text-secondary);
  font-weight: 700;
}

/* ===== Live Zone (Arena) ===== */

/* Container grid — side by side on desktop, stacked on mobile */
.live-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.live-zone {
  background: var(--bg-card);
  border: 2px solid var(--accent-highlight);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.live-zone-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.live-badge {
  background: #e22;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius);
}

.live-badge-done {
  background: var(--text-muted);
}

.live-quarter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-score);
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-zone-scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 90px;
}

.live-team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.live-score {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-score);
}

.live-vs {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.live-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.live-final {
  color: var(--accent-highlight);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Playoff series context banner */
.series-context {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0;
  border-radius: var(--radius);
  background: var(--overlay-light);
  border: 1px solid var(--border);
}

.series-context--semifinal {
  color: var(--accent-elam);
  border-color: rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.08);
}

.series-context--finals {
  color: var(--accent-score);
  border-color: rgba(240, 192, 64, 0.3);
  background: rgba(240, 192, 64, 0.08);
}

.live-leader-sep {
  margin: 0 0.4rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.live-plays {
  max-height: 280px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.live-play-line {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.live-play-line:first-child {
  font-weight: 600;
}

.live-play-clock {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: 0.3rem;
}

.live-play-pts {
  color: var(--accent-score);
  font-weight: 700;
}

.advance-btn {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.advance-btn:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.advance-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== Dramatic Pacing — Visual Treatment ===== */

.play--routine { }

.play--elevated {
  font-weight: 500;
}

.play--high {
  background: rgba(83, 216, 251, 0.08);
  font-weight: 600;
  font-size: 1.05em;
  border-left: 2px solid var(--accent-governance);
  padding-left: 0.4rem;
}

.play--peak {
  background: rgba(233, 69, 96, 0.12);
  font-weight: 700;
  font-size: 1.1em;
  border-left: 3px solid var(--accent-highlight);
  padding-left: 0.4rem;
  animation: drama-pulse 0.6s ease-in-out;
}

.play--suspense {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.3rem 0;
  animation: suspense-fade 1.5s ease-in-out infinite;
}

.suspense-text {
  letter-spacing: 0.05em;
}

@keyframes drama-pulse {
  0% { background: rgba(233, 69, 96, 0.25); }
  50% { background: rgba(233, 69, 96, 0.05); }
  100% { background: rgba(233, 69, 96, 0.12); }
}

@keyframes suspense-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Drama badges — inline labels for dramatic moments */
.drama-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.drama-badge--lead {
  background: var(--accent-governance);
  color: var(--bg-primary);
}

.drama-badge--winner {
  background: var(--accent-score);
  color: var(--bg-primary);
  animation: drama-pulse 0.6s ease-in-out;
}

.drama-badge--elam {
  background: var(--accent-elam);
  color: var(--bg-primary);
}

.drama-badge--run {
  background: var(--accent-success);
  color: var(--bg-primary);
}

.drama-badge--tied {
  background: var(--accent-report);
  color: var(--bg-primary);
}

/* ===== Performance Trajectory ===== */

/* Trend pills */
.trajectory-trends {
  margin-top: 1rem;
  border-top: 1px solid var(--bg-secondary, #333);
  padding-top: 0.75rem;
}

.trend-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trend-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  background: var(--bg-secondary, #2a2a3e);
  color: var(--text-secondary, #ccc);
  border: 1px solid var(--bg-secondary, #444);
}

.trend-pill--streak {
  background: rgba(255, 165, 0, 0.15);
  color: var(--accent-score, #ffa500);
  border-color: rgba(255, 165, 0, 0.3);
}

.trend-pill--home_away {
  background: rgba(100, 200, 255, 0.12);
  color: var(--accent-governance, #64c8ff);
  border-color: rgba(100, 200, 255, 0.25);
}

.trend-pill--recent {
  background: rgba(120, 220, 120, 0.12);
  color: var(--accent-success, #78dc78);
  border-color: rgba(120, 220, 120, 0.25);
}

/* Win rate timeline SVG chart */
.trajectory-timeline {
  margin-top: 1rem;
  border-top: 1px solid var(--bg-secondary, #333);
  padding-top: 0.75rem;
}

.timeline-chart {
  margin-top: 0.5rem;
}

.timeline-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.timeline-grid {
  stroke: var(--bg-secondary, #333);
  stroke-width: 0.5;
  stroke-dasharray: 4 4;
}

.timeline-grid--mid {
  stroke-width: 1;
  stroke-dasharray: none;
  opacity: 0.5;
}

.timeline-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-rule-marker {
  stroke: var(--accent-governance, #64c8ff);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.6;
}

.timeline-rule-dot {
  fill: var(--accent-governance, #64c8ff);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
}

/* Rule regime comparison */
.regime-table {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.regime-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-secondary, #1e1e2e);
}

.regime-row--current {
  border: 1px solid var(--accent-governance, #64c8ff);
  background: rgba(100, 200, 255, 0.06);
}

.regime-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 60%;
}

.regime-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.regime-record {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.regime-wl {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.regime-pct {
  font-size: 0.85rem;
  font-weight: 600;
}

.regime-diff {
  font-size: 0.8rem;
}

/* Governor impact cards */
.governor-impact-card {
  padding: 0.75rem;
  border-radius: 6px;
  background: var(--bg-secondary, #1e1e2e);
  border-left: 3px solid var(--accent-governance, #64c8ff);
}

.impact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.impact-proposal {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
}

.impact-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}

.impact-badge--helped {
  background: rgba(120, 220, 120, 0.2);
  color: var(--accent-success, #78dc78);
}

.impact-badge--hurt {
  background: rgba(255, 100, 100, 0.2);
  color: var(--accent-danger, #ff6464);
}

.impact-badge--neutral {
  background: rgba(200, 200, 200, 0.15);
  color: var(--text-secondary, #999);
}

.impact-badge--too-early-to-tell {
  background: rgba(255, 165, 0, 0.15);
  color: var(--accent-score, #ffa500);
}

.impact-details {
  margin-bottom: 0.5rem;
}

.impact-records {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.impact-before, .impact-after {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.impact-arrow {
  font-size: 1.2rem;
  color: var(--text-secondary, #999);
  padding-top: 0.8rem;
}

/* ===== Team Color Utilities ===== */
/* Use --tc for the raw team color, --tcl for a light-safe variant.
   In dark mode, both resolve to the raw color.
   In light mode, .tc uses --tcl which is darkened for readability. */
.tc       { color: var(--tcl, var(--tc)); }
.tc-bg    { background: color-mix(in srgb, var(--tc) 10%, var(--bg-card)); }
.tc-border { border-color: var(--tcl, var(--tc)); }
.tc-dot   { background: var(--tc); }
.tc-stroke { stroke: var(--tcl, var(--tc)); }

[data-theme="dark"] .tc       { color: var(--tc); }
[data-theme="dark"] .tc-bg    { background: var(--tc2, var(--bg-card)); }
[data-theme="dark"] .tc-border { border-color: var(--tc); }
[data-theme="dark"] .tc-stroke { stroke: var(--tc); }

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
}

/* Show correct icon per theme */
.theme-toggle .icon-sun  { display: inline; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

/* ===== Spider Chart Light Mode Fix ===== */
.spider-avg-fill  { fill: var(--overlay-light); stroke: var(--text-muted); opacity: 0.4; }
