:root { --ink: #273250; --pink: #ff5e8a; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; color: var(--ink); background: radial-gradient(circle at 16% 12%, #fff6c8 0 7%, transparent 7.2%), radial-gradient(circle at 87% 84%, #d5f5e2 0 11%, transparent 11.2%), #f7eee1; font-family: Nunito, sans-serif; }
.game-shell { width: min(100%, 520px); padding: 28px 20px 24px; text-align: center; }
header { margin-bottom: 17px; }.eyebrow { margin: 0 0 2px; color: #e07b60; font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font: 800 clamp(2.7rem, 12vw, 4.25rem)/.9 "Baloo 2", sans-serif; letter-spacing: -.06em; } h1 span { color: var(--pink); }
.subtitle { margin: 9px 0 0; font-size: .98rem; font-weight: 800; color: #65718e; }
.game-card { position: relative; overflow: hidden; border: 6px solid #fff; border-radius: 29px; box-shadow: 0 14px 0 #d9cbbc, 0 22px 35px #806d5b45; aspect-ratio: 420 / 620; background: #9de8fa; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; z-index: 2; top: 15px; left: 16px; right: 16px; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }.hud-stats { display: flex; gap: 7px; }
.score-box { min-width: 63px; padding: 6px 10px 5px; border-radius: 13px; color: var(--ink); background: #fffbefa8; box-shadow: 0 2px #ffffff88; line-height: 1; }.score-box span { display: block; font-size: .61rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #7783a0; }.score-box strong { font: 800 1.45rem/1.1 "Baloo 2", sans-serif; }
.lives-box { min-width: 73px; }.lives-box strong { color: #ff5e8a; font-size: 1.05rem; letter-spacing: -.08em; }
.sound-button { pointer-events: auto; width: 39px; height: 39px; border: 0; border-radius: 50%; color: var(--ink); background: #fffbefc9; cursor: pointer; font: 900 1.28rem/1 Nunito; box-shadow: 0 2px #ffffff88; }
.overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 25px; background: #28345326; transition: opacity .2s; }.overlay.hidden { opacity: 0; pointer-events: none; }.overlay-card { width: min(285px, 100%); padding: 21px 22px 19px; border-radius: 24px; background: #fffdf8eb; box-shadow: 0 8px 22px #30415b3d; }.buddy-icon { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 #e4bd45); }
h2 { margin: 8px 0 1px; font: 800 1.75rem/1 "Baloo 2", sans-serif; }.overlay-card p { margin: 8px 0 16px; font-size: .93rem; font-weight: 800; color: #66718c; }
#startButton { border: 0; border-radius: 13px; padding: 11px 21px; color: #fff; background: var(--pink); box-shadow: 0 4px 0 #dc3c69; cursor: pointer; font: 900 1rem Nunito; transition: transform .12s; }#startButton:hover { transform: translateY(-2px); }#startButton:active { transform: translateY(3px); box-shadow: 0 1px 0 #dc3c69; }
.controls { margin: 21px 0 0; color: #75809b; font-size: .84rem; font-weight: 800; }kbd { padding: 2px 5px; border: 1px solid #d6c6b7; border-bottom-width: 3px; border-radius: 5px; color: #5e6780; background: #fff9f1; font: 800 .73rem Nunito; }
@media (max-width: 430px) { .game-shell { padding-inline: 13px; }.game-card { border-width: 5px; border-radius: 23px; } }
