:root {
  font-family: Inter, system-ui, sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 24%),
    linear-gradient(180deg, #020617 0%, #111827 100%);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 24px;
  grid-template-columns: 360px 1fr;
}
.panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.eyebrow,
.section-label,
.hero-label,
.overlay-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: #93c5fd;
}
.sidebar h1,
.game h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.02;
}
.game h2 {
  font-size: 28px;
}
.lede,
.sidebar p,
.game-header p,
.footnote {
  color: #cbd5e1;
}
.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin: 20px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 18px;
}
.hero-value {
  margin-top: 4px;
  font-weight: 700;
  font-size: 18px;
}
.hero-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.1);
  color: #fde68a;
  font-weight: 700;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
button {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: white;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.stats {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}
.stats div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 16px;
}
.stats dt {
  color: #93c5fd;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stats dd { margin: 0; font-size: 16px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.status-idle { color: #cbd5e1; }
.status-live { color: #60a5fa; }
.status-success { color: #34d399; }
.status-warn { color: #fbbf24; }
.status-error { color: #f87171; }
.progress-panel {
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 18px;
}
.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 14px;
}
.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 1);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #34d399);
  transition: width 0.25s ease;
}
.rules {
  border-top: 1px solid rgba(71, 85, 105, 0.45);
  padding-top: 16px;
  color: #cbd5e1;
}
.rules ul { margin: 10px 0 0 18px; padding: 0; }
.game-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(71, 85, 105, 0.65);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
.board-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  cursor: crosshair;
  background: #0f172a;
  min-height: 480px;
}
.board-wrap.disabled { cursor: default; }
#board {
  width: 100%;
  display: block;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}
.board-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.28));
}
.board-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.48);
  transition: opacity 0.2s ease;
}
.board-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.overlay-card {
  max-width: 420px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.overlay-card h3 {
  margin: 8px 0 10px;
  font-size: 28px;
}
.overlay-card p { margin: 0; color: #cbd5e1; }
.crosshair {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid #ef4444;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}
.hidden { display: none; }
.board-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 14px;
}
.footnote { font-size: 14px; margin: 0; max-width: 720px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #cbd5e1;
  font-size: 13px;
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.live { background: #38bdf8; }
.legend-dot.warn { background: #fbbf24; }
.legend-dot.win { background: #34d399; }
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .game-header,
  .board-footer,
  .progress-copy { flex-direction: column; }
  .chips { justify-content: flex-start; }
}
