/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
:root {
    --bg: #0b0e1a;
    --panel: #151a2e;
    --panel-2: #1b2140;
    --border: #2a3150;
    --text: #e8ecff;
    --muted: #8891b5;
    --accent: #5eead4;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    background:
      radial-gradient(ellipse at top, #1a2040 0%, var(--bg) 60%),
      var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    user-select: none;
  }
  .game {
    display: grid;
    grid-template-columns: 150px auto 170px;
    gap: 16px;
    align-items: start;
  }
  .col { display: flex; flex-direction: column; gap: 16px; }
  .panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }
  .panel h3 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  canvas { display: block; }
  #board {
    background: #05070f;
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow:
      0 0 60px rgba(94, 234, 212, 0.08),
      inset 0 0 30px rgba(0,0,0,0.6);
  }
  .center-wrap { padding: 8px; }
  .stat { margin-bottom: 12px; }
  .stat:last-child { margin-bottom: 0; }
  .stat .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .stat .value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
  }
  .lb-entry {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 4px 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .lb-entry:last-child { border-bottom: none; }
  .lb-entry .rank { color: var(--muted); width: 18px; }
  .lb-entry .name { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 6px; }
  .lb-entry .score { color: var(--text); font-weight: 700; }
  .lb-entry.current .name,
  .lb-entry.current .score,
  .lb-entry.current .rank { color: var(--accent); }
  .lb-empty { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 0; }
  .controls {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
  }
  .controls div { display: flex; justify-content: space-between; }
  .controls kbd {
    background: #1f253f;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: inherit;
    color: var(--text);
    font-size: 10px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
    margin-left: 2px;
  }
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 15, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  .overlay.active { display: flex; }
  .overlay-content {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  .overlay h2 { margin-bottom: 8px; font-size: 26px; letter-spacing: 1px; }
  .overlay p { color: var(--muted); margin-bottom: 20px; font-size: 13px; }
  .overlay input {
    background: #0b0e1a;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    margin-bottom: 14px;
    outline: none;
  }
  .overlay input:focus { border-color: var(--accent); }
  .overlay button {
    background: var(--accent);
    color: #05070f;
    border: none;
    padding: 11px 28px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .overlay button:hover { filter: brightness(1.1); }
  .title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
  }
  .touch-controls { display: none; }
  .tc-btn {
    min-height: 54px;
    min-width: 44px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-bottom-width: 3px;
    color: var(--text);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .tc-btn:active,
  .tc-btn.pressed {
    background: var(--accent);
    color: #05070f;
    border-bottom-width: 1px;
    transform: translateY(2px);
  }
  @media (max-width: 768px) {
    body {
      padding: 8px;
      align-items: flex-start;
      min-height: 100vh;
    }
    .game {
      display: flex;
      flex-direction: column;
      gap: 8px;
      width: 100%;
      max-width: 440px;
    }
    .col {
      display: flex;
      flex-direction: row;
      gap: 8px;
      flex-wrap: nowrap;
    }
    .col > .panel { flex: 1; min-width: 0; }
    .controls-panel { display: none !important; }
    .center-wrap { order: -1; padding: 6px; }
    #board {
      width: 100%;
      max-width: 100%;
      height: auto;
      max-height: 52vh;
      display: block;
      margin: 0 auto;
    }
    #hold, #next {
      width: 100%;
      max-width: 100%;
      height: auto;
    }
    .panel { padding: 10px; }
    .panel h3 { font-size: 9px; margin-bottom: 6px; letter-spacing: 1.4px; }
    .stat { margin-bottom: 8px; }
    .stat .label { font-size: 9px; }
    .stat .value { font-size: 18px; }
    .touch-controls {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      padding: 8px;
    }
    .tc-drop { grid-column: 1 / -1; }
    .lb-entry { font-size: 10px; padding: 3px 0; }
    .title { font-size: 10px; margin-bottom: 6px; }
  }
  @media (max-width: 480px) {
    body { padding: 4px; }
    .game { gap: 6px; }
    .panel { padding: 7px; }
    .center-wrap { padding: 4px; }
    .tc-btn { min-height: 46px; font-size: 12px; }
    .touch-controls { gap: 5px; padding: 6px; }
    #board { max-height: 42vh; }
    .stat { margin-bottom: 4px; }
    .stat .value { font-size: 15px; }
    .stat .label { font-size: 8px; }
    .panel h3 { font-size: 9px; margin-bottom: 4px; }
    .lb-entry { font-size: 10px; padding: 2px 0; }
    .lb-entry .rank { width: 14px; }
  }
