:root{font-family:"Trebuchet MS","Segoe UI",sans-serif;color:#174a42;background:#c4edf2;font-synthesis:none;--ink:#174a42;--yellow:#ffd36d;--coral:#ef7455}
*{box-sizing:border-box}body{margin:0;min-height:100dvh;overflow-x:hidden}button,a{font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:var(--ink)}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:5px solid #174a42;outline-offset:5px}button,a{-webkit-user-select:none;user-select:none}[hidden]{display:none!important}h1,h2,p{margin:0}button{border:0}button:active:not(:disabled){transform:translateY(4px)}.landscape{position:fixed;inset:0;overflow:hidden;z-index:-1;background:linear-gradient(#b4e6ef,#e4f7ed 75%)}.sun{position:absolute;width:76px;height:76px;background:#ffe28a;border-radius:50%;top:28px;left:59%;box-shadow:0 0 0 12px #ffe28a28}.cloud{position:absolute;background:#ffffffb8;width:180px;height:35px;border-radius:80px;top:200px}.cloud:before,.cloud:after{content:"";position:absolute;background:inherit;border-radius:50%;width:80px;height:80px;bottom:0;left:25px}.cloud:after{left:90px;width:65px;height:65px}.cloud.one{left:5%}.cloud.two{right:25%;top:130px;scale:.7}.hill{position:absolute;width:150%;height:70%;border-radius:50% 50% 0 0;bottom:-35%;left:-25%;background:#a8cf8d}.hill.far{left:25%;bottom:-27%;background:#b9dba2}.hill.near{rotate:-7deg;background:#83b794}.bushes{position:absolute;bottom:8%;left:2%;width:80%;display:flex;justify-content:space-between;opacity:.6}.bush{position:relative;display:block;width:150px;height:52px;border-radius:65% 60% 35% 35%;background:#477e64;box-shadow:inset 0 -9px #386c52}.bush:before,.bush:after{content:"";position:absolute;bottom:15px;left:17px;width:74px;height:75px;border-radius:50%;background:#52896a}.bush:after{left:auto;right:10px;bottom:9px;width:62px;height:60px;background:#5d9472}.bush:nth-child(2){scale:.8;transform-origin:bottom}.bush:nth-child(3){scale:1.15;transform-origin:bottom}.topbar{height:154px;padding:18px 46px;display:flex;align-items:center;gap:20px}.control{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--ink);background:#f8ffefbc;border:2px solid #fff9;border-radius:28px;min-width:150px;min-height:120px;padding:14px 22px;font-size:25px;font-weight:bold;box-shadow:0 5px 0 #174a4214}.brand{font-weight:900;font-size:32px;margin-right:auto;padding-left:20px}.topbar .control:nth-last-child(2){min-width:172px}#app{position:relative;max-width:1800px;margin:auto;padding:0 38px 65px}.map-heading{text-align:center;padding:8px 0 0}h1{font-size:clamp(48px,4.1vw,80px);letter-spacing:-3px;line-height:1.08;font-weight:900}.map-heading p{font-size:30px;margin-top:15px}.map-heading p strong{font-weight:900}.route{position:relative;margin:35px auto 0;max-width:1490px;height:590px}.rails{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.rails path{fill:none;stroke:#87694d;stroke-width:22;stroke-linejoin:round}.rails .inner{stroke:#e0c7a5;stroke-width:12;stroke-dasharray:7 12}.stations{position:relative;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:260px 260px;gap:35px 38px;padding:0 55px}.station{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#fff9e5;min-height:230px;border-radius:30px 30px 18px 18px;border:4px solid #fffdf0;box-shadow:0 10px 0 #bda987,0 15px 25px #2849371c;padding:12px 10px}.station:before{content:"";position:absolute;top:-15px;left:10%;width:80%;height:16px;background:var(--coral);border-radius:10px 10px 0 0;box-shadow:0 4px 0 #bd5848}.station.locked{background:#e3ecdb;color:#546e60;box-shadow:0 10px 0 #94ad93,0 15px 25px #2849371c;border-color:#eff5e8}.station.locked:before{background:#92b9a0;box-shadow:0 4px 0 #739b81}.station.current{background:#ffdf83;border-color:#ffefb5;box-shadow:0 10px 0 #dba84f,0 15px 25px #2849371c}.station .number{width:68px;height:68px;border-radius:50%;background:var(--ink);color:white;display:grid;place-items:center;font-size:38px;font-weight:900}.station.locked .number{background:#779583}.station .station-name{font-size:25px;font-weight:900;white-space:nowrap}.station small{font-size:20px}.stars{letter-spacing:5px;color:#a37306;font-size:30px}.stars .empty{color:#b7b9a5}.station .lock{position:absolute;right:16px;top:15px;font-size:20px}.map-foot{text-align:center;font-size:24px;margin-top:-13px;font-weight:bold}.reset{position:fixed;bottom:12px;left:23px;min-height:120px;min-width:145px;padding:55px 10px 0;background:transparent;text-decoration:underline;font-size:17px;color:#214d3f;z-index:4}.puzzle-head{display:flex;align-items:center;gap:25px}.back{min-width:145px;min-height:120px;background:#faffedb8;border:2px solid #fff;border-radius:25px;font-size:26px;font-weight:bold}.heading-copy{flex:1}.heading-copy h1{font-size:52px;letter-spacing:-1.8px}.heading-copy p{font-size:27px;margin-top:10px}.ticket{background:#fff8dc;border:3px dashed #c3ac77;border-radius:18px;padding:17px 28px;font-size:24px;min-width:180px;text-align:center;rotate:3deg}.ticket strong{display:block;font-size:40px}.progress{display:flex;gap:12px;justify-content:center;margin-top:15px}.progress i{width:21px;height:12px;border-radius:6px;background:#63877840}.progress i.done{background:#22745c}.progress i.current{background:#e1a73f;width:38px}.play-instruction{text-align:center;font-size:36px;margin-top:20px;font-weight:900}.train-stage{position:relative;height:320px;margin-top:4px;isolation:isolate}.train-stage:after{content:"";position:absolute;bottom:30px;left:0;right:0;height:17px;border-top:5px solid #6b6c5b;border-bottom:5px solid #6b6c5b;background:repeating-linear-gradient(90deg,transparent 0 30px,#b79870 30px 48px);z-index:-1}.train-stage canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.carriages{position:absolute;inset:0 18px 0 170px;display:flex;gap:18px;align-items:center;justify-content:center}.carriage{position:relative;flex:1;min-width:0;height:224px;display:flex;align-items:flex-start;justify-content:center;padding-top:12px}.carriage:before{content:"";position:absolute;left:-5%;right:-5%;bottom:26px;height:63px;border-radius:9px 9px 15px 15px;background:#e9985f;border:3px solid #b86d40;box-shadow:inset 0 7px #ffc28a}.carriage:nth-child(even):before{background:#4d9d95;border-color:#30756e;box-shadow:inset 0 7px #8ac4b4}.carriage:after{content:"";position:absolute;bottom:0;left:10%;right:10%;height:33px;background:radial-gradient(circle at 18px 16px,#eacb81 0 7px,#264b42 8px 16px,transparent 17px),radial-gradient(circle at calc(100% - 18px) 16px,#eacb81 0 7px,#264b42 8px 16px,transparent 17px)}.webgl .carriage:before,.webgl .carriage:after{visibility:hidden}.symbol-card{position:relative;width:100%;max-width:180px;height:154px;border-radius:22px;border:3px solid #fff;background:#fffdf0;display:flex;align-items:center;justify-content:center;box-shadow:0 7px 0 #b8aa7d,0 11px 20px #3155431a;z-index:1}.gap .symbol-card{background:#fff1a7;border:4px dashed #c08e22;box-shadow:0 7px 0 #c5a44a,0 0 30px #ffe38899}.question-mark{font-size:94px;font-weight:900;color:#98721b}.symbol{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:86px;line-height:1}.emoji{font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif}.number-symbol{font-size:79px;font-weight:900;color:#254e70}.shape{display:block;width:calc(var(--size)*1px);height:calc(var(--size)*1px);max-width:85%;max-height:85%;background:var(--colour);filter:drop-shadow(0 5px 0 #0002)}.shape.circle{border-radius:50%}.shape.square{border-radius:8px}.shape.triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}.arrow{width:89px;height:89px;background:var(--colour);clip-path:polygon(50% 0,100% 43%,72% 43%,72% 100%,28% 100%,28% 43%,0 43%);transform:rotate(var(--angle))}.dots{display:grid;grid-template-columns:repeat(3,25px);gap:8px;justify-content:center}.dot{width:25px;height:25px;border-radius:50%;background:#367caf;box-shadow:inset -4px -4px #205d8e}.engine{position:absolute;left:5px;bottom:55px;width:145px;height:125px}.engine .boiler{position:absolute;bottom:24px;width:100px;height:60px;background:#ef7455;border:4px solid #b85540;border-radius:35px 9px 8px 12px;box-shadow:inset 0 10px #ffad7b}.engine .cab{position:absolute;right:0;bottom:24px;width:63px;height:105px;background:#2b7c70;border:4px solid #1b584f;border-radius:8px}.engine .cab:before{content:"";position:absolute;top:9px;left:10px;width:35px;height:35px;background:#ffe6a0;border:4px solid #164e46}.engine .cab:after{content:"";position:absolute;top:-15px;left:-12px;width:82px;height:15px;border-radius:7px;background:#174a42}.engine .chimney{position:absolute;left:28px;bottom:80px;width:22px;height:36px;background:#174a42;border-top:10px solid #ef7455}.engine .wheels{position:absolute;bottom:0;width:145px;height:35px;background:radial-gradient(circle at 27px 17px,#ffe6a0 0 8px,#174a42 9px 17px,transparent 18px),radial-gradient(circle at 114px 17px,#ffe6a0 0 8px,#174a42 9px 17px,transparent 18px)}.webgl .engine{visibility:hidden}.answers{display:flex;justify-content:center;gap:28px}.answer{position:relative;width:218px;height:168px;border-radius:26px;border:4px solid white;background:#fffdf0;box-shadow:0 9px 0 #b2aa8c,0 16px 28px #2e644c20}.answer:disabled{opacity:.58}.answer.right{background:#d9f1af;border-color:#367b50;opacity:1}.answer.wrong{animation:wobble .45s}.answer .symbol{height:133px}.answer .card-tab{position:absolute;bottom:6px;left:0;right:0;font-size:16px;color:#52715b}.feedback{min-height:55px;font-size:30px;font-weight:900;text-align:center;padding-top:15px}.actions{display:flex;align-items:center;justify-content:center;gap:28px;margin-top:9px}.actions button,.primary,.secondary{min-height:120px;min-width:220px;border-radius:25px;padding:15px 28px;font-size:28px;font-weight:900;background:#fff7d8;box-shadow:0 7px 0 #c6b887}.actions .next,.primary{background:var(--ink);color:#fff9dc;box-shadow:0 7px 0 #0d302c}.actions button:disabled{opacity:.45}.playing{animation:bounce .48s}.filled{animation:drop .6s}.train-stage.arrive{animation:chug .7s}.celebration{text-align:center;padding-top:65px}.celebration .large-stars{font-size:130px;color:#e4a417;filter:drop-shadow(0 9px #b57a2440);margin-bottom:25px}.large-stars span{display:inline-block;animation:star-in .7s backwards}.large-stars span:nth-child(2){animation-delay:.2s}.large-stars span:nth-child(3){animation-delay:.4s}.celebration h1{font-size:70px}.celebration p{font-size:34px;margin-top:23px}.celebration .actions{margin-top:50px}.burst{position:fixed;top:40%;left:50%;pointer-events:none;z-index:8}.burst i{position:absolute;font-style:normal;color:#d69c13;font-size:45px;animation:burst 1.1s forwards;--x:0;--y:0}.celebration .souvenir{font-size:26px;margin-top:35px;color:#386950}dialog{max-width:700px;width:90%;border:5px solid #fff7d8;background:#fff7d8;border-radius:32px;padding:40px;color:var(--ink);box-shadow:0 25px 120px #123b4270}dialog::backdrop{background:#174a4277;backdrop-filter:blur(5px)}dialog h2{font-size:45px}dialog p{font-size:29px;margin:20px 0 35px}dialog>div{display:flex;gap:20px}dialog button{min-width:220px;min-height:120px;border-radius:22px;background:#d7e8d3;font-size:25px;padding:15px}#save-note{position:fixed;bottom:10px;right:22px;font-size:18px;max-width:500px;background:#fff8dc}
@keyframes bounce{50%{transform:translateY(-24px) rotate(-3deg)}}@keyframes drop{from{transform:translateY(-90px);opacity:0}70%{transform:translateY(8px)}to{transform:none;opacity:1}}@keyframes wobble{25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}@keyframes chug{from{transform:translateX(-90px);opacity:0}to{transform:none;opacity:1}}@keyframes star-in{from{transform:translateY(-140px) rotate(-40deg) scale(.1);opacity:0}70%{transform:scale(1.15)}to{transform:none;opacity:1}}@keyframes burst{to{transform:translate(var(--x),var(--y)) rotate(120deg);opacity:0}}
@media(max-width:1400px),(max-height:900px){.topbar{height:137px;padding:8px 24px;gap:12px}.brand{font-size:26px;padding-left:6px}.control{font-size:22px;padding:10px 15px;min-width:130px}#app{padding:0 25px 65px}.map-heading{padding-top:0}h1{font-size:56px}.map-heading p{font-size:26px;margin-top:8px}.route{margin-top:24px;height:445px}.stations{grid-template-rows:190px 190px;gap:27px 25px;padding:0 45px}.station{min-height:190px;gap:3px;padding:7px}.station .number{width:48px;height:48px;font-size:30px}.station .station-name{font-size:21px}.station small{font-size:17px}.stars{font-size:25px}.map-foot{font-size:21px;margin-top:-7px}.heading-copy h1{font-size:40px}.heading-copy p{font-size:23px;margin-top:7px}.ticket{padding:8px 18px;min-width:140px;font-size:22px}.ticket strong{font-size:32px}.progress{margin-top:5px}.play-instruction{font-size:30px;margin-top:12px}.train-stage{height:237px}.carriages{left:140px;gap:12px;right:12px}.carriage{height:190px;padding-top:0}.symbol-card{height:123px;border-radius:18px}.symbol{font-size:70px}.number-symbol{font-size:65px}.question-mark{font-size:79px}.engine{scale:.85;transform-origin:bottom left;bottom:35px}.train-stage:after{bottom:18px}.answer{width:185px;height:142px}.answer .symbol{height:113px}.answer .card-tab{font-size:14px;bottom:3px}.answers{gap:22px}.feedback{font-size:26px;min-height:48px;padding-top:12px}.actions{margin-top:5px}.actions button{font-size:25px}.celebration{padding-top:28px}.celebration .large-stars{font-size:105px;margin-bottom:18px}.celebration h1{font-size:60px}.celebration p{font-size:29px}.celebration .actions{margin-top:30px}.shape{scale:.88}.arrow{width:75px;height:75px}.dots{gap:6px;grid-template-columns:repeat(3,22px)}.dot{width:22px;height:22px}}
@media(max-width:850px){.topbar{height:auto;padding:10px;flex-wrap:wrap}.brand{order:-1;width:100%;text-align:center}.control{flex:1;font-size:18px;min-width:120px}.stations{padding:0 5px;gap:28px 16px;grid-template-columns:1fr 1fr;grid-template-rows:repeat(4,190px)}.route{height:auto}.rails{display:none}.map-foot{margin-top:35px}.station{grid-column:auto!important;grid-row:auto!important}.puzzle-head{gap:10px;flex-wrap:wrap}.heading-copy{order:-1;width:100%;flex:auto}.heading-copy h1{font-size:34px}.ticket{margin-left:auto}.carriages{left:0;gap:7px;right:0}.engine{display:none}.symbol-card{height:110px}.symbol{font-size:45px}.shape{scale:.65}.arrow{width:55px;height:55px}.dots{grid-template-columns:repeat(3,14px);gap:4px}.dot{width:14px;height:14px}.answer{width:145px;min-width:120px}.answers{flex-wrap:wrap;gap:20px}.answers .symbol{font-size:65px}.actions{flex-wrap:wrap}.feedback{font-size:23px}.celebration h1{font-size:46px}.celebration .large-stars{font-size:85px}.reset{position:relative;bottom:auto;left:12px;padding-top:35px}.map-heading h1{font-size:46px}.map-heading p{font-size:23px}dialog>div{flex-wrap:wrap}dialog button{min-width:180px}dialog{padding:25px}.celebration p{font-size:25px}.play-instruction{font-size:27px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.answers .next{width:218px;min-height:168px;border-radius:26px;padding:18px;font-size:29px;font-weight:900;background:#174a42;color:#fff8dc;box-shadow:0 9px 0 #0d302c}.answers .next:disabled{background:#b6ceba;color:#315e4b;box-shadow:0 9px 0 #92b09a;opacity:.7}#listen{min-width:160px}
@media(max-width:1400px),(max-height:900px){.train-stage{height:194px}.carriage{height:174px}.symbol-card{height:116px}.carriage:before{height:48px}.engine{bottom:27px}.train-stage:after{bottom:13px}.answers .next{width:185px;min-height:142px;font-size:25px}.feedback{padding-top:13px}#app{padding-bottom:20px}.map-foot{padding-bottom:35px}}
@media(max-width:850px){.answers .next{width:145px;min-width:120px}.puzzle-head #listen{margin-left:auto}.ticket{margin-left:0}#app{padding-bottom:35px}}
.actions button.primary{background:#174a42;color:#fff9dc;box-shadow:0 7px 0 #0d302c}
.train-stage:after{z-index:-2}

@media (max-width: 1400px) { .sun { left: min(49%, calc(100% - 610px)); } }
@media (max-width: 1070px) { .sun { display: none; } }
