/* A quiet instrument deck: safe-area aware, every pad reachable by touch. */
.rhythm-deck{max-width:620px;margin:auto;align-items:center;gap:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px))}
#flight-joystick{position:relative;width:80px;height:80px;flex:0 0 80px;pointer-events:auto;touch-action:none;border:1px solid #c8b5ff66;border-radius:50%;background:radial-gradient(circle,#543e7066,#0c081ba8);box-shadow:inset 0 0 20px #9e7fda1a;cursor:grab;outline-offset:5px}
#flight-stick{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:40px;height:40px;border:1px solid #d7c6ff88;border-radius:50%;background:#c4a1ef33;font-size:24px;color:#e6d7ff;pointer-events:none}
.jam-pads{display:flex;gap:12px;align-items:center;justify-content:center;pointer-events:auto}
.jam-pads button{--pad:#ffc97d;--pulse:0;position:relative;display:grid;place-items:center;width:62px;height:62px;min-width:48px;min-height:48px;padding:0;border:1px solid color-mix(in srgb,var(--pad) 70%,transparent);border-radius:50%;background:#130d24b8;color:var(--pad);font-family:var(--f);font-size:24px;cursor:pointer;touch-action:none;box-shadow:0 0 calc(3px + var(--pulse)*10px) #ad87d522;transition:background .1s,transform .1s}
.jam-pads button:nth-child(2){--pad:#c6a0ff}.jam-pads button:nth-child(3){--pad:#7fe9e2}
.jam-pads small{position:absolute;bottom:-20px;font-size:10px;opacity:.55}.jam-pads .struck{transform:scale(.91);background:var(--pad);color:#160d26;box-shadow:0 0 24px var(--pad)}
.road-tools #road-boost{width:62px;height:62px;border-radius:50%;box-shadow:0 0 calc(var(--flow,0)*28px) #ffc97d77}
.road-toast{font-size:11px;pointer-events:none}.intro{background:radial-gradient(ellipse at 50% 45%,#160e2a66,#07040dbb)}
@media(max-width:600px){.rhythm-deck{left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));gap:10px}#flight-joystick{width:72px;height:72px;flex-basis:72px}.jam-pads{gap:8px}.jam-pads button{width:50px;height:50px;font-size:21px}.jam-pads small{display:none}.road-tools #road-boost{width:52px;height:52px;min-width:52px}.ctl{gap:6px}.hud__top{left:12px;right:12px}}
@media(max-width:360px){.rhythm-deck{gap:6px}#flight-joystick{width:62px;height:62px;flex-basis:62px}.jam-pads{gap:5px}.jam-pads button{width:46px;height:46px}.road-tools #road-boost{width:48px;height:48px;min-width:48px}.ctl{gap:4px}}
@media(max-height:500px){.rhythm-deck{bottom:calc(8px + env(safe-area-inset-bottom,0px));max-width:none}#flight-joystick{width:64px;height:64px;flex-basis:64px}.jam-pads button{width:48px;height:48px}.jam-pads small{display:none}.road-tools #road-boost{width:50px;height:50px}}
@media(prefers-reduced-motion:reduce){.jam-pads button{transition:none}}

.new-universe{width:100%;min-height:48px;margin:12px 0 4px;padding:10px 14px;border:1px solid #49355c;border-radius:8px;background:#ebdf70;color:#21182d;font:15px/1.6 var(--f);text-align:left;cursor:pointer}

#dimension-shift{font-size:27px;color:#c9a8ff;border-color:#b78be677}#dimension-shift[aria-pressed=true]{background:#7e40bd;color:#fff;box-shadow:0 0 22px #ad66ff66}.flight-setting{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:15px 4px 4px;font-size:13px}.flight-setting input{width:48%;min-height:44px;accent-color:#5b286b;touch-action:pan-x}
#cruise{font-size:24px;color:#a6eee0;border-color:#9bdccc88}#cruise[aria-pressed=true]{background:#256f6a;color:#f1fffa;box-shadow:0 0 20px #7fe1cd55}.taking-photo .hud,.taking-photo .road-ui,.taking-photo .songs-panel,.taking-photo .intro{visibility:hidden!important}#photo-mode{position:fixed;inset:0;z-index:30;pointer-events:none}.photo-controls{position:absolute;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));display:flex;gap:8px;justify-content:center;pointer-events:auto}.photo-controls button{min-height:48px;padding:10px 14px;border:1px solid #ddc5f2aa;border-radius:12px;background:#1c1128df;color:#fff0d7;font:12px/1.5 var(--f);cursor:pointer}#photo-status{position:absolute;bottom:calc(80px + env(safe-area-inset-bottom,0px));left:16px;right:16px;text-align:center;font-size:12px;color:#fff0d7;text-shadow:0 1px 8px #000}.photo-controls button:focus-visible{outline:2px solid #ffd68b;outline-offset:3px}@media(max-width:360px){.photo-controls button{font-size:10px;padding:8px 10px}}
