@font-face{font-family:Bloom;src:url('/fonts/baloo-2-extrabold-latin.ttf')}*{box-sizing:border-box}body{margin:0;color:#254553;background:#fffaf0;font:18px/1.5 'Trebuchet MS',sans-serif;background-image:radial-gradient(at 0 10%,#e3f3e9,transparent 45%),radial-gradient(at 100% 25%,#eee5fc,transparent 45%)}button,select{font:inherit;color:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:52px;padding:12px 20px;background:#fff;border:2px solid #d6e5e7;border-bottom-width:5px;border-radius:20px;font-weight:bold}button:disabled{cursor:default;opacity:.55}button:hover:not(:disabled){border-color:#29978f}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid #805fc2;outline-offset:4px}[hidden]{display:none!important}header{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:18px 24px}a{color:#626090}header a{text-decoration:none;font-weight:bold}.brand{font:30px Bloom,sans-serif;color:#204b58}.brand span{color:#e5a334}main{max-width:1050px;margin:auto;padding:0 24px 30px}.hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px 42px 20px;border:3px solid white;border-radius:38px;background:linear-gradient(120deg,#fff0b9,#ffebdd 55%,#e8e3fc);box-shadow:0 8px 0 #ecdcc6}.hero img{width:105px;height:145px;object-fit:contain}.eyebrow{font-size:13px;font-weight:bold;letter-spacing:2px;color:#816595}h1,h2{font-family:Bloom,sans-serif;line-height:1.2}h1{font-size:48px;margin:8px 0}h2{font-size:30px;margin:10px 0 20px}.hero p{margin:9px 0}.switch{display:flex;gap:12px;margin:28px 0 16px}.switch button{flex:1;background:#fff}.switch [aria-pressed=true]{background:#197f7d;color:white;border-color:#126d6b}.settings{display:flex;flex-wrap:wrap;align-items:end;gap:12px;background:#fff9;padding:16px;border-radius:24px}.settings label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:bold}.settings select{min-height:48px;max-width:100%;background:white;border:2px solid #d8e4e4;border-radius:13px;padding:8px;font-size:16px}.lesson-select{flex:1;min-width:190px}.quiet{background:#f8f5ff;border-color:#e0d9ed;font-size:16px}.progress{display:flex;justify-content:space-between;gap:12px;font-weight:bold;font-size:14px;margin:28px 4px 14px}.progress span:last-child{color:#b87b13;font-size:22px;letter-spacing:3px}.task{text-align:center;border:3px solid #d9e8df;border-radius:30px;background:linear-gradient(120deg,#f1fbf7,#fff6d9);padding:22px}.task .eyebrow{margin:0}.task #help{max-width:680px;margin:14px auto 7px;font-size:16px}.task a{font-size:14px}.target{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-height:80px;padding:8px;border-radius:20px}.target-number,.target-letter{font:48px Bloom,sans-serif;color:#5a4d86}.target-speech{width:100%;font-size:15px;max-width:600px}.target .kg-art{width:72px!important;height:72px!important}.speaking{background:#fff0ae;box-shadow:0 0 0 4px #f2ce65}#listen{font-size:16px;background:#edf4ff;border-color:#c2d8eb;margin-top:12px}.scene{position:relative;min-height:280px;margin:20px 0;border:3px solid #dce7df;border-radius:32px;overflow:hidden}.railway{background:linear-gradient(#daf1f7 0%,#f6fcf6 67%,#b5d8a1 67%,#cce6ae 100%);padding:18px 14px 42px}.scenery{font-size:40px;display:flex;justify-content:space-around;letter-spacing:40px;white-space:nowrap}.train{display:flex;align-items:end;justify-content:center;gap:9px;position:relative;z-index:1;margin-top:25px;padding-bottom:16px}.engine{position:relative;flex:0 0 95px;height:95px}.engine-body{position:absolute;bottom:12px;left:0;width:90px;height:40px;border:4px solid #3f6c73;border-radius:12px 0 0 8px;background:#e89070}.cab{position:absolute;right:0;bottom:45px;width:43px;height:48px;background:#439e99;border:4px solid #326970;border-radius:9px 9px 0 0}.cab:after{content:'';position:absolute;inset:6px;background:#d4f2ed;border-radius:4px}.chimney{position:absolute;left:14px;bottom:46px;height:30px;width:16px;background:#55798a;border:3px solid #3f6372;border-radius:3px}.wheel{position:absolute;bottom:0;width:25px;height:25px;border:6px solid #526878;background:#ebd09d;border-radius:50%;z-index:2}.wheel-a{left:10px}.wheel-b{right:10px}.carriage{position:relative;flex:0 1 135px;min-width:65px;max-width:140px;height:110px;padding:4px 6px 20px;border:4px solid #4d9b9c;border-radius:16px 16px 12px 12px;background:#e2f2eb;text-align:center;box-shadow:0 6px 0 #9dc4ad}.carriage:nth-child(3n){background:#f8dfa8;border-color:#d6ac56}.carriage:nth-child(3n+1){background:#e2d5f2;border-color:#a98dc9}.carriage:before{content:'';position:absolute;left:-13px;bottom:15px;width:10px;height:6px;background:#526878}.carriage small{display:block;font-size:11px;line-height:1.5;font-weight:bold}.carriage strong{font:40px Bloom,sans-serif;line-height:1.1}.carriage.empty strong{color:#708b90;opacity:.45}.carriage.active{outline:4px dashed #e5a939;outline-offset:4px}.carriage.filled{animation:join .35s ease-out}.track{position:absolute;bottom:38px;left:0;right:0;height:12px;border-block:3px solid #71918a;background:repeating-linear-gradient(90deg,transparent 0 20px,#8eac89 20px 28px)}.scene-note{position:relative;z-index:2;text-align:center;font-weight:bold;margin:0}.success .train{animation:chug 1.4s ease-in-out infinite}.picnic{background:radial-gradient(ellipse at bottom,#cbe7b4,#eef9e2 55%,#fff8e7);display:flex;align-items:center;justify-content:center;gap:18px;padding:25px}.feed-friend{position:relative;align-self:end;width:160px;flex-shrink:0}.feed-friend img{width:145px;height:200px;object-fit:contain}.bubble{background:white;border:2px solid #dfd9ea;border-radius:20px;padding:10px;margin:0 0 5px;font-size:14px;text-align:center;font-weight:bold}.basket{position:relative;flex:1;min-height:175px;max-width:560px;border:7px solid #be8752;border-top:12px solid #d6a36b;border-radius:18px 18px 45px 45px;background:repeating-linear-gradient(0deg,#f5d4a0 0 13px,#e9bd83 13px 17px);padding:15px 12px 24px;box-shadow:inset 0 5px 12px #9c663634,0 10px 0 #c3d8ac}.basket-label{position:absolute;top:-29px;left:50%;transform:translateX(-50%);background:#fff6d6;border:2px solid #d2ac75;border-radius:16px;font-weight:bold;padding:2px 15px;white-space:nowrap}.basket-pictures{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.basket-piece{padding:4px;min-height:44px;border:0;background:#fff7e7a0;border-radius:13px}.basket-piece .kg-art{width:56px!important;height:56px!important}.basket-piece:disabled{opacity:1}.success .feed-friend img{animation:happy .7s ease 2}.success:after{content:'✦ ✧ ⭐ ✦ ✧';position:absolute;inset:15px 10px auto;text-align:center;color:#d5a42f;font-size:30px;pointer-events:none}.choices{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;padding:20px;border:3px solid #e4dcf0;border-radius:28px;background:#f4effc}.piece{touch-action:none;transition:border-color .15s,box-shadow .15s;background:#fffdf8;box-shadow:0 3px 0 #d2c5e3;border-color:#e1d9ec;min-width:80px}.number-piece{font:42px Bloom,sans-serif;min-width:85px}.picture-piece{width:128px;padding:10px 8px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:17px}.picture-piece .kg-art{width:85px!important;height:85px!important}.emoji{font-size:52px}.feedback{min-height:50px;text-align:center;font-weight:bold;font-size:19px;margin:18px 0 8px}.actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.primary{background:#187f7d;border-color:#116c6a;color:white}.flying-piece,.finger-piece{position:fixed;z-index:1000;pointer-events:none;display:grid;place-items:center;border-radius:16px;background:#fff6d7;font:40px Bloom,sans-serif;box-shadow:0 4px 16px #213b4933}.finger-piece{width:70px;height:70px}.flying-piece .kg-art,.finger-piece .kg-art{width:65px!important;height:65px!important}.complete{text-align:center;background:#fff4ce;border:3px solid white;border-radius:32px;padding:40px 20px;margin-top:24px}.complete img{object-fit:contain}.big-stars{font-size:50px}footer{text-align:center;font-size:13px;color:#617983;padding:25px}@keyframes join{from{transform:translateY(-12px) scale(.9)}to{transform:none}}@keyframes chug{50%{transform:translateX(9px)}}@keyframes happy{50%{transform:translateY(-12px) rotate(3deg)}}
@media(max-width:650px){main{padding:0 12px 25px}header{padding:15px}.brand{font-size:25px}.hero{padding:24px;border-radius:28px;gap:6px}.hero img{width:75px;height:110px}h1{font-size:34px}h2{font-size:26px}.hero p{font-size:15px}.eyebrow{font-size:11px}.switch{gap:8px}.switch button{font-size:15px;padding:10px 8px}.settings{gap:9px;padding:12px}.settings label{flex:1;min-width:105px}.settings .lesson-select{flex-basis:100%}.settings button{width:100%}.progress{font-size:12px;align-items:center}.progress span:last-child{font-size:18px;letter-spacing:0}.task{padding:18px 12px}.railway{padding:16px 9px 40px;min-height:230px}.train{gap:6px}.engine{flex-basis:55px;height:74px}.engine-body{width:53px;height:30px;bottom:10px}.cab{width:30px;height:35px;bottom:35px}.chimney{left:7px;width:12px;bottom:34px;height:24px}.carriage{min-width:0;height:84px;padding:3px 3px 15px;border-width:3px;border-radius:12px}.carriage strong{font-size:29px}.carriage small{font-size:9px}.wheel{height:18px;width:18px;border-width:4px}.wheel-a{left:4px}.wheel-b{right:4px}.carriage:before{left:-9px;width:7px}.scenery{font-size:28px}.choices{padding:16px 9px;gap:10px}.number-piece{font-size:35px;min-width:65px}.picture-piece{width:calc(33.333% - 8px);min-width:85px;font-size:14px;padding:8px 4px}.picture-piece .kg-art{width:65px!important;height:65px!important}.picnic{padding:25px 10px;gap:8px;min-height:270px}.feed-friend{width:95px}.feed-friend img{width:90px;height:140px}.bubble{padding:8px 5px;font-size:12px}.basket{min-height:160px;padding:14px 5px;border-width:5px;border-top-width:10px}.basket-piece .kg-art{width:38px!important;height:38px!important}.basket-pictures{gap:3px}.basket-piece{padding:2px;min-height:40px}.actions button{font-size:15px;flex:1}.scene-note{font-size:14px}.target-speech{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Atlas pictures need explicit boxes inside baskets as well as flex choices. */
.kg-art{display:block;width:74px;height:74px;flex-shrink:0;background-repeat:no-repeat;background-color:white;border-radius:12px;pointer-events:none}.kg-art-pair{display:flex;width:74px;height:74px;align-items:center;justify-content:center}.kg-art-pair .kg-art{width:50%!important;height:60%!important}.kg-shape-art{display:block;width:74px;height:74px}.picture-piece .kg-art-pair,.picture-piece .kg-shape-art{width:85px;height:85px}.basket-piece .kg-art-pair,.basket-piece .kg-shape-art{width:56px;height:56px}.target .kg-art-pair,.target .kg-shape-art{width:72px;height:72px}.flying-piece .kg-art-pair,.flying-piece .kg-shape-art,.finger-piece .kg-art-pair,.finger-piece .kg-shape-art{width:65px;height:65px}@media(max-width:650px){.picture-piece .kg-art-pair,.picture-piece .kg-shape-art{width:65px;height:65px}.basket-piece .kg-art-pair,.basket-piece .kg-shape-art{width:38px;height:38px}}

.target-speech{flex-basis:100%;max-width:none}
/* A bright toy-box palette, with calm space around each instruction. */
body{background-color:#fff9e8;background-image:radial-gradient(ellipse at 0 15%,#bdeddf 0,transparent 45%),radial-gradient(ellipse at 100% 40%,#e2c9fa 0,transparent 48%),radial-gradient(ellipse at 15% 90%,#ffe5a5 0,transparent 40%)}.hero{background:linear-gradient(115deg,#ffe178,#ffc9b0 48%,#d8bdff);box-shadow:0 8px 0 #edc08d}.switch button:first-child{background:#ffedb9;border-color:#ebbb52;color:#594511}.switch button:nth-child(2){background:#f8d4e6;border-color:#dca0c0;color:#683550}.switch [aria-pressed=true]{background:#208a88;color:white;border-color:#146c6b}.task{border-color:#9cd6ca;background:linear-gradient(120deg,#e6faf3 0%,#fff7d7 90%)}.choices{background:linear-gradient(120deg,#e8d9fc,#f9e4f3);border-color:#c4a4e3}.piece:nth-child(5n+1){background:#fff0bb;border-color:#edbd59}.piece:nth-child(5n+2){background:#d7f6ed;border-color:#64c8ae}.piece:nth-child(5n+3){background:#fce0eb;border-color:#e78db4}.piece:nth-child(5n+4){background:#dceeff;border-color:#85b9ed}.piece:nth-child(5n){background:#ede0ff;border-color:#b699dd}.piece:disabled{opacity:.68}.mission-checklist{flex-basis:100%;display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:8px 0}.requested-picture{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;padding:10px 14px;background:#fffef8;border:3px solid #e9b662;border-radius:21px;box-shadow:0 4px 0 #e6d0a0}.requested-picture .kg-art,.requested-picture .kg-art-pair,.requested-picture .kg-shape-art{width:60px!important;height:60px!important}.requested-picture small{padding:3px 9px;border-radius:10px;background:#fff0c3;font-weight:bold}.requested-picture.collected{border-color:#51b898;background:#e6f9ec;box-shadow:0 4px 0 #b0d8bf}.requested-picture.collected small{color:#236047;background:#c8efdc}.picnic{background:radial-gradient(ellipse at bottom,#9ed289,#dff3bb 55%,#fff0c6)}.basket{border-color:#d79443;border-top-color:#edb455;background:repeating-linear-gradient(0deg,#f6cc7a 0 13px,#eab25c 13px 17px)}.basket-piece{background:#fffaf0}.bubble{border-color:#de91b8;background:#fff0f7}.train-looks{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:24px 0 0}.train-looks>span{font-size:14px;font-weight:bold}.train-looks button{font-size:15px;min-height:46px;padding:9px 15px}.train-looks [data-train=rainbow]{background:linear-gradient(110deg,#ffdf85,#ffc4d4,#c9edff);border-color:#d29fcd}.train-looks [data-train=candy]{background:linear-gradient(110deg,#f9c9ea,#d9d3ff,#a6e4ef);border-color:#ac9bd9}.train-looks [aria-pressed=true]{outline:3px solid #287d83;outline-offset:3px}.railway{min-height:320px;background:linear-gradient(#bceafa 0%,#e6fbff 56%,#88caa2 57%,#b4df87 100%);padding-top:22px}.rail-rainbow{position:absolute;right:9%;top:16px;width:190px;height:95px;border-radius:160px 160px 0 0;background:radial-gradient(ellipse at 50% 100%,transparent 0 43%,#bc92e9 44% 49%,#73bbec 50% 55%,#80d6b1 56% 61%,#ffe37e 62% 67%,#fcae72 68% 73%,#f48fa8 74% 79%,transparent 80%);opacity:.85}.rail-garden{position:absolute;bottom:9px;left:22px;font-size:23px;letter-spacing:10px}.train-name{position:absolute;top:15px;left:16px;padding:5px 13px;background:#fffef2;border:2px solid #e9ca79;border-radius:20px;font:14px Bloom,sans-serif;color:#71532c}.scenery{position:relative;z-index:1}.train{margin-top:35px}.engine{flex-basis:120px;height:120px;filter:drop-shadow(0 5px 0 #29425322)}.engine-body{height:53px;width:117px;border-color:#bc4f68;background:linear-gradient(#ff8c9d,#ed5d7b);border-radius:20px 8px 10px 12px}.cab{width:55px;height:67px;bottom:48px;background:#29b2b2;border-color:#217b93;border-width:4px}.cab:after{inset:7px;background:linear-gradient(130deg,#f8fff7,#9be6ef);border:2px solid #fff}.chimney{height:35px;width:22px;bottom:59px;left:20px;background:#8a6ac4;border-color:#654e97;border-radius:5px}.engine-roof{position:absolute;right:-4px;bottom:109px;width:65px;height:12px;background:#9b6bd3;border:3px solid #7752a7;border-radius:8px}.engine-stripe{position:absolute;bottom:22px;left:6px;right:6px;height:8px;background:#ffdf74;border-radius:7px;z-index:1}.headlight{position:absolute;bottom:31px;left:-5px;width:18px;height:24px;background:#ffec8d;border:3px solid #cc9850;border-radius:8px;z-index:2}.engine-star{position:absolute;bottom:31px;left:35px;color:#fff6b6;font-size:22px;z-index:2}.engine .wheel{width:30px;height:30px;border-color:#3e789c;background:#ffe18c;box-shadow:inset 0 0 0 2px #fff3ba}.steam{position:absolute;width:21px;height:17px;left:20px;bottom:99px;background:#fffef3;border-radius:50%;opacity:.9}.steam-two{width:27px;height:20px;left:5px;bottom:117px}.carriage{height:120px;background:#faba71!important;border-color:#cb8541!important;box-shadow:0 6px 0 #b5bd7f,inset 0 4px 0 #fff9;overflow:visible}.carriage:nth-child(5n+2){background:#ffb3cd!important;border-color:#ce6c98!important}.carriage:nth-child(5n+3){background:#77d8ca!important;border-color:#3a9b96!important}.carriage:nth-child(5n+4){background:#ffdd78!important;border-color:#d1a64f!important}.carriage:nth-child(5n){background:#a5c8ff!important;border-color:#7298ce!important}.carriage:nth-child(5n+1){background:#d0adf1!important;border-color:#9f7bc0!important}.carriage.filled{color:#214855}.carriage.empty strong{color:#466775;opacity:.6}.carriage.active{outline-color:#db6c2d;outline-width:4px;background-image:linear-gradient(#fff5,#fff1)!important}.train-candy{background:linear-gradient(#edd3fa 0%,#fff1fc 56%,#ade4da 57%,#bfe7bc 100%)}.train-candy .engine-body{height:65px;width:119px;border-radius:48px 15px 13px 25px;background:linear-gradient(135deg,#4dc5df,#8b92e5);border-color:#6268a9}.train-candy .cab{border-radius:22px 16px 0 0;background:#ac7bd0;border-color:#77569b;bottom:55px;height:57px}.train-candy .cab:after{border-radius:12px 7px 3px 3px;background:#fff5af}.train-candy .chimney{height:20px;width:20px;bottom:71px;left:19px;background:#ef9ec4;border-color:#bf689e}.train-candy .engine-roof{bottom:106px;background:#f7a7ce;border-color:#bb76a6}.train-candy .engine-stripe{background:#ffd895;height:10px;bottom:23px}.train-candy .engine-star{color:#fff;bottom:39px;left:33px}.train-candy .engine .wheel{background:#fff0b4;border-color:#ad69a1}.train-candy .steam{background:#fff5fd}.train-candy .carriage{border-radius:26px 26px 12px 12px;background-image:repeating-linear-gradient(120deg,#ffffff20 0 15px,#ffffff50 15px 22px)!important}.train-candy .carriage:nth-child(2n){border-color:#af6fa5!important;background-color:#f2aed7!important}.train-candy .carriage:nth-child(2n+1){border-color:#7c92bd!important;background-color:#b6dcf0!important}.track{bottom:43px;border-color:#618778;background:repeating-linear-gradient(90deg,transparent 0 20px,#b18e6a 20px 28px)}
@media(max-width:650px){.requested-picture{gap:6px;padding:8px;font-size:14px;flex:1;max-width:180px}.requested-picture .kg-art,.requested-picture .kg-art-pair,.requested-picture .kg-shape-art{width:45px!important;height:45px!important}.requested-picture small{font-size:12px}.mission-checklist{gap:8px}.train-looks{gap:8px}.train-looks>span{flex-basis:100%;text-align:center}.train-looks button{font-size:13px;padding:8px 10px}.railway{min-height:260px;padding:20px 9px 50px}.rail-rainbow{width:130px;height:65px;right:4%;top:32px}.train-name{font-size:11px;top:10px;left:10px}.train{margin-top:32px}.rail-garden{font-size:18px;letter-spacing:7px;bottom:5px;left:10px}.engine{flex-basis:62px;height:90px}.engine-body{width:61px;height:36px;bottom:10px}.cab{width:32px;height:43px;bottom:38px}.cab:after{inset:4px}.chimney{left:10px;width:14px;bottom:40px;height:25px}.engine-roof{width:39px;height:9px;bottom:76px;right:-3px}.engine-stripe{bottom:21px;height:5px;left:5px;right:4px}.engine-star{font-size:13px;bottom:28px;left:20px}.headlight{width:12px;height:17px;bottom:23px}.engine .wheel{width:20px;height:20px;border-width:4px}.steam{width:15px;height:12px;left:8px;bottom:70px}.steam-two{width:18px;height:13px;left:0;bottom:84px}.carriage{height:91px}.carriage strong{font-size:27px}.train-candy .engine-body{width:62px;height:42px}.train-candy .cab{bottom:42px;height:39px;border-radius:12px 8px 0 0}.train-candy .engine-roof{bottom:76px}.train-candy .chimney{width:12px;height:14px;bottom:48px;left:10px}.train-candy .engine-stripe{height:6px;bottom:20px}.train-candy .engine-star{bottom:27px;left:19px}.train-candy .carriage{border-radius:16px 16px 10px 10px}}
.railway .train{padding-bottom:0}.railway .scene-note{position:absolute;bottom:5px;right:12px;left:24%;padding:2px 10px;background:#fff9d9e8;border-radius:14px;font-size:14px;line-height:1.4}.railway.success .rail-garden{opacity:.65}@media(max-width:650px){.railway .scene-note{left:10px;right:10px;font-size:12px}.railway.success .rail-garden{display:none}}
.railway .train{top:20px}@media(max-width:650px){.railway .train{top:12px}}

/* The completed train takes a trip, then returns ready for the next round. */
.kg-game-fair .railway.train-rainbow {
  background:
    radial-gradient(ellipse at 13% 66%, #27b96a 0 23%, transparent 24%),
    radial-gradient(ellipse at 87% 72%, #49ce48 0 25%, transparent 26%),
    linear-gradient(#59cfff, #e6fbff 58%, #8bdc40 59%, #b5ee69);
  border-color: #45a9db;
}

.kg-game-fair .railway.train-candy {
  background:
    radial-gradient(ellipse at 12% 69%, #f176b7 0 22%, transparent 23%),
    radial-gradient(ellipse at 88% 70%, #b276ef 0 24%, transparent 25%),
    linear-gradient(#e796ff, #fff1f7 59%, #60d9b3 60%, #a8f4a1);
  border-color: #bc76d7;
}

.railway .engine-body {
  background: linear-gradient(#ff6553, #e52c5f 70%, #bd1e49);
  border-color: #a8224d;
}
.railway .cab { background: linear-gradient(#35e7e1, #049dba); border-color: #156c91; }
.railway .engine-stripe { background: #ffe350; }
.railway .engine-roof { background: #9d45de; border-color: #6922a4; }
.railway.train-candy .engine-body { background: linear-gradient(145deg, #17e5f5, #6463f9); border-color: #4146b4; }
.railway.train-candy .cab { background: #e24aaf; border-color: #a8247e; }
.railway.train-candy .engine-roof { background: #f958a5; border-color: #af2f74; }

.railway .carriage:nth-child(5n+2) { --car-fill: #ffc62c; --car-edge: #bc670b; }
.railway .carriage:nth-child(5n+3) { --car-fill: #ff5ea7; --car-edge: #ba2470; }
.railway .carriage:nth-child(5n+4) { --car-fill: #27dbd1; --car-edge: #107986; }
.railway .carriage:nth-child(5n) { --car-fill: #8eafff; --car-edge: #4659ba; }
.railway .carriage:nth-child(5n+1) { --car-fill: #d48aff; --car-edge: #7d359f; }

.railway.train-candy .carriage:nth-child(odd) { --car-fill: #44dcfc; --car-edge: #1c7aaf; }
.railway.train-candy .carriage:nth-child(even) { --car-fill: #ff71c7; --car-edge: #ab327b; }
.railway .carriage:nth-child(n) {
  background-color: var(--car-fill) !important;
  border-color: var(--car-edge) !important;
  color: #30204c;
  box-shadow: inset 0 4px 0 #fff8, 0 5px 0 #224a592e;
}
.railway .carriage strong { display: block; text-shadow: 0 1px #fffc; }

.railway .engine .wheel, .railway .carriage .wheel {
  background: conic-gradient(#ffc22c 0 25%, #fff3a4 25% 50%, #ffc22c 50% 75%, #fff3a4 75% 100%);
}
.railway .track {
  border-color: #4e5270;
  background: repeating-linear-gradient(90deg, transparent 0 15px, #b26f43 15px 26px);
}
.railway.success .train { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .railway.success.departing .train { animation: train-departure 2.6s ease-in-out both; }
  .railway.departing .wheel { animation: rail-wheel-turn .36s linear 7; }
  .railway.departing .steam { animation: rail-steam .66s ease-out 4; }
  .railway.departing .steam-two { animation-delay: .13s; }
  .railway.departing .track { animation: rail-sleepers .38s linear 6; }
}
@media (prefers-reduced-motion: reduce) {
  #replayTrain { display: none; }
}
@keyframes train-departure {
  0% { transform: translateX(0); opacity: 1; }
  42% { transform: translateX(-108%); opacity: 1; }
  45% { transform: translateX(-108%); opacity: 0; }
  48% { transform: translateX(108%); opacity: 0; }
  51% { transform: translateX(108%); opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes rail-wheel-turn { to { transform: rotate(-360deg); } }
@keyframes rail-steam {
  from { transform: translate(1px, 5px) scale(.8); opacity: .85; }
  to { transform: translate(23px, -25px) scale(1.65); opacity: 0; }
}
@keyframes rail-sleepers { to { background-position-x: 26px; } }
