/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
* { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { width: 100%; height: 100%; overflow: hidden; background: #000; font-family: 'Segoe UI', system-ui, sans-serif; }
  canvas { display: block; cursor: crosshair; max-width: 100%; }

  /* UI Overlay */
  .ui-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }
  .ui-overlay > * { pointer-events: auto; }

  /* Top Bar */
  .top-bar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  }
  .title {
    font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.9);
    letter-spacing: 2px; text-transform: uppercase;
  }
  .title span { color: #ff6b35; }
  .stats {
    display: flex; gap: 20px; font-size: 12px; color: rgba(255,255,255,0.6);
    font-family: 'Consolas', 'Courier New', monospace;
  }
  .stats .val { color: #fff; font-weight: 600; }

  /* Bottom Toolbar */
  .bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: center; align-items: center; gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  }
  .particle-btn {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer; transition: all 0.2s; position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 600;
  }
  .particle-btn:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.5); }
  .particle-btn.active { border-color: #fff; transform: scale(1.2); box-shadow: 0 0 20px currentColor; }
  .particle-btn .key {
    position: absolute; top: -18px; font-size: 10px; color: rgba(255,255,255,0.4);
    font-family: monospace;
  }

  .separator { width: 1px; height: 30px; background: rgba(255,255,255,0.15); margin: 0 8px; }

  /* Tool Buttons */
  .tool-btn {
    padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7);
    font-size: 11px; cursor: pointer; transition: all 0.2s; font-family: inherit;
    text-transform: uppercase; letter-spacing: 1px;
  }
  .tool-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
  .tool-btn.active { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

  /* Preset Bar */
  .preset-bar {
    position: absolute; top: 50px; left: 20px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .preset-btn {
    padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.6);
    font-size: 11px; cursor: pointer; transition: all 0.2s; font-family: inherit;
    text-align: left; backdrop-filter: blur(4px);
  }
  .preset-btn:hover { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.3); }

  /* Settings Panel */
  .settings-toggle {
    position: absolute; top: 50px; right: 20px;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.6);
    font-size: 18px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }
  .settings-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .settings-panel {
    position: absolute; top: 50px; right: 20px;
    width: 220px; padding: 16px; border-radius: 10px;
    background: rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px); display: none;
  }
  .settings-panel.open { display: block; }
  .settings-panel h3 {
    font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 12px;
  }
  .slider-group { margin-bottom: 14px; }
  .slider-label {
    display: flex; justify-content: space-between; font-size: 11px;
    color: rgba(255,255,255,0.6); margin-bottom: 4px;
  }
  .slider-label .val { color: #fff; }
  input[type="range"] {
    width: 100%; -webkit-appearance: none; height: 3px;
    background: rgba(255,255,255,0.15); border-radius: 2px; outline: none;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; cursor: pointer;
  }

  /* Help Hint */
  .help-hint {
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
    font-size: 12px; color: rgba(255,255,255,0.3);
    transition: opacity 1s; white-space: nowrap;
  }

  /* Flash overlay for big events */
  .flash {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #fff; opacity: 0; pointer-events: none; z-index: 5;
    transition: opacity 0.1s;
  }

  /* Mobile adjustments */
  @media (max-width: 600px) {
    .title { font-size: 13px; letter-spacing: 1px; }
    .stats { gap: 10px; font-size: 10px; }
    .particle-btn { width: 44px; height: 44px; min-height: 44px; }
    .particle-btn .key { display: none; }
    .preset-bar { top: 45px; left: 10px; }
    .preset-btn { font-size: 10px; padding: 5px 10px; min-height: 44px; }
    .bottom-bar { padding: 12px 10px; gap: 6px; flex-wrap: wrap; }
    .tool-btn { padding: 6px 10px; font-size: 10px; min-height: 44px; }
    .settings-toggle { min-height: 44px; min-width: 44px; width: 44px; height: 44px; }
    .settings-panel { width: 180px; right: 10px; }
  }

  /* Small mobile / iframe embed */
  @media (max-width: 480px) {
    .top-bar { padding: 8px 10px; }
    .title { font-size: 12px; letter-spacing: 0.5px; }
    .stats { gap: 6px; font-size: 9px; }
    .bottom-bar { padding: 10px 6px; gap: 4px; }
    .particle-btn { width: 40px; height: 40px; min-height: 44px; min-width: 40px; font-size: 9px; }
    .tool-btn { padding: 5px 8px; font-size: 9px; min-height: 44px; letter-spacing: 0.5px; }
    .separator { margin: 0 4px; height: 24px; }
    .preset-bar { top: 40px; left: 6px; }
    .preset-btn { font-size: 9px; padding: 4px 8px; min-height: 44px; }
    .settings-toggle { top: 40px; right: 6px; }
    .settings-panel { right: 6px; top: 40px; width: 160px; padding: 12px; }
    .help-hint { font-size: 10px; bottom: 70px; }
  }
