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

:root {
  --bg:        #070b14;
  --bg2:       #0c1220;
  --bg3:       #111827;
  --card:      #0f1829;
  --card2:     #162035;
  --border:    #1e3050;
  --border2:   #2a4170;
  --accent:    #00d4ff;
  --accent2:   #0099cc;
  --green:     #00e676;
  --red:       #ff3d5a;
  --orange:    #ff9100;
  --yellow:    #ffd600;
  --purple:    #c084fc;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #475569;
  --mono:      'JetBrains Mono', 'Courier New', monospace;
  --sans:      'Inter', -apple-system, sans-serif;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --glow-a:    0 0 20px rgba(0, 212, 255, 0.25);
  --glow-g:    0 0 20px rgba(0, 230, 118, 0.25);
  --glow-r:    0 0 20px rgba(255, 61, 90, 0.30);
}

html, body {
  height: 100%;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ===== HEADER ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.header-nav {
  display: flex;
  gap: 4px;
  background: var(--bg3);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-btn {
  padding: 6px 18px;
  border: none;
  background: transparent;
  color: var(--text2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}

.nav-btn:hover { color: var(--text); background: var(--card2); }
.nav-btn.active { background: var(--accent); color: #000; font-weight: 700; }

.header-meta { font-size: 13px; color: var(--text2); }
.header-meta strong { color: var(--accent); }

/* ===== LAYOUT ===== */
.app-main { overflow-y: auto; height: calc(100vh - 60px); }

.view { display: none; }
.view.active { display: block; }

.screen { display: none; }
.screen.active { display: block; }

/* ===== START SCREEN ===== */
#screen-start {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}

.start-hero { margin-bottom: 36px; }

.hero-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-sub { font-size: 15px; color: var(--text2); }

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

/* Task preview cards */
.task-cards-preview {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: left;
  min-width: 165px;
  transition: border-color 0.2s;
}

.tp-card:hover { border-color: var(--accent); }

.tp-key {
  width: 40px;
  height: 40px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.tp-click { font-size: 10px; width: 48px; }
.tp-qwe { font-size: 10px; width: 48px; }

.tp-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.tp-desc { font-size: 12px; color: var(--text2); }
.tp-desc strong { color: var(--text); }

/* Start stats */
#start-stats { margin-bottom: 32px; }

.start-stat-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sstat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  min-width: 110px;
}

.sstat-val {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 4px;
}

.sstat-lbl { font-size: 11px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }

/* Start button */
.btn-start {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 18px 56px;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.15s;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.35);
}

.btn-start:hover {
  background: #22deff;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.btn-start:active { transform: translateY(0); }

.btn-start-label { font-size: 17px; font-weight: 700; }
.btn-start-sub { font-size: 12px; opacity: 0.65; font-weight: 500; }

/* ===== GAME HUD ===== */
.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.hud-timer { text-align: center; }
.hud-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }

.hud-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.timer-val {
  font-size: 32px;
  color: var(--accent);
}

.timer-val.warning { color: var(--red); animation: pulse-red 0.8s infinite; }

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hud-center { display: flex; gap: 20px; }

.hud-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 18px;
  min-width: 80px;
}

.hud-val.level-up { color: var(--green); animation: flash-up 0.6s; }
.hud-val.level-down { color: var(--red); animation: flash-up 0.6s; }

@keyframes flash-up { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

.hud-metrics { display: flex; gap: 16px; }

.hud-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}

.hm-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.hm-val { font-size: 16px; font-weight: 700; font-family: var(--mono); }

/* ===== GAME ARENA ===== */
.game-arena {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 10px;
}

/* ===== TASK CARDS ===== */
.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}

.task-card.has-target {
  border-color: var(--accent);
  box-shadow: var(--glow-a);
}

.task-card.flash-hit { animation: flash-green 0.35s; }
.task-card.flash-error { animation: flash-red 0.35s; }
.task-card.flash-omission { animation: flash-orange 0.35s; }

@keyframes flash-green {
  0% { background: rgba(0, 230, 118, 0.3); border-color: var(--green); box-shadow: var(--glow-g); }
  100% { background: var(--card); }
}

@keyframes flash-red {
  0% { background: rgba(255, 61, 90, 0.25); border-color: var(--red); box-shadow: var(--glow-r); }
  100% { background: var(--card); }
}

@keyframes flash-orange {
  0% { background: rgba(255, 145, 0, 0.2); border-color: var(--orange); }
  100% { background: var(--card); }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text2);
}

