* { box-sizing: border-box }
html, body, #stage, #player { width: 100%; height: 100%; margin: 0; overflow: hidden }
body { background: #192d25; color: #fff6dd; font: 15px system-ui, sans-serif }
#player { position: absolute; inset: 0; touch-action: none }
#player iframe { width: 100%; height: 100%; border: 0; display: block }
header, #objective, #controls, #notice { position: absolute; z-index: 2 }
header { left: 4vw; top: 4vh; pointer-events: none; text-shadow: 0 2px 10px #14291d }
header span, #mode { color: #fae4aa; font-size: 12px; font-weight: 700; letter-spacing: .14em }
h1 { margin: 4px 0; font: normal clamp(28px,4vw,56px)/1.05 Georgia, serif; letter-spacing: -.045em }
#objective, #controls, #notice { background: #14291fef; border: 1px solid #c6b27780; border-radius: 4px }
#objective { top: 4vh; right: 4vw; padding: 9px 14px; pointer-events: none }
#controls { left: 4vw; bottom: 4vh; padding: 13px 16px }
#mode { margin-bottom: 8px }
#stamina { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 8px }
#stamina progress { width: 85px; height: 8px; accent-color: #dfc181 }
button { border: 1px solid #bdbda1; border-radius: 3px; padding: 8px 12px; background: #314637; color: #fff7df; cursor: pointer; font: 600 14px system-ui }
button:focus-visible { outline: 3px solid white }
button:disabled { opacity:.6; cursor: default }
#ride { background: #e3ca8f; color: #19251e }
kbd { font-family: inherit; border: 1px solid currentColor; border-radius: 2px; padding: 0 3px }
small { display: block; color: #dedecb; margin-top: 8px }
#notice { top: 22%; left: 50%; transform: translateX(-50%); margin: 0; padding: 9px 14px; text-align: center; max-width: 90vw; overflow-wrap: anywhere }
[hidden], #notice:empty { display: none !important }
@media (pointer: coarse) { #controls { left: auto; right: 3vw; top: max(12vh,68px); bottom: auto } #controls small, kbd { display: none } }
@media (max-width: 620px) { #objective { top: max(10vh,69px); right: auto; left: 4vw; max-width: 44vw; font-size: 12px } header { top: max(18px,env(safe-area-inset-top)) } #controls { padding: 8px } }
