/* La isla de las palabras — aula ilustrada, 1.3 */
:root{--parchment:#fff4d9;--parchment-edge:#c99c55;--adventure-teal:#126b64;--adventure-purple:#704398;--adventure-ink:#263b31}
body:is([data-screen=type],[data-screen=play],[data-screen=games],[data-screen=rodari],[data-screen=texts],[data-screen=notebook]){background:#ecedcf url('./assets/visual/school-garden.webp') center top/cover fixed no-repeat}
body:is([data-screen=type],[data-screen=play],[data-screen=games],[data-screen=rodari],[data-screen=texts],[data-screen=notebook]) #main{min-height:100svh;padding-bottom:20px}
.game-header .round-control,.round-control{border:2px solid #f7ddb0;box-shadow:0 3px 0 #785d35,0 5px 12px #243f3420;color:#24493e;background:linear-gradient(#fffdf1,#f7e5bf)}
.round-control:focus-visible,.action-button:focus-visible,.quiet-button:focus-visible{outline:3px solid #126b64;outline-offset:4px}
.map-landscape{filter:saturate(1.02) brightness(.98)}
.map-place>span:last-child{background:linear-gradient(#fffbe8,#f6e4b9);border-color:#ad7939;border-radius:10px 15px 12px 9px;box-shadow:0 4px 0 #755126,0 0 14px #fff4cbd9;padding:5px 13px 7px}
.map-place:before{background:radial-gradient(circle,#fffef6 25%,#fff7deed 52%,#ffedb877 67%,transparent 76%)}
.map-dock{background:linear-gradient(#fff6dbf2,#efd3a7f2);border-color:#b48749;box-shadow:0 5px 0 #79572f,0 10px 25px #183d3c50}
.lesson-topbar,.play-topbar{padding-top:89px;padding-bottom:20px}
.lesson-name{gap:13px}.lesson-name .art{width:64px;height:64px;filter:drop-shadow(0 3px 3px #47331e40)}
.lesson-name h1,.play-topbar h1{display:inline-block;flex:none;padding:12px 24px;background:linear-gradient(105deg,#f4d69e,#fff7df 35%,#fff5d8 75%,#edcc96);border:1px solid #bd914e;border-radius:10px 17px 11px 15px;box-shadow:0 4px 0 #9d733c55;color:#462c1c}
.play-topbar h1{flex:1;font-size:29px}
.lesson-tabs{border:1px solid #b88b4a;border-radius:20px;background:linear-gradient(#fffae7,#f1d9ae);box-shadow:0 4px 0 #85643766}
.lesson-tabs a,.lesson-tabs button{padding:11px 18px;min-height:44px;color:#243f35}
.lesson-tabs :nth-child(1).active{background:linear-gradient(#27867a,#0d625c);box-shadow:inset 0 0 0 2px #c0e4ce,0 3px 0 #174b43}
.lesson-tabs :nth-child(2).active{background:linear-gradient(#b78331,#8a5c1d);box-shadow:inset 0 0 0 2px #f8d795,0 3px 0 #69481e}
.lesson-tabs :nth-child(3).active{background:linear-gradient(#cb5571,#a33156);box-shadow:inset 0 0 0 2px #f3becc,0 3px 0 #7d2443}
.lesson-tabs :nth-child(4).active{background:linear-gradient(#9c63be,#714095);box-shadow:inset 0 0 0 2px #e4c6f7,0 3px 0 #563172}
.lesson-tabs .active{color:#fffdf3}
.discovery-lesson{max-width:1300px}.discovery-intro{display:grid;grid-template-columns:.7fr 1.3fr;gap:25px;align-items:center;padding:18px 25px;margin-bottom:17px;background:#fff8e8f5;border:1px solid #c5a36a;border-radius:13px 20px 15px 20px;box-shadow:0 4px 0 #aa844139}
.discovery-intro h2{font:500 28px/1.2 Fredoka;margin:0;color:#462c1c}.discovery-intro p{font:17px/1.5 Andika,Arial,sans-serif;max-width:none;margin:0;color:#293e33}
.discovery-tabs{display:flex;justify-content:center;gap:12px;margin:0 auto 17px;max-width:1020px}
.discovery-tabs [role=tab]{display:flex;align-items:center;gap:10px;padding:5px 16px 5px 7px;flex:1;min-width:0;text-align:left;background:linear-gradient(#fffdf1,#f4dfb9);border:2px solid #c7a36b;border-radius:14px;box-shadow:0 4px 0 #8d6c3a50;color:#365247}
.discovery-tabs .art{width:63px;height:63px;border-radius:9px;border:2px solid #fff8df}.discovery-tabs span{display:flex;align-items:center;gap:8px;font:500 20px/1.15 Fredoka}.discovery-tabs b{display:grid;place-items:center;border-radius:50%;width:24px;height:24px;flex:none;font-size:15px;background:#e7c995;color:#513e25}
.discovery-tabs [aria-selected=true]{background:linear-gradient(#2e8a7e,#14645d);color:#fffbe9;border-color:#f9e6bc;box-shadow:0 0 0 2px #306959,0 5px 0 #264e4255}.discovery-tabs [aria-selected=true] b{background:#fff0c9;color:#214c3c}
.discovery-tabs button:focus-visible{outline:3px solid #6a3a92;outline-offset:4px}
.discovery-scene{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:stretch}.discovery-scene[hidden]{display:none!important}
.discovery-picture{position:relative;align-self:center;min-width:0;border:6px solid #fff4d9;border-radius:23px;overflow:hidden;box-shadow:0 5px 0 #9b7747,0 13px 22px #294f3038}.discovery-picture>.art{width:100%}
.scene-magnifier{position:absolute;right:14px;bottom:14px;background:#176e63eb;color:white;border-color:#fff2ca}
.discovery-parchment,.parchment-panel{background:radial-gradient(ellipse at 20% 15%,#fffdf0,transparent 80%),linear-gradient(100deg,#efd1a0,#fff3d5 12%,#fff7df 90%,#e8c18b);border:1px solid #bc8b45;border-radius:12px 25px 16px 21px;box-shadow:0 5px 0 #8c673f70,0 11px 20px #29412d24}
.discovery-parchment{display:flex;flex-direction:column;justify-content:center;padding:27px 31px;position:relative;color:var(--adventure-ink)}.lesson-step{font:500 16px/1 Fredoka;color:#7b633e;margin-bottom:9px}.discovery-parchment h3{font:500 32px/1.15 Fredoka;color:#512f1c;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #d8b77d}.discovery-parchment>p{font:19px/1.55 Andika,Arial,sans-serif;margin:0 0 20px;max-width:none}.discovery-look{padding:17px 20px;background:#e5e7bc99;border:1px solid #d1ca8f;border-radius:13px}.discovery-look h4{display:flex;gap:9px;align-items:center;font:500 21px/1.2 Fredoka;margin:0 0 10px}.discovery-look h4 svg{width:25px;height:25px;color:#80621b}.discovery-look ul{margin:0;padding-left:21px;font:17px/1.55 Andika,Arial,sans-serif}.discovery-look li+li{margin-top:8px}.discovery-pager{display:flex;justify-content:center;gap:20px;align-items:center;margin-top:22px;font:500 17px Fredoka;color:#6d6545}.discovery-pager .round-control{width:36px;height:36px}.discovery-lesson .lesson-actions{margin-top:22px}
.action-button{background:linear-gradient(#318c78,#15665d);border:2px solid #fff0c9;color:#fffced;box-shadow:0 4px 0 #214f45,0 7px 14px #223f3826;border-radius:16px}.action-button:hover{background:linear-gradient(#3e9a87,#1b756b)}
.quiet-button{background:linear-gradient(#fffdf0,#f6e1b9);border-color:#b89157;box-shadow:0 3px 0 #9d7c4755;color:#3c4c37}
.explained-lesson>.one-question{background:#fff5dce8;border:1px solid #c79d5b;border-radius:12px;width:fit-content;margin:0 auto 24px;padding:10px 28px;color:#4a2e1b}
.examples .story-panel{position:relative;overflow:visible;background:linear-gradient(100deg,#f4dcb5,#fff6df 15%,#fff7e1 90%,#f0d2a2);border:2px solid #d3b37c;border-radius:20px;box-shadow:0 5px 0 #9d793e66}.examples .picture-button{padding:7px 7px 0;overflow:hidden;border-radius:19px 19px 0 0}.examples .picture-button .art{border-radius:14px}.examples .story-panel>div{padding:18px 20px 22px}.examples .story-panel h3{display:table;position:relative;margin:-34px auto 17px;z-index:1;color:#fff9e9;background:#9c3c5e;border:1px solid #f6d7a1;padding:7px 18px;border-radius:7px;box-shadow:0 3px 0 #692741;font:500 23px/1.15 Fredoka;text-align:center}.examples .story-panel:nth-child(2) h3{background:#aa7025;box-shadow:0 3px 0 #7c501a}.examples .story-panel:nth-child(3) h3{background:#277466;box-shadow:0 3px 0 #1e5147}.examples .story-panel p.model-text{font-size:18px;line-height:1.5;max-width:none}.examples .example-comment{font-size:15px!important;line-height:1.5!important;border-top:1px solid #dfc597;padding-top:13px;margin-top:15px!important}.examples .story-panel:not(:last-child):after{content:'➜';position:absolute;right:-24px;top:35%;z-index:2;font-size:30px;color:#405d34;text-shadow:0 1px #fff8e0}
.game-pedagogy{max-width:1200px;margin:0 auto 23px;background:#fff7e6f5;border:1px solid #c8a169;border-radius:15px;padding:17px 24px;line-height:1.55}.quest-card,.picture-order li{border:3px solid #fff1cd;background:linear-gradient(#fff9e9,#f1d7ab);box-shadow:0 5px 0 #a47941,0 12px 20px #23422d20}.quest-card h2{color:#47311f}.quest-card>.art{border-radius:20px 20px 0 0}.picture-order li>div{padding-bottom:19px}.picture-order li>p{line-height:1.5}.picture-order li>div>span{border:1px dashed #5b8b85;background:#e8f3e8;min-width:66px;text-align:center;padding:6px 15px;border-radius:9px;color:#1f625d}.picture-choices .picture-choice>span:last-of-type{border:1px solid #bc995d}.answer-card{background:linear-gradient(#fffbed,#f5e4c3)}.answer-card.selected{background:#d9ecdb;border-color:#277c68}.teaching-text,.rodari-option{background:linear-gradient(100deg,#f4ddb7,#fff6df 20%,#fff8e5 85%,#f0d4a8);border-color:#c6a370;box-shadow:0 5px 0 #93704450}.practice-instruction{background:#fff4dcea;border:1px solid #c6a370;line-height:1.6}.illustrated-tile{background:radial-gradient(ellipse,#fff7e5e8 15%,#f6dfb4bd 56%,transparent 73%)}.illustrated-tile:hover{background:#fff4d7e8}.notebook-cover{background:linear-gradient(100deg,#efd3a5,#fff5db);border-color:#c2a16d}
/* An open writing desk: the paper always keeps most of the workspace. */
.rich-writer{background:#eed6b1 url('./assets/visual/writing-desk.webp') center top/cover fixed no-repeat;padding:0 25px 36px}
.rich-writer .writer-toolbar{max-width:1540px;padding-top:13px;padding-bottom:15px}.rich-writer .writer-type{background:#fff4dcec;border:1px solid #c2a06a;padding:8px 14px;border-radius:9px;color:#4b3524}.rich-writer .writer-send{background:linear-gradient(#a365c8,#744297);box-shadow:0 3px 0 #51316a}.writer-workspace{max-width:1540px;display:grid;grid-template-columns:145px minmax(0,1fr) 174px;gap:17px;margin:auto;align-items:start}.writer-center{min-width:0}.rich-writer .writer-formatbar{margin-bottom:12px;justify-content:flex-start;border-color:#bf9a65;border-radius:12px;background:#fffaf0f5;box-shadow:0 3px 0 #956d3d55;gap:7px;padding:9px 11px}.rich-writer .writing-paper{max-width:none;min-height:calc(100svh - 185px);padding:28px 38px 20px;border:1px solid #d6c49d;border-radius:12px;background:#fffefa;box-shadow:0 5px 0 #997a4c55,0 14px 30px #3e2b1f33}.rich-writer .writing-paper>input{padding-bottom:15px;font-size:30px}
.writer-plan,.writer-ideas{padding:16px 12px;position:sticky;top:15px}.writer-plan h2,.writer-ideas h2{font:500 21px/1.15 Fredoka;color:#4a301e;margin:0 0 18px;text-align:center}.writer-plan ol{list-style:none;margin:0;padding:0;counter-reset:writing-step}.writer-plan li{counter-increment:writing-step;position:relative;padding:0 0 16px 26px;margin-bottom:13px;border-bottom:1px solid #d9bb89;font:15px/1.4 Andika,Arial,sans-serif}.writer-plan li:before{content:counter(writing-step);position:absolute;left:-3px;top:0;display:grid;place-items:center;width:23px;height:23px;background:#8a4ba4;border:1px solid #fff4d4;border-radius:50%;font:500 15px Fredoka;color:white;box-shadow:0 2px 0 #59336b}.writer-plan b{display:block;font:500 19px/1.2 Fredoka;margin-bottom:4px}.writer-plan span{display:block;font-size:12px}.writer-plan .quiet-button,.writer-ideas>.quiet-button{width:100%;font-size:15px;gap:5px;padding:8px 5px;min-height:38px}.writer-plan .quiet-button svg,.writer-ideas h2 svg{width:20px;height:20px}.writer-ideas h2{display:flex;justify-content:center;align-items:center;gap:5px;font-size:20px}.writer-idea-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.writer-idea-grid button{padding:0;overflow:hidden;border:2px solid #fffbea;border-radius:10px;box-shadow:0 2px 0 #9a764a;background:#f2d9ac}.writer-idea-grid .art{width:100%;aspect-ratio:1}.writer-idea-grid button:hover{transform:translateY(-2px)}.writer-idea-grid button:focus-visible{outline:3px solid #126b64;outline-offset:3px}
@media(min-width:1800px){.writer-workspace{grid-template-columns:175px minmax(0,1fr) 210px;gap:22px}.writer-plan,.writer-ideas{padding:23px 16px}.writer-plan span{font-size:14px}.writer-idea-grid{gap:10px}}
@media(max-width:1250px){.writer-workspace{grid-template-columns:minmax(0,1fr) 165px}.writer-plan{display:none}.lesson-topbar{gap:12px}.lesson-name h1{font-size:29px;padding:10px 17px}.lesson-tabs a,.lesson-tabs button{padding:11px 14px}.discovery-parchment{padding:24px}.discovery-parchment>p{font-size:18px}.discovery-parchment h3{font-size:29px}.rich-writer .writing-paper{padding:28px 32px 20px}}
@media(max-width:1000px){.writer-workspace{display:block;max-width:1100px}.writer-ideas{display:none}.rich-writer .writer-formatbar{justify-content:center}.discovery-scene{gap:18px}.discovery-intro{gap:18px;grid-template-columns:.75fr 1.25fr}.discovery-intro h2{font-size:25px}.lesson-name .art{width:52px;height:52px}.lesson-name h1{font-size:26px}.lesson-topbar{flex-wrap:wrap}.lesson-tabs{margin-left:auto}.discovery-tabs [role=tab]{padding-right:9px}.discovery-tabs .art{width:47px;height:47px}.discovery-tabs span{font-size:18px}.discovery-tabs b{display:none}.discovery-look{padding:13px}.discovery-look ul{font-size:16px}.discovery-parchment h3{font-size:26px}.discovery-parchment>p{font-size:17px}.discovery-parchment{padding:23px}}
@media(max-width:700px){body:is([data-screen=type],[data-screen=play],[data-screen=games],[data-screen=rodari],[data-screen=texts],[data-screen=notebook]){background-attachment:scroll;background-size:auto 100svh;background-color:#efe2c1}.lesson-topbar,.play-topbar{padding-top:77px;padding-bottom:18px}.lesson-topbar{gap:9px}.lesson-name{gap:6px}.lesson-name h1{font-size:25px;padding:9px 15px}.lesson-name .art{width:42px;height:42px}.lesson-tabs{width:100%;margin-top:3px}.lesson-tabs a,.lesson-tabs button{flex:1;text-align:center;padding:11px 5px;font-size:17px}.discovery-intro{display:block;padding:17px 20px}.discovery-intro h2{font-size:25px;margin-bottom:10px}.discovery-intro p{font-size:16px}.discovery-tabs{gap:7px}.discovery-tabs [role=tab]{display:block;padding:5px 5px 8px;text-align:center}.discovery-tabs .art{width:100%;height:auto;max-width:83px;aspect-ratio:1;margin:0 auto 7px}.discovery-tabs span{display:block;font-size:16px}.discovery-scene{display:block}.discovery-picture{max-width:420px;margin:0 auto 19px}.discovery-parchment{padding:24px}.discovery-parchment>p{font-size:18px}.discovery-look ul{font-size:17px}.discovery-lesson .lesson-actions{gap:15px}.lesson-actions .action-button{font-size:18px;padding:11px 16px}.examples .story-panel:not(:last-child):after{display:none}.examples .story-panel>div{padding:16px 20px 22px}.game-pedagogy{margin:0 18px 22px;padding:16px 20px;font-size:17px}.play-topbar h1{padding:10px 15px;font-size:25px}.rich-writer{padding:0 13px 24px;background-attachment:scroll}.rich-writer .writer-toolbar{padding:10px 0 12px}.rich-writer .writer-type{font-size:16px;padding:6px 9px}.rich-writer .writer-formatbar{justify-content:flex-start;padding:9px;gap:6px}.rich-writer .writing-paper{padding:23px 22px 17px;min-height:60svh}.rich-writer .writing-paper>input{font-size:28px}.writer-workspace{width:100%}}
@media print{body{background:white!important}.writer-plan,.writer-ideas{display:none!important}.writer-workspace,.writer-center{display:block!important;max-width:none!important}.rich-writer .writing-paper{border:0!important;border-radius:0!important;margin:0!important}.rich-writer .print-text{color:#263b31}}
