  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body {
    width: 100%; height: 100%; overflow: hidden;
    background: #05060f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  #game { display: block; width: 100vw; height: 100vh; }

  #hud {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    pointer-events: none;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    gap: 12px;
  }
  #hud > * { pointer-events: auto; }
  #score { font-weight: 600; font-size: 20px; }
  #lives { font-size: 20px; letter-spacing: 2px; transition: transform 0.2s; }
  #lives.bonus { animation: bonusPop 0.5s; }
  @keyframes bonusPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); color: #66ff99; }
    100% { transform: scale(1); }
  }
  #timer {
    font-weight: 600; font-size: 20px;
    color: #ffd166;
    transition: transform 0.2s;
  }
  #timer.warn { color: #ff6b6b; animation: pulse 0.5s infinite alternate; }
  #timer.bonus { animation: bonusPop 0.5s; }
  @keyframes pulse { to { transform: scale(1.1); } }
  #pauseBtn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 38px; height: 38px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
  }
  #pauseBtn:active { transform: scale(0.92); }
  .hud-center {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }

  #combo {
    position: fixed; top: 90px; left: 50%;
    transform: translateX(-50%);
    font-size: 28px; font-weight: 700;
    color: #ffd166;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(255,209,102,0.6);
  }
  #combo.show { opacity: 1; }

  .overlay {
    position: fixed; inset: 0;
    background: rgba(5,6,15,0.92);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 20px;
    backdrop-filter: blur(6px);
    z-index: 10;
  }
  .overlay h1 {
    font-size: 42px; margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ffd166);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .overlay h2 {
    font-size: 28px; margin-bottom: 24px;
    color: #fff;
  }
  .overlay p { font-size: 15px; opacity: 0.7; margin-bottom: 24px; max-width: 320px; line-height: 1.5; }

  .btn {
    padding: 14px 32px; font-size: 17px; font-weight: 600;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white; border: none; border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,107,107,0.4);
    margin: 6px;
    min-width: 200px;
  }
  .btn:active { transform: scale(0.96); }
  .btn.secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
  }
  a.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
  }

  .modes {
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 340px;
    margin-bottom: 16px;
  }
  .mode-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px 20px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
  }
  .mode-card:active { transform: scale(0.98); }
  .mode-card:hover { background: rgba(255,255,255,0.1); }
  .mode-card h3 {
    font-size: 18px; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
  }
  .mode-card .icon { font-size: 22px; }
  .mode-card p {
    font-size: 13px; opacity: 0.65; margin: 0;
    line-height: 1.4;
  }

  .results {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 24px;
    min-width: 240px;
  }
  .result-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 16px;
    gap: 20px;
  }
  .result-row .label { opacity: 0.6; }
  .result-row .value { font-weight: 600; color: #ffd166; }
  .result-row.big .value { font-size: 22px; }

  .hidden { display: none !important; }

  #freezeOverlay {
    position: fixed; inset: 0;
    border: 4px solid rgba(100, 180, 255, 0.8);
    box-shadow: inset 0 0 80px rgba(100, 180, 255, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
  }
  #freezeOverlay.show { opacity: 1; }
