/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
html, body {
    margin: 0;
    padding: 0;
    background: #0a0a0f;
    color: #e8e8ee;
    font-family: system-ui, -apple-system, sans-serif;
    height: 100%;
  }
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 24px;
    box-sizing: border-box;
    user-select: none;
  }
  h1 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #ccd;
  }
  .bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 6px 0;
  }
  button {
    padding: 8px 14px;
    background: #1a1a22;
    color: #e8e8ee;
    border: 2px solid #2a2a34;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background 0.1s, border-color 0.1s;
  }
  button:hover { background: #26262e; }
  button.active { background: #333340; border-color: #fff; }
  .mat-btn { min-width: 72px; }
  .mat-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
  }
  label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #aaa;
  }
  input[type=range] { width: 140px; accent-color: #888; }
  canvas {
    border: 2px solid #2a2a34;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    background: #000;
    cursor: crosshair;
    touch-action: none;
    max-width: calc(100vw - 24px);
    height: auto;
  }
  .hint {
    font-size: 12px;
    opacity: 0.55;
    margin-top: 10px;
    text-align: center;
    max-width: 600px;
    line-height: 1.5;
  }
  .fps {
    position: fixed;
    top: 10px;
    right: 14px;
    font-size: 11px;
    opacity: 0.4;
    font-family: monospace;
  }
  @media (max-width: 768px) {
    body { padding: 10px 6px 16px; }
    h1 { font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
    .bar { gap: 5px; margin: 4px 0; }
    button {
      min-height: 44px;
      padding: 10px 12px;
      font-size: 13px;
    }
    .mat-btn { min-width: 64px; }
    label { min-height: 44px; font-size: 13px; }
    input[type=range] { width: 110px; height: 28px; }
    .hint { font-size: 11px; margin-top: 8px; }
    .fps { top: 6px; right: 8px; font-size: 10px; }
  }
  @media (max-width: 480px) {
    h1 { font-size: 13px; margin-bottom: 6px; }
    button {
      min-height: 44px;
      padding: 10px 10px;
      font-size: 12px;
    }
    .mat-btn { min-width: 56px; }
    .mat-swatch { width: 8px; height: 8px; margin-right: 4px; }
    .bar { gap: 4px; }
    .hint { display: none; }
    label { font-size: 12px; gap: 6px; }
    input[type=range] { width: 90px; }
  }