.card-key {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.card-key-multi {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
}

.card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 100px;
  flex-direction: column;
  gap: 8px;
}

/* Stimulus displays */
.stim-display {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--text2);
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
  user-select: none;
}

.stim-display.target {
  color: var(--text);
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Color task */
.color-swatch {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.color-name {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text2);
  transition: color 0.2s;
}

/* Instruction display */
.inst-display {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  transition: all 0.1s;
}

.inst-display.active {
  font-size: 28px;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255, 214, 0, 0.4);
  animation: inst-pulse 0.4s ease-out;
}

@keyframes inst-pulse {
  0% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Progress bars */
.card-prog-wrap {
  height: 3px;
  background: var(--bg2);
  overflow: hidden;
}

.card-prog {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transition: none;
}

/* ===== CIRCLES TASK ===== */
.task-card-circles {
  grid-column: 1 / -1;
  height: 190px;
}

.circles-arena {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.target-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2), transparent);
  border: 2.5px solid;
  cursor: pointer;
  transition: transform 0.1s;
  animation: circle-life linear forwards;
  user-select: none;
}

.target-circle:hover { transform: scale(1.1); }

.target-circle.circle-hit {
  animation: circle-hit-anim 0.2s forwards !important;
}

.target-circle.circle-miss {
  animation: circle-miss-anim 0.3s forwards !important;
}

@keyframes circle-life {
  0%   { opacity: 1; transform: scale(1); }
  70%  { opacity: 0.8; }
  100% { opacity: 0; transform: scale(0.3); }
}

