  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: #000; font-family: 'Courier New', monospace;
    user-select: none; -webkit-user-select: none; touch-action: none;
  }
  #game-container {
    position: relative; width: 100vw; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: #000;
  }
  canvas {
    background: #1a1a2e; image-rendering: pixelated; image-rendering: crisp-edges;
    touch-action: none; max-width: 100%; max-height: 100%;
  }
  #hud {
    position: absolute; top: 8px; left: 8px; right: 8px;
    color: #ffd84a; font-size: 14px; font-weight: bold;
    display: flex; justify-content: space-between; pointer-events: none;
    text-shadow: 1px 1px 0 #000; z-index: 10;
  }
  #controls {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; padding: 16px;
    pointer-events: none; z-index: 10;
  }
  .control-group { display: flex; gap: 12px; pointer-events: auto; }
  .btn {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.18); border: 2px solid rgba(255,255,255,0.4);
    color: #fff; font-size: 24px; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    user-select: none; touch-action: none; cursor: pointer;
  }
  .btn:active, .btn.pressed { background: rgba(255,216,74,0.5); border-color: #ffd84a; }
  #jump-btn { width: 80px; height: 80px; background: rgba(255,216,74,0.25); border-color: #ffd84a; }
  #overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.85);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #ffd84a; text-align: center; padding: 20px; z-index: 20;
  }
  #overlay h1 { font-size: 36px; margin-bottom: 8px; text-shadow: 2px 2px 0 #c0392b; letter-spacing: 2px; }
  #overlay h2 { font-size: 20px; margin-bottom: 16px; color: #fff; }
  #overlay p { font-size: 14px; line-height: 1.6; color: #ccc; max-width: 320px; margin-bottom: 8px; }
  .control-help { color: #ffd84a; margin-top: 12px; }
  #overlay button {
    margin-top: 20px; padding: 14px 32px; font-size: 18px; font-weight: bold;
    background: #ffd84a; color: #1a1a2e; border: none; border-radius: 8px;
    cursor: pointer; font-family: inherit;
  }
  #overlay button:active { transform: scale(0.96); }
  .hidden { display: none !important; }
  #title-cat { font-size: 60px; margin-bottom: 10px; }
  @media (min-width: 768px) {
    #controls { display: none; }
  }
