/* Shared exploration and flight presentation. */
#scene-dock{display:flex;align-items:center;gap:8px;background:var(--ink)}
#content{flex:1;min-width:0}
#content,.main-panel{background:#101619}
#stage-wrap:not(.objects-visible) #scene-hotspots .hotspot:not(.back){display:none}
#explore-guide button[aria-expanded=true]{background:#29454c;border-color:var(--blue)}
body.ground-adventure #race-chip{display:none}
#adventure-actions,#orientation,footer{background:#101619}
#flight-deck{display:grid;grid-template-columns:minmax(230px,1.05fr) minmax(220px,1fr) minmax(220px,1fr);gap:22px;padding:18px 24px;background:linear-gradient(110deg,#182126,#182126);border-bottom:2px solid #3d4b52}
.deck-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.72rem;color:#b1bec3;letter-spacing:.09em;margin-bottom:8px}
.deck-heading b{font-size:1.3rem;color:#ffffff;letter-spacing:0}
.power-input{width:100%;height:34px;min-height:34px;accent-color:#a7d9de;cursor:ew-resize;border:0;background:transparent}
.power-presets{display:flex;gap:5px}.power-presets button{flex:1;padding:8px 5px;font-size:.73rem;text-align:center;min-height:44px;background:#1a3038;border-color:#547079}.power-presets button.active{border-color:#8fbfc9;background:#29474f;color:#ffffff}
.power-labels{display:flex;justify-content:space-between;font-size:.66rem;color:#bacbc9;margin-bottom:7px}
.deck-note{font-size:.73rem;line-height:1.55;color:#c5d0ca;margin-top:8px}
.fuel-readout{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:9px 0}.fuel-readout span{display:block;color:#afc4c3;font-size:.67rem;margin-bottom:4px}.fuel-readout b{font-size:1.05rem}
.system{display:grid;grid-template-columns:78px 1fr 44px;gap:8px;align-items:center;margin:11px 0;font-size:.72rem}.system meter{width:100%;height:12px;accent-color:#8fc4b1}.system output{text-align:right;color:#f3f5f4;font-weight:bold}
#weather-ribbon{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 24px;background:#344441;color:#f1dfd4;border-bottom:1px solid #526661;font-size:.76rem;line-height:1.5}
#weather-ribbon[data-level="danger"]{background:#43262a;color:#ffd5cd;border-color:#d6685c}#weather-ribbon[data-level="clear"]{display:none}
#weather-ribbon strong{white-space:nowrap;letter-spacing:.04em}#weather-ribbon span{color:inherit}
.flight-alert{border-left:3px solid #eaad70;padding:9px 12px;background:#392d2c;color:#ffdfb6;font-size:.84rem;line-height:1.55;margin-top:10px}
.danger{border-color:#de9577!important;background:#543230!important;color:#ffe1c8!important}

body:not(.title-mode) #speech{display:none}
body.ground-adventure #speech.inspect-visible{display:flex;max-width:min(46%,410px);right:18px;bottom:20px;pointer-events:none}
body.ground-adventure #speech.inspect-visible .speech-text{font-size:.77rem;line-height:1.35;padding:8px 11px}
body.ground-adventure #speech.inspect-visible canvas{width:48px;height:48px;min-width:48px}
@media(max-width:650px){body.ground-adventure #speech.inspect-visible{max-width:62%;right:8px;bottom:9px}body.ground-adventure #speech.inspect-visible .speech-text{font-size:.64rem;padding:5px 7px}body.ground-adventure #speech.inspect-visible canvas{display:none}}

.main-panel{min-height:0}.dialogue-copy p{font-size:.95rem}.dialogue-copy .smallprint{font-size:.8rem;line-height:1.6}
.repairs{margin-bottom:16px}.repairs .shop{background:var(--panel2);border-color:var(--line)}
.repair-heading{margin:0 0 12px;color:var(--text)}
@media(max-width:900px){#flight-deck{grid-template-columns:1fr 1fr;gap:16px;padding:16px}.system-bank{grid-column:1/-1;display:flex;gap:20px;align-items:center}.system-bank .deck-heading{display:none}.system-bank .system{flex:1;margin:0;grid-template-columns:auto 1fr}.system-bank .system output{grid-column:2}.main-panel{grid-template-columns:1fr 1fr}#weather-ribbon{padding:9px 16px}}
@media(max-width:650px){
 #shell{border:0}#hud{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.stat:nth-child(n+4){display:none}
 #flight-deck{grid-template-columns:1fr;gap:15px;padding:14px 16px}.system-bank{display:grid;grid-template-columns:1fr 1fr;gap:10px}.system-bank .system{display:grid;grid-template-columns:1fr 42px;gap:4px;margin:0}.system-bank meter{grid-row:2;grid-column:1/-1}.system-bank .system output{grid-row:1;grid-column:2}.system-bank .system:last-child{display:none}
 .flight-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}.flight-numbers .deck-heading{display:none}.fuel-readout{margin:0;gap:8px}.flight-numbers .deck-note{margin:0;font-size:.77rem}.deck-heading{font-size:.8rem}.deck-heading b{font-size:1.3rem}.power-presets button{font-size:.82rem}
 #weather-ribbon{display:block;padding:10px 16px;font-size:.82rem}#weather-ribbon span{display:none}
 .main-panel{grid-template-columns:1fr;padding:18px 16px!important;gap:16px!important}.dialogue-copy h2{font-size:1.4rem}.dialogue-copy p{font-size:1rem;line-height:1.6}.dialogue canvas.portrait{width:64px;min-width:64px;height:64px}.dialogue{gap:12px}.choices button{font-size:.95rem;padding:13px;min-height:48px}.choices button small{font-size:.82rem}.smallprint,.hint{font-size:.85rem}
 #scene-label small{font-size:.55rem}
 #flightcue{position:relative;left:auto;bottom:auto;width:100%;max-width:none;margin:0;border:0;border-top:1px solid var(--line);padding:12px 16px}.cue-btn{min-height:48px}.cue-label,.cue-status{font-size:.84rem}
header{padding:9px 12px}header nav button{min-height:44px}#adventure-actions button{min-height:44px;font-size:.72rem}#orientation{padding:12px 16px;gap:12px}#route-dots{display:none}#minimap-button,#mini-map{width:116px}#objective,#objective strong,#objective span{font-size:.77rem}
}

.place-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.place-actions button{min-height:50px}
#scene-hotspots{position:absolute;inset:0;z-index:5;pointer-events:none}
#scene-hotspots:empty{display:none}
#scene-hotspots .hotspot{pointer-events:auto;position:absolute;bottom:5%;min-height:44px;padding:8px 14px;background:#10191fdd;border:1px solid #a3bdc766;border-radius:20px;color:white;font-size:.8rem;box-shadow:0 2px 12px #0004}
#scene-hotspots .hotspot:hover{background:#304a54;color:#ffffff}
#scene-hotspots .hotspot.workshop{left:3%}#scene-hotspots .hotspot.fbo{right:3%}#scene-hotspots .hotspot.back{left:3%;bottom:5%}
#stage-wrap.later-airport #scene-hotspots .hotspot.fbo{left:2%;right:auto}
#stage-wrap.later-airport #scene-hotspots .hotspot.workshop{left:20%}
#stage-wrap.exploring #stage{cursor:crosshair;touch-action:pan-y}
#explore-guide{flex:none;align-self:center;padding:10px 24px 10px 0;background:transparent}
#scene-menu{position:absolute;z-index:8;min-width:170px;max-width:min(260px,90%);padding:8px;background:#152128;border:1px solid #76919c;border-radius:9px;box-shadow:0 10px 28px #0008;color:var(--text)}
#scene-menu[hidden],#explore-guide[hidden]{display:none}
#scene-menu strong{display:block;padding:4px 7px 8px;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase}
#scene-menu button{display:block;width:100%;min-height:44px;text-align:left;margin:2px 0;padding:8px 10px;background:#243640;border:1px solid #3d4b52;color:#f3f5f4;font-size:.8rem}
#scene-menu button:hover,#scene-menu button:focus-visible{background:#395661;color:#f3f5f4}
#ipad-map{display:block;width:100%;height:auto;max-height:290px;object-fit:contain;margin:14px 0;border:1px solid #a78a70}
.diversion-ipad{padding:17px;background:#142936}.diversion-ipad>.hint{padding:11px 0;color:#c5d8dc}.diversion-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:7px 0 15px}.diversion-list button{min-height:95px;padding:12px;border-color:#557887;border-radius:10px;background:#213a48;color:#edf6f7}.diversion-list button:hover:not(:disabled){background:#305363;border-color:#b8e5e7}.diversion-list button strong,.diversion-list button span,.diversion-list button small{display:block}.diversion-list button strong{font-size:.88rem}.diversion-list button span{font-size:.77rem;margin-top:5px;color:#d6e5e8}.diversion-list button small{font-size:.76rem;margin-top:6px;opacity:1;color:#afdfcd}
@media(max-width:650px){.diversion-list{grid-template-columns:1fr}.diversion-ipad{padding:13px}}
@media(max-width:650px){.place-actions{grid-template-columns:1fr}#scene-hotspots .hotspot{font-size:.86rem;min-height:44px;padding:6px 7px;bottom:5%;border-width:1px}#scene-hotspots .hotspot.workshop{left:2%}#scene-hotspots .hotspot.fbo{right:2%}}

/* At airports the art is the game screen. The iPad carries the detailed numbers. */
body.ground-adventure #hud,body.ground-adventure #adventure-actions,body.ground-adventure #orientation,body.ground-adventure footer,body.ground-adventure #flight-deck,body.ground-adventure #weather-ribbon{display:none!important}
body.ground-adventure #content{background:#101619;padding:0}
#race-chip{position:absolute;right:27px;top:121px;pointer-events:none;z-index:4;color:#e7f0f3;text-shadow:0 1px 5px #000;font:11px ui-monospace,monospace;padding:3px 6px;background:#10161988;border-radius:4px}
#race-chip[hidden]{display:none}
#race-chip.late{border-color:#e09b8b;color:#ffd0b7}
@media(max-width:650px){#race-chip{right:13px;top:49px;padding:3px 6px;font-size:.61rem;max-width:39%;text-align:right}}
.ground-bar{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 24px;background:var(--ink);color:var(--text)}
.ground-bar p{margin:0;font-size:.91rem;line-height:1.35;max-width:64ch}
.ground-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.ground-actions button{min-height:44px;padding:8px 12px;border:1px solid #3d4b52;background:#232e34;color:#f3f5f4;font-size:.78rem;white-space:nowrap}
.ground-actions button.primary{background:#b53d30;color:#f3f5f4}
.ground-actions small{font-size:.73rem;color:#ffab97;max-width:26ch}
body.ground-adventure #content .main-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,35%);min-height:0;padding:12px 17px;gap:18px;border:0;background:linear-gradient(95deg,#101619,#101619)}
body.ground-adventure #content .dialogue-copy h2{font-size:1rem;margin:1px 0 3px}
body.ground-adventure #content .dialogue-copy p{font-size:.88rem;line-height:1.32;margin:3px 0}
body.ground-adventure #content .dialogue canvas.portrait{width:68px;min-width:68px;height:68px}
body.ground-adventure #content .choices{display:grid;gap:4px;max-height:176px;overflow:auto}
body.ground-adventure #content .choices button{min-height:44px;padding:5px 10px;font-size:.79rem;text-align:left}
body.ground-adventure #explore-guide{padding:10px 24px 10px 0}
@media(max-width:700px){.ground-bar{min-height:0;display:block;padding:8px 11px}.ground-bar p{font-size:.79rem;line-height:1.25;margin-bottom:6px}.ground-actions{justify-content:flex-start}.ground-actions button{min-height:44px;font-size:.73rem;padding:6px 9px}body.ground-adventure #content .main-panel{grid-template-columns:1fr;padding:9px 11px;gap:8px}body.ground-adventure #content .choices{grid-template-columns:1fr 1fr;max-height:130px}body.ground-adventure #content .dialogue canvas.portrait{width:45px;min-width:45px;height:45px}body.ground-adventure #scene-hotspots .hotspot{min-height:44px;font-size:.8rem;padding:8px 10px}}
/* The flight bag opens a contemporary chart app inside a slim tablet frame. */
dialog[data-kind="ipad"]{width:min(1120px,calc(100vw - 20px));max-height:94dvh;border-radius:22px;background:#0e1921}
dialog[data-kind="ipad"] .modal-head{padding:13px 20px 12px;background:#101e29;border-bottom-color:#36505d}
dialog[data-kind="ipad"] .modal-head h2{font:600 1.3rem/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.02em}
dialog[data-kind="ipad"] .modal-head .eyebrow{font-size:.67rem;color:#abc5ce}
dialog[data-kind="ipad"] .modal-body{padding:14px 18px 18px}
dialog[data-kind="ipad"] .modal-actions{margin-top:14px}
dialog[data-kind="ipad"] .smallprint{font-size:.76rem;line-height:1.5}
.ipad-device{position:relative;overflow:hidden;margin:2px 0 12px;border:4px solid #34424b;border-radius:25px;background:#0d1d29;color:#edf5f6;box-shadow:inset 0 0 0 1px #73818b,0 0 0 1px #0b1116,0 16px 38px #0008}
.ipad-device::before{content:"";position:absolute;top:3px;left:50%;z-index:2;width:4px;height:4px;border-radius:50%;background:#51646e;box-shadow:0 0 0 2px #16262e;pointer-events:none}
.ipad-top{display:flex;gap:12px;align-items:center;min-height:53px;padding:11px 18px;background:#112532;border-bottom:1px solid #3b5968;font-size:.82rem}
.ipad-top b{color:#d4e8eb;letter-spacing:.05em}.ipad-top span{flex:1;min-width:0;color:#f4f8f8}.ipad-top small{color:#bfd3d9;font-size:.75rem;white-space:nowrap}
.ipad-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 13px;background:#152b39;border-bottom:1px solid #3b5968}
.ipad-nav button,.ipad-weather-toggle{min-height:44px;padding:8px 11px;border:1px solid #5a7885;border-radius:9px;background:#213a48;color:#e8f4f6;font-size:.8rem;line-height:1.2;touch-action:manipulation}
.ipad-nav button.active,.ipad-nav button[aria-pressed="true"],.ipad-weather-toggle.active,.ipad-weather-toggle[aria-pressed="true"]{border-color:#9cced4;background:#315766;color:#fff}
.ipad-nav button:hover:not(:disabled),.ipad-weather-toggle:hover:not(:disabled){background:#355666;border-color:#b4dbe0}
.ipad-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,28%);grid-template-areas:"map route";height:430px;min-height:0}
.ipad-route{grid-area:route;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px 17px;background:#172c39;border-left:1px solid #405e6c;font-size:.85rem;line-height:1.45}
.ipad-route strong{display:block;margin-bottom:8px;color:#a9d9df;font-size:.75rem;letter-spacing:.055em}.ipad-route small{display:block;margin-top:7px;color:#c2d3d9;font-size:.78rem;line-height:1.42}.ipad-route hr{border:0;border-top:1px solid #425d6a;margin:13px 0}.ipad-stop{font-size:.91rem;margin:5px 0;color:#f1f7f8}.ipad-connector{padding-left:4px;color:#8acbd5}.ipad-weather{font-size:.92rem;font-weight:700;color:#e9c6b3}.ipad-weather.clear{color:#a6dec4}.ipad-weather.danger{color:#ffcabd}
.ipad-goal-context{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:10px 15px;background:#1e3a49;border-bottom:1px solid #476474;color:#e2f0f2;font-size:.82rem;line-height:1.4}
.ipad-goal-context strong{color:#fff}.ipad-route-summary{margin:10px 0;padding:10px 12px;border:1px solid #496879;border-radius:10px;background:#203947;color:#eaf5f6;font-size:.81rem;line-height:1.4}
.ipad-power{display:flex;gap:5px}.ipad-power button{min-height:44px;flex:1;padding:7px 5px;border:1px solid #678b9a;border-radius:8px;background:#2b4554;color:#e6f2f4;font-size:.76rem;text-align:center;touch-action:manipulation}.ipad-power button.active{border-color:#b7e3e1;background:#c1e0df;color:#173644}
.ipad-map-pane{position:relative;grid-area:map;min-width:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:center;justify-items:center;overflow:hidden;background:linear-gradient(#18394d,#112a3a)}
.ipad-map-pane #ipad-map{display:block;width:100%;height:100%;max-height:none;aspect-ratio:850/405;object-fit:contain;margin:0;border:0;image-rendering:auto}
.ipad-map-legend{position:static;width:100%;max-width:none;padding:7px 10px;border-top:1px solid #bed3d677;background:#102633df;color:#f3f8f8;font-size:.74rem;line-height:1.35}
.ipad-map-pane .ipad-weather-toggle{position:absolute;top:12px;right:12px;z-index:1;box-shadow:0 3px 14px #0005;backdrop-filter:blur(7px)}
.ipad-route-choices{padding:15px 17px 17px;background:#142936;border-top:1px solid #426574}.ipad-route-choices>strong,.ipad-route-choices>small{display:block}.ipad-route-choices>strong{font-size:.79rem;letter-spacing:.055em;color:#b8e0e3}.ipad-route-choices>small{font-size:.79rem;color:#c4d8dc;margin:5px 0 12px;line-height:1.45}
.ipad-tip-count{margin-left:auto;padding:4px 8px;border:1px solid #b8d68a;border-radius:999px;color:#e5f2c2;background:#42543b;font-size:.74rem;white-space:nowrap}.ipad-airport-tips{background:#203633}.ipad-airport-tips>strong{color:#dfedba}.ipad-tip-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ipad-tip-card{padding:10px 12px;border:1px solid #778a67;border-radius:10px;background:#293c3a}.ipad-tip-card strong,.ipad-tip-card small{display:block}.ipad-tip-card strong{color:#f0f5cf;font-size:.85rem}.ipad-tip-card small{margin-top:3px;color:#cfddc7;font-size:.73rem}.ipad-tip-card p{margin:8px 0 0;color:#f2f5e9;font-size:.8rem;line-height:1.42}.flight-route-options .ipad-stop-choice.tipped{border-color:#b8d68a}.flight-route-options .ipad-tip-label{display:block;margin-top:5px;color:#e5f2c2;font-size:.75rem;font-style:normal;font-weight:700}
.ipad-flyover-choices{background:#19313d}.ipad-flyover-choices>strong{color:#d3e7c7}.ipad-flyover-choices .ipad-stop-choice{min-height:112px}
.flight-route-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.flight-route-options .ipad-stop-choice{min-height:84px;padding:10px 12px;border:1px solid #557887;border-radius:10px;background:#213a48;color:#eef6f7;text-align:left;touch-action:manipulation}.flight-route-options .ipad-stop-choice.active{border-color:#a5e1dd;background:#315766;box-shadow:inset 0 0 0 1px #9ed9d040}.flight-route-options .ipad-stop-choice:hover:not(:disabled){border-color:#b8e5e7;background:#305363}.flight-route-options .ipad-stop-choice:disabled{opacity:.56}.flight-route-options .ipad-stop-choice strong,.flight-route-options .ipad-stop-choice span,.flight-route-options .ipad-stop-choice small{display:block}.flight-route-options .ipad-stop-choice strong{font-size:.86rem;line-height:1.25}.flight-route-options .ipad-stop-choice span{font-size:.78rem;color:#d6e5e8;margin-top:4px}.flight-route-options .ipad-stop-choice small{font-size:.76rem;color:#afdfcd;margin-top:4px;line-height:1.25}.flight-route-options .ipad-stop-choice:not(.active) small{color:#dfd2b3}
.ipad-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid #426574;background:#1d3645}.ipad-bottom>div{min-width:0;padding:10px 12px;border-right:1px solid #3e5b69}.ipad-bottom>div:last-child{border-right:0}.ipad-bottom small{display:block;font-size:.72rem;color:#b2d0d9;letter-spacing:.04em}.ipad-bottom b{display:block;overflow-wrap:anywhere;font-size:.87rem;line-height:1.35;margin-top:4px;color:#f4f9fa}.ipad-bottom b.warn{color:#ffc2b5}.ipad-bottom b.good{color:#b8e9ce}
@media(max-width:850px){.ipad-layout{grid-template-columns:1fr;grid-template-areas:"map" "route";height:auto}.ipad-map-pane{aspect-ratio:850/405;border-bottom:1px solid #4d6a78}.ipad-route{overflow:visible;border-left:0}.flight-route-options{grid-template-columns:repeat(2,minmax(0,1fr))}.ipad-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}.ipad-bottom>div:nth-child(3){border-right:0}}
@media(max-width:650px){
 dialog[data-kind="ipad"]{width:calc(100vw - 12px);max-height:96dvh;border-radius:16px}
 dialog[data-kind="ipad"] .modal-head{padding:10px 13px}dialog[data-kind="ipad"] .modal-head h2{font-size:1.08rem}dialog[data-kind="ipad"] .modal-body{padding:8px 9px 13px}
 .ipad-device{border-width:3px;border-radius:18px;margin:0 0 9px}.ipad-top{min-height:48px;gap:7px;padding:9px 11px;font-size:.75rem}.ipad-top small{font-size:.67rem}.ipad-top span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .ipad-nav{padding:6px 8px;gap:5px}.ipad-nav button{font-size:.77rem}
 .ipad-layout{grid-template-columns:1fr;grid-template-areas:"map" "route";min-height:0}
 .ipad-map-pane{min-height:0;aspect-ratio:auto;flex-direction:column;align-items:stretch;border-bottom:1px solid #4d6a78}.ipad-map-pane #ipad-map{width:100%}
 .ipad-map-legend{position:static;max-width:none;padding:7px 9px;border:0;border-top:1px solid #4d6a78;border-radius:0;background:#17313e;box-shadow:none;backdrop-filter:none;font-size:.72rem}.ipad-map-pane .ipad-weather-toggle{position:static;align-self:flex-end;margin:7px 9px;padding:7px 9px;font-size:.75rem;box-shadow:none}
 .ipad-route{display:block;padding:11px 12px;border-left:0;font-size:.8rem}.ipad-route hr{margin:8px 0}.ipad-route strong{margin:1px 0;font-size:.72rem}.ipad-route small{margin-top:3px;font-size:.75rem}
 .ipad-goal-context{padding:8px 10px;font-size:.77rem}.ipad-route-summary{padding:8px 10px;font-size:.78rem}
 .ipad-route-choices{padding:11px 12px}.ipad-route-choices>small{font-size:.76rem}.flight-route-options,.ipad-tip-list{grid-template-columns:1fr}.flight-route-options .ipad-stop-choice{min-height:68px}.ipad-tip-count{margin-left:0}
 .ipad-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.ipad-bottom>div{padding:8px 10px}.ipad-bottom>div:nth-child(3){border-right:1px solid #3e5b69}.ipad-bottom>div:nth-child(even){border-right:0}.ipad-bottom>div:last-child{grid-column:1/-1;border-top:1px solid #3e5b69}.ipad-bottom b{font-size:.82rem}
 dialog[data-kind="ipad"] .modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}dialog[data-kind="ipad"] .modal-actions button{min-width:0;min-height:44px;padding:8px 10px;font-size:.84rem;text-align:center}
}
body.flight-adventure #hud,body.flight-adventure #adventure-actions,body.flight-adventure #orientation,body.flight-adventure footer{display:none!important}
body.flight-adventure #content{padding:0;background:#101619}
body.flight-adventure #flight-deck .power-labels{display:none}
body.flight-adventure #flight-deck .fuel-readout{margin:0}
body.flight-adventure #weather-ribbon{padding:5px 16px}
body.flight-adventure #weather-ribbon span{display:none}
.char-preview{position:relative;display:block;width:120px;height:120px;flex:none;overflow:hidden;border:2px solid #3d4b52;background:#19272e}
.char-preview img,.char-header .char-preview canvas{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.char-preview img{object-fit:cover;object-position:center top}
.look-choice{display:block;margin:0 0 12px;color:#a7d9de}
.look-choice select{display:block;width:100%;margin-top:6px}
.character.preset-locked .field-grid label:nth-child(-n+8){display:none}
/* Light pixel presentation, with all labels and controls kept crisp. */
.full-body-preview{display:block;width:160px;height:224px;image-rendering:auto;border:2px solid #3d4b52;background:#19272e;margin:0 auto 15px}

#explore-guide button{min-height:44px;padding:8px 13px;background:transparent;color:var(--text);border-color:var(--line);white-space:nowrap;font-size:.85rem}
#object-list{display:flex;gap:7px;flex-wrap:wrap;padding:12px 24px;background:var(--panel);border-top:1px solid var(--line)}
#object-list button{min-height:44px;padding:7px 10px;font-size:.76rem;background:#232e34;border-color:#3d4b52}
#object-markers{position:absolute;inset:0;z-index:5;pointer-events:none}
#object-markers .object-marker{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;min-height:38px;padding:0;text-align:center;border:1px solid #d0e3e9;background:#142129eb;color:#ffffff;border-radius:50%;pointer-events:auto;box-shadow:0 2px 10px #0005;font-weight:bold;font-size:.85rem}
#object-markers .object-marker:hover,#object-markers .object-marker:focus-visible{background:#a7d9de;color:#101619}

@media(pointer:coarse){#object-markers .object-marker{width:44px;height:44px;min-height:44px}}
@media(max-width:650px){#explore-guide{font-size:.68rem;gap:8px}#explore-guide button{font-size:.72rem;padding:7px 9px}#object-list{display:grid;grid-template-columns:1fr 1fr}.full-body-preview{width:140px;height:196px}}
/* On a narrow screen the named list is the touch target; keep the scene readable. */
@media(max-width:650px){#object-markers{display:none}}

.preview-motion{display:grid;gap:5px;margin:0 0 16px;font-size:.8rem}.preview-motion select{width:100%}
.character [data-eye-color][hidden]{display:none!important}

.sheet-export{width:100%;margin:0 0 14px}.sheet-export[hidden]{display:none!important}

[data-outfit-choice][hidden]{display:none!important}
.wardrobe-grid{margin-top:20px}.wardrobe-grid .char-header{margin-bottom:18px}.wardrobe-grid .field-grid{margin-bottom:16px}.wardrobe-items{display:grid;gap:8px;margin:12px 0}.wardrobe-grid .sheet-export{margin-top:12px}
/* Conversations stay inside the painting; speech remains above its speaker. */
body.ground-adventure #speech.overhead{display:block;position:absolute;right:auto;bottom:auto;width:max-content;max-width:31%;z-index:8;pointer-events:none}
body.ground-adventure #speech.overhead .speech-text{position:relative;border:1px solid #90a9b4;border-radius:10px;background:#172129f5;color:#fff;padding:10px 13px;font:clamp(12px,1.1vw,16px)/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 3px 10px #17142170}
body.ground-adventure #speech.overhead .speech-text:after{content:'';position:absolute;left:var(--tail-x,50%);top:auto;bottom:-9px;width:13px;height:13px;margin:0;background:#172129;border:0;border-right:1px solid #90a9b4;border-bottom:1px solid #90a9b4;transform:translateX(-50%) rotate(45deg)}
#speech.overhead strong{font:700 .75em/1.4 ui-monospace,monospace;letter-spacing:.04em;margin-bottom:4px;color:#a7d9de}
body.conversation-active #scene-label,body.conversation-active #scene-tag,body.conversation-active #scene-hotspots,body.conversation-active #object-markers,body.conversation-active #object-list{display:none}
/* Plain dialogue choices float at the lower left, like an adventure-game subtitle list. */
body.conversation-active #stage-wrap:before{content:'';position:absolute;inset:42% 0 0;z-index:4;pointer-events:none;background:linear-gradient(to top,#060c12d9,transparent)}
#conversation-overlay{position:absolute;top:auto;bottom:18px;left:24px;right:auto;width:min(720px,calc(100% - 48px));height:58%;z-index:7;display:flex;align-items:flex-end;pointer-events:none;text-align:left}
.conversation-panel{display:flex;flex-direction:column;width:100%;max-height:100%;min-height:0;overflow:hidden;border:0;background:none;box-shadow:none;pointer-events:auto;cursor:default;color:#fff;text-shadow:0 2px 3px #000,0 0 8px #000}
.conversation-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.conversation-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#ffffff70 transparent;padding:0 10px 0 0}
.conversation-choices{display:grid;grid-template-columns:1fr;gap:0}
.conversation-approach{margin-top:9px;padding-top:8px;border-top:1px solid #ffffff55}.conversation-approach>span{display:block;margin:0 0 3px;color:#b1dce1;font-size:.68rem;font-weight:700;letter-spacing:.12em}.conversation-panel .conversation-approach button{font-size:clamp(13px,1.05vw,15px);font-weight:500}
.conversation-panel button,.conversation-panel summary{display:block;width:fit-content;max-width:100%;min-height:32px;padding:5px 0;border:0;border-radius:0;background:none;box-shadow:none;color:#fff;font:600 clamp(14px,1.25vw,18px)/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;text-shadow:inherit;cursor:pointer}
.conversation-panel button:hover:not(:disabled),.conversation-panel summary:hover{background:none;color:#a7e6ef;text-decoration:underline;text-underline-offset:4px}
.conversation-panel button:focus-visible,.conversation-panel summary:focus-visible{outline:0;color:#a7e6ef;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.conversation-panel button:disabled{color:#b4bdc1;cursor:default}
.conversation-panel .hint{margin:4px 0 8px;color:#dce7eb}
.conversation-tools{display:flex;flex-wrap:wrap;gap:0 22px;align-items:flex-start;margin-top:5px}
.conversation-tools button,.conversation-tools summary{font-size:.8rem;font-weight:500;color:#dce7eb}
.conversation-extras,.conversation-caption{border:0;margin:0;font-size:.85rem;color:#fff}
.conversation-tools details[open]{flex-basis:100%}
.conversation-panel summary{list-style:none}.conversation-panel summary::-webkit-details-marker{display:none}
.conversation-panel summary:after{content:' +';color:#a7e6ef}.conversation-panel details[open]>summary:after{content:' −'}
.conversation-caption p{line-height:1.5;margin:4px 0 12px;max-width:65ch}
.conversation-services{display:grid;gap:5px}
.conversation-panel .shop-grid{grid-template-columns:1fr;gap:8px;margin:8px 0}.conversation-panel .shop,.conversation-panel .journey-favour{padding:8px 0;border:0;border-radius:0;background:none;box-shadow:none}.conversation-panel .shop h3{font-size:1rem;margin:4px 0}.conversation-panel .lodging-panel p{font-size:.85rem;line-height:1.4;margin:5px 0}
@media(pointer:coarse){.conversation-panel button,.conversation-panel summary{min-height:44px}}
@media(max-width:700px){#scene-dock{flex-wrap:wrap;gap:0}#content{flex-basis:100%}body.ground-adventure #explore-guide{width:100%;padding:0 11px 11px}#explore-guide button{width:100%;text-align:center}.ground-bar p{font-size:.9rem;line-height:1.45}.ground-actions button{font-size:.85rem}body.ground-adventure #speech.overhead .speech-text{font-size:11px;line-height:1.3;padding:7px 9px}}
@media(max-width:650px){#conversation-overlay{bottom:8px;left:12px;width:calc(100% - 24px);height:44%}.conversation-panel button,.conversation-panel summary{font-size:13px}.conversation-tools{gap:0 15px}}
/* A quiet, always-available reminder while exploring; never another tooltip box. */
#interaction-hint{position:absolute;left:24px;bottom:16px;max-width:calc(100% - 48px);z-index:6;pointer-events:none;font:500 clamp(12px,1vw,14px)/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#fff;text-shadow:0 1px 3px #000,0 0 8px #000,0 0 16px #000}
#interaction-hint strong{font-weight:700}.touch-hint{display:none}
@media(pointer:coarse){#interaction-hint .mouse-hint{display:none}#interaction-hint .touch-hint{display:inline}}
@media(max-width:650px){#interaction-hint{left:12px;bottom:9px;max-width:calc(100% - 24px);font-size:12px}}
/* Detailed crew needs remain available in the journal and in-scene services. */
.ramp-tutorial{padding:14px 18px;margin:0 0 12px;background:#14262b;border-left:3px solid #67b8bd;color:#e8f1f2}
.ramp-tutorial p{margin:6px 0;line-height:1.5}.ramp-tutorial small{display:block;color:#b4c8cc;margin:7px 0}.ramp-tutorial button{margin:6px 8px 0 0;min-height:44px}
.journey-favour{grid-column:1 / -1;padding:12px 14px;border-left:2px solid var(--accent);background:#172125}
.journey-favour p{font-size:.85rem;line-height:1.45;margin:6px 0}
.journey-favour small{display:block;color:var(--muted);margin-bottom:9px}
.journey-favour button{min-height:44px}
.journey-chapter h3{margin:10px 0}.journey-chapter p{line-height:1.6;color:var(--text)}
.journey-checklist{list-style:none;padding:0;margin:18px 0 25px;display:grid;gap:11px}
.journey-checklist li{display:flex;align-items:baseline;gap:12px;font-size:.92rem;line-height:1.45}
.journey-checklist li span{color:var(--muted)}.journey-checklist .done span{color:#96d7c4}
.journey-needs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}
.journey-needs section{padding:16px;background:#182125;border:1px solid #ffffff15;border-radius:8px;min-width:0}
.journey-needs strong{display:block;margin-bottom:12px}.journey-needs small{color:var(--muted);font-size:.78rem;line-height:1.5}
.journey-needs label{display:grid;grid-template-columns:55px minmax(30px,1fr) 132px;gap:8px;align-items:center;font-size:.75rem;margin:9px 0}
.journey-needs meter{width:100%;height:12px}.journey-needs label span{font-size:.68rem}
.provision-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}
.provision-actions button{min-height:48px;text-align:left;line-height:1.45}
.journey-promises{margin:15px 0 20px;display:grid;gap:9px}.journey-promises p{margin:0;padding:10px 12px;background:#182125}
.journey-promises small{display:block;margin-top:5px;color:var(--muted)}
.journey-recap{border-top:1px solid #ffffff20;margin-top:18px;padding-top:10px}.journey-recap p{font-size:.85rem;line-height:1.45}
@media(max-width:700px){.journey-needs,.provision-actions{grid-template-columns:1fr}.journey-needs label{grid-template-columns:55px minmax(40px,1fr) 126px}.journey-favour button{width:100%}}

/* Flight decisions and instruments belong to the game viewport. */
body.flight-adventure #scene-dock{display:none}
body.flight-adventure #stage-wrap{height:min(100svh,720px);min-height:430px}
body.flight-adventure #stage{position:absolute;width:100%;height:100%;aspect-ratio:960/432;object-fit:cover}
body.flight-adventure #weather-ribbon{position:absolute;top:126px;left:26px;z-index:5;width:auto;max-width:36%;padding:3px 7px;border:0;border-radius:3px;background:#152329b0;font-size:.66rem}
body.flight-adventure #flight-deck{position:absolute;top:145px;right:24px;z-index:9;display:block;width:min(340px,43%);max-height:calc(100% - 165px);overflow:auto;overscroll-behavior:contain;padding:0;border:1px solid #c5e0e32b;border-radius:8px;background:#101c24eb;box-shadow:0 4px 16px #0002}
#flight-deck summary{padding:10px 12px;cursor:pointer;font-size:.8rem;color:#fff;min-height:44px}
#flight-summary{display:block;margin:3px 0 0 13px;color:#c4dadd;font-size:.72rem;font-variant-numeric:tabular-nums}
.instrument-body{padding:8px 12px 12px;display:grid;gap:12px}
body.flight-adventure #flight-deck .system-bank{display:block}
body.flight-adventure #flight-deck .system-bank .deck-heading{display:flex}
body.flight-adventure #flight-deck .system{display:grid;grid-template-columns:78px 1fr 40px;margin:8px 0}
body.flight-adventure #flight-deck .system output,body.flight-adventure #flight-deck .system meter{grid-column:auto;grid-row:auto}
body.flight-adventure #flight-deck .deck-note{display:block}
body.flight-adventure #flight-deck .flight-numbers{display:block}
#flight-overlay{position:absolute;left:24px;bottom:20px;z-index:7;width:min(510px,48%);max-height:calc(100% - 165px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:8px;background:linear-gradient(100deg,#0b1724f0,#101b29d9);color:#fff}
#flight-overlay .main-panel{display:block;min-height:0;padding:13px 20px!important;background:none;border:0}
#flight-overlay .dialogue{display:block}
#flight-overlay .portrait{display:none}
#flight-overlay .dialogue-copy h2{font-size:1.25rem;margin:6px 0}
#flight-overlay .dialogue-copy p{font-size:.8rem;line-height:1.35;margin:6px 0}
#flight-overlay .dialogue-copy .smallprint{font-size:.7rem;line-height:1.35}
#flight-overlay .eyebrow{font-size:.6rem;color:#b4d7df}
#flight-overlay .choices{display:grid;gap:0;margin-top:8px}
#flight-overlay .choices button{min-height:44px;padding:5px 0;border:0;border-radius:0;background:transparent;color:#fff;font-size:.83rem;font-weight:600;text-align:left}
#flight-overlay .choices button small{font-size:.69rem;line-height:1.25;margin:2px 0;color:#d5e5ec}
#flight-overlay .choices button:hover:not(:disabled),#flight-overlay .choices button:focus-visible{background:transparent;color:#a7e6ef;text-decoration:underline;text-underline-offset:4px}
#flight-overlay .choices button.danger{background:transparent!important;color:#ffb3a5!important}
#flight-overlay[data-phase=travel],#flight-overlay[data-phase=return]{width:calc(100% - 48px);background:linear-gradient(0deg,#09141df2,#09141da8);overflow:visible}
#flight-overlay .ground-bar{background:none;padding:10px 14px;gap:12px;min-height:0}
#flight-overlay .ground-bar p{font-size:.85rem;max-width:65ch}
#flight-overlay .ground-actions button{background:#132733ab}
#flight-overlay[data-phase=takeoff],#flight-overlay[data-phase=landing]{left:auto;right:24px;width:36%;background:none}
#flight-overlay[data-phase=takeoff] .dialogue,#flight-overlay[data-phase=landing] .dialogue{display:none}
#flight-overlay[data-phase=takeoff] .main-panel,#flight-overlay[data-phase=landing] .main-panel{padding:0!important}
#flight-overlay[data-phase=takeoff] .choices,#flight-overlay[data-phase=landing] .choices{justify-items:end}
body.flight-adventure #flightcue{position:absolute;left:24px;bottom:20px;width:285px;max-width:48%;z-index:7;background:#101c24e8;border:1px solid #c5e0e32b;border-radius:8px}
body.flight-adventure #progress{position:absolute;bottom:0;left:0;right:0;z-index:6}
@media(min-width:701px){body.flight-adventure #stage-wrap{height:min(100svh,45vw,720px);min-height:0}body.flight-adventure #stage{height:auto;object-fit:initial}}
@media(max-width:700px){
 body.flight-adventure #stage-wrap{height:45vw;min-height:0;max-height:none}
 body.flight-adventure #stage-wrap:is([data-phase=event],[data-phase=search],[data-phase=arrival]){height:min(620px,calc(100svh - 62px));min-height:480px}
 body.flight-adventure #stage{width:100%;height:auto;left:0;transform:none;object-fit:initial}
 body.flight-adventure #scene-label{top:16px;left:12px}body.flight-adventure #scene-tag{top:16px;right:12px}body.flight-adventure #race-chip{top:43px;right:12px}
 body.flight-adventure #weather-ribbon{top:65px;left:12px;max-width:43%}
 body.flight-adventure #flight-deck{top:16px;right:12px;width:46%;max-height:calc(100% - 98px)}
 body.flight-adventure #scene-tag,body.flight-adventure #race-chip{display:none}
 #flight-deck summary{font-size:.73rem;padding:8px}#flight-summary{font-size:.66rem;margin-left:0}
 #flight-overlay{left:12px;bottom:14px;width:calc(100% - 24px);max-height:calc(100% - 105px)}
 #flight-overlay .main-panel{padding:12px 15px!important}#flight-overlay .dialogue-copy h2{font-size:1.2rem}
 #flight-overlay[data-phase=travel],#flight-overlay[data-phase=return]{width:calc(100% - 24px)}
 #flight-overlay .ground-bar p{font-size:.8rem}#flight-overlay .ground-actions{justify-content:flex-start}
 #flight-overlay[data-phase=takeoff],#flight-overlay[data-phase=landing]{right:12px;width:37%}
 body.flight-adventure #flightcue{left:12px;bottom:14px;max-width:53%;padding:10px}
}

/* Keep the small crew strip on screen without hiding dialogue or scene actions. */
#stage-wrap:not(.title-screen) #interaction-hint{bottom:88px}
#stage-wrap:not(.title-screen) #scene-hotspots .hotspot{bottom:calc(5% + 72px)}
body.ground-adventure #speech.inspect-visible{bottom:92px}
#conversation-overlay{bottom:90px;max-height:calc(100% - 104px)}
#flight-overlay{bottom:92px;max-height:calc(100% - 237px)}
body.flight-adventure #flightcue{bottom:92px}
body.flight-adventure #flight-deck{max-height:calc(100% - 237px)}
#stage-wrap:not(.title-screen) #progress{bottom:72px}
@media(max-width:700px){
 #stage-wrap:not(.title-screen){margin-bottom:67px}
 #crew-vitals{top:100%;bottom:auto}
 #stage-wrap:not(.title-screen) #interaction-hint{bottom:9px}
 #stage-wrap:not(.title-screen) #scene-hotspots .hotspot{bottom:5%}
 body.ground-adventure #speech.inspect-visible{bottom:9px}
 #conversation-overlay{bottom:8px;max-height:none}
 #flight-overlay{bottom:14px;max-height:calc(100% - 105px)}
 body.flight-adventure #flightcue{bottom:14px}
 body.flight-adventure #flight-deck{max-height:calc(100% - 98px)}
 #stage-wrap:not(.title-screen) #progress{bottom:0}
}
