@font-face{font-family:Minya;src:url('assets/Minya.otf')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#0c3449;color:#173d51;font-family:Minya,Georgia,serif}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #fff08a;outline-offset:3px}button{border:2px solid #dba63c;color:#183d51;background:#fff0c8;border-radius:16px;padding:.5em .85em;box-shadow:0 3px 0 #8f5f2d;font-size:clamp(15px,1.7vw,24px);transition:filter .2s,box-shadow .2s}button:hover{filter:brightness(1.08);box-shadow:0 0 18px 5px #ffdc6899}button:disabled{cursor:default;opacity:.65}h1,h2,h3,p{margin:.4em 0}#app{height:100dvh;width:100vw;display:flex;align-items:center;justify-content:center}.cover{position:relative;width:min(100vw,calc((100dvh - 64px)*1.5));aspect-ratio:3/2}.cover>img{width:100%;height:100%;display:block}.hot{position:absolute;border:0;background:transparent;box-shadow:none;border-radius:18px;padding:0}.hot:hover{background:#fff3;box-shadow:0 0 23px 6px #ffe483}.w0{left:14%;top:30%;width:23%;height:55%}.w1{left:38%;top:29%;width:23%;height:56%}.w2{left:63%;top:30%;width:23%;height:55%}.home-links{position:absolute;left:0;right:0;bottom:-29px;display:flex;align-items:center;justify-content:center;gap:20px;height:28px;color:#fff0c8;font-size:14px}.home-links a{color:inherit}.home-links button{font-size:14px;padding:2px 10px}.pdf-small{position:absolute;bottom:2.5%;left:36%;width:29%;font-size:clamp(12px,1.5vw,21px);text-align:center;background:#fff0c8;border:2px solid #dfad45;border-radius:30px;padding:.35em;color:#183d51;text-decoration:none}.scene{position:relative;width:min(100vw,150dvh);height:min(100dvh,66.6667vw);background-position:center;background-size:100% 100%}.scene .nav{position:absolute;top:2%;left:2%;right:2%;z-index:3}.nav{display:flex;justify-content:space-between;gap:8px}.nav button{font-size:clamp(14px,1.5vw,20px);padding:.3em .7em}.scene-title{position:absolute;top:2%;left:22%;width:56%;text-align:center;color:#ffdf75;text-shadow:0 2px 3px #14394b;font-size:clamp(22px,3vw,42px);pointer-events:none}.scene-option{position:absolute;width:33%;height:24%;background:transparent;border:0;box-shadow:none;font-size:clamp(18px,2.8vw,38px);text-shadow:0 1px #fff9;padding:2%;line-height:1.1}.o0{left:5%;top:18%}.o1{right:5%;top:18%}.o2{left:5%;bottom:10%}.o3{right:5%;bottom:10%}.game{width:100%;height:100%;padding:1.2vh 3vw;display:grid;grid-template-rows:auto auto 1fr auto;gap:.5vh;background:linear-gradient(#12394b33,#12394b55),url('assets/escenario.webp') center/cover}.game h1{text-align:center;color:#ffe28a;font-size:clamp(22px,3.1vw,42px);line-height:1.05}.instruction{color:#fff2cf;text-align:center;font-size:clamp(14px,1.6vw,22px)}.game-head{display:flex;align-items:center;justify-content:space-between;gap:1vw}.game-head h1{flex:1}.stage{min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1vh;padding:1vh 2vw;position:relative}.paper{background:#fff1d5ee;border:4px solid #e1af46;box-shadow:0 8px 20px #0004;border-radius:24px}.chalk{background:#204d47ed;border:12px ridge #bd864d;color:#fff5d9;border-radius:4px}.status{min-height:2.5em;display:flex;align-items:center;justify-content:center;text-align:center;color:#ffe68c;font-size:clamp(14px,1.8vw,24px);max-width:95%;margin:auto}.row{display:flex;gap:1vw;align-items:center;justify-content:center;flex-wrap:wrap}.levels{gap:3vw}.level{display:flex;flex-direction:column;align-items:center;gap:1vh;padding:2vh 3vw}.level img{height:min(27vh,170px);max-width:20vw;object-fit:contain}.muted{font-size:clamp(13px,1.4vw,18px)}.memory{display:grid;gap:.8vh;width:100%;height:100%;max-width:1000px;min-height:0;justify-content:center}.tile{min-height:0;min-width:0;width:100%;height:100%;padding:.4vh;display:flex;align-items:center;justify-content:center;background:#174f68;border:3px solid #e9bd55}.tile img{width:100%;height:100%;object-fit:contain}.tile .back{color:#ffdd72;font-size:clamp(24px,4vw,55px)}.tile.matched{background:#7ed0bf;opacity:1}.counter{color:#ffe08b;position:absolute;right:3vw;top:-1vh;font-size:clamp(14px,1.5vw,20px)}.choices{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3vh 1vw;width:95%;max-width:1100px}.choices button{min-height:8vh;font-size:clamp(16px,2vw,28px)}.on{background:#fbd56e!important;border-color:#fff4ad!important}.portrait-host{height:20vh;object-fit:contain}.thought{font-size:clamp(21px,3vw,40px);text-align:center;max-width:90%}.wheel-wrap{height:100%;min-height:0;display:flex;align-items:center;justify-content:center;gap:5vw}.wheel{height:min(49vh,50vw);aspect-ratio:1;border-radius:50%;border:9px solid #e7b645;box-shadow:0 8px 0 #9e6f32;background:conic-gradient(#eebc4a 0 45deg,#75cbb9 45deg 90deg,#e89163 90deg 135deg,#71bbce 135deg 180deg,#eebc4a 180deg 225deg,#75cbb9 225deg 270deg,#e89163 270deg 315deg,#71bbce 315deg);position:relative;transition:transform 3s cubic-bezier(.15,.7,.12,1)}.wheel img{position:absolute;left:35%;top:30%;width:30%;height:40%;object-fit:contain}.wheel-label{position:absolute;left:36%;top:5%;font-size:clamp(13px,1.6vw,21px);transform-origin:50% 20vh}.pointer{color:#fff1a0;position:absolute;top:-10px;left:45%;font-size:32px;z-index:2}.plan-box{width:35vw;text-align:center;color:#fff0c8}.plan-box h2{font-size:clamp(24px,3vw,42px)}.illusion{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;gap:3vw}.illusion svg{max-height:90%;width:48%;filter:drop-shadow(0 3px 2px #0002)}.illusion-explain{width:40%;font-size:clamp(16px,2vw,27px)}.illusion-menu{grid-template-columns:repeat(3,1fr)}.illusion-menu button{height:18vh}.cups-floor{position:relative;width:min(80vw,1000px);height:38vh;border-bottom:12px solid #9b6237;perspective:800px}.cup{position:absolute;bottom:0;width:20%;height:90%;padding:0;border:0;background:transparent;box-shadow:none;transition:left .65s ease-in-out,transform .4s;z-index:2}.cup:hover{background:none}.cup svg{width:100%;height:100%;filter:drop-shadow(5px 8px 4px #0005)}.ball{position:absolute;bottom:1%;width:3vw;height:3vw;border-radius:50%;background:radial-gradient(circle at 30% 30%,#fff8ba,#efb738 40%,#c25b20);z-index:1}.raised{transform:translateY(-7vh)}.number{font-size:clamp(45px,9vw,110px);color:#e6a531}.steps{max-width:850px;width:90%;text-align:center;line-height:1.5;font-size:clamp(17px,2vw,28px)}input,textarea{background:#fff8e7;color:#193d50;border:2px solid #dab45e;border-radius:10px;padding:.3em;max-width:100%;text-align:center}input{font-size:clamp(20px,3vw,40px);width:12ch}canvas{touch-action:none;background:white;display:block;max-width:100%;max-height:100%;object-fit:contain}.draw-layout{display:grid;grid-template-columns:17% 1fr 19%;width:100%;height:100%;min-height:0;gap:1.5vw}.draw-side{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:.7vh;min-height:0}.draw-side button{font-size:clamp(13px,1.5vw,20px);padding:.3em}.canvas-wrap{min-height:0;display:flex;align-items:center;justify-content:center;background:#fff;border:8px ridge #c6974d}.swatches{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.swatches button{aspect-ratio:1;padding:0;border:2px solid white;min-width:0;border-radius:50%}.sheet-pick{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.sheet-pick button{padding:4px}.sheet-pick img{width:100%;height:7vh;object-fit:contain}.save-note{font-size:clamp(11px,1.2vw,16px);text-align:center}.word-layout{display:flex;align-items:center;justify-content:center;gap:3vw;width:100%;height:100%;min-height:0}.word-grid{display:grid;gap:3px;width:min(48vh,48vw);aspect-ratio:1}.word-grid button{padding:0;min-width:0;min-height:0;border-radius:6px;font-size:clamp(15px,2.8vh,25px);box-shadow:none}.found{background:#88d0b8!important}.word-list{max-width:37%;font-size:clamp(17px,2.2vw,30px);line-height:1.6;color:#fff1ca}.done{text-decoration:line-through;color:#a3e5c7}.hidden-word{display:flex;gap:.5vw;justify-content:center}.letter-box{width:5vw;height:7vh;background:#fff5d9;border-bottom:4px solid #c89b43;display:flex;align-items:center;justify-content:center;font-size:clamp(22px,4vw,50px)}.keyboard{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;max-width:85%;}.keyboard button{width:5vw;padding:.15em;font-size:clamp(16px,2.2vw,30px)}.reward{height:22vh;max-width:24vw;object-fit:contain}.info-pages{font-size:clamp(16px,2vw,27px);max-width:1000px;line-height:1.45;text-align:center}.info-pages img{height:17vh;object-fit:contain}.info-pages a{color:#19556a}.info-pages p{max-width:60ch}.invention-input{display:flex;gap:1vw}.invention-input input{font-size:clamp(14px,1.5vw,22px);width:45%}#rotate{display:none;position:fixed;inset:0;background:#154c62;color:#ffebaa;text-align:center;align-items:center;justify-content:center;flex-direction:column;padding:7vw;z-index:100}.faces{display:flex;height:30vh;gap:4vw}.faces img{width:23vw;object-fit:contain}#confetti{position:fixed;inset:0;pointer-events:none;z-index:90;overflow:hidden}.conf{position:absolute;top:-10%;width:10px;height:17px;animation:fall 2.5s ease-in forwards}@keyframes fall{to{top:110%;transform:translateX(10vw) rotate(720deg)}}@media(orientation:portrait){#rotate{display:flex}#app{visibility:hidden}}@media(max-height:440px){.game{padding:.7vh 2vw;gap:0}.game h1{font-size:23px}.status{font-size:14px;min-height:2em}.instruction{font-size:14px}.nav button,.game-head button{font-size:14px;padding:.2em .6em}.stage{padding:.5vh 1vw}.choices button{font-size:17px}.home-links{font-size:12px;gap:12px}.home-links button{font-size:12px}.level img{height:22vh}.paper{border-width:2px}.chalk{border-width:7px}.draw-side button{font-size:13px}.save-note{font-size:11px}}
@media print{@page{size:landscape;margin:12mm}html,body{overflow:visible;background:white!important;height:auto}#app{display:block;height:auto}.game{display:block;background:white;padding:0}.game-head,.instruction,.status,.draw-side,#rotate,#confetti,.invention-input{display:none!important}.stage{height:auto;padding:0;background:white;border:0;box-shadow:none}.draw-layout{display:block;height:auto}.canvas-wrap{border:0;width:100%}canvas{width:100%;max-height:170mm;height:auto}.game h1{color:black}.print-title{display:block}}
.scene-title{top:1%;left:25%;width:50%;font-size:clamp(18px,2.4vw,32px)}.scene-option{padding:1%;line-height:1.2}.cover-sound{left:5%;top:87%;width:6%;height:8%}.cover-info{left:89%;top:87%;width:6%;height:8%}.pdf-small{left:37%;top:89%;width:26%;height:7%;background:transparent;border:0;padding:0}.memory{flex:1}.illusion svg{width:100%}.print-title{display:none}

#tools{display:grid;grid-template-columns:1fr 1fr;gap:.7vh;align-content:center}#tools h3,#tools .swatches,#tools .save-note{grid-column:1/-1}#tools button{font-size:clamp(12px,1.3vw,18px)}.swatches{grid-template-columns:repeat(5,1fr);max-width:180px;width:100%;margin:auto}.swatches button{height:3.7vh;max-height:35px;width:100%}.level{max-width:29vw;text-align:center}.level .muted{max-width:23vw}.game-head h1{margin:.25em 0}
@media(max-height:440px){#tools{gap:3px}#tools h3{display:none}#tools button{font-size:11px;padding:.2em}.swatches button{height:4vh}.save-note{font-size:10px;line-height:1.1;margin:1px}.game .stage{min-height:0}.word-grid{width:min(50vh,45vw)}}
.faces{height:auto;align-items:center}.faces img{height:24vw;max-height:28vh;object-fit:cover;object-position:50% 20%;border-radius:50%;background:#e1b650;border:4px solid #f7d57a}.faces img:first-child{object-position:50% 30%}
.draw-side{color:#fff1d1}.draw-side input,.draw-side textarea{color:#173d51}.stage:not(.paper):not(.chalk)>h2{color:#fff0c8;text-shadow:0 2px 2px #153d51}.chalk .canvas-wrap{background:#214f47}.party-toast{position:absolute;bottom:7%;left:40%;width:20%;max-height:28vh;object-fit:contain;background:#fff9e9;border:4px solid #e8bb51;border-radius:50%;box-shadow:0 5px 25px #0006;animation:party 2.6s forwards}@keyframes party{0%{transform:scale(0);opacity:0}15%,75%{transform:scale(1);opacity:1}100%{transform:scale(.8);opacity:0}}@media print{.draw-side{display:none!important}}
.scene-host{position:absolute;left:39%;width:22%;bottom:8%;height:65%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 4px #10314140)}.host-mika{height:62%;bottom:7%}.host-marvin{height:65%;bottom:8%}
@media(max-height:440px){.info-pages{font-size:14px;line-height:1.3;max-width:95%}.info-pages>img{display:none}.info-pages h2{font-size:20px}.info-pages p{margin:.25em 0}.info-pages .row button{font-size:14px;padding:.3em .7em}}
@media print{.canvas-wrap{display:block}.print-title{display:block;color:#173d51;font-size:18pt;text-align:center;margin:0 0 6mm}canvas{max-height:155mm}}
