:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #201039; color: white }
* { box-sizing: border-box }
html, body { margin: 0; height: 100%; overflow: hidden }
#player, #welcome, #game { width: 100%; height: 100%; height: 100dvh }
#player { position: relative; background: #14102b }
#game { display: block; border: 0; outline: none; touch-action: none }
#welcome { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #351856 }
#welcome picture { display: flex; min-height: 0; justify-content: center; overflow: hidden; background: radial-gradient(ellipse, #965e93, #351856 85%) }
#welcome img { display: block; width: 100%; height: 100%; object-fit: contain }
.controls { display: grid; justify-items: center; align-content: center; gap: .5rem; min-height: 4.75rem; padding: .65rem 1rem max(.8rem, env(safe-area-inset-bottom)); background: #321546 }
button { font: 800 clamp(1rem, 2.3vw, 1.25rem)/1.15 system-ui, sans-serif; min-height: 46px; padding: .63rem 1.75rem; border: 2px solid #ffedaf; border-radius: 2rem; color: #431c13; background: linear-gradient(#ffe779, #ffbd39); box-shadow: 0 3px 0 #ad5f21; cursor: pointer }
button:hover { background: #ffe68b }
button:focus-visible { outline: 3px solid white; outline-offset: 4px }
#status { margin: 0; font-weight: 650; font-size: 1rem; text-align: center }
progress { width: min(16rem, 70vw); height: .65rem; accent-color: #ffcf4c }
[hidden], #welcome[hidden] { display: none !important }
@media (max-height: 500px) { .controls { min-height: 3.5rem; padding-block: .25rem max(.4rem,env(safe-area-inset-bottom)) } }
