:root{font-family:Segoe UI,Arial,sans-serif;color:#183c34;background:#b6d9dc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:4px solid #215be0;outline-offset:4px}button:hover{filter:brightness(.96)}[hidden]{display:none!important}#game,#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%}.brand{position:absolute;left:30px;top:25px;display:flex;gap:12px;align-items:center}.brand-icon{background:#173e34;color:#fff9e8;border-radius:15px;display:grid;place-items:center;font:bold 34px Georgia;width:54px;height:54px;position:relative}.brand-icon span{font:9px Segoe UI;position:absolute;right:7px;bottom:5px}.brand strong{font-size:22px;letter-spacing:3px}.brand small{display:block;font-size:9px;letter-spacing:1.9px;margin-top:3px}.badge{font-size:9px;letter-spacing:1px;background:#f8f7e8c9;border:1px solid #fff9;padding:7px 9px;border-radius:20px;margin-left:10px}.panel{background:#fffdf3f5;border:1px solid #ffffff;box-shadow:0 12px 40px #234c3b17;border-radius:20px}.mission{position:absolute;top:102px;left:30px;padding:20px 22px;width:320px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#577269}.mission strong{display:block;font-size:19px;margin-top:8px}.mission p{font-size:14px;line-height:1.5;margin:7px 0 0}.map-panel{position:absolute;right:30px;top:25px;width:250px;padding:15px}.map-title{display:flex;justify-content:space-between;font-size:12px}.map-title span{font-size:11px}.map-panel canvas{width:220px;height:190px;margin-top:10px;border-radius:11px;background:#e1e9d4}.map-key{display:flex;gap:20px;font-size:10px;margin-top:6px;color:#365c51}.top-actions{position:absolute;top:280px;right:30px;display:flex;gap:8px}.top-actions button{padding:12px 14px;border-radius:12px;background:#fffdf3ed;font-size:12px;font-weight:650;min-height:44px}.street-pill{position:absolute;left:50%;top:29px;transform:translateX(-50%);padding:11px 17px;background:#fffdf3db;border:1px solid #ffffffa0;border-radius:30px;font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px}.live-dot{width:6px;height:6px;border-radius:50%;background:#3b7d62}.welcome{position:absolute;left:30px;top:102px;width:350px;padding:28px}.welcome h1{font-family:Georgia,serif;font-size:42px;line-height:1.06;letter-spacing:-1.7px;margin:13px 0 16px;font-weight:500}.welcome p{font-size:14px;margin:0 0 23px;color:#537267}.welcome fieldset{padding:0;margin:0 0 20px;border:0}.welcome legend{font-size:12px;font-weight:700;margin-bottom:10px}.colours{display:flex;gap:9px}.colour{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px 4px;border-radius:11px;border:2px solid transparent;background:#f0f1e6;font-size:12px;min-height:68px}.colour.selected{border-color:#275c4a;background:#e5eddd}.swatch{width:27px;height:17px;border-radius:5px;display:block;border-bottom:4px solid #0002}.yellow{background:#f0b647}.coral{background:#eb705e}.blue{background:#66b5c4}.how{display:flex;align-items:center;gap:16px;font-size:12px;line-height:1.8;margin-bottom:20px}.key-group{text-align:center;font-size:19px;line-height:1.15;background:#f1efdf;padding:9px;border-radius:9px}.primary{width:100%;background:#204f40;color:#fffdf3;border-radius:12px;min-height:48px;padding:14px;font-size:14px;font-weight:700}.text-button{display:block;margin:6px auto 0;padding:12px 16px;min-height:44px;background:transparent;font-size:13px;font-weight:600}.welcome-note{display:block;text-align:center;font-size:10px;color:#698075;margin-top:8px}.driving-bar{position:absolute;bottom:48px;left:30px;right:30px;display:flex;align-items:center;gap:24px;background:#173e34f2;border:1px solid #ffffff35;color:#fffdf3;padding:15px 23px;border-radius:17px}.speed{display:flex;align-items:baseline;gap:6px;border-right:1px solid #ffffff30;padding-right:23px;min-width:86px}.speed strong{font-size:27px;font-weight:600}.speed span{font-size:11px;color:#c5d7bc}.controls{display:flex;gap:23px;align-items:center;font-size:12px}.controls span{display:flex;align-items:center;gap:5px}kbd{font:11px Segoe UI;border:1px solid #ffffff40;background:#ffffff12;padding:4px 7px;border-radius:5px;display:inline-block}.top-actions kbd{border-color:#153e3622;background:#153e3608}.slow-note{margin-left:auto;font:italic 16px Georgia;color:#d2dfbf}.credits{position:absolute;left:30px;right:30px;bottom:15px;display:flex;gap:15px;align-items:center;font-size:10px;color:#254a3d}.credits a{color:inherit}.credits a:last-child{margin-left:auto}.modal{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:360px;padding:30px;text-align:center}.modal h2{font:34px Georgia;letter-spacing:-1px;margin:15px 0}.modal p{font-size:14px;line-height:1.7;color:#557163;margin:10px 0 25px}.setting{display:flex;align-items:center;gap:10px;font-size:13px;text-align:left;min-height:44px}.setting input{width:19px;height:19px;accent-color:#275c4a}.win-star{font-size:54px;color:#cf8b13;margin-bottom:10px}#toast{position:absolute;bottom:135px;left:50%;transform:translateX(-50%);padding:13px 20px;border-radius:12px;background:#fffdf3e8;font-size:14px;box-shadow:0 4px 20px #0001}#toast:empty{display:none}#delivery-track{height:5px;margin-top:13px;background:#e6eadc;border-radius:10px;overflow:hidden}#delivery-fill{height:100%;width:0;background:#558b5e;transition:width .2s}#loading{position:absolute;bottom:150px;left:50%;transform:translateX(-50%);background:#fffdf3;padding:20px;border-radius:15px}.touch-controls{display:none;position:absolute;bottom:130px;left:20px;right:20px;justify-content:space-between;gap:8px}.touch-controls button{background:#fffdf3eb;width:58px;height:52px;border-radius:13px;font-size:22px;touch-action:none;user-select:none}
@media(max-width:1050px){.badge{display:none}.slow-note{display:none}.street-pill{top:90px}.mission{top:145px;width:280px}.welcome{top:98px;width:320px;padding:22px}.welcome h1{font-size:36px}.map-panel{width:220px}.map-panel canvas{width:190px;height:165px}.top-actions{top:260px}.controls{gap:15px}.brand{left:20px}.welcome,.mission{left:20px}}
@media(max-height:760px){.welcome{padding:20px;top:92px}.welcome h1{font-size:34px;margin:10px 0}.welcome p{margin-bottom:14px}.welcome fieldset{margin-bottom:12px}.how{margin-bottom:12px}.colour{min-height:58px;padding:8px 4px}.driving-bar{bottom:43px;padding:10px 18px}.welcome-note{margin-top:0}}
@media(max-width:700px){.brand{top:15px;left:15px}.brand strong{font-size:17px}.brand-icon{width:42px;height:42px;font-size:27px}.brand small{font-size:7px}.map-panel{right:12px;top:80px;width:150px;padding:10px}.map-title{font-size:9px}.map-panel canvas{width:130px;height:125px}.map-key{font-size:8px;gap:9px}.street-pill{top:17px;left:auto;right:12px;transform:none;max-width:180px;font-size:10px}.top-actions{right:12px;top:258px;flex-direction:column}.mission{top:80px;left:12px;width:calc(100% - 174px);padding:14px}.mission strong{font-size:16px}.mission p{font-size:12px}.welcome{left:12px;top:80px;width:calc(100% - 24px);max-width:340px;z-index:2}.driving-bar{left:12px;right:12px;bottom:49px;padding:8px 15px}.controls{display:none}.speed{border:0}.slow-note{display:block;font-size:13px}.touch-controls{display:flex}.credits{font-size:8px;left:12px;right:12px;bottom:9px;gap:8px;flex-wrap:wrap}.credits span{display:none}.modal{width:calc(100% - 30px);max-width:360px}.eyebrow{font-size:8px;letter-spacing:1.2px}#toast{bottom:193px;width:90%;text-align:center}}
@media(pointer:coarse){.touch-controls{display:flex}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.top-actions{top:312px}.welcome{background:#fffdf3}.modal{background:#fffdf3}
@media(max-width:1050px){.top-actions{top:290px}}
@media(max-width:700px){.top-actions{top:258px}}
.brand{background:#fffdf3df;border-radius:18px;padding:8px 12px;top:17px;left:18px}.top-actions{flex-wrap:wrap;width:250px;justify-content:flex-end}.top-actions button{flex:1;white-space:nowrap}.top-actions #deliveries{flex-basis:100%}.welcome h1{font-size:39px}.welcome p{font-size:13px}.how{font-size:11px}.slow-note{font:12px Segoe UI,Arial,sans-serif;max-width:220px}.delivery-picker{width:490px;max-height:88vh;overflow-y:auto;z-index:5}.delivery-picker h2{font-size:30px;margin:10px 0 18px}#delivery-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.delivery-card{min-height:78px;padding:12px;text-align:left;background:#e9eddf;border:2px solid transparent;border-radius:12px}.delivery-card strong{font-size:14px;display:block}.delivery-card small{font-size:11px;display:block;margin-top:6px;color:#496154}.delivery-card.done{border-color:#729d6f;background:#edf2df}.delivery-card:focus-visible{outline:3px solid #215be0}.delivery-card:hover{background:#dfe8d2}.badge{font-size:8px}.credits{background:#f9f6e3dc;border-radius:6px;padding:3px 7px;bottom:10px}.mission{background:#fffdf3ed}.controls{gap:16px}
@media(max-width:1050px){.top-actions{width:220px}.slow-note{display:none}.controls{gap:12px}.welcome h1{font-size:34px}}
@media(max-width:700px){.brand{left:8px;top:8px;padding:6px}.top-actions{width:145px;flex-direction:column}.delivery-picker{width:calc(100% - 24px)}.welcome{max-height:calc(100vh - 155px);overflow-y:auto}.welcome h1{font-size:34px}.brand small{display:none}.brand strong{font-size:14px}.street-pill{max-width:145px}.slow-note{display:block;font-size:10px;max-width:180px}#delivery-list{grid-template-columns:1fr 1fr}.controls{display:none}}
@media(max-width:700px){.top-actions{top:280px}}

/* Version 0.3: vehicle and world controls */
.top-actions #deliveries{flex-basis:58%}.top-actions #vehicles{flex-basis:32%}.setting select{margin-left:auto;min-height:38px;max-width:160px;border:1px solid #abc1ab;border-radius:7px;padding:5px 9px;background:#f5f5e9;color:#183c34;font:inherit}.modal{z-index:6;max-height:90vh;overflow-y:auto}.delivery-picker{width:560px}.adventure-card{background:#dcebdc;border-color:#94b39a}.vehicle-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.vehicle-grid button{min-height:68px;border-radius:12px;background:#e6eddf;font-weight:650}.vehicle-hud{position:absolute;left:30px;bottom:120px;display:flex;flex-direction:column;gap:4px;font-size:11px;background:#fffdf3df;padding:10px 13px;border-radius:12px}.vehicle-hud b{font-size:14px}.context-action{position:absolute;left:50%;bottom:200px;transform:translateX(-50%);width:auto;min-width:220px;z-index:3}.flight-controls{position:absolute;right:30px;bottom:130px;display:flex;gap:8px}.flight-controls button{min-height:48px;min-width:85px;border-radius:12px;background:#fffdf3;touch-action:none;user-select:none}[data-night=true] .credits{background:#fffdf3da}[data-night=true] .brand{background:#fffdf3ed}
@media(max-width:700px){.top-actions{width:145px;gap:6px}.top-actions button{padding:8px 10px;min-height:40px}.top-actions #deliveries,.top-actions #vehicles{flex-basis:auto}.vehicle-hud{left:12px;bottom:194px;max-width:170px;font-size:9px;padding:7px 9px}.vehicle-hud b{font-size:12px}.context-action{bottom:272px;min-width:180px;padding:10px;font-size:12px}.flight-controls{right:12px;bottom:194px;flex-direction:column;gap:6px}.flight-controls button{font-size:11px;min-height:40px;min-width:90px}.delivery-picker{width:calc(100% - 24px)}.delivery-card{padding:9px;min-height:88px}.delivery-card strong{font-size:13px}#toast{bottom:335px;font-size:12px;padding:10px;z-index:4}.modal{max-height:88vh}}

.setting select{min-height:44px}@media(max-width:700px){.top-actions button,.flight-controls button{min-height:44px}}

/* Village stories, service stops and self-contained interior / train views. */
.notebook-link{background:#e6ecde;border-radius:8px;font-size:11px;min-height:34px;margin-top:9px;padding:7px 10px}.parcel-section{margin-top:18px;text-align:left;border-top:1px solid #ced8c8;padding-top:10px}.parcel-section summary{min-height:44px;cursor:pointer;padding:12px;font-size:13px;font-weight:700}#parcel-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.story-card{background:#e0e8d3;border-color:#9caf8a}.story-card small{line-height:1.5}.weather-badge{position:absolute;left:50%;top:75px;transform:translateX(-50%);background:#fffdf3dd;padding:7px 12px;border-radius:16px;font-size:11px;pointer-events:none}#fuel-meter{height:6px;border-radius:8px;background:#cbd5c7;overflow:hidden;width:125px}#fuel-fill{display:block;height:100%;background:#4a8b64;transition:width .2s}#fuel-meter.low #fuel-fill{background:#ce8d2c}#fuel-meter.empty #fuel-fill{background:#b95d4a}#passenger-label:empty{display:none}.vehicle-hud{gap:5px;bottom:122px}.vehicle-hud #indicators{font-size:10px}.garage-panel{width:640px;max-width:94vw}.garage-panel p{margin-bottom:16px}.garage-cars{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.garage-cars button{min-height:83px;padding:10px;border:2px solid transparent;border-radius:12px;background:#e6ebdf;display:flex;flex-direction:column;gap:6px;align-items:center}.garage-cars button.selected{border-color:#356c51;background:#dce8d4}.garage-cars strong{font-size:13px}.garage-cars small{font-size:10px;color:#536c5e}.car-swatch{width:52px;height:19px;border-radius:14px 18px 6px 6px;border-bottom:4px solid #273538}.garage-fuel{display:flex;gap:16px;align-items:center;margin:17px 0}.garage-fuel strong{flex:1;font-size:14px}.garage-fuel button{width:160px}.garage-panel>small{font-size:10px;color:#5f7769;line-height:1.5;display:block}.talk-panel{width:560px;text-align:left;top:auto;bottom:35px;transform:translateX(-50%);max-height:75vh}.talk-panel h2{font-size:27px;margin:10px 0}.talk-panel p{font-size:17px;line-height:1.55;margin:12px 0 20px}.talk-choices{display:grid;gap:9px}.talk-choices button{min-height:48px;padding:12px;background:#e3ecd9;text-align:left;border-radius:10px;font-weight:650}.view-top{position:absolute;z-index:4;left:18px;top:18px;right:18px;display:flex;gap:10px;background:#fffdf3f5;padding:12px 16px;border-radius:16px;align-items:center}.view-top>div{flex:1;display:flex;flex-direction:column;gap:5px}.view-top b{font:22px Georgia}.view-top span{font-size:12px;color:#4b6b5c}.view-top button{min-height:44px;border-radius:10px;padding:10px 16px;background:#e2e9d8;font-weight:650}.room-hint{position:absolute;left:50%;bottom:48px;transform:translateX(-50%);padding:15px 22px;font-size:14px;text-align:center}.train-dashboard{position:absolute;left:30px;bottom:65px;width:360px;padding:22px;display:flex;flex-direction:column;gap:10px}.train-dashboard>div:first-child{display:flex;align-items:baseline;gap:7px}.train-dashboard b{font-size:40px}.train-dashboard p{margin:0;font-size:14px;line-height:1.5}.train-dashboard>span{font-size:13px}.train-controls{display:flex;gap:8px;margin-top:8px}.train-controls button{flex:1;min-height:52px;padding:8px;background:#204f40;color:#fffdf3;border-radius:10px;touch-action:none}.cargo-bundles{display:flex;justify-content:center;gap:12px;margin:18px 0}.cargo-bundles i{width:60px;height:30px;border-radius:18px;background:#b7824c;border:5px solid #684d32;opacity:.3}.cargo-bundles i.loaded{opacity:1}#clue-list{text-align:left;font-size:14px;line-height:1.6;padding-left:23px}#clue-list li{margin-bottom:12px}#nearby-vehicles button{min-height:48px;padding:12px;border-radius:10px;background:#d9e7cc;margin-top:10px;width:100%}
[data-view=interior] .brand,[data-view=train] .brand,[data-view=interior] #mission,[data-view=train] #mission,[data-view=interior] .map-panel,[data-view=train] .map-panel,[data-view=interior] .top-actions,[data-view=train] .top-actions,[data-view=interior] .street-pill,[data-view=train] .street-pill,[data-view=interior] .weather-badge,[data-view=train] .weather-badge,[data-view=interior] .vehicle-hud,[data-view=train] .vehicle-hud,[data-view=interior] .driving-bar,[data-view=train] .driving-bar,[data-view=interior] .flight-controls,[data-view=train] .flight-controls,[data-view=train] .touch-controls{display:none!important}
[data-view=interior] .context-action{bottom:105px}[data-view=train] .context-action{display:none!important}
@media(max-width:700px){.garage-cars{grid-template-columns:1fr 1fr}.garage-cars button{min-height:77px}.garage-panel{padding:20px}.talk-panel{width:calc(100% - 24px);bottom:18px;padding:22px}.talk-panel p{font-size:15px}.view-top{left:10px;right:10px;top:10px;padding:10px;gap:6px}.view-top b{font-size:17px}.view-top span{font-size:10px}.view-top button{padding:8px;font-size:11px}.room-hint{bottom:195px;width:calc(100% - 28px);font-size:12px}.train-dashboard{left:12px;right:12px;bottom:45px;width:auto;padding:18px}.train-dashboard b{font-size:32px}.train-controls button{font-size:12px}.weather-badge{left:auto;right:13px;top:54px;transform:none;font-size:9px}.vehicle-hud{bottom:192px;max-width:176px}.vehicle-hud #indicators{font-size:9px}.notebook-link{min-height:44px;font-size:10px;padding:6px}.context-action{bottom:302px}[data-view=interior] .context-action{bottom:249px}#fuel-meter{width:115px}.mission{max-height:350px;overflow:auto}.welcome h1{font-size:32px}#toast{bottom:360px}}
/* Compact phone layout: keep every core control in its own band. */
@media(max-width:700px){
 #game:has(#welcome[hidden]) .brand,#game:has(#welcome[hidden]) .street-pill,#game:has(#welcome[hidden]) .weather-badge{display:none}
 #game:has(#welcome[hidden]) .mission{top:8px;left:8px;width:calc(100% - 16px);padding:10px 12px;max-height:150px;border-radius:14px;overflow:auto}
 #game:has(#welcome[hidden]) .mission .eyebrow{font-size:8px;letter-spacing:.6px}
 #game:has(#welcome[hidden]) .mission strong{font-size:15px;line-height:1.15;margin-top:5px}
 #game:has(#welcome[hidden]) .mission p{font-size:11px;line-height:1.25;margin-top:5px}
 #game:has(#welcome[hidden]) .notebook-link{min-height:44px;margin-top:5px;padding:6px 12px}
 #game:has(#welcome[hidden]) #delivery-track{margin-top:5px;height:3px}
 #game:has(#welcome[hidden]) .map-panel{top:164px;right:8px;width:112px;padding:8px;border-radius:12px}
 #game:has(#welcome[hidden]) .map-title{font-size:8px}
 #game:has(#welcome[hidden]) .map-title strong{font-size:0}
 #game:has(#welcome[hidden]) .map-title strong:after{content:'Your route';font-size:8px}
 #game:has(#welcome[hidden]) .map-panel canvas{width:94px;height:80px;margin-top:5px}
 #game:has(#welcome[hidden]) .map-key{display:none}
 .top-actions{top:auto;bottom:100px;left:8px;right:8px;width:auto;display:flex;flex-direction:row;gap:6px;flex-wrap:nowrap}
 .top-actions button,.top-actions #deliveries,.top-actions #vehicles{flex:1 1 0;min-width:0;min-height:48px;padding:6px 3px;font-size:10px}
 .top-actions kbd{display:none}
 .touch-controls{bottom:40px;left:8px;right:8px;gap:5px}
 .touch-controls button{flex:1;min-width:0;width:auto;height:52px;font-size:20px}
 .driving-bar{bottom:158px;left:8px;right:auto;width:64px;min-height:52px;padding:5px 7px}
 .driving-bar .speed{min-width:0;padding:0;flex-direction:column;gap:0}.driving-bar .speed strong{font-size:22px}.driving-bar .slow-note{display:none}
 .vehicle-hud{left:80px;right:8px;bottom:158px;width:auto;max-width:none;max-height:70px;overflow:auto;padding:7px 10px;gap:3px;font-size:10px}
 .vehicle-hud b{font-size:11px}.vehicle-hud #indicators{display:none}#fuel-meter{width:100%}
 .context-action{bottom:230px;min-width:0;width:calc(100% - 16px);min-height:48px;font-size:12px}
 #game:has(#welcome[hidden]) #toast{top:168px;bottom:auto;left:8px;transform:none;width:calc(100% - 136px);max-height:108px;overflow:auto;padding:10px;font-size:11px;line-height:1.35;pointer-events:none}
 .flight-controls{bottom:296px;right:8px;gap:5px}.flight-controls button{min-height:44px}
 .credits{bottom:4px;font-size:7px;left:8px;right:8px}
 [data-view=interior] .room-hint{bottom:105px;width:calc(100% - 16px);padding:10px;max-height:70px;overflow:auto}
 [data-view=interior] .context-action{bottom:186px;width:calc(100% - 16px)}
 [data-view=interior] #game:has(#welcome[hidden]) #toast,[data-view=train] #game:has(#welcome[hidden]) #toast{top:105px;left:8px;width:calc(100% - 16px);max-height:70px}
 #game:has(#welcome:not([hidden])) .top-actions,#game:has(#welcome:not([hidden])) .driving-bar,#game:has(#welcome:not([hidden])) .touch-controls{display:none}
}
@media(max-width:700px){
 .train-dashboard{bottom:30px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:6px 10px}
 .train-dashboard>div:first-child{grid-column:1;grid-row:1}.train-dashboard b{font-size:27px}
 #train-limit{grid-column:2;grid-row:1;align-self:center;font-size:12px;text-align:right}
 #train-message{grid-column:1/-1;grid-row:2;font-size:12px;line-height:1.3;max-height:34px;overflow:auto}
 #train-distance{grid-column:1/-1;grid-row:3;font-size:11px}
 .train-controls{grid-column:1/-1;grid-row:4;margin-top:2px;gap:6px}.train-controls button{min-height:48px;font-size:11px;padding:7px}
}

/* v0.5: a separate, touch-friendly farm dashboard. */
.farm-dashboard{position:absolute;left:30px;bottom:65px;width:410px;padding:20px;z-index:3}
.farm-dashboard>strong{font-size:19px}.farm-dashboard p{font-size:14px;line-height:1.45;margin:10px 0}
.farm-progress{height:7px;background:#d2ddc5;border-radius:8px;overflow:hidden;margin:12px 0}.farm-progress>*{display:block;height:100%;background:#638648}
.farm-dashboard>div:last-of-type{display:flex;gap:8px;flex-wrap:wrap}.farm-dashboard button{min-height:46px;padding:10px 12px;border-radius:10px;background:#e2e9d8;font-weight:650}.farm-dashboard #farm-action{flex-basis:100%;background:#204f40;color:#fffdf3}.farm-dashboard small{display:block;margin-top:10px;font-size:11px}
[data-view=farm] .brand,[data-view=farm] #mission,[data-view=farm] .map-panel,[data-view=farm] .top-actions,[data-view=farm] .street-pill,[data-view=farm] .weather-badge,[data-view=farm] .vehicle-hud,[data-view=farm] .driving-bar,[data-view=farm] .flight-controls,[data-view=farm] .context-action{display:none!important}
#cargo-collect{margin:12px 0}#cargo-count{display:block;font-weight:700}
@media(max-width:700px){
 .farm-dashboard{left:8px;right:8px;bottom:102px;width:auto;padding:12px}.farm-dashboard>strong{font-size:15px}.farm-dashboard p{font-size:12px;margin:6px 0;max-height:50px;overflow:auto}.farm-dashboard button{font-size:12px;padding:8px;min-height:44px}.farm-dashboard small{display:none}.farm-progress{margin:8px 0}
 [data-view=farm] #toast{top:110px!important;left:8px!important;right:8px;width:auto!important;max-height:70px!important}
}
/* Keep short feedback clear of the action controls in the separate scenes. */
[data-view=interior] #game #toast,[data-view=train] #game #toast,[data-view=farm] #game #toast{top:106px!important;bottom:auto;left:50%!important;right:auto;transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100% - 24px);max-height:60px!important}

/* Activity controls sit beside the action. Menus scroll within their own pane. */
.activity-side{left:auto!important;right:18px!important;top:106px!important;bottom:40px!important;transform:none!important;width:330px!important;max-width:36vw;max-height:calc(100vh - 146px);padding:20px;text-align:left;overflow:auto;z-index:8;border-radius:18px}
.activity-side h2{font-size:26px;margin:10px 0}.activity-side p{font-size:14px;line-height:1.45;margin:12px 0}.activity-side small{display:block;font-size:11px;line-height:1.45}.activity-side .garage-cars{grid-template-columns:1fr 1fr}.activity-side .garage-fuel{flex-direction:column;gap:9px}.activity-side .garage-fuel button{width:100%}.activity-side .cargo-bundles{gap:8px}.activity-side .cargo-bundles i{width:50px;height:26px}
#game:has(.activity-side:not([hidden])) .map-panel,#game:has(.activity-side:not([hidden])) .top-actions,#game:has(.activity-side:not([hidden])) #context-action{visibility:hidden}
#game:has(.activity-side:not([hidden])) #toast{left:30px!important;right:auto;top:auto!important;bottom:135px;transform:none!important;max-width:280px;width:auto!important}
.wallet-button{background:#e9ddb0!important}.coin-reward{color:#326c44!important;font-weight:750}.upgrade-card{display:flex;flex-direction:column;gap:8px;width:100%;padding:15px;margin:12px 0;background:#e6ecdf;border-radius:12px;text-align:left;min-height:108px}.upgrade-card span{font-size:12px;color:#536b5c}.upgrade-card b{color:#326c44}.upgrade-card:disabled{cursor:default;opacity:.6}#upgrade-target{max-width:190px;font-size:12px}#upgrade-panel .setting{align-items:flex-start}#close-upgrades{margin-top:18px}
.ticket-panel{position:absolute;right:18px;top:106px;width:285px;padding:20px;z-index:7;border:2px dashed #c29b38}.ticket-panel strong{display:block;font-size:21px;margin-top:10px}.ticket-panel p{font-size:14px;line-height:1.5}.ticket-panel small{font-size:11px}
.sky-dashboard{position:absolute;right:18px;top:106px;width:290px;padding:20px;z-index:3}.sky-dashboard p{font-size:14px;line-height:1.5}.sky-stats{display:flex;justify-content:space-between;gap:10px}.sky-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sky-controls button{min-height:48px;background:#204f40;color:#fffdf3;border-radius:10px;touch-action:none}.sky-dashboard .text-button{font-size:11px}.sky-stats span{font-size:12px}
[data-view=flight] .brand,[data-view=space] .brand,[data-view=flight] #mission,[data-view=space] #mission,[data-view=flight] .map-panel,[data-view=space] .map-panel,[data-view=flight] .top-actions,[data-view=space] .top-actions,[data-view=flight] .street-pill,[data-view=space] .street-pill,[data-view=flight] .weather-badge,[data-view=space] .weather-badge,[data-view=flight] .vehicle-hud,[data-view=space] .vehicle-hud,[data-view=flight] .driving-bar,[data-view=space] .driving-bar,[data-view=flight] .flight-controls,[data-view=space] .flight-controls,[data-view=flight] .touch-controls,[data-view=space] .touch-controls,[data-view=flight] .context-action,[data-view=space] .context-action{display:none!important}
[data-view=flight] #toast,[data-view=space] #toast{left:24px;right:auto;bottom:50px;transform:none;max-width:360px}
@media(max-width:700px){
 .top-actions button{white-space:normal}
 .top-actions .wallet-button{font-size:9px}
 .activity-side{left:8px!important;right:8px!important;top:auto!important;bottom:24px!important;width:auto!important;max-width:none;max-height:43vh;padding:14px}.activity-side h2{font-size:21px}.activity-side p{font-size:12px}.activity-side .primary{min-height:44px;padding:11px}.activity-side .garage-cars{grid-template-columns:1fr 1fr}
 #game:has(.activity-side:not([hidden])) .mission,#game:has(.activity-side:not([hidden])) .driving-bar,#game:has(.activity-side:not([hidden])) .vehicle-hud,#game:has(.activity-side:not([hidden])) .touch-controls{visibility:hidden}
 #game:has(.activity-side:not([hidden])) #toast{left:8px!important;top:108px!important;bottom:auto;width:calc(100% - 16px)!important;max-width:none;max-height:58px}
 .ticket-panel{right:8px;top:165px;width:calc(100% - 136px);padding:10px}.ticket-panel .eyebrow{font-size:7px}.ticket-panel strong{font-size:14px}.ticket-panel p{font-size:11px}.ticket-panel small{font-size:9px}
 .sky-dashboard{right:8px;left:8px;top:auto;bottom:24px;width:auto;padding:12px;max-height:40vh;overflow:auto}.sky-dashboard p{font-size:12px;margin:7px 0}.sky-controls{grid-template-columns:repeat(3,1fr);gap:5px}.sky-controls button{font-size:11px;min-height:44px}.sky-dashboard .farm-progress{margin:7px 0}.sky-stats{font-size:13px}.sky-dashboard .eyebrow{font-size:9px}
 [data-view=flight] #game #toast,[data-view=space] #game #toast{left:8px;top:106px;bottom:auto;transform:none;width:calc(100% - 16px);max-width:none;font-size:11px}
}

@media(max-width:380px){.top-actions button{font-size:9px}}



.fuel-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap}#fuel-warning{color:#6f3900;background:#ffcf5e;border:1px solid #bd7800;border-radius:5px;padding:2px 4px;font-size:10px;font-weight:800}#fuel-warning[hidden]{display:none}


[data-view=clyde] .brand,[data-view=clyde] #mission,[data-view=clyde] .map-panel,[data-view=clyde] .top-actions,[data-view=clyde] .street-pill,[data-view=clyde] .weather-badge,[data-view=clyde] .vehicle-hud,[data-view=clyde] .driving-bar,[data-view=clyde] .flight-controls,[data-view=clyde] .context-action,[data-view=clyde] .touch-controls,[data-view=clyde] #toast{display:none!important}
.clyde-dashboard{position:absolute;right:18px;top:112px;width:320px;max-height:calc(100% - 145px);overflow:auto;padding:18px;z-index:4}.clyde-dashboard>strong{font-size:20px}.clyde-dashboard p{font-size:14px;line-height:1.4;margin:10px 0}.clyde-dashboard>span,.clyde-dashboard>small{display:block;margin:6px 0;font-size:12px}.clyde-dashboard .farm-progress{margin:9px 0}.clyde-dashboard button{min-height:44px}.clyde-controls{display:flex;gap:4px;flex-wrap:wrap;margin-top:10px}.clyde-controls button{flex:1;min-width:70px;border-radius:8px;background:#d7e5d0;padding:8px;touch-action:none}#clyde-choices{display:grid;gap:6px}#clyde-choices button{padding:10px;border-radius:8px;text-align:left;background:#dfebd7}#clyde-action{margin-top:8px;width:100%}.clyde-map-panel{position:absolute;left:18px;top:112px;padding:10px;width:240px;font-size:12px}.clyde-map-panel canvas{display:block;width:220px;height:170px;margin-top:6px}.clyde-map-panel small{font-size:10px}
@media(max-width:700px){.clyde-dashboard{left:8px;right:8px;top:auto;bottom:26px;width:auto;padding:10px;max-height:235px}.clyde-dashboard>strong{font-size:15px}.clyde-dashboard p{font-size:11px;line-height:1.25;margin:5px 0}.clyde-dashboard>span,.clyde-dashboard>small{display:inline-block;font-size:10px;margin:2px 8px 2px 0}.clyde-dashboard .farm-progress{margin:4px 0}.clyde-controls{flex-wrap:nowrap;margin-top:6px}.clyde-controls button{min-width:0;font-size:10px;padding:5px}.clyde-dashboard #clyde-rescue{min-height:36px;font-size:11px;padding:5px}.clyde-map-panel{display:none}#clyde-action{font-size:11px;margin-top:4px}#clyde-choices button{font-size:11px}.clyde-dashboard:has(#clyde-choices:not(:empty)){max-height:265px}}

#clyde-action:disabled{display:none}@media(max-width:700px){.clyde-dashboard p{max-height:32px;overflow:auto}.clyde-dashboard:has(#clyde-choices:not(:empty)) .clyde-controls,.clyde-dashboard:has(#clyde-choices:not(:empty)) #clyde-rescue{display:none}.clyde-dashboard:has(#clyde-choices:not(:empty)) p{max-height:60px}.clyde-dashboard>strong{display:block}}
/* Adventure controls stay beside the action; maps are deliberately opened and pause play. */
.map-toggle{position:absolute;left:18px;bottom:174px;padding:12px 18px;z-index:12}
.clyde-helm{position:absolute;left:18px;bottom:60px;width:170px;padding:14px 18px;pointer-events:none;background:#153e36ed;color:#fff6df}
.clyde-helm small{display:block;font-size:12px}.clyde-helm b{font-size:48px;line-height:1.05;font-variant-numeric:tabular-nums}.clyde-helm span{margin-left:8px;font-size:14px}
.speed-track{height:5px;border-radius:8px;background:#ffffff30;margin-top:8px;overflow:hidden}.speed-track i{display:block;height:100%;background:#f3c665}
.treasure-chart{position:absolute;z-index:18;left:50%;top:50%;transform:translate(-50%,-50%);width:min(850px,90vw);max-height:calc(100dvh - 130px);overflow:auto;background:#f7efd9;padding:20px;box-shadow:0 12px 80px #0d2225aa}
.treasure-chart h2{font-family:Georgia,serif;margin:5px 0 8px;font-size:25px}.treasure-chart p{font-size:14px;line-height:1.5;margin:0 0 12px}.treasure-chart img{display:block;width:100%;height:auto;max-height:48dvh;object-fit:contain;border-radius:5px}.treasure-chart small{display:block;margin:9px 0;font-size:11px}.treasure-chart button{width:100%}
html[data-chart="true"] .clyde-dashboard{visibility:hidden}
.golf-dashboard{position:absolute;right:18px;top:110px;width:285px;padding:20px;max-height:calc(100dvh - 145px);overflow:auto}.golf-dashboard strong{font-size:19px}.golf-dashboard p{font-size:13px;line-height:1.45}.golf-dashboard b{display:block;font-size:13px}.golf-dashboard small{font-size:11px;line-height:1.5}.golf-aim{display:flex;gap:8px;margin:16px 0}.golf-aim button{flex:1;min-height:44px}.golf-dashboard label{display:block;font-size:13px}.golf-dashboard input{width:100%;min-height:40px;accent-color:#176451}.golf-dashboard .primary{width:100%}
html[data-view="golf"] .brand,html[data-view="golf"] .mission,html[data-view="golf"] .map-panel,html[data-view="golf"] .street-pill,html[data-view="golf"] .top-actions,html[data-view="golf"] .vehicle-hud,html[data-view="golf"] .weather-badge,html[data-view="golf"] .driving-bar,html[data-view="golf"] .touch-controls,html[data-view="golf"] .context-action,html[data-view="golf"] .ticket-panel{display:none!important}
@media(max-width:700px){
 .clyde-helm{top:86px;bottom:auto;left:8px;width:116px;padding:10px}.clyde-helm b{font-size:36px}.clyde-helm small{font-size:10px}.clyde-helm span{font-size:11px}
 .map-toggle{top:90px;bottom:auto;left:8px;max-width:140px;padding:10px;font-size:11px}
 html[data-view="clyde"] .clyde-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.clyde-controls button{min-height:44px}.clyde-dashboard{max-height:276px!important}.clyde-dashboard:has(#clyde-choices button){max-height:300px!important}
 .treasure-chart{width:calc(100vw - 16px);max-height:calc(100dvh - 100px);top:calc(50% + 25px);padding:12px}.treasure-chart h2{font-size:19px}.treasure-chart p{font-size:12px;line-height:1.35}.treasure-chart img{max-height:37dvh}.treasure-chart small{font-size:10px}
 .golf-dashboard{top:auto;bottom:24px;left:8px;right:8px;width:auto;padding:10px;max-height:260px}.golf-dashboard strong{font-size:15px}.golf-dashboard p{font-size:11px;margin:5px 0}.golf-dashboard small{display:none}.golf-aim{margin:7px 0}.golf-dashboard input{min-height:32px}.golf-dashboard .primary{min-height:44px}
}

@media(max-width:700px){.map-toggle{left:auto;right:8px;max-width:130px}}

html[data-paused="true"] .treasure-chart,html[data-paused="true"] .golf-dashboard,html[data-paused="true"] .clyde-dashboard,html[data-paused="true"] .map-toggle,html[data-paused="true"] .clyde-helm{visibility:hidden}
@media(max-width:700px){.golf-dashboard{max-height:220px}.golf-dashboard #golf-message{display:none}.golf-dashboard strong{font-size:13px}.golf-dashboard b{font-size:11px}.golf-dashboard .golf-aim{margin:4px 0}.golf-dashboard #golf-score{font-size:10px}}

@media(max-width:700px){html[data-view="clyde"] .clyde-controls{grid-template-columns:repeat(6,minmax(0,1fr))}.map-toggle,.clyde-helm{top:126px}.clyde-dashboard{max-height:260px!important}}

@media(max-width:700px) and (max-height:499px){html[data-view="golf"] .view-top{top:6px;left:8px;right:8px;padding:8px}html[data-view="golf"] .view-top span{display:none}html[data-view="golf"] .view-top b{font-size:15px}.golf-dashboard{left:auto;right:8px;top:90px;bottom:auto;width:205px;padding:8px;max-height:calc(100dvh - 116px)}.golf-dashboard strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;font-size:12px}.golf-dashboard #golf-score{display:none}.golf-dashboard b{font-size:10px}.golf-dashboard .golf-aim{margin:3px 0}.golf-dashboard button{font-size:10px;padding:5px}.golf-dashboard input{min-height:26px}.golf-dashboard label{font-size:11px}.golf-dashboard .primary{min-height:44px}}
