:root{color-scheme:light;--ink:#142c3a;--muted:#526573;--paper:#fff;--accent:#cf5c30;--line:rgba(20,44,58,.16);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:var(--ink)}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#a6c2d3}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #ec713f;outline-offset:4px}#world,#world canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}.topbar{position:absolute;z-index:3;top:0;left:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;padding:30px 36px;pointer-events:none;background:linear-gradient(rgba(233,244,249,.8),transparent)}.identity{pointer-events:auto}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:750}h1{font-size:2rem;letter-spacing:-.06em;margin:5px 0 2px;font-weight:720;line-height:1.1}h1 span{font-weight:400}p{line-height:1.55}h1+p{font-size:.875rem;margin:0;color:#354e5d}.actions{display:flex;gap:8px;pointer-events:auto}.actions button{background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.7);border-radius:7px;padding:11px 14px;font-size:.875rem;font-weight:600;box-shadow:0 3px 10px #18354b10;backdrop-filter:blur(14px)}.actions button:hover{background:#fff}.key{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border:1px solid var(--line);border-radius:4px;font-size:.75rem;margin-left:12px;color:var(--muted)}.compass{position:absolute;right:38px;top:110px;z-index:2;text-align:center;width:46px;font-weight:600;pointer-events:none}.compass-mark{font-size:.8rem;margin-bottom:2px}#needle{font-size:2.4rem;line-height:1;transform-origin:center}.start-panel{position:absolute;left:36px;bottom:105px;z-index:4;background:rgba(255,255,255,.96);border:1px solid #fff;border-radius:13px;padding:28px 30px 22px;width:min(380px,calc(100vw - 40px));box-shadow:0 16px 50px #122e3d26;backdrop-filter:blur(16px)}.start-panel .eyebrow{color:#647985;font-size:.68rem}.start-panel h2{font-size:2.25rem;line-height:1.08;letter-spacing:-.045em;margin:13px 0 14px}.start-panel>p{font-size:1rem;color:var(--muted);margin:0 0 22px}.primary{border:0;border-radius:6px;display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 18px;background:var(--ink);color:white;font-size:1rem;font-weight:650;transition:background .2s}.primary:hover{background:#25485d}.primary>span{font-size:1.3rem;color:#f2b66e}.start-panel .start-hint{font-size:.8rem;margin:14px 0 0;line-height:1.5;color:#5c707c}#loading{display:flex;gap:9px;align-items:center;margin:0 0 15px;font-size:.875rem}.spinner{width:14px;height:14px;border:2px solid #b9cbd4;border-top-color:#304c5d;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.bottom-bar{position:absolute;bottom:0;left:0;right:0;z-index:3;padding:20px 36px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(transparent,rgba(239,246,249,.94));min-height:76px}.control-guide{display:flex;align-items:center;flex-wrap:wrap;gap:18px;font-size:.875rem}.control-guide>span{white-space:nowrap}kbd{font:inherit;font-size:.75rem;font-weight:600;display:inline-block;border:1px solid #66808d40;background:#ffffffc9;padding:5px 7px;border-radius:4px;margin-right:5px}.quiet{font-size:.8rem;border:0;border-bottom:1px solid #748b9880;background:transparent;padding:3px 0;color:#405966;white-space:nowrap}#crosshair{position:absolute;top:50%;left:50%;width:4px;height:4px;background:white;border-radius:50%;box-shadow:0 0 0 1px #142c3a66;z-index:2;display:none}#toast{position:absolute;z-index:6;top:112px;left:50%;transform:translateX(-50%);background:#173344eF;color:white;padding:12px 18px;border-radius:7px;font-size:.875rem;max-width:90%;opacity:0;transition:opacity .2s;pointer-events:none}#toast.show{opacity:1}dialog{border:0;border-radius:12px;padding:34px;max-width:520px;width:calc(100% - 32px);box-shadow:0 25px 100px #0004;color:var(--ink)}dialog::backdrop{background:#122e3d65;backdrop-filter:blur(4px)}dialog h2{font-size:1.75rem;letter-spacing:-.04em}dialog p{font-size:1rem;color:var(--muted)}dialog .credit-line{font-size:.875rem}dialog a{color:#235d80}#close-credits{position:absolute;top:12px;right:14px;border:0;background:none;font-size:1.5rem;color:var(--muted)}#touch-controls{display:none}body.playing #panel{display:none}body.playing.first-person #crosshair{display:block}body.playing .identity>p{opacity:.8}body.playing .topbar{background:linear-gradient(rgba(226,238,245,.5),transparent)}[hidden]{display:none!important}@media(max-width:850px){.topbar{padding:20px}.actions{gap:5px}.actions button{padding:10px;font-size:.8rem}.key{display:none}h1{font-size:1.65rem}.start-panel{left:20px;bottom:95px}.bottom-bar{padding:16px 20px}.control-guide{gap:8px;font-size:.8rem}.control-guide>span:nth-child(4){display:none}.compass{right:20px;top:105px}.quiet{font-size:.75rem}}@media(max-width:560px){.topbar{padding:16px}.eyebrow{font-size:.7rem}.identity>p{font-size:.8rem}.actions{flex-wrap:wrap;justify-content:flex-end;max-width:180px}.actions button{padding:9px 10px}.start-panel{left:16px;bottom:68px;width:calc(100vw - 32px);padding:24px}.start-panel h2{font-size:2rem}.bottom-bar{padding:14px 16px;min-height:54px}.control-guide{font-size:.75rem;gap:7px}.control-guide>span:nth-child(n+3){display:none}.compass{top:124px;right:15px}dialog{padding:28px}.quiet{margin-left:auto}}#touch-jump{display:none;position:absolute;z-index:5;right:36px;bottom:96px;min-height:48px;padding:12px 16px;border:1px solid #fff9;border-radius:8px;background:#173344eF;color:white;font-size:.95rem;font-weight:650;touch-action:none;user-select:none;-webkit-user-select:none}body.playing #touch-jump{display:block}.jump-key{font-size:.75rem;margin-left:7px;border:1px solid #ffffff66;border-radius:4px;padding:3px 5px}body:not(.playing) #center-button{display:none}@media(pointer:coarse){.jump-key{display:none}body.playing #touch-controls{display:block}body.playing .control-guide{display:none}#joystick{position:absolute;z-index:5;bottom:88px;left:28px;width:118px;height:118px;border-radius:50%;background:#17334422;border:1px solid #fff7;touch-action:none}#stick{position:absolute;left:38px;top:38px;width:42px;height:42px;border-radius:50%;background:#fff9;box-shadow:0 2px 15px #17334430;pointer-events:none}#look-pad{position:absolute;z-index:2;top:170px;right:0;bottom:220px;width:48%;touch-action:none}#touch-jump,#touch-run{position:absolute;right:25px;z-index:5;border:1px solid #fff8;border-radius:50%;background:#17334480;color:white;width:65px;height:65px;font-weight:600;touch-action:none}#touch-jump{bottom:96px}#touch-run{bottom:170px;width:50px;height:50px;font-size:.8rem;right:32px}.start-hint{max-width:320px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation:none}}
#interaction{position:absolute;z-index:6;bottom:100px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px)}#interact-button{display:flex;align-items:center;gap:9px;white-space:nowrap;background:#173344f2;color:white;border:1px solid #fff9;border-radius:8px;padding:12px 18px;font-size:.95rem;box-shadow:0 5px 24px #142c3a30}#interact-button kbd{color:#142c3a;background:#fff;margin:0;min-width:28px}body:not(.playing) #interaction{display:none}@media(pointer:coarse){#interaction{bottom:250px}#interact-button kbd{display:none}}@media(max-width:560px){#interaction{bottom:82px}#interact-button{font-size:.875rem;padding:12px 14px}}@media(max-width:560px) and (pointer:coarse){#interaction{bottom:250px}}
#basketball-panel{position:absolute;z-index:5;left:50%;bottom:98px;transform:translateX(-50%);width:min(360px,calc(100vw - 32px));border:1px solid #ffffff80;border-radius:10px;padding:16px 18px 12px;background:#173344f2;color:white;box-shadow:0 6px 28px #142c3a35;backdrop-filter:blur(12px)}.basketball-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:1rem}.basketball-heading span{font-size:.875rem;color:#c6d7df}#basketball-status{font-size:.95rem;margin:9px 0 12px;line-height:1.4}.basketball-buttons{display:flex;gap:9px}.basketball-buttons button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;border:1px solid #ffffff66;border-radius:6px;min-height:44px;padding:9px 10px;background:#f0b368;color:#172d38;font-size:.9rem;font-weight:650;white-space:nowrap}.basketball-buttons button:last-child{background:#ffffff13;color:white;flex:1.5}.basketball-buttons kbd{margin:0;background:#fff9;color:#173344;font-size:.75rem;padding:2px 5px}.basketball-buttons button:disabled{cursor:default;opacity:.45}.basketball-hint{font-size:.875rem;color:#ccdbe1;margin:11px 0 0;line-height:1.4}body:not(.playing) #basketball-panel{display:none}body.has-basketball #interaction{bottom:306px}@media(max-width:560px){#basketball-panel{bottom:72px;padding:14px 16px 10px}body.has-basketball #interaction{bottom:276px}}@media(pointer:coarse){#basketball-panel{bottom:226px}.basketball-buttons kbd{display:none}body.has-basketball #interaction{bottom:430px}}

#jetpack-panel{position:absolute;z-index:5;left:36px;top:145px;width:238px;border:1px solid #ffffff80;border-radius:10px;padding:14px;background:#173344f2;color:white;box-shadow:0 6px 28px #142c3a35;backdrop-filter:blur(12px)}.jetpack-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:1rem}.jetpack-heading span{font-size:.8rem;color:#c6d7df}.jetpack-buttons{display:flex;gap:8px;margin-top:12px}#jetpack-panel button{border:1px solid #ffffff66;border-radius:6px;min-height:44px;padding:9px 10px;background:#f0b368;color:#172d38;font-size:.9rem;font-weight:650;touch-action:none;user-select:none;-webkit-user-select:none}.jetpack-buttons button{flex:1;white-space:nowrap}#jetpack-panel button:active{background:#ffc981}#jetpack-panel kbd{margin:0 0 0 3px;background:#fff9;color:#173344;font-size:.75rem;padding:2px 4px}#jetpack-panel p{font-size:.75rem;color:#ccdbe1;margin:10px 0;line-height:1.4}#jetpack-panel #jetpack-land{width:100%;background:#ffffff13;color:white}body:not(.playing) #jetpack-panel{display:none}@media(max-width:850px){#jetpack-panel{left:20px;top:135px;width:216px}}@media(max-width:560px){#jetpack-panel{left:16px;top:130px;width:210px}}@media(pointer:coarse){#jetpack-panel kbd{display:none}}@media(max-height:540px){#jetpack-panel{top:112px;left:16px;width:210px;padding:10px}#jetpack-panel p{margin:5px 0}.jetpack-buttons{margin-top:6px}}

@media(max-width:560px){.topbar{display:grid;gap:12px}.actions{display:flex;flex-wrap:nowrap;justify-content:flex-start;max-width:none;gap:6px}.actions button{font-size:.8rem;padding:10px 9px;min-height:42px;white-space:nowrap}.compass{top:166px}#jetpack-panel{top:164px}#toast{top:166px}#touch-jump{right:16px;bottom:92px}.jump-key{display:none}}@media(max-width:560px) and (pointer:coarse){#touch-jump{right:25px;bottom:96px}}
@media(max-width:380px){.actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.compass{top:214px}#jetpack-panel{top:212px}#toast{top:214px}}

#ladder-panel{position:absolute;z-index:6;left:50%;bottom:98px;transform:translateX(-50%);width:min(380px,calc(100vw - 32px));padding:16px 18px;border:1px solid #ffffff80;border-radius:10px;background:#173344f2;color:white;box-shadow:0 6px 28px #142c3a35;backdrop-filter:blur(12px)}#ladder-panel strong{font-size:1rem}#ladder-status{font-size:.9rem;margin:9px 0 12px;line-height:1.4}.ladder-buttons{display:flex;gap:8px}.ladder-buttons button{flex:1;min-height:44px;border:1px solid #ffffff66;border-radius:6px;padding:9px;background:#f0b368;color:#172d38;font-size:.9rem;font-weight:650}.ladder-buttons kbd{margin:0 3px 0 0;padding:2px 5px;background:#fff9}.ladder-buttons button:disabled{cursor:default;opacity:.5}body:not(.playing) #ladder-panel{display:none}@media(max-width:560px){#ladder-panel{bottom:158px;padding:14px 16px}.ladder-buttons{flex-wrap:wrap}}@media(pointer:coarse){#ladder-panel{bottom:235px}.ladder-buttons kbd{display:none}}

#croquet-panel{position:absolute;z-index:6;bottom:24px;left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 32px));padding:16px 20px;border:1px solid #ffffff80;border-radius:12px;background:#173344f2;color:white;box-shadow:0 8px 28px #142c3a35;backdrop-filter:blur(12px)}
.croquet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.croquet-heading strong{font-size:1.1rem}.croquet-heading span{font-size:.8rem;color:#c5d7df;font-weight:400}.croquet-heading strong span{margin-left:8px}#croquet-target{margin:8px 0 3px;color:#ffce7a;font-size:.9rem}#croquet-status{font-size:.8rem;margin:0;min-height:21px}.croquet-sliders{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:12px 0}.croquet-sliders label{font-size:.85rem;font-weight:650}.croquet-sliders label>span,.croquet-sliders output{float:right;font-weight:400;color:#c5d7df}.croquet-sliders input{display:block;width:100%;height:24px;margin:4px 0 0;accent-color:#f0b368;cursor:pointer}.croquet-buttons{display:flex;gap:8px}.croquet-buttons button{flex:1;min-height:44px;border:1px solid #ffffff66;border-radius:6px;padding:8px 10px;background:#ffffff13;color:white;font-size:.85rem;font-weight:650;white-space:nowrap}.croquet-buttons #croquet-strike{background:#f0b368;color:#172d38}.croquet-buttons kbd{margin:0 0 0 4px;padding:2px 4px;color:#173344;font-size:.7rem}.croquet-buttons button:disabled{cursor:default;opacity:.45}.croquet-hint{font-size:.7rem;margin:10px 0 0;color:#c5d7df}body:not(.playing) #croquet-panel{display:none}body.croquet-playing #touch-controls,body.croquet-playing #touch-jump,body.croquet-playing .bottom-bar,body.croquet-playing #crosshair,body.croquet-playing #view-button,body.croquet-playing #center-button{display:none!important}body.croquet-playing .compass{display:none}body.croquet-playing #toast{top:110px}
@media(max-width:560px){#croquet-panel{padding:12px;bottom:16px}.croquet-sliders{gap:16px;margin:8px 0}.croquet-buttons{gap:6px}.croquet-buttons button{font-size:.75rem;padding:8px 6px}.croquet-buttons kbd{display:none}.croquet-hint{font-size:.65rem}.croquet-heading strong{font-size:1rem}.croquet-heading strong span{font-size:.7rem;margin-left:4px}body.croquet-playing .topbar{display:flex}body.croquet-playing .actions{display:flex;width:auto}body.croquet-playing #toast{top:100px}}
@media(max-height:600px) and (min-width:600px){#croquet-panel{bottom:10px;padding:10px 16px;display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}.croquet-heading{grid-column:1/-1}.croquet-sliders{grid-column:2;grid-row:2/4;margin:0}.croquet-buttons{grid-column:1/-1}.croquet-hint{display:none}#croquet-target{margin:2px 0}body.croquet-playing .topbar{padding:12px 20px}}

.context-toggle{display:flex;align-items:center;gap:9px;font-size:.95rem;font-weight:650}.context-toggle input{width:18px;height:18px;accent-color:#173344}dialog .context-note{font-size:.85rem;color:#667982}

@media(min-width:900px){#croquet-panel{left:auto;right:24px;top:50%;bottom:auto;transform:translateY(-35%);width:300px;padding:18px}.croquet-heading{align-items:flex-start}.croquet-heading strong span{display:block;margin:5px 0 0}.croquet-sliders{grid-template-columns:1fr;gap:10px;margin:16px 0}.croquet-buttons{flex-wrap:wrap}.croquet-buttons button{flex:1 1 45%}.croquet-buttons #croquet-stop{flex-basis:100%}.croquet-hint{line-height:1.5}}

@media(max-width:560px){body.playing:not(.croquet-playing) .actions{flex-wrap:wrap}body.playing:not(.croquet-playing) .compass{top:212px}body.playing:not(.croquet-playing) #jetpack-panel{top:212px}body.playing:not(.croquet-playing) #toast{top:212px}}
@media(max-width:380px){body.playing:not(.croquet-playing) .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}body.playing:not(.croquet-playing) .actions button{font-size:.72rem;padding:8px 5px;white-space:normal}}

/* Driving controls remain usable with a mouse, keyboard or two thumbs. */
#driving-panel{position:absolute;z-index:6;left:50%;bottom:30px;transform:translateX(-50%);width:min(390px,calc(100vw - 32px));padding:16px 18px;border:1px solid #ffffff80;border-radius:12px;background:#173344f2;color:white;box-shadow:0 8px 28px #142c3a35;backdrop-filter:blur(12px)}
.driving-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.driving-heading strong{font-size:.95rem;max-width:230px}.speed{font-size:1.8rem;font-variant-numeric:tabular-nums;white-space:nowrap}.speed small{font-size:.75rem;font-weight:400;color:#c5d7df}.drive-status{display:flex;justify-content:space-between;gap:8px;font-size:.75rem;color:#c5d7df;margin:5px 0 12px}#vehicle-gear{color:#ffce7a}.driving-buttons{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:8px}.driving-buttons button{min-height:46px;border:1px solid #ffffff66;border-radius:6px;padding:8px;background:#ffffff13;color:white;font-size:.85rem;font-weight:650;touch-action:none;user-select:none;-webkit-user-select:none}.driving-buttons button:active{background:#f0b368;color:#172d38}#drive-forward{background:#f0b368;color:#172d38}#drive-brake{background:#a74532}#drive-exit{font-size:.8rem}.driving-buttons kbd{padding:1px 4px;margin:0;font-size:.7rem;color:#173344}.driving-buttons button:disabled{cursor:default;opacity:.4}.driving-hint{font-size:.7rem;line-height:1.4;margin:10px 0 0;color:#c5d7df}
body:not(.playing) #driving-panel{display:none}body.driving #touch-jump,body.driving #touch-run,body.driving .control-guide,body.driving #crosshair{display:none!important}body.driving .bottom-bar{pointer-events:none;background:none}body.driving #credits-button{pointer-events:auto}
@media(max-width:560px){#driving-panel{bottom:60px;padding:12px}.driving-heading strong{font-size:.85rem}.driving-hint{font-size:.65rem}.driving-buttons kbd{display:none}body.driving #look-pad{bottom:290px}}
@media(max-height:570px) and (min-width:600px){#driving-panel{left:auto;right:16px;bottom:55px;transform:none;width:310px;padding:10px 12px}.driving-hint{display:none}.driving-buttons button{min-height:40px}.speed{font-size:1.4rem}}

@media(min-width:900px) and (max-height:950px){#driving-panel{left:auto;right:24px;bottom:64px;transform:none;width:330px}}

.driving-buttons .garage-remote{grid-column:1 / -1;font-size:12px;min-height:40px}

#foot-garage{display:flex;align-items:center;gap:9px;margin:8px auto 0;background:#173344f2;color:white;border:1px solid #fff9;border-radius:8px;padding:12px 18px;font-size:.9rem}#foot-garage kbd{color:#142c3a;background:white;margin:0}@media(pointer:coarse){#foot-garage kbd{display:none}}

body.playing:not(.croquet-playing) #world canvas{cursor:grab}body.playing #world canvas.dragging-look{cursor:grabbing}

#drive-fast{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:12px;min-height:48px;padding:10px 12px;border:1px solid #f0b368;border-radius:7px;background:#ffffff0c;color:#ffce7a;font-size:.9rem;font-weight:750;letter-spacing:.02em}#drive-fast[aria-pressed=true]{background:#f0b368;color:#172d38;box-shadow:0 0 18px #f0b36830}#drive-fast span{font-size:.8rem}.fast-mode-hint{font-size:.8rem;color:#c5d7df;margin:7px 0 0;line-height:1.4}
#garage-keypad{width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #ffffff70;border-radius:14px;background:#f5f7f5;color:#173344;box-shadow:0 16px 70px #0007}#garage-keypad::backdrop{background:#0e253dbb}#garage-keypad h2{font-size:1.65rem;margin:8px 0 12px}#keypad-message{font-size:1rem;line-height:1.4;min-height:2.8em}#garage-keypad label{font-size:.9rem;display:block;margin-bottom:8px}#garage-code{width:100%;box-sizing:border-box;border:2px solid #a9babd;border-radius:7px;padding:10px;text-align:center;font:600 1.8rem ui-monospace,monospace;letter-spacing:.45em;background:white;color:#173344}.keypad-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.keypad-keys button,.keypad-actions button{min-height:44px;border:1px solid #b4c2c5;border-radius:6px;background:white;color:#173344;font-size:1.1rem}.keypad-actions{display:flex;gap:10px}.keypad-actions button{flex:1}.keypad-actions .primary{margin:0;padding:10px;background:#173344;color:white}#garage-keypad button:focus-visible,#garage-code:focus-visible{outline:3px solid #d78321;outline-offset:2px}@media(max-height:650px){#garage-keypad{padding:16px}.keypad-keys{gap:5px;margin:8px 0}.keypad-keys button{min-height:36px}#keypad-message{min-height:0;margin:8px 0}}

@media(pointer:coarse){
 body.driving #driving-panel{left:auto;right:16px;bottom:76px;top:auto;transform:none;width:min(216px,calc(100vw - 174px));padding:10px;border-radius:10px}
 body.driving #drive-left,body.driving #drive-right,body.driving #drive-forward,body.driving #drive-reverse{display:none}
 body.driving .driving-buttons{grid-template-columns:1fr 1fr;gap:6px}body.driving .driving-buttons button{min-height:44px;font-size:.8rem}
 body.driving .driving-heading{gap:5px;align-items:flex-start}body.driving .driving-heading strong{font-size:.75rem;max-width:110px;line-height:1.3}body.driving .speed{font-size:1.4rem}
 body.driving .drive-status{display:none}body.driving #drive-fast{font-size:.72rem;letter-spacing:0;padding:8px 6px;min-height:44px;flex-wrap:wrap;gap:3px;margin-top:8px}body.driving #drive-fast span{font-size:.7rem}
 body.driving .fast-mode-hint{display:none}body.driving .driving-hint{font-size:.7rem;line-height:1.35;margin-top:8px}
 body.driving #joystick{border-color:#f0b368;background:#17334445}body.driving #joystick::after{content:'DRIVE';position:absolute;top:calc(100% + 9px);width:100%;text-align:center;font-size:.75rem;letter-spacing:.1em;color:#173344;font-weight:750;pointer-events:none}
 body.driving #look-pad{bottom:330px}
}
@media(pointer:coarse) and (max-height:570px){body.driving #driving-panel{bottom:40px;width:215px}body.driving .driving-heading strong,body.driving .driving-hint{display:none}body.driving .driving-heading{justify-content:flex-end}body.driving #look-pad{top:100px;bottom:80px;right:248px;width:30%}body.driving #joystick{bottom:45px;left:24px}}

#blazer-flight{border-top:1px solid #72d6ff66;padding-top:10px;margin-top:10px;color:#b8efff}.blazer-flight-heading{display:flex;justify-content:space-between;gap:5px;font-size:.85rem}.blazer-flight-heading span{font-size:.8rem}.blazer-flight-buttons{display:flex;gap:6px;margin-top:9px}.blazer-flight-buttons button{flex:1;min-height:44px;border:1px solid #91d8f7;border-radius:6px;background:#295a70;color:white;font-size:.85rem;touch-action:none;user-select:none;-webkit-user-select:none}.blazer-flight-buttons kbd{font-size:.7rem;color:#173344;margin:0;padding:1px 3px}#blazer-flight p{font-size:.75rem;line-height:1.35;margin:8px 0 0}@media(pointer:coarse){.blazer-flight-buttons kbd{display:none}.blazer-flight-buttons button{font-size:.8rem}body.vehicle-flying #look-pad{bottom:450px}}@media(pointer:coarse) and (max-height:570px){body.vehicle-flying #look-pad{top:100px;bottom:80px}#blazer-flight{padding-top:6px;margin-top:6px}#blazer-flight p{display:none}.blazer-flight-buttons{margin-top:5px}.blazer-flight-heading{font-size:.8rem}}

.jetpack-readout{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-top:6px}.jetpack-readout[hidden]{display:none}#jetpack-altitude{font-size:.8rem;color:#c5d7df;font-variant-numeric:tabular-nums}

/* In flight, keep the center clear and leave the useful controls at the edge. */
body.vehicle-flying #driving-panel{left:auto;right:16px;bottom:56px;top:auto;transform:none;width:286px;padding:10px;background:#173344dc;backdrop-filter:none}
body.vehicle-flying .driving-hint,body.vehicle-flying .fast-mode-hint,body.vehicle-flying .drive-status,body.vehicle-flying #blazer-flight p,body.vehicle-flying #drive-exit,body.vehicle-flying #drive-garage{display:none}
body.vehicle-flying .driving-buttons{grid-template-columns:repeat(3,1fr);gap:5px}body.vehicle-flying #drive-brake{grid-column:2;grid-row:2}
body.vehicle-flying #drive-fast{margin-top:7px;min-height:44px;padding:6px;font-size:.75rem;letter-spacing:0}
body.vehicle-flying #blazer-flight{padding-top:7px;margin-top:7px}.vehicle-flying .blazer-flight-buttons{margin-top:6px}
@media(pointer:coarse){body.vehicle-flying #driving-panel{bottom:54px;width:190px;padding:9px}body.vehicle-flying .driving-heading strong{max-width:105px}body.vehicle-flying .driving-buttons{display:block;margin-top:5px}body.vehicle-flying #drive-brake{width:100%}body.vehicle-flying .blazer-flight-heading{display:none}body.vehicle-flying #blazer-flight{border-top:0;padding-top:0;margin-top:5px}body.vehicle-flying #drive-fast{margin-top:5px}body.vehicle-flying #look-pad{bottom:290px}}
@media(pointer:coarse) and (max-height:570px){body.vehicle-flying #driving-panel{bottom:20px;right:12px;width:190px}body.vehicle-flying #look-pad{top:100px;bottom:80px;right:216px;width:30%}}

#reset-confirmation{max-width:410px;padding:28px}#reset-confirmation h2{margin:0 0 12px}#reset-confirmation p{margin:0 0 24px}.reset-actions{display:flex;gap:12px}.reset-actions button{flex:1;min-height:46px;border:1px solid var(--line);border-radius:7px;background:#edf3f6;color:var(--ink);font-weight:650}.reset-actions #reset-confirm{background:#173344;color:#fff;border-color:#173344}

/* Small edge controls leave the person and the action visible in the center. */
.actions select{font:600 .875rem ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;pointer-events:auto;cursor:pointer;background:#fffffff0;color:var(--ink);border:1px solid #ffffffb3;border-radius:7px;padding:10px 8px;min-height:44px;max-width:116px;box-shadow:0 3px 10px #18354b10}
.actions select:focus-visible{outline:3px solid #ec713f;outline-offset:3px}
body.playing #basketball-panel,body.playing #jetpack-panel{top:50%;bottom:auto;transform:translateY(-50%);padding:12px;background:#173344df;backdrop-filter:blur(8px);border-radius:9px}
body.playing #basketball-panel{left:auto;right:24px;width:180px}
body.playing #jetpack-panel{left:24px;right:auto;width:166px}
.basketball-heading,.jetpack-heading{flex-direction:column;align-items:flex-start;gap:4px;font-size:.875rem}
.basketball-heading span{font-size:.875rem}#basketball-status{font-size:.875rem;margin:8px 0;min-height:1.4em}
.basketball-buttons{flex-direction:column;gap:7px}.basketball-buttons button,.basketball-buttons button:last-child{flex:auto;min-height:44px}
.jetpack-buttons{gap:6px;margin:10px 0 7px}#jetpack-panel button{min-height:44px;padding:8px 5px;font-size:.875rem}
.jetpack-readout{flex-wrap:wrap;gap:2px 8px}.jetpack-readout .speed{font-size:1.5rem}
@media(max-width:850px){.actions select{font-size:.8rem;max-width:104px}body.playing #basketball-panel{right:16px}body.playing #jetpack-panel{left:16px}}
@media(max-width:560px){
 .actions select{font-size:1rem;max-width:108px;padding:8px 5px}
 body.playing:not(.croquet-playing) .actions{display:flex;flex-wrap:wrap;gap:6px;max-width:none}
 body.playing:is(.has-basketball,.has-jetpack) .identity{display:none}
 body.playing:is(.has-basketball,.has-jetpack) .compass{top:110px}
 body.playing:is(.has-basketball,.has-jetpack) #toast{top:110px}
 body.playing #basketball-panel,body.playing:not(.croquet-playing) #jetpack-panel{top:50%;bottom:auto;width:104px;padding:8px;transform:translateY(-50%)}
 body.playing #basketball-panel{right:10px;left:auto}body.playing:not(.croquet-playing) #jetpack-panel{left:10px;right:auto}
 #basketball-panel kbd,#jetpack-panel kbd,.jetpack-heading{display:none}
 .basketball-heading{gap:3px;font-size:.875rem}.basketball-heading span{font-size:.75rem}#basketball-status{font-size:.8rem;margin:6px 0}
 .basketball-buttons button{font-size:.875rem;padding:8px 3px}
 .jetpack-buttons{flex-direction:column;margin:0 0 6px;gap:6px}.jetpack-readout{margin:0 0 8px;flex-direction:column;align-items:flex-start;gap:0}.jetpack-readout .speed{font-size:1.3rem}#jetpack-altitude{font-size:.75rem}
 body.playing:not(.driving) #joystick{left:14px;bottom:54px;width:100px;height:100px}
 body.playing:not(.driving) #stick{left:29px;top:29px}
 body.playing:not(.driving) #touch-jump{right:16px;bottom:58px;width:58px;height:58px;padding:8px}
 body.playing:not(.driving) #touch-run{right:23px;bottom:128px;width:44px;height:44px}
}
@media(max-height:570px) and (min-width:561px){
 body.playing #basketball-panel,body.playing:not(.croquet-playing) #jetpack-panel{top:98px;bottom:auto;transform:none;width:166px;padding:9px}
 body.playing #basketball-panel{right:12px}body.playing:not(.croquet-playing) #jetpack-panel{left:12px}
 .basketball-heading,.jetpack-heading{display:none}#basketball-status{margin:0 0 6px}
 .jetpack-readout{margin:0 0 6px;gap:4px}.jetpack-readout .speed{font-size:1.2rem}.jetpack-buttons{margin:0 0 6px}
 body.playing:not(.driving) #joystick{left:16px;bottom:16px;width:88px;height:88px}
 body.playing:not(.driving) #stick{left:23px;top:23px}
 body.playing:not(.driving) #touch-jump{right:16px;bottom:16px;width:56px;height:56px;padding:8px}
 body.playing:not(.driving) #touch-run{right:86px;bottom:22px;width:44px;height:44px}
}
@media(max-height:570px) and (min-width:561px){body.playing:is(.has-basketball,.has-jetpack) .identity{display:none}body.playing:is(.has-basketball,.has-jetpack) .compass{top:20px;right:14px}}
@media(max-height:360px) and (min-width:561px){
 body.playing:not(.croquet-playing) #jetpack-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:184px}
 .jetpack-readout{grid-column:1 / -1;margin:0;justify-content:space-between}
 .jetpack-buttons{display:contents}#jetpack-panel kbd,#jetpack-panel button>span{display:none}
}
@media(max-height:570px) and (min-width:561px){body.playing:is(.has-basketball,.has-jetpack) .bottom-bar{display:none}}

/* A quiet edge panel keeps the shore and the walking character in view. */
#beach-panel{position:absolute;z-index:6;right:24px;top:50%;transform:translateY(-45%);width:186px;padding:14px;background:#153d44ed;color:#f0f6f2;border:1px solid #b2dad5aa;border-radius:12px;box-shadow:0 8px 26px #142c3a20}
.beach-heading{display:flex;flex-direction:column;gap:4px;font-size:1rem}.beach-heading span{font-size:.875rem;color:#c0dfd8}
.beach-discoveries{grid-column:1/-1;margin-top:10px;font-size:.8125rem;color:#d7e9e1}#beach-colors{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;margin-top:7px}.beach-color{aspect-ratio:1;border:1px solid #c4dcd57a;border-radius:50%;background:transparent}.beach-color.found{background:var(--glass-color);border-color:#e6f4ed;box-shadow:0 0 6px #d5f1e126}#beach-find{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid #c5d9d0;border-radius:10px;background:#e6efea;margin:16px 0}#beach-find-swatch{flex:none;width:42px;height:38px;border-radius:38% 62% 54% 46%;box-shadow:inset 0 2px 5px #ffffff8a,inset 0 -2px 5px #173c4222}#beach-find-note{font-size:.875rem;line-height:1.5;margin:5px 0 0}#beach-hint{font-size:.875rem;line-height:1.45;margin:12px 0;min-height:2.9em;color:#e0eeea}
#beach-panel button{display:block;width:100%;min-height:44px;border:1px solid #abcfc45e;border-radius:6px;background:#ffffff0e;color:#f0f6f2;padding:8px;margin-top:7px;font-size:.875rem;line-height:1.3;font-weight:600}
#beach-panel #glass-pickup,#beach-panel #beach-tide{background:#cae6db;color:#173c42;border-color:#cae6db}#beach-panel button:disabled{cursor:default;opacity:.5}#beach-panel kbd{margin:0 0 0 3px;padding:1px 4px;color:#173c42}
body:not(.playing) #beach-panel{display:none}body.beachcombing .identity>p{display:none}body.beachcombing #touch-run{display:none}body.beachcombing #toast{max-width:390px}
#glass-collection{max-height:calc(100dvh - 32px);overflow:auto;width:min(480px,calc(100vw - 32px));background:#f2f7f4;padding:28px}#glass-collection h2{margin:8px 0 10px}#collection-summary{margin:0 0 20px;font-size:1rem}#collection-colors{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0}#collection-colors li{display:grid;grid-template-columns:22px 1fr auto;gap:8px;align-items:center;border:1px solid #c5d9d0;padding:12px 9px;border-radius:8px;background:#fff9;font-size:.875rem}.glass-swatch{width:20px;height:20px;border:1px solid #173c4240;border-radius:5px}#collection-save-note{font-size:.875rem;margin:20px 0}#glass-collection .primary{background:#215253;justify-content:center}
@media(pointer:coarse){#beach-panel kbd{display:none}}
@media(max-width:560px){
 body.beachcombing.playing .identity{display:none}body.beachcombing.playing .compass{top:112px}body.beachcombing.playing #toast{top:116px;width:calc(100vw - 28px);font-size:.875rem}
 #beach-panel{right:10px;top:46%;width:116px;padding:8px;transform:translateY(-35%)}.beach-heading{font-size:.875rem}#beach-hint{font-size:.875rem;margin:8px 0}#beach-panel button{padding:7px 4px;font-size:.875rem;margin-top:5px}
 #glass-collection{padding:22px}#collection-colors{gap:7px}#collection-colors li{grid-template-columns:18px 1fr auto;padding:10px 6px;gap:6px}.glass-swatch{width:17px;height:20px}
 .start-panel{max-height:calc(100dvh - 204px);overflow:auto}
}
@media(max-height:570px) and (min-width:561px){
 #beach-panel{right:12px;top:98px;transform:none;width:164px;padding:8px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.beach-heading{flex-direction:row;justify-content:space-between;grid-column:1/-1}#beach-hint{grid-column:1/-1;margin:2px 0;min-height:0}#beach-panel button{margin:0}#glass-pickup,#beach-tide{grid-column:1/-1}#beach-return{grid-column:1/-1}body.beachcombing .bottom-bar{display:none}body.beachcombing.playing .identity{display:none}body.beachcombing.playing .compass{top:24px;right:14px}
 .start-panel{max-height:calc(100dvh - 140px);overflow:auto;bottom:56px}
}
@media(max-width:560px) and (max-height:640px){
 #beach-panel{top:122px;transform:none}body.beachcombing .compass{display:none}
 .beach-heading strong{display:none}#beach-hint{display:none}body.beachcombing.playing #toast{left:14px;right:auto;transform:none;width:calc(100vw - 146px)}
}
@media(max-width:380px){#beach-panel{width:100px;right:8px;padding:6px}}
@media(max-height:420px) and (min-width:561px){
 #beach-panel{width:200px;top:94px}.beach-discoveries{margin-top:0;display:flex;gap:9px;align-items:center;font-size:.75rem}#beach-colors{flex:1;margin:0;gap:3px}#beach-hint{display:none}
 #beach-panel #glass-pickup,#beach-panel #beach-tide,#beach-panel #beach-return{grid-column:auto}
}

/* Keep a usable look gesture and nearby actions in short phone viewports. */
@media(pointer:coarse) and (max-height:570px) and (min-width:561px){
 body.playing:not(.driving) #look-pad{top:94px;bottom:90px;right:0;width:45%;min-height:60px}
 body.playing #interaction,body.playing.has-basketball #interaction{top:94px;bottom:auto;max-width:calc(100vw - 370px)}
 body.playing #interact-button{white-space:normal;min-height:44px}
}
@media(pointer:coarse){
 .topbar{padding-top:max(16px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 body.playing:not(.croquet-playing) .bottom-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2s}button,#toast{transition:none}}

/* Keep the full name clear of the walking controls on narrower desktops. */
@media(min-width:851px) and (max-width:1100px){.topbar{column-gap:16px}.identity h1{font-size:1.65rem}}

/* Nearby activities live at the edge, leaving the character and shore clear. */
#activity-panel{position:absolute;z-index:7;left:22px;top:44%;transform:translateY(-25%);width:190px;border:1px solid #9bbec1;border-radius:12px;background:#173b43ef;color:#f3f8f5;padding:13px;box-shadow:0 8px 24px #132a3020}
#activity-panel strong{font-size:1rem}#activity-status{font-size:.875rem;line-height:1.45;margin:8px 0;white-space:pre-line}#activity-status:empty{display:none}#activity-buttons{display:grid;gap:7px}#activity-buttons button{background:#e4eee7;color:#183942;border:0;border-radius:6px;padding:10px 8px;font-size:.875rem;min-height:44px;text-align:left;line-height:1.3}#activity-buttons button:disabled{opacity:.5}body:not(.playing) #activity-panel{display:none}
body.occupied #touch-jump,body.occupied #touch-run{display:none}
#collection-colors{grid-template-columns:repeat(3,1fr)}#collection-colors li{display:flex;flex-direction:column;gap:4px;text-align:center;padding:7px;font-size:.875rem}#collection-colors canvas{display:block;width:100%;height:auto;border-radius:5px}#collection-colors small{font-size:.75rem;color:#536766}.collection-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.collection-pages button{min-height:44px;padding:10px}.collection-pages span{font-size:.875rem}#garage-code{-webkit-text-security:disc}
@media(max-width:560px){#activity-panel{left:10px;width:126px;padding:9px;top:42%;transform:translateY(-20%)}#activity-panel strong{font-size:.875rem}#activity-status{font-size:.8125rem}#activity-buttons{gap:6px}#activity-buttons button{padding:8px 6px}body.occupied.playing .identity{display:none}body.occupied .bottom-bar{display:none}}
@media(max-height:570px) and (min-width:561px){#activity-panel{left:12px;top:100px;transform:none;width:185px;padding:9px;max-height:calc(100dvh - 195px);overflow:auto}#activity-status{font-size:.8125rem;margin:5px 0}#activity-buttons button{padding:7px}#activity-buttons{gap:5px}}
@media(max-width:560px){
 body.driving.playing .identity{display:none}
 body.driving #driving-panel{left:auto;right:10px;top:48%;bottom:auto;transform:translateY(-20%);width:124px;padding:8px}
 body.driving .driving-heading{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:.875rem}
 body.driving .driving-heading .speed{font-size:1.35rem;line-height:1.1}
 body.driving .driving-buttons{display:grid;grid-template-columns:1fr;gap:6px;margin-top:7px}
 body.driving .driving-buttons button{font-size:.875rem;padding:8px 4px;min-height:44px;grid-column:auto}
 body.driving #drive-garage:disabled,body.driving #driving-hint,body.driving .fast-mode-hint,body.driving .drive-status{display:none}
 body.driving #drive-fast{font-size:.75rem;padding:9px 3px;display:block;line-height:1.3;margin-top:7px;width:100%}
 body.driving #drive-fast-state{display:block;font-size:.75rem;margin-top:3px}
 body.driving #activity-panel{top:40%;width:116px}
 body.driving #blazer-flight{font-size:.8125rem}
 body.driving .blazer-flight-buttons{display:flex;flex-direction:column;gap:5px}body.driving .blazer-flight-buttons button{padding:7px 3px;font-size:.875rem}
 body.driving #blazer-flight p,body.driving .blazer-flight-heading{display:none}
}

@media(max-width:560px){body.playing.near-activity .identity{display:none}}
@media(max-width:560px) and (max-height:640px){body.playing #activity-panel{top:134px;transform:none;max-height:calc(100dvh - 300px);overflow-y:auto}}

/* Rooms use the existing game palette and leave the play area clear. */
#room-dialog{width:min(440px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:26px;border:1px solid #bbcbd1;border-radius:20px;background:#f5f8f9;color:#173344;box-shadow:0 24px 90px #10253455}#room-dialog::backdrop{background:#10253488}#room-dialog h2{font-size:1.8rem;margin:8px 0 12px}#room-dialog p{font-size:1rem;line-height:1.5}#room-dialog button{font-size:.95rem;min-height:42px}#room-close{float:right;background:transparent;border:0;font-size:1.5rem!important;min-width:42px}#room-form{margin-top:22px}#room-form label{display:block;font-size:.95rem;margin-bottom:8px}.room-join-row{display:flex;gap:8px}#room-code,#room-invite{min-width:0;width:100%;padding:12px;border:1px solid #8ca6b3;border-radius:9px;font:inherit}#room-code{text-transform:uppercase;letter-spacing:.08em}.room-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}#room-display-code{display:block;font-size:1.5rem;letter-spacing:.08em;margin-top:16px}#room-message{min-height:24px;color:#954420}.room-note{font-size:.875rem!important;color:#526b78;border-top:1px solid #d3dee3;padding-top:14px}.remote-player-name{position:fixed;left:0;top:0;z-index:5;pointer-events:none;background:#173344e8;color:#fff;padding:5px 10px;border-radius:20px;font:600 14px/1.2 system-ui;box-shadow:0 2px 7px #0002;white-space:nowrap}.remote-player-name[hidden]{display:none}.in-room #room-button{background:#dceef1;color:#173344}@media(max-width:600px){#room-button{font-size:12px;padding:7px 8px}.actions{gap:4px}#room-dialog{padding:20px}#room-display-code{font-size:1.2rem}}

#room-join,.room-actions button:not(.primary){border:1px solid #9db3bd;border-radius:8px;background:#fff;color:#173344;padding:9px 13px;font-weight:600}@media(max-width:560px){.actions{flex-wrap:wrap}}

.player-beacon-label{background:#ffe08a;color:#162e3c;border:2px solid #fff3c6;box-shadow:0 2px 12px #10273360;font-weight:800;z-index:12;white-space:nowrap}#beacon-button[aria-pressed="true"]{background:#ffedb0;color:#173344}.passenger .driving-buttons>button:not(#drive-exit),.passenger #drive-fast,.passenger #blazer-flight,.passenger #joystick{display:none!important}.passenger #driving-hint{max-width:30ch}
/* One docking policy for every driving mode, including tall desktop windows. */
body.driving #driving-panel{
 left:auto;right:max(16px,env(safe-area-inset-right));top:130px;bottom:auto;
 transform:none;width:264px;padding:12px;max-height:calc(100dvh - 194px - env(safe-area-inset-bottom));
 overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
 background:#173344e8;backdrop-filter:none;
}
body.driving .driving-hint,body.driving .fast-mode-hint{display:none}
body.driving .driving-buttons button{min-height:44px}
@media(max-width:899px){body.driving #driving-panel{width:216px;right:max(12px,env(safe-area-inset-right));padding:10px}}
@media(max-width:560px){
 body.driving #drive-brake{grid-column:auto;grid-row:auto}
 body.driving #driving-panel{top:108px;right:max(10px,env(safe-area-inset-right));width:124px;padding:8px;max-height:calc(100dvh - 180px - env(safe-area-inset-bottom))}
}
@media(max-height:570px) and (min-width:561px){
 body.driving #driving-panel{top:max(88px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:190px;padding:8px;max-height:calc(100dvh - 120px - env(safe-area-inset-bottom))}
}
