:root { color-scheme: light; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif; color: #273e38; background: #fbfaf6; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select { font: inherit; }
a { color: #246052; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 20; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 10px max(20px, calc((100vw - 860px)/2)); border-bottom: 1px solid #dce8df; background: #fff; }
.brand { color: #246052; font-size: 21px; font-weight: 900; text-decoration: none; }
.back { font-size: 13px; font-weight: 700; text-decoration: none; }
.page { max-width: 860px; margin: 27px auto 90px; padding: 0 20px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: #2a705b; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1 { margin: 0 0 8px; color: #17382f; font-size: clamp(28px, 5vw, 40px); letter-spacing: .03em; }
.intro { max-width: 700px; margin: 0 0 24px; color: #546861; font-size: 14px; line-height: 1.85; }
.game { padding: 20px; border: 1px solid #d9e5d8; border-radius: 20px; background: #f4f7ed; }
.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.game-kicker { margin: 0; color: #427565; font-size: 12px; font-weight: 800; }
.game h2 { margin: 1px 0 0; font-size: 20px; }
.round { color: #587369; font-size: 12px; font-weight: 800; white-space: nowrap; }
.scene { position: relative; height: 290px; overflow: hidden; border: 1px solid #b8d6d2; border-radius: 18px; background: #b9dfdf url('/play/pattern-train-scene.svg') center center / cover no-repeat; }
.track { position: absolute; right: 0; bottom: 29px; left: 0; height: 20px; border-top: 5px solid #836858; border-bottom: 5px solid #836858; background: repeating-linear-gradient(90deg, #705744 0 10px, #c7a984 10px 21px, transparent 21px 34px); box-shadow: 0 5px 0 #80675044, 0 -3px 0 #f1ddb694; }
.train { position: absolute; right: 3%; bottom: 45px; left: 3%; z-index: 2; display: flex; align-items: end; justify-content: center; gap: 4px; height: 158px; }
.engine { position: relative; flex: 0 0 112px; height: 112px; margin-right: 5px; border: 4px solid #246b68; border-radius: 20px 22px 15px 15px; background: linear-gradient(125deg, #77c2ac 0%, #388d7b 45%, #1f685f 100%); box-shadow: inset 0 9px #ffffff5c, inset -8px -4px #195e5540, 5px 6px 0 #356b6240, 0 9px 13px #355a4860; }
.engine::before { position: absolute; top: 16px; left: 17px; width: 43px; height: 42px; border: 5px solid #f2da9a; border-radius: 12px; background: #e6f7ec; content: ""; }
.chimney { position: absolute; top: -40px; left: 17px; width: 25px; height: 40px; border: 3px solid #246b68; border-radius: 5px 5px 0 0; background: linear-gradient(90deg, #3f8e82, #77bdac); }
.chimney::before { position: absolute; top: -7px; left: -5px; width: 29px; height: 8px; border: 2px solid #246b68; border-radius: 8px; background: #e9b778; content: ""; }
.smoke { position: absolute; top: -67px; left: 7px; width: 20px; height: 20px; border-radius: 50%; background: #ffffffdb; box-shadow: 13px -10px 0 5px #ffffffad; opacity: .85; }
.smoke-two { top: -93px; left: -4px; width: 13px; height: 13px; opacity: .6; }
.cab { position: absolute; top: -30px; right: -3px; width: 46px; height: 31px; border: 4px solid #246b68; border-radius: 9px 9px 0 0; background: linear-gradient(#f9d390, #e5a965); }
.cab-window { position: absolute; top: 13px; right: 12px; width: 27px; height: 33px; border: 3px solid #f3d490; border-radius: 8px; background: linear-gradient(130deg, #dff6ea 0 46%, #a6d2d5 47% 100%); box-shadow: inset 3px 3px #ffffff73; }
.engine-stripe { position: absolute; bottom: 19px; left: 0; width: 100%; height: 9px; border-top: 2px solid #fbe6b7; border-bottom: 2px solid #9c7147; background: #dfad6e; }
.nose { position: absolute; right: -19px; bottom: 8px; width: 31px; height: 27px; border: 3px solid #996a4f; border-radius: 4px 14px 10px 3px; background: linear-gradient(#f4c58b, #d99863); }
.engine-wheel { position: absolute; bottom: -18px; width: 28px; height: 28px; border: 5px solid #405650; border-radius: 50%; background: conic-gradient(#f9e5b7 0 20%, #af9270 20% 25%, #f9e5b7 25% 45%, #af9270 45% 50%, #f9e5b7 50% 70%, #af9270 70% 75%, #f9e5b7 75% 95%, #af9270 95%); box-shadow: 0 2px 2px #2c473b50; }.engine-wheel.first { left: 15px; }.engine-wheel.second { right: 14px; }
.wagons { display: flex; align-items: end; gap: 4px; min-width: 0; height: 100%; }
.wagon { position: relative; display: grid; flex: 0 1 78px; place-items: center; min-width: 0; height: 89px; margin-bottom: 2px; border: 4px solid #8f715c; border-radius: 8px 8px 13px 13px; background: linear-gradient(90deg, #ddbc8d, #f9e5bb 25% 75%, #d9b485); box-shadow: inset 0 7px #fff6db, inset 0 -12px #c8966340, 4px 5px 0 #775e5040, 0 8px 11px #3b594b3d; }
.wagon::after { position: absolute; right: 12px; bottom: -18px; left: 12px; height: 20px; background: radial-gradient(circle at 9px 10px, #485959 0 9px, transparent 10px), radial-gradient(circle at calc(100% - 9px) 10px, #485959 0 9px, transparent 10px); content: ""; }
.wagon.empty { border-style: dashed; background: #fffaf0e8; }
.empty-mark { margin-top: -26px; color: #927d65; font-size: 36px; font-weight: 900; }
.wagon.hint { box-shadow: 0 0 0 4px #fff7e3, 0 0 0 7px #e2b964; }
.question { margin: 21px 0 12px; text-align: center; font-size: 18px; font-weight: 900; }
.choices { display: flex; justify-content: center; gap: 13px; }
.choice { display: flex; align-items: center; justify-content: center; gap: 11px; width: min(30%, 153px); min-height: 90px; border: 2px solid #d3dfd0; border-radius: 17px; background: #fffefa; color: #263c35; font-size: 17px; font-weight: 900; cursor: pointer; }
.choice:hover:not(:disabled), .choice:focus-visible { border-color: #4c9c7e; background: #f6fbf4; transform: translateY(-2px); }
.choice:disabled { cursor: default; }.choice.chosen { border-color: #398773; background: #e6f4e8; }.choice.try-again { border-color: #c98b69; background: #fff7ed; }
.feedback { min-height: 26px; margin: 12px 0 0; color: #486f5d; font-size: 14px; font-weight: 800; text-align: center; }
.next { display: block; width: min(100%, 330px); min-height: 51px; margin: 14px auto 0; border: 0; border-radius: 11px; background: #246052; color: #fff; font-weight: 900; cursor: pointer; }.next[hidden] { display: none; }
.settings { width: fit-content; max-width: 100%; margin: 22px 0 0 auto; padding: 5px 0; color: #52685b; font-size: 12px; }.settings summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }.settings[open] { width: min(100%, 360px); padding: 14px; border: 1px solid #d2e0d3; border-radius: 11px; background: white; }.settings label { display: block; margin: 10px 0 5px; font-weight: 800; }.settings select { width: 100%; min-height: 44px; padding: 7px; border: 1px solid #a8beb0; border-radius: 8px; background: white; }.settings p { margin: 7px 0 0; }
.settings .sound-control { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 9px 0 0; cursor: pointer; }.sound-control input { width: 20px; height: 20px; margin: 0; accent-color: #246052; }
.train.depart .smoke-one { animation: puff 1.4s ease-out infinite; }
.train.depart .smoke-two { animation: puff 1.7s .35s ease-out infinite; }
@keyframes wheel-turn { to { transform: rotate(360deg); } }
@keyframes puff { to { opacity: 0; transform: translate(-15px, -31px) scale(1.5); } }
@keyframes wagon-bob { 50% { transform: translateY(-3px); } }
.parent-prompt { margin: 19px 0 0; padding: 13px 16px; border-left: 4px solid #87ae87; background: #edf5e9; font-size: 14px; line-height: 1.7; }
.guide, .research { margin-top: 48px; }.guide h2, .research h2 { margin: 0 0 12px; font-size: 24px; }.section-lead, .guide-close { max-width: 760px; color: #52645c; line-height: 1.9; }.guide-steps { display: grid; gap: 12px; margin: 23px 0; padding: 0; list-style: none; }.guide-steps li { display: flex; gap: 17px; padding: 17px; border: 1px solid #e0e8de; border-radius: 12px; background: #fff; }.guide-steps li > span { color: #729b80; font-size: 14px; font-weight: 900; }.guide-steps h3, .research h3 { margin: 0 0 5px; font-size: 16px; }.guide-steps p, .research-points p { margin: 0; color: #52645c; font-size: 14px; line-height: 1.9; }.research-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 21px; }.research-points > div { padding: 20px; border: 1px solid #e2e8e0; border-radius: 12px; background: #fff; }.research-limit { margin: 24px 0 0; padding: 16px 19px; border-left: 4px solid #bca578; background: #f6f1e5; font-size: 13px; line-height: 1.85; }.sources { margin-top: 27px; }.sources h3 { font-size: 16px; }.sources ol { padding-left: 22px; }.sources li { margin: 8px 0; color: #53645d; font-size: 13px; line-height: 1.7; }
@media (max-width: 640px) { .page { margin-top: 20px; padding: 0 14px; }.header { min-height: 58px; padding: 8px 15px; }.brand { font-size: 18px; }.game { padding: 13px; }.scene { height: 220px; }.train { right: 2%; bottom: 43px; left: 2%; gap: 2px; height: 125px; }.engine-wheel { bottom: -12px; width: 18px; height: 18px; border-width: 4px; }.wagon::after { right: 3px; bottom: -11px; left: 3px; height: 12px; background: radial-gradient(circle at 5px 6px, #485959 0 5px, transparent 6px), radial-gradient(circle at calc(100% - 5px) 6px, #485959 0 5px, transparent 6px); }.empty-mark { font-size: 26px; }.choice { gap: 4px; min-height: 76px; font-size: 14px; }.question { font-size: 16px; }.research-points { grid-template-columns: 1fr; }.guide, .research { margin-top: 38px; } }
@media (max-width: 360px) { .choice { font-size: 12px; } }
@media (max-width: 640px) { .cab-window { top: 8px; right: 4px; width: 17px; height: 19px; border-width: 2px; }.engine-stripe { bottom: 11px; height: 6px; border-width: 1px; }.smoke { top: -45px; left: 4px; width: 12px; height: 12px; box-shadow: 8px -7px 0 3px #ffffffad; }.smoke-two { top: -62px; left: -4px; width: 9px; height: 9px; }.chimney::before { top: -5px; left: -4px; width: 20px; height: 6px; border-width: 1px; } }
/* A left-facing locomotive pulls the color-coded freight cars completely offscreen. */
.scene.celebration-shower { --trip-duration: 6.4s; }
.scene.celebration-sparkle { --trip-duration: 7.3s; }
.scene.celebration-ribbon { --trip-duration: 8.4s; }
.scene.traveling { animation: scenery-pass var(--trip-duration) ease-in-out both; }
.scene.traveling .track { animation: sleepers-pass .28s linear infinite; }
.train { gap: 5px; }
.train.depart { animation: train-through var(--trip-duration) ease-in-out forwards; }
.train.departure-sparkle { animation-name: train-hop; }
.train.departure-ribbon { animation-name: train-whistle; }
.train.arrive { animation: train-arrive .9s ease-out both; }
.celebration { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.celebration span { position: absolute; top: -22px; width: 11px; height: 16px; border-radius: 2px; opacity: 0; background: #e98e7d; animation: confetti-fall 5.1s ease-in forwards; }
.celebration span:nth-child(12n+1) { left: 4%; }
.celebration span:nth-child(12n+2) { left: 12%; }
.celebration span:nth-child(12n+3) { left: 21%; }
.celebration span:nth-child(12n+4) { left: 30%; }
.celebration span:nth-child(12n+5) { left: 38%; }
.celebration span:nth-child(12n+6) { left: 46%; }
.celebration span:nth-child(12n+7) { left: 54%; }
.celebration span:nth-child(12n+8) { left: 62%; }
.celebration span:nth-child(12n+9) { left: 70%; }
.celebration span:nth-child(12n+10) { left: 78%; }
.celebration span:nth-child(12n+11) { left: 87%; }
.celebration span:nth-child(12n+12) { left: 95%; }
.celebration span:nth-child(4n+2) { background: #efc56e; }
.celebration span:nth-child(4n+3) { background: #7bb8a0; }
.celebration span:nth-child(4n+4) { background: #8bbbd7; }
.celebration span:nth-child(3n+1) { animation-delay: .12s; }
.celebration span:nth-child(3n+2) { animation-delay: .4s; }
.celebration span:nth-child(3n+3) { animation-delay: .68s; }
.celebration span:nth-child(n+13) { animation-duration: 5.4s; animation-delay: 2.1s; }
.celebration-sparkle span { width: 17px; height: 17px; clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%); animation-name: sparkle-fall; }
.celebration-ribbon span { width: 6px; height: 28px; border-radius: 5px; animation-name: ribbon-fall; }
.success-sign { position: absolute; top: 24px; right: 6%; z-index: 6; padding: 11px 20px; border: 3px solid #e1a75d; border-radius: 999px; background: #fff9dc; color: #804b48; font-size: clamp(17px, 3vw, 25px); font-weight: 900; opacity: 0; pointer-events: none; box-shadow: 0 6px 0 #a9714a42, 0 11px 22px #304c3d25; }
.success-sign.visible { animation: sign-pop .65s cubic-bezier(.2,1.5,.45,1) both; }
.scene.celebration-sparkle .success-sign { border-color: #7cae9c; background: #e9f8e8; }
.scene.celebration-ribbon .success-sign { border-color: #a7a0c8; background: #f4ecff; }
.engine { flex-basis: 132px; height: 81px; margin-right: 10px; border: 0; border-radius: 16px 8px 10px 12px; background: linear-gradient(#23776c 0 60%, #164f4c 60% 100%); box-shadow: inset 0 5px #91d4b7, 0 9px 12px #355a4860; }
.engine::before { top: auto; bottom: -3px; left: 4px; width: 126px; height: 13px; border: 0; border-radius: 5px; background: #254e4d; }
.boiler { position: absolute; bottom: 28px; left: 9px; width: 83px; height: 61px; border: 4px solid #145c57; border-radius: 30px 12px 9px 8px; background: linear-gradient(#7bd4b1 0 16%, #3b9b83 17% 66%, #267d71 67%); box-shadow: inset 0 -8px #1e6d635c; }
.boiler::after { position: absolute; top: 20px; left: 13px; width: 53px; height: 10px; border-top: 2px solid #bce4c2; border-bottom: 2px solid #175d56; border-radius: 50%; content: ""; opacity: .7; }
.boiler-front { position: absolute; bottom: 29px; left: -3px; width: 22px; height: 55px; border: 4px solid #214e4a; border-radius: 12px 4px 4px 12px; background: #e7b56f; box-shadow: inset 4px 0 #f4d19b; }
.headlamp { position: absolute; bottom: 64px; left: -12px; z-index: 3; width: 20px; height: 20px; border: 3px solid #806246; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fffef0 0 29%, #ffe4a0 45%, #d7a65b 80%); box-shadow: 0 0 11px 3px #ffe8a8bd; }
.chimney { top: -42px; left: 22px; z-index: 2; width: 24px; height: 40px; background: linear-gradient(90deg, #185b53, #3b9580); }
.smoke { left: 17px; }
.cab { top: -48px; right: 2px; width: 52px; height: 54px; border: 4px solid #1b6459; border-radius: 12px 12px 2px 2px; background: linear-gradient(#f2ca83 0 25%, #318874 26%); }
.cab-window { top: -30px; right: 14px; width: 28px; height: 29px; border: 3px solid #eaca85; border-radius: 4px 4px 7px 7px; background: #c5edf0; }
.driver { position: absolute; top: -22px; right: 20px; z-index: 2; width: 16px; height: 18px; border-radius: 48% 48% 38% 38%; background: #e4a874; box-shadow: 0 8px 0 2px #f5dfb9; }
.driver::before { position: absolute; top: -6px; left: -3px; width: 22px; height: 9px; border-radius: 9px 9px 3px 3px; background: #285f62; box-shadow: inset 0 -2px #174d50; content: ""; }
.driver::after { position: absolute; top: 7px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: #493f38; box-shadow: 6px 0 #493f38; content: ""; }
.engine-stripe { bottom: 20px; left: 7px; width: 82px; height: 7px; border-color: #f2d396; }
.nose { right: auto; bottom: 2px; left: -26px; width: 30px; height: 24px; border: 3px solid #885f4a; border-radius: 6px 2px 3px 10px; background: repeating-linear-gradient(135deg, #e6a466 0 5px, #f8d09a 5px 10px); }
.engine::after { position: absolute; right: -16px; bottom: 18px; width: 19px; height: 8px; border-radius: 3px; background: #6c5951; content: ""; }
.engine-wheel { bottom: -19px; }
.engine-wheel.first { left: 19px; }.engine-wheel.second { right: 18px; }
.wheel-rod { position: absolute; bottom: -7px; left: 33px; z-index: 1; width: 68px; height: 5px; border: 1px solid #927148; border-radius: 5px; background: linear-gradient(#f9e9b9, #d7b573); box-shadow: 0 2px 0 #44584c5c; }
.wheel-rod::before, .wheel-rod::after { position: absolute; top: -3px; width: 7px; height: 7px; border: 2px solid #7b674c; border-radius: 50%; background: #fce9ae; content: ""; }
.wheel-rod::before { left: -4px; }.wheel-rod::after { right: -4px; }
.wagons { gap: 6px; }
.wagon { flex: 0 0 60px; height: 73px; margin-bottom: 0; border: 3px solid #684f45; border-radius: 8px 8px 5px 5px; background: #f0e7d8; box-shadow: inset 0 6px #ffffff50, inset 0 -11px #00000019, 0 8px 12px #3b594b3d; }
.wagon::before { position: absolute; right: -9px; bottom: 16px; width: 9px; height: 7px; border-radius: 3px; background: #6c5951; content: ""; }
.wagon::after { right: 6px; bottom: -18px; left: 6px; }
.wagon.red, .choice-wagon.red { background: linear-gradient(#e78977 0 24%, #d86760 25% 75%, #bd504b 76%); }
.wagon.blue, .choice-wagon.blue { background: linear-gradient(#86b7d5 0 24%, #5c97c4 25% 75%, #477caf 76%); }
.wagon.yellow, .choice-wagon.yellow { background: linear-gradient(#f7d480 0 24%, #e8b94f 25% 75%, #d5a33c 76%); }
.wagon-label { position: relative; display: grid; place-items: center; width: calc(100% - 10px); min-height: 31px; border: 2px solid #ffffffa8; border-radius: 5px; background: #ffffff29; color: #fffefa; font-size: 14px; font-weight: 900; white-space: nowrap; text-shadow: 0 1px 2px #3336; }
.wagon.yellow .wagon-label { color: #433d31; text-shadow: none; }
.wagon.empty { border: 3px dashed #9a826e; background: #fffaf0e8; }
.empty-mark { margin: 0; }
.wagon.try-again { animation: no-car .4s ease-in-out; }
.wagon.coupling { animation: couple-car .55s cubic-bezier(.16,.8,.35,1.1) both; }
.choice-wagon { position: relative; width: 41px; height: 38px; border: 3px solid #684f45; border-radius: 5px; box-shadow: inset 0 -6px #00000016; }
.choice-wagon::after { position: absolute; right: 3px; bottom: -9px; left: 3px; height: 9px; background: radial-gradient(circle at 5px 4px,#485959 0 4px,transparent 5px),radial-gradient(circle at calc(100% - 5px) 4px,#485959 0 4px,transparent 5px); content: ""; }
.train.depart .engine-wheel { animation: wheel-turn .33s linear infinite; }
.train.depart .wagon { animation: wagon-bob .24s ease-in-out infinite; }
.train.depart .wagon.coupling { animation: couple-car .55s cubic-bezier(.16,.8,.35,1.1) both, wagon-bob .24s .55s ease-in-out infinite; }
@keyframes couple-car { from { opacity: .4; transform: translateX(70px) translateY(-8px); } 70% { opacity: 1; } to { opacity: 1; transform: translateX(0); } }
@keyframes train-through { 0%, 10% { transform: translateX(0); } 42% { transform: translateX(-30%); } 100% { transform: translateX(calc(-100% - 80px)); } }
@keyframes train-hop { 0%, 9% { transform: translate(0, 0); } 20% { transform: translate(-6%, -7px); } 35% { transform: translate(-20%, 0); } 100% { transform: translate(calc(-100% - 80px), 0); } }
@keyframes train-whistle { 0%, 13% { transform: translateX(0); } 43% { transform: translateX(-31%); } 100% { transform: translateX(calc(-100% - 80px)); } }
@keyframes train-arrive { from { transform: translateX(calc(100% + 80px)); } to { transform: translateX(0); } }
@keyframes scenery-pass { 0%, 10% { background-position: 50% center; } 100% { background-position: 70% center; } }
@keyframes sleepers-pass { to { background-position-x: -34px; } }
@keyframes no-car { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
@keyframes confetti-fall { 0% { opacity: 0; transform: translate(0, -15px) rotate(0); } 12%, 72% { opacity: 1; } 100% { opacity: 0; transform: translate(28px, 340px) rotate(480deg); } }
@keyframes sparkle-fall { 0% { opacity: 0; transform: translate(0, -15px) scale(.5) rotate(0); } 20%, 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-18px, 320px) scale(1.2) rotate(360deg); } }
@keyframes ribbon-fall { 0% { opacity: 0; transform: translate(0, -15px) rotate(-30deg); } 15%, 75% { opacity: 1; } 100% { opacity: 0; transform: translate(36px, 330px) rotate(540deg); } }
@keyframes sign-pop { 0% { opacity: 0; transform: scale(.65) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.08) rotate(3deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@media (max-width: 640px) {
  .train { right: 1%; left: 1%; gap: 3px; }
  .engine { flex-basis: clamp(64px, 19vw, 76px); height: 53px; margin-right: 4px; }
  .engine::before { width: 73px; height: 8px; }
  .boiler { bottom: 18px; left: 6px; width: 49px; height: 39px; border-width: 2px; }
  .boiler::after { top: 12px; left: 6px; width: 31px; height: 6px; border-width: 1px; }
  .boiler-front { bottom: 18px; left: -2px; width: 12px; height: 36px; border-width: 2px; }
  .headlamp { bottom: 42px; left: -8px; width: 13px; height: 13px; border-width: 2px; box-shadow: 0 0 7px 2px #ffe8a8a8; }
  .chimney { top: -28px; left: 15px; width: 15px; height: 27px; }
  .cab { top: -31px; right: 0; width: 30px; height: 34px; border-width: 2px; }
  .cab-window { top: -20px; right: 7px; width: 16px; height: 18px; border-width: 2px; }
  .driver { top: -15px; right: 10px; width: 10px; height: 11px; box-shadow: 0 5px 0 1px #f5dfb9; }
  .driver::before { top: -4px; left: -2px; width: 14px; height: 6px; }
  .driver::after { top: 4px; left: 2px; width: 1px; height: 1px; box-shadow: 4px 0 #493f38; }
  .engine-stripe { bottom: 13px; left: 5px; width: 48px; height: 5px; }
  .nose { bottom: 1px; left: -15px; width: 18px; height: 15px; border-width: 2px; }
  .engine-wheel { bottom: -12px; }
  .engine-wheel.first { left: 13px; }.engine-wheel.second { right: 10px; }
  .wheel-rod { bottom: -4px; left: 21px; width: 38px; height: 4px; }
  .wheel-rod::before, .wheel-rod::after { top: -3px; width: 6px; height: 6px; }
  .wagons { gap: 3px; }
  .wagon { flex-basis: clamp(25px, 8vw, 38px); height: 52px; border-width: 2px; }
  .wagon::before { right: -6px; bottom: 11px; width: 6px; height: 5px; }
  .wagon.empty { border-width: 2px; }
  .wagon-label { width: calc(100% - 3px); min-height: 23px; border-width: 1px; font-size: clamp(8px, 2.3vw, 10px); }
  .choice-wagon { width: 31px; height: 30px; border-width: 2px; }
}
@media (max-width: 360px) { .train { gap: 2px; }.engine { flex-basis: 58px; }.boiler { width: 40px; }.cab { width: 27px; }.wagons { gap: 2px; }.wagon { flex-basis: 24px; }.wagon-label { font-size: 8px; }.choices { gap: 7px; }.choice { flex-direction: column; gap: 2px; font-size: 12px; }.choice-wagon { width: 29px; } }
@media (prefers-reduced-motion: reduce) { .scene.traveling, .scene.traveling .track, .train.depart, .train.arrive, .train.depart .engine-wheel, .train.depart .smoke, .train.depart .wagon, .wagon.coupling, .wagon.try-again, .celebration span, .success-sign.visible { animation: none; }.celebration, .success-sign { display: none; }.choice { transition: none; }.choice:hover:not(:disabled) { transform: none; } }
