* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: #fff4d7; background: #171c13; font: 1rem system-ui, sans-serif; }
#game { position: relative; height: 100vh; height: 100dvh; overflow: hidden; touch-action: manipulation; }
canvas { display: block; width: 100%; height: 100%; }
.overlay { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; padding: 1.25rem; background: #10170fcf; }
.brand { color: #f2c77a; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; font-size: .875rem; }
h1 { font: 900 clamp(2rem, 8vmin, 6rem)/1 Georgia, serif; margin: 0; }
button { margin: .35rem 0; min-height: 48px; padding: .6rem 2rem; border: 0; border-radius: .35rem; background: #f2c77a; color: #291e10; font: 800 1rem system-ui; cursor: pointer; }
button:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.controls { color: #e0d8c7; margin-bottom: 0; }
.hud { position: absolute; top: max(1rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: grid; gap: .35rem; justify-items: center; padding: .55rem 1rem; border-radius: .4rem; background: #18170edb; pointer-events: none; font-weight: 800; }
progress { width: min(50vw, 19rem); accent-color: #f2c77a; }
#reward a { color: #f2c77a; font-weight: 800; }
#reward a:not([href]) { opacity: .55; }
