@font-face{font-family:Baloo;src:url(assets/fontes/baloo-latin.woff2) format('woff2');font-weight:400 800;font-display:swap}
:root{
  --sky:#e7f3f5;--ink:#43374d;--card:#fffdf8;--soft:#f1ece3;
  --sun:#ffd36d;--tomato:#df695e;--leaf:#347c58;--blue:#3979ad;--grape:#8a69ae;--pumpkin:#eea24e;
  --night:#29243f;--night2:#40365c;--moon:#ffe7a2;
  --pt:#347c58;--ja:#b64d52;--en:#326b9d;
  --font:Baloo,"Hiragino Maru Gothic ProN","Yu Gothic",system-ui,sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);--shadow:0 8px 24px rgba(75,55,57,.09);
  color-scheme:light;
}
*{box-sizing:border-box}
html{height:100%;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}
body{height:100%;margin:0;overflow:hidden;background:#edf4f4;color:var(--ink);font-family:var(--font);font-weight:600}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
button:disabled{cursor:default;opacity:.55}
button, [role=button], .piece{-webkit-touch-callout:none}
img{-webkit-user-drag:none}
::selection{background:#ffd36d;color:var(--ink)}
:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
svg.ui-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#app{height:100dvh;max-width:1220px;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(16px,env(safe-area-inset-left,0px))}
#app.hw{background:var(--night);color:#fff5e7}
body:has(#app.hw){background:var(--night)}
header{height:72px;flex:none;display:flex;align-items:center;gap:12px;padding:4px 0}
header h1{margin:0;flex:1;min-width:0;font-size:clamp(1.1rem,3.8vw,1.5rem);font-weight:800;text-align:center;line-height:1.2;text-wrap:balance}
.hold{width:48px;height:48px;border-radius:50%;border:0;background:var(--card);display:grid;place-items:center;position:relative;flex:none;box-shadow:0 3px 12px rgba(75,55,57,.07);touch-action:none;isolation:isolate}
.hold::before{content:"";position:absolute;inset:-4px;border-radius:50%;background:conic-gradient(var(--sun) calc(var(--p,0)*1turn),transparent 0);z-index:-1}
.hold.ghost{visibility:hidden;pointer-events:none}
.hold:active{background:#ffe9b5}
#stage{flex:1;position:relative;isolation:isolate;border-radius:24px;overflow:hidden;margin-bottom:16px;min-height:0;background:var(--card)}
#stage.scroll{overflow-y:auto;overflow-x:hidden;touch-action:pan-y pinch-zoom;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8bbae transparent;scroll-behavior:auto}
#stage::-webkit-scrollbar,.box::-webkit-scrollbar{width:5px}
#stage::-webkit-scrollbar-thumb,.box::-webkit-scrollbar-thumb{background:#c8bbae;border-radius:8px}
#stage[data-screen=home]{background:transparent;border-radius:0}
.activity-layer{position:absolute;inset:0;overflow:hidden;touch-action:manipulation;container-type:size}
.activity-layer.gesture-surface{touch-action:none}
.farm{background:url(assets/cenarios/fazenda.webp) center bottom/cover no-repeat,#d5ecda}
.house{background:linear-gradient(#fff0da 0 72%,#e6cba6 72%)}
.wood{background:#f5e4c9}
.paper{background:#fffdf8}
.hwbg{background:linear-gradient(var(--night2),var(--night));color:#fff5e7}
.hwbg::before{content:"";position:absolute;right:9%;top:6%;width:70px;height:70px;border-radius:50%;background:var(--moon);pointer-events:none}
.plain{background:#f4f4ec}

/* A casa da Maya: um cenário principal e pequenas janelas para os outros mundos. */
.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 auto 20px;padding:2px 6px;max-width:1050px}
.home-welcome .logo{width:145px;height:130px;object-fit:contain;flex:none;margin:0}
.home-welcome h2{font-weight:800;font-size:clamp(1.65rem,5.6vw,2.5rem);line-height:1.08;margin:0 0 8px;text-wrap:balance}
.home-welcome p{margin:0;color:#77616b;line-height:1.35;font-size:1rem}
.worlds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:1050px;margin:auto}
.world-door{border:0;padding:0;position:relative;overflow:hidden;border-radius:22px;background:var(--tint,#e9eedc);min-width:0;box-shadow:var(--shadow);text-align:left;transition:transform 140ms var(--ease),background-color 160ms}
.world-door:active{transform:scale(.975)}
.door-art{height:106px;display:flex;align-items:center;justify-content:center;position:relative;font-size:58px;line-height:1;padding:12px 10px 0}
.door-art .art-img{width:92px;height:92px;object-fit:contain}
.world-illustration{display:block;flex:none;width:112px;height:112px;background:url(assets/mundos/brincadeiras.webp) 0 0/200% 200% no-repeat}
.illustration-casa{background-position:100% 0}.illustration-arte{background-position:0 100%}.illustration-halloween{background-position:100% 100%}
.world-cover .world-illustration{width:190px;height:190px}
.page-hidden *{animation-play-state:paused!important}
.door-label{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px 14px;font-size:1.15rem;font-weight:800;line-height:1.15}
.door-label .ui-icon{width:19px;height:19px;flex:none;opacity:.65}
.home-feature{grid-column:1/-1;min-height:240px;background:#d4e9e0 url(assets/cenarios/fazenda.webp) center 57%/cover}
.home-feature .door-label{position:absolute;bottom:0;left:0;right:0;padding:30px 22px 18px;background:linear-gradient(transparent,#eef2d3 60%);font-size:1.7rem;z-index:2}
.scene-animals{position:absolute;inset:0;pointer-events:none}
.scene-animals img{position:absolute;object-fit:contain;transform-origin:50% 90%;width:32%;height:63%;bottom:13%}
.scene-animals .friend-cow{left:36%;width:36%;height:74%;bottom:12%}
.scene-animals .friend-dog{left:8%;width:30%;height:60%;bottom:16%}
.scene-animals .friend-duck{right:5%;width:26%;height:49%;bottom:16%}
.scene-animals .friend-cow{animation:welcome-nod 1.5s var(--ease) 1}
.home-feature .door-label small{font-size:.88rem;font-weight:600;display:block;margin-top:3px}
.world-door[data-world=halloween]{background:#413655;color:#fff5e7;grid-column:1/-1;display:flex;align-items:center;justify-content:center;min-height:110px}
.world-door[data-world=halloween] .door-art{height:100px;width:120px;padding:0}
.world-door[data-world=halloween] .door-label{padding:12px 20px 12px 0;flex:1}
.memory-preview{display:flex;gap:0;align-items:center}
.memory-preview img{background:#fffdf8;border-radius:12px;width:66px;height:76px;padding:3px;transform:rotate(-10deg)}
.memory-preview img+img{transform:rotate(10deg);margin-left:-6px}
.toy-letters{display:flex;align-items:center;gap:4px;font-weight:800;font-size:56px;color:#51816a}
.toy-letters span+span{color:#ba6b58;transform:translateY(8px) rotate(8deg)}
.album-link{max-width:1050px;display:flex;width:100%;align-items:center;gap:14px;margin:20px auto 12px;padding:15px 20px;border:0;border-radius:16px;background:#f0e8d9;text-align:left}
.album-link .album-star{font-size:34px;line-height:1}
.album-link strong{flex:1;font-size:1.1rem}

/* A chegada mantém o mundo reconhecível; as atividades ficam em uma lista tocável. */
.world-cover{height:220px;position:relative;overflow:hidden;background:var(--tint);display:grid;place-items:center}
.world-cover.farm{background:#d4e9e0 url(assets/cenarios/fazenda.webp) center 60%/cover}
.world-cover .world-symbol{font-size:100px;line-height:1;animation:welcome-nod 600ms var(--ease) both}
.world-cover .scene-animals{left:12%;right:12%}
.world-cover .scene-animals img{bottom:1%;height:89%;width:34%}
.world-cover .friend-dog{left:6%;height:76%!important}
.world-cover .friend-duck{right:5%;height:70%!important}
.world-intro{padding:23px 24px 14px}
.world-intro h2{font-size:clamp(1.4rem,4.5vw,1.85rem);line-height:1.15;margin:0;font-weight:800;text-wrap:balance}
.activities{display:grid;grid-template-columns:minmax(0,1fr);gap:0 28px;padding:0 24px 20px}
.activity-door{border:0;border-bottom:1px solid #e5ddd2;background:transparent;display:flex;align-items:center;gap:18px;min-height:92px;padding:13px 0;text-align:left;min-width:0;transition:background-color 140ms}
.activity-door:last-child{border-bottom:0}
.activity-door .activity-art{width:70px;height:70px;flex:none;display:grid;place-items:center;font-size:43px;line-height:1;border-radius:18px;background:var(--tint,#f0e8d9)}
.activity-door .activity-art .art-img{width:64px;height:64px}
.activity-door .lbl{font-size:1.15rem;font-weight:800;line-height:1.25;flex:1;min-width:0}
.activity-door>.ui-icon{flex:none;width:21px;height:21px;opacity:.55}
.hw .activity-door{color:#fff5e7;border-color:#675572}
.hw #stage.scroll{background:#352c49}
.hw .activity-door .activity-art{background:#4c405f}
.activity-door:active .activity-art{transform:scale(.94)}
.activity-door.opening .activity-art{animation:toy-open 240ms var(--ease)}
@media(hover:hover) and (pointer:fine){
  .world-door:hover{background-color:var(--hover,#f8e8c7)}
  .world-door:hover .door-label .ui-icon{transform:translateX(3px)}
  .activity-door:hover{background:rgba(180,150,110,.06)}
  .album-link:hover,.hold:hover{background:#ffe9b5}
}

/* Peças e retorno da brincadeira. */
#cap{position:fixed;left:50%;bottom:calc(25px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:flex;gap:7px;flex-wrap:wrap;justify-content:center;max-width:calc(100% - 32px);pointer-events:none;transition:opacity 180ms;z-index:80}
#cap span{background:var(--card);color:var(--ink);padding:7px 17px;border-radius:14px;font-weight:800;font-size:clamp(1.1rem,4vw,1.6rem);box-shadow:0 5px 22px rgba(60,45,60,.16);line-height:1.3}
#cap span::first-letter{color:var(--c)}
#cap.off{opacity:0}
#app:has(#stage[data-screen=act])~#cap{top:calc(88px + env(safe-area-inset-top,0px));bottom:auto}
body:has(#cap:not(.off)) .scene-hint{visibility:hidden}
.item{position:absolute;font-size:var(--s,72px);line-height:1;cursor:pointer;transform-origin:50% 90%}
.btn{border:0;background:var(--card);border-radius:20px;box-shadow:0 5px 18px rgba(65,45,50,.14);cursor:pointer;display:grid;place-items:center;line-height:1}
.btn:active{background:#fff0c9}
.row{position:absolute;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:clamp(10px,3vw,28px);flex-wrap:wrap;padding:0 12px}
.slot{border:3px dashed rgba(67,55,77,.3);border-radius:20px;display:grid;place-items:center;position:relative;background:rgba(255,253,248,.65)}
.hw .slot,.hwbg .slot{border-color:#a99ab6;background:rgba(255,255,255,.08)}
.piece{cursor:grab;touch-action:none;position:relative;z-index:2;display:grid;place-items:center;user-select:none;-webkit-user-select:none}
.piece.dragging{z-index:50;cursor:grabbing;filter:drop-shadow(0 12px 10px rgba(0,0,0,.2))}
.piece.placed{cursor:default}
.piece.sel{outline:4px solid var(--blue);outline-offset:5px;border-radius:12px}
.art-img{width:1.25em;height:1.25em;object-fit:contain;pointer-events:none;display:inline-block;vertical-align:middle}
.qz{display:grid;place-items:center}.qz .art-img{width:92%;height:92%}
.logo{display:block;max-width:100%;object-fit:contain;width:auto;height:auto}
.speak{position:absolute;right:14px;top:14px;width:56px;height:56px;font-size:28px;z-index:5}
.farm-friends{position:absolute;left:0;right:0;top:17%;bottom:120px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));align-items:end;justify-items:center;padding:0 5%;gap:48px 12px}
.farm-friend{border:0;background:none;box-shadow:none;width:100%;height:100%;min-height:0;padding:0;position:relative;transform-origin:50% 90%;display:flex;align-items:flex-end;justify-content:center;isolation:isolate}
.farm-friend:last-child{grid-column:1/-1;width:50%}
.farm-friend .art-img{width:100%;height:100%;object-position:center bottom;position:relative;z-index:1}
.farm-friend::after{content:"";position:absolute;left:15%;right:15%;height:5%;bottom:0;background:rgba(65,87,44,.17);border-radius:50%}
.farm-friend:active .art-img{filter:brightness(1.05)}
.friend-name{position:absolute;bottom:-42px;left:50%;transform:translateX(-50%);font-weight:800;font-size:clamp(1rem,3.6vw,1.4rem);color:#3a4c37;background:#fffdf0;padding:5px 15px;border-radius:12px;white-space:nowrap;line-height:1.3}
.scene-controls{position:absolute;bottom:20px;left:0;right:0;display:flex;justify-content:center;gap:12px}
.scene-controls .btn{min-height:50px;padding:10px 20px;display:flex;gap:12px;font-weight:800;font-size:1rem}
.scene-controls .ui-icon{width:20px;height:20px}
.scene-hint{position:absolute;top:20px;left:14px;right:14px;text-align:center;margin:0;font-size:clamp(1.1rem,3.7vw,1.6rem);font-weight:800;color:#364d4c;text-wrap:balance}
.scene-hint span{display:inline-block;background:rgba(255,253,248,.94);padding:8px 18px;border-radius:16px}

@keyframes jump{0%,100%{translate:0 0;scale:1}38%{translate:0 -14px;scale:1.035}70%{translate:0 0;scale:.985 1.015}}
@keyframes animal-hop{0%,100%{translate:0 0;scale:1}30%{scale:1.07 .95}60%{translate:0 -28px;scale:.97 1.04}}
@keyframes animal-bob{0%,100%{rotate:0deg;translate:0 0}30%{rotate:-6deg;translate:0 -5px}70%{rotate:5deg;translate:0 -3px}}
@keyframes animal-nod{0%,100%{rotate:0deg;scale:1}35%{rotate:-4deg;scale:1.04}70%{rotate:3deg}}
@keyframes animal-stretch{0%,100%{scale:1;rotate:0deg}45%{scale:1.06 1.025;rotate:-4deg}}
@keyframes wiggle{0%,100%{rotate:0deg}25%{rotate:-5deg}75%{rotate:5deg}}
@keyframes shake{0%,100%{translate:0 0}25%{translate:-4px 0}75%{translate:4px 0}}
@keyframes welcome-nod{0%,100%{rotate:0deg}30%{rotate:-3deg}60%{rotate:3deg}}
@keyframes toy-open{50%{scale:1.08;rotate:-4deg}}
@keyframes rise{from{translate:0 0}to{translate:0 calc(-100dvh - 240px)}}
@keyframes sway{0%,100%{translate:-10px 0}50%{translate:10px 0}}
@keyframes popout{to{scale:1.35;opacity:0}}
@keyframes fall{from{transform:translateY(-12vh) rotate(0)}to{transform:translateY(112vh) rotate(360deg)}}
@keyframes glow{0%,100%{opacity:1}50%{opacity:.75}}
@keyframes pulse{0%,100%{scale:1}50%{scale:1.035}}
@keyframes bubbleUp{from{translate:0 0;scale:.6;opacity:1}to{translate:0 -110px;scale:1.1;opacity:0}}
.jump{animation:jump 580ms var(--ease)}.wiggle{animation:wiggle 500ms ease-in-out}.shake{animation:shake 250ms ease-in-out}.pulse{animation:pulse 2.5s ease-in-out 2}
.reaction-hop{animation:animal-hop 680ms var(--ease)}.reaction-bob{animation:animal-bob 650ms ease-in-out}.reaction-nod{animation:animal-nod 650ms var(--ease)}.reaction-stretch{animation:animal-stretch 750ms var(--ease)}
#reward{position:fixed;inset:0;z-index:60;display:grid;place-items:center;background:rgba(48,40,55,.35);overflow:hidden}
#reward .sticker{font-size:min(36vmin,240px);line-height:1;animation:jump 700ms var(--ease);filter:drop-shadow(0 10px 18px rgba(0,0,0,.2));background:#fff7dc;padding:.2em;border-radius:28%}
.confetti{position:absolute;top:0;width:10px;height:15px;border-radius:3px;animation:fall linear forwards}
.cards{position:absolute;inset:0;display:grid;place-content:center;gap:clamp(10px,2.5vmin,22px);padding:16px}
.card{width:var(--cw);aspect-ratio:3/4;max-width:100%;position:relative;cursor:pointer;perspective:800px;border:0;background:none;padding:0}
.card .in{position:absolute;inset:0;transition:transform 400ms var(--ease);transform-style:preserve-3d}
.card.down .in{transform:rotateY(180deg)}
.card .f,.card .b{position:absolute;inset:0;border-radius:18px;display:grid;place-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 5px 16px rgba(67,55,77,.12)}
.card .f{background:var(--card);font-size:calc(var(--cw)*.6)}
.card .b{transform:rotateY(180deg);font-size:calc(var(--cw)*.45);background:#e8bc72}
.hwbg .card .b{background:#be7c49}
.card.match .f{outline:4px solid var(--leaf);outline-offset:2px}
.dwrap{width:min(26vw,190px);aspect-ratio:3/5;position:relative;perspective:900px;border-radius:18px 18px 6px 6px;background:#211c32;cursor:pointer}
.dwrap .inside{position:absolute;inset:0;display:grid;place-items:center;font-size:min(15vw,110px)}
.dwrap .dd{position:absolute;inset:0;border-radius:18px 18px 6px 6px;transform-origin:left center;transition:transform 600ms var(--ease);background:var(--dc,#8a63e8);box-shadow:inset 0 0 0 5px rgba(0,0,0,.12)}
.dwrap .dd::after{content:"";position:absolute;right:14%;top:52%;width:16px;height:16px;border-radius:50%;background:var(--moon)}
.dwrap.open .dd{transform:rotateY(-105deg)}
.costume{position:relative;display:inline-block}.costume small{position:absolute;font-size:.45em;right:-18%;top:-22%}
.pumpkin{position:relative;width:min(64vmin,420px);aspect-ratio:1.2;border-radius:48% 48% 44% 44%;background:radial-gradient(ellipse at 50% 40%,#ffb45a,var(--pumpkin) 60%,#d28030);box-shadow:inset 20px 0 0 -10px rgba(0,0,0,.06),inset -20px 0 0 -10px rgba(0,0,0,.06)}
.pumpkin::before{content:"";position:absolute;left:47%;top:-12%;width:6%;height:16%;background:#518547;border-radius:6px}
.pumpkin.lit{filter:brightness(1.2)}.pumpkin.lit .part svg{fill:#ffe27a}
.part svg{fill:#3b1d00;width:100%;height:100%}
.pslot{position:absolute;border:3px dashed rgba(59,29,0,.35);border-radius:18px;display:grid;place-items:center}
.cauldron{position:relative;width:min(46vmin,320px);aspect-ratio:1.1;border-radius:12% 12% 50% 50%;background:#211c32;box-shadow:0 10px 16px rgba(0,0,0,.2)}
.cauldron .liq{position:absolute;left:6%;right:6%;top:6%;height:22%;border-radius:50%;background:var(--liq,#6bd66b);transition:background 350ms}
.bub{position:absolute;width:22px;height:22px;border-radius:50%;background:var(--liq,#6bd66b);animation:bubbleUp 1s ease-out forwards;pointer-events:none}
.star{width:86px;height:86px}.star svg{width:100%;height:100%;fill:currentColor;pointer-events:none}
.dark{position:absolute;inset:0;pointer-events:none;z-index:4;background:radial-gradient(circle at var(--x,-300px) var(--y,-300px),rgba(255,240,180,.15) 0,transparent 95px,rgba(14,8,34,.97) 150px)}
.found{animation:glow 1.4s ease-in-out 2}
.bars{position:absolute;left:0;right:0;bottom:4%;top:34%;display:flex;gap:2%;justify-content:center;align-items:flex-end;padding:0 3%}
.bar{flex:1;min-width:0;min-height:48px;border:0;border-radius:14px;cursor:pointer;box-shadow:0 5px 12px rgba(0,0,0,.16);display:flex;justify-content:center;align-items:flex-start;padding-top:10px;font-size:clamp(22px,5vw,44px);touch-action:none}
.bar::after{content:"";width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.75)}
.bar:active,.bar.hit{translate:0 4px;filter:brightness(1.15)}
.sheet{position:fixed;inset:0;z-index:70;background:rgba(48,40,55,.5);display:grid;place-items:center;padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
.sheet .box{background:var(--card);color:var(--ink);border-radius:24px;padding:26px;width:min(560px,100%);max-height:90dvh;overflow-y:auto;touch-action:pan-y pinch-zoom;overscroll-behavior:contain;display:flex;flex-direction:column;gap:20px;font-family:system-ui,-apple-system,sans-serif;scrollbar-width:thin}
.sheet h2{margin:0;font-family:var(--font);font-size:1.7rem}.sheet .opt{display:flex;flex-wrap:wrap;gap:8px}
.sheet .opt button{border:2px solid #ddd4ca;background:transparent;border-radius:12px;padding:10px 16px;min-height:44px;font-weight:600}
.sheet .opt button[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.sheet p{margin:0;color:#726271;font-size:.94rem;line-height:1.5}
.sheet .close{align-self:flex-end;border:0;background:var(--sun);border-radius:14px;padding:12px 24px;font-weight:800;min-height:46px}
#splash{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:#d4e9e0 url(assets/cenarios/fazenda.webp) center/cover;text-align:center;padding:24px max(24px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}
.splash-content{display:flex;flex-direction:column;align-items:center;width:min(460px,100%)}
#splash h1{margin:0;line-height:1;width:100%}
#splash .logo{max-height:49svh;width:100%;margin:0 auto;filter:drop-shadow(0 8px 18px rgba(60,70,50,.12))}
#splash .names{font-size:clamp(.88rem,2.8vw,1.1rem);display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:14px 0 26px;color:#43374d;font-weight:800}
#splash .play{min-height:72px;min-width:220px;padding:14px 30px;border-radius:24px;font-size:1.6rem;font-weight:800;background:var(--sun);display:flex;gap:16px;justify-content:center;align-items:center;box-shadow:0 8px 22px rgba(0,0,0,.15)}
#splash .play .ui-icon{width:26px;height:26px;fill:currentColor;stroke-width:1}
.album-grid{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;padding:32px 24px;font-size:clamp(48px,11vmin,80px);line-height:1}
.album-grid button{border:0;background:transparent;padding:5px;font-size:inherit}
.album-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;padding:40px 24px;text-align:center;gap:20px}
.album-empty .album-star{font-size:90px}.album-empty p{font-size:1.2rem;max-width:24ch;line-height:1.4;margin:0}
@media(min-width:700px){
  #app{padding-left:28px;padding-right:28px}header{height:80px}
  .home-welcome{margin-bottom:22px}.home-welcome .logo{width:185px;height:150px}
  .worlds-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .home-feature{grid-column:span 2;grid-row:span 2;min-height:360px}
  .door-art{height:110px}.world-door[data-world=halloween]{grid-column:auto;display:block;min-height:0}
  .world-door[data-world=halloween] .door-art{height:110px;width:auto;padding-top:12px}
  .world-door[data-world=halloween] .door-label{padding:10px 16px 14px}
  .activities{grid-template-columns:repeat(2,minmax(0,1fr))}.world-cover{height:260px}
  .world-cover .scene-animals{left:24%;right:24%}.farm-friends{top:0;bottom:0;display:flex;align-items:flex-end;justify-content:space-evenly;padding:0 9% 140px;gap:1%}.farm-friend,.farm-friend:last-child{height:62%;width:31%}
}
@media(max-width:359px){
  #app{padding-left:10px;padding-right:10px}header{height:64px;gap:6px}.hold{width:44px;height:44px}
  .home-welcome{gap:10px}.home-welcome .logo{width:108px;height:110px}.home-welcome h2{font-size:1.5rem}
  .home-welcome p{font-size:.9rem}.home-feature{min-height:210px}.worlds-grid{gap:11px}.door-label{font-size:1.05rem;padding:10px 12px 14px}
  .activities{padding:0 18px 18px}.world-intro{padding:20px 18px 12px}.activity-door{gap:12px}.activity-door .lbl{font-size:1.06rem}
  .farm-friends{gap:40px 8px;top:17%;bottom:112px}.friend-name{padding:5px 9px;bottom:-36px}
}
@media(max-width:699px) and (orientation:portrait){
  .bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px;top:30%;bottom:7%;padding:0 6%}
  .bar{width:100%;min-height:44px}.xilo-dancers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));text-align:center}
}
@media(max-height:500px) and (orientation:landscape){
  header{height:54px}.hold{width:40px;height:40px}#stage{margin-bottom:8px;border-radius:18px}
  #splash .splash-content{display:grid;grid-template-columns:1fr 1fr;max-width:650px;width:100%;align-items:center;gap:12px}
  #splash h1{grid-row:span 2}#splash .logo{max-height:80svh}#splash .names{align-self:end;margin:0}#splash .play{min-width:0;width:100%;min-height:64px;align-self:start}
  .home-welcome{display:none}.worlds-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-feature{grid-column:span 2;grid-row:span 2;min-height:290px}
  .world-cover{height:160px}.world-cover .scene-animals{left:28%;right:28%}.activities{grid-template-columns:repeat(2,minmax(0,1fr))}
  .farm-friends{top:0;bottom:0;display:flex;align-items:flex-end;justify-content:space-evenly;padding:0 17% 55px;gap:1%}.farm-friend,.farm-friend:last-child{height:70%;width:31%}.friend-name{bottom:-30px;font-size:.9rem}
  .scene-controls{bottom:10px;left:auto;right:14px}.scene-controls .btn{min-height:44px;padding:8px 12px}.scene-controls .btn span{display:none}
  .scene-hint{top:10px;font-size:1rem}.scene-hint span{padding:4px 12px}
  #app:has(#stage[data-screen=act])~#cap{top:calc(62px + env(safe-area-inset-top,0px))}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:1ms!important;animation-iteration-count:1!important;transition-duration:1ms!important;scroll-behavior:auto!important}
  .fl{animation:none!important}.found{opacity:1}.card .in{transition:none}
  .jump,.wiggle,.shake,.reaction-hop,.reaction-bob,.reaction-nod,.reaction-stretch{animation:none!important}
  .piece.dragging{filter:none}.scene-animals img,.world-symbol{animation:none!important}
}
