* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0b0b14; overflow: hidden; font-family: "Trebuchet MS", system-ui, sans-serif; color: #fff; }
canvas#game { display: block; width: 100vw; height: 100vh; }
.hidden { display: none !important; }

#hud { position: fixed; inset: 0; pointer-events: none; display: flex; justify-content: space-between; padding: 12px; }
.hud-left div { font-weight: 900; font-size: 22px; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; letter-spacing: 1px; }
#score { color: #ffb000; }
#bag { color: #7df9ff; font-size: 18px !important; }
#hype { color: #ff3b6b; font-size: 26px !important; min-height: 30px; }
.hud-center { text-align: center; }
#clock { font-size: 28px; font-weight: 900; color: #fff; text-shadow: 2px 2px 0 #000; }
#msg { margin-top: 6px; font-size: 18px; font-weight: 700; color: #ffe066; text-shadow: 2px 2px 0 #000; min-height: 24px; }
#minimap { border: 2px solid #ffb000; background: rgba(0,0,0,.6); border-radius: 6px; }

#overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(40,10,60,.85), rgba(0,0,0,.95)); }
.panel { max-width: 620px; padding: 32px; border: 3px solid #ffb000; border-radius: 14px; background: rgba(15,15,30,.9); box-shadow: 0 0 40px #ff2fa055; text-align: center; }
h1 { margin: 0 0 8px; font-size: 64px; line-height: .95; color: #ffb000; text-shadow: 4px 4px 0 #c0007a; font-style: italic; letter-spacing: 2px; }
h1 span { display: block; font-size: 30px; color: #7df9ff; text-shadow: 3px 3px 0 #2a0055; }
.tag { color: #ddd; font-size: 17px; }
.howto { text-align: left; color: #ccc; line-height: 1.6; font-size: 15px; }
.howto b { color: #ffe066; }
button#start { margin-top: 12px; font-size: 24px; font-weight: 900; padding: 12px 36px; border: none; border-radius: 8px; background: #ffb000; color: #1a0b2e; cursor: pointer; box-shadow: 0 5px 0 #c0007a; }
button#start:active { transform: translateY(3px); box-shadow: 0 2px 0 #c0007a; }
#best { margin-top: 14px; color: #7df9ff; font-weight: 700; }
.results { text-align: left; margin: 10px auto; color: #eee; font-size: 15px; }
.results td { padding: 2px 10px; }

#touch { position: fixed; inset: 0; pointer-events: none; }
#stick { position: absolute; left: 24px; bottom: 24px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.3); pointer-events: auto; touch-action: none; }
#knob { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,176,0,.8); }
#touch button { position: absolute; pointer-events: auto; width: 72px; height: 72px; border-radius: 50%; border: 2px solid #fff; font-weight: 900; font-size: 18px; color: #fff; background: rgba(192,0,122,.6); touch-action: none; }
#tbtn-sprint { right: 110px; bottom: 30px; }
#tbtn-throw { right: 24px; bottom: 30px; background: rgba(255,153,0,.7) !important; font-size: 13px !important; }
#tbtn-e { right: 110px; bottom: 110px; }
#sound { margin-top: 6px; text-align: right; font-weight: 700; color: #ccc; text-shadow: 1px 1px 0 #000; }
#hype.flash { animation: hypeflash .5s steps(2) infinite; }
@keyframes hypeflash { 50% { color: #fff; text-shadow: 0 0 10px #ff3b6b; } }
