:root{--ink:#244c55;--green:#367c64;--paper:#f5f8ed;--orange:#efad48;--line:#dce4d6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:ui-rounded,"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN",Meiryo,sans-serif}button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation;border:0}button:focus-visible,a:focus-visible{outline:4px solid #337db8;outline-offset:3px}button:active{transform:translateY(2px)}button:disabled{opacity:.5;cursor:default}button[hidden],[hidden]{display:none!important}header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:900;text-decoration:none;color:var(--ink)}.brand small{font-size:12px;margin-left:10px}.brandMark{color:#e5a044}.quiet{background:transparent;border:1px solid #bdcdc1;border-radius:14px;padding:12px 16px;min-height:44px;font-weight:700;font-size:14px}.intro{text-align:center;margin:38px 0 22px}.eyebrow{letter-spacing:.1em;font-weight:800;color:var(--green)}h1{font-size:38px;margin:12px 0}p{line-height:1.7}.intro p{margin:0}.tiles{display:flex;gap:28px;max-width:950px;margin:auto;padding:0 24px}.tile{flex:1;border-radius:32px;padding:16px 18px 26px;border:3px solid #d5dfcb;box-shadow:0 9px 0 #dce5d2;background:#eaf1df;transition:transform .15s}.busTile{background:#f8e8d9;border-color:#e8d8c7;box-shadow:0 9px 0 #e8d8c7}.tile svg{width:100%;display:block}.tile strong{display:block;font-size:36px;margin:2px}.tile span{font-size:17px}.homeNote{text-align:center;font-size:14px;margin:28px}.routebar{display:flex;align-items:center;gap:20px;height:97px;padding:8px 28px}.station{text-align:left;background:white;border-left:6px solid var(--orange);border-radius:5px 14px 14px 5px;padding:6px 18px;min-width:230px;max-width:48%}.station small{font-weight:800;margin-right:8px;color:#94631b}.station span{font-size:15px}.station strong{display:block;font-size:24px;line-height:1.35}.next{flex:1}.next small{display:block;font-size:12px}.next strong{font-size:19px;display:block}.next>span{font-size:12px;color:#617a74}.playLayout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;padding:0 24px 18px}.drive{min-width:0;display:flex;flex-direction:column}.scene{position:relative;border-radius:24px;overflow:hidden;background:#d7e8dc;flex:1;min-height:290px}canvas{display:block;width:100%;height:100%;position:absolute;object-fit:contain}.status{position:absolute;left:18px;top:15px;max-width:calc(100% - 36px);background:#fffdf0ed;border-radius:30px;padding:9px 18px;font-weight:800;font-size:16px;box-shadow:0 3px 0 #92b4a12b}.countBubble{position:absolute;left:50%;top:18%;background:#fff9d8;border:3px solid #e2ae46;border-radius:50%;font-size:38px;font-weight:900;width:72px;height:72px;text-align:center;line-height:65px;pointer-events:none}.controls{display:grid;grid-template-columns:1.3fr 1fr .85fr;gap:12px;margin-top:15px}.controls button{min-height:82px;border-radius:20px;font-size:23px;font-weight:900;box-shadow:inset 0 -6px #00000012;white-space:nowrap}.controls span{display:block;font-size:23px;line-height:1.1;margin-bottom:3px}.go{background:#377e65;color:white}.doors{background:#f1b94f}.horn{background:#d2e6e5}.learning{border-radius:23px;border:1px solid #dce4d6;background:#fffdf4;padding:13px;min-height:450px}.modeTabs{display:flex;padding:3px;background:#e8eee3;border-radius:14px;margin-bottom:18px}.modeTabs button{flex:1;font-size:14px;font-weight:800;min-height:46px;border-radius:11px;background:transparent;padding:4px}.modeTabs .selected{background:#fffefa;box-shadow:0 2px 5px #254b5420}.panelTitle{text-align:center;font-size:15px;font-weight:800}.equation{font-size:32px;font-weight:900;text-align:center;min-height:63px;margin-top:18px;line-height:1.5}.equation small{font-size:13px;display:block;font-weight:500}.hint{text-align:center;font-size:14px;min-height:48px;line-height:1.65;margin:7px 0}.answers{display:flex;gap:8px}.answers button{flex:1;height:65px;font-size:29px;font-weight:900;background:#eaf0df;border:2px solid #d1dec1;border-radius:16px}.answers button.correct{background:#cce8d4}.countButton{background:#e1eeee;border-radius:13px;min-height:48px;width:100%;font-size:16px;font-weight:800;margin-top:14px}.skip{display:block;margin:10px auto;border:0}.timetable{margin-top:16px;padding-top:13px;border-top:1px dashed #bacbbc;font-size:11px;color:#667f75}.timetable>span{letter-spacing:.08em}.scheduleRow{display:flex;justify-content:space-between;gap:6px;margin-top:7px;font-size:12px}.scheduleRow b{white-space:nowrap}.target{text-align:center;font-size:13px;margin-top:8px}.target b{font-size:24px;display:block}.learning svg{display:block;width:174px;height:174px;margin:0 auto}.clockReadout{text-align:center;font-size:18px;font-weight:800}.timeControls{display:flex;gap:8px;margin-top:8px}.timeControls button{flex:1;background:#e6eddb;border-radius:13px;min-height:52px;font-size:18px;font-weight:800}.freeIcon{font-size:60px;color:#db9b39;text-align:center}.learning h2{font-size:23px;line-height:1.7;text-align:center;margin:0}.learning p{text-align:center;font-size:15px}.primary{background:#357b63;color:white;border-radius:14px;min-height:54px;padding:12px 24px;font-weight:800;font-size:18px;width:100%;margin:12px 0}dialog{border:0;border-radius:26px;max-width:560px;width:calc(100% - 32px);max-height:90dvh;padding:24px;color:var(--ink);box-shadow:0 20px 100px #183f4c55}dialog::backdrop{background:#244c5570}dialog h2{font-size:23px;margin:0}.dialogTop{display:flex;align-items:center;justify-content:space-between;gap:10px}dialog label{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-weight:800;gap:15px}select{border:1px solid #b6cbbf;background:#f6f9f0;border-radius:9px;padding:9px;min-height:44px;max-width:65%}label span select{max-width:none}dialog .fine{font-size:12px;color:#647a72;line-height:1.7}#mapStops{display:grid;grid-template-columns:1fr 1fr;gap:10px}#mapStops button{background:#eef2e6;border-radius:14px;min-height:70px;padding:9px;text-align:left;border-left:5px solid #edae4b}#mapStops strong{display:block;font-size:17px}#mapStops small{font-size:12px}.mapCurrent{box-shadow:inset 0 0 0 2px #448369}#cancelSwitch{width:100%}
@media(min-width:760px){.playLayout{height:calc(100dvh - 163px);max-height:680px}.learning{overflow-y:auto}.scene{min-height:0}}@media(min-width:1200px){.playLayout{grid-template-columns:minmax(0,1fr) 330px;max-width:1480px;margin:auto}.routebar{max-width:1480px;margin:auto}.learning{padding:18px}.scene{min-height:360px}}@media(max-width:759px){header{height:59px;padding:0 15px}.brand{font-size:18px}.brand small{display:none}.quiet{padding:10px;font-size:12px}.intro{margin:30px 0 22px}h1{font-size:29px}.eyebrow{font-size:13px}.tiles{gap:15px;padding:0 17px}.tile{padding:12px 5px 23px;border-radius:24px}.tile strong{font-size:29px}.tile span{font-size:12px}.routebar{height:99px;padding:8px 12px;gap:12px}.station{padding:6px 10px;min-width:0;flex:1}.station strong{font-size:20px}.station span{font-size:12px}.station small{font-size:11px}.next{flex:1}.next strong{font-size:15px}.playLayout{display:block;padding:0 12px 18px}.scene{height:310px;min-height:0;flex:none}.controls{gap:8px;margin:10px 0 16px}.controls button{min-height:76px;font-size:21px}.learning{min-height:0;padding:13px}.modeTabs{margin-bottom:12px}.equation{margin-top:0}.timetable{margin-top:12px}.learning svg{width:190px;height:190px}.learning h2 br{display:none}.freeIcon{font-size:30px}.status{font-size:14px;padding:8px 12px;left:10px;top:10px}#mapButton{max-width:65px}.countBubble{top:24%}.answers button{height:61px}}
@media(max-width:430px){.scene{height:248px}.tiles{flex-direction:column;max-width:360px}.tile svg{height:150px}.tile strong{font-size:28px}.intro{margin:20px 0}.intro p{font-size:14px}.tile{padding:3px 12px 18px}.station strong{font-size:17px}.next strong{font-size:14px}.routebar{gap:8px}.controls button{font-size:19px}.brand{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

@media(min-width:760px) and (orientation:portrait){.playLayout{height:auto;max-height:none;grid-template-columns:1fr}.scene{height:360px;flex:none}.learning{min-height:0}.learning>section{max-width:420px;margin:auto}.learning .timetable{max-width:520px;margin:16px auto}.modeTabs{max-width:520px;margin:0 auto 15px}}

.station.longName strong{font-size:17px}.next strong{overflow-wrap:anywhere}@media(max-width:759px){.routebar{height:auto;min-height:99px}.station.longName strong{font-size:14px}}
/* Driver console and enlarged view of the same cabin passengers. */
.playLayout{display:grid;grid-template-columns:minmax(0,1fr) 352px;grid-template-rows:minmax(240px,1fr) 168px;grid-template-areas:"drive learn" "console learn";gap:12px 18px;height:calc(100dvh - 163px);max-height:800px}.drive{grid-area:drive}.learning{grid-area:learn;min-height:0;overflow-y:auto;padding:12px}.controls.console{grid-area:console;margin:0;display:grid;grid-template-columns:1fr 1fr 76px;grid-template-rows:27px 1fr;gap:3px 12px;border:2px solid #9db4af;border-bottom:6px solid #839e98;background:linear-gradient(165deg,#e9eeeb,#c8d7d2);border-radius:23px;padding:8px 13px;box-shadow:inset 0 2px #ffffff;position:relative}.console:after,.console:before{content:"⊕";font-size:12px;color:#79968f;position:absolute;bottom:5px;pointer-events:none}.console:before{left:5px}.console:after{right:5px}.consoleTop{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;white-space:nowrap}.consoleTop>span:first-child{margin-right:auto;font-size:12px}.stateLamp{padding:4px 6px;background:#eef3eb;border-radius:6px;color:#58736c}.stateLamp.lit{color:#236b4f;background:#c1e5ca}.controlPod{min-width:0;border-radius:11px;padding:0 2px;text-align:center}.leverLabels{display:flex;justify-content:space-between;gap:3px}.controls .positionButton{min-height:44px;box-shadow:none;border-radius:9px;font-size:16px;padding:3px 6px;background:#f2f5ec;flex:1;color:#42615d;border:1px solid #b7c9bd}.controls .activePosition{background:#d4e7d7;border:2px solid #659077;color:#214c3f}.doorPod .activePosition{background:#f7e3b6;border-color:#c3943b;color:#715323}.positionButton[data-locked="true"]{color:#738b83;background:#e5ebe4;border-style:dashed}.leverTrack{position:relative;height:50px;margin:2px 4px;touch-action:pan-y}.trackLine{position:absolute;left:22px;right:22px;height:15px;top:19px;background:#4e6869;border-radius:12px;box-shadow:inset 0 3px 4px #1f424e70;border:2px solid #b6c6c2}.detent{position:absolute;top:20px;width:4px;height:11px;background:#c5d5d1;pointer-events:none}.leftDetent{left:27px}.rightDetent{right:27px}.controls .leverKnob{--position:0;position:absolute;z-index:2;left:calc(28px + (100% - 56px)*var(--position));top:2px;transform:translateX(-50%);width:58px;height:46px;min-height:46px;border-radius:13px;background:linear-gradient(#54786f,#345a53);border:3px solid #2d514a;box-shadow:0 4px 0 #1c3f39,0 5px 7px #2f4e4b50;touch-action:none;transition:left .14s ease}.controls .doorPod .leverKnob{background:linear-gradient(#f9d47b,#d8a340);border-color:#a57b31;box-shadow:0 4px 0 #846127,0 5px 7px #2f4e4b30}.controls .leverKnob.dragging{transition:none;cursor:grabbing}.controls .leverKnob:active{transform:translateX(-50%)}.controls .leverKnob:disabled{opacity:.7}.controls .knobGrip{display:block;width:28px;height:20px;margin:0 auto;border-top:3px solid #ffffff6b;border-bottom:3px solid #ffffff6b;position:relative}.knobGrip:after{content:"";position:absolute;top:6px;left:0;right:0;border-top:3px solid #ffffff6b}.controlPod small{display:block;font-size:11px;line-height:1.25;min-height:27px}.controls .horn{min-height:70px;align-self:center;grid-column:3;border-radius:50%;height:76px;width:76px;border:5px solid #9dbab6;background:radial-gradient(ellipse at 35% 20%,#eff8f0,#bad7d0);font-size:11px;box-shadow:0 4px #789791;padding:3px;color:#355f5d}.controls .horn span{font-size:25px;margin:0}.passengerHeading{display:flex;justify-content:space-between;align-items:center;gap:5px}.passengerHeading strong{font-size:16px}.passengerHeading>span{background:#e7eedb;border-radius:20px;padding:4px 8px;font-size:12px;font-weight:800}.samePassengers{font-size:11px!important;margin:3px 0 6px;text-align:left!important;color:#657b73}.passengerLegend{display:flex;justify-content:space-between;gap:6px;font-size:12px;font-weight:700;margin:6px 0}.passengerLegend span:first-child{color:#367b84}.passengerLegend span:last-child{color:#926020}.seatGroups{display:grid;gap:8px}.seatGroup{border:1px solid #cbd8cb;border-radius:14px;padding:4px 7px 7px;background:#edf2e7}.seatGroupTitle{font-size:11px;display:block;color:#5e766a;margin:0 0 3px}.seatGrid{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:4px}.bigSeat{min-width:44px;min-height:46px;height:47px;border-radius:9px;padding:1px;position:relative;background:#f9fbf4;border:1px solid #dce6d7;touch-action:manipulation}.bigSeat svg{width:38px;height:44px;display:block;margin:auto}.bigSeat .seatBack{fill:#dce4d5}.bigSeat .seatPerson{opacity:0;transform:translateY(8px);transition:opacity .15s,transform .15s}.bigSeat.occupied .seatPerson{opacity:1;transform:translateY(0)}.bigSeat.occupied{border-color:#b3d0c9}.bigSeat.newcomer{border:2px dashed #cc903e;background:#fff4db}.newMarker,.countMarker{position:absolute;right:0;top:0;min-width:19px;height:19px;border-radius:6px;background:#edbf61;color:#644419;font-size:15px;font-weight:900;line-height:19px;display:none}.newcomer .newMarker{display:block}.counted .countMarker{display:block;background:#2d775d;color:white;min-width:23px;height:23px;line-height:23px;font-size:15px;border-radius:50%}.counted .newMarker{display:none}.bigSeat.counted{box-shadow:inset 0 0 0 2px #498974;background:#dcefdc}.bigSeat:disabled{opacity:1;cursor:default}.countTools{display:flex;gap:7px;margin:7px 0}.countTools .countButton{margin:0;min-height:44px;font-size:12px;flex:1}.countTools .countButton:first-child{flex:.7}.learning .modeTabs{margin-bottom:10px}.learning .equation{font-size:29px;min-height:0;margin:5px 0}.learning .equation small{font-size:11px;line-height:1.4}.learning .panelTitle{font-size:13px;margin-top:8px}.learning .hint{min-height:0;font-size:12px;margin:6px 0}.learning .answers button{height:48px;font-size:26px}.learning .skip{min-height:35px;padding:5px;margin:3px auto}.learning .timetable{margin-top:10px;padding-top:8px}.learning #freePanel p{margin:8px;font-size:14px}.learning #clockPanel .hint{min-height:32px}.learning svg#clock{width:190px;height:190px}#game[data-vehicle="bus"] .drivePod{border-left:3px solid #bd796b;padding-left:8px}#game[data-vehicle="train"] .drivePod{border-left:3px solid #bc984b;padding-left:8px}
@media(min-width:1200px){.playLayout{grid-template-columns:minmax(0,1fr) 376px}.scene{min-height:0}.consoleTop{font-size:12px}.controlPod small{font-size:12px}.controls .positionButton{font-size:19px}.bigSeat{height:52px}.bigSeat svg{height:48px;width:41px}}
@media(max-width:759px),(orientation:portrait){.playLayout{display:flex;flex-direction:column;height:auto;max-height:none;gap:12px;padding:0 12px 18px}.scene{height:310px;min-height:0;flex:none}.controls.console{position:sticky;top:0;z-index:5;flex:none;min-height:161px;width:100%}.learning{overflow:visible;width:100%;padding:13px}.seatGroups{grid-template-columns:1fr 1fr;gap:10px}.learning>section{max-width:none}.learning .timetable,.learning .modeTabs{max-width:none}.learning .bigSeat{height:60px}.learning .bigSeat svg{height:54px;width:46px}.learning #mathPanel{max-width:480px;margin:auto}.countTools .countButton{font-size:15px}.passengerPanel{padding-top:4px}.consoleTop{font-size:11px}}
@media(max-width:580px){.seatGroups{grid-template-columns:1fr}.controls.console{grid-template-columns:1fr 1fr 56px;gap:2px 7px;padding:7px 8px;min-height:161px}.controls .horn{width:56px;height:64px;border-width:3px;font-size:9px;min-height:64px}.controls .positionButton{font-size:13px;padding:3px 0;min-height:44px}.consoleTop{font-size:9px;gap:4px}.consoleTop>span:first-child{font-size:10px}.stateLamp{padding:4px 3px}.controlPod small{font-size:10px}.controls .leverKnob{width:50px}.scene{height:248px}.learning .bigSeat{height:58px}.learning .bigSeat svg{height:53px;width:45px}}
.soundPanel{margin-top:9px;background:#edf3e9;border:1px solid #d2dfcd;border-radius:14px;padding:0 9px}.soundPanel summary{cursor:pointer;min-height:44px;padding:12px 3px;font-size:14px;font-weight:800;touch-action:manipulation}.soundPads{display:grid;grid-template-columns:1fr 1fr;gap:7px}.soundPads button{min-height:48px;background:#fffdf1;border:1px solid #c7d7c0;border-radius:11px;padding:6px;font-size:13px;font-weight:800}.volumeControls{display:flex;align-items:center;gap:6px;margin-top:8px}.volumeControls button{min-height:44px;min-width:80px;font-size:12px;border-radius:10px;background:#d7e7db}.volumeControls label{font-size:11px}.volumeControls input{min-width:0;flex:1;min-height:44px;accent-color:#3a7a62;touch-action:pan-y}#audioFeedback{font-size:11px;text-align:left;margin:5px 0 10px;line-height:1.5}
.controls .consoleTop .stateLamp{font-size:11px;display:inline-block;line-height:1.3;margin:0}.controls .consoleTop>span:first-child{line-height:1.3;display:inline;margin-bottom:0}.learning .modeTabs button{font-size:12px}.learning #mathPanel .panelTitle{display:none}.learning #mathPanel .equation{font-size:29px;line-height:1.3;margin:1px 0}.learning #mathPanel .equation small{display:none}.learning #mathPanel .hint{line-height:1.3;margin:4px 0}.learning #mathPanel .skip{min-height:28px;line-height:1.3;margin:0 auto;padding:4px}.seatGroupTitle{line-height:14px}.seatGroup{padding-bottom:6px}.passengerPanel{margin-top:8px}.soundPanel summary{font-size:16px}.soundPanel .soundPads button{min-height:66px;font-size:15px}@media(max-width:580px){.controls .consoleTop .stateLamp{font-size:9px}.controls .consoleTop>span:first-child{font-size:9px}.controlPod small{overflow-wrap:anywhere}.modeTabs button{font-size:13px}.soundPanel .soundPads button{font-size:14px}}
/* Return to the committed detent immediately after cancel/outside release. */
.controls .leverKnob{transition:none}
.soundPanel #melody{font-size:14px;letter-spacing:-.025em}
/* Conductor play: the platform is the active stage; the cabin is optional. */
#platform{image-rendering:pixelated}.viewScene{position:absolute;right:12px;bottom:12px;z-index:2;min-height:44px;padding:8px 13px;background:#f6f8ebee;border:1px solid #9bb6a9;border-radius:13px;font-size:12px;font-weight:800}.status{font-size:14px;max-width:calc(100% - 32px)}.ticketHeading{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;margin:7px 0}.ticketHeading small{font-size:10px;color:#6a7b70}.ticketRequest{font-size:17px;font-weight:800;line-height:1.5;margin:8px 0}.replayTicket{background:#dfede7;border-radius:12px;min-height:44px;font-size:13px;width:100%;font-weight:800;margin-bottom:11px}.ticket{background:#fff2d5;border:2px solid #d7b878;border-radius:12px;position:relative;padding:12px 12px 18px;box-shadow:0 5px 0 #e3dbc9;overflow:hidden}.ticketTop{display:flex;justify-content:space-between;font-size:11px;letter-spacing:.08em;color:#866b3e;border-bottom:1px dashed #ceb276;padding-bottom:8px}.ticketDestination{display:block;width:100%;text-align:left;background:transparent;font-size:22px;font-weight:900;line-height:1.4;min-height:52px;padding:9px 0;overflow-wrap:anywhere}.ticketDeparture{font-size:13px;display:flex;justify-content:space-between;align-items:center}.ticketDeparture b{font-size:23px}.partyClues{display:flex;gap:10px;margin:12px 0}.partyClue{flex:1;border-radius:10px;border:1px solid #aac4b9;min-height:52px;background:#dcebe4;font-size:14px}.party1{background:#eedbc6;border-color:#cfb795}.partyClue b{font-size:28px}.partySwatch{font-size:12px;border:1px solid currentColor;padding:2px 4px;border-radius:4px;margin-right:7px}.ticketCounter>span{font-size:13px;display:block;text-align:center;margin:7px}.ticketCounter>div{display:flex;align-items:center;justify-content:space-between;gap:5px}.ticketCounter button{min-width:44px;min-height:48px;background:#fffaf0;border:1px solid #c2ab7d;border-radius:10px;font-size:18px;font-weight:800}.ticketCounter output{font-size:34px;font-weight:900;min-width:42px;text-align:center}.ticketCounter b{font-size:14px}.ticketPerforation{border-top:2px dashed #ceb276;margin-top:14px}.ticket:before,.ticket:after{content:"";position:absolute;bottom:18px;border:2px solid #d7b878;background:#fffdf4;width:17px;height:17px;border-radius:50%}.ticket:before{left:-11px}.ticket:after{right:-11px}.ticket.punched:before{left:17px;bottom:10px;width:10px;height:10px}.ticketStamp{position:absolute;right:18px;bottom:18px;border:3px solid #438574;transform:rotate(-12deg);color:#327261;background:#fff4dcd9;font-size:23px;font-weight:900;padding:6px 10px}.ticketFeedback{font-size:13px;line-height:1.55;min-height:38px;margin:12px 0 5px}.punchTicket{width:100%;min-height:58px;background:#39765f;color:#fffef2;font-size:21px;font-weight:900;border-radius:15px;box-shadow:0 5px 0 #285844;margin-bottom:8px}.punchTicket:disabled{opacity:.65}.ticketHelpers{display:flex;gap:8px}.ticketHelpers button{flex:1;min-height:44px;font-size:12px;border-radius:11px;background:#e9eee3;color:#49665b}.passengerPanel{margin-top:16px!important;border:1px solid #cfdccf;padding:0 9px 9px;border-radius:13px}.passengerPanel>summary{font-size:13px;font-weight:800;padding:12px 2px;min-height:44px;cursor:pointer}.passengerPanel .passengerHeading{margin-top:7px}.learning #clockPanel{background:#e9f1e7;border-radius:14px;padding:10px;margin-top:14px}.learning #clockPanel svg{width:164px;height:164px}.learning #clockPanel .target{display:none}.learning #clockPanel .timeControls button{min-height:46px}.learning #freePanel p{line-height:1.6}.learning .modeTabs button{font-size:12px}.ticketRequest:empty{display:none}@media(max-width:759px),(orientation:portrait){.learning #mathPanel{max-width:520px}.scene{height:350px}.learning #clockPanel{max-width:520px;margin:14px auto}.ticketDestination{font-size:24px}.ticketCounter button{min-width:55px}.viewScene{font-size:11px;right:8px;bottom:8px}}@media(max-width:580px){.scene{height:286px}.ticketDestination{font-size:21px}.ticketRequest{font-size:16px}.ticketCounter button{min-width:44px}.status{font-size:12px}.viewScene{min-height:38px;padding:5px 9px}.scene .countBubble{top:25%}}
.ticketHeading{display:none}.ticketRequest{font-size:15px;line-height:1.4;margin:5px 0}.ticket{padding:10px 10px 14px}.partyClues{margin:8px 0}.partyClue{min-height:44px}.ticketCounter button{min-height:44px}.ticketFeedback{min-height:28px;line-height:1.4;margin:8px 0 5px}.ticketCounter>span{margin:4px}.ticketHelpers{margin-top:1px}.ticketHelpers button{font-size:11px}.replayTicket{margin-bottom:8px}.ticketPerforation{margin-top:10px}
/* Visual-first conductor stage. The station and one current task own the screen. */
header{height:46px;padding:0 20px;gap:12px}.brand{font-size:16px;margin-right:auto}.brand small{display:none}header .quiet{padding:5px 12px;min-height:36px;font-size:12px}
#game{max-width:1440px;margin:auto}.routebar{height:114px;padding:10px 22px;gap:22px;max-width:none}.station{min-width:0;max-width:68%;flex:1;border:2px solid #bcc8bf;border-top:9px solid #ecaa45;border-left-width:2px;border-radius:9px;background:#fffef6;box-shadow:0 4px 0 #d8dfd3;padding:8px 20px;text-align:center}.station small{display:none}.station span{font-size:23px;line-height:1.2;display:block;font-weight:800}.station strong{font-size:34px;line-height:1.25}.station.longName strong{font-size:23px}.next{flex:0 1 30%;min-width:0}.next small{font-size:12px}.next small:before{content:'→ ';font-size:22px}.next strong{font-size:19px;line-height:1.35}#progressText{display:none}#mapButton{font-size:12px;padding:6px;min-height:44px}
.playLayout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(260px,1fr) 104px 132px;gap:9px;padding:0 22px 12px;height:calc(100dvh - 160px);max-height:none;max-width:none}.drive{grid-row:1;grid-column:1;min-height:0}.scene{height:100%;min-height:0!important;border-radius:18px;border:1px solid #bed1c1;background:#e9efdf;overflow:hidden}.scene canvas{height:100%;width:100%;object-fit:contain}.console{grid-row:3;grid-column:1;margin:0!important}.learning{grid-row:2;grid-column:1;overflow:visible!important;min-height:0!important;padding:0!important;border:0;background:transparent;display:flex;align-items:stretch;position:relative}.learning #mathPanel{display:flex;align-items:center;gap:12px;width:100%;max-width:none;margin:0}.ticketHeading,.ticketRequest,.ticketTop,.ticketDestination,.ticketDeparture,.partyClues,.ticketPerforation,.ticketCounter>span,.panelTitle,#freePanel,.ticketFeedback:empty{display:none!important}
.ticket{padding:8px 20px!important;box-shadow:0 4px 0 #e3dbc9;margin:0;min-width:0;flex:1;max-width:510px;align-self:center}.ticketCounter>div{justify-content:center;gap:14px}.ticketCounter output{font-size:44px;min-width:60px}.ticketCounter b{font-size:14px}.ticketCounter button{font-size:22px;min-width:54px;min-height:56px;border-radius:12px}.ticket:before,.ticket:after{bottom:20px}.punchTicket{margin:0;min-height:72px;width:160px;flex:0 0 160px;font-size:24px;border-radius:16px;box-shadow:0 5px 0 #285844}.ticketHelpers{display:flex;flex-direction:column;gap:5px;margin:0}.ticketHelpers button{min-height:44px;min-width:70px;flex:0;padding:5px;font-size:12px}.replayTicket{width:44px;min-width:44px;min-height:44px;margin:0;font-size:22px;background:transparent}.ticketFeedback{position:absolute;top:-34px;left:50%;transform:translateX(-50%);margin:0;padding:5px 15px;background:#fff9e5;border-radius:22px;font-size:15px;min-height:0;box-shadow:0 2px 6px #334d5020;z-index:5}.ticketStamp{position:static;display:block;width:max-content;font-size:25px;transform:rotate(-7deg);margin:auto;background:transparent}.ticket.punched{max-width:200px}.learning #openCabin{margin-left:auto;align-self:center;min-height:44px;font-size:12px;padding:6px 10px;white-space:nowrap}.status{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.status.showCue{width:auto;height:auto;clip-path:none;white-space:normal;left:15px;right:15px;top:auto;bottom:12px;padding:9px 15px;z-index:9;font-size:15px}.countBubble{top:25%;z-index:6}.viewScene{right:8px;bottom:8px;font-size:11px;min-height:38px;z-index:3}
#boardingGroups{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:10px 24px 20px;z-index:2;background:linear-gradient(#f1f5e7,#e3e9d8)}.boardingGroup{min-height:0;display:flex;flex-direction:column;border:2px solid #93b7ae;border-radius:17px;background:#e3eee8;padding:0 10px 8px;position:relative;box-shadow:0 5px 0 #b3cbbf}.boardingGroup:after{content:'';height:10px;width:52%;position:absolute;bottom:-12px;left:24%;border:2px solid #93b7ae;border-top:0;border-radius:0 0 10px 10px}.boardingGroup.group1{border-style:dashed;border-color:#c8ac7e;background:#f5ead8;box-shadow:0 5px 0 #dac5a2}.groupHeading{height:36px;display:flex;justify-content:center;align-items:center;gap:10px;color:#387567;font-size:20px}.group1 .groupHeading{color:#9d713c}.groupHeading b{font-size:25px}.peopleTen{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;flex:1;min-height:0}.waitingPerson,.emptyPlace{display:block;position:relative;min-width:0;min-height:44px;background:#ffffff68;border-radius:9px;border-bottom:3px solid #bccdbd;padding:0;overflow:hidden}.emptyPlace{border:1px dashed #bdc9b488;background:transparent;opacity:.6}.waitingPerson canvas{position:absolute;inset:2px 0 4px;width:100%;height:calc(100% - 6px);object-fit:contain}.waitingPerson.counted{box-shadow:inset 0 0 0 3px #39846c;background:#fff8d9}.personCount{position:absolute;right:3px;top:3px;font-size:14px;font-weight:900;background:#fffbd8;border-radius:50%;min-width:20px;line-height:20px}.personCount:empty{display:none}.joinPlus{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);font-size:38px;font-weight:900;color:#587d6b}#stageDone{position:absolute;z-index:4;bottom:24px;left:24px;font-size:34px;background:#fff6dc;padding:12px 24px;border-radius:18px}
#game[data-task=count] .viewScene,#game[data-task=clock] .viewScene,#game[data-task=sound] .viewScene{display:none}#game[data-task=count] .console,#game[data-task=clock] .console{background:#e1e8e1;border-color:#bdc9c2;box-shadow:0 4px 0 #aebdb3}.console{height:132px;padding:7px 12px 8px;grid-template-columns:1fr 1fr 100px;gap:6px 16px}.consoleTop{height:18px;min-height:18px;margin:0}.consoleTop #consoleName{display:none}.consoleTop span{font-size:11px}.consoleTop .stateLamp{padding:2px 9px}.controlPod{padding:4px 8px;min-height:0}.leverLabels button{min-height:32px!important;font-size:16px!important;padding:2px 8px}.leverTrack{height:47px}.controls .leverKnob{min-height:40px;height:40px;width:62px;border-radius:10px}.controlPod>small{display:none}.controls .horn{min-height:80px;font-size:15px;border-radius:14px}.controls .horn span{font-size:27px}
#playDialog .modeTabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 0;background:transparent;padding:0}#playDialog .modeTabs button{min-height:130px;background:#edf1e5;font-size:20px;border:2px solid #bdcdbd}#playDialog .modeTabs button span{display:block;font-size:42px}#playDialog .modeTabs .selected{border-color:#3c8069;background:#e0efe4}#cabinDialog .passengerPanel{display:block!important}#cabinDialog .seatGroups{display:grid;grid-template-columns:1fr 1fr}#cabinDialog .seatGrid{grid-template-columns:repeat(5,1fr)}#cabinDialog .bigSeat{min-height:60px}#cabinDialog .timetable{display:block}#cabinDialog .samePassengers{font-size:12px}
.scene #clockPanel{position:absolute;inset:0;z-index:3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;align-items:center;justify-items:center;background:#edf1e1;padding:12px 12%;gap:8px}.scene #clockPanel svg{grid-column:1;grid-row:1/3;width:100%;height:100%;max-width:280px;max-height:280px}.scene #clockPanel .target{display:block;grid-column:2;grid-row:1;font-size:0;background:#fff0cb;border:2px dashed #c6a66b;padding:14px 30px;border-radius:14px;margin:0}.scene #clockPanel .target:before{content:'🎟';font-size:34px}.scene #clockPanel .target b{font-size:43px}.scene #clockPanel .timeControls{grid-row:2;grid-column:2;margin:0;gap:12px;width:100%}.timeControls button{min-height:56px;font-size:20px}.scene #clockReadout,.scene #clockMessage{display:none}#game[data-task=clock] #ticket{display:none}#game[data-task=clock] #mathPanel{justify-content:center}
.scene #soundPanel{position:absolute;inset:0;z-index:4;background:#f0f3e8;padding:12px 40px;margin:0;border:0;overflow:auto}.scene #soundPanel summary{display:none}.soundPads{display:grid;grid-template-columns:1fr 1fr;gap:10px}.soundPads button{min-height:64px;font-size:18px}.scene #audioFeedback{font-size:13px;min-height:18px;margin:6px}.volumeControls{margin:8px 0}.scene #soundPanel button{border-radius:13px}.learning:has(#mathPanel[hidden]){justify-content:flex-end}#game[data-task=count] #ticketPlus:after{content:'☝';position:absolute;pointer-events:none;font-size:31px;left:50%;top:75%;animation:pointAction 1.4s 3 both;opacity:0}#ticketPlus{position:relative}@keyframes pointAction{0%,100%{opacity:0;transform:translateY(9px)}25%,70%{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){#game[data-task=count] #ticketPlus:after{animation:none}}
@media(orientation:portrait){.playLayout{grid-template-rows:minmax(320px,1fr) 104px 132px;height:calc(100dvh - 160px)}#boardingGroups{gap:28px;padding:12px 14px 24px}.boardingGroup{padding:0 6px 8px}.peopleTen{gap:4px}.groupHeading{height:42px}.joinPlus{font-size:28px}.station strong{font-size:29px}.station span{font-size:21px}}
@media(max-width:600px){header{padding:0 10px;gap:7px}.brand{font-size:13px}header .quiet{font-size:10px;padding:4px 7px}.routebar{height:105px;padding:8px 10px;gap:8px}.station{padding:5px 7px;max-width:70%;border-top-width:7px}.station span{font-size:17px}.station strong{font-size:23px}.station.longName strong{font-size:15px}.next strong{font-size:13px}#mapButton{display:none}.playLayout{height:calc(100dvh - 151px);padding:0 9px 9px;gap:7px;grid-template-rows:minmax(300px,1fr) 112px 120px}#boardingGroups{grid-template-columns:1fr;grid-template-rows:1fr 1fr;gap:20px;padding:7px 12px 14px}.boardingGroup{padding:0 7px 5px;border-radius:12px}.groupHeading{height:24px;font-size:14px;flex:0 0 24px}.groupHeading b{font-size:18px}.peopleTen{gap:3px}.waitingPerson,.emptyPlace{min-height:0}.waitingPerson{min-width:44px}.joinPlus{top:50%;font-size:23px;background:#edf1e1;line-height:24px}.boardingGroup:after{display:none}.learning #mathPanel{display:grid;grid-template-columns:1fr 95px;grid-template-rows:70px 35px;gap:4px}.ticket{grid-column:1;grid-row:1;padding:4px 9px!important;width:100%;height:68px;max-width:none}.ticketCounter>div{gap:5px;height:55px}.ticketCounter output{font-size:34px;min-width:36px}.ticketCounter button{min-width:42px;min-height:48px;font-size:17px}.ticketCounter b{display:none}.punchTicket{grid-column:2;grid-row:1;width:95px;min-height:64px;font-size:19px;margin:0}.ticketHelpers{grid-column:1;grid-row:2;flex-direction:row;gap:5px;justify-content:flex-start}.ticketHelpers button{min-height:35px;font-size:11px;min-width:65px}.replayTicket{position:absolute;bottom:1px;right:53px;min-width:40px;width:40px;min-height:35px;font-size:19px}.learning #openCabin{position:absolute;bottom:0;right:0;font-size:0;min-height:35px;width:45px;padding:0;border:0}.learning #openCabin:before{content:'▦';font-size:25px}.console{height:120px;grid-template-columns:1fr 1fr 52px;gap:4px 7px;padding:5px 6px}.consoleTop .stateLamp{font-size:10px}.controlPod{padding:3px}.leverLabels button{font-size:12px!important;min-height:31px!important;padding:0}.leverTrack{height:46px}.controls .leverKnob{width:49px;min-height:38px;height:38px}.controls .horn{font-size:0;min-height:78px}.controls .horn span{font-size:26px}.scene #clockPanel{padding:10px;grid-template-columns:1fr;grid-template-rows:auto 1fr auto;gap:4px}.scene #clockPanel .target{grid-column:1;grid-row:1;padding:3px 22px;display:flex;align-items:center;gap:14px}.scene #clockPanel .target b{font-size:32px}.scene #clockPanel .target:before{font-size:26px}.scene #clockPanel svg{grid-row:2;grid-column:1;max-width:220px;max-height:220px}.scene #clockPanel .timeControls{grid-row:3;grid-column:1;max-width:280px}.timeControls button{min-height:44px;font-size:18px}.scene #soundPanel{padding:10px}.soundPads button{font-size:14px;min-height:65px}#stageDone{font-size:26px;bottom:55px;left:15px}#game[data-task=clock] #mathPanel{display:flex}.ticketFeedback{top:-29px;white-space:nowrap;font-size:13px}}
.playLayout{grid-template-areas:none!important}.playLayout>.drive{grid-area:1 / 1 / 2 / 2!important}.playLayout>.learning{grid-area:2 / 1 / 3 / 2!important}.playLayout>.controls.console{grid-area:3 / 1 / 4 / 2!important;height:132px!important;min-height:0!important;grid-template-columns:1fr 1fr 100px!important;grid-template-rows:18px 1fr!important;padding:7px 12px 8px;gap:6px 16px}.controls.console .horn{width:100%;height:80px;min-height:80px;font-size:15px;border-radius:14px}.controls.console .controlPod>small{display:none}
@media(max-width:600px){.playLayout>.controls.console{height:120px!important;grid-template-columns:1fr 1fr 52px!important;padding:5px 6px;gap:4px 7px}.controls.console .horn{font-size:0;height:78px;min-height:78px}}
@media(min-width:601px) and (max-width:900px){.learning #openCabin{font-size:0;min-width:44px;width:44px;padding:0}.learning #openCabin:before{content:'▦';font-size:26px}.ticket{padding:8px 10px!important}.ticketCounter>div{gap:7px}.ticketCounter button{min-width:48px}.ticketCounter output{min-width:44px;font-size:38px}.learning #mathPanel{gap:8px}.punchTicket{width:140px;flex-basis:140px}}
@media(max-width:600px){.playLayout{grid-template-rows:minmax(300px,1fr) 122px 120px}.learning #mathPanel{grid-template-rows:70px 44px}.ticketHelpers button,.replayTicket,.learning #openCabin{min-height:44px}}
.station strong{text-wrap:balance}#game[data-vehicle=bus] .station{border-top-color:#cc7869}@media(max-width:600px){.station.mediumName strong{font-size:20px}}
/* One foreground task; driving is an explicit alternative view. */
#game:not([data-task="drive"]) .playLayout{grid-template-rows:minmax(260px,1fr) 154px!important}
#game[data-task="drive"] .playLayout{grid-template-rows:minmax(260px,1fr) 44px 132px!important}
#driveView{min-width:92px;min-height:44px;font-size:14px;white-space:nowrap}
#game:not([data-task="drive"]) .console{display:none!important}
#game[data-task="drive"] .learning #mathPanel{display:none!important}
#game[data-task="drive"] .viewScene{display:none}
#game[data-task="count"] #ticketPlus:after{display:none!important}
#ticketDestination{display:block!important;font-size:14px;min-height:24px;height:auto;padding:0 5px 4px;text-align:center;color:var(--destination-color);border-bottom:1px dashed currentColor;margin-bottom:5px}
#nextKana{color:var(--destination-color)}
#ticketPips{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;margin:6px auto 0;max-width:300px}
#ticketPips span{border:1px solid #ceb98a;border-radius:50%;height:12px;font-size:11px;line-height:10px;text-align:center;color:#42786d;background:#fffaf0}
#ticketPips .filled{border-color:#618d7b;background:#deebda}
.ticket.tapAdded{animation:ticketReceive .3s ease-out}
@keyframes ticketReceive{50%{box-shadow:0 0 0 5px #a7d7b4;transform:translateY(-3px)}}
.waitingPerson canvas{object-fit:fill;image-rendering:auto!important}
#tapDemo{position:fixed;left:0;top:0;font-size:38px;z-index:12;pointer-events:none;animation:personToTicket 3s ease-in-out 1 both;color:#355f54;text-shadow:0 2px white}
@keyframes personToTicket{0%,10%{opacity:0;transform:translate(var(--from-x),var(--from-y))}20%,40%{opacity:1;transform:translate(var(--from-x),var(--from-y)) scale(.9)}75%,90%{opacity:1;transform:translate(var(--to-x),var(--to-y))}100%{opacity:0;transform:translate(var(--to-x),var(--to-y))}}
@media(prefers-reduced-motion:reduce){#tapDemo{display:none}.ticket.tapAdded{animation:none}}
@media(max-width:600px){#game:not([data-task="drive"]) .playLayout{grid-template-rows:minmax(300px,1fr) 184px!important}#game[data-task="drive"] .playLayout{grid-template-rows:minmax(300px,1fr) 44px 120px!important}.learning #mathPanel{grid-template-rows:130px 44px}.ticket{height:130px}.punchTicket{align-self:center}#ticketPips{gap:3px;margin-top:5px}#ticketDestination{font-size:12px;min-height:22px}.routebar{gap:5px}.next{flex:0 1 25%}.station{max-width:64%}#driveView{position:absolute;right:10px;top:101px;min-height:44px;min-width:90px;padding:4px;font-size:12px}.next{padding-bottom:34px}.ticketCounter>div{height:55px}}
#driveView svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2.5;vertical-align:middle;display:inline-block}
.scene #clockPanel .target:after{content:attr(data-destination);font-size:13px;color:var(--destination-color);display:block;margin-top:7px}@media(max-width:600px){.scene #clockPanel .target{flex-wrap:wrap;justify-content:center}.scene #clockPanel .target:after{flex-basis:100%;margin-top:0}}
#platform{image-rendering:auto!important}
/* Three tickets: one decision, large numerals, no number-building controls. */
#answerCards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important;width:100%}
#answerCards .answerCard{min-width:0;width:100%;height:104px;min-height:104px;border:2px solid #b5c5bd;border-bottom:6px solid #829b91;border-radius:15px;background:linear-gradient(#fffef7,#e8eee3);display:flex;justify-content:center;align-items:center;gap:5px;padding:4px;color:#173c48}
.answerCard strong{font-size:72px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}.answerCard span{font-size:22px;align-self:flex-end;margin-bottom:16px;font-weight:800}
.answerCard.tryAgain{animation:retryCard .35s ease-out}@keyframes retryCard{50%{border-color:#bd9556;transform:translateY(3px)}}
#game[data-task="count"] #ticket{max-width:800px;flex:1;padding:8px 14px!important;box-shadow:none;border:0;background:transparent;overflow:visible}
#game[data-task="count"] #ticket:before,#game[data-task="count"] #ticket:after{display:none}#game[data-task="count"] #ticketDestination{font-size:19px;min-height:29px;border:0;margin-bottom:6px}#ticketPips,#ticketNumber{display:none!important}
#game[data-task="count"] .learning #mathPanel{gap:10px}#game[data-task="count"] #replayTicket{display:none}#game[data-task="count"] .ticketHelpers{flex-basis:84px}#game[data-task="count"] #openCabin{font-size:0;width:44px;min-width:44px}#game[data-task="count"] #openCabin:before{content:'▦';font-size:28px}
#ticketFeedback{top:-33px;font-size:19px;background:#fff7dd;border:1px solid #dbc89c;min-height:30px}
#game:not([data-task="drive"]) .playLayout{grid-template-rows:minmax(250px,1fr) 172px!important}
/* The name sign is independent from movement, platform badges and road. */
.routebar{height:124px}.playLayout{height:calc(100dvh - 170px)}.station{max-width:59%;flex:1}.station strong{font-size:32px;overflow-wrap:anywhere;text-wrap:balance}.station.longName strong{font-size:24px;line-height:1.2}.next{flex:0 1 28%;font-size:18px}.next strong{font-size:20px;overflow-wrap:anywhere;text-wrap:balance}.next small:before{content:none}.next small{font-size:15px}.next small:after{content:' →';font-size:20px}
.sceneInstrument{position:absolute;z-index:5;left:12px;right:12px;top:10px;min-height:43px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 16px;border-radius:9px;background:#142d3beb;border:1px solid #627b84;color:#f0f7f8;font-weight:800;font-size:20px;box-shadow:0 3px 10px #132a342b}.sceneInstrument span{white-space:nowrap}.scene #platform,.scene #scene{top:58px;height:calc(100% - 58px)}#game[data-task=count] .sceneInstrument,#game[data-task=clock] .sceneInstrument{display:none}
#game[data-task=count] .scene #platform,#game[data-task=clock] .scene #platform{top:0;height:100%}
/* Ordered line list, not a geographic map. */
#mapDialog{width:min(760px,calc(100% - 24px));max-width:760px;padding:0;overflow:hidden;max-height:92dvh;border-radius:18px;background:#f6f8f6}#mapDialog .dialogTop{position:sticky;top:0;background:#173240;color:white;padding:18px 22px;z-index:3}#mapDialog h2{font-size:23px}#closeMap{background:#f0f5ef;color:#173240;min-width:74px;font-size:18px;min-height:48px}#mapCourse{padding:10px 24px;margin:0;background:#e8ede7;font-size:17px;font-weight:800}#mapStops{display:flex;flex-direction:column;gap:0;max-height:calc(92dvh - 155px);overflow-y:auto;overscroll-behavior:contain;padding:14px 22px 24px;--route:#c98923}#mapDialog[data-vehicle=bus] #mapStops{--route:#ab4945}
#mapStops .mapStop{display:grid;grid-template-columns:64px minmax(0,1fr) 100px;align-items:center;gap:18px;border:0;border-radius:0;min-height:105px;margin:0;padding:12px 10px;background:transparent;position:relative;flex:none;box-shadow:none}.mapDot{z-index:1;border:4px solid var(--route);border-radius:50%;width:56px;height:56px;display:grid;place-items:center;background:#f8faf5;font-size:18px;font-weight:900}.mapStop:before{content:'';position:absolute;left:36px;top:0;bottom:0;width:7px;background:var(--route)}.mapStop:first-child:before{top:50%}.mapStop:last-child:before{bottom:50%}#mapStops .mapNames strong{font-size:27px;line-height:1.35;overflow-wrap:anywhere}#mapStops .mapNames small{font-size:19px;color:#536872;display:block;margin-bottom:3px}#mapStops em{font-size:17px;font-weight:900;font-style:normal;border-radius:8px;text-align:center;line-height:1.4;padding:7px 3px}#mapStops .mapCurrent{background:#e2eadf;border-radius:14px;outline:3px solid var(--route)}.mapCurrent em{background:var(--route);color:white}.mapNext em{border:2px solid var(--route);color:#25424b}.mapVisited .mapDot{background:var(--route);color:white}.mapVisited .mapDot:after{content:'✓';position:absolute;margin-left:61px;font-size:14px;background:#f6f8f6;color:#44614e}.outsideCourse .mapNames{opacity:.65}
/* Mechanical panel. Train controller and bus pedals have different geometry. */
.busWheel,.busPedals{display:none}.playLayout>.controls.console{background:linear-gradient(160deg,#344650,#172831)!important;border:2px solid #435b65!important;border-bottom:8px solid #0b1b25!important;border-radius:20px 20px 12px 12px!important;box-shadow:inset 0 2px #788890,0 5px 0 #9aa9aa!important;color:#eff6f2;height:220px!important;padding:9px 18px!important;grid-template-rows:28px 1fr!important;grid-template-columns:1.2fr 1fr 90px!important;gap:8px 20px!important}
#game[data-task=drive] .playLayout{grid-template-rows:minmax(220px,1fr) 44px 220px!important}.consoleTop{height:28px}.consoleTop .stateLamp{font-size:16px;background:#101f28;border:1px solid #526971;color:#f0e8bc;padding:5px 12px;line-height:1}.consoleTop .stateLamp.lit{color:#b2edc3;background:#173f35}.controlPod{background:#13242d;border:1px solid #50616b;border-radius:12px;padding:7px 9px!important;box-shadow:inset 0 3px 7px #07151c}
.controls.console .leverLabels button{background:#e3e8e3;color:#213c49;border:0;border-bottom:3px solid #71848b;border-radius:7px;min-height:43px!important;font-size:20px!important}.controls.console .leverLabels .activePosition{background:#d0e8d8;color:#163d32;border-bottom-color:#71b390}.controls.console .doorPod .activePosition{background:#f4d194;color:#5d4119}
.leverTrack{height:99px!important;position:relative}.trackLine{left:25px;right:25px;top:17px;height:56px;border:5px solid #091820;border-top-color:#75848a;border-radius:50% 50% 10px 10px;background:repeating-linear-gradient(90deg,#243c48 0 14%,#a3b6bc 14% 15%,#243c48 15% 29%);box-shadow:inset 0 5px 8px #0009}.controls.console .leverKnob{left:50%!important;top:4px!important;width:110px!important;height:89px!important;min-height:89px!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;transform:translateX(-50%) rotate(calc(-25deg + 50deg * var(--position)))!important;transform-origin:50% 88%;transition:transform .18s ease}.controls.console .leverKnob.dragging{transition:none}.handleStem{display:block!important;position:absolute;left:47px;top:22px;width:16px;height:55px;background:linear-gradient(90deg,#52616c,#d2d9dc,#687783);border:1px solid #91a5ad;box-shadow:4px 0 5px #0005}.controls.console .knobGrip{position:absolute;left:7px;top:3px;width:96px;height:31px;margin:0;border:3px solid #080f14;border-radius:9px;background:linear-gradient(#56616b,#151f29 52%,#070e13);box-shadow:0 -3px 0 #8c999d,inset 0 3px #ffffff30,0 5px 6px #0008}.controls.console .knobGrip:after{border-color:#a7b3b34a;left:8px;right:8px;top:11px}.controls.console .leverKnob:after{content:'';position:absolute;left:38px;bottom:0;width:34px;height:20px;background:linear-gradient(#bac9ca,#526b74);border:3px solid #172730;border-radius:50%;z-index:2}.controls.console .doorPod .knobGrip{background:linear-gradient(#f1c06d,#92652d);border-color:#67481e;box-shadow:0 -3px #edce92,inset 0 2px #fff7}.controls.console .horn{background:radial-gradient(circle at 35% 30%,#5b747d,#203c48)!important;border:4px solid #80969b;color:#edf4ec;min-height:100px;height:100px;border-radius:50%!important;font-size:15px;box-shadow:0 5px 0 #0c1b23}.controls.console .horn span{font-size:32px}
#game[data-vehicle=bus] .drivePod{display:none}#game[data-vehicle=bus] .busWheel,#game[data-vehicle=bus] .busPedals{display:flex}#game[data-vehicle=bus] .controls.console{grid-template-columns:160px 1fr 1fr 76px!important}#game[data-vehicle=bus] .consoleTop{grid-column:1/-1}#game[data-vehicle=bus] .busWheel{grid-column:1;grid-row:2;align-items:center;justify-content:center}#game[data-vehicle=bus] .busPedals{grid-column:2;grid-row:2;align-items:flex-end;justify-content:center;gap:15px}#game[data-vehicle=bus] .doorPod{grid-column:3;grid-row:2}#game[data-vehicle=bus] .horn{grid-column:4;grid-row:2}.busWheel svg{width:148px;height:148px;filter:drop-shadow(0 6px 3px #0008);transform:rotate(-12deg)}.busWheel .rim{fill:none;stroke:#111e26;stroke-width:15}.busWheel path{fill:#50636b;stroke:#151f29;stroke-width:4}.busWheel .hub{fill:#263b46;stroke:#8d9ba0;stroke-width:3}.busWheel .wheelShine{fill:none;stroke:#829197;stroke-width:3}.controls.console .busPedals button{position:relative;min-height:114px;height:114px;min-width:75px;max-width:130px;flex:1;border-radius:12px;background:linear-gradient(125deg,#6c7c81,#283b46);border:3px solid #819497;border-bottom:9px solid #0b1a24;box-shadow:0 7px 0 #07151d;padding:8px;transform:perspective(220px) rotateX(12deg);color:#f4f5e9;font-size:22px;white-space:nowrap;touch-action:manipulation}.busPedals .brakePedal{flex:1.3!important}.busPedals .acceleratorPedal{flex:.8!important;height:135px!important}.busPedals button i{display:block;height:53px;background:repeating-linear-gradient(0deg,#17252e 0 6px,#79888c 7px 9px);border-radius:5px;margin-top:8px}.controls.console .busPedals button.pressed{transform:perspective(220px) rotateX(22deg) translateY(5px);border-bottom-width:4px;background:linear-gradient(125deg,#63836f,#284939)}
@media(max-width:900px){#game[data-vehicle=bus] .controls.console{grid-template-columns:112px 1.1fr 1fr 60px!important;gap:8px 10px!important}.busWheel svg{width:108px;height:108px}.controls.console .busPedals button{font-size:18px;min-width:58px;padding:4px}.busPedals{gap:8px!important}.controls.console .leverLabels button{font-size:17px!important}.answerCard strong{font-size:64px}}
@media(max-width:600px){.routebar{height:144px;position:relative;padding:6px 10px;display:grid;grid-template-columns:1.6fr 1fr;grid-template-rows:1fr 44px;gap:4px 8px}.station{grid-column:1;grid-row:1/3;max-width:none;width:100%;padding:8px 7px}.station strong,.station.mediumName strong{font-size:24px}.station.longName strong{font-size:18px}.station span{font-size:19px}.next{grid-column:2;grid-row:1;padding:0}.next strong{font-size:16px}.next small{font-size:13px}#driveView{position:static;grid-column:2;grid-row:2;min-width:0;width:100%;font-size:14px}#mapButton{display:none}.playLayout{height:calc(100dvh - 190px)}#game:not([data-task=drive]) .playLayout{grid-template-rows:minmax(250px,1fr) 192px!important}#game[data-task=count] .learning #mathPanel{display:grid;grid-template-columns:1fr;grid-template-rows:145px 44px;gap:2px}#game[data-task=count] #ticket{height:145px;grid-column:1;grid-row:1;padding:0 2px!important}#game[data-task=count] #ticketDestination{font-size:17px;min-height:29px;line-height:1.25;margin:0 0 6px}#answerCards{gap:8px!important;height:103px}#answerCards .answerCard{height:103px;min-height:103px;display:block;padding:4px}.answerCard strong{font-size:62px;display:block}.answerCard span{font-size:18px;display:block;margin:0;line-height:1}#game[data-task=count] .ticketHelpers{grid-row:2;grid-column:1;flex-direction:row}#game[data-task=count] .ticketHelpers button{font-size:16px;min-width:85px}#game[data-task=count] #openCabin{bottom:0;right:0}.sceneInstrument{left:7px;right:7px;font-size:15px;padding:7px 10px;gap:8px;min-height:39px}.scene #platform,.scene #scene{top:54px;height:calc(100% - 54px)}#mapDialog .dialogTop{padding:12px;gap:8px}#mapDialog h2{font-size:18px}#mapCourse{font-size:15px;padding:9px 14px}#mapStops{padding:10px 12px 20px}#mapStops .mapStop{grid-template-columns:45px minmax(0,1fr);gap:6px 14px;padding:10px 3px;min-height:113px}.mapDot{width:43px;height:43px;font-size:14px;border-width:3px;grid-row:1/3}.mapStop:before{left:21px;width:6px}#mapStops .mapNames strong{font-size:23px}#mapStops .mapNames small{font-size:17px}#mapStops em{grid-column:2;font-size:15px;width:max-content;padding:2px 8px}#mapStops em:empty{display:none}#game[data-task=drive] .playLayout{grid-template-rows:minmax(190px,1fr) 44px 240px!important}.playLayout>.controls.console{height:240px!important;grid-template-columns:1fr 1fr 48px!important;gap:7px!important;padding:7px!important;grid-template-rows:31px 1fr!important}.consoleTop .stateLamp{font-size:12px;padding:6px}.controls.console .leverLabels{gap:3px}.controls.console .leverLabels button{font-size:15px!important;min-height:43px!important;padding:1px}.controls.console .leverKnob{width:88px!important}.controls.console .knobGrip{left:4px;width:80px}.controls.console .handleStem{left:38px}.controls.console .leverKnob:after{left:29px}.controls.console .horn{height:66px;min-height:66px;font-size:0!important}.controls.console .horn span{font-size:24px}#game[data-vehicle=bus] .controls.console{grid-template-columns:72px 1.2fr 1fr!important;grid-template-rows:31px 1fr!important;padding:7px!important;gap:8px!important}#game[data-vehicle=bus] .busWheel{grid-column:1;align-self:start;margin-top:4px}.busWheel svg{width:70px;height:70px}#game[data-vehicle=bus] .horn{grid-column:1;align-self:end;width:54px;margin:auto auto 4px}#game[data-vehicle=bus] .busPedals{grid-column:2;gap:5px!important;align-self:center}#game[data-vehicle=bus] .doorPod{grid-column:3;padding:4px!important}#game[data-vehicle=bus] .doorPod .leverLabels{flex-direction:column}#game[data-vehicle=bus] .doorPod .leverTrack{height:72px!important}#game[data-vehicle=bus] .doorPod .leverKnob{height:66px!important;min-height:66px!important;transform-origin:50% 85%}#game[data-vehicle=bus] .doorPod .handleStem{height:35px}.controls.console .busPedals button{min-width:44px;font-size:15px;height:103px;min-height:103px;border-width:2px;border-bottom-width:7px}.busPedals .acceleratorPedal{height:124px!important}.busPedals button i{height:45px}.busPedals button span{font-size:15px;margin:0}}
@media(min-width:601px){.routebar{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) 110px;grid-template-rows:1fr 1fr;gap:6px 16px}.routebar .station{grid-column:1;grid-row:1/3;max-width:none;width:100%;min-width:0}.routebar .next{grid-column:2;grid-row:1/3;min-width:0}.routebar #driveView{grid-column:3;grid-row:1;min-width:0;width:100%;padding:5px}.routebar #mapButton{grid-column:3;grid-row:2;width:100%;padding:5px}}
#game[data-vehicle=bus] .busWheel{flex-direction:column;gap:3px}.controls.console #steeringWheel{display:block;min-height:0;height:140px;width:140px;min-width:0;padding:0;background:transparent;border:0;box-shadow:none;border-radius:50%;touch-action:none;flex:none;transform:none}.busWheel #steeringWheel svg{display:block;width:100%;height:100%;transform:rotate(var(--steering,0deg));filter:drop-shadow(0 5px 3px #0008)}#steeringIndicator{font-size:15px;line-height:1.3;color:#e6f1e9;background:#12252e;padding:3px 6px;border-radius:5px;white-space:nowrap;text-align:center;min-width:94px;pointer-events:none}
@media(max-width:900px){.controls.console #steeringWheel{width:102px;height:102px}#steeringIndicator{font-size:12px;min-width:84px}}
@media(max-width:600px){.controls.console #steeringWheel{width:70px;height:70px}#steeringIndicator{font-size:10px;min-width:70px;padding:3px 0}#game[data-vehicle=bus] .busWheel{margin-top:0}}
@media(min-width:901px){.controls.console #steeringWheel{width:120px;height:120px}}
.bgmControls{display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center;padding:10px 12px;background:#dce8da;border-radius:12px;margin:8px 0}.bgmControls button{min-height:44px;padding:8px 16px;background:#39765f;color:#fff;font-size:18px;font-weight:800}.bgmControls label{font-size:16px}.bgmControls input{min-height:44px;width:100%;grid-column:2;grid-row:2}.bgmControls #bgmStatus{font-size:13px;grid-column:1;grid-row:2}#mapDialog[open]{display:flex;flex-direction:column;height:min(92dvh,900px)}#mapDialog .dialogTop,#mapCourse{flex:none}#mapStops{flex:1;min-height:0;max-height:none}#mapCourse{overflow-wrap:anywhere}
@media(max-width:600px){.bgmControls{gap:4px 10px;padding:8px}.bgmControls button{font-size:15px;padding:6px 10px}.bgmControls label{font-size:14px}}
/* Ticket punch is a single automatic action after a correct answer. */
#punchOverlay{position:absolute;z-index:18;inset:55px 8px 8px;display:grid;place-items:center;pointer-events:none;background:#e7eee9e8;border-radius:18px}#punchOverlay[hidden]{display:none}.punchPaper{position:relative;width:210px;height:130px;border:3px solid #c4a668;border-radius:10px;background:#fff4ce;box-shadow:0 10px 20px #263c4944;display:flex;align-items:center;justify-content:center;gap:8px;transform:rotate(-5deg)}.punchPaper strong{font-size:70px;color:#23404e}.punchPaper span{font-size:22px}.punchPliers{position:absolute;width:min(310px,65%);height:180px;left:calc(50% - 5px);top:calc(50% - 55px);filter:drop-shadow(0 8px 3px #1b36474a)}.plierUpper,.plierLower{transform-origin:139px 89px}.snipping .plierUpper{animation:plierClose .72s ease-in-out}.snipping .plierLower{animation:plierLower .72s ease-in-out}.punchHole{position:absolute;right:10px;bottom:29px;border-radius:50%;width:16px;height:16px;background:#dce8e3;box-shadow:inset 1px 2px 2px #74684f;opacity:0}.snipping .punchHole{animation:punchAppear .72s steps(1) forwards}.retainedPunchHole{display:none;position:absolute;right:14px;bottom:10px;width:17px;height:17px;border-radius:50%;background:#dbe6de;border:1px solid #93826b;box-shadow:inset 1px 2px 2px #806d54;pointer-events:none}#ticket.punched .retainedPunchHole{display:block!important}@keyframes plierClose{0%,100%{transform:rotate(-15deg)}40%,60%{transform:rotate(9deg)}}@keyframes plierLower{0%,100%{transform:rotate(10deg)}40%,60%{transform:rotate(-7deg)}}@keyframes punchAppear{0%{opacity:0}40%,100%{opacity:1}}@media(prefers-reduced-motion:reduce){.snipping .plierUpper,.snipping .plierLower,.snipping .punchHole{animation:none}.snipping .punchHole{opacity:1}.punchPaper{transform:none}}@media(max-width:600px){.punchPaper{width:160px;height:110px}.punchPaper strong{font-size:60px}.punchPliers{left:calc(50% - 30px);width:190px;height:140px}.groupHeading{gap:7px}.groupHeading span{font-size:17px}}
