/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
* { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
  }

  #toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #12121a;
    border-bottom: 1px solid #1e1e2e;
    flex-wrap: wrap;
    z-index: 10;
  }

  .element-btn {
    padding: 6px 14px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .element-btn:hover { transform: scale(1.05); filter: brightness(1.2); }
  .element-btn.active { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.3); }

  .separator { width: 1px; height: 28px; background: #2a2a3a; margin: 0 4px; }

  .tool-btn {
    padding: 5px 10px;
    border: 1px solid #2a2a3a;
    border-radius: 5px;
    background: #1a1a2a;
    color: #aaa;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
  }
  .tool-btn:hover { background: #252540; color: #fff; }
  .tool-btn.active-tool { background: #333355; color: #fff; border-color: #5555aa; }

  #brush-size-display {
    color: #888;
    font-size: 12px;
    min-width: 60px;
    text-align: center;
  }

  #particle-count {
    color: #555;
    font-size: 11px;
    margin-left: auto;
  }

  #fps-display {
    color: #555;
    font-size: 11px;
    margin-left: 8px;
  }

  #canvas-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
  }

  canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 100%;
    height: 100%;
    cursor: crosshair;
  }

  #tooltip {
    position: fixed;
    background: rgba(10,10,20,0.92);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 100;
    max-width: 220px;
    line-height: 1.4;
  }
  #tooltip.visible { opacity: 1; }

  /* Category labels */
  .cat-label {
    font-size: 10px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px;
    align-self: center;
  }

  /* Keyboard hint */
  .key-hint {
    font-size: 9px;
    color: #666;
    display: block;
    text-align: center;
    margin-top: 1px;
  }

  /* Mobile responsive */
  @media (max-width: 768px) {
    #toolbar {
      gap: 4px;
      padding: 6px 8px;
    }
    .element-btn {
      padding: 8px 10px;
      font-size: 11px;
      min-height: 40px;
    }
    .tool-btn {
      padding: 8px 10px;
      font-size: 11px;
      min-height: 40px;
    }
    .key-hint {
      display: none;
    }
    .cat-label {
      font-size: 9px;
    }
    .separator {
      height: 20px;
      margin: 0 2px;
    }
    #brush-size-display {
      font-size: 11px;
      min-width: 50px;
    }
    #particle-count, #fps-display {
      font-size: 10px;
    }
  }

  @media (max-width: 480px) {
    .element-btn {
      padding: 8px 6px;
      font-size: 10px;
      letter-spacing: 0;
    }
    .tool-btn {
      padding: 8px 8px;
      font-size: 10px;
    }
    .cat-label {
      display: none;
    }
    .separator {
      display: none;
    }
    #tooltip {
      max-width: 160px;
      font-size: 11px;
    }
  }
