/* Full-window menu, with compact utility controls instead of a permanent header. */
#titleScreen .utility-dock{position:absolute;left:clamp(13px,3vw,48px);bottom:clamp(18px,4vh,45px)}
.utility-dock{display:flex;align-items:center;gap:8px;z-index:3}
.utility-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;background:#102b40dd;border:1px solid #83b2c9;border-radius:7px;padding:7px 11px;color:#e9f4f8;font-weight:750;font-size:14px;box-shadow:0 3px 10px #0b22355e}
.utility-button:hover{background:#2a5b73}.utility-button svg{width:19px;height:19px}
#menuScreen .terminal-cover{grid-template-rows:minmax(0,1fr) auto auto auto}
#menuScreen .utility-dock{justify-content:flex-end;flex-wrap:wrap}
.pause-utility{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px}.pause-utility button{gap:7px;font-size:14px;min-height:42px}
@media(max-width:650px) and (orientation:portrait){#titleScreen .utility-dock{bottom:5%;left:50%;transform:translateX(-50%);width:max-content;max-width:94vw}.utility-button{padding:7px 8px;font-size:12px}#menuScreen .terminal-cover{grid-template-rows:auto auto auto auto}}
@media(max-height:520px) and (orientation:landscape){.utility-button{min-height:32px;font-size:12px;padding:4px 8px}#titleScreen .utility-dock{bottom:13px}#menuScreen .terminal-cover{gap:5px}}
/* Cockpit console: working speedometer, readable annunciator lamps and tactile controls. */
#game{--deck-height:clamp(116px,18vh,170px)}
.cab-view #game{--deck-height:clamp(155px,25vh,230px)}
#game .scenery{bottom:var(--deck-height)}
#game .drive-deck{height:var(--deck-height);min-height:0;display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.25fr);grid-template-rows:auto minmax(0,1fr);gap:8px 22px;padding:9px clamp(12px,3vw,46px) max(9px,env(safe-area-inset-bottom));border:0;border-top:5px solid #4d585c;background:linear-gradient(168deg,#59646a 0%,#2f353a 13%,#252c30 70%,#181e23);box-shadow:0 -8px 22px #12202b64,inset 0 1px #9da7a6;color:#eef1ee}
.cab-view #game .drive-deck{grid-template-columns:minmax(275px,1.1fr) minmax(135px,.48fr) minmax(330px,1.22fr);grid-template-rows:auto minmax(0,1fr);gap:10px clamp(10px,2.1vw,30px);padding:10px clamp(14px,3.6vw,58px)}
.cab-view #game .drive-deck:before{height:23px;left:7%;right:7%;clip-path:polygon(0 100%,4% 10%,96% 10%,100% 100%);background:linear-gradient(#525d60,#282f34);border-radius:8px 8px 0 0;box-shadow:0 -1px #99a6a9}
.console-status{grid-column:1/-1;display:flex;justify-content:flex-start;align-items:center;gap:7px;min-width:0}
.cab-lamp{display:flex;align-items:center;gap:6px;white-space:nowrap;background:#171e22;border:1px solid #515e63;border-radius:4px;padding:4px 10px;box-shadow:inset 0 2px 5px #111719;font-size:13px}
.cab-lamp>i{width:11px;height:11px;flex:none;border-radius:50%;background:#435254;box-shadow:inset 0 0 0 1px #738482}
.cab-lamp>b{color:#a9b8b9;font-size:11px;font-weight:700}.cab-lamp>strong{font-size:13px;color:#e2ebe4;font-weight:850}
.cab-lamp[data-state=green]>i{background:#89e8a5;box-shadow:0 0 8px #8dfda180}.cab-lamp[data-state=amber]>i{background:#ffc561;box-shadow:0 0 8px #ffc56180}.cab-lamp[data-state=blue]>i{background:#7ad5ff;box-shadow:0 0 8px #7ad5ff80}
.console-instruments{display:flex;align-items:center;min-width:0;gap:clamp(8px,1.4vw,18px);height:100%;padding:6px 11px;background:#171f24;border:1px solid #59666a;border-radius:6px;box-shadow:inset 0 3px 12px #09141c}
#game .cab-instrument{display:none;border:0;border-radius:0;background:transparent;padding:0}
.cab-view #game .cab-instrument{display:block;flex:none;width:min(11vw,126px);max-height:100%;aspect-ratio:1}
.cab-view #game .cab-instrument svg{width:100%;height:100%}
.console-readings{display:grid;grid-template-columns:minmax(70px,1fr) minmax(70px,1fr);gap:9px;width:100%;min-width:0}
.cab-view .console-readings{grid-template-columns:1fr;gap:7px}
#game .speed-cluster{min-width:0;background:#0b151c;border:1px solid #465c5f;text-align:left;padding:4px 8px;box-shadow:inset 0 1px 6px #111c1e}
#game .speed-cluster>small{font-size:11px;font-weight:750;color:#bacdd0}
#game .speed-read{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
#game .speed-read b{font-size:clamp(25px,3vw,43px);color:#d5fac8;letter-spacing:-.055em}
#game .speed-read span{font-size:10px;margin:0;color:#aec7c3}
#game .speed-bars{justify-content:flex-start;gap:2px;margin-top:3px}#game .speed-bars i{flex:1;max-width:10px;height:4px;background:#303f43}#game .speed-bars i.on{background:#b0f19c}
#game .distance-cluster{display:flex;flex-direction:column;justify-content:center;max-width:none;min-width:0;padding:4px 8px;background:#0b151c;border-radius:4px;border:1px solid #465c5f}
#game .distance-cluster small{font-size:11px;color:#a9bdbf;white-space:nowrap}#game .distance-cluster b{font-size:clamp(15px,2vw,23px);color:#eaf2ec}#game .distance-cluster>div{height:5px;background:#273a41;margin-top:3px}#game .distance-cluster i{background:#f4bc65}
#game .master-lever{display:none}
.cab-view #game .master-lever{display:flex;flex-direction:column;justify-content:center;gap:8px;width:100%;height:100%;min-width:0;padding:9px 12px;border:1px solid #69757a;border-radius:6px;background:linear-gradient(#404a4e,#252e33);box-shadow:inset 0 2px 10px #121c22}
#game .lever-label{display:block;text-align:center}#game .lever-label b{font-size:15px;font-weight:850}#game .lever-label span{display:block;margin-top:4px;font-size:8px}
#game .lever-track{height:46px;margin:0;background:#172126;border-radius:8px;border:1px solid #74858a;box-shadow:inset 0 4px 9px #090f14}
#game .lever-track i{top:19px;left:8%;right:8%;height:7px;background:#0a1116;border:1px solid #6f7e84}
#game .lever-track strong{top:7px;width:42px;height:31px;border:2px solid #a8b6b4;background:repeating-linear-gradient(90deg,#656c6d 0 3px,#4e5659 3px 6px);box-shadow:0 3px 4px #0009,inset 0 1px #c7d4cf;border-radius:4px}
#game .lever-key span{font-size:11px;font-weight:800;color:#ced8d6}
#game .motion-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1.2vw,14px);margin:0;height:100%;align-items:stretch;min-width:0}
#game .drive-button{min-width:0;min-height:56px;height:100%;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:7px 5px;border:1px solid #adb9be;border-bottom:5px solid #0c1e29;border-radius:5px;color:white;box-shadow:0 3px 8px #111b1eab,inset 0 1px #e7f3f466;text-shadow:0 1px 2px #1633419e}
#game .drive-button svg{width:clamp(22px,3vw,32px);height:clamp(22px,3vw,32px)}
#game .drive-button b{font-size:clamp(14px,2vw,25px);font-weight:900;white-space:nowrap;letter-spacing:.02em}
#game #brakeButton{background:linear-gradient(#d59648,#a55c28);border-bottom-color:#6e371a}
#game #powerButton{background:linear-gradient(#439e7e,#1d7559);border-bottom-color:#114536}
#game #hornButton{background:linear-gradient(#3c87b9,#205782);border-bottom-color:#16354a}
#game #doorsButton{background:linear-gradient(#b76551,#8c3c32);border-bottom-color:#582b27}
#game .drive-button:disabled{opacity:.40;filter:saturate(.5)}
#game .drive-button:active:not(:disabled){transform:translateY(3px);border-bottom-width:2px}
#game .drive-button:hover:not(:disabled){filter:brightness(1.13)}
#game .radio-card,#game .way-call{bottom:calc(var(--deck-height) + 24px)}
.at-task #game .drive-deck{display:none}.at-task #game .scenery{bottom:0}
.on-air #game .drive-deck{visibility:hidden}
@media(max-width:1030px) and (orientation:landscape){.cab-view #game .drive-deck{grid-template-columns:minmax(200px,.85fr) minmax(90px,.38fr) minmax(250px,1.15fr);gap:6px 10px;padding-inline:12px}.cab-view #game .cab-instrument{width:88px}.cab-view #game .master-lever{padding:5px 8px}#game .lever-label span{display:none}#game .drive-button b{font-size:16px}#game .drive-button svg{width:23px;height:23px}}
@media(max-height:550px) and (orientation:landscape){#game{--deck-height:100px}.cab-view #game{--deck-height:122px}#game .drive-deck,.cab-view #game .drive-deck{padding:4px 8px;gap:4px 8px;border-top-width:3px}.cab-view #game .cab-instrument{width:65px}.cab-view .console-readings{gap:3px}#game .console-instruments{padding:3px 5px;gap:5px}#game .speed-cluster>small,#game .distance-cluster small{font-size:9px}#game .speed-read b{font-size:24px}#game .distance-cluster b{font-size:14px}#game .speed-bars{display:none}.cab-lamp{padding:2px 7px;gap:5px}.cab-lamp strong{font-size:11px}.cab-lamp b{font-size:10px}.cab-lamp i{width:8px;height:8px}#game .drive-button{min-height:40px;gap:3px;padding:3px}#game .drive-button b{font-size:15px}#game .drive-button svg{height:20px;width:20px}.cab-view #game .master-lever{gap:3px;padding:4px 6px}#game .lever-track{height:27px}#game .lever-track i{top:11px}#game .lever-track strong{top:3px;height:20px;width:28px}#game .lever-label b{font-size:11px}#game .lever-key span{font-size:9px}#game .radio-card,#game .way-call{bottom:calc(var(--deck-height) + 8px)}}
@media(max-width:680px) and (orientation:portrait){#game,.cab-view #game{--deck-height:clamp(170px,29vh,225px)}#game .drive-deck,.cab-view #game .drive-deck{grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr);gap:5px;padding:5px 9px 8px}.console-status{grid-column:1;justify-content:space-between;gap:4px}.cab-view #game .cab-instrument{display:none}.cab-view #game .master-lever{display:none}.console-readings,.cab-view .console-readings{grid-template-columns:1fr 1fr;gap:6px}#game .console-instruments{padding:3px 5px}#game .speed-read b{font-size:29px}#game .distance-cluster b{font-size:20px}#game .drive-button b{font-size:15px}#game .drive-button svg{width:24px;height:24px}#game .drive-button{min-height:46px}.cab-lamp{padding:3px 5px;gap:4px}.cab-lamp b{font-size:10px}.cab-lamp strong{font-size:11px}.cab-lamp i{width:8px;height:8px}#game .radio-card,#game .way-call{bottom:calc(var(--deck-height) + 8px)}}
.cab-instrument svg text{stroke:none}
@media(max-width:900px) and (orientation:landscape){.cab-view #game .drive-deck{grid-template-columns:minmax(175px,.85fr) minmax(70px,.35fr) minmax(245px,1.2fr)}.cab-view #game .cab-instrument{width:61px}}
@media(max-width:620px) and (orientation:landscape){.cab-view #game .drive-deck{grid-template-columns:minmax(142px,.73fr) minmax(0,1.27fr)}.cab-view #game .master-lever{display:none}.cab-view #game .cab-instrument{display:none}.cab-view .console-readings{grid-template-columns:1fr 1fr}#game .drive-button b{font-size:12px}}
