/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
* { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    background: radial-gradient(ellipse at top, #161821 0%, #0a0b10 100%);
    color: #e6e6ea;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 14px;
    user-select: none;
  }
  h1 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.25em;
    opacity: 0.55;
    text-transform: uppercase;
  }
  #wrap { display: flex; gap: 18px; align-items: flex-start; }
  #canvas {
    background: #05060a;
    border: 1px solid #24262e;
    border-radius: 4px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: crosshair;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 60px rgba(60,80,140,0.08);
  }
  #ui {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 190px;
  }
  .group {
    background: rgba(22,24,32,0.85);
    border: 1px solid #23252e;
    border-radius: 6px;
    padding: 12px;
    backdrop-filter: blur(4px);
  }
  .group h2 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.45;
    margin-bottom: 10px;
    font-weight: 600;
  }
  .mats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .mat {
    background: #1b1d25;
    border: 1px solid #2a2d38;
    color: #d6d8de;
    padding: 7px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.1s, border-color 0.1s;
    font-family: inherit;
  }
  .mat:hover { background: #222531; }
  .mat.active {
    background: #2a2e3c;
    border-color: #4a5168;
    box-shadow: 0 0 0 1px rgba(120,140,200,0.15);
  }
  .swatch {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.6);
    flex-shrink: 0;
  }
  .mat .label { flex: 1; }
  .mat .key {
    opacity: 0.4;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
  }
  .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    gap: 8px;
    opacity: 0.85;
  }
  .row input[type=range] { flex: 1; accent-color: #5a7fd8; }
  .row .val {
    min-width: 22px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
  }
  button.act {
    background: #1b1d25;
    border: 1px solid #2a2d38;
    color: #d6d8de;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    width: 100%;
    font-family: inherit;
    transition: background 0.1s;
  }
  button.act:hover { background: #222531; }
  button.act + button.act { margin-top: 5px; }
  .hint {
    font-size: 10px;
    opacity: 0.5;
    line-height: 1.6;
  }
  kbd {
    background: #24262e;
    border: 1px solid #3a3d48;
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 9px;
    font-family: ui-monospace, Consolas, monospace;
    color: #d6d8de;
  }
  #fps {
    font-size: 10px;
    opacity: 0.4;
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  @media (max-width: 768px) {
    body { padding: 10px; gap: 10px; }
    #wrap { flex-direction: column; gap: 10px; width: 100%; align-items: stretch; }
    #canvas {
      width: 100%;
      max-width: 100%;
      height: auto;
      max-height: 55vh;
      aspect-ratio: 4 / 3;
      order: 1;
    }
    #ui {
      width: 100%;
      order: 2;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
    }
    .group { flex: 1 1 45%; padding: 10px; }
    .group.hint, #fps { flex-basis: 100%; }
    .mat { min-height: 44px; font-size: 12px; }
    button.act { min-height: 44px; font-size: 12px; }
    .row input[type=range] { min-height: 44px; }
    h1 { font-size: 12px; }
  }
  @media (max-width: 480px) {
    body { padding: 6px; gap: 8px; }
    #canvas { max-height: 50vh; }
    .group { padding: 8px; flex-basis: 100%; }
    .group h2 { font-size: 10px; margin-bottom: 6px; }
    .mats { grid-template-columns: 1fr 1fr 1fr; }
    .mat { font-size: 11px; padding: 8px 6px; }
    .hint { font-size: 10px; }
  }