@keyframes circle-hit-anim {
  0%   { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes circle-miss-anim {
  0%   { opacity: 0.6; border-color: var(--red); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Circle color variants */
.circle-c0 { border-color: #00e5ff; box-shadow: 0 0 12px rgba(0,229,255,0.5); background-color: rgba(0,229,255,0.08); }
.circle-c1 { border-color: #c084fc; box-shadow: 0 0 12px rgba(192,132,252,0.5); background-color: rgba(192,132,252,0.08); }
.circle-c2 { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,0.5); background-color: rgba(251,191,36,0.08); }
.circle-c3 { border-color: #34d399; box-shadow: 0 0 12px rgba(52,211,153,0.5); background-color: rgba(52,211,153,0.08); }
.circle-c4 { border-color: #f472b6; box-shadow: 0 0 12px rgba(244,114,182,0.5); background-color: rgba(244,114,182,0.08); }

/* ===== FEEDBACK LAYER ===== */
.feedback-layer {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.feedback-popup {
  position: absolute;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 12px;
  animation: popup-fly 0.85s ease-out forwards;
  pointer-events: none;
  white-space: nowrap;
}

.feedback-hit { color: var(--green); text-shadow: 0 0 10px var(--green); }
.feedback-error { color: var(--red); text-shadow: 0 0 10px var(--red); }
.feedback-level-up { color: var(--accent); font-size: 18px; text-shadow: 0 0 15px var(--accent); }
.feedback-level-down { color: var(--orange); font-size: 18px; }

@keyframes popup-fly {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  30%  { opacity: 1; transform: translateY(-20px) scale(1.05); }
  100% { opacity: 0; transform: translateY(-55px) scale(0.85); }
}

/* ===== RESULTS SCREEN ===== */
#screen-results {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px;
}

.results-wrap { }

.results-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.results-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ADI gauge column */
.adi-gauge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 220px;
}

.adi-gauge-wrap {
  position: relative;
  width: 220px;
  height: 180px;
  flex-shrink: 0;
}

#gauge-canvas { display: block; }

.adi-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
  text-align: center;
}

.adi-num {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.adi-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text2);
}

/* ADI rating label */
.adi-rating {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  border: 1px solid currentColor;
  opacity: 0.9;
}

/* ADI breakdown bars */
.adi-breakdown {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.adi-break-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adi-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: var(--sans);
  transition: background 0.15s;
}

.adi-info-btn:hover { background: var(--accent); color: #000; }

.adi-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.adi-bar-row:last-child { margin-bottom: 0; }

.adi-bar-lbl {
  font-size: 10px;
  color: var(--text2);
  width: 58px;
  flex-shrink: 0;
}

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

.adi-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.adi-bar-val {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--text2);
  width: 42px;
  text-align: right;
  flex-shrink: 0;
}

/* ADI info panel (expandable) */
.adi-info-panel {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px 22px;
  max-width: 420px;
  flex-shrink: 0;
  position: relative;
}

.adi-info-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.adi-info-close:hover { color: var(--text); }

.adi-info-panel h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adi-info-panel > p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 14px;
}

.adi-info-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.adi-info-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.adi-info-icon { font-size: 14px; margin-top: 1px; flex-shrink: 0; }

.adi-info-row strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.adi-info-row span {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.45;
}

.adi-info-scale {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.adi-scale-item {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}

.adi-info-note {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
  margin: 0 !important;
}

/* Results stats grid */
.results-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.rstat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}

.rstat-val {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rstat-lbl { font-size: 11px; color: var(--text2); }

/* Results chart */
.results-chart-section {
  margin-bottom: 24px;
}

.results-chart-section h3,
.history-chart-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-chart-section canvas,
.history-chart-section canvas {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Comparison */
#results-comparison { margin-bottom: 28px; }

.comparison-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.comp-item {
  flex: 1;
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.comp-label { font-size: 11px; color: var(--text2); margin-bottom: 6px; }
.comp-value { font-size: 22px; font-weight: 800; font-family: var(--mono); margin-bottom: 4px; }
.comp-diff { font-size: 13px; font-weight: 700; }
.comp-diff.positive { color: var(--green); }
.comp-diff.negative { color: var(--red); }

/* Results actions */
.results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover { background: #22deff; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover { background: var(--card2); border-color: var(--accent); }

.btn-danger {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(255, 61, 90, 0.4);
  border-radius: 8px;
  padding: 7px 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-danger:hover { background: rgba(255, 61, 90, 0.1); border-color: var(--red); }

/* ===== HISTORY VIEW ===== */
.history-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.history-header h2 { font-size: 24px; font-weight: 800; }

/* History summary */
#history-summary { margin-bottom: 28px; }

.summary-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-card {
  flex: 1;
  min-width: 130px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.summary-value {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--mono);
  margin-bottom: 6px;
}

.summary-label { font-size: 12px; color: var(--text2); }

.history-chart-section { margin-bottom: 28px; }

/* History table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hist-table thead {
  background: var(--bg3);
}

.hist-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.hist-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.hist-table tbody tr:last-child td { border-bottom: none; }
.hist-table tbody tr:hover td { background: var(--card2); }

.empty-row {
  text-align: center;
  color: var(--text2);
  padding: 32px !important;
  font-family: var(--sans) !important;
}

.muted { color: var(--text2); font-size: 13px; text-align: center; padding: 20px; }

/* ===== COLOR UTILITIES ===== */
.green  { color: var(--green) !important; }
.red    { color: var(--red) !important; }
.orange { color: var(--orange) !important; }
.accent { color: var(--accent) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .game-arena {
    grid-template-columns: repeat(2, 1fr);
  }
  .results-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 600px) {
  .hud-metrics { display: none; }
  .hero-title { font-size: 28px; }
  .results-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
