@font-face{font-family:Fredoka;font-style:normal;font-weight:500 700;font-display:swap;src:url(./fredoka-hebrew-CjvktpUN.woff2)format("woff2");unicode-range:U+307-308,U+590-5FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Fredoka;font-style:normal;font-weight:500 700;font-display:swap;src:url(./fredoka-latin-ext-tYNUQHO6.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fredoka;font-style:normal;font-weight:500 700;font-display:swap;src:url(./fredoka-latin-DOQG_Jwn.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--ink:#111;--paper:#fff;--soft:#ececec;--hud-h:46px;--gap:8px;--side-w:clamp(92px, 9vw, 150px);--stage-ratio:1.6667;font-family:Fredoka,Trebuchet MS,system-ui,Segoe UI,Noto Sans Arabic,Noto Sans Hebrew,Arial,sans-serif}@media (pointer:fine){:root{--side-w:112px}}*{box-sizing:border-box}html,body{background:var(--paper);height:100%;color:var(--ink);overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;margin:0;overflow:hidden}input{-webkit-user-select:text;user-select:text}button{font:inherit;color:inherit}[hidden]{display:none!important}#app{--game-w:min(calc(100vw - var(--side-w) * 2 - var(--gap) * 4), calc((100dvh - var(--hud-h) - var(--gap) * 3) * var(--stage-ratio)));grid-template-columns:1fr var(--game-w) 1fr;grid-template-rows:var(--hud-h) auto;align-content:center;column-gap:var(--gap);row-gap:var(--gap);height:100dvh;padding:calc(var(--gap) + env(safe-area-inset-top)) calc(var(--gap) + env(safe-area-inset-right)) calc(var(--gap) + env(safe-area-inset-bottom)) calc(var(--gap) + env(safe-area-inset-left));display:grid}.hud{grid-area:1/2;justify-content:space-between;align-items:center;gap:8px;display:flex}.hud-stats{visibility:hidden;flex:1;align-items:center;gap:clamp(8px,2.4vw,22px);min-width:0;display:flex}#app[data-phase=dreaming] .hud-stats,#app[data-phase=dream_cleared] .hud-stats{visibility:visible}.hud-item{flex-direction:column;min-width:0;line-height:1.05;display:flex}.hud-label{text-transform:uppercase;letter-spacing:.08em;opacity:.6;white-space:nowrap;font-size:.62rem}.hud-value{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:clamp(1rem,2.4vw,1.35rem);font-weight:700}.hud-timer{flex:1;max-width:190px}.hud-timebar{border:2px solid var(--ink);background:var(--paper);border-radius:6px;height:10px;margin-top:3px;display:block;overflow:hidden}#hud-time-bar{background:var(--ink);transform-origin:0;height:100%;display:block}#hud-time-bar.is-low{background:repeating-linear-gradient(135deg, var(--ink) 0 3px, var(--paper) 3px 6px)}.hud-buttons{gap:8px;display:flex}.icon-btn{border:3px solid var(--ink);background:var(--paper);cursor:pointer;touch-action:manipulation;border-radius:50%;width:44px;height:44px;font-size:1rem}.icon-btn:active{background:var(--soft)}.icon-btn svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.sound-toggle[aria-pressed=false]{opacity:.55;border-style:dashed}.sound-toggle .off-line{stroke-width:2.6px;display:none}.sound-toggle[aria-pressed=false] .off-line{display:inline}#app:not([data-phase=dreaming]) #btn-pause{display:none}.stage{width:100%;aspect-ratio:var(--stage-ratio);border:3px solid var(--ink);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;background:0 0;border-radius:18px;grid-area:2/2;position:relative;overflow:hidden;container-type:inline-size}#game-canvas{width:100%;aspect-ratio:var(--stage-ratio);background:var(--paper);border-radius:18px;grid-area:2/2;display:block}.screen{justify-content:center;align-items:center;padding:2.4cqw;display:none;position:absolute;inset:0}#app[data-phase=home] #screen-home,#app[data-phase=map] #screen-map,#app[data-phase=dream_cleared] #screen-cleared,#app[data-phase=woke_up] #screen-woke,#app[data-paused=true] #screen-paused{display:flex}#app[data-paused=true] .screen:not(#screen-paused){display:none}#screen-home{justify-content:flex-end;align-items:flex-end;padding:1.4cqw}#screen-home .card{border-radius:2.4cqw;width:42.5cqw;padding:1cqw 1.6cqw 1.2cqw}#screen-home .title{margin-bottom:.6cqw;font-size:3.2cqw}#screen-home .home-actions{gap:.5cqw}#screen-home .home-actions .btn{margin:0}#screen-home #btn-play{padding:.4cqw 1.9cqw;font-size:2.4cqw}#screen-home .home-actions .btn-secondary{min-height:36px;padding:.3cqw .9cqw;font-size:1.5cqw}#screen-home .pills{gap:.5cqw;margin-top:.7cqw}#screen-home .pill{min-height:32px;padding:.2cqw 1.5cqw;font-size:1.7cqw}#screen-home .streak{display:none}#screen-home .note,#screen-home .best{min-height:0;margin:.4cqw 0 0;font-size:1.5cqw}#screen-home .store-links{border-top:.2cqw solid var(--soft);flex-wrap:wrap;justify-content:center;align-items:center;gap:.5cqw;margin-top:.7cqw;padding-top:.6cqw;font-size:1.4cqw;display:flex}#screen-home .store-links[hidden]{display:none}#screen-home .store-btn{min-height:32px;color:var(--paper);background:var(--ink);border-radius:99px;align-items:center;padding:.2cqw 1.2cqw;font-weight:700;text-decoration:none;display:inline-flex}#screen-map{background:var(--paper)}#screen-woke{justify-content:flex-end;align-items:flex-start}#screen-paused{background:#ffffffb3}.card{text-align:center;max-height:100%;color:var(--ink);border:.5cqw solid var(--ink);background:#fffffff2;border-radius:3cqw;padding:2cqw 3.6cqw;overflow:hidden}.card-wide{background:0 0;border:none;width:100%;height:100%;padding:1cqw 2cqw}.title{letter-spacing:.02em;margin:0 0 .8cqw;font-size:4.4cqw;line-height:1}.headline{margin:0 0 1cqw;font-size:4.6cqw;line-height:1.05}.best{margin:1cqw 0 0;font-size:2.1cqw}.note{opacity:.75;min-height:1.2em;margin:.6cqw 0;font-size:1.9cqw}.badge{border:.4cqw solid var(--ink);border-radius:2cqw;margin:0 0 .8cqw;padding:.3cqw 1.8cqw;font-size:2.3cqw;font-weight:700;display:inline-block}.btn{cursor:pointer;touch-action:manipulation;border:.45cqw solid var(--ink);min-height:44px;box-shadow:.5cqw .5cqw 0 var(--ink);background:var(--paper);border-radius:6cqw;margin:.4cqw;padding:1cqw 4.5cqw;font-size:3cqw;font-weight:700;transition:transform 80ms,box-shadow 80ms;display:inline-block}.btn:active{box-shadow:.1cqw .1cqw 0 var(--ink);background:var(--soft);transform:translate(.4cqw,.4cqw)}.btn-primary{border-width:.6cqw}.btn-secondary{padding:.8cqw 3cqw;font-size:2.3cqw}.pills{justify-content:center;gap:.8cqw;margin-top:1cqw;display:flex}.pill{cursor:pointer;border:.35cqw solid var(--ink);background:var(--paper);touch-action:manipulation;border-radius:4cqw;min-height:36px;padding:.5cqw 2.2cqw;font-size:2.1cqw;font-weight:700}.pill[aria-pressed=true]{background:var(--ink);color:var(--paper)}.summary{text-align:left;grid-template-columns:1fr auto;gap:.4cqw 0;margin:.8cqw 0 1.4cqw;font-size:2.4cqw;display:grid}.summary dt,.summary dd{margin:0}.summary dd{text-align:right;font-variant-numeric:tabular-nums;padding-left:4cqw;font-weight:700}.summary-total{border-top:.3cqw solid var(--ink);padding-top:.5cqw;font-size:3cqw}.stars{justify-content:center;gap:.8cqw;margin-bottom:.4cqw;display:flex}.star{width:5.6cqw;height:5.6cqw;fill:var(--paper);stroke:var(--ink);stroke-width:1.8px;stroke-linejoin:round}.star.is-earned{fill:var(--ink)}@keyframes star-pop{0%{opacity:0;transform:scale(.2)rotate(-30deg)}to{opacity:1;transform:none}}#cleared-stars .star.is-earned{animation:.4s both star-pop}#cleared-stars .star:nth-child(2){animation-delay:.18s}#cleared-stars .star:nth-child(3){animation-delay:.36s}#app[data-tutorial=true] .screen{display:none}#app[data-tutorial=true] #screen-tutorial{background:color-mix(in srgb, var(--paper) 88%, transparent);display:flex}#app[data-tutorial=true][data-settings=true] #screen-tutorial{display:none}#btn-how-to-play:before{content:"❓ "}.tutorial-card{flex-direction:column;align-items:center;gap:.8cqw;width:min(62cqw,100%);padding:1.4cqw 2.4cqw;display:flex}.tutorial-card .headline{margin:0;font-size:3.4cqw}.tutorial-preview{aspect-ratio:800/480;border:.3cqw solid var(--ink);background:var(--paper);border-radius:1.6cqw;flex:0 auto;width:auto;max-width:36cqw;height:21.6cqw;min-height:0}.tutorial-text{min-height:2.6em;margin:0;font-size:2.2cqw;font-weight:700;line-height:1.25}.tutorial-controls{direction:ltr;flex-shrink:0;justify-content:center;gap:2cqw;margin-bottom:1.6cqw;display:flex}.tutorial-controls:empty{display:none}.tutorial-control{border:.35cqw solid var(--ink);box-shadow:.35cqw .35cqw 0 var(--ink);background:var(--paper);unicode-bidi:plaintext;border-radius:1.6cqw;align-items:center;gap:.6cqw;padding:.6cqw 1.6cqw 3.2cqw;font-size:1.8cqw;font-weight:700;display:flex;position:relative}.tutorial-control.is-pressed{background:var(--ink);color:var(--paper);box-shadow:.1cqw .1cqw 0 var(--ink);transform:translate(.25cqw,.25cqw)}.tutorial-control.is-pressed .icon{stroke:var(--paper)}.tutorial-stars{margin:0;font-weight:700}.tutorial-control .icon{width:2.6cqw;height:2.6cqw}.tutorial-control small{opacity:.7;font-size:1.3cqw;display:block}.tutorial-control .hint-hand{font-size:2.6cqw;top:70%}.tutorial-card .tutorial-control[data-mode] .hint-hand{transition:transform .12s;animation:none;transform:translate(-50%,30%)}.tutorial-card .tutorial-control.is-pressed[data-mode] .hint-hand{transform:translate(-50%,-5%)scale(.92)}.tutorial-dots{gap:.8cqw;display:flex}.tutorial-dot{border:.25cqw solid var(--ink);border-radius:50%;width:1.2cqw;height:1.2cqw}.tutorial-dot.is-current{background:var(--ink)}.tutorial-buttons{gap:1.2cqw;display:flex}#app[data-trophies=true] .screen{display:none}#app[data-trophies=true] #screen-trophies{background:var(--paper);display:flex}#app[data-trophies=true][data-settings=true] #screen-trophies{display:none}#btn-trophies:before{content:"🏆 "}#btn-trophies{position:relative}#btn-trophies.has-dot:after{content:"";top:-.4cqw;border:.25cqw solid var(--ink);background:#f5c542;border-radius:50%;width:1.6cqw;height:1.6cqw;position:absolute;inset-inline-end:-.4cqw}#screen-trophies .card{flex-direction:column;display:flex}.map-head .trophies-tabs{margin:0 1cqw}.trophies-panel{flex-direction:column;flex:1;min-height:0;display:flex}.trophies-panel[hidden]{display:none}.album-grid{overscroll-behavior:contain;flex:1;grid-template-columns:repeat(auto-fill,minmax(17cqw,1fr));gap:1cqw;min-height:0;margin:.6cqw 0 0;padding:.4cqw;list-style:none;display:grid;overflow-y:auto}.sticker{text-align:center;border:.3cqw dashed var(--ink);opacity:.55;border-radius:2cqw;flex-direction:column;align-items:center;gap:.3cqw;padding:.8cqw .6cqw;display:flex}.sticker.is-earned{opacity:1;background:var(--paper);box-shadow:.4cqw .4cqw 0 var(--ink);border-style:solid}.sticker-picture{filter:grayscale();font-size:4.6cqw;line-height:1.1}.sticker.is-earned .sticker-picture{filter:none}.sticker-title{font-size:1.8cqw}.sticker-how{opacity:.75;font-size:1.4cqw}.records-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6cqw 1.6cqw;display:flex}.records-streak{margin:0;font-size:2cqw;font-weight:700}.records-head .records-modes{margin:0}.world-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2cqw;margin:1cqw 0 .8cqw;display:grid}.world-card{font:inherit;color:inherit;text-align:start;cursor:pointer;touch-action:manipulation;border:.3cqw solid var(--ink);background:var(--paper);box-shadow:.3cqw .3cqw 0 var(--ink);border-radius:1.6cqw;flex-direction:column;align-items:stretch;gap:.4cqw;padding:.8cqw 1.2cqw;display:flex}.world-card[aria-pressed=true]{background:var(--ink);color:var(--paper)}.world-card-title{font-size:2cqw}.world-card-row{align-items:baseline;gap:.6cqw;font-size:1.9cqw;display:flex}.world-card-row small{opacity:.75;font-size:1.4cqw}.star-bar{border:.2cqw solid;border-radius:1cqw;height:.9cqw;display:block;overflow:hidden}.star-bar>span{background:#f5c542;height:100%;display:block}.records-top{overscroll-behavior:contain;text-align:start;flex:1;min-height:0;overflow-y:auto}.records-note{margin:.4cqw 0 0;font-size:1.5cqw}.records-subtitle{margin:0 0 .6cqw;font-size:2.4cqw}.records-list{margin:0;padding:0;font-size:2cqw;list-style:none}.records-run{border-bottom:.15cqw solid var(--soft);grid-template-columns:4cqw 12cqw 1fr;align-items:baseline;gap:1cqw;padding:.25cqw 0;display:grid}.records-place{opacity:.6;font-weight:700}.records-score{font-variant-numeric:tabular-nums;text-align:end;font-weight:700}.records-day{opacity:.7}.records-run.is-medal{font-size:1.15em}.map-head{justify-content:space-between;align-items:center;display:flex}.map-head .headline{margin:0}.map-buttons{align-items:center;gap:1cqw;display:flex}.world-tabs{gap:.8cqw;margin:1cqw 0 .4cqw;display:flex}.world-tab{cursor:pointer;border:.4cqw solid var(--ink);background:var(--paper);touch-action:manipulation;border-radius:2cqw;flex:1;min-height:44px;padding:.5cqw .6cqw;font-size:2cqw;font-weight:700;line-height:1.1}.world-tab[aria-selected=true]{background:var(--ink);color:var(--paper)}.world-tab:disabled{opacity:.4;cursor:not-allowed;border-style:dashed}.level-grid{grid-template-columns:repeat(10,1fr);gap:.9cqw;margin-top:1cqw;display:grid}.level{cursor:pointer;border:.4cqw solid var(--ink);background:var(--paper);min-height:44px;box-shadow:.4cqw .4cqw 0 var(--ink);touch-action:manipulation;border-radius:1.8cqw;flex-direction:column;justify-content:center;align-items:center;gap:.3cqw;padding:1.2cqw 0;font-size:2.6cqw;font-weight:700;display:flex;position:relative}.level:active{box-shadow:none;transform:translate(.3cqw,.3cqw)}.level:disabled{opacity:.35;box-shadow:none;cursor:not-allowed;border-style:dashed}.level.is-next{background:var(--soft)}.level .star{stroke-width:2.6px;width:1.5cqw;height:1.5cqw}.level .stars{gap:.1cqw;margin:0}.level.is-milestone{outline:.3cqw solid var(--ink);outline-offset:.3cqw}.controls{justify-content:center;gap:var(--gap);visibility:hidden;flex-direction:column;grid-row:2;align-self:stretch;display:flex}.controls-left{grid-column:1;align-items:flex-start}.controls-right{grid-column:3;align-items:flex-end}#app[data-phase=dreaming] .controls{visibility:visible}:is(.control,.tutorial-control) .hint-hand{pointer-events:none;font-size:2.1em;line-height:1;animation:1s ease-in-out infinite hint-tap;display:none;position:absolute;top:72%;left:50%;transform:translate(-50%,18%)}:is(.control,.tutorial-control).is-hinted .hint-hand{display:block}.control.is-hinted{animation:1.6s ease-in-out infinite hint-glow}:is(.control,.tutorial-control)[data-mode=hold] .hint-hand{animation-name:hint-hold;animation-duration:1.8s}@keyframes hint-tap{0%,to{transform:translate(-50%,18%)}45%{transform:translate(-50%,-12%)scale(.92)}}@keyframes hint-hold{0%,to{transform:translate(-50%,18%)}25%,75%{transform:translate(-50%,-12%)scale(.92)}}@keyframes hint-glow{0%,to{box-shadow:4px 4px 0 var(--ink)}50%{box-shadow:4px 4px 0 var(--ink), 0 0 0 8px var(--soft)}}@media (prefers-reduced-motion:reduce){:is(.control,.tutorial-control) .hint-hand,.control.is-hinted{animation:none}}.control{border:4px solid var(--ink);background:var(--paper);width:100%;max-width:190px;height:min(46%,180px);min-height:84px;box-shadow:4px 4px 0 var(--ink);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:pointer;border-radius:22px;flex-direction:column;flex:0 auto;justify-content:center;align-items:center;gap:6px;font-size:1.3rem;font-weight:700;line-height:1;transition:transform 60ms,box-shadow 60ms,background-color 60ms;display:flex;position:relative}.controls:has(.control:only-child) .control{height:min(78%,220px)}.control .icon{fill:none;width:44px;height:44px;stroke:var(--ink);stroke-width:2.1px;stroke-linecap:round;stroke-linejoin:round}.control-text{flex-direction:column;align-items:center;display:flex}.control small{opacity:.65;margin-top:3px;font-size:.7rem;font-weight:500}.control.is-pressed{box-shadow:1px 1px 0 var(--ink);background:var(--soft);transform:translate(3px,3px)}@media (max-height:420px){.control{border-radius:18px;min-height:64px;font-size:1.05rem}.control .icon{width:34px;height:34px}.control small{display:none}}.rotate{z-index:10;background:var(--paper);justify-content:center;align-items:center;padding:24px;display:none;position:fixed;inset:0}#app[data-rotate=true] .rotate{display:flex}.rotate-card{text-align:center;max-width:360px}.rotate-card .headline{font-size:1.7rem}.rotate-card .note{font-size:1.05rem}.rotate-icon{fill:none;width:96px;height:96px;stroke:var(--ink);stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;animation:2.4s ease-in-out infinite turn}@keyframes turn{0%,20%{transform:rotate(0)}60%,to{transform:rotate(-90deg)}}@media (prefers-reduced-motion:reduce){.btn,.control,#hud-time-bar{transition:none}.rotate-icon,#cleared-stars .star.is-earned{animation:none}}.hint{z-index:2;text-align:center;background:var(--paper);border:.4cqw solid var(--ink);pointer-events:none;border-radius:3cqw;max-width:84%;margin:0;padding:.8cqw 2.4cqw;font-size:2.4cqw;font-weight:700;line-height:1.2;position:absolute;bottom:3cqw;left:50%;transform:translate(-50%)}#app[data-settings=true] .screen{display:none}#app[data-settings=true] #screen-settings{background:var(--paper);display:flex}#screen-settings .card{display:none}#app[data-settings-view=main] #screen-settings .card[data-view=main],#app[data-settings-view=gate] #screen-settings .card[data-view=gate],#app[data-settings-view=parents] #screen-settings .card[data-view=parents]{display:block}#screen-settings .card[data-view=parents]{max-width:70cqw}.link-btn{min-height:36px;font:inherit;color:var(--ink);opacity:.7;cursor:pointer;background:0 0;border:none;margin:.8cqw auto 0;padding:.4cqw 1cqw;font-size:1.9cqw;text-decoration:underline;display:block}.gate-question{margin:.6cqw 0;font-size:4cqw;font-weight:700}.gate-answer{width:14cqw;min-height:44px;font:inherit;text-align:center;border:.45cqw solid var(--ink);background:var(--paper);border-radius:2cqw;margin:0 auto 1cqw;font-size:3.4cqw;font-weight:700;display:block}.setting-label{margin:.8cqw 0 .4cqw;font-size:2.1cqw;font-weight:700}.setting-row{justify-content:center;align-items:center;gap:1.6cqw;margin:1cqw 0 1.4cqw;display:flex}.setting-row .setting-label{margin:0}.studio-guide{z-index:5;position:fixed;inset:0}.studio-guide-ring{border:max(3px, .2em) solid var(--ink);box-shadow:0 0 0 200vmax color-mix(in srgb, var(--paper) 72%, transparent);pointer-events:none;border-radius:.8em;transition:left .25s,top .25s,width .25s,height .25s;position:fixed}.guide-hand{font-size:2.2em;line-height:1;animation:1s ease-in-out infinite guide-tap;position:absolute;top:100%;left:50%;transform:translate(-50%,10%)}@keyframes guide-tap{0%,to{transform:translate(-50%,10%)}45%{transform:translate(-50%,-15%)scale(.92)}}@media (prefers-reduced-motion:reduce){.guide-hand{animation:none}.studio-guide-ring{transition:none}}.studio-guide-card{text-align:center;background:var(--paper);border:max(3px, .18em) solid var(--ink);width:min(19em,100vw - 24px);box-shadow:.25em .25em 0 var(--ink);border-radius:1em;flex-direction:column;align-items:center;gap:.5em;padding:.7em 1em .9em;display:flex;position:fixed}.studio-guide-title{opacity:.75;margin:0;font-size:1em}.studio-guide-text{margin:0;font-size:1.1em;font-weight:700;line-height:1.3}.studio-guide .tutorial-dots{gap:.45em}.studio-guide .tutorial-dot{border-width:max(2px,.12em);width:.6em;height:.6em}.welcome{--u:clamp(14px, calc(9px + 1.8vmin), 30px);z-index:7;font-size:var(--u);background:var(--paper);padding:calc(.5em + env(safe-area-inset-top)) calc(.9em + env(safe-area-inset-right)) calc(.5em + env(safe-area-inset-bottom)) calc(.9em + env(safe-area-inset-left));justify-content:center;align-items:center;display:none;position:fixed;inset:0}#app[data-welcome=true] .welcome{display:flex}html[dir=rtl] .welcome-card{direction:rtl}.welcome-card{text-align:center;width:min(36em,100%);max-height:100%;color:var(--ink);flex-direction:column;align-items:center;gap:.45em;display:flex}.welcome .headline{margin:0;font-size:1.6em}.welcome-sounds,.welcome-picture,.welcome-world,.welcome-emoji,.welcome-text{display:none}.welcome[data-page=sounds] .welcome-sounds,.welcome[data-page=story] .welcome-bedroom,.welcome[data-page=worlds] :is(.welcome-preview,.welcome-world),.welcome[data-page=rewards] .welcome-emoji,.welcome:not([data-page=language]) .welcome-text{display:block}.welcome-languages{gap:.5em;width:min(30em,100%);margin:.3em 0}.welcome-languages.language-grid{display:none}.welcome[data-page=language] .welcome-languages.language-grid{display:grid}.welcome .pill.language{min-height:max(44px,2.4em);padding:.1em .6em;font-size:1.05em}.welcome-picture{aspect-ratio:800/480;object-fit:contain;border:max(2px, .14em) solid var(--ink);background:var(--paper);border-radius:.8em;flex:0 auto;max-width:100%;height:min(44vh,13em);min-height:0}.welcome-sounds{margin:.6em 0}.welcome[data-page=sounds] .welcome-sounds{flex-wrap:wrap;justify-content:center;gap:1em;display:flex}.welcome .pill.welcome-switch{min-width:9em;min-height:max(56px,3.2em);padding:.2em 1.2em;font-size:1.25em}.welcome .pill.welcome-switch[aria-pressed=false]{opacity:.7;border-style:dashed}.welcome-world{opacity:.75;margin:0;font-size:.85em;font-weight:700}.welcome-emoji{letter-spacing:.15em;margin:0;font-size:3.4em;line-height:1.2}.welcome-text{max-width:28em;margin:0;font-size:1.1em;font-weight:700;line-height:1.3}.welcome .tutorial-dots{gap:.45em}.welcome .tutorial-dot{border-width:max(2px,.12em);width:.6em;height:.6em}.welcome-buttons{gap:.8em;display:flex}:is(.welcome,.studio-guide) .welcome-buttons .btn{min-height:max(44px,2.75em);box-shadow:.18em .18em 0 var(--ink);border-width:max(3px,.18em);margin:0;padding:.15em 1.3em;font-size:1.05em}.language-grid{direction:ltr;grid-template-columns:repeat(3,1fr);gap:.8cqw;margin:0 0 .6cqw;display:grid}.pill.language{padding:.4cqw 1.2cqw;font-size:2.2cqw}.note.almost{opacity:1;font-size:2.6cqw;font-weight:700}#app:not([data-phase=dreaming]) .hint{display:none}.streak{font-weight:700}.hearts{align-items:center;gap:2px;height:1.4rem;display:flex}.heart{width:1.15rem;height:1.15rem;fill:var(--ink);stroke:var(--ink);stroke-width:2px;stroke-linejoin:round}.heart.is-lost{fill:var(--paper);opacity:.55}.note.reason{opacity:1;margin-top:0;font-size:2.3cqw;font-weight:700}.note.rules{margin:.8cqw 0 0;font-size:1.7cqw}#app{direction:ltr}html[dir=rtl] :is(.card,.rotate-card,.hint,.hud-stats){direction:rtl}html[dir=rtl] .summary{text-align:right}html[dir=rtl] .summary dd{text-align:left;padding-left:0;padding-right:4cqw}.home-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:1cqw;display:flex}.studio,.draw{--u:clamp(14px, calc(9px + 1.8vmin), 30px);z-index:8;font-size:var(--u);background:var(--paper);padding:calc(.6em + env(safe-area-inset-top)) calc(.9em + env(safe-area-inset-right)) calc(.6em + env(safe-area-inset-bottom)) calc(.9em + env(safe-area-inset-left));flex-direction:column;gap:.5em;display:none;position:fixed;inset:0}.draw{z-index:9}.studio[data-open=true],.draw[data-open=true]{display:flex}html[dir=rtl] :is(.studio,.draw){direction:rtl}:is(.studio,.draw) :focus-visible{outline:.2em solid var(--ink);outline-offset:.15em}.studio .headline,.draw .headline{margin:0;font-size:1.5em}.studio .note,.draw .note{min-height:0;margin:0;font-size:.85em}.studio .pill,.draw .pill{min-height:max(44px,2.5em);padding:.15em .9em;font-size:.95em}.studio .pill:disabled,.draw .pill:disabled{opacity:.35;cursor:not-allowed;border-style:dashed}.studio .btn,.draw .btn{min-height:max(44px,2.75em);box-shadow:.18em .18em 0 var(--ink);border-width:max(3px,.18em);margin:0;padding:.15em 1.3em;font-size:1.05em}.studio .btn-secondary,.draw .btn-secondary{font-size:.95em}.studio-head,.draw-head{flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:.5em;display:flex}.draw-head{justify-content:flex-start;gap:.9em}.studio-tools{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5em;display:flex}.studio-head,.studio-body,.draw-head,.draw-body{width:100%;max-width:110em;margin-inline:auto}.studio-body{flex:auto;grid-template-rows:minmax(0,auto);grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-content:center;gap:.9em;min-height:0;display:grid}.studio-left{flex-direction:column;gap:.5em;min-width:0;min-height:0;display:flex}.studio-right{overscroll-behavior:contain;flex-direction:column;gap:.5em;min-width:0;min-height:0;padding:.15em;display:flex;overflow-y:auto}.studio .world-tabs{gap:.4em;margin:0}.studio .world-tab{border-width:max(3px,.18em);border-radius:.75em;min-height:max(44px,2.5em);padding:.15em .4em;font-size:.9em}.slot-tabs{flex-wrap:wrap}.slot-tabs .world-tab{flex:auto;padding-inline:.7em}.studio-preview{aspect-ratio:5/3;border:max(3px, .18em) solid var(--ink);background:var(--paper);border-radius:.9em;width:100%;display:block}.choice-grid{grid-template-columns:repeat(auto-fill,minmax(6.5em,1fr));gap:.5em;display:grid}.choice{text-align:center;cursor:pointer;touch-action:manipulation;border:max(3px, .2em) solid var(--ink);background:var(--paper);border-radius:.9em;flex-direction:column;align-items:stretch;gap:.2em;min-height:44px;padding:.25em;font-size:.78em;font-weight:700;line-height:1.1;display:flex}.choice:active{background:var(--soft)}.choice[aria-pressed=true]{background:var(--ink);color:var(--paper)}.level .paid-lock{top:.3cqw;font-size:2.2cqw;position:absolute;inset-inline-end:.4cqw}.btn.is-locked:before{content:"🔒 "}.choice.is-star-locked{border-style:dashed}.choice.is-star-locked>:first-child{opacity:.4}.studio-stars{text-align:center;margin:.5em 0 0;font-weight:700}.choice:disabled{opacity:.4;cursor:not-allowed;border-style:dashed}.thumb{aspect-ratio:5/3;border:max(2px, .14em) solid var(--ink);background:var(--paper);border-radius:.5em;width:100%;display:block}.thumb-new{color:var(--ink);border-style:dashed;justify-content:center;align-items:center;font-size:2.5em;font-weight:700;display:flex}.choice-small{width:6em}.studio-sounds[hidden],.choice-grid[hidden]{display:none}.sound-off-notice{border:max(3px, .18em) dashed var(--ink);background:var(--soft);border-radius:.9em;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.4em;margin-bottom:.4em;padding:.4em .6em;font-weight:700;display:flex}.sound-heading{margin:.4em 0 .3em;font-size:.95em}.sound-grid{grid-template-columns:repeat(auto-fill,minmax(5.4em,1fr))}.sound-icon{font-size:1.9em;line-height:1.2;display:block}.studio-actions{flex-wrap:wrap;gap:.5em;display:flex}.studio-actions:empty{display:none}.removed-tray{border-top:max(2px, .14em) dashed var(--ink);padding-top:.4em}.removed-tray h3{margin:0 0 .25em;font-size:.9em}.removed-items{flex-wrap:wrap;gap:.5em;display:flex}.toast{inset-inline-start:calc(.9em + env(safe-area-inset-left));bottom:calc(.5em + env(safe-area-inset-bottom));z-index:2;border:max(3px, .18em) solid var(--ink);background:var(--paper);max-width:44vw;box-shadow:.18em .18em 0 var(--ink);border-radius:999px;align-items:center;gap:.5em;padding:.2em .25em .2em .9em;font-size:.9em;font-weight:700;line-height:1.15;display:flex;position:absolute}.draw-body{flex:auto;grid-template-columns:minmax(0,1fr) auto;gap:.9em;min-height:0;display:grid}.draw-pad-wrap{background:var(--soft);border-radius:.9em;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex}#draw-pad{outline:max(3px, .18em) solid var(--ink);background:var(--paper);cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none;display:block}.draw-side{flex-direction:column;gap:.5em;width:clamp(12.5em,24vw,17em);min-height:0;display:flex;overflow-y:auto}.draw-group{flex-wrap:nowrap;gap:.4em;display:flex}.draw-tools .pill,.draw-edit .pill{flex:1 1 0;min-width:0;padding-inline:.3em}.draw-finish{align-items:stretch;margin-top:auto}.draw-finish .btn{flex:1 1 0;min-width:0;padding-inline:.5em}.draw-message{opacity:1;font-weight:700}.weight{cursor:pointer;touch-action:manipulation;border:max(3px, .18em) solid var(--ink);background:var(--paper);border-radius:50%;width:max(44px,2.75em);height:max(44px,2.75em);padding:0;position:relative}.weight:after{content:"";background:var(--pen-color,var(--ink));border-radius:50%;margin:auto;position:absolute;inset:0}.stamp-picker{grid-template-columns:repeat(6,minmax(0,1fr));gap:.25em;display:grid}.stamp-picker[hidden]{display:none}.stamp-choice{aspect-ratio:1;cursor:pointer;touch-action:manipulation;border:max(2px, .12em) solid var(--ink);background:var(--paper);border-radius:.6em;width:100%;min-width:0;padding:.2em}.stamp-choice[aria-pressed=true]{background:var(--ink)}.stamp-icon{width:100%;height:100%;fill:var(--paper);stroke:var(--ink);stroke-width:.13px;stroke-linejoin:round;stroke-linecap:round}.stamp-icon .stamp-dot{fill:var(--ink);stroke:none}.stamp-choice[aria-pressed=true] .stamp-icon{stroke:var(--paper);fill:var(--ink)}.stamp-choice[aria-pressed=true] .stamp-icon .stamp-dot{fill:var(--paper)}.draw-colors{grid-template-columns:repeat(4,auto);justify-content:center;gap:.4em;display:grid}.swatch{cursor:pointer;touch-action:manipulation;border:max(2px, .12em) solid var(--ink);background:var(--swatch);border-radius:50%;width:max(40px,2.4em);height:max(40px,2.4em);padding:0}.swatch[aria-pressed=true]{box-shadow:0 0 0 max(3px, .18em) var(--paper), 0 0 0 max(6px, .36em) var(--ink)}.swatch.is-star-locked,.stamp-choice.is-star-locked{border-style:dashed;position:relative}.swatch.is-star-locked{background:color-mix(in srgb, var(--swatch) 30%, var(--paper))}.stamp-choice.is-star-locked .stamp-icon{opacity:.3}.swatch.is-star-locked:after,.stamp-choice.is-star-locked:after{content:"🔒";justify-content:center;align-items:center;font-size:.8em;display:flex;position:absolute;inset:0}.swatch[data-color=black]{--swatch:#111}.swatch[data-color=red]{--swatch:#e03c3c}.swatch[data-color=orange]{--swatch:#f0882a}.swatch[data-color=yellow]{--swatch:#e8b923}.swatch[data-color=green]{--swatch:#3a9e4c}.swatch[data-color=blue]{--swatch:#3478d6}.swatch[data-color=purple]{--swatch:#8a50c4}.swatch[data-color=brown]{--swatch:#8b5a36}.weight-0:after{width:.4em;height:.4em}.weight-1:after{width:.75em;height:.75em}.weight-2:after{width:1.25em;height:1.25em}.weight[aria-pressed=true]{background:var(--soft);box-shadow:0 0 0 max(3px, .18em) var(--ink)}.draw-confirm{z-index:3;background:#ffffffe0;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.draw-confirm[hidden]{display:none}.dialog{text-align:center;border:max(3px, .18em) solid var(--ink);background:var(--paper);max-width:90%;box-shadow:.25em .25em 0 var(--ink);border-radius:1.1em;flex-direction:column;align-items:center;gap:.6em;padding:1.1em 1.6em;display:flex}.dialog-text{margin:0;font-size:1.1em;font-weight:700}@media (hover:hover){:is(.studio,.draw) :is(.pill,.world-tab,.choice,.weight):not(:disabled):not([aria-pressed=true]):hover{background:var(--soft)}}@media (max-height:420px){.studio,.draw{padding-top:calc(.4em + env(safe-area-inset-top));padding-bottom:calc(.4em + env(safe-area-inset-bottom));gap:.35em}.studio .headline,.draw .headline{font-size:1.15em}.draw-side{gap:.4em}}@media (max-width:700px){.choice-grid{grid-template-columns:repeat(auto-fill,minmax(5.2em,1fr))}}@media (max-aspect-ratio:1){.studio-body{overscroll-behavior:contain;flex-direction:column;gap:.7em;padding-bottom:3.5em;display:flex;overflow-y:auto}.studio-left,.studio-right{flex:none;min-height:auto;padding:0;overflow:visible}.toast{max-width:80vw}.draw-body{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr)}.draw-side{flex-flow:wrap;align-items:center;width:auto;overflow:visible}.draw-tools .pill,.draw-edit .pill{flex:none;padding-inline:.9em}.draw-finish{margin:0;margin-inline-start:auto}.draw-finish .btn{flex:none;padding-inline:1.3em}.draw-message{flex-basis:100%}}#app[data-studio=true] .rotate{display:none}#btn-studio-rotate{margin-top:12px}#app:not([data-phase=home]) #btn-studio-rotate{display:none}@media (pointer:coarse){#app{--safe-w:calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));--safe-h:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));--game-w:min(var(--safe-w), calc(var(--safe-h) * var(--stage-ratio)));grid-template-columns:1fr var(--game-w) 1fr;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);grid-template-rows:1fr;gap:0}#game-canvas{aspect-ratio:auto;border-radius:0;width:100vw;height:100dvh;position:fixed;inset:0}.stage{border:none;border-radius:0;grid-row:1;align-self:center}.hud{z-index:2;border-radius:16px;grid-row:1;align-self:start;margin-top:4px;padding:4px 10px;position:relative}#app[data-phase=dreaming] .hud{background:color-mix(in srgb, var(--paper) 85%, transparent)}.controls{z-index:2;width:var(--side-w);padding-block:var(--gap);position:fixed;top:0;bottom:0}.controls-left{left:calc(env(safe-area-inset-left) + var(--gap))}.controls-right{right:calc(env(safe-area-inset-right) + var(--gap))}#app{--corner-w:166px;--corner-h:max(0px, calc(60px - (var(--safe-h) - var(--game-w) / var(--stage-ratio)) / 2))}.map-head{padding-right:max(0px, calc(var(--corner-w) - 4.4cqw))}#screen-cleared,#screen-woke,#screen-settings,#screen-tutorial{padding-top:max(2.4cqw, var(--corner-h))}#app[data-phase=dream_cleared] .hud-stats{visibility:hidden}}.result-card,#screen-settings .card{overscroll-behavior:contain;overflow-y:auto}.result-card{align-items:center;gap:3cqw;width:92cqw;padding:1.6cqw 2.4cqw;display:flex}.result-main,.result-side{flex:1 1 0;min-width:0}.result-card .summary{margin-top:0}@container (width<=800px){#app[data-settings-view=main] #screen-settings .settings-card[data-view=main]{grid-template-columns:auto auto;align-items:center;column-gap:4cqw;padding:1.6cqw 3cqw;display:grid}.settings-card .headline{grid-column:1/-1;margin-bottom:0}}.star-tip{margin:.2em 0 .4em;font-size:max(.8em,1.9cqw);font-weight:700}.map-stars{margin:.6cqw 0 0;font-size:2cqw;font-weight:700}#screen-map .note.rules{margin-top:.3cqw}
