@font-face{font-family:Fredoka;src:url(assets/Fredoka.ttf);font-display:swap}:root{--ink:#163d34;--cream:#fffae9;--green:#216b4c;--gold:#f8c34e;--edge:#b9ccaa}*{box-sizing:border-box}body{margin:0;font-family:Fredoka,system-ui;color:var(--ink);background:#edf2e5}button,select{font:inherit;color:inherit}button{border:2px solid var(--edge);background:var(--cream);border-radius:13px;min-height:44px;padding:9px 14px;cursor:pointer;touch-action:manipulation;box-shadow:0 3px 0 #afc3a7}button:hover{filter:brightness(1.035)}button:active{transform:translateY(2px);box-shadow:0 1px 0 #afc3a7}button:disabled{opacity:.55;cursor:default}button:focus-visible,select:focus-visible{outline:3px solid #a45125;outline-offset:3px}button[aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}.primary{background:var(--gold);border-color:#bd8e35;box-shadow:0 4px 0 #b58232;font-weight:600}.top{height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 3vw;gap:10px}.top a{color:inherit;text-decoration:none;font-size:18px}.top small{font-size:10px;letter-spacing:2px}main{max-width:1700px;margin:auto}#menu{min-height:calc(100dvh - 54px);display:grid;grid-template-columns:1fr 1fr;gap:5vw;align-items:center;padding:22px 6vw;background:linear-gradient(90deg,#f1f5e9e8,#f1f5e9bd),url(assets/bosque.webp) center/cover}.cover{position:relative;min-height:510px}.eyebrow{font-size:12px;letter-spacing:2px;color:#6b7134}h1{font-size:clamp(42px,4.7vw,72px);line-height:1.02;margin:15px 0}h1 em{font-style:normal;color:#39744b}.cover p{font-size:21px;line-height:1.35;margin:12px 0}.cover-heroes{display:flex;justify-content:center;align-items:flex-end;position:absolute;bottom:0;left:0;right:0;height:245px;gap:0}.cover-heroes img{height:75%;max-width:33%;object-fit:contain;filter:drop-shadow(0 8px 4px #31563b22)}.cover-heroes img:nth-child(2){height:100%}.stamp{position:absolute;right:0;top:42%;transform:rotate(8deg);border:2px dashed #9c9d51;border-radius:50%;width:106px;height:106px;display:grid;align-content:center;text-align:center;background:#f6eab8;font-size:21px}.stamp small{font-size:11px}form{display:grid;gap:13px;padding:25px;border:2px solid #bdb586;border-radius:25px;background:#fffbed;box-shadow:0 9px 0 #304b2618,0 18px 45px #3950391a}fieldset{border:0;padding:0;margin:0}legend{padding:0 0 6px}label{display:grid;gap:6px;font-size:16px}.player-options,.form-row{display:flex;gap:8px}.player-options>*,.form-row>*{flex:1;min-width:0}select{width:100%;font-size:16px;border:2px solid #b9c9ab;background:#fffef7;border-radius:12px;padding:10px 6px}.menu-note{font-size:14px;line-height:1.4;margin:0}form>small{text-align:center;font-size:11px;color:#526c56}#start{font-size:21px;display:flex;justify-content:space-between;align-items:center;min-height:54px}#play{height:calc(100dvh - 54px);display:flex;flex-direction:column}.mission-bar{display:flex;align-items:center;padding:6px 18px;gap:14px}.mission-bar>div{flex:1}.mission-bar small{font-size:10px;letter-spacing:2px}.mission-bar h2{font-size:23px;margin:2px 0}#team-count{background:#d9e9c2;padding:9px 13px;border-radius:14px;font-size:17px}#zones{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--players,1),minmax(0,1fr));gap:12px;padding:8px 16px}.zone{min-height:0;border:3px solid var(--accent);border-radius:23px;overflow:hidden;box-shadow:0 5px 0 #60774c33;display:flex;flex-direction:column;background:var(--cream)}.zone-head{background:var(--accent);color:white;display:flex;gap:9px;align-items:center;padding:6px 12px;flex-shrink:0}.zone-head img{width:28px;height:33px;object-fit:contain}.zone-head strong{flex:1;font-size:18px}.zone-head span{font-size:18px}.zone-head button{min-height:34px;padding:4px 8px;background:#fff8dc;color:#194d37;border:0;box-shadow:none;font-size:19px}.growth{height:8px;background:#dadfba;flex-shrink:0}.growth i{display:block;width:var(--growth);height:100%;background:#c4e55f;transition:width .4s}.scene{position:relative;flex:1;min-height:180px;isolation:isolate;overflow:hidden}.scenery{position:absolute;inset:0;background:url(assets/bosque.webp) center/cover;filter:saturate(var(--saturation,.55)) brightness(.94);transition:filter .8s;z-index:-2}.haze{position:absolute;inset:0;background:#937b5e;opacity:var(--haze,.17);transition:opacity .8s;pointer-events:none;z-index:-1}.mission-sign{position:absolute;left:8px;right:8px;top:8px;z-index:5;padding:9px 11px;border:1px solid #cfbb7e;border-radius:14px;background:#fff9e9f5;box-shadow:0 3px 0 #7e67472b;pointer-events:none}.mission-sign small{display:block;font-size:10px;letter-spacing:1px;color:#7c6f36}.mission-sign h3{font-size:20px;line-height:1.15;margin:4px 0 0}.animal{position:absolute;object-fit:contain;width:20%;height:22%;bottom:7%;left:4%;filter:drop-shadow(0 3px 2px #244e3b33);animation:arrive .45s ease-out;pointer-events:none}.animal.owl{left:auto;right:4%;bottom:42%;width:13%;height:17%}.animal.frog{left:auto;right:8%;bottom:1%;width:16%;height:16%}.new-tree{position:absolute;bottom:12%;left:5%;height:36%;max-width:29%;object-fit:contain;pointer-events:none;animation:arrive .5s ease-out}.new-tree.second{left:70%;bottom:17%;height:31%}.task-objects{position:absolute;inset:0;z-index:2}.ground-object{position:absolute;top:48%;left:35%;width:30%;max-width:145px;aspect-ratio:1;background:transparent;border:0;padding:4px;box-shadow:none;filter:drop-shadow(0 7px 3px #29432233);border-radius:20px}.ground-object svg{width:100%;height:100%;overflow:visible}.ground-object.selected{background:#fff6ba88;outline:3px solid #ffe581;transform:translateY(-6px)}.ground-object:active{box-shadow:none}.ground-object .object-label{display:block;font-size:14px;background:#fffbe9f2;border:1px solid #baab75;border-radius:8px;padding:3px;color:var(--ink);line-height:1.1}.ground-object.natural{width:20%;left:8%;top:56%;max-width:90px}.ground-object.natural.second{left:72%;top:49%}.tool-tray{padding:10px;background:linear-gradient(#fff9e9,#f0eed6);border-top:2px solid #d5c491;flex-shrink:0;display:grid;gap:7px}.tray-hint{text-align:center;font-size:15px;min-height:20px;margin:0}.bins{display:flex;justify-content:center;gap:8px}.bin{flex:1;min-width:0;background:transparent;border:0;box-shadow:none;padding:0 3px 5px;min-height:84px;position:relative;color:#17362e}.bin-can{display:block;border:3px solid #365357;border-top:10px solid var(--bin);border-radius:9px 9px 17px 17px;background:linear-gradient(100deg,#ffffff44,transparent 50%,#00000014),var(--bin);height:61px;max-width:100px;margin:0 auto 4px;box-shadow:0 3px 0 #4c493545;position:relative}.bin-can:before{content:'↻';font-size:30px;background:#fff9dcee;border-radius:50%;display:block;width:35px;height:35px;position:absolute;left:50%;top:7px;transform:translateX(-50%);color:#324b3a}.bin-name{display:block;font-size:13px;font-weight:500;line-height:1.1}.bin:disabled{opacity:1}.bin[aria-disabled=true]{opacity:.75}.feedback{margin:0;padding:8px 12px;min-height:40px;display:grid;place-items:center;text-align:center;font-size:15px;line-height:1.2;background:#e5edd2;flex-shrink:0}.feedback.good{background:#c6e5a7}.tap-station{position:absolute;top:41%;width:28%;left:4%;background:#fffbeded;border:2px solid #a6bb8e;border-radius:14px;padding:6px 4px;box-shadow:0 4px 0 #32563733;min-height:115px}.tap-station:nth-child(2){left:36%}.tap-station:nth-child(3){left:68%}.tap-station svg{width:100%;height:90px;display:block}.tap-station small{font-size:12px;display:block;line-height:1.1}.water-flow{animation:water .65s linear infinite}.tap-station.fixed .water-flow{display:none}.plant-spot{position:absolute;top:49%;width:29%;min-height:95px;left:3%;border:2px dashed #fff1be;background:#fff4dc44;border-radius:50%;padding:5px;box-shadow:0 4px 0 #2b543e22}.plant-spot:nth-child(2){left:35.5%}.plant-spot:nth-child(3){left:68%}.plant-spot svg{width:100%;height:65px;display:block}.plant-spot span{display:block;background:#fff8de;border-radius:8px;padding:4px;font-size:13px;line-height:1.1;color:#1a4435}.seed-tool{display:flex;gap:10px;align-items:center;justify-content:center;width:100%;background:#e3edce;border:2px solid #8da777;min-height:62px;padding:5px}.seed-tool img{width:45px;height:48px;object-fit:contain}.seed-tool[aria-pressed=true]{background:#3c6e47}.seed-tool span{font-size:17px}.success-burst{position:absolute;left:20%;right:20%;top:42%;text-align:center;font-size:34px;color:#fff4a3;text-shadow:0 3px 0 #42652f;z-index:10;pointer-events:none;animation:arrive .4s ease-out}.mission-badge{font-size:12px;color:#4f7040;text-align:center}.zone.shake .task-objects{animation:shake .25s}.zone.complete .task-objects{display:grid;place-items:center;padding:70px 15px 15px;background:#dbf0bd66}.completion-note{background:#fff9e9ef;border-radius:18px;padding:15px;text-align:center;font-size:24px;box-shadow:0 5px 0 #436f3733}.completion-note small{display:block;font-size:15px;margin-top:6px}.scene::after{content:'';position:absolute;inset:0;border:1px solid #ffffff33;pointer-events:none}footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 18px 13px}footer span{font-size:13px}#end{min-height:calc(100dvh - 54px);text-align:center;padding:25px 20px;background:linear-gradient(#f1f5e9cc,#f1f5e9ee),url(assets/bosque.webp) center/cover}#end h1{font-size:50px}.end-animals{height:125px;display:flex;justify-content:center;gap:20px}.end-animals img{height:100%;max-width:25%;object-fit:contain}#scores{display:flex;gap:15px;justify-content:center;margin:16px}.score{border:2px solid #afbe92;background:#fffbe9;border-radius:14px;padding:12px 20px}.score strong{display:block;font-size:25px}#end>button{margin:7px}dialog{background:var(--cream);color:var(--ink);border:3px solid #8f9e65;border-radius:22px;padding:25px;max-width:90vw}dialog::backdrop{background:#173b30ed}dialog button{margin:6px}body.paused .scene{visibility:hidden}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(12px) scale(.8)}to{opacity:1;transform:none}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes water{to{stroke-dashoffset:-14}}@media(min-width:1000px){#zones:has(.zone:only-child){max-width:900px;width:100%;margin:auto}.zone:only-child .ground-object{max-width:160px;left:40%;top:44%;width:20%}.zone:only-child .tap-station{max-width:160px;top:42%}.zone:only-child .tap-station:nth-child(1){left:10%}.zone:only-child .tap-station:nth-child(2){left:40%}.zone:only-child .tap-station:nth-child(3){left:70%}.zone:only-child .plant-spot{width:24%;top:48%}.zone:only-child .plant-spot:nth-child(1){left:9%}.zone:only-child .plant-spot:nth-child(2){left:38%}.zone:only-child .plant-spot:nth-child(3){left:67%}}
@media(max-width:700px){.top{height:43px;padding:4px 12px}.top small{font-size:9px;letter-spacing:0}.top button{min-height:34px;padding:5px 9px}#menu{padding:10px 12px;min-height:calc(100dvh - 43px);display:flex;flex-direction:column;gap:10px;justify-content:center}.cover{min-height:130px;width:100%;padding-right:105px}.eyebrow{font-size:9px;letter-spacing:1px}.cover h1{font-size:35px;margin:5px 0}.cover p{font-size:14px;line-height:1.3;margin:7px 0}.cover-heroes{width:100px;left:auto;right:0;height:116px}.cover-heroes img{display:none}.cover-heroes img:nth-child(2){display:block;max-width:100%;height:100%}.stamp{display:none}form{padding:13px;gap:9px;width:100%;border-radius:19px}select{padding:8px 5px}.menu-note{font-size:12px}.player-options button{padding:7px}.form-row{gap:7px}#start{font-size:20px;min-height:47px}#play{height:calc(100dvh - 43px)}.mission-bar{padding:5px 11px;gap:8px}.mission-bar h2{font-size:17px}.mission-bar small{display:none}#team-count{padding:7px;font-size:13px;white-space:nowrap}.mission-bar button{padding:6px 10px;min-height:38px}#zones{padding:5px 10px;gap:8px}.zone-head{padding:5px 10px}.zone-head strong{font-size:17px}.zone-head img{height:27px}.scene{min-height:170px}.mission-sign h3{font-size:19px}.mission-sign{padding:7px 9px}.tool-tray{padding:8px}.bin-can{height:54px}.bin{min-height:75px}.feedback{font-size:14px;padding:6px;min-height:36px}footer{padding:5px 10px 10px}footer span{display:none}footer button{font-size:13px;padding:8px}.ground-object{top:43%;width:27%;left:36%}.ground-object.natural{top:52%;width:18%;left:9%}.ground-object.natural.second{top:48%;left:74%}.ground-object .object-label{font-size:12px}.tap-station{top:38%}.tap-station svg{height:80px}.tap-station small{font-size:11px}.plant-spot{top:43%}.plant-spot span{font-size:12px}.seed-tool{min-height:58px}.success-burst{font-size:28px}}@media(max-height:650px){.cover{min-height:94px}.cover p{display:none}.cover-heroes{height:90px}form{padding:10px;gap:7px}.menu-note{font-size:11px}#menu{padding:7px 12px;gap:7px}select{padding:7px 4px}label{font-size:14px;gap:4px}.scene{min-height:135px}.mission-sign h3{font-size:16px}.mission-sign small{font-size:9px}.mission-sign{top:5px;padding:5px 7px}.tap-station{top:37%;min-height:92px;padding:4px}.tap-station svg{height:62px}.plant-spot{top:40%;min-height:78px}.plant-spot svg{height:42px}.plant-spot span{font-size:11px}.ground-object{max-width:85px}.tool-tray{padding:5px;gap:4px}.tray-hint{font-size:12px;min-height:16px}.bin{min-height:64px}.bin-can{height:43px}.bin-can:before{font-size:22px;width:28px;height:28px;top:3px}.bin-name{font-size:11px}.feedback{font-size:12px;min-height:30px}.seed-tool{min-height:45px}.seed-tool img{height:34px;width:34px}.seed-tool span{font-size:14px}.mission-bar h2{font-size:15px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Keep the complete object and its label inside the playfield. */
.ground-object.waste{top:auto;bottom:48px;height:clamp(64px,12vh,115px);width:30%;aspect-ratio:auto}.ground-object.waste .object-label{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:145px}.ground-object.waste svg{height:100%}
@media(max-height:650px){.ground-object.waste{height:66px;bottom:46px}.ground-object.waste .object-label{max-width:140px}}

.drag-ghost{position:fixed;z-index:9999;width:90px;height:100px;transform:translate(-50%,-70%);pointer-events:none;filter:drop-shadow(0 8px 6px #163d3466)}.drag-ghost svg{width:100%;height:100%}.ground-object.drag-origin{opacity:.22}.bin.drop-hover{background:#e0edc2;outline:3px solid #246d50;border-radius:14px}.ground-object.waste{cursor:grab;user-select:none;-webkit-user-select:none}.ground-object.waste:active{cursor:grabbing}

/* Ilustraciones de residuos: mantienen el área táctil y el fondo transparente. */
.ground-object.waste .waste-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.drag-ghost .waste-art{width:100%;height:100%;object-fit:contain}
.bin-art{display:block;width:100%;height:clamp(64px,11vh,110px);object-fit:contain;pointer-events:none}
.bin{padding:2px 4px 5px;gap:3px}
@media(max-width:700px){.bin-art{height:66px}}
@media(max-height:650px){.bin-art{height:50px}}

/* Recursos ilustrados de agua y plantación. */
.tap-station .tap-art{display:block;width:100%;height:100px;object-fit:contain;pointer-events:none}
.plant-spot .plant-art{display:block;width:100%;height:75px;object-fit:contain;pointer-events:none}
@media(max-width:700px){.tap-station .tap-art{height:90px}.plant-spot .plant-art{height:70px}}
@media(max-height:650px){.tap-station .tap-art{height:62px}.plant-spot .plant-art{height:48px}}

.ground-object.natural .natural-art{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
/* Escenas con espacios propios: instrucciones, objetos y vida recuperada. */
.zone .scene{display:flex;flex-direction:column;gap:8px;padding:8px;min-height:250px;overflow:visible}
.zone .mission-sign{position:relative;inset:auto;flex:none;margin:0;padding:7px 9px}
.zone .mission-sign h3{font-size:clamp(16px,1.5vw,21px)}
.zone .task-objects{position:relative;inset:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(86px,1fr);gap:8px;align-content:center;flex:1;min-height:0;order:2}
.zone .restoration{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:10px;height:34px;min-height:34px;order:3;pointer-events:none}
.zone .restoration img{position:static;width:34px;height:32px;max-width:34px;object-fit:contain;animation:none;filter:none}
.zone .task-objects .object-card{position:relative;inset:auto;transform:none;max-width:none;width:100%;height:100%;min-height:86px;aspect-ratio:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;border:1px solid #d5c89c;border-radius:12px;background:#fff9e9e8;box-shadow:0 3px 0 #35563b25;overflow:hidden}
.zone .task-objects .object-card img{display:block;width:100%;height:clamp(48px,8vh,95px);min-height:0;object-fit:contain;pointer-events:none;flex:1}
.zone .task-objects .object-card .object-label,.zone .task-objects .object-card small,.zone .task-objects .object-card>span{position:static;inset:auto;transform:none;display:block;width:100%;max-width:none;padding:0;margin:0;font-size:12px;line-height:1.12;text-align:center;background:none;flex:none;overflow-wrap:anywhere}
.zone .task-objects .object-card.selected{outline:3px solid #28754e;outline-offset:-3px;background:#e9f4d7}
.zone .task-objects .object-card.collected{background:#e2edd6a6;border-style:dashed;opacity:.7}
.zone .task-objects .object-card .collected-mark{font-size:28px;color:#216b4c}
.zone .task-objects .object-card.resolved{opacity:1;background:#e5f2d7}
.zone .task-objects .object-card.natural{background:#f1f1d9c9}
.zone .tool-tray{flex:none}.zone .bin-art{height:64px}.zone .bin{min-height:84px}
.zone .feedback{min-height:38px;font-size:13px;margin:0;flex:none}
.zone .seed-tool span{font-size:14px}.drag-ghost img{width:100%;height:100%;object-fit:contain}
.plant-spot.drop-hover{outline:3px solid #216b4c!important;background:#e5f2d7!important}
.zone.complete .task-objects{padding:12px;display:grid;grid-template-columns:1fr}
@media(min-height:850px){.zone .task-objects{grid-auto-rows:minmax(110px,1fr)}.zone .task-objects .object-card img{max-height:150px;height:120px}.zone .task-objects .object-card .object-label,.zone .task-objects .object-card small,.zone .task-objects .object-card>span{font-size:16px}.zone .bin-art{height:95px}.zone .restoration{height:48px;min-height:48px}.zone .restoration img{width:46px;height:44px;max-width:46px}}
@media(max-width:700px){.zone .scene{min-height:245px;gap:6px;padding:6px}.zone .task-objects{gap:6px;grid-auto-rows:minmax(78px,1fr)}.zone .task-objects .object-card{min-height:78px}.zone .restoration{height:27px;min-height:27px}.zone .restoration img{height:26px;width:28px}.zone .mission-sign h3{font-size:17px}.zone .bin-art{height:55px}.zone .bin{min-height:74px}}
@media(max-height:650px){#play{height:auto;min-height:calc(100dvh - 43px)}.zone .scene{min-height:265px}.zone .task-objects .object-card img{height:48px}.zone .mission-sign h3{font-size:16px}}

/* Recogida en el suelo: objetos sueltos, sin tarjetas ni rótulos. */
.zone[data-mission="recycle"] .task-objects{display:block;min-height:160px}
.zone[data-mission="recycle"] .task-objects .object-card{position:absolute;left:var(--object-x);top:var(--object-y);width:clamp(48px,18%,76px);height:clamp(48px,18%,76px);min-height:48px;padding:3px;transform:translate(-50%,-50%);background:transparent;border:0;box-shadow:none;overflow:visible;border-radius:50%}
.zone[data-mission="recycle"] .task-objects .object-card img{width:100%;height:100%;max-height:none;flex:none;transform:rotate(var(--object-tilt));filter:drop-shadow(0 3px 2px #243b3b40)}
.zone[data-mission="recycle"] .task-objects .object-card.selected{outline:2px dashed #fff4b8;outline-offset:2px;background:transparent}
.zone[data-mission="recycle"] .task-objects .object-card.collected{visibility:hidden;pointer-events:none}
.zone[data-mission="recycle"].complete .task-objects{display:grid}

/* Plantación integrada en el bosque, sin tarjetas ni etiquetas visibles. */
.zone[data-mission="plant"] .task-objects{display:block;min-height:160px}
.zone[data-mission="plant"] .task-objects .object-card{position:absolute;left:var(--object-x);top:var(--object-y);width:clamp(52px,20%,82px);height:clamp(52px,20%,82px);min-height:52px;padding:2px;transform:translate(-50%,-50%);background:transparent;border:0;box-shadow:none;overflow:visible;border-radius:50%}
.zone[data-mission="plant"] .task-objects .object-card img{width:100%;height:100%;max-height:none;flex:none;object-fit:contain;filter:drop-shadow(0 3px 2px #243b3b30)}
.zone[data-mission="plant"] .task-objects .object-card.resolved{opacity:1;background:transparent}
.zone[data-mission="plant"] .task-objects .object-card.drop-hover{outline:2px dashed #fff4b8!important;outline-offset:2px;background:transparent!important}
.zone[data-mission="plant"].complete .task-objects{display:grid}
/* Fondo luminoso y suave para distinguir los objetos interactivos. */
.zone .scenery{filter:saturate(.62) brightness(1.16)}
.zone .haze{background:#fff9e9;opacity:.34}
.zone[data-mission="recycle"] .task-objects .object-card img,.zone[data-mission="plant"] .task-objects .object-card img{filter:drop-shadow(0 2px 1px #fffceacc) drop-shadow(0 4px 3px #243b3b60)}

/* Grifos sobre el terreno: sin tarjetas ni rótulos. */
.zone[data-mission="water"] .task-objects{display:block;min-height:190px}
.zone[data-mission="water"] .task-objects .object-card{position:absolute;left:var(--object-x);top:var(--object-y);width:clamp(52px,21%,84px);height:clamp(58px,24%,86px);min-height:58px;padding:2px;transform:translate(-50%,-50%);background:transparent;border:0;box-shadow:none;overflow:visible;border-radius:50%}
.zone[data-mission="water"] .task-objects .object-card .tap-art{width:100%;height:100%;max-height:none;flex:none;object-fit:contain;filter:drop-shadow(0 2px 1px #fffceacc) drop-shadow(0 4px 3px #243b3b60)}
.zone[data-mission="water"] .task-objects .object-card.resolved{opacity:1;background:transparent}
.zone[data-mission="water"].complete .task-objects{display:grid}

/* Información curricular plegable: ocupa su propio espacio, nunca se superpone. */
#curriculum{min-width:0;border:1px solid #b6c5a7;border-radius:12px;background:#fffbee;text-align:left}
#curriculum>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;min-height:48px;padding:9px 12px;list-style:none}
#curriculum>summary:after{content:'＋';font-size:21px;flex:none}#curriculum[open]>summary:after{content:'−'}
#curriculum>summary strong{font-size:15px}#curriculum-context{display:block;font-size:12px;margin-top:3px;color:#47634e}#curriculum-count{font-size:12px;margin-left:auto}
#curriculum-content{border-top:1px solid #d9dec7;padding:10px 12px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
#curriculum-content h3{font-size:15px;margin:14px 0 7px}#curriculum-content p{margin:8px 0}#curriculum-content a{color:#24583f;text-decoration:underline}
.curriculum-entry{margin:6px 0;border:1px solid #c3cfb8;border-radius:9px;background:#f2f6e9}.curriculum-entry summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px;padding:8px 10px;font-weight:700;font-size:14px}.curriculum-entry p{padding:0 10px 10px}.curriculum-entry.criterion{background:#fff1ed;border-color:#e3b4a8}.criterion summary{color:#a02c21}.curriculum-open{font-size:11px;font-weight:400;color:#50604e}.curriculum-help{font-size:12px;color:#52624b}
#curriculum summary:focus-visible{outline:3px solid #28754e;outline-offset:2px;border-radius:9px}
@media(max-width:360px){#curriculum>summary{padding:8px;gap:6px}#curriculum>summary strong{font-size:14px}#curriculum-count{font-size:11px}}
/* Nuevos objetos: sin etiquetas ni tarjetas, separados en el claro. */
.zone .task-objects .care-object{position:absolute;left:var(--object-x);top:var(--object-y);transform:translate(-50%,-50%);width:clamp(56px,8vw,90px);height:clamp(64px,10vw,100px);min-height:0;padding:0;background:transparent;border:0;box-shadow:none;overflow:visible;filter:drop-shadow(0 3px 2px #24492f55)}
.zone .task-objects .care-object img{width:100%;height:100%;max-height:none;object-fit:contain;flex:none}
.zone .task-objects .care-object.care-done{opacity:1;filter:drop-shadow(0 0 4px #b6eeb1)}
.zone .task-objects .care-object.drop-hover{outline:3px solid #397f55;outline-offset:4px;border-radius:50%}
.care-tool{display:flex;align-items:center;justify-content:center;gap:10px;background:#e3edce;border:2px solid #8da777;width:100%;min-height:60px;padding:5px 10px}
.care-tool img{width:52px;height:48px;object-fit:contain;pointer-events:none}.care-tool span{font-size:15px}.care-tool small{display:block;font-size:12px;font-weight:400;margin-top:3px}.care-tool[aria-pressed=true]{outline:2px solid #32764e}
@media(max-width:700px){.zone .task-objects .care-object{width:70px;height:80px}.care-tool{min-height:54px}.care-tool img{height:40px;width:45px}.care-tool span{font-size:13px}}
@media(max-width:360px){.zone .task-objects .care-object{width:58px;height:68px}}
.action-tools{display:flex;justify-content:center;gap:8px}.action-tools button{display:flex;flex:1;min-width:0;align-items:center;justify-content:center;gap:6px;padding:5px 8px;min-height:56px;background:#e5edd8;border:2px solid #a5ba92}.action-tools button img{height:44px;width:38px;object-fit:contain;pointer-events:none}.action-tools button span{font-size:13px}.action-tools button[aria-pressed=true]{background:#d1e8b4;outline:3px solid #387955;outline-offset:-3px}
.zone .task-objects .misplaced-waste img.wrong-bin{position:absolute;inset:15% 0 0;width:100%;height:85%;opacity:.9}.zone .task-objects .misplaced-waste img.waste-art{position:absolute;left:22%;top:0;width:60%;height:60%;filter:drop-shadow(0 2px 2px #173b30)}
.zone .task-objects .restoring-spot .soil-under{position:absolute;left:0;bottom:0;width:100%;height:55%}.zone .task-objects .restoring-spot .care-art{position:absolute;inset:0 15% 20%;width:70%;height:80%}.zone .task-objects .selected-source{outline:3px solid #367dba;border-radius:50%;outline-offset:3px}.zone .task-objects .mulched .mulch-layer{position:absolute;bottom:0;left:15%;height:35%;width:70%}
@media(max-width:360px){.action-tools{gap:4px}.action-tools button{gap:3px;padding:4px}.action-tools button span{font-size:11px}.action-tools button img{width:28px;height:36px}}
.zone[data-variant=prune] .task-objects .care-object{width:clamp(70px,23vw,100px);height:90px}
@media(max-width:700px){.zone[data-variant=prune] .task-objects .care-object{height:clamp(64px,20vw,80px);width:clamp(66px,21vw,86px)}}

/* Mantener disponibles todos los jugadores, también en ventanas estrechas. */
@media(max-width:1099px){#play:has(.zone:nth-child(2)){height:auto;min-height:calc(100dvh - 54px)}#zones:has(.zone:nth-child(2)){grid-template-columns:1fr;flex:none}#zones:has(.zone:nth-child(2)) .zone{min-height:560px}}

/* PDI: concentrar las acciones infantiles en la mitad inferior. */
@media(min-width:1100px) and (min-height:680px){
 #play{height:calc(100dvh - 54px)}
 .zone .scene{min-height:0}
 .zone .task-objects{flex:none!important;height:clamp(120px,18dvh,200px);min-height:0!important;margin-top:auto}
 .zone .restoration{display:none}
 .zone .task-objects .object-card{width:clamp(54px,6.5dvh,76px)!important;height:clamp(54px,6.5dvh,76px)!important;min-height:0!important}
 .zone .tool-tray{padding:4px 8px;gap:3px}
 .zone .tray-hint{min-height:18px;font-size:14px}
 .zone .bin-art{height:clamp(48px,6dvh,65px)}
 .zone .bin{min-height:66px;padding-bottom:0}
 .zone .feedback{min-height:28px;padding:4px;font-size:12px}
 .zone .seed-tool{min-height:48px;padding:3px 8px}
 .zone .seed-tool img{height:38px;width:38px}
}

/* Vida recuperada: decorativa, nunca intercepta acciones. */
.zone .restoration{display:block;pointer-events:none;order:1;overflow:hidden}
.living-forest{position:relative;height:100%;width:100%;pointer-events:none;border-radius:22px;background:radial-gradient(ellipse at 50% 100%,#f5dc7b44,transparent 70%)}
.life-caption{display:none}
.zone .restoration .life-sprite{position:absolute;left:calc(4% + var(--life-slot)*15%);bottom:0;width:13%;max-width:70px;height:100%;object-fit:contain;animation:none}
.zone .restoration .life-guardian{position:absolute;right:0;bottom:0;height:90%;width:17%;max-width:95px;object-fit:contain}
.life-sparkles{position:absolute;inset:10% 0 auto;text-align:center;color:#ae790d;font-size:25px;animation:forest-spark .8s ease-out both;pointer-events:none}
.zone .restoration .life-arrives{animation:forest-arrive .65s ease-out both}
.forest-complete{background:radial-gradient(ellipse at center,#ffe78b88,transparent 72%)}
@keyframes forest-arrive{from{opacity:0;transform:translateY(15px) scale(.65)}to{opacity:1;transform:none}}
@keyframes forest-spark{from{opacity:0;transform:translateY(15px) scale(.8)}35%{opacity:1}to{opacity:0;transform:translateY(-15px) scale(1.15)}}
@media(min-width:1100px) and (min-height:680px){
 .zone .restoration{display:block;flex:1;height:auto;min-height:0;order:1}
 .life-caption{display:block;position:absolute;top:3px;left:0;right:0;text-align:center;font-size:clamp(12px,1vw,17px);color:#245b32;text-shadow:0 1px 3px #fff,0 0 7px #fff}
 .zone .restoration .life-sprite{height:65%;max-height:100px;bottom:3px;max-width:80px;filter:drop-shadow(0 3px 2px #31582a30)}
 .zone .restoration .life-guardian{height:80%;max-height:125px;right:2%;bottom:5%}
 .forest-complete .life-sprite{left:calc(1% + var(--life-slot)*12%);width:12%}
}
.paused .living-forest *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.zone .restoration .life-arrives,.life-sparkles{animation:none}.life-sparkles{display:none}}
@media(min-width:1100px) and (min-height:680px){
 .zone .restoration .life-sprite{top:30px;bottom:auto;height:clamp(48px,7dvh,80px)}
 .zone .restoration .life-guardian{top:20px;bottom:auto;height:clamp(60px,9dvh,100px)}
}

/* Dos bloques independientes: panorama vivo arriba y cajas de juego abajo. */
#play{position:relative}
#forest-stage{display:flex;position:relative;flex:none;height:220px;margin:0 16px 8px;overflow:hidden;border:3px solid #b7c398;border-radius:22px;background:linear-gradient(#fffbe91a,#fffbe933),url(assets/bosque.webp) center 60%/cover;pointer-events:none}
.forest-view{position:relative;flex:1;min-width:0;border-right:1px solid #fff9}.forest-view:last-child{border:0}
.forest-life{position:absolute;inset:40px 2% 10px 40%}
.forest-life .life-caption{display:block;text-align:center;font-size:15px;color:#184f35;text-shadow:0 0 5px #fff}
.forest-life .life-sprite{position:absolute;left:calc(var(--life-slot)*16%);bottom:4%;width:15%;height:65%;max-height:115px;object-fit:contain;filter:drop-shadow(0 4px 2px #254a3033)}
.forest-life .life-guardian{display:none}
.forest-keepers{position:absolute;left:3%;bottom:8px;display:flex;width:35%;height:75%;justify-content:center;gap:12px}
.forest-keepers>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;flex:1}
.forest-keepers img{height:calc(100% - 27px);max-width:100%;object-fit:contain}.forest-keepers span{background:#fff9e9ed;border:1px solid #c5ad68;border-radius:12px;padding:3px 8px;font-size:13px;white-space:nowrap}
.forest-life .life-arrives{animation:forest-arrive .65s ease-out both}
@media(min-width:1100px) and (min-height:680px){
 #play{display:grid;grid-template-rows:calc(50dvh - 54px) minmax(0,1fr) 50px;height:calc(100dvh - 54px)}
 #play>.mission-bar{position:absolute;top:5px;left:25px;right:25px;z-index:2;padding:5px 10px;background:#fff9e9ed;border-radius:14px}
 #forest-stage{height:auto;grid-row:1;margin:0 16px 6px;padding-top:50px}
 #zones{grid-row:2;padding:4px 16px;min-height:0}
 #play>footer{grid-row:3;padding:4px 16px;min-height:0}
 .zone{border-radius:18px}
 .zone-head{padding:2px 9px;min-height:32px}.zone-head img{height:24px}.zone-head strong,.zone-head span{font-size:16px}.zone-head button{min-height:28px;font-size:16px;padding:2px 7px}
 .zone .growth{height:4px}
 .zone .scene{min-height:0;padding:3px 6px;gap:2px}
 .zone .mission-sign{padding:3px 6px;border-radius:9px}.zone .mission-sign small{display:none}.zone .mission-sign h3{margin:0;font-size:16px;line-height:1.1}
 .zone .task-objects{flex:1!important;height:auto;min-height:96px!important;margin:0}
 .zone .task-objects .object-card{width:clamp(44px,5.5dvh,68px)!important;height:clamp(44px,5.5dvh,68px)!important}
 .zone .tool-tray{padding:2px 6px;gap:0}.zone .tray-hint{font-size:12px;min-height:15px;line-height:1.1}
 .zone .bin{min-height:53px}.zone .bin-art{height:36px}.zone .bin-name{font-size:11px;line-height:1}
 .zone .feedback{min-height:22px;padding:2px 5px;font-size:11px;line-height:1.1}
 .zone .mission-badge{font-size:11px;padding:2px}.zone .seed-tool{min-height:32px}.zone .seed-tool img{height:26px;width:26px}.zone .seed-tool span{font-size:12px}
}
@media(max-width:1099px){#play{height:auto;min-height:calc(100dvh - 54px)}#zones{flex:none}.zone{min-height:470px}#forest-stage{height:170px}.forest-keepers{gap:3px}.forest-keepers span{font-size:10px;padding:2px 4px}.forest-life{inset:10px 2% 5px 40%}.forest-life .life-caption{font-size:12px}}
@media(prefers-reduced-motion:reduce){.forest-life .life-arrives{animation:none}}
/* Móvil: panorama compacto y una caja ajustada al espacio visible. */
@media(max-width:699px){
 #menu{padding:8px 12px;gap:8px}.cover{min-height:115px}.cover h1{font-size:34px;margin:6px 0}.cover .eyebrow{font-size:9px}.cover p{font-size:14px;margin:5px 0}.cover-heroes{height:105px}
 #setup{padding:12px;gap:8px}#setup label{gap:4px;font-size:14px}#setup select{min-height:40px;padding:7px 5px;font-size:14px}#setup legend{font-size:14px;padding-bottom:4px}.menu-note{font-size:11px}#curriculum>summary{min-height:44px;padding:6px 8px}#curriculum-context{font-size:10px}#curriculum-count{font-size:10px}
 #play:not(:has(.zone:nth-child(2))){height:calc(100dvh - 43px);min-height:0}
 #play:not(:has(.zone:nth-child(2))) #forest-stage{height:clamp(85px,15dvh,130px);margin:0 10px 5px;border-radius:15px}
 #play:not(:has(.zone:nth-child(2))) #zones{flex:1;min-height:0;padding-top:2px;padding-bottom:3px}
 #play:not(:has(.zone:nth-child(2))) .zone{min-height:0}
 #play:not(:has(.zone:nth-child(2))) .scene{min-height:196px;padding:4px;gap:3px}
 #play:not(:has(.zone:nth-child(2))) .task-objects{min-height:146px!important}
 #play:not(:has(.zone:nth-child(2))) .object-card{width:60px!important;height:60px!important;min-height:0!important}
 #play:not(:has(.zone:nth-child(2))) .mission-sign{padding:4px 6px}#play:not(:has(.zone:nth-child(2))) .mission-sign h3{font-size:15px}
 #play:not(:has(.zone:nth-child(2))) .tool-tray{padding:3px 6px;gap:2px}.zone .tray-hint{font-size:13px;min-height:16px}.zone .mission-badge{font-size:11px;padding:2px}.zone .feedback{font-size:11px;min-height:26px;padding:3px 6px}
 #play:not(:has(.zone:nth-child(2))) .bin-art{height:42px}#play:not(:has(.zone:nth-child(2))) .bin{min-height:60px}.zone .seed-tool{min-height:40px;padding:2px 6px}.zone .seed-tool img{height:30px;width:30px}.zone .seed-tool span{font-size:12px}
 .forest-life{left:35%;top:6px}.forest-life .life-caption{font-size:10px}.forest-keepers{height:80%;bottom:4px}.forest-keepers span{font-size:10px}
}
@media(max-width:699px) and (max-height:600px){#play:not(:has(.zone:nth-child(2))){height:auto;min-height:calc(100dvh - 43px)}.cover p{display:none}.cover{min-height:95px}.cover-heroes{height:90px}}
@media(max-width:699px){.cover p{display:none}.cover{min-height:110px}}

#curriculum.criterion-chips{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;border:0;background:none;padding:0}
.criteria-label{font-size:12px;color:#4b6654}
.criterion-chip{min-height:36px;padding:5px 10px;border:2px solid #b8494d;border-radius:20px;background:#fff2ef;color:#9d2831;font-size:12px;font-weight:600;box-shadow:0 2px 0 #c8c8ad}
dialog.curriculum-modal{width:min(620px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:18px;border:2px solid #bdccaf;border-radius:20px;background:#fffcef;color:#244c3b;text-align:left;overflow:hidden;box-shadow:0 14px 55px #183c3544}
dialog.curriculum-modal[open]{display:flex;flex-direction:column;gap:12px}
.curriculum-modal::backdrop{background:#163d3480}
.curriculum-modal header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}.curriculum-modal h2{font-size:21px;margin:0}.curriculum-modal header button{min-width:44px;min-height:44px;font-size:22px;padding:3px 10px;flex:none}
.curriculum-scroll{overflow:auto;min-height:0;overscroll-behavior:contain}.curriculum-scroll p{font-size:16px;line-height:1.55;margin:8px 0}.curriculum-scroll .curriculum-context,.curriculum-scroll .curriculum-help{font-size:13px;color:#566b59}
.curriculum-actions{display:flex;flex-wrap:wrap;gap:8px;flex:none}.curriculum-actions button{min-height:44px;font-size:14px}.curriculum-actions button:first-child{background:#246b50;border-color:#246b50;color:white}
.knowledge-entry{border-top:1px solid #d4dcc7;padding:10px 0}.knowledge-entry h3{font-size:15px;margin:0;color:#276343}.curriculum-scroll a{color:#276343;font-size:13px}
#knowledge-dialog{width:min(660px,calc(100vw - 24px))}
@media(max-width:699px){dialog.curriculum-modal{padding:12px;gap:8px}.curriculum-modal h2{font-size:18px}.curriculum-scroll p{font-size:15px}.curriculum-actions{flex-direction:column}.criterion-chip{min-height:40px}.criteria-label{font-size:11px;width:100%;text-align:center}}

.lxpdi-bar.bosque-class-bar{position:static;transform:none;margin:auto;font-size:11px;padding:3px 8px;gap:4px;box-shadow:none;max-width:70%;flex-wrap:nowrap}.bosque-class-bar .lxpdi-j img{width:23px;height:23px}.bosque-class-bar .lxpdi-x{min-height:32px}.bosque-flag{width:27px;height:18px;flex:none;background:url(https://letrasia.es/wp-content/plugins/letrasia-aula/assets/banderas-comunidades.webp) no-repeat;background-size:27px auto}.aula-clase .player-avatar{border-radius:50%;object-fit:cover;width:28px;height:28px}.zone-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lxpdi-fab{font-size:12px!important;padding:7px 10px!important;bottom:5px!important}.top .bosque-class-bar{overflow:auto}.aula-clase .top{padding-left:6px;padding-right:6px}.aula-clase .top>a{font-size:12px}.aula-clase .top #voice{font-size:11px;padding:4px}.forest-keepers span{max-width:100%;overflow:hidden;text-overflow:ellipsis} .lxpdi-box button{touch-action:manipulation} @media(max-width:699px){.bosque-class-bar{max-width:65%!important}.bosque-class-bar .lxpdi-j{font-size:10px}.lxpdi-box h2{font-size:20px!important}.lxpdi-box{padding:14px!important}.lxpdi-box p{font-size:14px!important}.lxpdi-al{font-size:13px!important}}
