* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #7ec8f0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
body { font-family: "Baloo 2", system-ui, sans-serif; color: #fff; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.hud { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; text-align: center; pointer-events: none; }
.score { font-weight: 800; font-size: clamp(38px, 7vh, 64px); line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 18px rgba(0,0,0,.15); }
.mult { margin-top: 4px; font-weight: 800; font-size: 20px; color: #ffe066; text-shadow: 0 2px 0 rgba(0,0,0,.3); min-height: 24px; }
.mute { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.18); font-size: 20px; cursor: pointer; }

.panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(88vw, 380px); padding: 26px 22px 22px; text-align: center;
  background: rgba(255,255,255,.92); color: #2b4a1a; border-radius: 28px;
  box-shadow: 0 18px 50px rgba(20,60,30,.28), inset 0 -5px 0 rgba(0,0,0,.06);
  animation: pop .45s cubic-bezier(.3,1.5,.5,1);
}
.panel[hidden], .hud[hidden] { display: none; }
@keyframes pop { from { transform: translate(-50%, -46%) scale(.8); opacity: 0; } }
.title-bug { width: 70%; margin: -70px auto 0; display: block; filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
h1 { font-size: 54px; line-height: 1; color: #5aa31c; letter-spacing: .01em; text-shadow: 0 3px 0 #2f6b0d; }
h2 { font-size: 40px; line-height: 1; color: #d9452b; }
.tag { margin-top: 6px; font-size: 17px; color: #557a3a; }
.go { margin-top: 16px; font-size: 18px; font-weight: 800; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.keys { margin-top: 6px; font-size: 13px; color: #6b8a58; }
.big { font-size: 58px; font-weight: 800; line-height: 1.1; color: #2b4a1a; }
.best { margin-top: 6px; font-size: 16px; color: #8a6a1e; min-height: 1em; }
kbd { display: inline-block; padding: 0 8px; border-radius: 7px; background: #eef6e6; border: 1px solid #c8dcb4; border-bottom-width: 3px; font: inherit; font-size: .9em; }
