* { box-sizing: border-box; }
:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #fff; background: #14284c; }
body { margin: 0; }
.flight { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: #537aa8 url(./dawn.jpg) center/cover; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; inset: max(12px, env(safe-area-inset-top)) 12px auto; display: flex; justify-content: space-between; gap: 7px; pointer-events: none; z-index: 3; }
.plate { display: flex; gap: clamp(6px, 2vw, 20px); align-items: center; padding: 7px clamp(8px, 2vw, 22px); background: #14284ce8; border: 1px solid #a1dbff; border-radius: 14px; }
.plate a { color: #b4eaff; font-size: 25px; text-decoration: none; pointer-events: auto; }
.brand strong { font-size: clamp(11px, 2.6vw, 24px); }
.score { padding-left: 8px; border-left: 1px solid #b4eaff70; }
.plate small { display: block; font-size: clamp(8px, 1.6vw, 13px); color: #b4d3ff; font-weight: 800; }
.plate b { display: block; line-height: 1.1; font-size: clamp(16px, 3.5vw, 29px); white-space: nowrap; }
.note { position: absolute; top: 85px; width: 100%; text-align: center; pointer-events: none; }
.note:not(:empty) { text-shadow: 0 2px 4px #081731; font-weight: 800; }
.controls { position: absolute; inset: auto 0 max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: end; pointer-events: none; padding-inline: 12px; }
button { font: inherit; cursor: pointer; min-height: 44px; font-weight: 800; border-radius: 14px; border: 1px solid #a9efff; color: #fff; background: linear-gradient(#287ab3, #0f478e); padding: 10px 18px; }
button:focus-visible, a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
button:disabled { opacity: .65; cursor: default; }
#chute { pointer-events: auto; box-shadow: 0 0 18px #4ae2ff70; }
#chute.ready { background: #b2f0ff; color: #132b4d; }
kbd { margin-left: 6px; }
#steer { pointer-events: auto; position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: 0; width: clamp(68px, 12vw, 110px); aspect-ratio: 1; border-radius: 50%; background: #17335b60; color: #fff9; font-size: 28px; touch-action: none; }
#steer span { display: block; position: absolute; inset: 34%; border-radius: 50%; background: #e4f0ffbf; transform: translate(var(--stick-x, 0), var(--stick-y, 0)); }
.overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: #0d224957; padding: 80px 16px 22px; overflow: auto; }
.overlay[hidden] { display: none; }
.brief { max-width: 440px; text-align: center; background: #10254beb; border: 1px solid #a1dbff; border-radius: 24px; padding: clamp(16px, 4vw, 34px); }
h1 { margin: 0; font-size: clamp(29px, 6vw, 54px); line-height: 1; }
p { line-height: 1.45; }
#share-note:empty { display: none; }
@media (max-width: 600px), (pointer: coarse) { kbd { display: none; } #chute { margin-left: 80px; } }
.webgl-scene { position: absolute; inset: 0; pointer-events: none; }
.flight.has-3d { background-image: none; }
