/* A large illustrated game choice, in the floor zone below the companion. */
.dragon-panel .game-discovery{left:50%;right:auto;bottom:80px;transform:translateX(-50%);width:min(660px,94%);aspect-ratio:auto;filter:none;padding:12px;border:2px solid #fff5c4;border-radius:26px;background:linear-gradient(135deg,#f8fdfff5,#eff0fff2);box-shadow:0 10px 25px #18284333}
.game-discovery>img{display:none}.game-discovery h2{margin:0 0 8px;text-align:center;font-size:21px;color:#33466d}
.game-discovery .cabinet-slots{position:static;inset:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto;gap:9px;padding:0;transform:none;width:100%;height:auto}
.game-discovery .game-tile{width:100%;height:100px;min-height:44px;margin:0;border:2px solid white;border-bottom:5px solid #3b609848;border-radius:19px;padding:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:linear-gradient(145deg,#b9edff,#7fcbff);color:#173a65;box-shadow:0 3px 0 #36527824;transition:transform .18s,box-shadow .18s}
.game-discovery .game-tile:nth-child(4n+2){background:linear-gradient(145deg,#ffd6e7,#ffa9cf);color:#6c2857}.game-discovery .game-tile:nth-child(4n+3){background:linear-gradient(145deg,#fff1a5,#ffd36d);color:#684812}.game-discovery .game-tile:nth-child(4n){background:linear-gradient(145deg,#cdebb1,#91dbb5);color:#1c5448}
.game-discovery .game-tile-icon{height:61px;width:69px;display:block;font-size:0}.game-discovery .toy-art{width:100%;height:100%}.game-discovery .game-tile strong{font-size:13px;line-height:1.2;text-shadow:none}.game-discovery .game-tile:hover,.game-discovery .game-tile:focus-visible{transform:translateY(-4px);box-shadow:0 7px 0 #36527824;outline:3px solid #7245c1;outline-offset:2px}.game-discovery .game-tile:active{transform:translateY(2px)}
.play-layout.game-open .game-discovery{display:none!important}
.dragon-panel:has(>.game-invitation:not([hidden])) .game-discovery{visibility:hidden;pointer-events:none}
.play-discovery-entry{display:none;position:absolute;z-index:8;left:50%;bottom:148px;transform:translateX(-50%);align-items:center;gap:10px;min-height:70px;width:min(290px,86%);padding:7px 18px;border:2px solid #fff4c4;border-bottom:5px solid #9b690b;border-radius:24px;background:linear-gradient(135deg,#fff0a3,#ffc957);color:#493910;box-shadow:0 8px 24px #17282740;cursor:pointer}
.play-discovery-entry>span:first-child{width:64px;height:58px}.play-discovery-entry .toy-art{height:100%;width:100%}.play-discovery-entry strong{display:block;font-size:20px}.play-discovery-entry small{display:block;margin-top:3px;font-size:13px}.dragon-panel[data-room="home"] .play-discovery-entry{display:flex}.dragon-panel:has(>.game-invitation:not([hidden])) .play-discovery-entry{display:none}
/* Clear stage boundaries and warm, saturated toy colors. Keep the character anchor unchanged. */
.adventure{--play-color:#589cdd;--play-wash:#dff2ff}
.adventure-sounds{--play-color:#70ad58;--play-wash:#e5f7ce}.adventure-rhymes{--play-color:#b67bdc;--play-wash:#f1e1ff}.adventure-english{--play-color:#e89165;--play-wash:#ffebd9}.adventure-patterns{--play-color:#7393dd;--play-wash:#e4eaff}.adventure-feelings{--play-color:#dc86a4;--play-wash:#ffe4ec}
.adventure .adventure-stage{border:2px solid #fff;border-radius:25px;background:radial-gradient(ellipse at top,#fffffff5,var(--play-wash));box-shadow:0 6px 0 color-mix(in srgb,var(--play-color) 40%,transparent),0 8px 18px #25385618;padding:8px;animation:play-stage-arrive .4s ease-out}
.adventure .adventure-heading>strong{background:var(--play-color);color:#132b45;border:2px solid white;font-size:16px}.adventure .adventure-prompt{font-size:15px;background:#fffdf6;color:#233d60}.adventure .adventure-status{font-size:12px;font-weight:700;color:#233d60}.adventure .toy-button{background:linear-gradient(145deg,#fff,#dfeeff);border-color:white;border-bottom-color:var(--play-color)}.adventure .toy-button:nth-child(2n){background:linear-gradient(145deg,#fff4d8,#ffdda3)}.adventure .letter-toy{background:linear-gradient(#fff6a3,#ffce55);color:#4e3b24;box-shadow:0 4px 0 #ba8d3b}.adventure .adventure-ready{min-height:44px;background:#6754b0;color:white;border:2px solid white;border-radius:16px;padding:7px 16px;font-weight:800}
.adventure.awaiting-first-action .adventure-bank,.adventure.awaiting-first-action .rescue-meadow,.adventure.awaiting-first-action .cafe-conveyor{outline:2px dashed var(--play-color);outline-offset:4px;border-radius:17px;animation:action-glow 1.6s ease-in-out 3}
.adventure .toy-art svg{width:100%;height:100%}
.adventure-won .adventure-stage{box-shadow:0 0 0 5px #ffd561,0 0 30px #ffe49a;transition:box-shadow .25s}
.adventure-won .adventure-status{background:#ffde75;color:#4c3713;font-size:15px}
.question-panel.arithmetic-open .arithmetic-controls{background:linear-gradient(145deg,#fff9d9,#e9f4ff);border:2px solid white;box-shadow:0 5px 0 #88afd0}
.question-panel.arithmetic-open .counting-road{background:#b9e4f1bb;border:2px dashed #fff;border-radius:24px}
.answer-keypad button{background:linear-gradient(145deg,#fff,#dcefff);border-color:#a4c6e5;border-bottom-color:#719bc4;color:#284f7b}
@keyframes action-glow{50%{outline-color:transparent}}
@keyframes play-stage-arrive{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(max-width:700px){.dragon-panel .game-discovery{bottom:72px;padding:9px;width:94%;border-radius:22px}.game-discovery .game-tile{height:89px;border-radius:15px}.game-discovery .game-tile-icon{height:51px;width:54px}.game-discovery .game-tile strong{font-size:11px}.game-discovery .cabinet-slots{gap:6px}.game-discovery h2{font-size:18px;margin-bottom:7px}.adventure .adventure-prompt{font-size:13px}.adventure .adventure-stage{padding:5px}.adventure .adventure-status{font-size:11px}}
@media(max-height:700px){.dragon-panel .game-discovery{padding:7px}.game-discovery .game-tile{height:70px}.game-discovery .game-tile-icon{height:38px;width:44px}.game-discovery h2{font-size:16px;margin-bottom:4px}.game-discovery .game-tile strong{font-size:10px}.play-discovery-entry{bottom:139px;min-height:60px}.adventure .adventure-heading>strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){.adventure .adventure-stage,.adventure.awaiting-first-action .adventure-bank,.adventure.awaiting-first-action .rescue-meadow,.adventure.awaiting-first-action .cafe-conveyor{animation:none}.game-discovery .game-tile{transition:none}}

/* Give the playable scene more of the floor on tall tablets. */
@media(min-width:701px) and (min-height:851px){.play-layout .question-panel.mini-open{height:350px;min-height:350px;max-height:350px}.adventure .toy-art{width:76px;height:76px}.adventure .toy-button{min-width:90px;min-height:98px}.adventure .toy-label{font-size:13px}.adventure .adventure-prompt{font-size:17px}.adventure .adventure-stage{gap:10px}.adventure .rescue-basket{height:78px}.adventure .word-river{height:115px}.adventure .letter-toy{width:55px;height:55px;font-size:32px}.adventure .adventure-status{font-size:13px}}
.adventure .toy-button:not(.toy-collected),.adventure .letter-toy,.adventure .shape-choice{animation:toy-welcome .65s ease-out both}
@keyframes toy-welcome{0%{opacity:0;transform:translateY(18px) scale(.85)}70%{opacity:1;transform:translateY(-4px) scale(1.03)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.adventure .toy-button,.adventure .letter-toy,.adventure .shape-choice{animation:none!important}}

.wardrobe-bottom{flex-wrap:wrap}.wardrobe-bottom .wardrobe-play{flex-basis:100%;min-height:44px;border:2px solid white;border-radius:13px;background:#ffd46a;color:#463717;font-size:14px;font-weight:800;padding:8px}

@media(max-width:700px){.dragon-panel[data-room="bedroom"] .wardrobe-cabinet:has([aria-expanded="true"]){filter:none;transform:none}.dragon-panel[data-room="bedroom"] .wardrobe-tray{position:fixed;right:15px;left:15px;top:100px;bottom:85px;width:auto;max-height:calc(100dvh - 185px);overflow-y:auto;overscroll-behavior:contain}}
