/* Expedition art direction: restrained field equipment, readable maps and quiet controls. */
body[data-scene="explore"],body[data-scene="islandQuest"]{--exp-panel:#152528ed;--exp-line:#87999166;--exp-ink:#edf2ea;--exp-accent:#c8ad70;font-family:Inter,system-ui,-apple-system,sans-serif}
body[data-scene="explore"] .topbar{background:linear-gradient(#101b22d9,transparent)!important;color:var(--exp-ink)}
body[data-scene="explore"] .brand{font-family:Inter,system-ui,sans-serif;font-weight:650;letter-spacing:.035em}
body[data-scene="explore"] .tools .lang{background:#142126d9;border:1px solid var(--exp-line);border-radius:5px}
body[data-scene="explore"] .tools .lang button{color:var(--exp-ink);border-radius:3px}
body[data-scene="explore"] .tools .lang button.active{background:#c8ad70;color:#142126}
body[data-scene="explore"] :is(.world-small,.world-action,.world-jump,.world-catch,.camera-view-toggle,.movement-speed,.mobile-game-dock button){background:var(--exp-panel)!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:7px!important;box-shadow:0 2px 10px #07131933!important;font-family:inherit;font-weight:550;}
body[data-scene="explore"] :is(.world-small,.world-action,.world-jump,.camera-view-toggle,.mobile-game-dock button):hover{border-color:var(--exp-accent)!important;background:#273938f2!important}
body[data-scene="explore"] .picture-button .button-picture{display:flex;justify-content:center;align-items:center;font-family:inherit;font-size:20px!important;color:var(--exp-accent)}
body[data-scene="explore"] .button-picture svg{width:23px;height:23px}
body[data-scene="explore"] .button-caption{font-size:12px!important;letter-spacing:.01em;font-weight:550!important}
body[data-scene="explore"] .mobile-dock-icon{display:grid;place-items:center;color:var(--exp-accent);font-family:inherit;font-size:20px!important}
body[data-scene="explore"] .mobile-dock-icon svg{width:23px;height:23px}
body[data-scene="explore"] .mobile-dock-caption{font-weight:550!important;font-size:12px!important}
body[data-scene="explore"] .mobile-game-dock .mobile-dock-build{background:#263b36f2!important;border-color:#adbe9b99!important}
body[data-scene="explore"] :is(.explore-location,.explore-bag,.region-help-status,.colon-status,.volcano-hike-status){background:var(--exp-panel)!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:5px!important;box-shadow:none!important;font-weight:550!important}
body[data-scene="explore"] .explore-location{font-family:inherit;letter-spacing:.025em;font-size:13px!important}
body[data-scene="explore"] :is(.world-story,.campaign-hud,.island-goal,.explore-message){background:var(--exp-panel)!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:7px!important;box-shadow:0 3px 14px #07131933!important}
body[data-scene="explore"] :is(.world-story,.campaign-hud){font-family:inherit;font-size:13px;font-weight:500}
body[data-scene="explore"] .world-story :is(strong,b),body[data-scene="explore"] .campaign-hud :is(strong,b){font-weight:650;color:#d6c18d}
body[data-scene="explore"] .explore-stick{border:1px solid #b7c4ba99!important;background:#10242b55!important;box-shadow:inset 0 0 20px #091a2425!important}
body[data-scene="explore"] .stick-knob{background:#c4cbbabf!important;border:1px solid #f3f2deaa!important;box-shadow:0 2px 10px #07131955!important;font-size:19px;color:#1a2a2b}
body[data-scene="explore"] .stick-compass{color:#edf2ea;font:10px system-ui;opacity:.8}
body[data-scene="explore"] .explore-stick.stick-held{border-color:#dfca91!important;box-shadow:0 0 0 2px #c8ad7022!important}
body[data-scene="explore"] :is(.explore-panel,.friend-panel,.realm-panel,.journey-panel){background:#182a2e!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:10px!important;box-shadow:0 20px 60px #06121977!important}
body[data-scene="explore"] .explore-panel h2{font-family:inherit!important;font-size:25px!important;font-weight:600!important;letter-spacing:-.025em}
body[data-scene="explore"] .explore-panel :is(p,h3){color:#c3cec4!important}
body[data-scene="explore"] :is(.panel-close,.discover-place,.estate-plan,.estate-costs,.estate-currency,.estate-legacy-link){background:#24383c!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:6px!important;box-shadow:none!important}
body[data-scene="explore"] .discover-place:disabled{color:#8c9b96!important;background:#1d2d31!important}
body[data-scene="explore"] :is(.estate-ready,.estate-build-button,.goal-next){background:#385746!important;color:#edf2ea!important;border-color:#7e9d7d!important;border-radius:6px!important}
body[data-scene="explore"] .explore-panel .button-picture{font-size:23px!important}
body[data-scene="explore"] .world-arrows button{background:#152528d9;border:1px solid var(--exp-line);border-radius:4px;color:var(--exp-ink)}
body[data-scene="explore"] .world-action.has-target{border-color:#c8ad70cc!important}
body[data-scene="explore"] .explore-controls{color:#edf2eacc;text-shadow:0 1px 4px #0009;font-weight:400}
body[data-scene="entry"] .welcome-copy{font-family:Inter,system-ui,sans-serif}
body[data-scene="entry"] .world-entry h1{font-family:inherit;letter-spacing:-.045em;font-weight:650}
body[data-scene="entry"] .world-entry h1 em{font-family:inherit;font-style:normal;font-weight:450;letter-spacing:.03em}
body[data-scene="entry"] .primary.enter-world{border-radius:7px!important;box-shadow:0 4px 16px #07131944;background:#ffdf55!important;color:#173d37!important}
@media(max-width:780px){
 body[data-scene="explore"] .explore-actions .picture-button{border-radius:7px!important;min-height:64px!important}
 body[data-scene="explore"] .mobile-game-dock button{border-radius:7px!important}
 body[data-scene="explore"] .mobile-game-dock{gap:6px}
}
@media(prefers-reduced-motion:reduce){body[data-scene="explore"] button{transition:none!important}}
body[data-scene="explore"] .explore-world .explore-actions .animal-ride-quick:not([hidden]){background:var(--exp-panel)!important;color:var(--exp-ink)!important;border:1px solid var(--exp-line)!important;border-radius:7px!important;box-shadow:0 2px 10px #07131933!important;font-weight:550!important}
body[data-scene="explore"] .world-story .story-sequence span{background:#314641;border:1px solid #65796c;border-radius:4px;color:#d9dfd2;box-shadow:none}
body[data-scene="explore"] .world-story .story-sequence .story-next{background:#5a603f;border-color:#c8ad70}
body[data-scene="entry"] .welcome-feature-icon{display:grid;place-items:center;color:#e0c68a}
body[data-scene="entry"] .welcome-feature-icon svg{width:30px;height:30px}
body[data-scene="entry"] .welcome-feature{border-radius:7px!important;background:#152528c9!important;border:1px solid #c0c7b866!important;color:#edf2ea!important}
/* Angelique's Panama: warm and inviting, with clear equipment-style controls. */
body[data-scene="explore"]{--exp-panel:#f8f1def0;--exp-line:#526e5e66;--exp-ink:#244c48;--exp-accent:#487a65}
body[data-scene="explore"] :is(.world-small,.world-action,.world-jump,.world-catch,.camera-view-toggle,.movement-speed,.mobile-game-dock button){border-radius:11px!important}
body[data-scene="explore"] .mobile-game-dock .mobile-dock-build{background:#efcf83f2!important;color:#244c48!important}
body[data-scene="explore"] :is(.world-story,.campaign-hud) :is(strong,b){color:#315a46}
body[data-scene="explore"] :is(.explore-panel,.friend-panel,.realm-panel,.journey-panel){background:#f6f1e4!important;color:#244c48!important}
body[data-scene="explore"] .explore-panel :is(p,h3){color:#426055!important}
body[data-scene="explore"] :is(.panel-close,.discover-place,.estate-plan,.estate-costs,.estate-currency,.estate-legacy-link){background:#e4edda!important;color:#244c48!important}
body[data-scene="explore"] :is(.world-small,.world-action,.world-jump,.camera-view-toggle,.mobile-game-dock button):hover{background:#e0ead8f2!important}
/* A single calm impact cue; never blink repeatedly or hide the movement controls. */
.explore-world.collision-impact:after{content:'';position:absolute;inset:0;z-index:14;pointer-events:none;box-shadow:inset 0 0 65px #cf713344;border:2px solid #c8985b66}
/* Keep the identity legible against both bright skies and dark foliage. */
body:is([data-scene="explore"],[data-scene="islandQuest"]) .topbar .brand{color:#fff!important;background:#102e38f5;border:1px solid #ffffff40;border-radius:12px;padding:8px 12px;text-shadow:0 1px 2px #000;line-height:1.15;flex-shrink:1}
body:is([data-scene="explore"],[data-scene="islandQuest"]) .topbar .brand small{color:#e2efee!important}
body[data-scene="entry"] .world-entry:before{background:linear-gradient(90deg,#103c48d9,#438c9644),url('./assets/panama-welcome.jpg') center/cover;opacity:1}
.welcome-world{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.welcome-world>:not(canvas){display:none!important}
.welcome-world canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;visibility:visible!important}
body[data-scene="entry"] .showcase-ready:before{opacity:0}
body[data-scene="entry"] .world-entry:after{background:linear-gradient(90deg,#072c3aeb 0%,#092c3dba 32%,#123c4810 70%),linear-gradient(0deg,#102e38a6,transparent 35%)}
body[data-scene="entry"] .world-entry .welcome-copy{max-width:460px}
body[data-scene="entry"] .world-entry .welcome-feature-grid{display:grid;grid-template-columns:repeat(4,1fr)}
body[data-scene="entry"] .world-entry .welcome-feature-icon{font-size:27px}
@media(max-width:780px){
 body[data-scene="entry"] .world-entry{align-items:flex-end;padding:95px 6vw 26px;min-height:650px}
 body[data-scene="entry"] .world-entry:after{background:linear-gradient(0deg,#082b3cf5 0%,#082b3cde 40%,#082b3c22 75%)}
 body[data-scene="entry"] .world-entry h1{font-size:clamp(38px,10vw,60px);margin:12px 0}
 body[data-scene="entry"] .world-entry p{font-size:16px;line-height:1.45}
 body:is([data-scene="explore"],[data-scene="islandQuest"]) .topbar .brand{font-size:13px;padding:7px 9px;max-width:175px}
}
body[data-scene="entry"] .topbar .brand{color:#fff!important;background:#102e38e8;border:1px solid #ffffff30;border-radius:12px;padding:8px 12px;line-height:1.15}
@media(max-width:380px){body[data-scene="entry"] .world-entry{min-height:568px;padding-top:85px;padding-bottom:18px}body[data-scene="entry"] .world-entry h1{font-size:34px}body[data-scene="entry"] .world-entry .welcome-feature{min-height:58px}body[data-scene="entry"] .world-entry .primary{min-height:58px;margin:10px 0}}
.audio-mixer{display:grid;gap:18px}.audio-level{display:grid;grid-template-columns:1fr auto;gap:10px;font-weight:700}.audio-level input{grid-row:2;grid-column:1/-1;width:100%;min-height:36px;accent-color:#287c73}.audio-level output{grid-row:1;grid-column:2}.audio-now{font-size:14px}.audio-credits{color:#176b62;font-size:13px;padding:8px 0}

/* One shared world clock, readable without opening another menu. */
.world-clock{display:flex;align-items:center;gap:12px;width:max-content;max-width:100%;margin-top:6px;padding:7px 11px;border:1px solid #ffffff55;border-radius:14px;background:#12353aed;color:#fff;box-shadow:0 3px 12px #001c2430;pointer-events:auto}
.world-clock-time{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.world-clock-schedule{font-size:12px;color:#f6e4b3;white-space:nowrap}
@media(max-width:760px){.world-clock{gap:8px;padding:6px 9px}.world-clock-time{font-size:16px}.world-clock-schedule{font-size:11px}}
@media(max-width:360px){.world-clock{flex-wrap:wrap;gap:2px 8px}.world-clock-schedule{font-size:10px}}

.explore-world>.world-clock{position:absolute;z-index:12;top:14px;left:50%;transform:translateX(-50%);margin:0}
@media(max-width:760px){.explore-world>.world-clock{top:112px;left:auto;right:12px;transform:none;max-width:calc(100% - 24px)}}

/* Panama color language: ocean = explore, mango = actions, coral = friends,
   rose = home. Labels and icons always accompany color. */
body:is([data-scene="explore"],[data-scene="islandQuest"]){--exp-ink:#123e50;--exp-accent:#087c99;--exp-panel:#fffdf5f5;--exp-line:#148eaa55}
body:is([data-scene="entry"],[data-scene="explore"],[data-scene="islandQuest"]) button{font-weight:750}
body[data-scene="entry"] .world-entry{background:#1a9ba8 url('./assets/panama-welcome.jpg') center/cover}
body[data-scene="entry"] .world-entry:before{background:linear-gradient(100deg,#064f69e6,#08768a22)!important;filter:none!important}
body[data-scene="entry"] .world-entry:after{background:linear-gradient(90deg,#043c5a99,transparent 85%)!important}
body[data-scene="entry"] .welcome-copy{padding:24px 0}
body[data-scene="entry"] .eyebrow{color:#ffe17f;letter-spacing:.12em}
body[data-scene="entry"] .world-entry h1{font-weight:850;line-height:1.04;color:#fffdf2;text-shadow:0 3px 0 #075770}
body[data-scene="entry"] .world-entry h1 em{color:#ffe179;font-weight:750;letter-spacing:0}
body[data-scene="entry"] .world-entry .welcome-feature{background:#fff8eaf5!important;color:#123e50!important;border:2px solid #fff!important;border-bottom:5px solid #00a2b3!important;border-radius:18px!important;box-shadow:0 4px 0 #06445c40}
body[data-scene="entry"] .world-entry .welcome-feature:nth-child(2){border-bottom-color:#eead24!important}
body[data-scene="entry"] .world-entry .welcome-feature:nth-child(3){border-bottom-color:#d74791!important}
body[data-scene="entry"] .world-entry .welcome-feature:nth-child(4){border-bottom-color:#e55266!important}
body[data-scene="entry"] .welcome-feature-icon{color:#087d99;font-size:29px}
body[data-scene="entry"] .world-entry .primary.enter-world{background:#ffda53!important;color:#123e50!important;border:3px solid #fff8d5!important;border-radius:24px!important;box-shadow:0 6px 0 #be861c,0 10px 26px #063c5344!important;font-weight:900}
body:is([data-scene="entry"],[data-scene="explore"]) .topbar .brand{background:#056b8ff5!important;border:2px solid #fff9!important;border-bottom:4px solid #ed536b!important;border-radius:17px!important;letter-spacing:0}
body[data-scene="explore"] .tools button,body[data-scene="entry"] .tools button{background:#fff9e9;color:#075678;border:1px solid #84ced6;border-radius:12px;box-shadow:0 3px 0 #07577535}
body:is([data-scene="entry"],[data-scene="explore"]) .tools .lang button.active{background:#ffda53;color:#133e50}
body[data-scene="explore"] .explore-world :is(.world-small,.world-action,.world-jump,.world-catch,.camera-view-toggle,.movement-speed,.mobile-game-dock button,.mansion-launch,.car-horn){background:#e8fbfff5!important;color:#074d70!important;border:2px solid #fff!important;border-bottom:4px solid #1486a8!important;border-radius:18px!important;box-shadow:0 3px 10px #05465b33!important;font-weight:800!important}
body[data-scene="explore"] .explore-world button:is(.world-action,.world-jump,.world-catch){background:#ffdc66!important;color:#493608!important;border-bottom-color:#c38b20!important}
body[data-scene="explore"] .explore-world .mobile-game-dock .mobile-dock-build{background:#ffe3a3!important;color:#5a3b05!important;border-bottom-color:#d19624!important}
body[data-scene="explore"] .explore-world .mobile-game-dock :is(.mobile-dock-friend,.mobile-dock-phone){background:#ffe1e5!important;color:#88283f!important;border-bottom-color:#e3526c!important}
body[data-scene="explore"] .explore-world button.mansion-launch{background:#ffe2f1!important;color:#84245a!important;border-bottom-color:#ca418b!important}
body[data-scene="explore"] .explore-world :is(.button-picture,.mobile-dock-icon){color:inherit!important;font-size:26px!important}
body[data-scene="explore"] .explore-world :is(.button-picture,.mobile-dock-icon) svg{width:28px;height:28px;stroke-width:1.8}
body[data-scene="explore"] .explore-world :is(.button-caption,.mobile-dock-caption){font-weight:800!important;font-size:13px!important;line-height:1.2}
body[data-scene="explore"] .explore-world .explore-location{background:#fffaf0f5!important;color:#075574!important;border-left:5px solid #ed536b!important;border-radius:13px!important}
body[data-scene="explore"] .world-clock{background:#075773f0;border:2px solid #89e2e8;border-radius:18px;color:#fff}
body[data-scene="explore"] .world-clock-time{color:#ffdf73}
body[data-scene="explore"] .explore-stick{background:#137e9a88!important;border:2px solid #e8fcff!important}
body[data-scene="explore"] .stick-knob{background:#ffda62!important;border:3px solid #fff4c4!important;color:#154957!important}
body[data-scene="explore"] .world-arrows button{background:#d8f7fc;border-color:#149bb0;color:#075773;border-radius:10px}
body[data-scene="explore"] .explore-world :is(.explore-panel,.friend-panel,.realm-panel,.journey-panel){background:#fffdf3!important;color:#153f50!important;border:3px solid #fff!important;border-top:7px solid #129faf!important;border-radius:24px!important;box-shadow:0 14px 45px #07445c55!important}
body[data-scene="explore"] .explore-world .mansion-panel{border-top-color:#d74991!important}
body[data-scene="explore"] .explore-world .explore-panel h2{color:#075773!important;font-weight:850!important}
body[data-scene="explore"] .explore-world .explore-panel :is(p,h3){color:#355765!important}
body[data-scene="explore"] .explore-world :is(.discover-place,.backpack-world-tile,.mansion-panel button:not(.panel-close)){background:#e3f7f6!important;color:#075773!important;border:1px solid #8ecdd1!important;border-bottom:3px solid #2997a4!important;border-radius:15px!important;font-weight:750!important}
body[data-scene="explore"] .explore-world .mansion-panel button:not(.panel-close){background:#fff0f7!important;border-color:#e7b6d0!important;border-bottom-color:#ca6c9d!important;color:#793654!important}
body[data-scene="explore"] .explore-world .panel-close{background:#ffe2e2!important;color:#922d43!important;border:1px solid #e899a8!important;border-radius:14px!important;min-width:44px;min-height:44px}
body[data-scene="explore"] .explore-world button:disabled{opacity:.48!important;filter:saturate(.35);box-shadow:none!important}
body[data-scene="explore"] .explore-world button:focus-visible{outline:3px solid #0854a2;outline-offset:3px}
.world-loading{position:absolute;inset:0;z-index:80;display:grid;place-content:center;justify-items:center;gap:18px;padding:24px;text-align:center;background:linear-gradient(155deg,#087c9d,#10aaa7 65%,#97dfbd);color:#fffdf1}
.world-loading .loading-postcard{font:900 clamp(26px,6vw,42px)/1.1 system-ui;text-shadow:0 3px 0 #05516d}
.world-loading .loading-note{font:750 17px/1.5 system-ui;max-width:360px;background:#fff9e8;color:#14556b;padding:16px 22px;border-radius:22px;border-bottom:5px solid #ffce58}
.world-loading .loading-sun{font-size:66px;animation:panama-sun 3s ease-in-out infinite}
.world-loading .loading-track{width:min(280px,70vw);height:16px;overflow:hidden;border:2px solid #fff9e8;border-radius:999px;background:#055773;box-shadow:0 4px 0 #05516d55}
.world-loading .loading-traveler{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffd459,#fff3a5,#ffb847);transition:width .15s linear}
.world-loading .loading-percent{font:900 clamp(42px,10vw,64px)/1 system-ui;font-variant-numeric:tabular-nums;color:#fff2a3;text-shadow:0 3px 0 #05516d}
.explore-ready .world-loading,.explore-fallback .world-loading{display:none}
@keyframes panama-sun{50%{transform:translateY(-7px) rotate(8deg)}}
@media(max-width:780px){body[data-scene="entry"] .world-entry:after{background:linear-gradient(0deg,#03445be8,#07566e99 70%,transparent)!important}body[data-scene="entry"] .world-entry .welcome-copy{padding:12px 0}body[data-scene="explore"] .explore-world .mobile-game-dock button{border-radius:15px!important}body[data-scene="explore"] .explore-world :is(.button-caption,.mobile-dock-caption){font-size:12px!important}}
@media(prefers-reduced-motion:reduce){.world-loading .loading-sun,.world-loading .loading-traveler{animation:none}.world-loading .loading-traveler{transition:none}}
/* An empty pre-Play renderer stage must not cover the lightweight welcome art. */
body[data-scene="entry"] .world-entry .welcome-world{display:none}

body[data-scene="explore"] .explore-world button:is(.picture-button,.backpack-world-tile)[data-ui-kind="home"]{background:#ffe4f2!important;color:#7e2856!important;border-color:#e8a6ca!important;border-bottom-color:#ca4c8b!important}
body[data-scene="explore"] .explore-world button:is(.picture-button,.backpack-world-tile)[data-ui-kind="friends"]{background:#ffe4e6!important;color:#862d43!important;border-color:#e9a7b0!important;border-bottom-color:#df536c!important}
body[data-scene="explore"] .explore-world button:is(.picture-button,.backpack-world-tile)[data-ui-kind="food"]{background:#ffebba!important;color:#63400d!important;border-color:#edcb7d!important;border-bottom-color:#ce9323!important}
body[data-scene="explore"] .explore-world button:is(.picture-button,.backpack-world-tile)[data-ui-kind="gear"]{background:#d9f5df!important;color:#225f44!important;border-color:#9ed3b1!important;border-bottom-color:#32936b!important}
body[data-scene="explore"] .explore-world button:is(.picture-button,.backpack-world-tile)[data-ui-kind="play"]{background:#ece5ff!important;color:#533b80!important;border-color:#c6b3e8!important;border-bottom-color:#8d6ac2!important}

.explore-world.guided-arrival canvas{opacity:var(--welcome-view,0)}
/* Calm arrival: the world first, a single greeting, then the controls. */
body[data-scene="explore"]:has(.guided-arrival) .topbar{opacity:0;visibility:hidden;pointer-events:none}
body[data-scene="explore"] .explore-world.guided-arrival>:not(canvas):not(.world-loading):not(.arrival-guide-card):not(.arrival-skip){opacity:0!important;visibility:hidden!important;pointer-events:none!important}
.explore-world :is(.mobile-game-dock,.explore-actions,.mansion-launch,.explore-location,.world-clock),body[data-scene="explore"] .topbar{transition:opacity .8s ease}
.arrival-guide-card{position:absolute;z-index:85;left:50%;bottom:13%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);padding:16px 23px;border:2px solid #fff;border-bottom:5px solid #e7b53d;border-radius:22px;background:#fff8e8f2;color:#12546a;text-align:center;font:800 clamp(17px,3vw,23px)/1.4 system-ui;box-shadow:0 8px 24px #16495a30}
.arrival-skip{position:absolute;z-index:86;right:20px;bottom:22px;min-height:44px;padding:10px 17px;border-radius:16px;border:2px solid #fff;background:#e9f9fc;color:#095576;font:750 15px system-ui}
.guided-arrival:not(.explore-ready) :is(.arrival-guide-card,.arrival-skip){display:none}
@media(prefers-reduced-motion:reduce){.explore-world :is(.mobile-game-dock,.explore-actions,.mansion-launch,.explore-location,.world-clock),body[data-scene="explore"] .topbar{transition:none}}
/* Upstairs gym: one visible cue and one large action while the room stays in view. */
.gym-workout{position:absolute;z-index:36;left:50%;bottom:28px;transform:translateX(-50%);width:min(340px,calc(100% - 32px));box-sizing:border-box;background:#fff9ef;color:#173f4b;border:3px solid #e9bf65;border-radius:24px;padding:16px;box-shadow:0 8px 28px #082a3d44;text-align:center}
.gym-workout h2{font-size:20px;margin:3px 58px 5px 0}.gym-counter{font-size:18px;font-weight:800;margin:2px}.gym-feedback{font-size:16px;margin:7px 0;line-height:1.35}.gym-cancel{position:absolute;right:10px;top:10px;min-height:32px;padding:5px 12px;border-radius:14px;border:0;background:#e5eaf0;color:#214654;font-size:15px}.gym-tap{min-height:58px;width:100%;background:#f4c562;border:0;border-radius:17px;font-size:19px;font-weight:800;color:#204454;box-shadow:0 4px 0 #c69b3b}.gym-tap.is-green{background:#84d8a7;box-shadow:0 4px 0 #459a6f}.gym-beat-track{height:18px;position:relative;border-radius:12px;background:#e1e8eb;margin:8px 8px;overflow:hidden}.gym-green-zone{position:absolute;left:28%;width:44%;height:100%;background:#91dcb0}.gym-beat-dot{position:absolute;top:0;transform:translateX(-50%);color:#20516c;font-size:18px;line-height:18px}.gym-workout-active .explore-actions,.gym-workout-active .explore-stick,.gym-workout-active .world-arrows{visibility:hidden!important}
@media(max-width:600px){.gym-workout{bottom:126px;padding:13px}.gym-workout h2{font-size:20px}.gym-feedback{font-size:16px}}
.mansion-garage-launch{position:absolute;left:16px;bottom:262px;z-index:15;padding:10px 15px;min-height:46px;border:2px solid #fff5d0;border-radius:19px;background:#ffda70;color:#264e5d;font-size:16px;font-weight:800;box-shadow:0 4px 0 #c69b3b}.mansion-garage-launch[hidden]{display:none}
@media(max-width:600px){.mansion-garage-launch{left:16px;bottom:246px;font-size:14px;padding:8px 12px;max-width:200px}}
.gym-workout-active .mansion-launch,.gym-workout-active .camera-view-toggle,.gym-workout-active .explore-menu{visibility:hidden!important}.gym-cancel{min-height:44px;min-width:44px}

/* Optional driving assistance stays clear of the steering and exit controls. */
.explore-world .auto-drive-bar{position:absolute;z-index:24;left:50%;top:calc(env(safe-area-inset-top,0px) + 70px);transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:6px;max-width:calc(100% - 24px);padding:6px;border-radius:16px;background:#fff8e9;box-shadow:0 3px 12px #073d4b40;color:#173947}
.explore-world .auto-drive-bar[hidden],.auto-drive-bar [hidden]{display:none!important}.auto-drive-bar button{min-height:42px;padding:8px 12px;border:0;border-radius:11px;background:#087b92;color:white;font:700 14px system-ui;white-space:nowrap}.auto-drive-bar button:last-child{background:#f5ce53;color:#203b45}.auto-drive-label{font:700 13px system-ui;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.auto-drive-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}.auto-drive-choices button{min-height:48px;margin:0!important}.auto-drive-choices+button{margin-top:12px!important}
@media(max-width:600px){.explore-world .auto-drive-bar{top:calc(env(safe-area-inset-top,0px) + 106px);flex-wrap:wrap;width:max-content;max-width:calc(100% - 24px)}.auto-drive-label{max-width:112px}.auto-drive-bar button{font-size:13px;padding:8px}.auto-drive-choices button{font-size:15px!important;padding:10px!important}}

.explore-world .auto-drive-choice{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:12px;border:1px solid #8ecdd1;border-bottom:3px solid #2997a4;border-radius:14px;background:#e3f7f6;color:#075773;font:750 16px/1.3 system-ui;text-align:center;cursor:pointer}.explore-world .auto-drive-choice:focus-visible,.auto-drive-bar button:focus-visible{outline:3px solid #ef9e20;outline-offset:2px}.auto-drive-choices+.auto-drive-choice{width:100%;background:#fff0d2;border-color:#dbb357}

@media(max-width:600px){.explore-world .auto-drive-bar{top:calc(env(safe-area-inset-top,0px) + 164px);flex-wrap:nowrap}.explore-world .auto-drive-bar.is-automatic{display:grid;grid-template-columns:auto minmax(0,1fr) auto;width:calc(100% - 24px)}.auto-drive-label{min-width:0;max-width:none}.explore-world.is-driving .camera-view-toggle,.explore-world.is-driving .car-horn{top:226px!important}.explore-world.is-driving .explore-message.show{top:282px!important}}

/* The helm shares the existing joystick; deck games remain available. */
.on-cruise .explore-stick,.on-cruise .world-arrows{visibility:visible!important;pointer-events:auto!important}.on-cruise .cruise-deck-controls{left:auto!important;bottom:24px!important;right:16px!important;max-width:calc(100% - 320px)}
@media(max-width:780px){.on-cruise .cruise-deck-controls{left:12px!important;right:12px!important;bottom:16px!important;max-width:none;gap:6px!important}.cruise-deck-controls button{font-size:13px!important;padding:10px!important;min-height:46px!important}.on-cruise .explore-stick{bottom:92px!important}.on-cruise .cruise-status{top:164px!important;font-size:13px;padding:10px;max-width:calc(100% - 24px)}.on-cruise .mansion-launch,.on-cruise .mansion-garage-launch{display:none!important}}

.on-cruise .mansion-launch,.on-cruise .mansion-garage-launch{display:none!important}

@media(max-width:780px){.on-cruise .cruise-deck-controls{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}.cruise-deck-controls button{min-width:0;white-space:normal;font-size:13px!important;line-height:1.2;min-height:54px!important}}

/* A laptop remains keyboard/mouse driven even in a narrow app window. */
@media(hover:hover) and (pointer:fine){body[data-scene="explore"] .world-arrows{display:flex!important;pointer-events:auto!important}body[data-scene="explore"] .world-arrows [data-direction]{display:inline-flex!important;align-items:center;justify-content:center}}
@media(max-width:780px) and (hover:hover) and (pointer:fine){body[data-scene="explore"] .world-arrows{position:absolute!important;left:12px!important;right:auto!important;top:auto!important;bottom:84px!important;width:max-content!important;height:44px!important;gap:5px!important;z-index:23}body[data-scene="explore"] .world-arrows [data-direction]{min-width:40px!important;min-height:42px!important;font-size:22px!important;padding:4px!important}body[data-scene="explore"] .explore-world.explore-ready .explore-stick{bottom:150px!important}body[data-scene="explore"] .world-arrows .movement-speed{left:135px!important;bottom:72px!important;min-width:84px!important}body[data-scene="explore"] .mansion-launch{bottom:270px!important}}

/* Compact laptops retain arrows without stacking the two home shortcuts. */
@media(max-width:780px) and (hover:hover) and (pointer:fine){body[data-scene="explore"] .mansion-garage-launch{bottom:326px}}
.world-visit-controls{position:absolute;z-index:85;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(90%,440px);padding:14px;border-radius:18px;background:#143949ed;color:#fff;display:flex;gap:8px;flex-wrap:wrap;box-shadow:0 8px 28px #0005}.world-visit-controls[hidden]{display:none}.world-visit-controls strong,.world-visit-controls p{width:100%;margin:0;font-size:16px}.world-visit-controls button{min-height:44px;border:0;border-radius:12px;padding:10px;background:#ffdf63;color:#163c48;font-weight:700}.world-visit-controls a{color:#b9f4ff;padding:12px}.world-visit-active .explore-controls,.world-visit-active .explore-action,.world-visit-active .explore-joystick{visibility:hidden}

.world-visit-active .explore-stick,.world-visit-active .world-arrows,.world-visit-active .world-controls,.world-visit-active .explore-camera-toggle,.world-visit-active .mansion-shortcut,.world-visit-active .car-shortcut{visibility:hidden}

.world-visit-active .camera-view-toggle,.world-visit-active .mobile-game-dock{visibility:hidden}

.world-visit-active .mansion-garage-launch,.world-visit-active .mansion-launch{visibility:hidden}

.world-visit-active .explore-message,.world-visit-active .explore-instructions{visibility:hidden}

