/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
:root {
    --bg: #05060a;
    --fg: #e8ecf1;
    --accent: #6ee7ff;
    --muted: #8a93a6;
    --panel: rgba(10, 14, 22, 0.72);
    --border: rgba(255,255,255,0.08);
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0; height: 100%; width: 100%;
    background: var(--bg); color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    overflow: hidden;
  }
  #canvas {
    position: fixed; inset: 0; width: 100vw; height: 100vh; display: block;
  }
  .ui {
    position: fixed; top: 16px; left: 16px; right: 16px;
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    z-index: 10; pointer-events: none;
  }
  .panel {
    pointer-events: auto;
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13px;
  }
  .panel label { color: var(--muted); font-size: 12px; }
  button, select, input[type=file]::file-selector-button {
    background: rgba(255,255,255,0.04);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 120ms ease, border-color 120ms ease;
  }
  button:hover, select:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
  button.active { background: var(--accent); color: #001018; border-color: var(--accent); }
  input[type=range] { width: 110px; accent-color: var(--accent); }
  input[type=file] { color: var(--muted); font-size: 12px; max-width: 220px; }
  .modes { display: flex; gap: 6px; flex-wrap: wrap; }
  .hint {
    position: fixed; bottom: 16px; left: 16px; right: 16px;
    color: var(--muted); font-size: 12px; text-align: center;
    pointer-events: none;
  }
  .badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    background: rgba(110,231,255,0.12); color: var(--accent);
    border: 1px solid rgba(110,231,255,0.3); font-size: 11px;
  }
  #startOverlay {
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(110,231,255,0.08), rgba(5,6,10,0.95));
    z-index: 20; cursor: pointer;
  }
  #startOverlay .box {
    text-align: center; padding: 32px 48px;
    border: 1px solid var(--border); border-radius: 16px;
    background: var(--panel); backdrop-filter: blur(16px);
  }
  #startOverlay h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
  #startOverlay p { margin: 4px 0; color: var(--muted); font-size: 13px; }
  .hidden { display: none !important; }

  /* Mobile */
  @media (max-width: 768px) {
    .ui {
      top: 8px; left: 8px; right: 8px; gap: 6px;
      flex-direction: column; align-items: stretch;
      max-height: 55vh; overflow-y: auto;
    }
    .panel {
      padding: 6px 8px; gap: 6px; font-size: 12px;
      flex-wrap: wrap; justify-content: center;
    }
    .panel label { font-size: 11px; }
    button, select {
      min-height: 44px; padding: 8px 10px; font-size: 12px;
    }
    input[type=range] { width: 90px; min-height: 44px; }
    input[type=file] { max-width: 100%; font-size: 11px; min-height: 44px; }
    .modes { justify-content: center; }
    .hint { font-size: 10px; bottom: 6px; left: 6px; right: 6px; }
    #startOverlay .box { padding: 20px 24px; }
    #startOverlay h1 { font-size: 18px; }
    #startOverlay p { font-size: 11px; }
  }
  @media (max-width: 480px) {
    .ui { gap: 4px; max-height: 60vh; }
    .panel { padding: 4px 6px; font-size: 11px; border-radius: 8px; }
    .panel label { font-size: 10px; }
    button, select {
      min-height: 44px; padding: 6px 8px; font-size: 11px;
    }
    .modes button { flex: 1 0 auto; }
    input[type=range] { width: 70px; }
    .hint { display: none; }
  }
