  /* ===== RESET & BASE ===== */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --neon-green:  #39ff14;
    --neon-lime:   #b2ff59;
    --neon-teal:   #00e5ff;
    --neon-yellow: #ffea00;
    --neon-pink:   #ff1744;
    --bg-dark:     #050510;
    --bg-mid:      #0a0a2e;
    --panel-bg:    rgba(0,229,255,0.07);
    --panel-border:rgba(57,255,20,0.35);
  }

  html, body {
    width: 100%; height: 100%;
    background: var(--bg-dark);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
  }

  body { display: flex; flex-direction: column; align-items: center; justify-content: center; }

  /* ===== HOME BUTTON ===== */
  .btn-home {
    position: fixed; top: 12px; left: 12px; z-index: 999;
    background: rgba(57,255,20,0.12);
    border: 1.5px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-size: 13px; font-weight: 700;
    padding: 7px 14px; border-radius: 6px;
    cursor: pointer; letter-spacing: 1px;
    text-shadow: 0 0 8px var(--neon-green);
    box-shadow: 0 0 12px rgba(57,255,20,0.2);
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }

  /* ===== CANVAS WRAPPER ===== */
  #gameWrapper {
    position: relative;
    width: min(100vw, 160vh);
    max-width: 900px;
  }

  canvas {
    display: block;
    width: 100%;
    image-rendering: pixelated;
    border: 2px solid rgba(57,255,20,0.3);
    box-shadow:
      0 0 30px rgba(57,255,20,0.2),
      0 0 80px rgba(0,229,255,0.1),
      inset 0 0 30px rgba(0,0,0,0.5);
  }

  /* ===== OVERLAYS ===== */
  .overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    background: rgba(5,5,16,0.88);
    padding: 24px;
  }
  .overlay.hidden { display: none; }

  .overlay-title {
    font-size: clamp(28px, 7vw, 52px);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green), 0 0 50px var(--neon-green);
    letter-spacing: 4px;
    text-align: center;
    line-height: 1.1;
    animation: pulse 1.4s ease-in-out infinite alternate;
  }

  .overlay-sub {
    font-size: clamp(11px, 2.5vw, 16px);
    color: var(--neon-teal);
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 0 0 10px var(--neon-teal);
    opacity: 0.85;
  }

  .score-display {
    font-size: clamp(20px, 5vw, 36px);
    color: var(--neon-yellow);
    text-shadow: 0 0 14px var(--neon-yellow);
    letter-spacing: 3px;
    font-weight: 900;
  }

  .hi-score-display {
    font-size: clamp(12px, 3vw, 18px);
    color: var(--neon-lime);
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--neon-lime);
  }

  .overlay-hint {
    font-size: clamp(10px, 2.5vw, 14px);
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
    text-align: center;
    margin-top: 8px;
  }

  .frog-emoji { font-size: clamp(36px, 9vw, 64px); animation: bounce 0.7s ease-in-out infinite alternate; }

  .divider {
    width: 180px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    opacity: 0.5;
  }

  /* ===== MOBILE TAP BUTTON ===== */
  #tapBtn {
    position: absolute; inset: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    border: none;
    display: none;
  }

  /* ===== ANIMATIONS ===== */
  @keyframes pulse {
    from { opacity: 0.85; text-shadow: 0 0 20px var(--neon-green); }
    to   { opacity: 1;    text-shadow: 0 0 40px var(--neon-green), 0 0 80px var(--neon-green); }
  }
  @keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
  }