/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
* { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    background: #0a0a0a;
    color: #c8b88a;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
  }
  #game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 100vw;
  }
  #hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 6px 12px;
    background: #1a1410;
    border: 1px solid #3a2a1a;
    border-radius: 4px;
    font-size: 14px;
  }
  #hud .stat { margin-right: 18px; }
  #hud .hp { color: #e55; }
  #hud .atk { color: #e93; }
  #hud .def { color: #5ae; }
  #hud .lvl { color: #ae5; }
  #hud .xp { color: #da5; }
  #hud .floor { color: #a8a; }
  #hud .gold { color: #fd5; }
  canvas {
    border: 1px solid #3a2a1a;
    image-rendering: pixelated;
    max-width: 100%;
    height: auto;
  }
  #log {
    width: 100%;
    height: 80px;
    padding: 6px 10px;
    background: #1a1410;
    border: 1px solid #3a2a1a;
    border-radius: 4px;
    font-size: 12px;
    overflow-y: auto;
    line-height: 1.5;
  }
  #log .msg { opacity: 0.6; }
  #log .msg:last-child { opacity: 1; }
  #log .msg-combat { color: #e55; }
  #log .msg-item { color: #5e5; }
  #log .msg-info { color: #5ae; }
  #log .msg-danger { color: #f55; font-weight: bold; }
  #log .msg-levelup { color: #fd5; font-weight: bold; }

  #overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 10;
    flex-direction: column;
  }
  #overlay.active { display: flex; }
  #overlay h1 { font-size: 36px; margin-bottom: 10px; }
  #overlay h2 { font-size: 20px; margin-bottom: 20px; color: #a89070; }
  #overlay .info { font-size: 14px; color: #887860; margin-bottom: 6px; }
  #overlay .prompt { font-size: 16px; color: #c8b88a; margin-top: 20px; }
  .death-title { color: #c22; }
  .win-title { color: #fd5; }

  #inventory-panel {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1410;
    border: 2px solid #5a4a3a;
    border-radius: 8px;
    padding: 20px;
    z-index: 20;
    min-width: 340px;
    max-height: 70vh;
    overflow-y: auto;
  }
  #inventory-panel.active { display: block; }
  #inventory-panel h2 { text-align: center; margin-bottom: 12px; color: #e93; }
  .inv-item {
    padding: 6px 10px;
    margin: 3px 0;
    background: #2a1a10;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
  }
  .inv-item:hover { background: #3a2a1a; }
  .inv-item .key { color: #5ae; margin-right: 8px; }
  .inv-item .equipped { color: #ae5; font-size: 11px; }
  .inv-section { color: #887860; font-size: 12px; margin-top: 10px; margin-bottom: 4px; }
  .inv-hint { color: #665840; font-size: 11px; text-align: center; margin-top: 10px; }

  /* Mobile responsive */
  @media (max-width: 768px) {
    body { align-items: flex-start; padding-top: 2px; }
    #hud { font-size: 10px; padding: 3px 6px; flex-wrap: wrap; gap: 2px; }
    #hud .stat { margin-right: 8px; }
    #log { height: 50px; font-size: 10px; padding: 4px 6px; }
    #inventory-panel { min-width: 280px; padding: 12px; }
    .inv-item { min-height: 44px; align-items: center; }
    #overlay h1 { font-size: 24px; }
    #overlay h2 { font-size: 14px; }
    #overlay .info { font-size: 11px; }
    #overlay .prompt { font-size: 12px; }
    button, .inv-item, .inv-hint, .prompt, [role="button"] { min-height: 44px; display: flex; align-items: center; }
  }
  @media (max-width: 480px) {
    #hud { font-size: 10px; padding: 2px 4px; }
    #hud .stat { margin-right: 5px; }
    #log { height: 40px; font-size: 10px; }
    #inventory-panel { min-width: auto; width: 90vw; }
    canvas { max-width: 100%; width: 375px; height: auto; }
    button, .inv-item, .inv-hint, .prompt, [role="button"] { min-height: 44px; }
  }
