
  html, body {
    margin: 0; padding: 0;
    height: 100%; width: 100%;
    overflow: hidden;
    background: #fff;
    font-family: system-ui, sans-serif;
    color: #111;
  }
  #game {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #fff;
    cursor: crosshair;
  }

  /* Bottom control panel */
  #controls {
    position: fixed;
    bottom: -140px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    color: #eee;
    text-align: center;
    padding: 12px 0 28px 0;
    transition: bottom 0.3s ease-in-out;
  }
  #controls:hover { bottom: 0; }

  #hoverzone {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
  }

  #hoverzone:hover + #controls,
  #controls:hover {
    bottom: 0;
  }

  button, select, input[type=range] {
    margin: 4px;
    background: #222;
    color: #eee;
    border: 1px solid #444;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  button svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }

  button:hover, select:hover, input[type=range]:hover { background: #333; }
  label { margin-left: 10px; }

  /* GitHub watermark link */
  #watermark {
    position: absolute;
    right: 10px;
    bottom: 6px;
    font-size: 12px;
    color: #aaa;
  }
  #watermark a {
    color: #aaa;
    text-decoration: none;
  }
  #watermark a:hover {
    color: #fff;
    text-decoration: underline;
  }

  /* Custom popup overlay */
  #popupOverlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }
  #popupBox {
    background: #fff;
    color: #111;
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    max-width: 320px;
    text-align: center;
  }
  #popupButtons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  #popupButtons button {
    padding: 6px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
  }
  #popupConfirm { background: #d33; color: #fff; }
  #popupCancel { background: #444; color: #eee; }
  #popupConfirm:hover { background: #b00; }
  #popupCancel:hover { background: #333; }
