@font-face{font-family:Fredoka;src:url(assets/Fredoka.ttf);font-display:swap}:root{--ink:#254d50;--cream:#fff9e9;--gold:#f4bc4b;--teal:#247c82}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;color:var(--ink);font-family:Fredoka,Arial,sans-serif;background:#eff6ed}button,select,input{font:inherit}button{cursor:pointer;border:2px solid #adc9bd;border-radius:12px;background:var(--cream);color:var(--ink);min-height:38px;padding:7px 12px;box-shadow:0 3px #b3c6b8;touch-action:manipulation}button:active{transform:translateY(2px);box-shadow:0 1px #b3c6b8}button:disabled{cursor:default;opacity:.5}button[aria-pressed=true]{background:#cce5d8;border-color:var(--teal)}button:focus-visible,select:focus-visible{outline:3px solid #dd9023;outline-offset:2px}.primary{background:var(--gold);border-color:#d49b38;box-shadow:0 4px #c88f2e;font-size:20px}#app{height:100dvh;min-height:650px;position:relative;overflow:hidden}#world{height:49%;position:relative;overflow:hidden;background:linear-gradient(#ffffff15,#ffffff05),url(assets/estacion.webp) center 55%/cover;border-bottom:6px solid #c69860}#world>header{position:absolute;top:5%;left:2%;z-index:2;background:#fff9e9ee;padding:12px 18px;border-radius:17px;box-shadow:0 4px #a56f3b30}h1{font-size:clamp(22px,2.4vw,38px);line-height:1.02;margin:5px 0}small{letter-spacing:.06em}#world header small{font-size:11px}#story{position:absolute;right:3%;top:6%;width:39%;background:#fff9e9ec;padding:16px 22px;border-radius:20px}#story h2{font-size:25px;margin:0 0 8px}#story p{font-size:18px;line-height:1.3;margin:0}#progress{position:absolute;bottom:0;left:0;right:0;text-align:center;margin:0;padding:7px;background:#fff9e9ed;font-size:16px;z-index:3}#routes{position:absolute;left:3%;right:3%;top:32%;bottom:9%;display:flex;flex-direction:column;justify-content:end;gap:5px}.route{height:30%;position:relative;border-bottom:5px solid #7b7460;background:linear-gradient(transparent 75%,#e6d1a6 75%);flex:1;min-height:0}.route>span{position:absolute;right:1%;bottom:12px;background:#fff9e9;padding:4px 12px;border-radius:8px;color:var(--rail-color)}.train{position:absolute;left:8%;height:100%;width:60%;display:flex;align-items:end;flex-direction:row-reverse;justify-content:end;gap:2px}.locomotive{height:110%;width:auto;max-width:45%;object-fit:contain;z-index:2}.driver{position:absolute;height:90%;left:68%;bottom:18%;z-index:1;max-width:15%;object-fit:contain}.cargo{background:var(--rail-color);color:white;padding:5px 16px;border-radius:9px 9px 4px 4px;border:3px solid #e0b975;height:54%;display:flex;align-items:center;box-shadow:0 5px #4f5552;font-size:16px}.departing .train{animation:depart 2.7s ease-in both}@keyframes depart{0%{transform:translateX(0)}100%{transform:translateX(180%)}}.paused *{animation-play-state:paused!important}.menu-milo{height:100%;position:absolute;left:16%;bottom:0;object-fit:contain}.menu-engine{height:100%;position:absolute;left:38%;bottom:0;width:45%;object-fit:contain}#village{position:absolute;top:7%;right:2%;width:48%;display:flex;flex-wrap:wrap;gap:5px;justify-content:end}.destination{font-size:14px;text-transform:capitalize;background:#eee6d5dd;border:2px solid #c9b799;padding:5px 10px;border-radius:15px;color:#6c6d65}.destination.restored{background:#fff0ab;color:#4b631e;border-color:#9ab665;box-shadow:0 0 15px #fff2ab}#menu{position:absolute;top:51%;bottom:9%;left:4%;right:4%;display:grid;grid-template-columns:1fr 1.8fr;gap:35px;align-items:center}.menu-copy h2{font-size:clamp(24px,3vw,43px);margin:9px 0}.menu-copy p{max-width:340px;font-size:18px}.settings{display:flex;flex-direction:column;gap:13px}.row{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}.row label{font-size:14px;display:flex;gap:6px;align-items:center}select{padding:8px;border:2px solid #b6cec2;border-radius:10px;background:#fffcf3;color:var(--ink);max-width:100%}#curriculum{font-size:18px;text-align:center;margin:0;background:#fff9e9;padding:10px;border-radius:12px}.check{display:flex;justify-content:center;gap:8px;align-items:center}input[type=checkbox]{width:20px;height:20px}#menuNote{text-align:center;font-size:12px;letter-spacing:0}footer{position:absolute;bottom:1.4%;left:2%;right:2%;height:5.5%;display:flex;justify-content:center;gap:10px}footer button{font-size:14px;min-height:32px;padding:4px 12px}#desks{position:absolute;top:50.5%;bottom:8.5%;left:1%;right:1%;display:flex;gap:10px}.desk{flex:1;min-width:0;border:3px solid var(--player);box-shadow:0 4px #a4b6a5;border-radius:18px;background:#fffdf3;display:grid;grid-template-rows:30px 50px minmax(0,1fr) 36px 38px;gap:5px;padding:8px;overflow:hidden}.desk-head{display:flex;align-items:center;gap:7px}.desk-head img{width:28px;height:32px;object-fit:contain}.desk-head .score{margin-left:auto;font-size:13px}.desk-head button{font-size:12px;min-height:28px;padding:3px 8px}.mission{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px}.mission small{font-size:11px;letter-spacing:0;color:#687d71}.mission strong{font-size:18px;line-height:1.1}.work{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;touch-action:none;padding:2px}.track,.yard{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:6px;min-height:50%;padding:8px;border-radius:12px}.track{background:repeating-linear-gradient(90deg,transparent 0 18px,#a78d6930 18px 24px),#e3eee6;border-bottom:4px solid #899781}.yard{background:#f9efd8;min-height:40%}.wagon,.slot{font-size:clamp(17px,1.5vw,26px);border:2px solid #b98144;border-bottom:5px solid #835d38;background:linear-gradient(#fff9e7,#f9dba1);border-radius:8px;min-height:43px;padding:4px 9px;box-shadow:0 3px #7d8b7a;touch-action:none;user-select:none}.slot:not([data-token]){background:#f9fcf4a8;border:2px dashed #8ea593;min-width:44px;color:#92a18c;box-shadow:none}.selected{outline:3px solid #178eab;outline-offset:1px}.slot.glow{box-shadow:0 0 0 3px #f2b73b}.feedback{margin:0;font-size:14px;line-height:1.1;display:flex;align-items:center;justify-content:center;text-align:center;background:#edf3e3;border-radius:8px;padding:4px}.feedback.error{background:#ffeddc;color:#874b2b}.feedback.success{background:#d9efca}.actions{display:flex;gap:5px}.actions button{font-size:13px;padding:4px 9px;min-height:34px}.actions .primary{flex:1;font-size:16px}.drag-ghost{position:fixed;z-index:30;transform:translate(-50%,-70%);pointer-events:none;max-width:280px;background:#ffe4a1}.desk[data-grade='5'] .wagon,.desk[data-grade='5'] .slot,.desk[data-grade='6'] .wagon,.desk[data-grade='6'] .slot{font-size:16px;min-height:35px}.solved{background:#f3fae9}#ending{position:absolute;top:51%;bottom:9%;left:5%;right:5%;text-align:center;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}#ending h2{width:100%;margin:0;font-size:30px}#endText{width:100%;margin:0;font-size:18px}#celebration{width:100%;height:45%;display:flex;justify-content:center;gap:20px}#celebration img{height:100%;object-fit:contain;animation:celebrate 1s ease-in-out infinite alternate}@keyframes celebrate{to{transform:translateY(-8px) rotate(4deg)}}#overlay{position:absolute;inset:0;background:#1b34376b;z-index:50;display:flex;align-items:end;justify-content:center;padding-bottom:9%}#overlay section{background:var(--cream);border:3px solid #d8ad66;border-radius:20px;padding:15px 22px;max-width:650px;max-height:39%;overflow:auto;text-align:center}#overlay h2{margin:0 0 8px}#overlay p{font-size:18px;line-height:1.4}#desks[data-count='1'] .work{flex-direction:row}#desks[data-count='1'] .track,#desks[data-count='1'] .yard{width:50%;min-height:100%}#desks[data-count='1'] .wagon,#desks[data-count='1'] .slot{font-size:24px;min-height:48px}
@media(max-height:800px) and (min-width:700px){.desk{grid-template-rows:25px 40px minmax(0,1fr) 30px 34px;gap:3px;padding:5px}.mission strong{font-size:16px}.wagon,.slot{font-size:16px;min-height:33px;padding:3px 6px}.track,.yard{padding:5px;gap:4px}.desk[data-grade='6'] .wagon,.desk[data-grade='6'] .slot{font-size:13px;min-height:29px}.feedback{font-size:12px}.settings{gap:7px}.menu-copy p{font-size:15px}}
@media(max-width:699px){#app{min-height:750px}#world{height:29%}#world>header{top:4%;left:3%;padding:8px 10px}h1{font-size:20px}#world header small{font-size:9px}#story{right:3%;top:7%;width:45%;padding:9px}#story h2{font-size:16px}#story p{font-size:12px}#routes{top:35%;bottom:13%}.menu-milo{left:10%}.menu-engine{left:38%;width:55%}#progress{font-size:11px;padding:4px}#menu{top:31%;bottom:10%;display:flex;flex-direction:column;gap:10px;justify-content:center}.menu-copy{display:none}.settings{gap:12px;width:100%}.row{gap:6px}.row label{font-size:13px}#curriculum{font-size:16px}.settings select{font-size:14px}#players button{font-size:14px;padding:8px}.playing #world>header{max-width:44%}#village{width:49%;top:5%}.destination{font-size:10px;padding:3px 5px}.playing #routes{top:47%}.cargo{font-size:10px;padding:2px 7px}.route>span{font-size:10px;padding:2px 5px;bottom:5px}.driver{left:70%}.train{width:80%;left:2%}#desks{top:30%;bottom:12%;left:2%;right:2%}.desk{grid-template-rows:30px 56px minmax(0,1fr) 42px 40px;padding:6px}.mission strong{font-size:19px}#desks[data-count='1'] .work{flex-direction:column}#desks[data-count='1'] .track,#desks[data-count='1'] .yard{width:auto;min-height:45%}#desks[data-count='1'] .wagon,#desks[data-count='1'] .slot{font-size:21px;min-height:44px}.desk[data-grade='6'] .work .wagon,.desk[data-grade='6'] .work .slot{font-size:16px;min-height:34px}.feedback{font-size:14px}footer{height:9%;bottom:1%;flex-wrap:wrap;gap:5px}footer button{font-size:12px;padding:4px 8px;min-height:30px}.actions button{font-size:13px;padding:4px 7px}.actions .primary{font-size:16px}#ending{top:31%;bottom:12%}#ending h2{font-size:24px}#overlay{padding-bottom:12%}#overlay section{max-height:56%;width:94%;padding:12px}#overlay p{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}.departing .train{opacity:.25}}
@media(min-width:700px){#desks:not([data-count='1']) .desk[data-grade='5'] .track,#desks:not([data-count='1']) .desk[data-grade='5'] .yard,#desks:not([data-count='1']) .desk[data-grade='6'] .track,#desks:not([data-count='1']) .desk[data-grade='6'] .yard{min-height:35px;padding:4px;flex:0 0 auto;gap:4px}#desks:not([data-count='1']) .desk[data-grade='5'] .work,#desks:not([data-count='1']) .desk[data-grade='6'] .work{gap:5px;justify-content:center}#desks:not([data-count='1']) .desk[data-grade='5'] .slot,#desks:not([data-count='1']) .desk[data-grade='5'] .wagon,#desks:not([data-count='1']) .desk[data-grade='6'] .slot,#desks:not([data-count='1']) .desk[data-grade='6'] .wagon{font-size:14px;min-height:29px;padding:3px 5px}.route .driver{left:55%;max-width:10%;bottom:25%;height:68%;z-index:3}.route .cargo{font-size:13px;padding:3px 10px}}
/* Trains sit on the illustrated railway, without overlaid tracks or fake mail boxes. */
.playing #world{background-position:center bottom}.playing #routes{inset:0;display:flex;flex-direction:row;align-items:start;gap:0;pointer-events:none}.playing .route{position:relative;flex:1;top:calc(var(--rail-y) - var(--train-h));height:var(--train-h);min-width:0;border:0;background:none}.playing .train{left:6%;bottom:0;width:88%;height:100%;display:block}.playing .locomotive{height:100%;width:100%;max-width:none;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 3px #44341d40)}.playing .driver{display:none}.playing .route>span{bottom:-27px;left:50%;right:auto;transform:translateX(-50%);font-size:13px;padding:3px 13px;border:1px solid var(--rail-color);box-shadow:0 2px #7f64422b}.playing .departing .train{animation:illustrated-depart 2.7s ease-in both}@keyframes illustrated-depart{0%,12%{transform:translateX(0);opacity:1}85%{opacity:1}100%{transform:translateX(110vw);opacity:0}}
.track{background:#eef3e9;border:2px solid #b7cbb5;border-bottom:4px solid #98b69c;gap:8px}.yard{background:#fff4df;border:1px solid #e7d0a8;gap:8px}.wagon,.slot{border-radius:11px;border:2px solid #cc9e5b;border-bottom:4px solid #a97c3f;background:linear-gradient(#fffdf5,#ffeac4);box-shadow:0 3px #ccbc9e;font-weight:400}.slot:not([data-token]){background:#ffffff9c;border:2px dashed #b4c3ad}.selected{outline-color:#238f98}.desk{background:linear-gradient(#fffdf7,#fbf4e5)}
#desks[data-count='1'] .work{flex-direction:column;align-items:center;gap:10px}#desks[data-count='1'] .track,#desks[data-count='1'] .yard{width:100%;max-width:1100px;min-height:44%;flex:1}#desks[data-count='1'] .slot,#desks[data-count='1'] .wagon{font-size:clamp(22px,2vw,30px);min-height:48px;padding:6px 15px}#desks[data-count='1'] .desk-head{padding:0 8px}#desks[data-count='1'] .mission strong{font-size:22px}.playing #progress{font-size:14px;background:#fff9e9e8}
@media(max-width:699px){.playing .route>span{bottom:-20px;font-size:10px;padding:2px 8px}.playing #progress{font-size:11px}#desks[data-count='1'] .mission strong{font-size:18px}#desks[data-count='1'] .slot,#desks[data-count='1'] .wagon{font-size:21px;padding:5px 9px}.playing #routes{top:0;bottom:0;left:0;right:0}}
@media(prefers-reduced-motion:reduce){.playing .departing .train{animation:none!important;opacity:.25}}
.playing #world>header{padding:7px 12px;top:3%;max-width:250px}.playing #world>header small{display:none}.playing #world>header h1{font-size:21px;margin:0;line-height:1.08}@media(max-width:699px){.playing #world>header{max-width:43%;padding:6px 9px}.playing #world>header h1{font-size:17px}}
/* Size the content first, then share the remaining space: never crop a phrase row. */
#desks[data-count] .desk[data-grade] .work{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px;padding:4px;overflow:hidden;min-height:0}
#desks[data-count] .desk[data-grade] .work .track,#desks[data-count] .desk[data-grade] .work .yard{width:100%;max-width:none;min-height:0;height:auto;flex:0 0 auto;padding:6px;gap:6px;align-content:center;box-sizing:border-box}
#desks[data-count] .desk[data-grade] .work .slot,#desks[data-count] .desk[data-grade] .work .wagon{font-size:var(--word-size,22px);line-height:1.15;min-height:var(--word-height,40px);padding:4px var(--word-pad,9px);max-width:100%;white-space:normal;overflow-wrap:normal;flex:0 0 auto}
#desks[data-count] .desk[data-grade] .work .slot:not([data-token]){min-width:34px}
@media(max-height:800px) and (min-width:700px){.desk{grid-template-rows:25px 37px minmax(0,1fr) 28px 34px;gap:3px;padding:5px}#desks[data-count] .desk[data-grade] .work{gap:4px;padding:3px}#desks[data-count] .desk[data-grade] .work .track,#desks[data-count] .desk[data-grade] .work .yard{padding:4px;gap:4px}}

@media (min-width:700px) and (max-height:740px){#desks{bottom:8%}.desk{grid-template-rows:22px 28px minmax(0,1fr) 22px 30px;gap:2px;padding:4px}.desk-head img{height:22px}.desk-head button{min-height:22px}.mission small{display:none}.actions button{min-height:28px;padding:2px 6px}.feedback{font-size:11px}}
.activity-label{display:flex;align-items:center;justify-content:center;gap:10px}.settings{gap:8px}.train-lights{display:flex;gap:3px;justify-content:center;margin-top:3px}.train-lights i{width:7px;height:7px;border-radius:50%;background:#bcb8a5}.train-lights .lit{background:#ffd75b;box-shadow:0 0 5px #ffb800}.slot.repaired{border-color:#389275!important;background:#e4f5d6!important}.desk[data-activity="repair"] .yard,.desk[data-activity="improve"] .yard{background:#f5e8cd}@media(max-width:699px){.settings{gap:8px}.activity-label{font-size:14px}#curriculum{padding:6px;font-size:14px}}
@media(min-width:700px) and (max-height:800px){#menu{grid-template-columns:1fr;gap:0;top:50.5%;bottom:9%}.menu-copy{display:none}.settings{gap:4px}.settings select{padding:4px}.settings button{min-height:32px;padding:4px 10px}#curriculum{padding:5px;font-size:15px}#menuNote{font-size:10px}.settings .check{font-size:13px}.settings input{height:16px}}
/* Readable miniature carriages: cream cargo panel, chassis, wheels and couplers. */
#desks[data-count] .desk[data-grade] .work .wagon,
#desks[data-count] .desk[data-grade] .work .slot[data-token]{
 position:relative;isolation:isolate;border:2px solid #638f88;border-bottom:5px solid #36625e;
 border-radius:5px 5px 3px 3px;background:linear-gradient(#fffef5,#fff0cc);
 box-shadow:inset 4px 0 #91b9aa,inset -4px 0 #91b9aa,inset 0 3px #b5d1bd;
 padding:4px max(10px,var(--word-pad,9px)) 5px;margin:0 2px 7px;
 max-width:calc(100% - 4px);color:#234d50;
}
#desks[data-count] .desk[data-grade] .work .wagon::after,
#desks[data-count] .desk[data-grade] .work .slot[data-token]::after{
 content:"";position:absolute;left:0;right:0;bottom:-10px;height:10px;pointer-events:none;
 background:radial-gradient(circle at 16% 50%,#e9dab8 0 2px,#435558 2.5px 4.5px,transparent 5px),radial-gradient(circle at 84% 50%,#e9dab8 0 2px,#435558 2.5px 4.5px,transparent 5px);
}
#desks[data-count] .desk[data-grade] .work .wagon::before,
#desks[data-count] .desk[data-grade] .work .slot[data-token]::before{
 content:"";position:absolute;left:-6px;right:-6px;height:4px;bottom:1px;
 background:linear-gradient(90deg,#6a7470 0 5px,transparent 5px calc(100% - 5px),#6a7470 calc(100% - 5px));pointer-events:none;
}
#desks[data-count] .desk[data-grade] .work .slot:not([data-token]){border-radius:5px;margin:0 2px 7px;max-width:calc(100% - 4px)}
#desks[data-count] .desk[data-grade] .work .track{background:#e8f1e5;border-bottom-color:#718b79}
#desks[data-count] .desk.solved .work button{opacity:1}
.desk.solved .track{animation:message-departs 2.7s ease-in both}
@keyframes message-departs{0%,30%{transform:translateX(0);opacity:1}100%{transform:translateX(110%);opacity:0}}
@media(prefers-reduced-motion:reduce){.desk.solved .track{animation:none}}
/* Keep the chassis inside the existing touch target in compact layouts. */
#desks[data-count] .desk[data-grade] .work .wagon,
#desks[data-count] .desk[data-grade] .work .slot[data-token]{margin:0;max-width:100%;padding:4px var(--word-pad,9px);border-bottom-width:4px}
#desks[data-count] .desk[data-grade] .work .slot:not([data-token]){margin:0;max-width:100%}
#desks[data-count] .desk[data-grade] .work .wagon::after,
#desks[data-count] .desk[data-grade] .work .slot[data-token]::after{bottom:-7px;height:8px;background:radial-gradient(circle at 16% 50%,#e9dab8 0 1.5px,#435558 2px 3.5px,transparent 4px),radial-gradient(circle at 84% 50%,#e9dab8 0 1.5px,#435558 2px 3.5px,transparent 4px)}
#desks[data-count] .desk[data-grade] .work .wagon::after,
#desks[data-count] .desk[data-grade] .work .slot[data-token]::after{bottom:-9px;height:12px;background:radial-gradient(circle at 16% 50%,#eadcb9 0 2px,#435558 2.5px 5px,transparent 5.5px),radial-gradient(circle at 84% 50%,#eadcb9 0 2px,#435558 2.5px 5px,transparent 5.5px)}
.delivery-note{position:absolute;left:5%;right:5%;bottom:12%;z-index:4;padding:10px;border:2px solid #a9bc78;border-radius:12px;background:#fff9dc;color:#234d50;text-align:center;font-size:clamp(13px,1.4vw,21px);animation:delivery-arrives .5s ease-out both;box-shadow:0 4px 12px #354c4122}
@keyframes delivery-arrives{from{opacity:0;transform:translateY(15px) scale(.9)}to{opacity:1;transform:none}}
.desk[data-activity="improve"] .mission small{display:none}
.desk[data-activity="improve"] .mission strong{font-size:clamp(14px,1.3vw,19px)!important}
/* v10: separate header, scenery and progress; artwork never sits behind labels. */
#world,.playing #world{--scene-top:60px;--scene-bottom:32px;background:#eff8ed;border-bottom:4px solid #c69860;isolation:isolate}
#world::before{content:"";position:absolute;inset:var(--scene-top) 0 var(--scene-bottom);background:url(assets/estacion-panorama.webp) center bottom/cover no-repeat;z-index:-1}
#world>header,.playing #world>header{top:0;left:0;height:var(--scene-top);width:38%;max-width:none;padding:8px 18px;display:flex;align-items:center;background:#eff8ed;border-radius:0;box-shadow:none}
#world>header small{display:none}#world>header h1,.playing #world>header h1{font-size:clamp(16px,1.6vw,23px);margin:0;line-height:1.05}#world>header br{display:none}
#story{top:0;right:0;width:60%;height:var(--scene-top);padding:10px 18px;background:none;display:flex;align-items:center;justify-content:end}#story h2{font-size:18px;margin:0}#story p{display:none}
#village{top:0;right:12px;height:var(--scene-top);width:59%;align-content:center;gap:4px;z-index:3}.destination{font-size:12px;padding:4px 8px}
#routes,.playing #routes{inset:var(--scene-top) 0 var(--scene-bottom);display:flex;flex-direction:row;gap:0;align-items:start}
.playing .route{top:calc(var(--rail-y) - var(--train-h));height:var(--train-h)}
.menu-engine{left:43%;width:38%;height:var(--train-h);top:calc(var(--rail-y) - var(--train-h));bottom:auto;object-position:center bottom}
.menu-milo{left:23%;width:15%;height:var(--train-h);top:calc(var(--rail-y) - var(--train-h));bottom:auto;object-position:center bottom}
.playing .route>span{bottom:-32px;font-size:12px;background:#fffbed}
#progress,.playing #progress{height:var(--scene-bottom);display:flex;align-items:center;justify-content:center;font-size:14px;padding:4px 8px;background:#fff9e9}
.delivery-note{bottom:35%;font-size:clamp(12px,1.2vw,18px)}
@media(max-width:699px){
 #world,.playing #world{--scene-top:44px;--scene-bottom:27px}
 #world>header,.playing #world>header{width:100%;max-width:none;justify-content:center;padding:7px 10px}
 #world>header h1,.playing #world>header h1{font-size:17px}
 #story,#village{display:none!important}
 #progress,.playing #progress{font-size:10px}
 .menu-milo{left:10%;width:25%}.menu-engine{left:38%;width:57%}
 .playing .route>span{bottom:-25px;font-size:10px;padding:2px 7px}
 .train-lights i{width:5px;height:5px}
 #menu{justify-content:flex-start;padding-top:12px;bottom:12%}
 footer{bottom:max(1%,env(safe-area-inset-bottom));height:9%}
}
@media(max-width:699px){#app{min-height:0;height:100dvh}#world>header br::after{content:" "}}

/* Keep the reading task and its controls legible across a classroom. */
@media (min-width: 1000px) {
  #desks .desk .mission strong { font-size: clamp(20px, 1.55vw, 30px); }
  #desks .desk .mission small, #desks .desk .desk-head .score { font-size: clamp(13px, 1vw, 19px); }
  #desks .desk .feedback, #desks .desk .actions button,
  #desks .desk .desk-head button { font-size: clamp(15px, 1.12vw, 21px); }
  #desks .desk .desk-head b, #desks .desk .actions .primary { font-size: clamp(18px, 1.4vw, 26px); }
  #desks .desk[data-activity="improve"] .mission strong { font-size: clamp(18px, 1.35vw, 25px)!important; }
  #desks[data-count] .desk[data-grade] .work .slot:not([data-token]) { min-width: var(--word-height, 40px); }
  .playing footer button { font-size: clamp(15px, 1.1vw, 21px); }
}
