@font-face{font-family:Baloo;src:url('/assets/baloo-latin.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{font-family:Baloo,'Trebuchet MS',sans-serif;color:#4c2345;background:#f9e3f0;--cream:#fff5df;--pink:#bc2371;--plum:#592349;--pine:#246449;--outline:#92364f;--shadow:0 5px 0 #6e2a4a27}
*{box-sizing:border-box}
body{margin:0;min-height:100svh;background:radial-gradient(ellipse at 30% 1%,#fff5d7 0,transparent 50%),radial-gradient(circle at 4px 4px,#ffffff8c 1.5px,transparent 2px) 0 0/25px 25px,linear-gradient(140deg,#fcddd9,#f3d9ed 64%,#d9e4f6)}
[hidden]{display:none!important}
button,a,input,select{font:inherit;touch-action:manipulation}
button,a{color:inherit;-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default}
:focus-visible{outline:4px solid #147fb4;outline-offset:3px}
h1:focus{outline:0}
h1,p{margin:0}
img{display:block;max-width:100%;user-select:none}
.nav{width:min(1010px,100%);margin:auto;display:flex;align-items:center;gap:12px;padding:12px clamp(12px,2.5vw,28px)}
.pill,.small,.pink{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-weight:800;line-height:1.1;border-radius:60px}
.pill,.small{min-height:42px;padding:5px 14px;color:var(--plum);border:2px solid #c989a3;background:#fff9eb;box-shadow:0 2px #bc8193}
.pill>span{font-size:1.55em}
.brand-name{font-family:'Luckiest Guy',Baloo,sans-serif;font-size:26px;letter-spacing:.01em;color:#913c62}
.brand-name span{color:#d9488c}
.purse{margin-left:auto;display:flex;align-items:center;gap:8px;padding:0 12px 0 3px;border-radius:30px;border:2px solid #df9caa;background:var(--cream);font-weight:800;font-size:21px;min-width:61px}
.purse b,.bigcoin{display:inline-grid;place-items:center;background:linear-gradient(135deg,#fff38c,#ffbb30);border:2px solid #b87318;border-radius:50%;color:#9d581c;box-shadow:inset 0 0 0 2px #fff0a3}
.purse b{width:27px;height:27px;font:700 16px/1 system-ui}
#sound{min-width:44px;font:700 24px/1 system-ui}
main{max-width:1010px;padding:0 clamp(10px,2.5vw,26px) 22px;margin:auto}
.screen{position:relative;overflow:hidden;border:3px solid #a26277;border-radius:26px;background:#fff4e6;box-shadow:var(--shadow)}
.backdrop{width:100%;height:100%;object-fit:cover}
.cover{min-height:clamp(440px,60vw,610px);display:grid;align-items:end}
.cover-picture,.reward>.backdrop{position:absolute;inset:0}
.cover-picture img{object-position:51% 45%}
.cover-content{justify-self:start;position:relative;margin:clamp(15px,3vw,35px);padding:14px clamp(18px,3vw,36px) 20px;max-width:min(43%,450px);background:linear-gradient(#fff4c8,#ffdfaa);border:3px solid #a96a42;border-bottom-width:7px;border-radius:14px 23px 20px 20px;box-shadow:inset 0 0 0 3px #fff5db,0 4px 12px #471b3050;rotate:-1.5deg}
.cover h1{font-size:clamp(46px,6.2vw,77px);line-height:.94;color:#c72870;text-shadow:0 2px 0 white;letter-spacing:.005em}
.cover h1 span{display:block;color:#256347;font-size:.58em;margin:0 0 5px}
.cover p{font-weight:650;line-height:1.22;max-width:25em;margin:10px 0 15px}
.pink{min-height:48px;padding:9px 26px;border:2px solid #992365;background:linear-gradient(#fc71b3,#df3f8c 63%,#d12e82);color:#fffdf7;box-shadow:inset 0 2px #ffb3d1,0 3px #88245e;font-size:20px;text-shadow:0 1px #8d295a}
.pink:active,.small:active,.pill:active{transform:translateY(2px)}
.pink:disabled,.small:disabled{filter:saturate(.35);opacity:.65}
.map-head,.stage-head,.map-foot,.stage-foot,.final-actions{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:13px clamp(12px,3vw,30px)}
.map-head,.stage-head{background:#fff3de;border-bottom:2px solid #d7a390}
.map-head h1,.task h1,.ticket h1,.final h1{font-size:clamp(29px,4vw,48px);line-height:1.04;color:#a52969;text-shadow:0 2px white}
.map-head span,.count{font-weight:800;color:#6d3f60}
.route{position:relative;aspect-ratio:1.85;min-height:220px}
.route .backdrop{position:absolute;inset:0;object-position:center}
.pin{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:2px;width:96px;background:none;border:0;color:#fffdfa}
.pin b{display:grid;place-items:center;width:clamp(40px,6.5vw,66px);height:clamp(40px,6.5vw,66px);border:3px solid white;outline:2px solid #8b396b;border-radius:50%;font:clamp(24px,4.6vw,44px)/1 'Luckiest Guy',sans-serif;text-shadow:0 2px #6b406d;background:linear-gradient(145deg,#ff91ce,#e33c92);box-shadow:inset 2px 3px #fff9,0 4px #9b4f7e}
.pin-1 b{background:linear-gradient(135deg,#ca8ffc,#8a4dcc)}.pin-2 b{background:linear-gradient(135deg,#67cbe5,#3685cb)}.pin-3 b{background:linear-gradient(135deg,#aedb4d,#489a37)}.pin-4 b{background:linear-gradient(135deg,#ffc643,#ea793a)}
.pin span{color:#48334f;background:#fff7e9f2;border-radius:9px;padding:3px 6px;font-size:13px;line-height:1.1;font-weight:800}
.pin:disabled b{filter:saturate(.4) brightness(.83)}
.map-foot{justify-content:center;background:#fff7e8;font-weight:650}
.stage-head{padding-block:8px;color:#963263}
.count{padding:3px 12px;border-radius:22px;background:#f9dce8}
.task{text-align:center;padding:14px 16px 12px}
.task p{margin-top:3px;font-size:17px;line-height:1.25;font-weight:600}
.scene{position:relative;isolation:isolate;overflow:hidden}
.forest,.room,.gift-room{background-color:#d9e7ec}
.forest{background:linear-gradient(90deg,#34203731,#fff0 29%,#fff0 70%,#36203033),url('./art/habitacion.webp') center 55%/cover}
.tree-wrap{height:clamp(280px,44vw,438px);display:flex;justify-content:center;align-items:center;position:relative}
.tree{position:relative;height:98%;aspect-ratio:5/6;max-width:100%;user-select:none}
.evergreen{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 3px #18382f65)}
.face{position:absolute;left:50%;top:37%;transform:translate(-50%,-50%);width:24%;height:10%;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.face i{width:23%;height:58%;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff 0 13%,transparent 17%),#231927;box-shadow:0 1px #21502d}
.face:before,.face:after{content:"";position:absolute;bottom:7%;width:22%;height:24%;background:#fc93af;border-radius:50%;opacity:.9}
.face:before{left:-16%}.face:after{right:-16%}
.face b{align-self:end;margin-bottom:1%;width:26%;height:27%;border-radius:70% 70% 0 0;border-top:3px solid #302131}
.face.happy b{border:0;background:#301f30;border-radius:10% 10% 60% 60%;height:34%}
.wire,.bulb,.hanging,.cursor,.glint,.hidden-object{position:absolute}
.wire{inset:0;width:100%;height:100%;pointer-events:none}
.wire path{fill:none;stroke:#dfb94a;stroke-width:.54;stroke-linecap:round}
.bulb,.hanging,.cursor,.glint,.hidden-object{transform:translate(-50%,-50%)}
.bulb{width:2.7%;aspect-ratio:1;border:1px solid #81673d;border-radius:50%;background:#bca373;pointer-events:none}
.bulb.lit{background:var(--light);border-color:white;box-shadow:0 0 5px 3px var(--light)}
.c0{--light:#ff87aa;--ink:#7c2050}.c1{--light:#7ed6ff;--ink:#154f83}.c2{--light:#ffdc68;--ink:#7c4a0f}.c3{--light:#a2e67c;--ink:#256440}
.glint{width:52px;height:52px;border:0;padding:0;background:transparent;color:#fff6a1;font:52px/1 Georgia,serif;text-shadow:0 0 2px #995124,0 0 4px #a25e25,0 0 14px #fffca3;filter:drop-shadow(1px 2px 1px #a65a26);animation:twinkle 2.5s ease-in-out infinite}
@keyframes twinkle{50%{filter:brightness(1.35) drop-shadow(0 0 5px #ffe16c)}}
.hunt-list,.sequence,.keys,.tray,.toolrow{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
.hunt-list{padding:0 8px 9px}
.hunt-list span{display:grid;place-content:center;position:relative;width:48px;height:41px;border-radius:13px;border:1px solid #dfc2aa;background:#fffaf0}
.hunt-list img{width:34px;height:34px;object-fit:contain}
.hunt-list b{display:none}.hunt-list .found{background:#e2efdc;border-color:#87a98e}.hunt-list .found b{display:block;position:absolute;right:-2px;bottom:-3px;color:#326c3d;background:#fff;border-radius:50%;width:16px;height:16px;font:800 14px/16px sans-serif;text-align:center}
.room{width:100%;aspect-ratio:1.64}
.room .backdrop{position:absolute;inset:0}
.room-pan{overflow:auto;overscroll-behavior-inline:contain;scrollbar-color:#c98aa2 #fff2df;scrollbar-width:thin}
.room-pan .room{width:max(100%,680px);aspect-ratio:1240/412}
.room-pan .backdrop{object-fit:cover}
.clutter{position:absolute;transform:translate(-50%,-50%);width:6%;pointer-events:none}
.clutter img{width:100%;filter:drop-shadow(1px 2px 1px #512c3655)}
.pan-help{display:none;text-align:center;font-size:14px;font-weight:700}
.hidden-object{width:7%;min-width:42px;min-height:42px;aspect-ratio:1;background:none;border:0;padding:3px}
.hidden-object img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 2px 1px #512c3666)}
.stage-foot{min-height:65px;background:#fff7ed;justify-content:center}
#message:empty{display:none}#message{font-weight:700;color:#61435b;line-height:1.2}
.gift-room{min-height:310px;display:grid;align-items:end;padding:30px 25px;background:linear-gradient(0deg,#71374791,transparent 70%),url('./art/habitacion.webp') center 45%/cover}
.gifts{display:flex;gap:clamp(6px,3vw,30px);align-items:end;justify-content:center}
.gift{--wrap:#d85591;--side:#ad3076;--ribbon:#ffd760;display:grid;justify-items:center;align-content:end;gap:12px;width:25%;min-height:128px;border:0;background:none;padding:0}
.gift-1{--wrap:#699ad3;--side:#437bae;--ribbon:#eca1e2}.gift-2{--wrap:#6fa35f;--side:#4d8846;--ribbon:#ff9c99}
.gift small{font-weight:800;line-height:1.1;background:#fff7e6;color:#643057;border:1px solid #c88e9e;border-radius:13px;padding:5px 8px;max-width:100%}
.box{position:relative;width:clamp(54px,11vw,110px);aspect-ratio:1.05;border:2px solid var(--side);border-radius:6px;background:linear-gradient(90deg,transparent 38%,var(--ribbon) 39% 58%,transparent 59%),linear-gradient(135deg,var(--wrap),var(--side));box-shadow:inset -6px -3px #0001,1px 5px 4px #3a1f444d}
.box b{position:absolute;top:0;left:-5%;width:110%;height:22%;background:linear-gradient(90deg,var(--wrap) 39%,var(--ribbon) 39% 57%,var(--wrap) 58%);border:2px solid var(--side);border-radius:5px;box-shadow:0 3px #0002}
.box i:before,.box i:after{content:"";position:absolute;bottom:98%;width:28%;height:27%;border:6px solid var(--ribbon);border-radius:70% 70% 10% 65%;transform:rotate(8deg);left:21%}
.box i:after{left:48%;transform:scaleX(-1) rotate(8deg)}
.bigcoin,.loot{width:clamp(48px,10vw,95px);height:auto;aspect-ratio:1}
.bigcoin{font:700 clamp(29px,6vw,65px)/1 system-ui}
.unwrapped{transform-origin:50% 90%;animation:unwrap-gift .45s ease-out}
@keyframes unwrap-gift{from{transform:translateY(15%) scale(.65)}55%{transform:translateY(-8%) scale(1.06)}}
.lights .tree-wrap{height:clamp(220px,32vw,318px)}
.puzzle{padding:10px 8px 6px}.sequence{gap:10px;margin-bottom:10px;flex-wrap:nowrap}
.sample,.key{display:grid;place-items:center;background:var(--light);color:var(--ink);border:2px solid var(--ink);border-radius:50%;font:800 20px/1 system-ui}
.sample{position:relative;width:33px;height:33px}
.sample:not(:first-child):before{content:"";position:absolute;right:calc(100% + 2px);width:10px;height:2px;background:#8e7556}
.sample.done{box-shadow:0 0 0 3px #ffa8cb,0 0 7px #ef96ab}
.sample[aria-current=step]::after{content:"";position:absolute;top:calc(100% + 3px);border:4px solid transparent;border-top:0;border-bottom-color:var(--ink)}
.key{gap:1px;border-radius:13px;min-width:64px;min-height:48px;padding:4px;box-shadow:inset 0 2px #fff9,0 2px var(--ink)}
.key small{font:700 12px/1 Baloo,sans-serif}
.key.played{box-shadow:inset 0 0 0 3px #fff9eb,0 2px var(--ink)}
.bulb.ringing::after{content:"";position:absolute;inset:-4px;border:2px solid white;border-radius:50%;background:var(--light);box-shadow:0 0 9px var(--light);opacity:0;animation:note-glow .5s ease-out}
@keyframes note-glow{0%{opacity:1;transform:scale(.65)}35%{opacity:1}100%{opacity:0;transform:scale(1.55)}}
.atelier{display:grid;grid-template-columns:1fr auto;align-items:stretch}
.atelier .tree-wrap{height:clamp(340px,42vw,430px)}
.box-tools{background:#f5d6e3;display:flex;flex-direction:column;justify-content:center;padding:10px;gap:8px}
.tray{display:grid;grid-template-columns:repeat(2,58px);gap:5px}
.token{height:52px;padding:3px;border-radius:12px;border:2px solid #c998b2;background:#fff6ed;touch-action:none}
.token img{width:100%;height:100%;object-fit:contain}
.token[aria-pressed=true]{border-color:#a7206b;box-shadow:0 0 0 2px #f493c0;background:#ffe5f6}
.toolrow{font-size:13px;gap:5px}.toolrow label{font-weight:700;display:grid}
.toolrow select{border:1px solid #a47294;border-radius:8px;color:var(--plum);background:#fff8ec}
.toolrow .small{font-size:13px;padding:4px 7px;min-height:37px}
.edit .tree{touch-action:none;cursor:crosshair}
.hanging{cursor:grab;width:14%;aspect-ratio:1;filter:drop-shadow(1px 2px 1px #143e30aa)}
.hanging.size-0{width:9%}.hanging.size-2{width:21%}.hanging img{width:100%;height:100%;object-fit:contain}
.bauble-swing{transform-origin:50% 8%;animation:bauble-swing .7s ease-in-out}
@keyframes bauble-swing{0%{transform:rotate(-20deg)}32%{transform:rotate(13deg)}62%{transform:rotate(-7deg)}84%{transform:rotate(3deg)}}
.cursor{display:none;justify-content:center;align-items:center;width:28px;height:28px;border-radius:50%;border:2px dashed white;background:#4a225599;color:white;font:24px/1 system-ui}
.tree:focus-visible .cursor{display:flex}
.ghost{position:fixed;z-index:10;width:52px;height:52px;object-fit:contain;transform:translate(-50%,-58%);pointer-events:none;filter:drop-shadow(0 3px 3px #38213266)}
.reward{display:grid;place-items:center;min-height:clamp(340px,44vw,520px);padding:16px}
.ticket{position:relative;display:grid;justify-items:center;gap:12px;border:3px solid #ca869c;border-radius:24px;background:#fff4e5f7;padding:22px 24px;text-align:center;max-width:365px;box-shadow:0 5px #673a6255}
.first-bauble{position:absolute;transform:translate(-50%,-50%);width:18%;filter:drop-shadow(0 2px 2px #3336)}
.prize-art{width:82px;height:82px;object-fit:contain}
.stars{font-size:36px;letter-spacing:2px;line-height:1;color:#f2ae19;text-shadow:0 2px #bd7b18}.earned{font-weight:800;color:#82511c}
.final{background:#241d42}.final-head{text-align:center;padding:14px 10px 8px;color:#fff2bf;line-height:1.1}
.final-head span{color:#ffe078;font-size:22px}.final h1{color:#ffe694;text-shadow:0 2px #8c466a}.final p{font-size:19px;font-weight:700}
.night{background:radial-gradient(ellipse at 50% 50%,#97805070,transparent 51%),linear-gradient(#201b36d4,#241733df),url('./art/habitacion.webp') center 55%/cover}
.night::before{content:"";position:absolute;inset:0;pointer-events:none;background:url('./art/habitacion.webp') center 55%/cover;opacity:0}
.night.lighting::before{animation:lights-out .95s ease-out}
@keyframes lights-out{from{opacity:.85}to{opacity:0}}
.night .tree-wrap{z-index:1;padding:15px 0 2px;pointer-events:none}
.night .tree{filter:drop-shadow(0 0 14px #edbf6770)}
.night .bulb.lit{box-shadow:0 0 4px 2px white,0 0 13px 5px var(--light)}
.night.lighting .bulb.lit{animation:ignite-bulb .36s ease-out var(--ignite-at) backwards}
@keyframes ignite-bulb{from{opacity:.24;box-shadow:none}55%{opacity:1;box-shadow:0 0 6px 3px white,0 0 16px 7px var(--light)}}
.crown-light{position:absolute;left:50%;top:2%;transform:translate(-50%,-50%);color:var(--cream);font:clamp(25px,4vw,42px)/1 Georgia,serif;text-shadow:0 0 4px white,0 0 9px #ffe694,0 0 17px #f2ae19;pointer-events:none}
.night.lighting .crown-light{animation:crown-bloom .52s ease-out var(--crown-at) backwards}
@keyframes crown-bloom{from{opacity:0;transform:translate(-50%,-50%) scale(.35)}45%{opacity:1;transform:translate(-50%,-50%) scale(1.4)}}
.rain{position:absolute;inset:0;overflow:hidden;pointer-events:none}.rain i{position:absolute;top:-10%;font-style:normal;font-size:clamp(14px,2.5vw,24px);animation:fall 4s linear infinite}
.night.lighting .rain{animation:rain-reveal .38s ease-out var(--crown-at) backwards}
@keyframes rain-reveal{from{opacity:0}to{opacity:1}}
@keyframes fall{0%{top:-10%;transform:rotate(-18deg)}100%{top:110%;transform:rotate(30deg)}}
.final-actions{justify-content:center;flex-wrap:wrap}.final-actions .small{background:#fff3d6}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:660px){
.pan-help{display:block}
.nav{gap:8px;padding:7px 12px}.brand-name{font-size:20px}.screen{border-radius:18px}
.cover{display:flex;flex-direction:column;min-height:0}.cover-picture{position:relative;aspect-ratio:1.42}.cover-picture img{object-fit:cover}
.cover-content{margin:-19px 13px 16px;max-width:100%;padding:13px 16px;background:#fff0c9;align-self:stretch;text-align:center}
.cover h1{font-size:47px}.cover h1 span{font-size:.67em;display:inline}.cover p{margin:7px auto 11px}
.map-head,.stage-head{padding:7px 10px;gap:5px}.map-head h1{font-size:28px}.map-head span,.map-foot{font-size:14px}
.route{aspect-ratio:1.03}.pin{width:69px}.pin span{font-size:11px}.map-foot{padding:8px 10px}
.task{padding:9px 10px}.task h1{font-size:30px}.task p{font-size:15px}.scene .tree-wrap{height:clamp(268px,75vw,350px)}
.room{aspect-ratio:1.1}.room .backdrop{object-fit:fill}.stage-foot{padding:9px;min-height:49px;gap:8px}.stage-foot .pink{font-size:16px;padding:7px 15px}
.hunt-list{gap:5px;padding-bottom:7px}.hunt-list span{height:34px;width:42px}.hunt-list img{height:28px;width:28px}
.gift-room{min-height:245px;padding:20px 9px}.gift{width:30%}.lights .tree-wrap{height:200px}.key{min-width:55px}
.atelier{display:block}.atelier .tree-wrap{height:clamp(245px,72vw,345px)}.box-tools{padding:7px;gap:5px}.tray{grid-template-columns:repeat(5,minmax(40px,58px));justify-content:center;gap:4px}.token{height:43px}
.night .tree-wrap{height:clamp(322px,98vw,455px)}
.toolrow{justify-content:center}.toolrow label{display:flex;align-items:center;gap:6px}.toolrow select{min-height:34px}.toolrow .small{min-height:34px}
}
@media(max-width:360px){.brand-name{font-size:17px}.pin{width:57px}.pin span{font-size:10px}.pin b{width:38px;height:38px}.task h1{font-size:26px}.key{min-width:48px}}
@media(max-width:420px){.nav .brand-name span{display:none}}
@media(max-width:360px){.nav{padding-inline:8px;gap:4px}.nav .pill{padding-inline:9px}}
html[data-motion=reduced] *,html[data-motion=reduced] ::before,html[data-motion=reduced] ::after{animation:none!important;scroll-behavior:auto!important}
html[data-motion=reduced] .rain i{display:none}
html[data-motion=reduced] .rain i:nth-child(3n){display:block;top:8%}
html[data-motion=reduced] .rain i:nth-child(6n){top:82%}
html.game-paused *,html.game-paused ::before,html.game-paused ::after{animation-play-state:paused!important}
