@font-face{font-family:Laboratorio;src:local("Arial Rounded MT Bold")}
:root{font-family:Laboratorio,ui-rounded,"Trebuchet MS",system-ui,sans-serif;color:#2b1e46;background:#f7f3fb;font-weight:750;--ink:#2b1e46;--deep:#241744;--muted:#665775;--line:#e6dced;--paper:#fffdfb;--gold:#ffda72;--accent:#6537a5;--radius:25px;--gap:clamp(8px,1.5vw,15px);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body{background:radial-gradient(ellipse at 16% 20%,#fff9ed 0,transparent 43%),radial-gradient(ellipse at 94% 78%,#eee1fc 0,transparent 42%),#f8f5fb}
button,input{font:inherit;color:inherit}
button{min-height:60px;border:0;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,input:focus-visible{outline:3px solid #923ac5;outline-offset:3px;z-index:2}
.topbar button:focus-visible,.hero button:focus-visible{outline-color:#ffda72}
button:active:not(:disabled):not(.dragging){scale:.965}
button:disabled{cursor:default}
h1,h2,h3,p{margin:0}
svg{display:block}
#app{display:flex;flex-direction:column;height:100vh;height:100dvh;overflow:hidden}
.wrap,.top-inner{width:min(1120px,100%);margin-inline:auto;padding-inline:max(clamp(13px,3.2vw,40px),env(safe-area-inset-left)) max(clamp(13px,3.2vw,40px),env(safe-area-inset-right))}
.icon{font-size:1.24em;line-height:1;text-align:center}
.emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;line-height:1.08;display:block}
.sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.topbar{flex:none;background:#241744;border-bottom:1px solid #493562;color:#fcf7ff;padding-top:env(safe-area-inset-top)}
.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:8px}
.brand{display:flex;align-items:center;gap:9px;letter-spacing:.065em;font-size:clamp(.63rem,2vw,.88rem);font-weight:900}
.brand span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#483168;color:#ffda72;font-size:1.12rem}
.top-tools{display:flex;align-items:center;gap:clamp(3px,1.5vw,15px)}
.top-button,.star-count{display:flex;align-items:center;justify-content:center;gap:7px;color:inherit;font-size:clamp(.67rem,1.9vw,.87rem);font-weight:850;white-space:nowrap}
.top-button{padding:0 clamp(5px,1.2vw,12px);background:transparent;border-radius:14px}
.top-button:hover,.top-button.holding{background:#4a326d}
.settings-button{position:relative;min-width:50px}
.settings-button .icon{font-size:1.4rem}
.settings-button.holding::after{content:"";position:absolute;bottom:5px;left:9px;right:9px;height:3px;background:#ffda72;transform-origin:left;animation:hold 3s linear both}
@keyframes hold{from{scale:0 1}to{scale:1}}
.star-count{background:#473064;border:1px solid #725488;border-radius:13px;padding:7px 11px;color:#fff8f2}
.star-count span{color:#ffdb70;font-size:1rem}
.home,.album{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;padding-top:clamp(12px,3vh,25px);padding-bottom:max(14px,env(safe-area-inset-bottom))}
.hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(174px,27vh,278px);overflow:hidden;border-radius:var(--radius);padding:clamp(14px,3.6vw,38px);color:#fff8ee;background:radial-gradient(ellipse at 76% 72%,#553374 0,#342053 41%,#2a1b49 78%);box-shadow:0 6px 0 #d8c9e5}
.hero-copy{z-index:1}
.hero h1{font-size:clamp(1.45rem,5vw,3.45rem);line-height:1.04;letter-spacing:-.04em;font-weight:950;text-wrap:balance}
.hero h1 em{font-style:normal;color:#ffda72}
.hero-art{position:absolute;z-index:-1;width:min(51%,500px);height:auto;right:0;bottom:50%;transform:translateY(50%);overflow:visible}
.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:clamp(12px,2vh,23px)}
.primary,.soft,.hero-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:15px;padding:6px clamp(10px,2vw,21px);font-size:clamp(.72rem,1.65vw,1rem);line-height:1.05;font-weight:900;text-align:center}
.primary{background:#ffda72;color:#35234a;box-shadow:inset 0 -4px 0 #e8ad4c}
.primary:hover{background:#ffe59a}
.soft{background:#f0e6f9;border:1px solid #decfea;color:#4d306d;box-shadow:inset 0 -3px 0 #e4d2f2}
.soft:hover{background:#e8d8f7}
.hero-secondary{color:#fff3ff;background:#51376d;border:1px solid #7d5e9f}
.hero-secondary:hover{background:#664783}
.mini-letter{display:grid;place-items:center;min-width:24px;height:24px;border-radius:7px;background:#caacf3;color:#332044;font-size:1rem}
.map{margin-top:clamp(15px,3vh,29px)}
.map-title{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.map-title h2{font-size:clamp(.72rem,2vw,1rem);letter-spacing:.08em;font-weight:950}
.map-title>span{height:1px;background:#dfd3e8;flex:1}
.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.game-tile{display:grid;grid-template-columns:auto 1fr auto;align-items:center;text-align:left;gap:clamp(5px,1.35vw,14px);min-width:0;min-height:clamp(75px,13vh,136px);padding:clamp(5px,1.5vw,16px);border:1px solid var(--edge);border-radius:20px;background:var(--tile);box-shadow:inset 0 -4px 0 var(--edge);transition:translate .16s}
.game-tile:hover{translate:0 -2px}
.tile-image{display:grid;place-items:center;width:clamp(35px,6.9vw,75px);aspect-ratio:1;background:var(--disc);border-radius:30%}
.tile-image svg{width:94%;height:94%}
.tile-pot{--tile:#e1f7e8;--edge:#bbdfce;--disc:#c4ecd6}
.tile-hunt{--tile:#fff0d7;--edge:#ecd5ac;--disc:#ffe0a9}
.tile-train{--tile:#e8ebff;--edge:#ccd1ef;--disc:#d6ddff}
.tile-doors{--tile:#f4e4fa;--edge:#e0c8ef;--disc:#ebcff8}
.tile-missing{--tile:#e3f2e7;--edge:#c5e1cb;--disc:#cbe9d6}
.tile-trace{--tile:#fce6ec;--edge:#ecc9d8;--disc:#f7ccdc}
.tile-text{display:grid;gap:4px;min-width:0}
.tile-text strong{font-size:clamp(.72rem,1.77vw,1.06rem);line-height:1.11;font-weight:950}
.tile-text small{color:#564764;font-size:clamp(.56rem,1.23vw,.75rem);line-height:1.17}
.tile-arrow{font-size:1.35rem;color:#644f74;line-height:1}
.play{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;gap:clamp(3px,1.6vh,13px);padding-top:clamp(4px,1.6vh,13px);padding-bottom:max(3px,env(safe-area-inset-bottom))}
.play-header{flex:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(5px,1.6vw,14px);align-items:center}
.play-header h1{font-size:clamp(.93rem,3.3vw,1.85rem);font-weight:950;line-height:1.08}
.play-header p{font-size:clamp(.64rem,1.9vw,.93rem);color:#59476b;line-height:1.16;margin-top:3px}
.activity-icon{display:grid;place-items:center;width:clamp(36px,7vw,65px);aspect-ratio:1;border-radius:28%;background:#ede1f8}
.activity-icon svg{width:95%;height:95%}
.listen{padding-inline:clamp(7px,1.5vw,15px)}
.feedback{display:grid;place-items:center;text-align:center;flex:none;min-height:1.3em;color:#61378f;font-size:clamp(.68rem,1.8vw,1rem);line-height:1.1;font-weight:900}
.giant-letter{display:grid;place-items:center;justify-self:center;align-self:center;min-width:60px;width:clamp(74px,24vmin,144px);aspect-ratio:1;border-radius:23%;background:#e7d5fb;border:2px solid #c8a6ec;color:#4a2471;box-shadow:inset 0 -5px 0 #d4b9eb;font-size:clamp(2.1rem,13vmin,5.7rem);font-weight:950;line-height:1}
.shake-area,.mode-area,.pot-board,.hunt-board,.train-board,.doors-board,.missing-board,.trace-board{width:100%;max-width:900px;margin-inline:auto;min-height:0;flex:1;gap:var(--gap)}
.shake-area{display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;padding:5px;background:radial-gradient(ellipse at 50% 40%,#eadbf9,transparent 62%);border-radius:var(--radius)}
.pot-scene{position:relative;display:grid;place-items:center;height:100%;min-height:0;width:min(100%,420px)}
.big-cauldron{width:100%;height:100%;max-height:390px}
.cauldron text{font-size:19px;font-weight:900}
.potion-letter{position:absolute;color:#744aa2;font-size:clamp(1rem,4vmin,2rem);animation:float 3s ease-in-out infinite;rotate:13deg;opacity:.7}
.p1{left:21%;top:48%}.p2{left:74%;top:35%;animation-delay:-1s}.p3{left:32%;top:23%;animation-delay:-2s}
.float-runes{animation:float 3.3s ease-in-out infinite}
.brewing svg{animation:brew .67s ease-out both}
.shake-actions{display:grid;justify-items:stretch;gap:7px;text-align:center;width:min(100%,330px)}
.shake-actions small{min-height:1em;font-size:clamp(.62rem,1.6vw,.82rem);color:#5b4670}
.mode-area{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr auto;align-content:center;padding-block:clamp(0px,4vh,30px)}
.mode-area .giant-letter{grid-column:1/-1}
.mode-card{display:grid;place-content:center;justify-items:center;gap:10px;min-height:clamp(92px,23vh,180px);padding:8px;border-radius:24px;font-size:clamp(.8rem,3vw,1.32rem);font-weight:950}
.mode-card .icon{font-size:clamp(1.5rem,6vmin,3rem)}
.mode-solo{background:#def6e6;border:2px solid #a9d7bf;box-shadow:inset 0 -5px 0 #c2e9d2}
.mode-family{background:#ffedd8;border:2px solid #edc79a;box-shadow:inset 0 -5px 0 #f1d9b9}
.pot-board{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.pot-letter{display:grid;place-items:center}
.pot-letter .giant-letter{aspect-ratio:auto;width:clamp(60px,17vmin,104px);min-height:60px;height:clamp(60px,14vh,93px);font-size:clamp(2rem,9vmin,4.4rem)}
.bubble-grid,.hunt-grid{display:grid;gap:var(--gap);min-height:0}
.bubble-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.word-card{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:60px;padding:4px;border:2px solid #d9c8f0;border-radius:23px;background:#fffdfd;box-shadow:inset 0 -4px 0 #eadff7;touch-action:manipulation}
.word-card strong{font-size:clamp(.64rem,2.1vw,1.07rem);max-width:100%;line-height:1.05;overflow-wrap:anywhere;font-weight:920}
.word-card .emoji{font-size:clamp(2rem,9vmin,4.65rem)}
.word-card .word-svg,.door .word-svg,.missing-picture .word-svg,.joined .word-svg{width:clamp(31px,11vmin,86px);height:clamp(31px,11vmin,86px)}
.bubble{touch-action:none;background:radial-gradient(circle at 24% 10%,#fff,#fcf7ff 48%,#eadcfe);border-color:#d6bdf4}
.bubble[aria-pressed=true]{border-color:#965ad2;box-shadow:inset 0 -4px 0 #d3adf7,0 0 0 2px #ae78df}
.bubble.dragging{z-index:4;pointer-events:none;box-shadow:0 8px 20px #3b245c55}
.chest-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
.chest{position:relative;display:grid;place-content:center;justify-items:center;gap:4px;min-width:0;min-height:clamp(60px,12vh,110px);padding:4px 2px;border:2px solid var(--chest-edge);border-radius:16px;background:var(--chest);box-shadow:inset 0 -5px 0 var(--chest-edge)}
.chest::before{content:"";position:absolute;inset:34% 0 auto;height:2px;background:var(--chest-edge)}
.chest>*{z-index:1}
.chest strong{font-size:clamp(.61rem,2vw,1rem);font-weight:950}
.chest .icon{font-size:clamp(1.15rem,4.3vmin,2.1rem)}
.chest-0{--chest:#ffebcc;--chest-edge:#e8be88}.chest-1{--chest:#d9f5e6;--chest-edge:#a8d4bd}.chest-2{--chest:#fce0ec;--chest-edge:#e8b7ce}.chest-3{--chest:#e5e5ff;--chest-edge:#c2c2ed}
.chest.drop-over{outline:3px solid #68409c;outline-offset:2px}
.done{background:#dbf5e4;border-color:#89c7a4;box-shadow:inset 0 -4px 0 #9bceaf;color:#285341}
.done-icon{position:absolute;top:4px;right:4px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#316b4c;color:#fff;font-size:.75rem!important}
.family-board{grid-template-rows:minmax(0,1fr) minmax(0,1fr);align-items:center}
.family-board .chest{min-height:clamp(80px,21vh,150px)}
.family-board .pot-letter .giant-letter{width:clamp(90px,25vmin,180px);height:clamp(90px,23vh,170px);font-size:clamp(3rem,12vmin,6rem)}
.hunt-board{display:grid;grid-template-rows:auto minmax(0,1fr)}
.hunt-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.hunt-grid .word-card .emoji{font-size:clamp(2rem,10vmin,5rem)}
.hunt-grid .word-card strong{font-size:clamp(.76rem,2.9vw,1.32rem)}
.train-board{display:grid;grid-template-rows:minmax(65px,1fr) auto;align-items:center;align-content:center}
.track{overflow:hidden;display:flex;align-items:center;border-radius:20px;min-height:65px;height:100%;padding:4px 12px;background:linear-gradient(180deg,#f6eaff 0 68%,#e1c6fa 68% 73%,#d2b6ee 73% 77%,#f3e2fc 77%);border:1px solid #e1cfef}
.rolling{display:flex;align-items:center;gap:7px;animation:arrive .45s ease-out both}
.rolling.depart{animation:depart 1.8s ease-in forwards}
.engine,.joined{display:flex;gap:6px;align-items:center;background:#d7d9ff;border:2px solid #a5a3e2;border-radius:15px;padding:4px 10px;white-space:nowrap;min-height:60px}
.engine svg{width:clamp(44px,15vmin,92px)}
.engine strong,.joined strong{font-size:clamp(1.3rem,4.4vmin,2.8rem)}
.joined .emoji{font-size:clamp(1.35rem,6vmin,3rem)}
.wagon-grid,.rune-row,.door-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.wagon{min-width:0;overflow:hidden;border-radius:16px;background:#e1eafd;border:1px solid #bdc9ed;display:grid}
.syllable{color:#382867;background:#e0e4ff;font-size:clamp(1.38rem,7vmin,3.15rem);font-weight:950}
.hitch{display:flex;align-items:center;justify-content:center;gap:4px;padding:3px;background:#5e438e;color:#fff;font-size:clamp(.55rem,2vw,.95rem)}
.doors-board{display:grid;grid-template-rows:auto minmax(0,1fr)}
.scroll-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:var(--gap)}
.parchment{display:grid;place-items:center;text-align:center;min-height:60px;padding:4px 6px;border:2px solid #e7bd80;border-radius:17px;background:#fff2cf;color:#4f3151;box-shadow:inset 0 -5px 0 #f5ddb0;font-size:clamp(1.14rem,5vw,3rem);line-height:1.02;font-weight:950}
.door-grid{min-height:0;align-items:stretch}
.door{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:4px;overflow:hidden;border-radius:19px;background:var(--door-light);padding:5px;border:1px solid var(--door-trim);box-shadow:inset 0 -4px 0 var(--door-trim)}
.door-0{--door-light:#e8ddff;--door-trim:#c8afe8;--door:#7954a7}.door-1{--door-light:#daf5e9;--door-trim:#a6d7c3;--door:#3d7c72}.door-2{--door-light:#ffe7db;--door-trim:#efc3b6;--door:#a75667}
.door-sign{flex:0 0 auto;display:grid;place-items:center;min-width:52%;padding:3px 6px;border-radius:12px;background:#fffdf9}
.door .emoji{font-size:clamp(1.5rem,7vmin,4rem)}
.door-frame{position:relative;display:grid;place-items:center;width:min(68%,140px);flex:1;min-height:24px;max-height:185px;border:4px solid var(--door);border-radius:58% 58% 9px 9px/31% 31% 9px 9px;background:#fff6d6;overflow:hidden}
.door-panel{position:absolute;inset:0;display:grid;place-items:center;border-radius:inherit;background:repeating-linear-gradient(90deg,var(--door) 0 29%,var(--door-trim) 30% 31%);box-shadow:inset 0 0 0 4px var(--door)}
.door-panel i{width:10px;height:10px;border-radius:50%;background:#ffda72;justify-self:end;margin-right:10px}
.door.opened .door-frame>*{animation:pop .45s ease-out both}
.missing-board{display:grid;grid-template-rows:minmax(62px,1fr) auto auto;justify-items:center;align-items:center;padding-bottom:4px}
.missing-picture{display:grid;place-items:center;min-width:82px;height:100%;width:min(55%,250px);border-radius:24px;background:#fff2d8;border:2px solid #efd6a9;padding:4px;overflow:hidden}
.missing-picture .emoji{font-size:clamp(2.4rem,14vmin,6rem)}
.missing-picture .word-svg{width:clamp(48px,16vmin,112px);height:clamp(48px,16vmin,112px)}
.spelling{display:flex;justify-content:center;gap:clamp(2px,1vw,10px);width:100%}
.glyph,.hole{display:grid;place-items:center;min-width:0;width:min(10%,75px);min-height:60px;border-radius:clamp(5px,1.4vw,14px);border:1px solid #e2d5ed;background:#fcf8ff;color:#3e285d;font-size:clamp(1rem,5.2vw,3rem);font-weight:950}
.hole{background:#e9d4fa;border:2px dashed #9269be}
.hole.repaired{background:#dff6e8;border:2px solid #85be9b;animation:pop .38s both}
.rune-row{width:min(100%,580px)}
.rune{background:#dec5f8;border:2px solid #bb96e0;box-shadow:inset 0 -4px 0 #c5a1e9;border-radius:19px 23px 17px 23px;font-size:clamp(1.3rem,7vmin,3.2rem);font-weight:950}
.trace-board{display:grid;grid-template-columns:minmax(0,1fr) minmax(84px,.34fr);align-items:stretch}
#trace-canvas{width:100%;height:100%;min-height:0;min-width:0;display:block;background:#fffdf7;border:2px solid #e3d1f2;border-radius:21px;touch-action:none;cursor:crosshair}
.trace-tools{display:grid;place-items:center;align-content:center;gap:var(--gap)}
.trace-tools .giant-letter{width:clamp(60px,16vmin,104px);font-size:clamp(1.75rem,8vmin,4rem)}
.trace-meter{width:100%;text-align:center}
.trace-meter progress{width:min(90%,150px);height:13px;accent-color:#7a49ae}
.trace-won{animation:trace-glow .8s ease both}
.reward{display:grid;place-items:center}
.reward-panel{width:min(100%,650px);max-height:100%;display:grid;justify-items:center;gap:clamp(8px,2.6vh,20px);padding:clamp(10px,4vmin,34px);border-radius:28px;background:#fffcfa;border:2px solid #e2d1ef;box-shadow:0 6px #e6d8f3;text-align:center;color:#493065}
.reward-panel h1{font-size:clamp(1.35rem,5.8vw,2.8rem);font-weight:950;line-height:1}
.reward-panel p{margin:8px 0;color:#62477d;font-size:clamp(.76rem,2.6vw,1.07rem)}
.reward-picture{display:grid;place-items:center;width:clamp(86px,27vmin,165px);aspect-ratio:1;border-radius:32%;background:#f8e6ff;animation:pop .55s both}
.reward-picture svg{width:98%}
.big-star{font-size:clamp(3rem,15vmin,6rem);color:#e8a92a}
.reward-star{display:inline-block;background:#fff1bf;color:#61452e;padding:5px 10px;border-radius:8px;font-size:.79rem}
.reward-actions{display:flex;justify-content:center;gap:9px}
.album-title{margin:4px 0 16px;display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.album-title h1{font-size:clamp(1.23rem,4vw,2.25rem)}
.album-title p{font-size:.78rem;color:#614f76}
.pet-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap)}
.pet-card{display:grid;place-items:center;gap:3px;min-width:0;padding:5px 4px 9px;border:1px solid #e2d1ee;border-radius:18px;background:#fffcff;color:#5a387b;font-size:clamp(.61rem,2.4vw,.93rem)}
.pet-card svg{width:min(100%,110px)}
.pet-card.locked{background:#efe8f5;color:#7c6b8d}
.pet-card.locked svg{opacity:.5}
.sheet{width:min(560px,calc(100% - 20px));max-height:calc(100dvh - 16px);margin:auto;padding:clamp(9px,3vw,22px);border-radius:23px;border:2px solid #d9c0ef;background:#fffafc;color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 18px 70px #25164259}
.sheet::backdrop{background:#27153fd0}
.sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px;gap:8px}
.sheet-header h2{font-size:clamp(1.05rem,4vw,1.5rem)}
.square{width:60px;padding:0;font-size:1.45rem}
.letter-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:8px 0 12px}
.letter{border:1px solid #d0b7e8;border-radius:12px;background:#f3e9fc;color:#422466;font-size:clamp(1.2rem,4vw,1.8rem);padding:0;font-weight:950}
.letter.current,.letter[aria-pressed=true]{background:#d9c0f3;border-color:#a476cc}
.setting{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:60px;padding:3px 6px;border-bottom:1px solid #e9dff0;font-size:.84rem}
.setting input{width:26px;height:26px;accent-color:#8050b4}
.sheet h3{font-size:.85rem;margin:12px 0 3px}
#settings-status{font-size:.74rem;color:#713b84;margin-block:5px}
#celebration{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:9}
.pop,.done-icon{animation:pop .43s ease-out both}
.bounce{animation:bounce .4s ease-in-out}
@keyframes float{50%{translate:0 -6px}}
@keyframes pop{0%{scale:.7;opacity:.3}68%{scale:1.08}100%{scale:1;opacity:1}}
@keyframes bounce{25%{translate:-4px 0}52%{translate:4px 0}76%{translate:-2px 0}}
@keyframes brew{20%,55%{rotate:-7deg;scale:1.03}40%,73%{rotate:8deg;scale:1.06}100%{rotate:0deg}}
@keyframes arrive{from{translate:-11px 0;opacity:.15}to{translate:0 0;opacity:1}}
@keyframes depart{0%,38%{translate:0 0}100%{translate:110vw 0}}
@keyframes trace-glow{50%{background:#fff0bc;box-shadow:inset 0 0 38px #ffcf61}100%{background:#fbf0ff}}
@media(max-width:620px){
  .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero{min-height:158px}
  .hero-art{width:53%;right:-5%}
  .tile-arrow{display:none}
  .game-tile{grid-template-columns:auto 1fr}
  .pet-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:375px){
  .wrap,.top-inner{padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
  .hero-secondary,.hero .primary{padding-inline:7px}
  .hero h1{font-size:clamp(1.19rem,6vw,1.5rem)}
  .listen span:not(.icon){display:none}
  .listen{min-width:55px}
  .listen .icon{font-size:1.2rem}
  .pet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(orientation:landscape){
  .shake-area{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .mode-area{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center;padding:4px}
  .mode-area .giant-letter{grid-column:auto}
  .pot-board{grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .pot-letter{grid-row:1/3}
  .bubble-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
  .family-board{grid-template-rows:1fr}
  .family-board .pot-letter{grid-row:auto}
  .hunt-board{grid-template-columns:auto minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:center}
  .hunt-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
  .hunt-grid .word-card{min-height:clamp(100px,35vh,235px)}
  .missing-board{grid-template-columns:minmax(80px,.35fr) minmax(0,1fr);grid-template-rows:1fr 1fr}
  .missing-picture{grid-row:1/3;width:100%;max-height:220px}
  .missing-board .rune-row{grid-column:2}
}
@media(orientation:landscape) and (max-height:490px){
  .top-inner{min-height:60px}
  .hero{min-height:124px;padding-block:9px}
  .hero h1{font-size:clamp(1.35rem,4vw,2.35rem)}
  .hero-actions{margin-top:5px}
  .home{padding-top:8px}
  .map{margin-top:12px}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .game-tile{min-height:60px}
  .play{gap:4px}
  .play-header .activity-icon{width:36px}
  .play-header h1{font-size:clamp(.91rem,2.5vw,1.35rem)}
  .play-header p{font-size:clamp(.64rem,1.5vw,.84rem)}
  .train-board{gap:5px}
  .wagon{grid-template-columns:1fr 1fr}
  .hitch span:not(.icon){display:none}
  .track{max-height:128px}
  .door .word-svg{width:37px;height:37px}
  .door-sign{padding:1px 4px}
  .reward-panel{grid-template-columns:auto minmax(0,1fr);align-items:center}
  .reward-actions{grid-column:1/-1}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .settings-button.holding::after{background:#ffda72}
}
