:root {
  color-scheme: dark;
  --bg: #08040f;
  --panel: rgba(255,255,255,.075);
  --panel-strong: rgba(255,255,255,.12);
  --text: #f8f4ff;
  --muted: rgba(248,244,255,.64);
  --line: rgba(255,255,255,.14);
  --accent: #a855f7;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(168,85,247,.32), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(34,211,238,.22), transparent 30rem),
    linear-gradient(135deg, #08040f, #12051f 55%, #08040f);
  color: var(--text);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  padding: .65rem .9rem;
  cursor: pointer;
}
button:hover { background: rgba(255,255,255,.14); }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(255,255,255,.045));
  box-shadow: 0 22px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 24px;
}
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-size: clamp(38px, 7vw, 72px); max-width: 900px; letter-spacing: -.055em; }
h2 { font-size: 30px; letter-spacing: -.03em; }
h3 { font-size: 22px; margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 18px; max-width: 760px; margin: 18px 0 0; }
.grid { display: grid; gap: 18px; margin-top: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col-wide { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.status-card { min-width: 220px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: rgba(0,0,0,.16); }
.status-card small { display: block; color: var(--muted); margin-top: 2px; }
.pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 8px rgba(52,211,153,.12); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.facts-single { grid-template-columns: 1fr; }
.compact div { padding: 12px; }
.facts div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(0,0,0,.12); }
dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
dd { margin: 6px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 900; }
.artifact code { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.28); color: #e9d5ff; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.actions a { border: 1px solid rgba(34,211,238,.35); border-radius: 999px; padding: .65rem .9rem; background: rgba(34,211,238,.08); }
.muted { color: var(--muted); overflow-wrap: anywhere; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.section-head.slim { margin-bottom: 12px; }
.pill { color: #fde68a; border: 1px solid rgba(251,191,36,.28); background: rgba(251,191,36,.09); border-radius: 999px; padding: .4rem .7rem; font-size: 12px; font-weight: 800; }
.game-list-panel { min-height: 100%; }
.detail-stack { display: grid; gap: 18px; }
.game-list { display: grid; gap: 10px; max-height: 560px; overflow: auto; }
.game-item { border-radius: 18px; padding: 14px; text-align: left; display: grid; gap: 4px; }
.game-item strong { font-size: 14px; }
.game-item span, .game-item small { color: var(--muted); }
.game-item.active { border-color: rgba(34,211,238,.5); background: rgba(34,211,238,.1); }
.timeline { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.timeline li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.timeline li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 900; }
.timeline strong { display: block; }
.timeline span { color: var(--muted); }
.judge-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.judge-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(0,0,0,.14); }
.judge-card p, .judge-card small { color: var(--muted); }
.judge-card p { margin: 8px 0; }
.judge-card.wide { grid-column: 1 / -1; }
.judge-card.ok { box-shadow: inset 0 0 0 1px rgba(52,211,153,.15); }
.judge-card.warn { box-shadow: inset 0 0 0 1px rgba(251,191,36,.15); }
.verify-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.verify-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(0,0,0,.14); }
.verify-card.ok { box-shadow: inset 0 0 0 1px rgba(52,211,153,.15); }
.verify-card.warn { box-shadow: inset 0 0 0 1px rgba(251,191,36,.15); }
.verify-card p { color: var(--muted); margin: 8px 0 0; overflow-wrap: anywhere; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.cards div { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: rgba(0,0,0,.14); }
.cards p { color: var(--muted); margin: 8px 0 0; }
.memory-list { display: grid; gap: 12px; }
.memory-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(0,0,0,.14); }
.memory-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.memory-head span, .memory-card p, .memory-card small { color: var(--muted); }
.memory-card p { margin: 0 0 8px; }
@media (max-width: 820px) {
  .hero, .two, .two-col-wide, .cards, .verify-grid, .judge-map { grid-template-columns: 1fr; display: grid; }
  .status-card { width: 100%; }
  .facts { grid-template-columns: 1fr; }
}
