/* The departure lobby combines the railway poster and the service board. */
#home{grid-template-columns:minmax(0,1.34fr) minmax(350px,.9fr);grid-template-rows:minmax(0,1fr);gap:clamp(12px,2vw,26px);padding:clamp(12px,2vw,28px);background:#10232e;max-width:1720px;width:100%;align-self:center}
.terminal-cover{min-height:0;min-width:0;display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:10px}
.cover-visual{position:relative;isolation:isolate;border-radius:12px;overflow:hidden;min-height:240px;border:1px solid #5b777c;background:#2b6078}
.cover-visual .hero-art{inset:0;background-position:center center}
.cover-visual #coverTrain{inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:100% 50%}
.cover-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#102a3dba 0%,transparent 53%,#0d2539c9 100%),linear-gradient(90deg,#142b3d40,transparent 68%)}
.terminal-title{position:absolute;left:clamp(16px,3.4vw,56px);top:clamp(16px,4vh,52px)}
.station-sign{display:inline-flex;gap:12px;align-items:center;background:#173240;color:#ffe6ac;border:1px solid #8daba6;font-size:clamp(11px,1vw,14px);font-weight:800;letter-spacing:.065em;padding:6px 10px;margin-bottom:14px;border-radius:4px}
.station-sign span{border-left:1px solid #66868b;padding-left:10px}.terminal-title h1{font-size:clamp(52px, min(8vw,13.3vh),130px)}.terminal-title .roman-title{margin:12px 0 0;font-size:clamp(10px,1vw,15px)}
.cover-bottom{position:absolute;bottom:14px;left:16px;right:16px;display:flex;align-items:end;justify-content:space-between;gap:6px}
.cover-bottom .depot-entry{display:flex;gap:9px;align-items:center;background:#122f3ce8;border:1px solid #9eb4ab;border-radius:5px;padding:8px 12px;font-size:13px;min-height:46px;color:#ffedc2;text-align:left;font-weight:750}
.cover-bottom .depot-entry b,.cover-bottom .depot-entry small{display:block}.cover-bottom .depot-entry small{font-size:10px;color:#c4d8d7;font-weight:500;margin-top:3px}
.terminal-map{display:flex;align-items:center;justify-content:space-between;gap:5px;background:#203a45;border:1px solid #506970;border-radius:7px;padding:12px 14px;color:#e4e8d7;font-size:clamp(10px,1.1vw,14px);font-weight:650;white-space:nowrap}
.district-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#edc76e;border:2px solid #ffecb4}.terminal-rail{height:2px;min-width:5px;flex:1;background:#89a6a3}
.terminal-tv{display:flex;align-items:center;text-align:left;gap:12px;background:#192f3b;border:1px solid #4b6670;border-radius:8px;padding:10px 14px;color:#fff0c9;min-height:60px}
.terminal-tv .tv-icon{width:32px;height:29px;display:grid;place-items:center;background:#ffcc65;color:#122832;border-radius:5px}.terminal-tv b,.terminal-tv small{display:block}.terminal-tv small{color:#adbac1;font-size:12px;margin-top:2px}.tv-action{margin-left:auto;color:#ffcb76;font-size:13px;font-weight:800}
.departure-desk{min-width:0;min-height:0;display:flex;flex-direction:column;gap:clamp(8px,1.2vh,14px);padding:clamp(12px,1.7vw,23px);border-radius:12px;background:#e9e5d4;color:#1b3641;overflow:auto;border:1px solid #fff2dc}
.departure-header{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #778980;padding-bottom:9px;flex:none}
.departure-header small{font:800 11px/1.3 var(--mono);letter-spacing:.14em;color:#546d70}.departure-header h2{font-size:clamp(24px,2.4vw,38px);line-height:1.16;font-weight:900;letter-spacing:.05em}.desk-clock{display:flex;align-items:center;gap:5px;font:800 clamp(15px,1.8vw,22px)/1 var(--mono);color:#315663}
.departure-desk .routes{display:grid;grid-template-columns:1fr;gap:6px;flex:none}.departure-desk .route-option{background:#f7f2e3;border:1px solid #a3b2a9;border-left:6px solid var(--route);border-radius:6px;min-height:clamp(45px,6.5vh,65px);padding:7px 12px;gap:12px;justify-content:flex-start;color:#243b44}
.departure-desk .route-option .route-symbol{color:#284753;background:#e3e8db;border:none;width:clamp(28px,3.3vw,40px);height:clamp(28px,3.3vw,40px)}.departure-desk .route-option strong{font-size:clamp(15px,1.55vw,21px);line-height:1.18}.departure-desk .route-option small{font:600 12px/1.35 var(--zh);color:#536d72;white-space:normal;margin-top:2px;letter-spacing:0}
.departure-desk .route-option[aria-pressed=true]{color:#fff3d9;background:#244955;border-color:#244955;border-left-color:var(--route);box-shadow:none}.departure-desk .route-option[aria-pressed=true] small{color:#c1d4d3}.departure-desk .route-option[aria-pressed=true] .route-symbol{background:var(--route);color:#20363d}.departure-desk .route-option[aria-pressed=true]::after{background:#ffdc73;width:6px;height:6px;right:12px;top:14px}
.departure-desk [data-route=math]:not([aria-pressed=true]){background:#fff0bd;border-color:#e0c276;border-left-color:#e4b747}.departure-desk [data-route=math] .route-symbol{background:#f5cd63;color:#24434c}
.trip-config{display:grid;gap:7px;margin-top:auto}.trip-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px}.trip-settings label{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13px}.trip-settings select{min-width:0;flex:1;background:#faf6e7;color:#263e44;border:1px solid #869d96;min-height:34px;border-radius:4px;font-weight:700;font-size:14px;padding:4px 8px}
.trip-config #alignmentButton{width:100%;justify-content:flex-start;color:#243c45;background:#faf6e7;border:1px solid #9baea7}.trip-config #alignmentButton>span:nth-child(2){flex:1;display:flex;justify-content:space-between;gap:8px;align-items:center}.trip-config #homeMileage{color:#587077;text-shadow:none;font-size:12px}.selected-trip{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:13px;color:#26434d;font-weight:750}.selected-trip b{font-size:11px;border-radius:3px;padding:3px 7px;background:#dfc776;color:#263d44}
.trip-config .launch{width:100%;min-height:52px;justify-content:center;box-shadow:none;clip-path:none;border-radius:6px;background:#e9864c;color:#172e3a}.trip-config .launch strong{font-size:22px}.trip-config .launch-stub{margin-left:auto;padding-right:15px}.trip-config .launch-play{margin-right:0}
@media(max-width:850px){#home{grid-template-columns:minmax(0,1fr) minmax(310px,.95fr);gap:10px;padding:10px}.departure-desk{padding:10px}.terminal-title h1{font-size:clamp(45px,8vw,82px)}.terminal-map{font-size:10px;padding:9px 7px}.terminal-map .district-dot{width:6px;height:6px;border-width:1px}.terminal-cover{gap:7px}.cover-bottom{left:9px;right:9px;bottom:9px}.cover-bottom .service-plate b{display:none}.cover-bottom .depot-entry{font-size:11px;min-height:36px;padding:5px 7px}}
@media(max-width:650px) and (orientation:portrait){#home{display:flex;flex-direction:column;overflow:auto;padding:10px;gap:12px}.terminal-cover{display:grid;grid-template-rows:auto auto auto;flex:none}.cover-visual{min-height:225px;aspect-ratio:1.45}.terminal-title{top:12px;left:14px}.terminal-title .station-sign{margin-bottom:6px}.terminal-title h1{font-size:clamp(45px,12vw,73px)}.terminal-title .roman-title{margin-top:8px}.terminal-tv{min-height:48px;padding:7px 10px}.departure-desk{flex:none;overflow:visible;padding:12px;gap:8px}.departure-desk .route-option{min-height:48px}.departure-desk .route-option strong{font-size:17px}.trip-config .launch{min-height:55px}}
@media(max-height:590px) and (orientation:landscape){#home{padding:8px;gap:8px}.terminal-cover{gap:5px}.cover-visual{min-height:120px}.terminal-title{top:8px;left:15px}.station-sign{font-size:10px;padding:4px 7px;margin-bottom:8px}.terminal-title h1{font-size:clamp(44px,12vh,72px)}.terminal-map{padding:6px 7px;font-size:10px}.terminal-tv{min-height:33px;padding:4px 8px}.terminal-tv small{display:none}.departure-desk{gap:5px;padding:8px}.departure-header{padding-bottom:4px}.departure-header h2{font-size:20px}.departure-header small{font-size:9px}.departure-desk .routes{gap:3px}.departure-desk .route-option{min-height:35px;padding:4px 8px;gap:7px}.departure-desk .route-option strong{font-size:14px}.departure-desk .route-option small{font-size:10px}.departure-desk .route-option .route-symbol{width:24px;height:24px}.trip-config{gap:4px}.trip-settings select{min-height:28px}.trip-config #alignmentButton{min-height:29px}.trip-config .launch{min-height:36px}.trip-config .launch strong{font-size:17px}}
/* K3 mathematical tasks. The illustrated objects serve as concrete prompts. */
.math-question{min-height:76px;display:grid;place-items:center;margin:4px 0 11px;background:#e5e1cd;border:1px solid #b3b8a5;border-radius:8px;padding:7px;color:#233d47}
.math-equation{display:flex;align-items:center;justify-content:center;gap:clamp(5px,1vw,13px);width:100%}.math-equation>div{max-width:43%;text-align:center}.math-equation b{font-size:22px;line-height:1.2}.math-equation>strong{font-size:clamp(17px,3vw,28px);white-space:nowrap}
.math-dots{display:grid;grid-template-columns:repeat(var(--dot-cols,5),minmax(6px,17px));gap:3px;padding:5px;border-radius:5px;min-width:0;justify-content:center}.math-dots i{aspect-ratio:1;display:block;border-radius:50% 50% 37% 37%;background:#e8ac59;border:1px solid #9f6f36;box-shadow:inset 0 2px #fff6d3}.math-dots.blue i{background:#70aebe;border-color:#487f8e;box-shadow:inset 0 2px #d5edf0}.math-dots.removed i{background:#e3bab0;border-color:#a4574a;position:relative}.math-dots.removed i:after{content:'';position:absolute;left:10%;top:45%;width:80%;height:2px;background:#a4574a;transform:rotate(-40deg)}
.number-train{display:flex;gap:4px;justify-content:center;width:100%}.number-train span{display:grid;place-items:center;position:relative;min-width:0;width:min(17%,64px);aspect-ratio:1.28;font-weight:900;font-size:clamp(18px,3vw,32px);background:#376d79;border:2px solid #223f49;color:#fff4d4;border-radius:8px 8px 4px 4px;border-bottom:5px solid #1b424e}.number-train span::after{content:'';position:absolute;bottom:-7px;left:12%;width:76%;height:5px;background:radial-gradient(circle at 15% 50%,#263942 0 3px,transparent 4px),radial-gradient(circle at 85% 50%,#263942 0 3px,transparent 4px)}
.math-clock{width:min(138px,23vh);display:block;max-width:100%}.math-scale{width:min(255px,100%);height:auto;max-height:145px}.scale-beam{transform-origin:135px 35px;transform:rotate(var(--tilt))}.compare-trains{display:flex;gap:11px;width:100%;justify-content:center}.compare-trains>div{border:2px solid #849991;border-radius:6px;flex:1;max-width:47%;display:grid;place-items:center}.compare-trains b{font-size:18px}
.dispatch .math-choice{min-height:58px;color:#254650;font-size:clamp(18px,2.1vw,30px);font-weight:850;padding:6px;display:grid;place-items:center}.dispatch .math-choice b{line-height:1.14}.math-picks .math-choice[aria-pressed=true]{background:#ffe0a0;border-color:#dc8c47}.math-demo{margin:0 0 6px;padding:4px}.math-demo .math-clock{width:92px}
.math-station{position:relative;overflow:hidden;background:linear-gradient(#71a5bc 0 48%,#b4b7a0 48% 75%,#516b73 75%)!important;min-height:100px}.math-station-board{position:absolute;left:6%;top:8%;background:#233e49;border:4px solid #87998c;color:#ffcf73;padding:5px 8px;display:flex;align-items:center;gap:7px;font-size:14px;z-index:2}.math-station-board span{font-size:8px;color:#c5d2c5}.math-station-board i{width:12px;height:12px;border-radius:50%;background:#df6d4c;box-shadow:0 0 8px #e87b55}.math-station[data-state=ready] .math-station-board i,.math-station[data-state=correct] .math-station-board i{background:#80df93;box-shadow:0 0 8px #80df93}
.math-platform{position:absolute;left:0;right:0;top:0;bottom:10%;overflow:hidden}.math-platform img{width:78%;height:82%;position:absolute;bottom:7%;left:8%;object-fit:contain;object-position:center bottom;transition:transform 1.5s ease}.math-gate{position:absolute;bottom:2%;left:0;right:0;height:9%;background:#d8b66f;z-index:1}.math-station-track{position:absolute;bottom:0;width:100%;height:15%;background:repeating-linear-gradient(90deg,#4d5859 0 10px,#8b9a91 10px 16px);border-top:3px solid #a8b4a5}.math-station[data-state=correct] .math-platform img{transform:translateX(145%)}.math-station[data-state=wrong] .math-platform img{animation:math-rock .35s ease 2}.calm .math-station[data-state=wrong] .math-platform img{animation:none}@keyframes math-rock{50%{transform:translateX(-4px)}}
@media(max-height:550px) and (orientation:landscape){.math-question{min-height:50px;padding:3px;margin:2px 0 5px}.math-clock{width:77px}.math-scale{max-height:83px}.math-dots{grid-template-columns:repeat(var(--dot-cols,5),10px);gap:2px;padding:2px}.math-equation b{font-size:16px}.dispatch .math-choice{min-height:39px;font-size:17px}.number-train span{max-width:43px;font-size:18px}.math-station{min-height:70px}.math-demo .math-clock{width:62px}}

.route-study{border-top:1px solid #acbaae;padding-top:10px;min-height:0}.route-study>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px;color:#28444b}.route-study button{background:transparent;border:0;text-decoration:underline;font-weight:750;color:#315e6a;font-size:13px;padding:3px}.route-study #studyTopics{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.route-study #studyTopics span{font-size:12px;font-weight:650;background:#d2ded3;padding:4px 7px;border:1px solid #b4c4b6;border-radius:4px;color:#29434b}
@media(max-height:790px) and (orientation:landscape){.route-study #studyTopics{display:none}.route-study{padding-top:3px}.departure-desk .route-option{min-height:42px}}
@media(max-height:580px) and (orientation:landscape){.route-study{display:none}}
