.learning-arcade{position:fixed;inset:0;width:100%;height:100%;height:100dvh;z-index:210;background:#bee8fa;overflow:hidden;isolation:isolate;font-family:var(--joy-font,ui-rounded,system-ui,sans-serif);touch-action:none;user-select:none;-webkit-user-select:none}
.arcade-landscape{position:absolute;inset:0;overflow:hidden;background:linear-gradient(#a1d9f5,#def6ff 58%,#edfaff)}
.arcade-sun{position:absolute;left:13%;top:12%;width:15vmin;height:15vmin;border-radius:50%;background:radial-gradient(circle at 38% 35%,#fffde2,#ffe4a1 65%,#ffce79);box-shadow:0 0 70px 30px #fff5c76b}
.arcade-cloud{position:absolute;width:25vw;height:7vw;border-radius:70%;background:radial-gradient(ellipse,#fff 45%,#ffffffe0 65%,transparent 70%);filter:drop-shadow(0 12px 12px #9ecdda30)}
.arcade-cloud::before,.arcade-cloud::after{content:"";position:absolute;border-radius:50%;background:#f8fdff;width:45%;height:140%;bottom:15%;left:15%}.arcade-cloud::after{left:45%;height:110%;width:40%}.cloud-one{left:47%;top:23%}.cloud-two{left:-7%;top:38%;scale:.7}
.arcade-hill{position:absolute;border-radius:50% 50% 0 0;bottom:-16%;width:100%;height:42%;background:linear-gradient(#8bcbae,#6fb297)}.hill-back{left:-35%;bottom:-6%;background:linear-gradient(#b5dcc5,#91cbb3)}.hill-front{right:-35%}
.arcade-bank{position:absolute;bottom:-4%;left:-10%;width:120%;height:16%;border-radius:50% 50% 0 0;background:linear-gradient(#c7e1ae,#97c88b);box-shadow:0 -10px 40px #e1f2ca88}
.arcade-scenery{position:absolute;left:calc(var(--i)*9%);bottom:3%;width:4px;height:calc(20px + var(--i)*2px);border-radius:100%;background:#6aab84;rotate:calc(var(--i)*4deg - 20deg);transform-origin:bottom}
.arcade-scenery::before{content:"";position:absolute;top:0;left:-6px;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle,#fff2ac 25%,#f9b4c9 28%,#f5a1b8 65%,transparent 70%)}
.arcade-fish .arcade-landscape{background:radial-gradient(ellipse at 30% -10%,#bcf6f7,transparent 60%),linear-gradient(#52c5d9,#188faa 58%,#09607f)}
.arcade-fish .arcade-sun,.arcade-fish .arcade-cloud{display:none}
.arcade-fish .arcade-rays{position:absolute;inset:-20% -30%;background:repeating-conic-gradient(from -25deg at 50% 0%,#e2ffff16 0deg 9deg,transparent 12deg 23deg);filter:blur(3px);animation:arcade-water-light 12s ease-in-out infinite alternate}
.arcade-fish .hill-back{background:linear-gradient(#177e97,#096a83);height:25%;bottom:-8%}.arcade-fish .hill-front{background:linear-gradient(#2e99a4,#126e83);height:25%;bottom:-14%}
.arcade-fish .arcade-bank{height:13%;background:linear-gradient(#e9ce9d,#d4af7d);box-shadow:0 -9px 28px #8bdbe85c}
.arcade-fish .arcade-scenery{width:12px;height:calc(30px + var(--i)*5px);bottom:3%;background:linear-gradient(90deg,#1a938e,#57bca1,#14857e);animation:arcade-seaweed 4s ease-in-out calc(var(--i)*-.3s) infinite alternate}
.arcade-fish .arcade-scenery::before{left:calc(var(--i)*2px);top:-180%;width:9px;height:9px;background:radial-gradient(circle at 30% 25%,#fff9,transparent 40%);border:1px solid #c4faff4a;box-shadow:12px -120px 0 -2px #aef8ff45,28px -190px 0 -1px #aef8ff25}
.arcade-nav{position:absolute;z-index:10;top:max(14px,env(safe-area-inset-top));width:46px;height:46px;display:grid;place-items:center;padding:0;border:2px solid #fff;border-radius:17px;background:#ffffffdf;color:#256b83;font:800 34px/1 system-ui;box-shadow:0 4px 12px #22566d21;touch-action:manipulation;cursor:pointer}.arcade-back{left:max(14px,env(safe-area-inset-left))}.arcade-exit{right:max(14px,env(safe-area-inset-right));color:#dc5777}
.arcade-nav:active{scale:.94}.arcade-nav:focus-visible,.arcade-token:focus-visible{outline:3px solid #184c91;outline-offset:5px}
.arcade-goal{position:absolute;z-index:5;left:50%;top:calc(max(14px,env(safe-area-inset-top)) + 4px);transform:translateX(-50%);display:flex;align-items:center;gap:14px;padding:8px 18px;border-radius:22px;border:2px solid #ffffffdf;background:#ffffffdd;box-shadow:0 7px 25px #16536d1a;pointer-events:none;color:#195367}
.arcade-goal-label{font-size:14px;font-weight:800}.arcade-goal strong{font-size:clamp(26px,6vw,36px);line-height:1.3;min-width:1em;text-align:center}.arcade-score{color:#b48220;white-space:nowrap;font-size:18px}.arcade-score b{font-variant-numeric:tabular-nums}
.arcade-playfield{position:absolute;inset:8% 0 5%;outline:none;touch-action:none}
.arcade-token{position:absolute;transform:translate(-50%,calc(-50% + var(--sway,0px)));display:block;width:clamp(92px,15vmin,155px);height:clamp(90px,15vmin,150px);border:0;padding:0;border-radius:45%;background:none;box-shadow:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 9px 6px #063d6d25);will-change:left,top}
.arcade-token .arcade-art{display:block;width:100%;height:100%;transform:scaleX(var(--direction,1));pointer-events:none}
.arcade-symbol{position:absolute;left:53%;top:45%;transform:translate(-50%,-50%);color:#183f57;font:800 clamp(23px,5vmin,38px)/1.2 var(--joy-font);text-shadow:0 1px #fff9;pointer-events:none;max-width:70%;overflow-wrap:anywhere}
.arcade-symbol:lang(ne),.arcade-symbol:lang(hi),.arcade-goal strong:lang(ne),.arcade-goal strong:lang(hi){font-family:SanoDevanagariBold,var(--joy-font)}
.arcade-token .arcade-symbol:lang(zh),.arcade-goal strong:lang(zh){font-family:system-ui,sans-serif}
.arcade-balloons .arcade-symbol{left:51%;top:36%}.arcade-fish .arcade-symbol{left:54%;top:49%;font-size:clamp(22px,4vmin,34px)}
.arcade-basket .arcade-token{width:clamp(62px,10vmin,90px);height:clamp(62px,10vmin,90px)}
.arcade-orb{display:block;width:100%;height:100%;border-radius:35%;border:2px solid #fff9;background:radial-gradient(circle at 30% 20%,#fff,transparent 55%),var(--orb);box-shadow:inset 0 -7px 10px #2555791c,inset 0 3px 2px #fff9,0 8px 10px #2555791c}.arcade-basket .arcade-symbol{left:50%;top:50%}
.arcade-catcher{position:absolute;bottom:7%;width:clamp(100px,19vmin,155px);height:clamp(90px,17vmin,145px);transform:translateX(-50%);filter:drop-shadow(0 12px 8px #275c6a30);pointer-events:none}.arcade-catcher svg{width:100%;height:100%}
.arcade-companion{position:absolute;bottom:2%;left:1%;width:clamp(72px,15vmin,130px);height:clamp(85px,18vmin,155px);pointer-events:none;filter:drop-shadow(0 6px 4px #234f6f30)}.arcade-companion>img{width:100%;height:100%;object-fit:contain}.arcade-companion .language-companion{width:100%;height:100%}
.arcade-hint{position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);margin:0;padding:8px 14px;border-radius:16px;background:#ffffffcc;color:#235b69;font:750 clamp(13px,3vw,17px)/1.4 var(--joy-font);text-align:center;transition:opacity 1s;pointer-events:none;width:max-content;max-width:65%}.arcade-hint.is-faded{opacity:0}
.arcade-feedback{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.arcade-pause-sheet:not([hidden]){position:absolute;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;background:#d5f0f6dd}.arcade-pause-sheet .pill{min-width:210px;min-height:60px}
.learning-arcade .sano-reward-fireworks{position:absolute;inset:0;z-index:15;pointer-events:none;overflow:hidden}.learning-arcade .sano-reward-fireworks img{position:absolute;left:var(--x);top:var(--y);width:180px;height:auto;animation:arcade-burst 1.8s ease-out var(--delay) both;opacity:0}
@keyframes arcade-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}20%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) scale(1.1)}}
@keyframes arcade-seaweed{to{rotate:6deg}}@keyframes arcade-water-light{to{opacity:.55;transform:translateX(3%)}}
.learning-arcade[data-motion=reduce] *{animation:none!important;transition:none!important}.learning-arcade[data-motion=reduce] .sano-reward-fireworks img{opacity:.3;transform:translate(-50%,-50%) scale(.6)}
@media(max-width:380px){.arcade-goal{gap:7px;padding:6px 10px;top:20px}.arcade-goal-label{display:none}.arcade-nav{width:44px;height:44px}.arcade-score{font-size:15px}}
@media(orientation:landscape) and (max-height:580px){.arcade-goal{top:10px;padding:3px 12px}.arcade-playfield{inset:6% 0 4%}.arcade-token{width:105px;height:100px}.arcade-companion{height:95px;width:80px}.arcade-basket .arcade-token{width:62px;height:62px}.arcade-goal strong{font-size:28px}.arcade-catcher{width:110px;height:95px}}

.arcade-companion :is(.speaking-companion,.sano-character){position:static!important;width:100%!important;height:100%!important;max-width:100%;transform:none!important}
/* The game owns the entire viewport, including compact learning and reward HUD. */
.arcade-playfield{inset:126px 0 7%}
.arcade-goal{top:calc(max(12px,env(safe-area-inset-top)) + 1px);max-width:calc(100% - 142px);gap:9px;padding:6px 13px;border-radius:19px;min-height:48px;box-sizing:border-box}
.arcade-goal-copy{display:flex;align-items:center;gap:9px;min-width:0}.arcade-goal-label{font-size:11px;line-height:1.3;max-width:58px;white-space:normal}.arcade-goal strong{font-size:clamp(24px,5vmin,36px);overflow-wrap:anywhere;min-width:0}.arcade-goal strong[data-long=true]{font-size:clamp(15px,3.5vmin,23px)}
.arcade-goal-art{display:block;width:42px;height:42px;flex:none}.arcade-goal-art[hidden]{display:none}.arcade-goal-art>*{width:100%!important;height:100%!important;object-fit:contain}.arcade-goal-art img{max-width:100%;max-height:100%;object-fit:contain}.arcade-goal-art svg{width:100%;height:100%}
.arcade-rewards{position:absolute;left:50%;top:calc(max(12px,env(safe-area-inset-top)) + 69px);transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:12px;border:1px solid #ffffffaa;border-radius:19px;background:#ffffffdb;padding:7px 12px;color:#24596b;box-shadow:0 4px 15px #25566b15;pointer-events:none;font-size:15px;font-weight:850;white-space:nowrap}
.arcade-rewards>span{display:flex;align-items:center;gap:4px}.arcade-rewards small{font-size:10px;font-weight:750}.arcade-rewards i{font-style:normal}.arcade-rewards .arcade-score{color:#24596b;font-size:15px}.arcade-stars i{color:#d89519;font-size:22px;line-height:1;text-shadow:0 1px white}.arcade-coins i{display:flex;width:23px;height:23px}.arcade-coins svg{width:100%;height:100%}.arcade-coin-progress{gap:3px!important;padding-left:6px;border-left:1px solid #c7d9dc}.arcade-coin-progress i{width:5px;height:5px;border:1px solid #d5b462;border-radius:50%;background:#e8dfc5}.arcade-coin-progress i.is-filled{background:#f6c958;box-shadow:0 0 0 1px #fff4bf}
.arcade-token{transition:filter .16s;will-change:transform;filter:drop-shadow(0 11px 7px #063d6d28)}.arcade-token:active{transform:translate(-50%,calc(-50% + var(--sway,0px))) scale(.97);filter:drop-shadow(0 3px 4px #063d6d28) brightness(1.08)}.arcade-token[data-long=true]{width:clamp(122px,20vmin,180px)}.arcade-token[data-long=true] .arcade-symbol{font-size:clamp(13px,2.8vmin,21px);max-width:74%;width:74%;text-align:center;overflow-wrap:normal;hyphens:auto}.arcade-basket .arcade-token[data-long=true]{width:clamp(96px,17vmin,135px);height:clamp(78px,12vmin,110px)}
.arcade-picture{width:50%;height:50%;display:grid;place-items:center}.arcade-picture>*{width:100%!important;height:100%!important;object-fit:contain}.arcade-picture svg{width:100%;height:100%}.arcade-picture img{width:100%;height:100%;object-fit:contain}.arcade-token-reward{position:absolute;right:-3px;top:4px;width:28px;height:28px;display:none;filter:drop-shadow(0 3px 3px #6b4a1266);animation:arcade-coin-sparkle 1.6s ease-in-out infinite}.arcade-token-reward svg{width:100%;height:100%}.arcade-token.has-coin .arcade-token-reward{display:block}
.arcade-pickup-effects{position:absolute;inset:126px 0 7%;pointer-events:none;z-index:8}.arcade-pickup{position:absolute;display:flex;align-items:center;gap:4px;color:#fff9d1;font:900 24px/1 var(--joy-font);text-shadow:0 2px 5px #5f471a77;animation:arcade-pickup .9s ease-out both}.arcade-pickup i{font-style:normal;color:#ffe18c}.arcade-pickup svg{width:36px;height:36px;filter:drop-shadow(0 2px 2px #99752555)}.arcade-pickup.is-coin{font-size:27px}
.arcade-discovery{position:absolute;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:65%;display:flex;align-items:center;gap:8px;padding:8px 14px;background:#ffffffea;border:1px solid #fff;border-radius:19px;box-shadow:0 7px 18px #145e6d22;pointer-events:none;color:#24596b;z-index:6}.arcade-discovery[hidden]{display:none}.arcade-discovery>span:last-child{display:grid;gap:2px}.arcade-discovery strong{font-size:clamp(14px,3.2vmin,20px);line-height:1.2;text-align:center}.arcade-discovery small{font-size:11px;text-align:center}.arcade-discovery-art:empty{display:none}.arcade-discovery-art{width:36px;height:36px;flex:none}.arcade-discovery-art>*{width:100%!important;height:100%!important;object-fit:contain}
.arcade-pause-sheet:not([hidden]){background:#b8e4edbb;backdrop-filter:blur(8px)}.arcade-pause-card{padding:28px;max-width:min(85vw,340px);border-radius:32px;background:linear-gradient(145deg,#fff,#f0fcff);border:3px solid #fff;box-shadow:0 25px 60px #285d7344;display:grid;justify-items:center;gap:12px;text-align:center;color:#285c72}.arcade-pause-card h2{margin:0;font-size:24px}.arcade-pause-star{font-size:50px;color:#edbc4e;text-shadow:0 4px #c78a2c22}.arcade-pause-total{font-size:14px;line-height:1.7;white-space:pre-line;margin:0 0 6px}.arcade-pause-card button{width:100%}.arcade-accessory{position:absolute;left:25%;top:-3%;width:50%;height:36%;z-index:2;transform:rotate(-6deg)}.arcade-accessory svg{width:100%;height:100%}
/* Layered, soft scenery shares the same friendly materials as the play pieces. */
.cloud-three{right:-12%;top:47%;scale:.6;opacity:.75}.arcade-cloud{box-shadow:inset 0 -5px 12px #a6d5e866}.arcade-landscape::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,transparent 50%,#35759b10);pointer-events:none}
.arcade-tree{position:absolute;bottom:8%;left:-5%;width:20vmin;height:38vmin;border-radius:50% 50% 10% 10%;background:linear-gradient(90deg,transparent 43%,#c29265 44%,#e0bb8b 51%,#ac835d 58%,transparent 59%);filter:drop-shadow(0 10px 4px #35786719)}.arcade-tree i{position:absolute;left:0;top:0;width:100%;height:48%;border-radius:49% 51% 40% 45%;background:radial-gradient(circle at 32% 22%,#d3edb8,#a3d39f 55%,#72b991);box-shadow:inset -6px -9px 16px #4a987930}.arcade-tree i:nth-child(2){left:-22%;top:24%;width:82%;height:40%}.arcade-tree i:nth-child(3){left:38%;top:26%;width:75%;height:35%}.tree-two{left:auto;right:-4%;scale:.7;transform-origin:bottom;bottom:9%;opacity:.8}
.arcade-pebbles{position:absolute;inset:auto 0 0;height:9%}.arcade-pebbles i{position:absolute;left:calc(var(--i)*15% + 3%);bottom:calc(var(--i)*3%);width:calc(16px + var(--i)*3px);height:calc(9px + var(--i)*2px);border-radius:50% 55% 35% 35%;background:radial-gradient(ellipse at 35% 20%,#edf3d3,#b8c8a7 60%,#8daa94);box-shadow:0 3px 3px #5a7d7130}.arcade-fish .arcade-pebbles i{background:radial-gradient(ellipse at 35% 20%,#e9e8cf,#b9c6bd 60%,#89a7a8)}
.arcade-coral{position:absolute;left:3%;bottom:3%;width:40px;height:83px;border-radius:18px 18px 0 0;background:linear-gradient(90deg,#d77399,#f9aac0 50%,#c76793);transform:rotate(-8deg);box-shadow:inset 0 3px 0 #ffd0d4}.arcade-coral::before,.arcade-coral::after{content:"";position:absolute;bottom:8px;width:20px;height:65px;border-radius:15px;background:inherit;transform:rotate(-35deg);transform-origin:bottom;left:-9px}.arcade-coral::after{left:23px;height:55px;transform:rotate(35deg)}.coral-two{left:auto;right:8%;scale:.65;transform:rotate(12deg);background:linear-gradient(90deg,#e5a477,#ffcc97 50%,#d7986d)}
.arcade-shell{position:absolute;bottom:2%;left:37%;width:43px;height:27px;border-radius:70% 70% 20% 20%;background:repeating-conic-gradient(from -75deg at 50% 100%,#f3c7bd 0deg 12deg,#ffe0d1 13deg 25deg);box-shadow:0 4px 4px #745d4d25}
.arcade-dust{position:absolute;inset:0;pointer-events:none}.arcade-dust i{position:absolute;left:calc(var(--i)*10% + 4%);top:calc(24% + var(--i)*6%);width:4px;height:4px;background:#fff9;border-radius:50%;animation:arcade-dust 7s ease-in-out calc(var(--i)*-.6s) infinite alternate;box-shadow:0 0 9px #fff8}
.learning-arcade[data-theme=ocean] .arcade-landscape{background:radial-gradient(ellipse at 30% 0,#b8ffed,transparent 60%),linear-gradient(#90dedc,#c5faf0 60%,#eafbea)}.learning-arcade[data-theme=ocean] .arcade-hill{background:linear-gradient(#6eb9b3,#3b989f)}.learning-arcade[data-theme=ocean] .arcade-bank{background:linear-gradient(#f3e3b1,#dbc88d)}.learning-arcade[data-theme=ocean].arcade-fish .arcade-landscape{background:radial-gradient(ellipse at 25% 0,#afffea,transparent 65%),linear-gradient(#3eb9b9,#087c8b 55%,#075575)}
.learning-arcade[data-theme=moon] .arcade-landscape{background:radial-gradient(ellipse at 20% 10%,#a3aae0,transparent 55%),linear-gradient(#4c628f,#899fbd 65%,#adc7cb)}.learning-arcade[data-theme=moon] .arcade-sun{background:radial-gradient(circle at 36% 30%,#fffde7,#e8e9ce 70%);box-shadow:0 0 60px 18px #f3f4d64d}.learning-arcade[data-theme=moon] .arcade-hill{background:linear-gradient(#8ba3bd,#657e9e)}.learning-arcade[data-theme=moon] .arcade-bank{background:linear-gradient(#9cb4c2,#718da6)}.learning-arcade[data-theme=moon] .arcade-tree{opacity:.6}.learning-arcade[data-theme=moon] .arcade-cloud{opacity:.45}.learning-arcade[data-theme=moon] .arcade-dust i{width:5px;height:5px;background:#fff1b5;box-shadow:0 0 12px #fff1b5}.learning-arcade[data-theme=moon].arcade-fish .arcade-landscape{background:radial-gradient(ellipse at 30% 0,#a3b9dd,transparent 65%),linear-gradient(#527caa,#365a84 55%,#263d64)}
@keyframes arcade-pickup{0%{opacity:0;transform:translate(-50%,-20%) scale(.7)}15%{opacity:1;transform:translate(-50%,-50%) scale(1.12)}100%{opacity:0;transform:translate(-50%,-160%) scale(.8)}}
@keyframes arcade-coin-sparkle{50%{transform:translateY(-4px) rotate(8deg);filter:brightness(1.13)}}
@keyframes arcade-dust{to{transform:translate(12px,-22px);opacity:.2}}
@media(max-width:420px){.arcade-goal{max-width:calc(100% - 126px);padding:5px 8px;gap:5px}.arcade-goal-label{display:block;font-size:9px;max-width:43px}.arcade-goal-copy{gap:5px}.arcade-goal-art{width:30px;height:30px}.arcade-goal strong{font-size:27px}.arcade-goal strong[data-long=true]{font-size:16px}.arcade-rewards{gap:10px;font-size:14px}.arcade-token[data-long=true]{width:130px}.arcade-basket .arcade-token[data-long=true]{width:108px}.arcade-discovery{max-width:68%;padding:6px 10px}}
@media(orientation:landscape) and (max-height:580px){.arcade-goal{top:max(7px,env(safe-area-inset-top));min-height:38px;padding:2px 10px;left:42%;max-width:calc(100% - 320px)}.arcade-goal-art{width:34px;height:34px}.arcade-goal strong{font-size:25px}.arcade-rewards{top:10px;left:auto;right:max(72px,calc(env(safe-area-inset-right) + 58px));transform:none;padding:5px 8px;gap:7px;font-size:13px}.arcade-rewards .arcade-score{font-size:13px}.arcade-rewards small,.arcade-coin-progress{display:none!important}.arcade-playfield,.arcade-pickup-effects{inset:65px 0 6%}.arcade-nav{top:max(8px,env(safe-area-inset-top));width:44px;height:44px}.arcade-token{width:95px;height:90px}.arcade-token[data-long=true]{width:135px}.arcade-basket .arcade-token[data-long=true]{width:100px;height:72px}.arcade-catcher{width:105px;height:96px;bottom:4%}.arcade-discovery{bottom:max(6px,env(safe-area-inset-bottom));padding:4px 9px}.arcade-discovery-art{width:25px;height:25px}.arcade-discovery strong{font-size:13px}.arcade-discovery small{font-size:10px}.arcade-pause-card{padding:16px 24px;gap:7px}.arcade-pause-star{font-size:29px}.arcade-pause-card h2{font-size:21px}.arcade-pause-sheet .pill{min-height:44px}}
.arcade-goal strong[data-long=true]{line-height:1.1}.arcade-goal-copy{overflow:hidden}.arcade-goal{max-height:62px}.arcade-goal strong{max-height:48px;overflow:hidden}.arcade-goal strong[data-long=true]{max-height:47px}
/* Rendered worlds and roomy, measured learning labels. */
.arcade-backdrop-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;pointer-events:none}
.learning-arcade[data-theme=ocean] .arcade-backdrop-image{filter:hue-rotate(12deg) saturate(.9)}
.learning-arcade[data-theme=moon] .arcade-backdrop-image{filter:brightness(.65) saturate(.65) hue-rotate(15deg)}
.learning-arcade[data-theme=moon] .arcade-landscape::after{content:"";position:absolute;inset:0;background:linear-gradient(#32458c55,#829ee825);pointer-events:none}
.learning-arcade .arcade-token{overflow:visible}
.learning-arcade .arcade-symbol{box-sizing:border-box;display:flex;align-items:center;justify-content:center;left:50%;top:41%;width:56%;height:45%;max-width:none;overflow:hidden;padding:1px;color:#253d59;line-height:1.35;text-shadow:0 1px 1px #ffffffb0}
.learning-arcade .arcade-label-text{display:block;box-sizing:border-box;max-width:100%;width:max-content;min-width:0;line-height:1.35;text-align:center;overflow-wrap:anywhere;word-break:normal;letter-spacing:0}
.learning-arcade .arcade-token[data-kind=letter] .arcade-label-text,.learning-arcade .arcade-token[data-kind=vowel] .arcade-label-text,.learning-arcade .arcade-token[data-kind=number] .arcade-label-text{white-space:nowrap;overflow-wrap:normal}
.arcade-fish .arcade-token .arcade-symbol{left:46%;top:53%;width:42%;height:39%}
.arcade-fish .arcade-token[data-direction="-1"] .arcade-symbol{left:54%}
.arcade-balloons .arcade-token .arcade-symbol{left:50%;top:39%;width:52%;height:47%}
.arcade-basket .arcade-token{width:clamp(80px,12vmin,112px);height:clamp(80px,12vmin,112px)}
.arcade-basket .arcade-token[data-long=true]{width:clamp(108px,16vmin,138px);height:clamp(88px,12vmin,112px)}
.arcade-basket .arcade-token .arcade-symbol{left:50%;top:50%;width:76%;height:72%}
.learning-arcade .arcade-token .arcade-orb{box-sizing:border-box;border-radius:38%;border:3px solid #ffffffd9;background:radial-gradient(ellipse at 28% 12%,#fffffff2 0,#ffffff65 27%,transparent 62%),linear-gradient(150deg,#ffffff35,transparent 70%),var(--orb);box-shadow:inset 0 -7px 9px #28638330,inset 0 3px 2px #fff,0 5px 0 #355e7221,0 9px 13px #16496529}
.learning-arcade .arcade-picture>*{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.learning-arcade .arcade-picture img,.learning-arcade .arcade-picture svg{max-width:100%;max-height:100%;object-fit:contain}
.learning-arcade .arcade-catcher{width:clamp(125px,23vmin,183px);height:clamp(125px,23vmin,183px);bottom:4.5%}
@media(orientation:landscape) and (max-height:580px){.arcade-basket .arcade-token{width:76px;height:76px}.arcade-basket .arcade-token[data-long=true]{width:112px;height:80px}.learning-arcade .arcade-catcher{width:105px;height:105px;bottom:2%}}
@media(max-width:420px){.arcade-goal-art{width:28px;height:28px}.arcade-goal strong[data-long=true]{font-size:15px}.arcade-goal-copy{gap:4px}.arcade-goal-label{max-width:36px;font-size:9px}}

/* A stable playfield lets moving pieces use compositor translations only. */
.learning-arcade .arcade-token{transform:translate(-50%,-50%);contain:layout style;will-change:translate}
.learning-arcade .arcade-token:active{transform:translate(-50%,-50%) scale(.96)}
.learning-arcade .arcade-rewards{top:max(17px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 126px);box-sizing:border-box;gap:9px}
.learning-arcade .arcade-goal{top:78px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);max-height:100px;min-height:62px;padding:8px 17px;box-sizing:border-box}
.learning-arcade .arcade-goal-copy{gap:8px;min-width:0}.learning-arcade .arcade-goal-label{display:block;max-width:none;font-size:13px;line-height:1.3}.learning-arcade .arcade-goal-art{width:43px;height:43px;flex:none}.learning-arcade .arcade-goal strong{font-size:36px;max-height:78px;line-height:1.35}.learning-arcade .arcade-goal strong[data-long=true]{font-size:clamp(18px,5vw,25px);max-height:78px}
.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:162px 0 7%}
.learning-arcade .arcade-pause-card [data-arcade-action=resume]{background:linear-gradient(145deg,#81ebba,#23ae78)!important;border:3px solid #fff;border-bottom:5px solid #168759;color:#083c2d;box-shadow:0 4px 10px #19996735,0 0 25px #73e6b06b}
.learning-arcade .arcade-pause-card [data-arcade-action=exit]{background:linear-gradient(145deg,#ff91a0,#e84260)!important;border:3px solid #fff;border-bottom:5px solid #b42540;color:#fff;box-shadow:0 4px 10px #bd284535,0 0 25px #ff76936b}
.arcade-tap .arcade-token,.arcade-memory .arcade-token{width:clamp(80px,24vw,132px);height:clamp(85px,25vw,140px);filter:drop-shadow(0 10px 5px #3d756b35)}
.arcade-tap .arcade-token .arcade-symbol,.arcade-memory .arcade-token .arcade-symbol{left:50%;top:50%;width:74%;height:72%}
.arcade-tap .arcade-token{animation:arcade-pop .24s cubic-bezier(.2,.75,.25,1) both}
.arcade-memory .arcade-token::after{content:'★';position:absolute;inset:0;display:grid;place-items:center;font-size:45px;color:#fff5bc;transition:opacity .18s}
.arcade-memory .arcade-token[data-revealed=true]::after{opacity:0}.arcade-memory .arcade-token[data-matched=true]{opacity:.45;filter:none}.arcade-memory .arcade-token .arcade-orb{background:linear-gradient(145deg,#d4c6fa,#9a86d8)}
.arcade-memory .arcade-token[data-revealed=true] .arcade-orb{background:linear-gradient(145deg,#fff9dc,#ffe6a7)}
.arcade-tap .arcade-companion,.arcade-memory .arcade-companion{height:100px;width:90px;bottom:2%}
@keyframes arcade-pop{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@media(orientation:landscape) and (max-height:580px){.learning-arcade .arcade-rewards{top:9px;left:auto;right:65px;transform:none;max-width:45%;font-size:12px}.learning-arcade .arcade-goal{top:8px;left:68px;transform:none;max-width:calc(55% - 85px);min-height:45px;padding:3px 10px}.learning-arcade .arcade-goal-label{font-size:10px}.learning-arcade .arcade-goal-art{width:32px;height:32px}.learning-arcade .arcade-goal strong{font-size:26px}.learning-arcade .arcade-goal strong[data-long=true]{font-size:16px}.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:70px 0 8%}.arcade-tap .arcade-token,.arcade-memory .arcade-token{width:90px;height:90px}.arcade-tap .arcade-companion,.arcade-memory .arcade-companion{height:70px;width:65px}}

/* Stable three-hole playfield. Layout never depends on a one-time measurement. */
.arcade-tap .arcade-token{width:clamp(86px,28vw,175px);height:clamp(116px,34vw,210px);filter:none;background:none;border:0;animation:none!important}
.arcade-tap .bunny-art{width:100%;height:100%;pointer-events:none;overflow:visible}
.arcade-tap .bunny-pop{animation:sano-bunny-pop .4s cubic-bezier(.2,.7,.3,1) both;transform-origin:center bottom}
.learning-arcade.arcade-tap .arcade-token .arcade-symbol{left:50%;top:74%;width:44%;height:22%;max-width:44%;display:grid;place-items:center;font-size:clamp(22px,5vw,35px)}
.arcade-tap .arcade-token[data-long=true]{width:clamp(86px,28vw,175px)}
.arcade-tap .arcade-token:disabled{opacity:1;filter:none}
.arcade-tap .arcade-token-reward{right:5%;top:33%}
.arcade-tap .arcade-goal-label{max-width:95px;flex-shrink:0}
.arcade-tap .arcade-hint{max-width:80%}
@keyframes sano-bunny-pop{from{opacity:0;transform:translateY(22px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(orientation:landscape) and (max-height:580px){.arcade-tap .arcade-token{width:115px;height:140px}.arcade-tap .arcade-token[data-long=true]{width:115px}.learning-arcade.arcade-tap .arcade-playfield{inset:90px 8% 10%}.arcade-tap .arcade-companion{width:65px;height:75px}}
@media(prefers-reduced-motion:reduce){.bunny-pop{animation:none!important}}

.arcade-tap .arcade-goal{pointer-events:auto;cursor:pointer}.arcade-tap .arcade-goal:focus-visible{outline:3px solid #184c91;outline-offset:3px}

/* Recessed burrows: the label belongs to the character, behind the near rim. */

.learning-arcade .arcade-token{backface-visibility:hidden;filter:none;will-change:translate}
.arcade-tap .burrow-hole{position:absolute;left:5%;right:5%;bottom:4%;height:21%;border-radius:50%;background:radial-gradient(ellipse at 50% 80%,#634129,#261b17 72%);border:5px solid #a87a44;box-shadow:0 5px 0 #d3ae73,0 9px 9px #4b592b33,inset 0 7px 10px #110d0b99}
.arcade-tap .burrow-window{position:absolute;inset:0 0 11%;overflow:hidden;border-radius:0 0 50% 50% / 0 0 8% 8%;pointer-events:none}
.arcade-tap .burrow-rise{position:absolute;inset:0;display:block;transform:translateY(0);transition:transform .42s cubic-bezier(.2,.7,.3,1);animation:burrow-arrive .45s ease-out}
.arcade-tap [data-burrow=hidden] .burrow-rise{transform:translateY(4%)}
.arcade-tap [data-burrow=hidden] .arcade-symbol>*{visibility:hidden}
.arcade-tap [data-burrow=hidden] .arcade-symbol::after{content:"?";position:absolute;inset:0;display:grid;place-items:center;color:#553917;font-weight:800}
.arcade-tap .burrow-friend{display:block;width:100%;height:100%;overflow:visible}
.learning-arcade.arcade-tap .arcade-token .arcade-symbol{left:50%;top:75%;width:58%;max-width:58%;height:25%;padding:3px;line-height:1.35;transform:translate(-50%,-50%)}
.arcade-tap .burrow-rim{position:absolute;left:5%;right:5%;bottom:4%;height:17%;border-radius:0 0 50% 50%;border-bottom:9px solid #a77b42;box-shadow:0 4px 0 #d9b97c;pointer-events:none}
.arcade-tap .arcade-token:focus-visible{outline:3px solid #176bc9;outline-offset:5px;border-radius:20%}
.learning-arcade .arcade-catcher{overflow:visible;isolation:isolate}
.basket-body{position:absolute;inset:0;width:100%;height:100%;z-index:1;filter:drop-shadow(0 8px 5px #263c302e)}




@keyframes basket-settle{from{translate:0 -16px;opacity:.3}to{translate:0 0;opacity:1}}
@keyframes burrow-arrive{from{transform:translateY(110%)}to{transform:translateY(0)}}
@media(min-width:768px) and (min-height:581px){.arcade-tap .arcade-token,.arcade-tap .arcade-token[data-long=true]{width:clamp(190px,23vw,270px);height:clamp(250px,30vw,350px)}.learning-arcade .arcade-catcher{width:clamp(185px,24vmin,260px);height:clamp(185px,24vmin,260px)}.arcade-basket .arcade-token{width:clamp(110px,14vmin,155px);height:clamp(110px,14vmin,155px)}.arcade-fish .arcade-token,.arcade-balloons .arcade-token{width:clamp(145px,19vmin,230px);height:auto;aspect-ratio:1/1}.arcade-fish .arcade-token{aspect-ratio:1.4/1}}
@media(prefers-reduced-motion:reduce){}

.arcade-goal .arcade-goal-badge{position:absolute;left:auto;right:-7px;top:-10px;width:30px;height:28px;pointer-events:none;transform:rotate(10deg)}

/* Position is part of the game, never decorative tile motion. */
.learning-arcade .arcade-token,.learning-arcade .arcade-token:active{translate:none!important;transform:translate3d(var(--arcade-x,0px),var(--arcade-y,0px),0) translate(-50%,-50%)!important;will-change:transform}
.arcade-tap .arcade-token-reward{display:none!important}

.arcade-tap .burrow-window{inset:0 5% 13%;border-radius:0 0 50% 50% / 0 0 11% 11%;clip-path:inset(0 round 0 0 10% 10%)}
.arcade-tap .burrow-rim{height:12%;bottom:3%;border-bottom:9px solid #9a733e;box-shadow:0 3px 0 #c8a76b,0 6px 6px #42522124}
.arcade-tap .burrow-hole{border-color:#8e6b3e;box-shadow:0 3px 0 #c1a15f,inset 0 7px 10px #0d0908c7}
.arcade-basket .arcade-token{width:clamp(58px,16vw,96px);height:clamp(58px,16vw,96px)}
.arcade-basket .arcade-token[data-long=true]{width:clamp(76px,21vw,120px);height:clamp(58px,16vw,96px)}
.learning-arcade .arcade-catcher{max-width:42vw;max-height:42vw;will-change:left}
.arcade-basket .arcade-playfield{overflow:hidden}

.learning-arcade .arcade-stars>i{display:inline-flex;width:30px;height:32px;line-height:1}
.learning-arcade .arcade-stars>i svg,.learning-arcade .arcade-pause-star svg{width:100%;height:100%}
.learning-arcade .arcade-pause-star{display:inline-flex;width:64px;height:66px}

/* A small collection recap, with one clear counter for each reward. */
.arcade-pause-total{display:flex;justify-content:center;gap:28px;margin:22px 0 26px!important;white-space:normal!important}
.arcade-pause-reward{display:flex;align-items:center;gap:10px;font-size:2rem;color:#765015}
.arcade-pause-reward i{display:block;width:50px;height:50px;filter:drop-shadow(0 0 9px #ffc74285)}
.arcade-pause-reward svg{display:block;width:100%;height:100%}

.arcade-lives{position:absolute;z-index:8;top:76px;right:22px;padding:7px 11px;border:2px solid #fff;border-radius:18px;background:#fff3f4ed;color:#d44567;font-size:23px;letter-spacing:4px;box-shadow:0 0 14px #f898a75c;pointer-events:none}
.arcade-item-effect{position:absolute;z-index:9;pointer-events:none;display:block}
.arcade-balloon-burst i{position:absolute;left:45%;top:34%;width:18px;height:23px;clip-path:polygon(0 18%,70% 0,100% 35%,60% 50%,80% 100%,23% 73%);border-radius:60% 30% 20% 35%}
.arcade-hooked-fish>.arcade-art{display:block;width:100%;height:100%;filter:drop-shadow(0 0 9px #ffe36d)}
.arcade-fishing-line{position:absolute;left:51%;bottom:78%;width:2px;height:100vh;background:#c2d6dc}
.arcade-fishing-hook{position:absolute;left:calc(51% - 7px);top:-4px;width:23px;height:34px;z-index:2}
.arcade-burrow-dust i{position:absolute;left:50%;top:83%;width:15px;height:12px;border-radius:50%;background:#b68b5e}
.arcade-tap .burrow-hole{box-shadow:inset 0 8px 13px #281e1cad,0 6px 0 #8d7045,0 10px 12px #37331b38}
.arcade-tap .burrow-rise{transition:transform .38s cubic-bezier(.2,.75,.3,1.12);filter:drop-shadow(0 5px 4px #70554038)}
.learning-arcade[data-hurt=true] .arcade-lives{background:#ffd2da;box-shadow:0 0 19px #f65b7b77}
.learning-arcade[data-hurt=true] .arcade-catcher{filter:sepia(.7) saturate(3) hue-rotate(305deg) drop-shadow(0 0 8px #ff597d88)}
@media(max-width:460px){.arcade-lives{top:88px;right:12px;font-size:19px;padding:5px 8px}}
@media(prefers-reduced-motion:reduce){.arcade-tap .burrow-rise{transition:none}}

.arcade-pause-card [data-arcade-action=resume]{box-shadow:0 0 18px #49c98777,0 4px 9px #34845830}
.arcade-pause-card [data-arcade-action=exit]{box-shadow:0 0 18px #e57b9577,0 4px 9px #9a455830}

/* The outfit is worn by the guide, inside the HUD and outside playable targets. */
.learning-arcade .arcade-goal>.arcade-companion{position:relative;display:block;inset:auto;width:60px;height:60px;flex:0 0 60px;transform:none;filter:drop-shadow(0 3px 2px #234f6f25)}
.learning-arcade .arcade-goal{min-height:76px}
.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{top:174px}
@media(max-width:380px){.learning-arcade .arcade-goal>.arcade-companion{width:52px;height:52px;flex-basis:52px}.learning-arcade .arcade-goal{gap:5px;padding-inline:7px}.learning-arcade .arcade-goal-art{width:30px;height:30px}}
@media(orientation:landscape) and (max-height:580px){.learning-arcade .arcade-goal>.arcade-companion{width:42px;height:42px;flex-basis:42px}.learning-arcade .arcade-goal{min-height:52px}.learning-arcade .arcade-rewards{top:9px}.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{top:90px}}

/* Rendered game worlds. Learning pieces remain live, readable and independent. */
.learning-arcade{--world-glow:#5ce7e3;--world-ink:#145c74}
.arcade-balloons{--world-glow:#ff8cc0;--world-ink:#863567}
.arcade-basket{--world-glow:#ffd261;--world-ink:#77501f}
.arcade-tap{--world-glow:#a4ed6b;--world-ink:#3b6230}
.learning-arcade .arcade-backdrop-image{object-position:center;filter:none}
.learning-arcade[data-theme=ocean] .arcade-backdrop-image{filter:saturate(1.04)}
.learning-arcade[data-theme=moon] .arcade-backdrop-image{filter:brightness(.76) saturate(.92)}
.learning-arcade .arcade-landscape::after{background:linear-gradient(#113c682b,transparent 23%,transparent 88%,#1031241c)}
.sano-arcade-sprite{filter:hue-rotate(var(--sprite-hue,0deg));overflow:hidden;pointer-events:none}
.arcade-fish .arcade-dust i{width:9px;height:9px;border:1px solid #c7ffffa8;background:radial-gradient(circle at 28% 22%,#fff9 0 12%,transparent 40%);box-shadow:inset 0 -1px 2px #82e9ff66,0 0 6px #c4ffff44;animation:arcade-bubbles 9s linear calc(var(--i)*-.9s) infinite}
.arcade-tap .arcade-dust i{background:#ffe9a3;box-shadow:0 0 9px #ffeb6a}
.arcade-balloons .arcade-dust{opacity:.35}
.learning-arcade .arcade-rays{opacity:.5}
.learning-arcade .arcade-nav{width:44px;height:44px;top:max(12px,env(safe-area-inset-top));border:2px solid #fff1cc;background:linear-gradient(#fffaf0,#ffe3a8);color:var(--world-ink);box-shadow:inset 0 2px #fff,0 3px 0 #967242,0 5px 11px #163f5b3b,0 0 12px color-mix(in srgb,var(--world-glow) 55%,transparent)}
.learning-arcade .arcade-exit{color:#b33954}
.learning-arcade .arcade-goal{top:max(10px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);max-width:calc(100% - 420px);min-height:66px;padding:3px 16px 3px 7px;border:3px solid #f9d38d;border-radius:24px;background:linear-gradient(#fffaf1,#ffe6b6);box-shadow:inset 0 2px #fff,0 3px 0 #9d6a2e,0 7px 15px #17395138,0 0 15px color-mix(in srgb,var(--world-glow) 45%,transparent);color:#623b1f;pointer-events:auto;cursor:pointer}
.learning-arcade .arcade-goal>.arcade-companion{width:58px;height:58px;flex-basis:58px;filter:drop-shadow(0 2px 1px #6c48282b)}
.learning-arcade .arcade-goal-copy{gap:10px}
.learning-arcade .arcade-goal-label{color:#795236;font-size:12px;max-width:120px}
.learning-arcade .arcade-goal strong{font-weight:900;text-shadow:0 1px #fff4c9;font-size:34px}
.learning-arcade .arcade-goal strong[data-long=true]{font-size:22px}
.learning-arcade .arcade-goal:focus-visible{outline:3px solid var(--world-ink);outline-offset:4px}
.learning-arcade .arcade-rewards{top:max(14px,env(safe-area-inset-top));right:max(73px,calc(env(safe-area-inset-right) + 63px));left:auto;transform:none;max-width:none;border:2px solid #f9d38d;background:linear-gradient(#163e5aea,#0b2945ed);box-shadow:inset 0 2px #ffffff35,0 3px 0 #163249,0 4px 12px #102f4c44;min-height:41px;padding:3px 10px;color:#fff9db;gap:12px;font-size:20px;border-radius:17px}
.learning-arcade .arcade-rewards .arcade-score,.learning-arcade .arcade-rewards .arcade-coin-progress{display:none}
.learning-arcade .arcade-stars>i,.learning-arcade .arcade-coins>i{width:29px;height:29px;filter:drop-shadow(0 0 4px #ffd46599)}
.learning-arcade .arcade-lives{top:max(15px,env(safe-area-inset-top));left:max(74px,calc(env(safe-area-inset-left) + 63px));right:auto;letter-spacing:2px;line-height:1.1;font-size:24px;padding:7px 9px;border:2px solid #fff0c4;border-radius:16px;background:linear-gradient(#fff8e5,#ffe0a4);color:#ef3656;text-shadow:0 2px #af1c3b,0 -1px #fff8;box-shadow:inset 0 2px #fff,0 3px 0 #946c3d,0 5px 10px #14354b33}
.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:105px 0 7%}
.learning-arcade .arcade-token .arcade-art{filter:hue-rotate(var(--sprite-hue,0deg)) drop-shadow(0 7px 4px #123b5d44);animation:arcade-sprite-breathe 3s ease-in-out infinite alternate}
.arcade-fish .arcade-token{width:clamp(125px,20vmin,230px);height:clamp(125px,20vmin,230px);aspect-ratio:1}
.arcade-balloons .arcade-token{width:clamp(115px,19vmin,210px);height:clamp(140px,23vmin,250px);aspect-ratio:auto}
.learning-arcade.arcade-fish .arcade-token .arcade-symbol,.learning-arcade.arcade-fish .arcade-token[data-direction="-1"] .arcade-symbol{left:50%;top:81%;width:40%;height:29%;background:linear-gradient(#fff9dc,#ffe9b7);border:2px solid #fff4d7;border-radius:10px;box-shadow:0 3px 0 #b7833b,0 5px 7px #12374840;color:#613c22;text-shadow:0 1px #fff}
.learning-arcade.arcade-balloons .arcade-token .arcade-symbol{left:50%;top:39%;width:39%;height:30%;background:linear-gradient(#fff9df,#ffeabf);border:2px solid #fff2cf;border-radius:11px;box-shadow:0 2px 0 #b6794733;color:#623821;text-shadow:0 1px #fff}
.learning-arcade.arcade-basket .arcade-token .arcade-orb{background:radial-gradient(ellipse at 28% 12%,#fffef8 0,#fff4d9 42%,#f6dca6 100%);border:3px solid #fff2c9;border-radius:23%;box-shadow:inset 0 -5px 3px #d9994e44,inset 0 2px #fff,0 5px 0 #a56c37,0 9px 9px #21371c48}
.learning-arcade.arcade-basket .arcade-token .arcade-symbol{color:#633e25;text-shadow:0 1px #fff}
.learning-arcade .arcade-catcher{width:clamp(145px,26vmin,260px);height:clamp(145px,26vmin,260px);bottom:2%;filter:drop-shadow(0 14px 7px #24321755)}



.arcade-tap .burrow-hole{border:7px solid #7c7840;background:radial-gradient(ellipse at 50% 90%,#75502e,#24180f 74%);box-shadow:inset 0 8px 12px #0c110ccc,0 4px 0 #b2a15a,0 9px 12px #243a1b55}
.arcade-tap .burrow-rim{height:13%;border-bottom:10px solid #7d8740;box-shadow:0 4px 0 #b0a45c,0 6px 7px #20331a44;background:linear-gradient(transparent 30%,#597b2c22)}
.arcade-tap .burrow-friend{filter:drop-shadow(0 4px 2px #4d361c22)}
.arcade-tap .burrow-window{inset:0 5% 11%}
.learning-arcade.arcade-tap .arcade-token .arcade-symbol{top:74%;width:40%;max-width:40%;height:23%;color:#58351c;text-shadow:0 1px #fff;line-height:1.3;padding:0}
.learning-arcade .arcade-hint,.learning-arcade .arcade-discovery{border:2px solid #f7d598;background:linear-gradient(#fff9ebf0,#ffe9bbee);color:#65482b;box-shadow:0 3px 0 #956a3344,0 5px 14px #1e432b22}
.learning-arcade .arcade-pause-card{border-color:#ffebbb;background:linear-gradient(#fffaf0,#ffedca);color:#66462b;box-shadow:0 12px 0 #936a3444,0 25px 60px #223e4444}
.learning-arcade[data-hurt=true] .arcade-companion{filter:sepia(.65) saturate(3) hue-rotate(310deg) drop-shadow(0 0 6px #ff425ba6)}
.learning-arcade[data-hurt=true] .arcade-lives{color:#ff2247;background:linear-gradient(#fff3ed,#ffc8bb)}
@keyframes arcade-bubbles{from{translate:0 70px;opacity:0}15%{opacity:.65}85%{opacity:.65}to{translate:14px -90px;opacity:0}}
@keyframes arcade-sprite-breathe{to{translate:0 -3px;scale:1.015}}
@media(max-width:650px),(orientation:portrait){
 .learning-arcade .arcade-goal{top:72px;max-width:calc(100% - 30px);min-height:66px;padding:3px 13px 3px 5px}
 .learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:158px 0 7%}
 .learning-arcade .arcade-nav{width:42px;height:42px}
 .learning-arcade .arcade-lives{left:max(65px,calc(env(safe-area-inset-left) + 57px));padding:6px 6px;font-size:21px;letter-spacing:1px}
 .learning-arcade .arcade-rewards{right:max(65px,calc(env(safe-area-inset-right) + 57px));font-size:18px;gap:8px;min-height:39px;padding:2px 7px}
 .learning-arcade .arcade-stars>i,.learning-arcade .arcade-coins>i{width:24px;height:26px}
 .learning-arcade.arcade-fish .arcade-token{width:clamp(110px,29vw,160px);height:clamp(110px,29vw,160px)}
 .learning-arcade.arcade-balloons .arcade-token{width:clamp(105px,28vw,150px);height:clamp(130px,35vw,185px)}
 .learning-arcade .arcade-goal strong[data-long=true]{font-size:19px}
}
@media(max-width:350px){
 .learning-arcade .arcade-lives{font-size:18px;padding:7px 5px;letter-spacing:0}
 .learning-arcade .arcade-rewards{gap:7px;font-size:16px;padding-inline:6px}
 .learning-arcade .arcade-stars>i,.learning-arcade .arcade-coins>i{width:21px;height:23px}
 .learning-arcade .arcade-goal-label{font-size:10px;max-width:100px}
}
@media(orientation:landscape) and (max-height:580px){
 .learning-arcade .arcade-goal{top:8px;left:50%;transform:translateX(-50%);max-width:calc(100% - 355px);min-height:50px;padding:2px 9px 2px 4px;gap:5px}
 .learning-arcade .arcade-goal>.arcade-companion{width:43px;height:43px;flex-basis:43px}
 .learning-arcade .arcade-goal-copy{gap:5px}.learning-arcade .arcade-goal-label{font-size:10px;max-width:95px}
 .learning-arcade .arcade-goal strong{font-size:26px}.learning-arcade .arcade-goal strong[data-long=true]{font-size:16px}
 .learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:80px 0 8%}
 .learning-arcade .arcade-lives{font-size:21px;padding:6px}
 .learning-arcade .arcade-rewards{min-height:36px;font-size:17px;gap:8px;padding:3px 7px}
 .learning-arcade .arcade-stars>i,.learning-arcade .arcade-coins>i{width:23px;height:25px}
 .learning-arcade.arcade-fish .arcade-token{width:120px;height:120px}
 .learning-arcade.arcade-balloons .arcade-token{width:110px;height:132px}
 .learning-arcade .arcade-catcher{width:130px;height:130px}
 .learning-arcade.arcade-tap .arcade-playfield{inset:80px 8% 10%}
}
@media(prefers-reduced-motion:reduce){.learning-arcade .arcade-token .arcade-art,.learning-arcade .arcade-dust i{animation:none}}

/* A textured near rim hides the feet as friends rise out of the ground. */
.learning-arcade.arcade-tap .burrow-hole,.learning-arcade.arcade-tap .burrow-rim{left:0;right:0;bottom:0;height:34%;border:0;border-radius:0;background:none;box-shadow:none;pointer-events:none}
.learning-arcade.arcade-tap .burrow-hole img,.learning-arcade.arcade-tap .burrow-rim img{display:block;width:100%;height:100%;object-fit:fill}
.learning-arcade.arcade-tap .burrow-rim{clip-path:inset(62% 0 0);z-index:2}
.learning-arcade.arcade-tap .burrow-window{inset:0 8% 11%}
.learning-arcade.arcade-tap .arcade-token .arcade-symbol{top:68%}
@media(orientation:portrait){.learning-arcade.arcade-tap .arcade-token,.learning-arcade.arcade-tap .arcade-token[data-long=true]{width:clamp(124px,40vw,195px);height:clamp(145px,46vw,230px)}}
.learning-arcade.arcade-fish .arcade-token[data-long=true]{width:clamp(150px,26vmin,245px);height:clamp(150px,26vmin,245px)}
.learning-arcade.arcade-fish .arcade-token[data-long=true] .arcade-symbol{width:60%}
.learning-arcade.arcade-balloons .arcade-token[data-long=true] .arcade-symbol{width:59%}

/* Content owns an inset, fixed box; neither glyphs nor picture wrappers escape it. */
.learning-arcade .arcade-symbol{isolation:isolate;overflow:hidden;clip-path:inset(0 round 7px);padding:3px!important;min-width:0;min-height:0}
.learning-arcade .arcade-label-text{max-width:100%;max-height:100%;width:max-content;overflow-wrap:anywhere;word-break:normal;line-height:1.4;hyphens:none}
.learning-arcade .arcade-picture-content{display:grid!important;place-items:center;width:100%!important;height:100%!important;min-width:0;min-height:0;overflow:hidden}
.learning-arcade .arcade-picture-content>*{display:block;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;min-width:0;min-height:0;object-fit:contain!important}
.learning-arcade .arcade-picture-content :is(img,svg){display:block;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;overflow:hidden}
.learning-arcade .arcade-goal-copy{min-width:0;max-width:100%}
.learning-arcade[data-kind=word] .arcade-goal-copy,.learning-arcade[data-kind=picture] .arcade-goal-copy{flex-direction:column;align-items:flex-start;gap:1px}
.learning-arcade .arcade-goal strong{max-width:100%;overflow-wrap:anywhere;word-break:normal;hyphens:none}
.learning-arcade .arcade-goal-art{overflow:hidden;flex:none;isolation:isolate}
.learning-arcade .arcade-goal-art :is(img,svg){max-width:100%!important;max-height:100%!important;object-fit:contain!important;overflow:hidden}
.learning-arcade .arcade-pickup{width:40px;height:40px;display:block;animation:none;transform:none;transform-origin:center;will-change:transform,opacity;pointer-events:none}
.learning-arcade .arcade-pickup svg{display:block;width:40px;height:40px;filter:drop-shadow(0 2px 2px #a26e24a6) drop-shadow(0 0 6px #ffed9caa)}
.learning-arcade .arcade-goal strong{max-height:48px;line-height:1.4}
.learning-arcade .arcade-goal-art>*{display:block;max-width:100%;max-height:100%;overflow:hidden}
.learning-arcade .arcade-hooked-fish .arcade-caught-piece{position:absolute;inset:0;width:100%!important;height:100%!important;transform:none!important;translate:none!important;filter:none;pointer-events:none}
.learning-arcade .arcade-hooked-fish .arcade-caught-piece .arcade-art{animation:none}

/* Each action carries its own colour through resting, pressed and keyboard states. */
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill){--button-glow:#e7ae40;--button-shadow:#95672d;outline:none;transition:box-shadow .2s ease,filter .2s ease,background .2s ease}
.learning-arcade .arcade-back{--button-glow:var(--world-glow);--button-shadow:var(--world-ink);background:linear-gradient(color-mix(in srgb,var(--world-glow) 62%,white),var(--world-glow));border:2px solid color-mix(in srgb,var(--world-glow) 45%,white);color:var(--world-ink)}
.learning-arcade .arcade-exit{--button-glow:#ed6c83;--button-shadow:#a63752;background:linear-gradient(#ffbdc7,#f0718b);border:2px solid #ffcfda;color:#76243e}
.learning-arcade .arcade-goal{--button-glow:#e9b74a;--button-shadow:#9d6a2e}
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill){box-shadow:inset 0 2px #ffffff8c,0 3px 0 var(--button-shadow),0 0 15px color-mix(in srgb,var(--button-glow) 60%,transparent)}
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill):is(:hover,:focus-visible){outline:none;box-shadow:inset 0 2px #ffffffe0,0 3px 0 var(--button-shadow),0 0 7px var(--button-glow),0 0 24px color-mix(in srgb,var(--button-glow) 85%,transparent);filter:brightness(1.05)}
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill):active{filter:brightness(.96);box-shadow:inset 0 2px 5px #0000001c,0 1px 0 var(--button-shadow),0 0 20px color-mix(in srgb,var(--button-glow) 72%,transparent)}
.learning-arcade .arcade-pause-card .pill{--button-glow:#ef6b6b;--button-shadow:#b74949;min-height:48px;border:2px solid #ffd1c9;background:linear-gradient(#ffbeb1,#ed7c76)!important;color:#732c2d}
.learning-arcade .arcade-pause-card .pill[data-arcade-action=resume]{--button-glow:#56c98f;--button-shadow:#2c8b5b;border-color:#c1f7d5;background:linear-gradient(#b8f0cd,#6fd39b)!important;color:#174e33}
.learning-arcade .arcade-playfield:focus{outline:none}
.learning-arcade .arcade-token:focus-visible{outline:none;filter:drop-shadow(0 0 5px #ffeeb4) drop-shadow(0 0 13px #e6b957)}
.learning-arcade .arcade-pause-sheet{will-change:opacity}
@media(prefers-reduced-motion:reduce){.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill){transition:none}}
/* Shared app button polish consumes these tokens, including its important shadow. */
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill){--action-light:var(--button-glow);--sano-surface-glow:var(--button-glow);--sano-surface-shadow:inset 0 2px #ffffff8c,0 3px 0 var(--button-shadow),0 0 15px color-mix(in srgb,var(--button-glow) 60%,transparent)}
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill):is(:hover,:focus-visible){--sano-surface-shadow:inset 0 2px #ffffffe0,0 3px 0 var(--button-shadow),0 0 7px var(--button-glow),0 0 24px color-mix(in srgb,var(--button-glow) 85%,transparent)}
.learning-arcade :is(.arcade-nav,.arcade-goal,.arcade-pause-card .pill):active{--sano-surface-shadow:inset 0 2px 5px #0000001c,0 1px 0 var(--button-shadow),0 0 20px color-mix(in srgb,var(--button-glow) 72%,transparent)}

/* Anchored vegetation, gentle cloud drift and flexible sprite details. */
.arcade-wind-details{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.arcade-wind-plant{position:absolute;width:clamp(38px,7vw,84px);height:clamp(85px,15vh,155px);left:var(--plant-x);bottom:-5px;transform:translateX(-50%) scale(var(--plant-scale));transform-origin:50% 100%;filter:drop-shadow(1px 2px 2px #173e3430)}
.arcade-wind-stem{transform-origin:40px 150px;animation:arcade-wind-stem 3.9s ease-in-out var(--plant-delay) infinite alternate}
.is-aquatic .arcade-wind-stem{animation-duration:4.8s}
.arcade-wind-cloud{position:absolute;left:var(--cloud-x);top:var(--cloud-y);width:clamp(90px,15vw,190px);height:auto;opacity:.56;animation:arcade-wind-cloud 28s ease-in-out var(--cloud-delay) infinite alternate}
@keyframes arcade-wind-stem{from{transform:rotate(-3deg) skewX(-1deg)}to{transform:rotate(4deg) skewX(1.2deg)}}
@keyframes arcade-wind-cloud{from{translate:-16px 0}to{translate:32px 3px}}
.learning-arcade[data-phase=paused] *,.learning-arcade[data-phase=finished] *{animation-play-state:paused!important}
.learning-arcade[data-motion=reduce] *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.arcade-wind-stem,.arcade-wind-cloud{animation:none!important}}

/* One caption layer replaces the introduction and each collection response. */
.learning-arcade .arcade-discovery{opacity:0;translate:0 5px;transition:opacity .18s ease,translate .18s ease;will-change:opacity;max-width:min(76%,440px);box-sizing:border-box;overflow-wrap:anywhere;text-wrap:balance}
.learning-arcade .arcade-discovery[data-visible=true]{opacity:1;translate:0 0}
.learning-arcade .arcade-discovery strong{line-height:1.45}
.learning-arcade .arcade-discovery small:empty{display:none}
.learning-arcade.arcade-basket .arcade-catcher{bottom:max(84px,calc(env(safe-area-inset-bottom) + 72px))}
@media(orientation:landscape) and (max-height:580px){.learning-arcade.arcade-basket .arcade-catcher{bottom:max(62px,calc(env(safe-area-inset-bottom) + 56px))}}


@media(prefers-reduced-motion:reduce){.learning-arcade .arcade-discovery{transition:none}}

/* Large retained pieces settle into a pile; the rim hides only their bases. */
.learning-arcade.arcade-basket .arcade-catcher{width:clamp(168px,28vmin,260px);height:clamp(168px,28vmin,260px);max-width:54vw;max-height:54vw}



@media(orientation:landscape) and (max-height:580px){.learning-arcade.arcade-basket .arcade-catcher{width:140px;height:140px}}

/* Tint the basket's actual silhouette. Avoid a hue filter on its nested SVGs:
   WebKit can retain that filtered layer after the brief hurt state is cleared. */
.learning-arcade.arcade-basket[data-hurt=true] .arcade-catcher{filter:drop-shadow(0 14px 7px #24321755)}
.learning-arcade.arcade-basket .arcade-catcher::after{content:"";position:absolute;inset:0;z-index:4;pointer-events:none;background:#ff4663;mask-image:url('/images/play/arcade-sprites-v2-65e5622e6431.webp');mask-size:300% 200%;mask-position:100% 0;mask-repeat:no-repeat;opacity:0;transition:opacity .16s ease-out}
.learning-arcade.arcade-basket[data-hurt=true] .arcade-catcher::after{opacity:.52}

/* Smaller basket, with a contained stack behind the front wicker rim. */
.learning-arcade.arcade-basket .arcade-catcher{width:clamp(124px,20vmin,180px);height:clamp(124px,20vmin,180px);max-width:44vw;max-height:44vw}






.learning-arcade.arcade-balloons .arcade-token{width:clamp(105px,25vw,190px);height:clamp(128px,30vw,228px)}
@media(orientation:landscape) and (max-height:580px){.learning-arcade.arcade-basket .arcade-catcher{width:112px;height:112px}.learning-arcade.arcade-balloons .arcade-token{width:100px;height:120px}}

/* One clipped basket pocket, aligned to the opening in the original artwork. */
.learning-arcade.arcade-basket .basket-contents{position:absolute;left:16%;right:16%;top:5%;height:37%;z-index:2;overflow:hidden;contain:paint;isolation:isolate;clip-path:ellipse(50% 50% at 50% 50%);transform-origin:50% 80%}
.learning-arcade.arcade-basket .basket-collected{position:absolute;display:grid;place-items:center;left:var(--stack-x);bottom:var(--stack-y);width:33%;height:40%;box-sizing:border-box;transform:translateX(-50%);rotate:var(--tilt);overflow:hidden;border:1px solid #dda951;border-radius:22%;color:#593b1f;background:linear-gradient(#fffdf0,#ffda7a);box-shadow:0 1px 2px #68432730;font-weight:900;animation:none;transition:none}
.learning-arcade.arcade-basket .basket-collected>*{display:block;max-width:94%;max-height:94%;object-fit:contain;text-align:center;line-height:1.15;overflow-wrap:anywhere}
.learning-arcade.arcade-basket .basket-collected :is(img,svg){width:92%;height:92%}
.learning-arcade.arcade-basket .basket-front-rim{position:absolute;inset:0;width:100%;height:100%;z-index:3;border:0;border-radius:0;box-shadow:none;pointer-events:none;clip-path:polygon(0 25%,15% 28%,30% 35%,50% 39%,70% 35%,85% 28%,100% 25%,100% 100%,0 100%)}
.learning-arcade.arcade-basket .basket-front-rim .basket-body{filter:none}

/* The drop boundary dissolves into the world, without masking the basket. */
.learning-arcade.arcade-basket .arcade-playfield{-webkit-mask-image:linear-gradient(transparent,#000 36px,#000 calc(100% - 52px),transparent);mask-image:linear-gradient(transparent,#000 36px,#000 calc(100% - 52px),transparent)}
.learning-arcade.arcade-basket .arcade-token{rotate:var(--fall-roll,0deg);transition:none;transform-origin:center}
.learning-arcade.arcade-basket .arcade-landscape::after{content:"";position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#83944c12 65%,#5d713c24);pointer-events:none}

/* The HUD takes real layout space in every language and companion combination. */
.learning-arcade .arcade-toolbar{position:absolute;z-index:12;top:0;left:0;right:0;display:grid;grid-template-columns:auto minmax(0,1fr) 44px;grid-template-rows:auto auto;align-items:center;gap:12px 10px;padding:calc(12px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 8px max(12px,env(safe-area-inset-left,0px));box-sizing:border-box;pointer-events:none}
.learning-arcade .arcade-toolbar>:is(.arcade-goal,.arcade-lives,.arcade-rewards,.arcade-exit){position:static;inset:auto;transform:none;margin:0;box-sizing:border-box;min-width:0}
.learning-arcade .arcade-toolbar>.arcade-lives{grid-column:1;grid-row:1;white-space:nowrap;font-size:20px;padding:5px 7px}
.learning-arcade .arcade-toolbar>.arcade-rewards{grid-column:2;grid-row:1;justify-self:center;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;max-width:100%;font-size:16px;padding:4px 7px}
.learning-arcade .arcade-toolbar>.arcade-exit{grid-column:3;grid-row:1;pointer-events:auto;width:44px;height:44px}
.learning-arcade .arcade-toolbar>.arcade-goal{grid-column:1/-1;grid-row:2;justify-self:center;width:max-content;max-width:100%;min-height:58px;padding:3px 12px 3px 6px;pointer-events:auto}
.learning-arcade .arcade-toolbar .arcade-score{display:none}
.learning-arcade .arcade-toolbar .arcade-coin-progress{position:static;display:flex;width:auto}
.learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects{inset:calc(var(--arcade-toolbar-height,164px) + 8px) 0 calc(70px + env(safe-area-inset-bottom,0px))}
.learning-arcade .arcade-back{top:auto;left:50%;right:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:120px;min-height:44px;font:800 18px/1.2 var(--joy-font,system-ui);z-index:15}
.learning-arcade .arcade-catcher{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
.learning-arcade :is(.arcade-hint,.arcade-discovery){bottom:calc(70px + env(safe-area-inset-bottom,0px))}
@media(orientation:landscape) and (max-height:580px){.learning-arcade .arcade-toolbar{gap:6px 12px;padding-top:calc(6px + env(safe-area-inset-top,0px))}.learning-arcade .arcade-toolbar>.arcade-goal{min-height:42px}.learning-arcade .arcade-toolbar .arcade-companion{width:36px;height:36px;flex-basis:36px}.learning-arcade .arcade-toolbar .arcade-goal strong{font-size:25px}.learning-arcade .arcade-toolbar .arcade-goal-label{font-size:11px}}

/* Size the burrows inside the live playfield, including after a rotation. */
.learning-arcade.arcade-tap .arcade-playfield {
 inset:calc(var(--arcade-toolbar-height,150px) + 6px) max(8px,env(safe-area-inset-right)) calc(65px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
 container-type:size;
}
.learning-arcade.arcade-tap .arcade-token,
.learning-arcade.arcade-tap .arcade-token[data-long=true] {
 width:min(39cqw,36cqh,215px);height:auto;aspect-ratio:0.85;
}
.learning-arcade.arcade-tap .arcade-discovery {bottom:calc(9px + env(safe-area-inset-bottom))}
@media (orientation:landscape) {
 .learning-arcade.arcade-tap .arcade-token,
 .learning-arcade.arcade-tap .arcade-token[data-long=true]{width:min(29cqw,64cqh,230px)}
}
@media (orientation:landscape) and (max-height:580px) {
 .learning-arcade .arcade-toolbar {
  grid-template-columns:auto minmax(0,1fr) auto 44px;grid-template-rows:auto;
  gap:8px;padding-block:calc(5px + env(safe-area-inset-top)) 3px;
 }
 .learning-arcade .arcade-toolbar>.arcade-goal{grid-column:2;grid-row:1;max-width:100%;min-height:44px}
 .learning-arcade .arcade-toolbar>.arcade-rewards{grid-column:3;grid-row:1;flex-wrap:nowrap}
 .learning-arcade .arcade-toolbar>.arcade-exit{grid-column:4;grid-row:1}
 .learning-arcade :is(.arcade-hint,.arcade-discovery){bottom:calc(6px + env(safe-area-inset-bottom))}
 .learning-arcade .arcade-playfield,.learning-arcade .arcade-pickup-effects {
  inset:calc(var(--arcade-toolbar-height,60px) + 4px) max(5px,env(safe-area-inset-right)) calc(50px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));
 }
 .learning-arcade.arcade-basket .arcade-catcher{bottom:calc(13px + env(safe-area-inset-bottom))}
}
