/* Shared illustrated, fullscreen stage for the eight original games. */
body:has(#arithmetic-panel:not([hidden])){overflow:hidden}
body .play-layout #arithmetic-panel.classic-open{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-height:0!important;transform:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;z-index:90!important;overflow:hidden!important;background:var(--classic-scene) center/cover,var(--category-wash,#e2e8ff)!important}
body .play-layout #arithmetic-panel.classic-open[hidden]{display:none!important}
.classic-open #close-game{position:fixed!important;left:max(14px,env(safe-area-inset-left))!important;top:max(14px,env(safe-area-inset-top))!important;width:48px!important;height:48px!important;background:white!important;border:3px solid var(--category-wash)!important;border-radius:50%;color:var(--category-dark);font-size:28px;z-index:110!important}
.classic-open .question-top{display:none!important}.classic-open.arithmetic-open .question-top{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;width:100%;height:84px!important;min-height:84px;box-sizing:border-box;justify-content:center;flex-wrap:nowrap;gap:12px;margin:0!important;padding:12px 28px 12px 78px!important;background:linear-gradient(115deg,var(--category-dark),var(--category-color));color:white}
.classic-open .adventure{height:100%;min-height:0!important;max-height:none!important;display:grid;grid-template-rows:84px auto minmax(0,1fr) auto;gap:0;padding:0!important;background:transparent}
.classic-open .adventure-heading{display:flex;position:relative;align-items:center;justify-content:center;gap:12px;padding:12px 28px 12px 78px;margin:0;background:linear-gradient(115deg,var(--category-dark),var(--category-color));color:white}
.classic-open .adventure-heading>strong{flex:1;font-size:27px;line-height:1.2;padding:0;border:0;background:none;color:white;text-align:center;box-shadow:none}
.classic-open .adventure-listen,.classic-open .classic-pause,.classic-open #instruction-audio{width:48px;height:48px;min-width:48px;min-height:48px;flex-shrink:0;background:#ffffff26;border:2px solid #ffffff9c;border-radius:16px;color:white;font-size:23px;display:grid;place-items:center;padding:0;cursor:pointer}
.classic-open .adventure-prompt{align-self:center;justify-self:center;max-width:min(780px,94%);margin:18px 12px 4px;padding:11px 22px;font-size:clamp(18px,2.6vw,26px);font-weight:800;line-height:1.35;text-align:center;background:#fffdf3f2;color:#263d62;border:2px solid white;border-radius:24px;box-shadow:0 5px 0 #43548213}
.classic-open .adventure-stage{position:relative;display:flex!important;flex-direction:column!important;align-items:center;justify-content:space-evenly;gap:20px;min-height:0;max-height:none;width:100%;padding:24px clamp(12px,4vw,55px);border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden;box-sizing:border-box}
.classic-open .adventure-status{align-self:end;justify-self:stretch;max-width:none;width:100%;min-height:48px;box-sizing:border-box;margin:0;border:0;border-radius:0;background:#f7f2ffeF;color:#344769;padding:14px 20px max(14px,env(safe-area-inset-bottom));font-size:17px;font-weight:800;line-height:1.4;text-align:center}
.classic-open .adventure-bank{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;width:min(900px,100%);margin:0;z-index:2;flex-shrink:0;padding:10px;box-sizing:border-box;border-radius:25px;background:#fff9;box-shadow:0 8px 22px #20335a12}
.classic-open .toy-button,.classic-open .shape-choice,.classic-open .emotion-choice{width:clamp(92px,13vw,148px);min-width:0;height:auto;min-height:130px;padding:10px;border:3px solid white;border-bottom:7px solid color-mix(in srgb,var(--category-color) 50%,#fff);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:linear-gradient(145deg,#fff,var(--category-wash));box-shadow:0 5px 12px #26416a20;touch-action:none;cursor:pointer}
.classic-open .toy-art{display:block;width:clamp(70px,10vw,116px);height:clamp(70px,10vw,116px);filter:drop-shadow(0 5px 2px #25386215)}
.classic-open .toy-label,.classic-open .emotion-choice strong{font-size:16px;line-height:1.15;font-weight:800;color:#2b4160}
.classic-open .toy-button:focus-visible,.classic-open button:focus-visible{outline:4px solid #ffd45b;outline-offset:3px}.classic-open .toy-button:hover{filter:brightness(1.06)}
.classic-open .word-river{width:min(900px,100%);min-height:150px;height:auto;max-height:none;flex:1;max-width:none;position:relative;padding:40px 15px;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#68d6e9,#3fb4da);border:7px solid #b7f4ef;border-radius:45px;box-shadow:0 9px 0 #2996be44;overflow:hidden}
.classic-open .letter-bridge{gap:9px}.classic-open .bridge-plank{width:clamp(48px,8vw,80px);height:clamp(65px,10vw,100px);font-size:44px;border-radius:13px}.classic-open .letter-toy{width:68px;height:75px;font-size:43px;border-radius:19px;border:3px solid white;border-bottom:6px solid #b68a37;background:linear-gradient(#fff2ac,#ffc75d)}
.classic-open .bridge-traveler{width:100px;height:100px;top:4%;right:3%}.classic-open .bridge-complete .bridge-traveler{animation:classic-bridge-cross 1.8s ease both}@keyframes classic-bridge-cross{to{right:calc(100% - 105px);transform:translateY(15px)}}
.classic-open .rescue-meadow{flex:1;gap:clamp(18px,5vw,70px);max-width:none}.classic-open .rescue-toy{min-height:160px;width:clamp(105px,17vw,180px);border-radius:40% 40% 25% 25%}.classic-open .rescue-basket{height:145px;width:210px;margin-bottom:15px}.classic-open .rescue-basket>.toy-art{width:210px;height:160px}.classic-open .rescue-basket strong{font-size:42px;padding:8px 20px}.classic-open .rescued-toy{width:95px;height:95px;left:56px;top:-32px}
.classic-open .rhyme-band{flex:1;width:min(800px,100%);max-width:none;gap:35px}.classic-open .rhyme-singer,.classic-open .rhyme-partner{width:clamp(110px,21vw,210px);min-height:170px;font-size:23px;border-radius:26px;background:linear-gradient(transparent 45%,#f7cce7 45%);border-bottom:12px solid #b87cc3}.classic-open .rhyme-partner{border:3px dashed #b889d3;border-bottom:12px solid #b87cc3}.classic-open .music-notes{font-size:40px;color:#8852bd}.classic-open .rhyme-band .toy-art{width:140px;height:140px}
.classic-open .cafe-counter{flex:1;max-width:none;width:min(900px,100%);gap:50px;border-bottom:16px solid #c98652;border-radius:24px;background:linear-gradient(transparent 72%,#f7ddb2 72%);min-height:185px}.classic-open .cafe-customer>.toy-art{width:180px;height:180px}.classic-open .order-bubble{font-size:22px;right:120px;top:-20px;padding:12px 20px;border-radius:24px;box-shadow:0 6px 0 #b478371a}.classic-open .cafe-tray{min-width:220px;height:110px;border-width:8px;box-shadow:inset 0 0 0 5px #f4c778}.classic-open .tray-label{font-size:17px;bottom:8px}.classic-open .served-item{width:85px;height:85px}.classic-open .cafe-conveyor{gap:22px;padding:14px 22px;border-radius:30px;border-bottom:9px solid #547d8a;max-width:100%;box-sizing:border-box;background:repeating-linear-gradient(90deg,#b6d9e1 0 30px,#87b8c5 31px 35px)}
.classic-open .pattern-factory{flex-direction:column!important;gap:25px;max-width:100%;flex:1}.classic-open .factory-robot{width:145px;height:145px;filter:none;opacity:1}.classic-open .pattern-belt{max-width:100%;gap:clamp(4px,1vw,16px);padding:18px 15px;background:repeating-linear-gradient(90deg,#8ccdd0 0 27px,#6aacb6 28px 33px);border-bottom:10px solid #4c8999;border-radius:25px;box-sizing:border-box}.classic-open .pattern-belt .pattern-part{width:clamp(24px,5vw,54px);height:clamp(24px,5vw,54px)}.classic-open .pattern-socket{width:clamp(30px,5.5vw,60px);height:clamp(30px,5.5vw,60px);font-size:32px;flex-shrink:0}.classic-open .shape-choice .pattern-part{width:48px;height:48px}
.classic-open .memory-room{flex:1;max-height:290px;max-width:900px;width:100%;min-height:170px;gap:20px;padding:25px 18px;border:5px solid #f5e5be;border-bottom:18px solid #bc8f67;border-radius:35px 35px 18px 18px;box-sizing:border-box;background:linear-gradient(#fff8e9,#e0eef2)}.classic-open .memory-toy{width:clamp(50px,13vw,130px);height:clamp(50px,13vw,130px);flex:0 1 130px}.classic-open .adventure-memory .toy-button{min-width:0;min-height:110px;width:clamp(66px,13vw,136px);padding:7px}.classic-open .adventure-memory .toy-art{width:clamp(46px,9vw,100px);height:clamp(46px,9vw,100px)}.classic-open .adventure-memory .toy-label{font-size:14px}.classic-open .adventure-memory .adventure-bank{gap:10px}.classic-open .memory-room.memory-covered{background:repeating-linear-gradient(90deg,#4b8096 0 35px,#669bae 36px 70px)}.classic-open .memory-curtain{inset:8% 4% 25%;border-radius:35px;background:linear-gradient(120deg,#6c62ae,#424c92);font-size:32px}.classic-open .memory-room.memory-covered::after{font-size:32px}
.classic-open .adventure-ready{font-size:21px;min-height:60px;padding:14px 28px;border:3px solid white;border-bottom:6px solid var(--category-dark);background:var(--category-color);color:white;border-radius:22px}
.classic-open .feeling-theater{flex:1;max-width:none;min-height:220px;gap:90px}.classic-open .feeling-puppet{transform:scale(1.9)!important;transform-origin:center}.classic-open .feeling-prop{width:145px;height:145px;align-self:center;margin-top:90px}.classic-open .emotion-face{width:64px;height:64px;transform:scale(1.25);margin:10px}.classic-open .emotion-face::before{top:22px;left:20px;box-shadow:20px 0 #72512b;width:6px;height:8px}.classic-open .emotion-face::after{left:23px;bottom:12px;width:18px;height:10px}.classic-open .emotion-surprised .emotion-face::after{left:26px;width:10px;height:14px}
.classic-open .adventure-won .adventure-status{background:#b9f1d8;color:#246849}.classic-open .classic-paused .adventure-stage::after,.classic-open.classic-paused #arithmetic-view::after{content:'ממשיכים כשמתאים';position:absolute;inset:0;display:grid;place-items:center;background:#23304ae8;color:white;font-size:27px;z-index:30;border-radius:0}.classic-paused *{animation-play-state:paused!important}
/* Arithmetic retains moving quantities, subtraction timing, and keyboard-free input. */
.classic-open.arithmetic-open{display:flex!important;flex-direction:column}.classic-open .exercise-label{font-size:26px;display:flex;align-items:center;gap:8px}.classic-open .exercise-label>span{background:none;color:white;font-size:28px}.classic-open .score-pill{font-size:15px;padding:8px 12px;background:#ffffff25;color:white}.classic-open #arithmetic-view:not([hidden]){position:relative;display:grid!important;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;height:auto!important;flex:1;min-height:0;gap:0!important}
.classic-open .counting-scene{min-height:0;overflow:hidden;background:none;border:0;position:relative}.classic-open .scene-sky{display:none}.classic-open .counting-instruction{position:absolute!important;top:18px!important;bottom:auto!important;left:50%!important;transform:translateX(-50%);width:max-content;max-width:90%;padding:10px 20px!important;background:#fffdf4f2;border:2px solid white;border-radius:22px;font-size:clamp(17px,2.4vw,25px)!important;line-height:1.35!important;color:#304369;box-shadow:0 5px 0 #476ba016;z-index:3}
.classic-open.arithmetic-open .counting-road{position:absolute;inset:90px 4% 20px!important;height:auto!important;padding:14px!important;display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr)!important;align-items:center;gap:10px;border:4px solid #ffffffbc;border-radius:42px;background:#dceaffb8;box-shadow:inset 0 0 0 9px #7eacc41c,0 7px 0 #46758e20}
.classic-open.arithmetic-open .car-group{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:22px 16px!important;padding:12px!important;min-width:0;max-width:100%;height:100%}.classic-open.arithmetic-open .counting-vehicle{width:clamp(39px,6.2vw,77px)!important;height:clamp(25px,4vw,46px)!important;flex-shrink:0}.classic-open.arithmetic-open .counting-vehicle.bus{width:clamp(51px,8vw,98px)!important;height:clamp(27px,4.6vw,51px)!important}.classic-open.arithmetic-open .vehicle-window{left:24%;width:35%;height:26%;top:12%}.classic-open.arithmetic-open .wheel{width:clamp(10px,1.5vw,16px);height:clamp(10px,1.5vw,16px);bottom:-6px;border-width:3px}.classic-open.arithmetic-open .road-sign{width:54px;height:54px;font-size:35px;background:#ffcf5b;border:4px solid white;color:white;box-shadow:0 4px 0 #da9c31}
.classic-open.arithmetic-open .subtraction-scene .counting-road{display:flex!important;justify-content:center}.classic-open .subtraction-scene .car-group-a{max-width:100%!important}.classic-open .subtraction-scene .road-sign{display:none!important}
.classic-open.arithmetic-open .arithmetic-controls{position:relative;inset:auto;transform:none;align-self:end;justify-self:center;width:min(740px,96%);max-width:none;box-sizing:border-box;padding:12px 24px max(12px,env(safe-area-inset-bottom));border:3px solid white;border-radius:30px 30px 0 0;background:linear-gradient(#fffdf6,#eef0ff);box-shadow:0 -8px 35px #33467220;margin:0;z-index:4}
.classic-open.arithmetic-open .equation{font-size:42px;min-height:55px;line-height:1.2;gap:15px;padding:0;margin:0 0 8px;direction:ltr;justify-content:center}.classic-open .equation .operator{font-size:33px}.classic-open.arithmetic-open .question-mark{height:46px;min-height:46px;line-height:46px;min-width:52px;border-radius:14px;background:#fff1c5;color:#ca8a26}
.classic-open.arithmetic-open .answer-row{gap:12px}.classic-open.arithmetic-open .answer-row input{width:auto;flex:1;font-size:28px;background:white;border:2px solid #c9d9ee}.classic-open.arithmetic-open .answer-row button{width:auto;min-width:170px;padding:8px 18px;font-size:18px;background:var(--category-color);border-bottom:5px solid var(--category-dark)}.classic-open.arithmetic-open .answer-row input,.classic-open.arithmetic-open .answer-row button{height:52px;min-height:52px;border-radius:16px}.classic-open .answer-keypad{gap:8px;margin-top:10px}.classic-open .answer-keypad button{height:52px;font-size:27px;background:linear-gradient(white,var(--category-wash));border:2px solid white;border-bottom:5px solid #aac6e7;border-radius:15px}.classic-open .answer-keypad button[data-key=clear],.classic-open .answer-keypad button[data-key=backspace]{font-size:19px}.classic-open.arithmetic-open .feedback{height:auto;min-height:28px;line-height:1.3;margin:8px 0 0;font-size:15px;text-align:center;color:#506383}
/* The same category palette applies to every game, including the new arcade set. */
.game-discovery .game-tile[data-category]{background:linear-gradient(145deg,#fff,var(--category-wash))!important;border:4px solid var(--category-color)!important;border-bottom:7px solid var(--category-dark)!important;color:var(--category-dark)!important;border-radius:19px;box-shadow:0 4px 0 color-mix(in srgb,var(--category-dark) 20%,transparent);height:112px;padding:0 0 5px!important;gap:4px}.game-discovery .game-tile[data-category] .game-tile-icon{width:100%;height:78px;flex:1;min-height:0}.game-discovery .game-tile[data-category] img{width:100%;height:100%;object-fit:cover;border-radius:11px 11px 0 0}.game-discovery .game-tile[data-category] strong{font-size:12px;line-height:1.15;color:var(--category-dark);padding:0 2px}
.game-category-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:5px 10px;margin:6px 0 9px}.game-category-legend span{font-size:11px;color:#314463;display:flex;align-items:center;gap:4px}.game-category-legend span::before{content:'';display:inline-block;width:9px;height:9px;background:var(--category-color);border-radius:50%}
#arithmetic-panel .arcade-top{background:linear-gradient(115deg,var(--category-dark,#473986),var(--category-color,#346798))}
@media(max-width:600px){.classic-open .adventure{grid-template-rows:76px auto minmax(0,1fr) auto}.classic-open .adventure-heading,.classic-open.arithmetic-open .question-top{padding:10px 10px 10px 72px!important;gap:7px;min-height:76px;height:76px!important}.classic-open .adventure-heading>strong{font-size:21px}.classic-open .adventure-listen,.classic-open .classic-pause,.classic-open #instruction-audio{width:44px;height:44px;min-width:44px;min-height:44px}.classic-open .adventure-prompt{font-size:18px;margin:12px 8px 0;padding:9px 14px}.classic-open .adventure-stage{gap:16px;padding:18px 12px}.classic-open .adventure-status{font-size:14px;min-height:45px;padding:12px}.classic-open .adventure-bank{padding:10px 5px;gap:10px}.classic-open .toy-button,.classic-open .shape-choice,.classic-open .emotion-choice{width:92px;min-height:112px;padding:7px}.classic-open .toy-art{width:72px;height:72px}.classic-open .toy-label{font-size:14px}.classic-open .rescue-toy{width:110px;min-height:145px}.classic-open .rescue-meadow{gap:16px}.classic-open .rescue-basket{height:110px;width:165px}.classic-open .rescue-basket>.toy-art{width:165px;height:130px}.classic-open .rhyme-band{gap:10px}.classic-open .rhyme-singer,.classic-open .rhyme-partner{min-height:135px;width:115px;font-size:18px}.classic-open .rhyme-band .toy-art{width:100px;height:100px}.classic-open .music-notes{font-size:25px}.classic-open .cafe-customer>.toy-art{width:120px;height:120px}.classic-open .order-bubble{font-size:17px;right:52px;top:-34px;padding:9px}.classic-open .cafe-counter{gap:15px;min-height:150px}.classic-open .cafe-tray{min-width:145px;height:90px}.classic-open .tray-label{font-size:13px}.classic-open .cafe-conveyor{gap:8px;padding:10px 8px}.classic-open .cafe-item{width:90px;min-height:115px}.classic-open .factory-robot{width:125px;height:125px}.classic-open .pattern-belt{padding:15px 8px;gap:5px}.classic-open .pattern-belt .pattern-part{width:27px;height:27px}.classic-open .pattern-socket{width:30px;height:30px}.classic-open .shape-choice{width:78px}.classic-open .shape-choice .pattern-part{width:43px;height:43px}.classic-open .shape-choice .toy-label{font-size:12px}.classic-open .memory-room{gap:7px;padding:20px 7px;min-height:145px;max-height:240px}.classic-open .memory-toy{width:58px;height:68px;flex:1}.classic-open .adventure-memory .toy-button{width:63px;min-height:92px;padding:4px}.classic-open .adventure-memory .toy-art{width:47px;height:53px}.classic-open .adventure-memory .toy-label{font-size:12px}.classic-open .adventure-memory .adventure-bank{gap:5px;padding:10px 3px}.classic-open .adventure-ready{font-size:18px}.classic-open .feeling-theater{gap:65px;min-height:200px}.classic-open .feeling-puppet{transform:scale(1.45)!important}.classic-open .feeling-prop{width:100px;height:100px}.classic-open .letter-toy{width:54px;height:66px;font-size:36px}.classic-open .bridge-traveler{width:80px;height:80px}.classic-open .score-pill{display:none}.classic-open .exercise-label{font-size:23px;flex:1}.classic-open.arithmetic-open .counting-road{inset:85px 3% 18px!important;gap:4px;border-radius:28px;grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr)!important;padding:8px!important}.classic-open.arithmetic-open .car-group{gap:17px 9px!important;padding:5px!important}.classic-open.arithmetic-open .road-sign{width:34px;height:34px;font-size:25px}.classic-open.arithmetic-open .arithmetic-controls{padding:10px 12px 12px}.classic-open.arithmetic-open .answer-row button{min-width:128px;font-size:15px;padding:7px}.classic-open.arithmetic-open .answer-row input,.classic-open.arithmetic-open .answer-row button{height:46px;min-height:46px}.classic-open.arithmetic-open .equation{font-size:37px;min-height:46px;margin-bottom:7px}.classic-open .answer-keypad{gap:5px;margin-top:8px}.classic-open .answer-keypad button{height:46px;font-size:23px}.classic-open .answer-keypad button[data-key=clear]{font-size:15px}.classic-open.arithmetic-open .feedback{font-size:13px;min-height:22px}.game-discovery .game-tile[data-category]{height:102px;border-width:3px!important;border-bottom-width:6px!important}.game-discovery .game-tile[data-category] strong{font-size:10px}.game-category-legend{gap:4px 8px;margin:5px 0 7px}.game-category-legend span{font-size:9px}}
@media(max-height:560px) and (min-width:601px){.classic-open .adventure{grid-template-rows:62px auto minmax(0,1fr) 37px}.classic-open .adventure-heading,.classic-open.arithmetic-open .question-top{height:62px!important;min-height:62px;padding-top:6px!important;padding-bottom:6px!important}.classic-open .adventure-prompt{font-size:17px;margin:5px;padding:6px 15px}.classic-open .adventure-stage{flex-direction:row!important;gap:18px;padding:12px 35px;overflow:auto}.classic-open .adventure-bank{width:auto;max-width:46%;gap:8px;padding:8px;flex-shrink:1}.classic-open .toy-button,.classic-open .shape-choice,.classic-open .emotion-choice{width:85px;min-height:105px}.classic-open .toy-art{width:67px;height:67px}.classic-open .toy-label{font-size:13px}.classic-open .adventure-status{font-size:13px;min-height:37px;padding:8px}.classic-open .word-river{min-height:125px;max-height:240px;flex:1}.classic-open .bridge-traveler{width:65px;height:65px}.classic-open .bridge-plank{width:45px;height:62px;font-size:34px}.classic-open .letter-toy{width:52px;height:59px;font-size:34px}.classic-open .rhyme-band{gap:14px}.classic-open .rhyme-singer,.classic-open .rhyme-partner{width:105px;min-height:135px}.classic-open .rhyme-band .toy-art{width:100px;height:100px}.classic-open .rescue-meadow{gap:20px}.classic-open .rescue-toy{width:125px}.classic-open .cafe-counter{min-height:150px;gap:20px}.classic-open .cafe-customer>.toy-art{width:120px;height:120px}.classic-open .cafe-tray{min-width:160px;height:90px}.classic-open .order-bubble{font-size:17px;right:65px}.classic-open .cafe-conveyor{gap:8px;padding:9px}.classic-open .pattern-factory{gap:10px}.classic-open .factory-robot{width:85px;height:85px}.classic-open .pattern-belt .pattern-part{width:28px;height:28px}.classic-open .pattern-belt{gap:6px;padding:10px}.classic-open .memory-room{min-height:160px;max-height:220px;gap:8px;flex:1}.classic-open .memory-toy{width:65px;height:65px}.classic-open .adventure-memory .adventure-bank{max-width:43%;gap:6px}.classic-open .adventure-memory .toy-button{width:66px;min-height:89px}.classic-open .adventure-memory .toy-art{width:48px;height:48px}.classic-open .feeling-theater{min-height:170px;gap:55px}.classic-open .feeling-puppet{transform:scale(1.4)!important}.classic-open .feeling-prop{width:90px;height:90px}.classic-open #arithmetic-view:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(320px,40%);grid-template-rows:1fr;direction:ltr;padding:12px;gap:12px!important;box-sizing:border-box}.classic-open .arithmetic-controls{direction:rtl;align-self:center!important;border-radius:25px!important;width:100%!important;padding:10px!important}.classic-open .counting-instruction{font-size:16px!important;top:5px!important}.classic-open.arithmetic-open .counting-road{inset:62px 0 8px!important;padding:8px!important;grid-template-columns:minmax(0,1fr) 35px minmax(0,1fr)!important}.classic-open.arithmetic-open .car-group{gap:14px 8px!important;padding:4px!important}.classic-open.arithmetic-open .counting-vehicle{width:39px!important;height:25px!important}.classic-open.arithmetic-open .counting-vehicle.bus{width:51px!important;height:28px!important}.classic-open.arithmetic-open .road-sign{width:32px;height:32px;font-size:23px}.classic-open.arithmetic-open .equation{font-size:30px;min-height:35px}.classic-open.arithmetic-open .question-mark{min-height:34px;height:34px;line-height:34px}.classic-open.arithmetic-open .answer-row input,.classic-open.arithmetic-open .answer-row button{min-height:44px;height:44px}.classic-open.arithmetic-open .answer-row button{min-width:125px;font-size:15px}.classic-open .answer-keypad button{height:44px;font-size:23px}.classic-open .answer-keypad{gap:5px}.classic-open .feedback{font-size:12px!important}.game-discovery .game-tile[data-category]{height:70px}.game-category-legend{margin:3px}.game-category-legend span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.classic-open *{animation:none!important;transition:none!important}}

.classic-open #mini-game-view[hidden],.classic-open #arithmetic-view[hidden]{display:none!important}

.classic-open .adventure-stage svg.toy-art{width:100%!important;height:100%!important}
.classic-open.arithmetic-open .question-top{display:grid!important;grid-template-columns:minmax(0,1fr) 48px 48px!important;padding-left:78px!important}
.classic-open .question-top .score-pill{display:none!important}.classic-open .exercise-label{justify-content:center;min-width:0;overflow:hidden}
.classic-open.arithmetic-open .answer-row{width:100%;max-width:none;margin:0}
@media(max-width:600px){.classic-open.arithmetic-open .question-top{grid-template-columns:minmax(0,1fr) 44px 44px!important}}
@media(max-width:600px) and (max-height:740px){
 .classic-open.arithmetic-open .question-top{height:68px!important;min-height:68px}
 .classic-open.arithmetic-open .arithmetic-controls{padding:7px 10px 8px}
 .classic-open.arithmetic-open .equation{font-size:30px;min-height:35px;margin-bottom:4px}.classic-open.arithmetic-open .question-mark{height:33px;min-height:33px;line-height:33px;min-width:40px}
 .classic-open.arithmetic-open .answer-row input,.classic-open.arithmetic-open .answer-row button{height:44px;min-height:44px}.classic-open .answer-keypad{margin-top:5px;gap:4px}.classic-open .answer-keypad button{height:44px;font-size:23px}
 .classic-open.arithmetic-open .feedback{margin-top:5px;font-size:12px;min-height:19px}.classic-open .counting-instruction{top:8px!important;font-size:15px!important;padding:6px 10px!important}
 .classic-open.arithmetic-open .counting-road{inset:62px 2% 12px!important;padding:5px!important;border-width:2px;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)!important;gap:3px}
 .classic-open.arithmetic-open .car-group{gap:8px 5px!important;padding:3px!important;align-content:center}.classic-open.arithmetic-open .counting-vehicle{width:31px!important;height:19px!important}.classic-open.arithmetic-open .counting-vehicle.bus{width:39px!important;height:20px!important}.classic-open.arithmetic-open .wheel{height:8px;width:8px;bottom:-4px;border-width:2px}.classic-open.arithmetic-open .road-sign{width:27px;height:27px;font-size:21px;border-width:2px}
 .classic-open .adventure-stage{padding:10px;gap:10px}.classic-open .adventure-prompt{font-size:16px;margin-top:8px;padding:6px 12px}.classic-open .adventure-bank{padding:7px 4px}.classic-open .toy-button{min-height:96px}.classic-open .rescue-toy{min-height:122px}.classic-open .adventure-status{font-size:13px;padding:9px;min-height:37px}
}

/* Picture-first launcher: category frame belongs to the artwork, caption below. */
.game-discovery .game-tile[data-category]{height:auto;min-height:44px;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;padding:0 0 3px!important;gap:8px;overflow:visible;justify-content:flex-start}
.game-discovery .game-tile[data-category] .game-tile-icon{display:block;box-sizing:border-box;flex:none;width:100%;height:auto;aspect-ratio:4/3;border:4px solid var(--category-color);border-bottom:6px solid var(--category-dark);border-radius:22px;overflow:hidden;background:var(--category-wash);box-shadow:0 4px 0 #263b6518,0 5px 9px #263b6514;transition:transform .18s}
.game-discovery .game-tile[data-category] img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.game-discovery .game-tile[data-category] strong{display:block;padding:0 1px;font-size:14px;line-height:1.35;color:#263b58;text-align:center;white-space:nowrap;font-weight:800}
.game-discovery .game-tile[data-category]:focus-visible{outline:3px solid var(--category-dark);outline-offset:4px;border-radius:20px}
.game-discovery .cabinet-slots{gap:13px 12px}
@media(max-width:600px){.game-discovery .cabinet-slots{gap:11px 8px}.game-discovery .game-tile[data-category]{gap:7px}.game-discovery .game-tile[data-category] .game-tile-icon{border-width:3px;border-bottom-width:5px;border-radius:16px}.game-discovery .game-tile[data-category] strong{font-size:clamp(9px,2.6vw,13px)}}
@media(max-height:560px) and (min-width:601px){.dragon-panel .game-discovery{width:min(570px,85%)}.game-discovery .game-tile[data-category] .game-tile-icon{aspect-ratio:1.9}.game-discovery .game-tile[data-category] strong{font-size:12px}.game-discovery .game-tile[data-category]{gap:4px}.game-discovery .cabinet-slots{gap:6px 12px}}
@media(max-height:560px) and (min-width:601px){.dragon-panel .game-discovery{width:min(940px,94%);padding:9px}.game-discovery .cabinet-slots{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.game-discovery .game-tile[data-category] .game-tile-icon{aspect-ratio:4/3;border-radius:14px;border-width:3px;border-bottom-width:5px}.game-discovery .game-tile[data-category] strong{font-size:clamp(8px,1.1vw,12px)}}

/* Keep the library below the needs meters on short landscape screens. */
@media(max-height:560px) and (min-width:601px){.dragon-panel .game-discovery{top:132px;bottom:72px;max-height:none;overflow-y:auto;overscroll-behavior:contain;scroll-padding:8px}}
