/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
:root {
    --bg: #0b0f1a;
    --panel: #141a2b;
    --panel-2: #1b2338;
    --grid: #1f2740;
    --grid-2: #232c48;
    --text: #e6ecff;
    --muted: #7d87a8;
    --accent: #7aa2ff;
    --good: #6ef0a8;
    --bad: #ff6b8a;
    --shadow: 0 20px 60px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.03) inset;
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: radial-gradient(1200px 800px at 50% -10%, #1a2344 0%, #0b0f1a 60%, #070a14 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow: hidden;
  }
  .wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
  }
  .game {
    display: grid;
    grid-template-columns: 160px auto 200px;
    gap: 16px;
    align-items: start;
  }
  .panel {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
    border: 1px solid #222b47;
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
  }
  .panel h3 {
    margin: 0 0 10px 0;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
  }
  .stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #0f1529 0%, #0a0f20 100%);
    border: 1px solid #222b47;
    box-shadow: var(--shadow);
  }
  canvas { display: block; }
  #board { background: transparent; }
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    font-variant-numeric: tabular-nums;
  }
  .stats .k { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
  .stats .v { font-size: 20px; font-weight: 700; }
  .stats .row { grid-column: span 2; }
  .mini {
    background: #0c1222;
    border: 1px solid #1d2542;
    border-radius: 10px;
    padding: 8px;
  }
  .next-list { display: flex; flex-direction: column; gap: 6px; }
  .leader {
    margin-top: 12px;
    font-size: 12px;
  }
  .leader ol {
    margin: 0; padding-left: 20px;
    color: var(--text);
  }
  .leader li {
    padding: 3px 0;
    display: flex; justify-content: space-between;
    gap: 8px;
  }
  .leader .name { color: var(--text); }
  .leader .sc { color: var(--accent); font-variant-numeric: tabular-nums; }
  .controls {
    margin-top: 12px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
  }
  .controls kbd {
    background: #0c1222;
    border: 1px solid #27305a;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--text);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 10px;
  }
  .overlay {
    position: absolute; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(5,8,16,.78);
    backdrop-filter: blur(4px);
    z-index: 10;
  }
  .overlay.show { display: flex; }
  .card {
    background: linear-gradient(180deg, #161e36 0%, #0f1529 100%);
    border: 1px solid #2a345a;
    border-radius: 14px;
    padding: 22px 26px;
    text-align: center;
    min-width: 260px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
  }
  .card h2 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: .02em;
  }
  .card p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
  .btn {
    background: linear-gradient(180deg, #2a3a6e 0%, #1c2850 100%);
    border: 1px solid #3a4a82;
    color: var(--text);
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
  }
  .btn:hover { filter: brightness(1.15); }
  .input {
    background: #0c1222;
    border: 1px solid #2a345a;
    color: var(--text);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
    font-family: inherit;
    text-align: center;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .toast {
    position: absolute;
    top: 14px; left: 50%; transform: translateX(-50%);
    background: rgba(12,18,34,.9);
    border: 1px solid #2a345a;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--good);
    opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
  @media (max-width: 768px) {
    .wrap { padding: 8px; align-items: start; }
    .game {
      grid-template-columns: 1fr;
      gap: 8px;
      width: 100%;
      max-width: 100%;
    }
    .panel { padding: 10px; }
    .stage { order: -1; }
    #board {
      width: min(100%, 260px);
      height: auto;
      max-height: 360px;
      display: block;
      margin: 0 auto;
    }
    .game > div:first-child,
    .game > div:last-child {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .game > div:first-child > .panel,
    .game > div:last-child > .panel { margin: 0; }
    .next-list { flex-direction: row; overflow-x: auto; }
    .mini canvas { max-width: 100%; height: auto; }
    .stats .v { font-size: 16px; }
    .stats .k { font-size: 10px; }
    .btn { min-height: 44px; padding: 10px 18px; }
    .input { min-height: 44px; font-size: 14px; }
    .controls { font-size: 11px; }
    .leader { font-size: 12px; }
  }
  @media (max-width: 480px) {
    .wrap { padding: 4px; }
    #board {
      width: min(100%, 220px);
      max-height: 300px;
    }
    .panel h3 { font-size: 10px; }
    .stats .v { font-size: 14px; }
    .card { min-width: 200px; padding: 16px 18px; }
    .card h2 { font-size: 18px; }
    .btn { min-height: 44px; font-size: 13px; }
    .controls { display: none; }
  }
