@font-face{font-family:Rubik;src:url("assets/rubik-regular.woff") format("woff");font-weight:400;font-display:swap}
@font-face{font-family:Rubik;src:url("assets/rubik-bold.woff") format("woff");font-weight:700;font-display:swap}
:root{--ink:#312540;--muted:#6d6076;--purple:#63369b;--border:#e1d9e8;--pale:#faf8fc;--green:#30695b;font-family:Rubik,Arial,sans-serif;color:var(--ink);background:#fbf9f7;color-scheme:light}
*{box-sizing:border-box}body{margin:0;min-width:270px;background-image:radial-gradient(#c6b8c841 .7px,transparent 1px);background-size:14px 14px}
button,select{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.54}
button:focus-visible,select:focus-visible{outline:3px solid #147989;outline-offset:3px}button{border:0;background:transparent}
button:active:enabled{transform:translateY(1px)}h1,h2,h3,p{margin:0}
.ic{display:inline-block;vertical-align:middle;width:1.18em;height:1.18em;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.bank,[hidden]{display:none!important}
.wrap{width:min(1176px,calc(100% - 68px));margin-inline:auto}.top{background:white;border-bottom:1px solid #e9e1e8}.nav{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brands{display:flex;align-items:center;gap:clamp(12px,1.7vw,27px)}.brands img{height:auto;object-fit:contain;display:block}.id-logo{width:126px}.fme-logo{width:169px}.bhp-logo{width:151px}.brands i{width:1px;height:24px;background:var(--border)}
.help,.talk,.primary,.secondary,.close,.link-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.help,.secondary{background:#fff;border:1px solid #d9cfdf;color:#554362}.help{font-size:.87rem;border-radius:24px;padding:10px 15px}.help:hover,.secondary:hover:enabled{background:#f6f1fa}
main{padding:20px 0 36px}.hero{display:flex;align-items:center;justify-content:space-between;border-radius:20px;overflow:hidden;position:relative;isolation:isolate;background:#382256 url("assets/circuito.webp") center/100% 100%;color:white;min-height:209px}
.hero-copy{z-index:2;width:68%;padding:22px clamp(22px,3vw,42px)}.eyebrow{display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.13em;font-size:.74rem;font-weight:700;color:#ffda87}.eyebrow .ic{width:18px;height:18px}
h1{font-size:clamp(2.4rem,4.4vw,3.9rem);line-height:1.03;letter-spacing:-.052em;margin:5px 0 7px}h1 em{color:#ffd36a;font-style:normal}.hero-copy p{font-size:1rem;line-height:1.39;color:#fcf6ff;max-width:540px;min-height:2.78em}
.talk{min-height:34px;background:#ffda79;color:#382545;border-radius:9px;padding:7px 13px;margin-top:12px;font-size:.86rem;box-shadow:0 2px 0 #a78246}.talk:hover{background:#ffe294}
.portrait{position:absolute;right:6.5%;top:0;bottom:0;width:28%;isolation:isolate;display:grid;place-items:center;padding:8px;z-index:1}
.portrait:focus-visible{outline-offset:-5px;border-radius:14px}.portrait img{position:relative;width:100%;height:100%;object-fit:contain;max-height:198px;filter:drop-shadow(0 4px 1px #2b193b44);animation:float 5s ease-in-out infinite}
.halo{position:absolute;width:clamp(140px,16vw,206px);aspect-ratio:1;border-radius:50%;z-index:-1;background:repeating-linear-gradient(150deg,transparent 0 7px,#fff8dd28 7px 8px),linear-gradient(150deg,#ffc458,#efa549);box-shadow:0 0 0 6px #fcce7d20,0 0 0 7px #fcce7d40}
.portrait:hover img{filter:drop-shadow(0 5px 2px #2b193bdd)}.portrait.pop img{animation:wave .55s ease-in-out}
@keyframes float{0%,100%{transform:translateY(2px) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
@keyframes wave{25%{transform:rotate(-5deg)}70%{transform:rotate(4deg)}}
.work{display:grid;grid-template-columns:1.08fr 1fr;gap:19px;margin-top:18px;align-items:start}.card{background:#fff;border:1px solid var(--border);border-radius:19px;padding:clamp(18px,1.85vw,25px);box-shadow:0 3px 0 #35234705;min-width:0}.card-heading,.palette-label,.script-label,.actions,.readouts,.motor,.time,.dialog-actions{display:flex;align-items:center}.card-heading{gap:10px;margin-bottom:19px}.title-icon,.station-icon{display:grid;place-items:center;border-radius:10px;width:35px;height:35px;flex:none}.title-icon .ic{width:21px;height:21px}.purple{background:#f0e8f7;color:#693d95}.teal{background:#dff2eb;color:#306f62}h2{font-size:clamp(1.35rem,2.0vw,1.72rem);line-height:1.15;letter-spacing:-.045em}h3{font-size:1.01rem;letter-spacing:-.022em;line-height:1.3}
.palette-label,.script-label{justify-content:space-between;gap:8px}.palette-label span,.script-label span{font-size:.79rem;color:var(--muted)}.script-label span{background:#f4f0f6;border-radius:6px;padding:3px 7px}
.palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 21px}
.forward{--tile:#c0eadf;--edge:#8fc6b6;--tint:#245c51}.back{--tile:#e2d3f3;--edge:#c6b0dd;--tint:#553973}.wait{--tile:#ffdf9e;--edge:#dfbc77;--tint:#73501b}.stop{--tile:#facdca;--edge:#dfa9aa;--tint:#863d4b}
.key{position:relative;display:grid;place-items:center;align-content:center;gap:4px;padding:8px 2px 7px;background:var(--tile);color:var(--tint);border-radius:9px;border:1px solid var(--edge);box-shadow:0 3px 0 var(--edge);font-size:.85rem;font-weight:700;min-height:58px}
.key .ic{width:23px;height:23px;stroke-width:2.5}.key:hover:enabled{filter:saturate(1.35);box-shadow:0 4px 0 var(--edge);transform:translateY(-1px)}.key:active:enabled{transform:translateY(2px);box-shadow:0 1px 0 var(--edge)}
.script{margin-top:9px;padding:13px 14px 15px;border-radius:13px;border:1px solid #ded5e8;background:radial-gradient(#c8bbd052 .8px,transparent 1px) 0 0/11px 11px,#faf8fc;max-height:390px;overflow:auto;scrollbar-color:#bcacc8 transparent}
.begin{width:fit-content;position:relative;display:flex;align-items:center;gap:8px;background:#634190;color:#fff;padding:7px 14px;border-radius:8px 8px 7px 3px;font-size:.86rem;font-weight:700}.begin:after{content:"";position:absolute;bottom:-4px;left:15px;width:17px;height:5px;background:inherit;border-radius:0 0 4px 4px}.begin .ic{width:15px;height:15px}
#placeholder{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px dashed #bfaccd;border-radius:9px;background:#ffffffb8;margin:12px 0 0;min-height:57px;font-size:.9rem;color:#776585}
#program{list-style:none;margin:0;padding:0}#program:not(:empty){padding-top:9px}.row{display:flex;align-items:center;gap:8px;min-height:40px;margin:4px 0;padding:3px 5px 3px 9px;border:1px solid var(--edge);border-left:5px solid var(--edge);border-radius:8px;background:color-mix(in srgb,var(--tile) 62%,white);font-size:.88rem;color:var(--tint)}.row.active{outline:2px solid #7342a3;outline-offset:0}.row.issue{outline:2px dashed #ad4935}.num{font-size:.76rem;opacity:.78;font-variant-numeric:tabular-nums}.row-label{font-weight:700}.row .ic{width:16px;height:16px}.row select{border-radius:5px;border:1px solid #d2b277;padding:3px 2px;color:#614612;background:#fff9ef;font-size:.82rem}.row-tools{margin-left:auto;display:flex;gap:2px}.row-tools button{height:28px;width:28px;display:grid;place-items:center;border-radius:5px;color:#514259}.row-tools button:hover:enabled{background:#ffffffa6}.row-tools button:disabled{opacity:.25}
.actions{gap:9px;margin-top:16px}.primary,.secondary{min-height:43px;border-radius:10px;padding:10px 16px;font-size:.92rem}.primary{color:#fff;background:var(--purple);box-shadow:0 3px 0 #422768}.primary:hover:enabled{background:#512a86}.actions .primary{flex:1}.side{display:grid;gap:12px;min-width:0}.sim .card-heading{margin-bottom:14px}
.stage{height:clamp(142px,13vw,169px);position:relative;display:grid;place-items:center;overflow:hidden;border:1px solid #bedacf;border-radius:12px;isolation:isolate;background:radial-gradient(ellipse at center,#f2fbef99,transparent 70%),linear-gradient(#76a99c33 1px,transparent 1px),linear-gradient(90deg,#76a99c33 1px,transparent 1px),#e7f3e9;background-size:auto,16px 16px,16px 16px,auto}
.model{position:absolute;top:10px;left:12px;background:#f5faf1de;font-size:.73rem;color:#486c60;border:1px solid #c2d9cb;border-radius:5px;padding:3px 7px}
.corner{width:14px;height:14px;position:absolute;border-color:#8dad9e;border-style:solid}.c1{right:11px;top:10px;border-width:1px 1px 0 0}.c2{left:11px;bottom:10px;border-width:0 0 1px 1px}
.machine{position:absolute;z-index:2;height:81%;aspect-ratio:1392/1083;bottom:15px;left:50%;transform:translateX(-50%)}.machine img{width:100%;height:100%;object-fit:contain;position:relative}.shadow{position:absolute;left:9%;width:84%;height:9%;bottom:-2%;background:#5f786650;border-radius:50%;filter:blur(2px)}
.belt{position:absolute;bottom:11px;height:7px;width:44%;min-width:149px;max-width:218px;border:1px solid #6e8e81;border-radius:6px;background:repeating-linear-gradient(115deg,#acc7b7 0 5px,#759684 5px 9px);background-size:20px 100%}.rim{position:absolute;width:15%;aspect-ratio:1;top:72%;border:2px dashed #fff5abbf;border-radius:50%;opacity:0}.rim-a{left:21%}.rim-b{left:58%}
.stage[data-motion="forward"] .belt,.stage[data-motion="back"] .belt{animation:belt .45s linear infinite}.stage[data-motion="forward"] .rim,.stage[data-motion="back"] .rim{opacity:1;animation:wheel .8s linear infinite}.stage[data-motion="back"] .rim,.stage[data-motion="back"] .belt{animation-direction:reverse}
@keyframes belt{to{background-position:-20px 0}}@keyframes wheel{to{transform:rotate(360deg)}}
.readouts{justify-content:space-between;gap:8px;padding:10px 2px 11px}.motor,.time{gap:7px;font-size:.82rem}.time{color:var(--muted);font-variant-numeric:tabular-nums}.lamp{width:8px;height:8px;border-radius:50%;background:#8c8691}.motor.on .lamp{background:#17946e;box-shadow:0 0 0 3px #c6ede0}
.note{padding:9px 12px;display:flex;align-items:center;gap:10px;background:#f5f0f9;border:1px solid #e7dcee;border-radius:11px}.note img{width:47px;height:42px;object-fit:contain}.note b{font-size:.8rem;color:#653983}.note p{font-size:.9rem;line-height:1.35;margin-top:2px}.note[data-tone="error"]{border-color:#e6c9ad;background:#fff6e9}.note[data-tone="good"]{border-color:#beded0;background:#eef8f2}
.handoff{display:flex;align-items:center;gap:12px;padding:13px 17px;background:#f3eef6;border:1px solid #e1d7e7;border-radius:14px}.station-icon{background:#e7def0;color:#714f87}.handoff h3{font-size:.97rem}.handoff p{color:#66556e;font-size:.85rem;line-height:1.4;margin-top:2px}.handoff.ready{background:#edf8f1;border-color:#b9d8c8}.ready .station-icon{color:#287154;background:#d8efdf}.link-btn{color:#285f49;text-decoration:underline;text-underline-offset:3px;padding:5px 0 2px;font-size:.86rem}
dialog{border:1px solid var(--border);border-radius:19px;width:min(450px,calc(100% - 26px));max-height:90dvh;overflow:auto;color:var(--ink);padding:22px;box-shadow:0 18px 80px #271a4144}dialog::backdrop{background:#2213359c}.dialog-head{display:flex;align-items:start;justify-content:space-between;margin-bottom:8px}.dialog-head img{width:90px;height:64px;object-fit:contain}.close{border-radius:50%;width:34px;height:34px;background:#f1edf4}.close .ic{height:17px;width:17px}
.answer{margin:14px 0;line-height:1.48;padding:12px;background:#f2edf7;border-radius:10px;font-size:.97rem}.questions{display:flex;flex-wrap:wrap;gap:7px}.questions button{border-radius:9px;background:#fff;border:1px solid #d9cce4;color:#5c3a77;font-size:.86rem;padding:9px;text-align:left}.questions button:hover,.questions button[aria-pressed="true"]{background:#f2eafa;border-color:#aa89c5}.dialog-actions{gap:8px;margin-top:17px;flex-wrap:wrap}.dialog-actions button{flex:1}.dialog-actions .primary,.dialog-actions .secondary{font-size:.85rem;padding-inline:10px}#audio-note{font-size:.81rem;margin-top:8px;color:var(--muted)}#audio-note:empty{display:none}
#pass{padding:0}.pass-banner{position:relative;display:flex;align-items:center;min-height:124px;gap:6px;padding:21px 20px;background:#43295c;color:white}.pass-banner h2{font-size:1.68rem;max-width:230px;margin-top:7px}.pass-banner img{width:102px;height:auto;margin-right:8px}.pass-banner .close{position:absolute;top:7px;right:7px;width:26px;height:26px}.pass-body{padding:22px}.pass-body>p{margin:7px 0 14px;line-height:1.45}.pass-sequence{border:1px solid #c9e3d4;background:#eff8f2;border-radius:10px;padding:12px;color:#275943}.pass-sequence b{font-size:.82rem}.pass-sequence p{font-size:.91rem;line-height:1.5;margin-top:4px}
@media(max-width:930px){.wrap{width:calc(100% - 34px)}.work{gap:12px}.card{padding:17px}.palette{gap:5px}.key{font-size:.76rem}.hero-copy{width:69%}.portrait{right:3%;width:28%}.row{gap:5px}}
@media(max-width:750px){.wrap{width:min(590px,calc(100% - 24px))}.nav{min-height:59px}.brands{gap:10px}.id-logo{width:97px}.fme-logo{width:114px}.bhp-logo{width:95px}.help{padding:8px 10px}.hero{min-height:210px}.hero-copy{padding:19px;width:70%}.hero-copy p{font-size:.92rem;min-height:0}.portrait{width:28%;right:2%;top:10%;bottom:10%}.halo{width:min(20vw,145px)}h1{font-size:clamp(2.1rem,6vw,2.85rem)}.work{grid-template-columns:1fr;gap:12px}.card-heading{margin-bottom:14px}.key{font-size:.85rem}.stage{height:147px}.script{max-height:280px}main{padding-top:13px}.side{gap:10px}}
@media(max-width:480px){.wrap{width:calc(100% - 18px)}.nav{min-height:55px;gap:5px}.brands{gap:7px}.id-logo{width:min(22vw,85px)}.fme-logo{width:min(26vw,101px)}.bhp-logo{width:min(20vw,82px)}.brands i{height:17px}.help{width:34px;height:34px;padding:5px}.help span{clip-path:inset(50%);position:absolute;height:1px;width:1px;overflow:hidden}.hero{border-radius:15px;min-height:210px}.hero-copy{padding:16px;width:71%}.eyebrow{font-size:.63rem;gap:5px;letter-spacing:.095em}.eyebrow .ic{width:15px}.hero-copy p{font-size:.85rem;line-height:1.4}.portrait{width:31%;right:1%;top:4%;bottom:13%;padding:0}.halo{width:77%}.talk{font-size:.78rem;padding:7px 9px;margin-top:10px}.card{padding:14px;border-radius:15px}.palette{margin-bottom:17px}.key{font-size:.76rem}.row-tools button{width:25px}.palette-label span{font-size:.71rem}h1{font-size:2.02rem}.model{font-size:.68rem}.pass-banner img{width:80px}}
@media(max-width:340px){.hero-copy{width:74%}.portrait{width:25%}.eyebrow{font-size:.56rem}.key{font-size:.69rem}.row{gap:3px}.row-tools button{width:22px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* El recorrido mantiene el mismo editor y banco de pruebas en la tercera misión. */
.levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:15px 0 0;border:1px solid #e1d8e8;background:#fff;border-radius:13px;padding:5px;gap:4px}
.levels button{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid transparent;border-radius:9px;text-align:left;padding:7px 11px;color:#70647c}
.levels button:disabled{opacity:1;color:#756c7d}.levels button.current{color:#5b318a;background:#f2eaf9;border-color:#e2d1ef}.levels button.done:not(.current){color:#286454;background:#eff7f2}.levels button:hover:enabled{background:#f0eaf5}
.waypoint{display:grid;place-items:center;width:29px;height:29px;flex:none;border-radius:9px;background:#efeaf1;color:#70617a;font-size:.88rem;font-weight:700}
.current .waypoint{background:#67379b;color:white}.done:not(.current) .waypoint{background:#d7edde;color:#296650}
.level-title{display:grid;gap:2px}.level-title small{font-size:.68rem;font-weight:400}.level-title b{font-size:.89rem;line-height:1.12;letter-spacing:-.012em}.level-state{margin-left:auto;color:inherit}.level-state .ic{width:15px;height:15px}
main .work{margin-top:14px}
.maphead{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:12px}.map-kicker{font-size:.72rem;letter-spacing:.095em;text-transform:uppercase;color:#754d92;font-weight:700;margin-bottom:4px}
.map-badge{flex:none;font-size:.78rem;border-radius:7px;background:#f2ebf6;color:#65447b;padding:5px 9px;font-variant-numeric:tabular-nums}
.mapbox{display:grid;place-items:center;position:relative;padding:8px 14px 13px;border:1px solid #bfd8ca;border-radius:12px;overflow:hidden;background:radial-gradient(#91b29c50 .75px,transparent 1px) 0 0/9px 9px,#eff6eb}
.mapbox:after,.mapbox:before{content:"";position:absolute;width:15px;height:15px;border-style:solid;border-color:#9fb9a7;pointer-events:none}.mapbox:after{right:10px;top:10px;border-width:1px 1px 0 0}.mapbox:before{left:10px;bottom:10px;border-width:0 0 1px 1px}
.diagram{width:min(100%,295px);position:relative;left:-6px;display:grid;grid-template-columns:16px minmax(0,1fr);grid-template-rows:17px auto}
.colmarks,.rowmarks{display:grid;color:#536d62;font-size:.68rem;font-weight:700;align-items:center;text-align:center}.colmarks{grid-column:2;grid-template-columns:repeat(4,1fr)}.rowmarks{grid-column:1;grid-row:2;grid-template-rows:repeat(4,1fr)}
.map-surface{position:relative;grid-column:2;grid-row:2;aspect-ratio:1}.squares{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);width:100%;height:100%;gap:4px}
.square{position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;border-radius:8px;border:1px solid #b4ccbb;background:linear-gradient(135deg,#fbfcf3,#dfeee0);box-shadow:inset 0 2px 0 #ffffffab}
.square:before{content:"";position:absolute;inset:7px;background:radial-gradient(#9fb9a252 .85px,transparent 1.1px) 0 0/11px 11px;z-index:-1}
.square.start{border-color:#ac91c3;background:linear-gradient(140deg,#f7eefc,#e5ddee)}.square.part{background:linear-gradient(135deg,#fff3c8,#f8dfa6);border-color:#d8b56c}
.square.part:before{background:none;border:1px dashed #cba850;border-radius:4px;inset:4px}
.square img{height:65%;width:74%;object-fit:contain;filter:drop-shadow(0 2px 1px #79532335)}.square img[src$="bateria.webp"]{width:82%;height:82%}
.square.blocked{background:repeating-linear-gradient(135deg,#e0d9e2 0 7px,#d8cfdc 7px 12px);border-color:#bdadc1}.square.blocked span{color:#76647e;font-size:1.6rem;font-weight:700}
.square.trail:after{content:"";position:absolute;bottom:5px;right:5px;width:6px;height:6px;border-radius:50%;background:#9775a7}
.map-rover{position:absolute;top:0;left:0;width:25%;height:25%;display:grid;place-items:center;transform:translate(calc(var(--col,0)*100%),calc(var(--row,0)*100%));transition:transform .29s ease;pointer-events:none}
.map-rover img{width:82%;height:80%;object-fit:contain;filter:drop-shadow(0 3px 2px #3c4b3644)}.map-rover.snap{transition:none}
.mini-kit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.kit-piece{border:1px solid #e5dfe7;border-radius:9px;display:flex;align-items:center;gap:8px;padding:7px 8px;min-height:47px;background:#fcfafc}
.kit-piece img{width:32px;height:28px;object-fit:contain}.kit-piece div{display:grid;gap:2px}.kit-piece b{font-size:.8rem;line-height:1.15}.kit-piece span{font-size:.72rem;color:#6b6073}
.kit-piece.found{background:#edf7ef;border-color:#b7d3c0}.kit-piece .ic{margin-left:auto;color:#39805d;width:15px;height:15px}
.route-console .card-heading{margin-bottom:13px}.route-note{margin-bottom:15px;min-height:65px}.route-note img{width:53px}
.route-palette{margin-bottom:17px}.route-palette .key .ic{stroke-width:2.65}
.route-program{display:flex;align-content:center;align-items:center;gap:5px;flex-wrap:wrap;padding:10px 11px;margin-top:8px;min-height:64px;border:1.5px dashed #c4b4d0;border-radius:10px;background:#fcf9fd}
.route-program.empty{justify-content:center}.empty-route{display:flex;align-items:center;gap:6px;color:#796785;font-size:.9rem}
.arrow-chip{width:31px;height:33px;padding:3px;color:var(--tint);background:var(--tile);border:1px solid var(--edge);border-radius:6px;display:grid;place-items:center}
.arrow-chip.active{outline:2px solid #71449b;opacity:1}.arrow-chip.issue{outline:2px dashed #a64839}.arrow-chip .ic{width:17px;height:17px}
.route-actions{display:flex;justify-content:flex-end;gap:13px;padding:4px 1px}.route-small{padding:5px 2px;color:#6c4c7e;font-weight:700;font-size:.76rem}.route-small:disabled{opacity:.65}
.run-route,.next-route{width:100%;margin-top:5px}.next-route{color:#1e604c;background:#dff1e5;border:1px solid #b2d4bb;box-shadow:none;margin-top:9px}.next-route:hover:enabled{background:#d1e9db}
.pass-parts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.pass-parts span{display:inline-flex;align-items:center;gap:4px;font-size:.77rem;background:#f6f2f8;padding:3px 7px;border:1px solid #e8dfed;border-radius:6px}.pass-parts img{width:18px;height:18px;object-fit:contain}
@media(max-width:750px){.levels{gap:1px;padding:3px;margin-top:11px}.levels button{padding:6px;gap:5px}.level-title b{font-size:.75rem}.level-state{display:none}.waypoint{width:25px;height:25px}.diagram{width:min(100%,285px)}.route-work{gap:10px}.map-kicker{font-size:.68rem}}
@media(max-width:480px){.levels button{padding:5px 3px;gap:4px}.waypoint{width:20px;height:22px;font-size:.72rem;border-radius:6px}.level-title small{font-size:.59rem}.level-title b{font-size:.65rem}.diagram{width:min(100%,253px)}.kit-piece{gap:5px;padding:5px}.kit-piece img{width:26px;height:24px}.kit-piece b{font-size:.74rem}.kit-piece span{font-size:.68rem}.mini-kit{gap:5px}.mapbox{padding:5px 8px 9px}.maphead{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){.map-rover{transition:none}}

/* Las respuestas de Edu se leen en el mismo lugar donde se piden. */
.edu-coach {align-items:flex-start; padding:12px; gap:11px}
.edu-coach > img {margin-top:3px; flex:none}
.coach-copy {min-width:0; flex:1}
.coach-tools {display:flex; flex-wrap:wrap; gap:6px; margin-top:9px}
.coach-tools button {display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:6px 10px; border:1px solid #cdbdd8; border-radius:8px; background:#ffffffcf; color:#563775; font-size:.81rem; font-weight:700}
.coach-tools button[data-edu="hint"] {color:#5b3c13; background:#ffebae; border-color:#e7c877}
.coach-tools button:hover {box-shadow:0 2px 0 #42205a1a}
.edu-coach.responding {background:#f5eff9; border-color:#cbb6dd}
.edu-coach.responding > img {animation:edu-nod .45s ease-out}
@keyframes edu-nod {30%{transform:rotate(-6deg) translateY(-2px)}70%{transform:rotate(3deg)}}
.square.edu-target,.key.edu-target,.row.edu-target,.arrow-chip.edu-target {outline:2.5px solid #8052ac; outline-offset:-3px}
.square.edu-target::after {content:"";position:absolute;top:5px;left:5px;width:8px;height:8px;border-radius:50%;background:#7953a2;border:1px solid white}
.outcome {padding:0; width:min(420px,calc(100% - 28px)); overflow:auto}
.outcome-hero {position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center; justify-content:center; gap:24px; height:108px; background:radial-gradient(#b8dcc7 1.2px,transparent 1.4px) 0 0/12px 12px,#e2f3e7; border-bottom:1px solid #c2dfcd}
.outcome[data-result="failed"] .outcome-hero {background:radial-gradient(#e4bab6 1.2px,transparent 1.4px) 0 0/12px 12px,#fbe6df; border-color:#efd0c9}
.outcome-edu {width:104px; height:82px; object-fit:contain; filter:drop-shadow(0 3px 1px #36274420)}
.outcome-hero .close {position:absolute; top:10px; right:10px; z-index:3; background:#fff; width:30px; height:30px}
.outcome-emblem {display:grid;place-items:center;width:57px;height:57px;border:3px solid #fff4c5;border-radius:50%;background:#ffda79;box-shadow:0 0 0 2px #dbac46,0 4px 0 #c59a48;color:#40674f}
.outcome-emblem .ic {width:30px;height:30px;stroke-width:3.2}
.outcome[data-result="failed"] .outcome-emblem {border-color:#ffe9d6;background:#f8bc9d;box-shadow:0 0 0 2px #d59482,0 4px 0 #c4927e;color:#813d39}
.outcome-body {padding:22px}
.outcome-body h2 {font-size:1.68rem}
.outcome-body p {line-height:1.45;margin:9px 0 17px;color:#564660}
.outcome-buttons {display:flex;gap:8px;flex-wrap:wrap}
.outcome-buttons button {flex:1;min-width:max-content}
.outcome[open][data-result="won"] .outcome-emblem {animation:edu-stamp .6s ease-out both}
.outcome[open][data-result="failed"] .outcome-emblem {animation:edu-retry .48s ease-out both}
.confetti {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:2}
.confetti i {position:absolute;top:-12px;left:var(--start);width:7px;height:12px;background:var(--paper);border-radius:2px;opacity:0;animation:edu-confetti 1.55s var(--delay) ease-out both}
@keyframes edu-stamp {0%{transform:scale(.55) rotate(-12deg)}55%{transform:scale(1.12) rotate(4deg)}100%{transform:scale(1)}}
@keyframes edu-retry {0%,100%{transform:translateX(0)}22%,65%{transform:translateX(-4px) rotate(-4deg)}44%,82%{transform:translateX(3px) rotate(3deg)}}
@keyframes edu-confetti {0%{opacity:0;transform:translate(0,-8px) rotate(0deg)}12%{opacity:1}84%{opacity:1}100%{opacity:0;transform:translate(var(--drift),175px) rotate(290deg)}}
@media(max-width:480px){.edu-coach{gap:8px;padding:10px}.edu-coach>img{width:39px;height:36px}.coach-tools button{padding:7px 8px;font-size:.76rem}.outcome-body{padding:17px}.outcome-buttons button{min-width:123px}}
@media(prefers-reduced-motion:reduce){.edu-coach.responding>img,.outcome-emblem{animation:none!important}.confetti{display:none}}
