
:root{font-family:"Yu Gothic UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:#335746;background:#f8f6e9;font-synthesis:none;--green:#4b7954;--shadow:0 6px 0 #446e3d15,0 10px 22px #42633b12}
*{box-sizing:border-box}body{margin:0}button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.5}button:hover:not(:disabled){filter:brightness(1.04)}button:active:not(:disabled){translate:0 2px}button:focus-visible,select:focus-visible,summary:focus-visible{outline:4px solid #d9a641;outline-offset:3px}[hidden]{display:none!important}.pictogram{display:inline-block;width:40px;height:40px;vertical-align:middle;flex-shrink:0}
.header{height:76px;padding:0 27px;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#faf8eb;border-bottom:2px solid #e3e6d0}.brand{display:flex;align-items:center;gap:12px}.brand small{font-size:11px;letter-spacing:1px;color:#7d9479}.brand h1{font-size:21px;letter-spacing:.7px;margin:2px 0 0}.header-stats{display:flex;align-items:center;gap:18px}.coin-stat{display:flex;align-items:center;gap:7px;font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}.coin-stat .pictogram{width:35px;height:35px}#growth{display:flex}#growth .pictogram{width:32px;height:32px}#growth .empty-star{opacity:.22}.round-button{position:relative;border:2px solid #d7dfc5;background:#fffced;border-radius:15px;width:46px;height:46px;display:grid;place-items:center;box-shadow:0 3px 0 #dae1c8}.round-button .pictogram{width:31px;height:31px}.round-button b{position:absolute;right:-5px;top:-6px;background:#e6bd68;border-radius:50%;width:20px;height:20px;display:grid;place-items:center;font-size:10px}.help-button{font-weight:800;font-size:22px}
.playground{height:calc(100dvh - 160px);min-height:510px;position:relative;display:flex;background:#e2e9d5}.map-panel{position:relative;flex:1;min-width:0;overflow:hidden}#world{position:absolute;inset:0}#world canvas{display:block;width:100%;height:100%;touch-action:pan-y}#labels{position:absolute;inset:0;pointer-events:none}
.station-label{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);border:2px solid #d0dcbc;background:#fffdee;box-shadow:0 4px 0 #8caa7945,0 4px 10px #49644519;border-radius:18px;padding:7px 12px;min-width:78px;white-space:nowrap;display:flex;align-items:center;gap:5px;min-height:48px;transition:opacity .2s,border-color .2s}.station-label:after{content:"";position:absolute;left:calc(50% - 6px);bottom:-7px;width:12px;height:12px;transform:rotate(45deg);background:#fffdee;border-right:2px solid #d0dcbc;border-bottom:2px solid #d0dcbc}.station-label .site-icon{width:36px;height:36px}.station-label .station-stock{display:flex;align-items:center;gap:1px;font-size:16px;font-weight:800}.station-stock>.pictogram{width:23px;height:23px}.station-label .station-name{font-size:11px;line-height:1.3;display:block}.people-queue{display:flex;align-items:center}.people-queue .pictogram{width:21px;height:26px;margin-right:-8px}.people-queue b{margin-left:10px;font-size:15px}.station-label.selected{border-color:#d5ab48;background:#fff0bd;box-shadow:0 4px 0 #d2ac4d5c}.station-label.selected:after{background:#fff0bd;border-color:#d5ab48}.pin{position:absolute;top:-9px;left:-8px;background:#4f7f55;color:#fff;width:23px;height:23px;border:2px solid #fff7df;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.guide-target{outline:4px solid #f4d067;outline-offset:4px;animation:gentle-pulse 1.5s ease-in-out infinite}.station-label.guide-target{border:3px solid #eab543;box-shadow:0 0 0 6px #ffe19175,0 5px 0 #bb9d5350;z-index:5;outline:0}.station-label.guide-muted{opacity:.35;pointer-events:none}.tap-hand{position:absolute;right:-26px;bottom:-30px;width:43px;height:43px;pointer-events:none;filter:drop-shadow(0 2px 1px #5d704a25);animation:hand-tap 1.2s ease-in-out infinite}.needed-good{background:#e9f0e0;border-radius:8px;width:22px;height:26px;display:grid;place-items:center}.needed-good .pictogram{width:22px;height:22px}.station-label.arrived{animation:arrival-bounce .8s ease-in-out}
.mission{position:absolute;top:18px;left:22px;max-width:340px;background:#fffcee;box-shadow:var(--shadow);border:2px solid #d9e2c8;border-radius:20px;padding:12px 16px;display:flex;align-items:center;gap:13px;text-align:left;z-index:6}.mission>span:nth-child(2){display:flex;flex-direction:column;gap:4px}.mission small{font-size:10px;color:#849273;letter-spacing:.7px}.mission strong{font-size:14px;white-space:nowrap}#mission-picture .pictogram{width:51px;height:51px}#mission-progress{font-size:11px;color:#7d8f76;display:flex;align-items:center;gap:6px}#mission-progress progress{appearance:none;border:0;width:91px;height:7px;border-radius:6px;overflow:hidden}progress::-webkit-progress-bar{background:#e4e8d7}progress::-webkit-progress-value{background:#91b373}#goal-count{font-size:12px;align-self:flex-start;margin-top:2px;color:#899776}
.camera-tools{position:absolute;top:20px;right:19px;display:flex;gap:5px;z-index:7}.camera-tools button{width:40px;height:40px;border:2px solid #cddbbd;background:#fdfdebe8;border-radius:12px;font-size:22px;box-shadow:0 3px 0 #b8cba752}.guide-card{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 36px);min-width:410px;border:3px solid #e8c575;background:#fffbee;box-shadow:0 5px 0 #b8aa6360,0 10px 30px #576c3820;border-radius:24px;padding:17px 23px;display:flex;align-items:center;gap:17px;z-index:7}.guide-mascot{background:#e4edd6;border-radius:18px;padding:8px;transform:rotate(-5deg)}.guide-mascot>.pictogram{width:48px;height:48px}.guide-message h2{font-size:20px;line-height:1.5;margin:4px 0 3px}.guide-message p{font-size:12px;line-height:1.7;margin:4px 0 0;color:#819071}#guide-picture{display:flex;align-items:center;gap:5px}#guide-picture .pictogram{width:29px;height:29px}#guide-dots{display:flex;gap:4px}#guide-dots i{width:6px;height:6px;border-radius:50%;background:#dfdfc1}#guide-dots i.filled{background:#ceaa55}.guide-card>.subtle{align-self:flex-end;font-size:10px;margin-left:auto;color:#849374;white-space:nowrap}.mini-action{border:2px solid #d5dfc4;background:#eef3df;border-radius:12px;padding:9px 13px;min-height:40px;font-size:12px;font-weight:700}.subtle{border:0;background:transparent;font-size:11px;color:#839176;text-decoration:underline;text-underline-offset:3px;min-height:28px;padding:3px}.free-hint{position:absolute;left:50%;transform:translateX(-50%);bottom:25px;padding:12px 22px;background:#fbfde9e8;border:2px solid #cbd9bb;border-radius:18px;text-align:center;font-size:14px;font-weight:700;line-height:1.7;max-width:85%;width:max-content;pointer-events:none;z-index:4}
#toast{position:absolute;top:125px;left:50%;transform:translateX(-50%);max-width:80%;padding:13px 20px;background:#4c7954f5;color:#fff;border:2px solid #ecedc8;border-radius:16px;font-size:13px;line-height:1.7;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:10;transition:opacity .2s}#toast.visible{opacity:1}.delivery-pop{position:absolute;left:50%;top:32%;transform:translateX(-50%);background:#fff5c6;border:3px solid #e6c16c;border-radius:24px;padding:15px 24px;display:flex;align-items:center;gap:9px;font-size:20px;font-weight:800;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:8}.delivery-pop.visible{animation:pop-in .7s ease-out;opacity:1}.delivery-pop .pictogram{width:45px;height:45px}#map-error{position:absolute;top:35%;left:20%;right:20%;background:#fff9e0;padding:20px;border-radius:15px;font-size:14px;line-height:2}
.operations{width:310px;flex-shrink:0;background:#fffbea;border-left:2px solid #d7dfc5;position:relative;overflow:auto;padding:24px 20px 15px}.operations h2{margin:0 20px 15px 0;font-size:20px}.panel-close{position:absolute;right:10px;top:9px;background:#f0f1df;border:0;border-radius:50%;width:32px;height:32px;font-size:24px}.route-picture{display:flex;align-items:center;justify-content:center;gap:12px;padding:9px 0 4px}.route-end{text-align:center;font-size:12px;font-weight:700}.route-end .pictogram{display:block;width:59px;height:59px;margin-bottom:4px}.route-picture>.pictogram{width:29px;height:29px;color:#92a17d}.operations>#change-route{display:block;margin:0 auto 8px}.operations details{font-size:11px;color:#75846a}summary{cursor:pointer;min-height:36px;padding:10px 0}.station-selects{display:grid;gap:7px;padding:0 0 12px}.station-selects label{font-size:12px}.station-selects select{width:100%;height:40px;border:2px solid #d8dfc5;background:#fffdf1;border-radius:10px;padding:0 10px;font-size:13px}.choice-row{display:flex;gap:9px;margin:13px 0}.choice{flex:1;border:2px solid #d9dfc7;border-radius:16px;background:#fffdef;padding:9px 7px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;min-height:60px}.choice .pictogram{width:32px;height:32px}.choice.active{border-color:#92aa6e;background:#e5efcf;box-shadow:0 3px 0 #a1b68160}.detour-drawing{font-size:34px;color:#947c55;line-height:1}.estimate{display:flex;align-items:center;justify-content:space-between;padding:10px;background:#f3eed5;border-radius:12px;font-size:20px;font-weight:800}.estimate .pictogram{width:30px;height:30px}.icon-count{display:inline-flex;align-items:center;gap:3px;font-size:16px;font-weight:800;vertical-align:middle}.icon-count .pictogram{width:27px;height:27px}.terrain{display:flex;gap:4px}.terrain .pictogram{width:26px;height:26px}.details{margin-bottom:8px}.details p{font-size:12px;line-height:1.8;margin:6px 0}.primary{width:100%;min-height:53px;border:2px solid #3c683f;background:#638d54;color:#fffcef;border-radius:16px;box-shadow:0 4px 0 #3c683f;display:flex;align-items:center;justify-content:center;gap:11px;padding:9px 14px;font-size:17px;font-weight:800;margin:9px 0 5px}.primary .pictogram{width:29px;height:29px}.primary.amber{background:#edbd6c;color:#6f5535;border-color:#c99e51;box-shadow:0 4px 0 #c99e51}
.engines{display:flex;flex-direction:column;gap:10px;margin:15px 0}.engine{display:flex;align-items:center;gap:9px;border:2px solid #e2dfc8;border-radius:16px;background:#fffcf0;padding:10px;text-align:left;min-height:80px}.engine.active{border-color:#95ad75;background:#e9f0d7;box-shadow:0 3px 0 #99b37950}.engine>.pictogram{width:51px;height:51px}.engine-info{flex:1;min-width:0}.engine-info strong{display:block;font-size:12px;margin-bottom:3px}.engine .slots{display:flex;gap:2px;flex-wrap:wrap;max-width:122px}.slots i{width:9px;height:10px;background:#c1b89a;border-radius:2px}.speed-picture{font-size:17px;letter-spacing:-4px;margin-left:4px;color:#719064}.engine .icon-count{font-size:12px;gap:0}.engine .icon-count .pictogram{width:22px;height:22px}.load-picture{border:2px dashed #d6d8b5;border-radius:14px;padding:12px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;min-height:52px}.load-picture .pictogram{width:26px;height:26px}.empty-slot{width:24px;height:25px;border:2px solid #dfdfc8;border-radius:6px;background:#f3f0de}.cargo-caption{font-size:12px;text-align:center;color:#869276;line-height:1.8;margin:6px 0}.site-detail{border-top:1px dashed #d8ddc4;padding-top:12px;margin-top:20px}.stock-pictures{display:flex;gap:9px;justify-content:center}.site-detail summary{font-size:11px}.site-detail p{font-size:12px;line-height:1.8}.processing-flow{display:flex;align-items:center;justify-content:center;gap:5px;color:#9d997b}.processing-flow .pictogram{width:30px;height:30px}.processing-flow .arrow-icon{width:20px;height:20px}.save-status{display:block;font-size:9px;color:#87977a;text-align:center;margin-top:18px}
.dock{height:84px;padding:8px 27px;display:flex;align-items:center;justify-content:center;gap:25px;border-top:2px solid #dbe2c8;background:#faf8eb}.dock nav{display:flex;gap:14px}.dock nav button{position:relative;display:flex;align-items:center;gap:8px;min-width:126px;border:2px solid #dddcc3;background:#fffbed;border-radius:18px;padding:8px 15px;min-height:59px;box-shadow:0 4px 0 #dcdcc5;font-size:15px}.dock nav button>.pictogram{width:34px;height:34px}.dock nav button.active{background:#e8f1d0;border-color:#97ad74;box-shadow:0 4px 0 #97ad74}.count-badge{font-size:11px;background:#dbe5bf;padding:1px 5px;border-radius:7px}.time-controls{display:flex;gap:5px;border-left:2px solid #e0e3cb;padding-left:20px}.time-controls button{width:42px;height:42px;border:2px solid #d9dfc3;background:#fffcef;border-radius:12px;font-size:17px}.time-controls button.active{background:#e9eed8;border-color:#b1c194}.fallback-picker{background:transparent;border:0;color:#829375;font-size:11px;text-decoration:underline}
.train-card{padding:13px 0;border-bottom:2px dashed #dbe0c5}.train-card h3{font-size:14px;margin:0 0 8px;display:flex;align-items:center;gap:8px}.train-card h3 .pictogram{width:32px;height:32px}.train-card .route-picture{padding:0;gap:8px}.train-card .route-end .pictogram{width:33px;height:33px;margin:0 auto}.train-card .route-end{font-size:10px}.train-status{display:flex;align-items:center;gap:7px;justify-content:center;min-height:40px;margin:6px 0;border-radius:10px;background:#edf1dd;font-size:12px}.train-status .pictogram{width:25px;height:25px}.train-card .load-picture{padding:8px;min-height:36px}.train-card .load-picture .pictogram{width:16px;height:16px}.train-card .empty-slot{width:15px;height:16px;border-width:1px}.train-card button,.track-card button{border:2px solid #d6ddc1;background:#f8fae9;border-radius:9px;min-height:37px;padding:7px 10px;font-size:11px;margin:9px 4px 0 0}.track-card{padding:9px 0;border-bottom:1px solid #d5ddc1;font-size:12px;line-height:2}.network-summary{display:flex;align-items:center;justify-content:space-around;padding:12px 5px;background:#edf1dc;border-radius:14px;margin-bottom:14px}.empty-note{font-size:14px;line-height:2;text-align:center;color:#809472;padding:25px 0}.subheading{font-size:14px;margin:20px 0 8px}
dialog{border:3px solid #d3dabb;border-radius:28px;padding:28px;max-width:540px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);background:#fffbed;color:#335746;box-shadow:0 20px 70px #1e433540;overflow:auto}dialog::backdrop{background:#36533e70;backdrop-filter:blur(4px)}dialog h2{font-size:26px;line-height:1.6;margin:8px 0 12px;text-align:center}dialog p{font-size:14px;line-height:1.9;color:#7a8969}dialog>.primary{margin-top:20px}.welcome-picture{display:flex;align-items:center;justify-content:center;gap:10px;background:#e9f0d8;border-radius:22px;padding:20px;margin-bottom:15px}.welcome-picture>.pictogram{width:70px;height:70px}.welcome-picture>.arrow-icon{width:30px;height:30px}.welcome-train{display:flex;justify-content:center;margin-top:-13px}.welcome-train>.pictogram{width:102px;height:102px;filter:drop-shadow(0 5px 0 #718b4825)}.welcome-copy{text-align:center}.welcome-copy p{margin:4px 0}.dialog-actions{display:grid;gap:9px}.dialog-actions .subtle{margin-top:10px}.note{background:#edf1de;border-radius:16px;margin:12px 0;padding:16px}.note h3{font-size:15px;margin:0 0 8px}.note p{margin:0;font-size:13px}.note .processing-flow{justify-content:flex-start;margin-bottom:10px}.goal-card{display:flex;align-items:center;gap:12px;padding:14px;border:2px solid #dee3ca;border-radius:16px;margin:9px 0}.goal-card>.pictogram{width:46px;height:46px}.goal-card h3{font-size:14px;margin:0 0 7px}.goal-card p{font-size:12px;line-height:1.6;margin:0}.goal-card progress{appearance:none;width:100px;height:7px;border-radius:5px;overflow:hidden;margin-right:8px}.goal-check{margin-left:auto;color:#729954;width:30px;height:30px}.reset-button{border:2px solid #ded3ae;background:#fff9e3;border-radius:12px;padding:10px 15px;font-size:12px;margin-top:16px;min-height:43px}.small-print{font-size:11px!important;line-height:1.9!important;color:#8b977f!important}.success-picture{display:flex;align-items:center;justify-content:center;gap:10px}.success-picture .pictogram{width:75px;height:75px}.success-picture .pictogram:first-child,.success-picture .pictogram:last-child{width:40px;height:40px}.success-title{color:#779552}
.guide-active .mission{opacity:.6}.guide-active .camera-tools{visibility:hidden}.guide-active .fallback-picker{visibility:hidden}.guide-active .operations #change-route,.guide-active .operations #station-picker,.guide-active .operations .choice-row,.guide-active .operations .details,.guide-active .operations .site-detail,.guide-active .operations .save-status,.guide-active .operations .panel-close{display:none}.guide-active .operations{align-self:flex-start;border:3px solid #e8c575;border-radius:25px;margin:160px 22px 0 0;width:292px;max-height:calc(100% - 185px);box-shadow:var(--shadow)}.guide-active .operations .engine:not(.active){display:none}
@keyframes gentle-pulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.08)}}@keyframes hand-tap{0%,100%{translate:0 0;rotate:-12deg}50%{translate:-5px -5px;rotate:-12deg}}@keyframes arrival-bounce{0%,100%{translate:0 0}35%{translate:0 -12px}65%{translate:0 -5px}}@keyframes pop-in{0%{scale:.6;opacity:0}60%{scale:1.08}100%{scale:1;opacity:1}}
@media(max-width:1100px){.header{padding:0 18px}.operations{width:290px}.mission{left:14px;top:14px;padding:10px 12px}.mission strong{font-size:13px}.camera-tools{right:14px;top:14px;display:grid;grid-template-columns:38px 38px}.camera-tools button{width:36px;height:36px}.guide-card{min-width:0;max-width:94%;padding:13px 17px;gap:10px}.guide-message h2{font-size:18px}.guide-mascot>.pictogram{width:34px;height:34px}.guide-card>.subtle{display:none}.station-label{padding:6px 9px;min-width:70px}.station-label .site-icon{width:30px;height:30px}.station-label .station-name{font-size:10px}.guide-active .operations{margin:140px 10px 0 0;width:265px;max-height:calc(100% - 160px)}.dock nav button{min-width:115px}.header-stats{gap:10px}}
@media(max-width:700px){.header{height:66px;padding:0 12px}.brand{gap:8px}.brand img{width:34px;height:34px}.brand h1{font-size:16px;letter-spacing:0}.brand small{font-size:9px}.header-stats{gap:8px}.header-stats #growth{display:none}.coin-stat{font-size:17px;gap:2px}.coin-stat .pictogram{width:27px;height:27px}.round-button{width:38px;height:38px;border-radius:12px}.round-button .pictogram{width:26px;height:26px}.help-button{font-size:19px}.playground{height:calc(100dvh - 146px);min-height:520px;display:block}.map-panel{height:100%;width:100%}.mission{top:12px;left:12px;max-width:calc(100% - 112px);border-radius:16px;padding:9px;gap:8px}.mission strong{font-size:12px;white-space:normal}.mission small{font-size:8px}.mission #mission-picture .pictogram{width:38px;height:38px}#mission-progress progress{width:65px;height:5px}#goal-count{font-size:10px}.camera-tools{top:12px;right:10px;gap:4px;grid-template-columns:32px 32px}.camera-tools button{width:32px;height:32px;font-size:18px;border-radius:9px}.station-label{min-height:44px;padding:6px 8px;min-width:62px;gap:2px;border-radius:14px}.station-label .site-icon{width:27px;height:27px}.station-label .station-stock{font-size:12px}.station-stock>.pictogram{width:19px;height:19px}.station-label .station-name{font-size:9px}.people-queue .pictogram{width:17px;height:22px;margin-right:-8px}.people-queue b{font-size:12px;margin-left:8px}.needed-good{width:17px;height:22px}.needed-good .pictogram{width:17px;height:17px}.tap-hand{width:35px;height:35px;right:-19px;bottom:-28px}.pin{width:19px;height:19px;font-size:10px}.guide-card{bottom:16px;border-radius:20px;gap:8px;padding:12px 14px;width:calc(100% - 24px);max-width:none}.guide-message h2{font-size:17px;line-height:1.6}.guide-message #guide-picture .pictogram{width:23px;height:23px}.guide-message p{font-size:11px}.guide-mascot{padding:5px;border-radius:12px}.guide-mascot>.pictogram{width:33px;height:33px}.guide-card .mini-action{padding:5px 7px;font-size:10px;margin-left:auto}.free-hint{bottom:16px;max-width:94%;font-size:12px;padding:9px 16px;border-radius:15px}.operations{position:absolute;bottom:12px;right:12px;left:12px;width:auto;max-height:calc(100% - 94px);padding:19px 18px 14px;border:2px solid #d6debc;border-radius:23px;box-shadow:0 5px 0 #78955a30,0 10px 50px #3d683230;z-index:8}.operations h2{font-size:18px;margin-bottom:6px}.operations .route-picture{padding:0;gap:10px}.operations .route-end .pictogram{width:40px;height:40px;margin-bottom:2px}.operations .route-end{font-size:11px}.choice-row{margin:9px 0}.choice{min-height:45px;padding:5px;font-size:11px}.choice .pictogram{width:27px;height:27px}.estimate{padding:6px 10px;font-size:17px}.estimate .pictogram{width:26px;height:26px}.details summary{padding:6px 0;min-height:28px}.primary{min-height:48px;font-size:15px;padding:7px 11px;margin:7px 0 4px}.engines{gap:7px;margin:8px 0}.engine{padding:6px 9px;min-height:64px}.engine>.pictogram{width:42px;height:42px}.engine-info strong{font-size:11px}.engine .slots{max-width:none}.engine .slots i{width:8px;height:8px}.speed-picture{font-size:15px}.site-detail{margin-top:10px;padding-top:8px}.save-status{margin-top:9px}.operations .load-picture{padding:8px;min-height:43px}.operations .load-picture .pictogram{width:21px;height:21px}.operations .empty-slot{width:20px;height:21px}.cargo-caption{margin:4px 0;font-size:11px}.guide-active .operations{bottom:135px;left:auto;right:12px;top:auto;align-self:auto;width:230px;margin:0;max-height:calc(100% - 190px);padding:15px 16px;border-radius:22px}.guide-active .operations h2{font-size:17px}.guide-active .operations .route-end .pictogram{width:36px;height:36px}.guide-active .operations .engine{min-height:65px;padding:6px}.guide-active .operations .engine>.pictogram{width:40px;height:40px}.guide-active .operations .engine-info strong{font-size:10px}.guide-active .operations #cargo-preview,.guide-active .operations #track-estimate{display:none}.dock{height:80px;padding:8px 9px;gap:10px;justify-content:space-between}.dock nav{gap:7px;flex:1}.dock nav button{min-width:0;flex:1;min-height:53px;flex-direction:column;gap:1px;padding:4px 9px;border-radius:14px;font-size:11px;box-shadow:0 3px 0 #dcdcc5}.dock nav button>.pictogram{width:27px;height:27px}.count-badge{position:absolute;right:5px;top:4px;font-size:8px}.time-controls{gap:3px;border:0;padding:0}.time-controls button{width:31px;height:36px;font-size:13px;border-radius:9px}.fallback-picker{position:absolute;bottom:85px;right:12px;background:#faf9eada;border-radius:9px;padding:4px 7px;font-size:9px;z-index:6}.delivery-pop{top:29%;font-size:17px;padding:12px 18px}.delivery-pop .pictogram{width:35px;height:35px}#toast{top:101px;max-width:92%;width:max-content;font-size:12px}dialog{padding:22px;border-radius:24px}dialog h2{font-size:23px}.welcome-picture{padding:15px;gap:8px}.welcome-picture>.pictogram{width:56px;height:56px}.welcome-picture>.arrow-icon{width:24px;height:24px}.welcome-train>.pictogram{width:88px;height:88px}.welcome-copy p{font-size:13px}.goal-card{padding:11px;gap:9px}.goal-card h3{font-size:12px}.goal-card p{font-size:11px}}
@media(max-width:380px){.header{padding:0 8px}.brand h1{font-size:14px}.header-stats{gap:5px}.coin-stat{font-size:15px}.round-button{width:34px;height:34px}.brand img{width:29px;height:29px}.dock{gap:6px}.dock nav{gap:5px}.dock nav button{padding:4px 6px}.time-controls button{width:28px}.station-label{padding:5px 6px}.station-label .site-icon{width:24px;height:24px}.guide-card{padding:10px;gap:6px}.guide-message h2{font-size:15px}}
@media(max-height:650px) and (min-width:701px){.playground{min-height:380px}.guide-active .operations{margin-top:105px;max-height:calc(100% - 110px)}.guide-card{padding:9px 13px;bottom:10px}.guide-message h2{font-size:16px}.guide-mascot{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.map-unavailable.guide-active .fallback-picker{visibility:visible}.map-unavailable.guide-active .operations #station-picker{display:block}.map-unavailable.guide-active .operations{margin-top:80px}
/* Station hit targets stay available while their information bubbles breathe. */
.station-label{width:44px;height:44px;min-width:44px;min-height:44px;transform:translate(-50%,-50%);border:0;background:transparent!important;box-shadow:none!important;padding:0;display:block;overflow:visible;transition:none;z-index:3}
.station-label:after{display:none}.station-label.selected{border:0}.station-label:focus-visible{outline:3px solid #d9a641;border-radius:50%}.station-marker{position:absolute;left:13px;top:13px;width:18px;height:18px;border:3px solid #fffbe6;border-radius:50%;background:var(--station-color);box-shadow:0 1px 3px #31533c55;display:grid;place-items:center;font-size:10px;color:#335746;font-weight:800}
.station-marker{left:4px;top:4px;width:36px;height:36px;box-sizing:border-box;background:#fff9e4;border-color:var(--station-color);font-size:15px}
.station-marker .marker-art{width:26px;height:26px}
.station-leader{position:absolute;left:22px;top:22px;height:2px;background:#7c9671;transform-origin:left center;pointer-events:none;opacity:0}
.station-bubble{position:absolute;left:50%;bottom:35px;transform:translateX(-50%);border:2px solid #d0dcbc;background:#fffdee;box-shadow:0 4px 0 #8caa7945,0 4px 10px #49644519;border-radius:18px;padding:7px 12px;min-width:78px;white-space:nowrap;display:flex;align-items:center;gap:5px;min-height:48px;opacity:0;pointer-events:none}
.station-bubble:after{content:"";position:absolute;left:calc(50% - 6px);bottom:-7px;width:12px;height:12px;transform:rotate(45deg);background:#fffdee;border-right:2px solid #d0dcbc;border-bottom:2px solid #d0dcbc}
.station-bubble{left:0;top:0;bottom:auto;transform:translate(var(--bubble-x,0px),var(--bubble-y,0px));box-sizing:border-box}
.station-bubble:after{display:none}
.station-label.selected .station-bubble{border-color:#d5ab48;background:#fff0bd}.station-label.selected .station-bubble:after{background:#fff0bd;border-color:#d5ab48}.station-label.selected .station-marker{background:#4f7f55;color:#fff}
.station-label.guide-target{border:0;outline:0;box-shadow:none;animation:none;z-index:5}.station-label.guide-target .station-bubble{border:3px solid #eab543;box-shadow:0 0 0 6px #ffe19175,0 5px 0 #bb9d5350}.station-label.guide-target .station-marker{outline:5px solid #f5d77680;outline-offset:2px}.station-label.bubble-visible{z-index:4}.station-label.guide-muted{opacity:.35;pointer-events:none}
.observing-train .station-marker{visibility:hidden}.observing-train .station-label{pointer-events:none}.observing-train .mission,.observing-train #toast{visibility:hidden}.observing-train #guide-dots,.observing-train #guide-picture{display:none}.observing-train .guide-card{min-width:0;padding:12px 18px;gap:10px}.observing-train .guide-message h2{font-size:18px;margin:0}.observing-train .guide-message p{margin:3px 0 0}.observing-train .guide-mascot>.pictogram{width:34px;height:34px}
@media(max-width:700px){.station-bubble{padding:6px 8px;min-width:62px;min-height:44px;border-radius:14px}.observing-train .guide-card{padding:10px 12px}.observing-train .guide-message h2{font-size:15px}.observing-train .guide-message p{font-size:10px}.observing-train .guide-mascot>.pictogram{width:28px;height:28px}}
.expand-button{position:absolute;right:20px;top:77px;z-index:6;display:flex;align-items:center;gap:5px;min-height:44px;border:2px solid #d4dec0;border-radius:15px;background:#fff9dc;padding:5px 10px;font-size:12px;box-shadow:var(--shadow)}.expand-button .pictogram{width:27px;height:27px}.region-gate{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);border:2px solid #d4b764;border-radius:16px;background:#fff4c9;padding:5px 10px;display:flex;align-items:center;gap:4px;min-height:44px;font-size:12px;box-shadow:0 4px 0 #ad975533}.region-gate .pictogram{width:30px;height:30px}.region-views{position:absolute;bottom:20px;left:16px;z-index:7;display:flex;gap:5px}.region-views button{min-width:42px;min-height:44px;border:2px solid #c6d6b6;background:#fffbee;border-radius:13px;padding:6px 9px;font-size:12px;font-weight:700}.has-regions .free-hint{bottom:78px}.region-plan{display:flex;gap:8px;margin:14px 0}.region-tile{flex:1;text-align:center;border:2px solid #d9dfc8;border-radius:16px;padding:12px 6px;background:#edf0df;opacity:.6}.region-tile.opened{opacity:1;background:#e4efcf;border-color:#a8bf85}.region-tile .pictogram{width:45px;height:45px;display:block;margin:0 auto 5px}.region-tile strong,.region-tile small{display:block;font-size:12px}.region-tile small{font-size:10px;margin-top:7px}.expansion-check{display:flex;align-items:center;gap:7px;border-bottom:1px solid #e4e6d0;padding:8px;font-size:12px}.expansion-check .pictogram{width:25px;height:25px}.expansion-check b{margin-left:auto}.order-details{font-size:12px;line-height:1.8}.order-row{display:flex;gap:6px;align-items:center;border-bottom:1px solid #e2e5cc;padding:7px 0}.order-row .pictogram{width:24px;height:24px}.order-row b{margin-left:auto}.order-row small{font-size:10px}.observing-train .expand-button,.observing-train .region-views{display:none}
@media(max-width:700px){.expand-button{right:11px;top:96px;padding:4px 7px;font-size:10px}.expand-button .pictogram{width:23px;height:23px}.region-views{left:10px;bottom:16px;gap:4px}.region-views button{padding:5px 7px}.region-gate{font-size:10px;padding:4px 7px}.region-gate .pictogram{width:25px;height:25px}}
.celebration-sound{display:block;margin:12px auto 0;border:1px solid #cfdbb8;border-radius:12px;background:#eef3df;padding:7px 14px;min-height:44px;font-size:12px;color:#537950}.celebration-sound[aria-pressed=false]{background:#f4efdf;color:#879076}
.celebration-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:inherit;z-index:20}.celebration-piece{position:absolute;left:var(--x);top:-30px;width:10px;height:17px;background:var(--paper);border-radius:3px;opacity:0;animation:celebration-fall var(--duration) var(--delay) ease-in forwards}.celebration-piece.is-star{width:25px;height:25px;background:none}.celebration-piece .pictogram{width:25px;height:25px}
.celebration-hero{height:200px;position:relative;display:grid;place-items:start center;padding-top:13px;margin:0 auto 4px;isolation:isolate;max-width:370px}.hero-rays{position:absolute;top:0;width:155px;height:155px;border-radius:50%;background:repeating-conic-gradient(#f4d58188 0deg 15deg,#f8efd233 15deg 30deg);mask-image:radial-gradient(black 20%,transparent 72%);animation:hero-rays-turn 18s linear infinite;z-index:-1}.hero-badge{display:grid;place-items:center;width:104px;height:104px;border:5px solid #edc366;border-radius:50%;background:#fff5ca;box-shadow:0 6px 0 #ccb16c40;animation:medal-arrive .65s cubic-bezier(.2,.7,.2,1.2)}.hero-badge>.pictogram{width:75px;height:75px}.hero-star{position:absolute;top:30px;animation:happy-star 1.4s ease-in-out 2}.hero-star.left{left:42px;rotate:-15deg}.hero-star.right{right:42px;rotate:15deg;animation-delay:.2s}.hero-star .pictogram{width:38px;height:38px}.happy-train{position:absolute;bottom:20px;left:calc(50% - 90px);display:flex;align-items:end;gap:6px;animation:train-parade 1s cubic-bezier(.15,.8,.25,1) both}.happy-train>.pictogram{width:78px;height:78px}.train-gift{border:3px solid #93b390;background:#e6edcf;border-radius:12px;padding:4px;margin-bottom:7px;box-shadow:0 5px 0 #70946a}.train-gift>.pictogram{width:35px;height:35px}.train-flag{align-self:start;rotate:10deg;transform-origin:bottom;animation:flag-wave .6s ease-in-out 4}.train-flag .pictogram{width:35px;height:35px}.hero-rail{position:absolute;bottom:18px;width:250px;border-top:4px solid #8d9d76;border-bottom:4px solid #8d9d76;height:13px;background:repeating-linear-gradient(90deg,transparent 0 13px,#b7a57c 13px 18px);z-index:-1}.train-steam{position:absolute;left:12px;top:0;display:flex;gap:5px}.train-steam i{width:10px;height:10px;background:#dce5c2;border-radius:50%;animation:happy-steam 1.3s ease-out 2}.train-steam i:nth-child(2){animation-delay:.2s}.train-steam i:nth-child(3){animation-delay:.4s}
.achievement-party{position:absolute;top:25%;left:50%;translate:-50% 0;width:max-content;max-width:calc(100% - 30px);display:flex;align-items:center;gap:14px;border:3px solid #e6bc60;background:#fff8d9;border-radius:24px;padding:15px 20px;box-shadow:0 7px 0 #bca66444,0 14px 35px #536c4724;z-index:21;pointer-events:none;animation:party-pop .5s cubic-bezier(.2,.7,.2,1.2)}.achievement-party .party-medal{display:grid;place-items:center;border-radius:50%;background:#fae7a5;padding:8px}.party-medal .pictogram{width:48px;height:48px}.achievement-party small,.achievement-party strong,.achievement-party span>span{display:block}.achievement-party small{font-size:13px;color:#af8544;margin-bottom:5px}.achievement-party strong{font-size:17px;line-height:1.6}.achievement-party span>span{font-size:12px;margin-top:6px;color:#759064}.achievement-party span>span .pictogram{width:18px;height:18px}.party-check .pictogram{width:30px;height:30px;color:#79a05d}.milestone{animation:notebook-cheer .6s ease-in-out 3}.celebrating #dialog-content{position:relative;z-index:1}
@keyframes celebration-fall{0%{translate:0 -15px;rotate:0deg;opacity:0}10%{opacity:1}85%{opacity:1}100%{translate:var(--drift) 680px;rotate:var(--turn);opacity:0}}@keyframes hero-rays-turn{to{rotate:360deg}}@keyframes medal-arrive{0%{scale:.72;opacity:0;translate:0 16px}75%{scale:1.06}100%{scale:1;opacity:1;translate:0 0}}@keyframes happy-star{0%,100%{scale:1;translate:0 0}50%{scale:1.15;translate:0 -8px}}@keyframes train-parade{0%{translate:-100px 0;opacity:0}60%{opacity:1}100%{translate:0 0;opacity:1}}@keyframes flag-wave{0%,100%{rotate:10deg}50%{rotate:-10deg}}@keyframes happy-steam{0%{translate:0 0;opacity:0;scale:.7}30%{opacity:.8}100%{translate:-14px -20px;opacity:0;scale:1.3}}@keyframes notebook-cheer{0%,100%{rotate:0deg}30%{rotate:-8deg}70%{rotate:8deg}}
@media(max-width:700px){.celebration-hero{height:170px}.hero-rays{width:125px;height:125px}.hero-badge{width:85px;height:85px;border-width:4px}.hero-badge>.pictogram{width:59px;height:59px}.hero-star.left{left:28px}.hero-star.right{right:28px}.hero-star .pictogram{width:28px;height:28px}.happy-train{bottom:17px}.happy-train>.pictogram{width:66px;height:66px}.hero-rail{bottom:14px;width:220px}.achievement-party{padding:12px;gap:9px;top:31%;border-radius:20px}.achievement-party strong{font-size:13px}.achievement-party small{font-size:11px}.party-medal .pictogram{width:32px;height:32px}.party-check .pictogram{width:24px;height:24px}}
@media(prefers-reduced-motion:reduce){.celebration-hero *,.achievement-party,.milestone{animation:none!important;transition:none!important}.celebration-piece,.train-steam{display:none!important}}
@keyframes party-pop{0%{scale:.8;opacity:0}75%{scale:1.04}100%{scale:1;opacity:1}}.screen-reader-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
/* The next action stays unmistakable even without animation or colour alone. */
.guide-active .station-label:not(.guide-target){opacity:.25;pointer-events:none}
.station-label.guide-target{z-index:12;opacity:1}
.station-label.guide-target .station-bubble{bottom:25px;border:4px solid #b8791d;background:#fff2bc;padding:14px 16px;gap:9px;box-shadow:0 0 0 5px #fffbee,0 0 0 9px #e9b94b99,0 6px 0 #af85394d}
.station-label.guide-target .station-bubble:after{background:#fff2bc;border-color:#b8791d;border-width:3px}
.station-label.guide-target .site-icon{width:48px;height:48px}
.station-label.guide-target .station-name{font-size:15px;font-weight:800;color:#61491f}
.station-label.guide-target .station-marker{left:8px;top:8px;width:28px;height:28px;border:4px solid #fffbea;background:#eab039;outline:3px solid #b8791d;outline-offset:2px}
.guide-pointer{position:absolute;left:calc(50% - 23px);top:-42px;width:46px;height:46px;background:#e9b13c;border:3px solid #fffbea;border-radius:50%;display:grid;place-items:center;color:#634415;box-shadow:0 3px 0 #9e762b55;animation:next-station-arrow 1.6s ease-in-out infinite}
.guide-pointer .pictogram{rotate:90deg;width:34px;height:34px}
.guide-tap{position:absolute;top:-15px;right:-16px;border:3px solid #fffbea;border-radius:13px;background:#507849;color:#fffbed;padding:3px 7px;font-size:13px;font-weight:800}
.guide-active .guide-target:not(.station-label){outline:5px solid #b8791d;outline-offset:4px}
@keyframes next-station-arrow{0%,100%{translate:0 -4px}50%{translate:0 3px}}
@media(max-width:700px){.station-label.guide-target .station-bubble{padding:11px 12px;gap:7px}.station-label.guide-target .site-icon{width:40px;height:40px}.station-label.guide-target .station-name{font-size:13px}}

#map-hint:has(.selected-station-summary){display:flex;flex-direction:column;gap:4px}
.selected-station-summary{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px}.selected-station-summary .pictogram{width:24px;height:24px}.selected-station-summary strong{font-size:16px}
.station-label.arrived{animation:none}.station-label.arrived .station-marker{animation:station-marker-arrival .8s ease-in-out}
@keyframes station-marker-arrival{50%{transform:translateY(-3px)}}

.station-label:active:not(:disabled){transform:translate(-50%,-50%);translate:none}.station-label:active:not(:disabled) .station-marker{scale:.94}
