*{margin:0;padding:0;box-sizing:border-box}
body{background:#000;display:flex;justify-content:center;align-items:center;min-height:100vh;font-family:'Courier New',monospace;overflow:auto;padding:16px 8px}
#game-container{position:relative;width:clamp(320px,calc((100dvh - 175px)*.75),480px);max-width:100%}
#game-canvas{display:block;width:100%;height:auto;background:#000;image-rendering:pixelated;image-rendering:crisp-edges}
#hud{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;color:#fff;font-size:14px;font-weight:bold;pointer-events:none;z-index:10}
#hud>*{pointer-events:auto}
.hud-label{color:#ff0;margin-right:6px;font-size:12px}
#score{color:#fff;font-size:18px}
#lives{color:#f0f;font-size:18px}
#audio-controls{display:flex;align-items:center;gap:6px}
#audio-controls button{background:none;border:1px solid #555;color:#fff;font-size:16px;cursor:pointer;padding:2px 6px;border-radius:3px}
#audio-controls button:hover{border-color:#fff}
#volume-slider{width:60px;height:4px;-webkit-appearance:none;appearance:none;background:#333;border-radius:2px;outline:none}
#volume-slider::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;background:#fff;border-radius:50%;cursor:pointer}
.overlay{position:absolute;top:0;left:0;right:0;height:auto;aspect-ratio:3/4;display:flex;justify-content:center;align-items:center;background:#080b14;z-index:20}
.overlay.hidden{display:none}
#overlay-content{text-align:center;color:#fff;padding:30px}
#overlay-title{font-size:48px;color:#ff8c00;text-shadow:3px 3px 0 #8b0000;margin-bottom:16px;letter-spacing:4px}
#overlay-message{font-size:16px;color:#ff0;margin-bottom:20px}
#controls-help{padding:16px 12px;background:#111723;border:1px solid #30394b;border-radius:0 0 12px 12px;color:#eee;font-size:13px;line-height:1.6}
.control-heading{text-align:center;font-size:12px;letter-spacing:2px;color:#ffb45c;margin-bottom:10px}
.hop-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.hop-grid>div{white-space:nowrap}
.hop-grid span{display:inline-block;margin-left:4px}
kbd{display:inline-block;min-width:23px;padding:1px 4px;text-align:center;border:1px solid #627089;border-bottom-width:3px;border-radius:4px;background:#253044;color:#fff;font:inherit}
#controls-help p{text-align:center;color:#aab6c9;font-size:11px;margin-top:12px}
.start-instructions{font-size:14px;line-height:1.8;color:#ddd;margin-bottom:24px}
@media(max-width:400px){#overlay-content{padding:16px}#overlay-title{font-size:36px}.hop-grid{gap:10px 4px;font-size:11px}kbd{min-width:19px}.hint{line-height:1.6}}
.hint{font-size:12px;color:#888;margin-bottom:20px}
.btn-primary{background:#ff8c00;color:#000;border:none;padding:12px 32px;font-size:18px;font-weight:bold;font-family:'Courier New',monospace;cursor:pointer;border-radius:4px;letter-spacing:2px;transition:transform .1s,background .2s}
.btn-primary:hover{background:#ffa533;transform:scale(1.05)}
.btn-primary:active{transform:scale(.98)}
