/* style.css — OVERKICK: responsive, safe-area aware, no scroll/bounce */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%; overflow: hidden; background: #000;
  overscroll-behavior: none; touch-action: none;
  font-family: system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#game { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); touch-action: none; }

.hidden { display: none !important; }

/* HUD */
#hud {
  position: absolute; top: calc(6px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  display: flex; gap: 18px; z-index: 5; pointer-events: none;
  background: rgba(10,10,20,0.55); border: 1px solid rgba(120,140,255,0.2);
  border-radius: 10px; padding: 6px 14px; backdrop-filter: blur(4px);
}
.hudItem { display: flex; gap: 6px; align-items: baseline; }
.hudLabel { font-size: 10px; letter-spacing: 1px; color: #7c8bb0; }
.hudItem span:last-child { font-weight: 800; font-size: 14px; }

.cornerBtn {
  position: absolute; top: calc(6px + env(safe-area-inset-top)); right: calc(8px + env(safe-area-inset-right));
  z-index: 6; font-size: 18px; background: rgba(20,20,40,0.7); color: #fff;
  border: 1px solid rgba(120,140,255,0.3); border-radius: 8px; padding: 4px 8px; cursor: pointer;
}

/* screens */
.screen {
  position: absolute; inset: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(10,12,30,0.55), rgba(4,4,10,0.9));
}
.title { font-size: clamp(42px, 9vw, 76px); font-weight: 900; letter-spacing: 2px; color: #5eead4;
  text-shadow: 0 0 30px rgba(94,234,212,0.5); }
.title span { color: #f472b6; text-shadow: 0 0 30px rgba(244,114,182,0.5); }
.tagline { color: #8fa0c9; margin-bottom: 6px; }
.card {
  background: rgba(14,16,36,0.85); border: 1px solid rgba(120,140,255,0.25);
  border-radius: 14px; padding: 14px 18px; max-width: 560px; text-align: left;
  max-height: 42vh; overflow-y: auto; font-size: 13.5px; line-height: 1.55;
}
.card h2 { font-size: 15px; margin-bottom: 8px; color: #5eead4; }
.card ul { list-style: none; }
.card li { margin: 5px 0; }
.stats div { margin: 4px 0; font-size: 16px; }
.bigBtn {
  font-size: 20px; font-weight: 800; letter-spacing: 2px; color: #04121a;
  background: linear-gradient(180deg, #6ff0dd, #2cc4b0);
  border: none; border-radius: 12px; padding: 12px 44px; cursor: pointer;
  box-shadow: 0 0 26px rgba(94,234,212,0.35);
}
.bigBtn:active { transform: scale(0.96); }
.hint { color: #a8b6d8; font-size: 13px; }
.toggleRow { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }

#levelIntro h1 { font-size: 44px; font-weight: 900; color: #fff; text-shadow: 0 0 24px #5eead4; }

/* virtual thumbstick */
#stick {
  position: absolute; left: calc(18px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom));
  width: 110px; height: 110px; border-radius: 50%; z-index: 8;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center; touch-action: none;
}
#stickNub {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(94,234,212,0.5); box-shadow: 0 0 14px rgba(94,234,212,0.5);
  transform: translate(0, 0);
}
/* hot multiplier glow */
.multHot {
  color: #5eead4;
  text-shadow: 0 0 8px rgba(94,234,212,0.9), 0 0 18px rgba(94,234,212,0.5);
  font-size: 1.35em;
}
