html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d12; color: #e8ecf1; font-family: system-ui, sans-serif; }
canvas { display: block; width: 100vw; height: 100vh; }
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 2px 4px #000; user-select: none; }
#hud .tl { position: absolute; left: 16px; top: 12px; }
#hud .tr { position: absolute; right: 16px; top: 12px; text-align: right; }
#hearts { font-size: 28px; letter-spacing: 2px; }
#hearts .off { filter: grayscale(1) brightness(0.4); }
#score { font-size: 30px; font-weight: 800; color: #ffd84a; }
#zone { font-size: 16px; color: #bfe8c8; margin-top: 4px; }
#power { font-size: 15px; margin-top: 6px; color: #9ff; min-height: 20px; }
#speed { font-size: 22px; font-weight: 700; }
#party { font-size: 13px; opacity: 0.8; margin-top: 4px; }
#bar { position: absolute; left: 20%; right: 20%; top: 14px; height: 16px; background: rgba(0,0,0,0.55); border: 2px solid #ffd84a; border-radius: 10px; overflow: hidden; }
#barfill { height: 100%; width: 0%; background: linear-gradient(90deg, #ff9d00, #ffe14a); }
#bartxt { position: absolute; left: 0; right: 0; top: 34px; text-align: center; font-weight: 700; font-size: 14px; }
#toast { position: absolute; left: 0; right: 0; top: 28%; text-align: center; font-size: 34px; font-weight: 800; color: #fff3a0; opacity: 0; transition: opacity 0.4s; }
#flash { position: absolute; inset: 0; opacity: 0; background: #f00; }
#help { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 13px; opacity: 0.6; }
#panel { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); z-index: 5; }
#panel.hidden { display: none; }
#panel .card { background: rgba(20,28,22,0.92); border: 3px solid #ffd84a; border-radius: 18px; padding: 24px 34px; max-width: 520px; text-align: center; box-shadow: 0 0 40px #000; }
#panel h1 { margin: 0 0 6px; color: #ffd84a; font-size: 30px; }
#panel p { margin: 6px 0; line-height: 1.4; }
#panel button { margin: 8px 5px 0; padding: 10px 20px; font-size: 17px; font-weight: 700; border: 0; border-radius: 10px; background: #ffd84a; color: #2b1d00; cursor: pointer; }
#panel button:hover { background: #fff08a; }
#panel table { margin: 8px auto; border-collapse: collapse; min-width: 300px; }
#panel td { padding: 3px 12px; text-align: left; }
#panel td:last-child { text-align: right; color: #ffd84a; }
.keys { font-size: 14px; opacity: 0.85; }
