.reward-meter{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;background:#fff6d6;color:#3d2a05;border:2px solid #e9c65d;border-radius:18px;padding:16px 20px;margin:0 0 22px}.reward-meter strong{font-size:1.25rem}.reward-meter label{display:grid;gap:5px;font-size:.9rem;flex:1;min-width:160px}.reward-meter progress{width:100%;accent-color:#7751bf}.reward-win{display:flex;gap:16px;align-items:center;padding:24px;background:#e8f7df;border-radius:18px;margin:16px 0;color:#174b20}.reward-win>span{font-size:3rem;animation:star-pop .6s ease-out}.spell-play{padding:24px;border-radius:18px;background:#eee6ff;margin:18px 0}.spell-play .primary{font-size:1.3rem;min-height:56px}button,input,select{min-height:44px}button:focus-visible,input:focus-visible{outline:3px solid #6238a1;outline-offset:4px}#spelling-answer{font-size:1.5rem}.spelling-audio{display:flex;gap:12px;flex-wrap:wrap}.audio-unavailable{color:#744600}@keyframes star-pop{0%{transform:scale(.4) rotate(-15deg)}65%{transform:scale(1.25) rotate(10deg)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.reward-win>span{animation:none}}
#exit-activity{display:none}.focus-play .sidebar{display:none!important}.focus-play .app{display:block}.focus-play .workspace{margin-left:0!important;width:100%}.focus-play #main{max-width:1100px;margin:auto}.focus-play #exit-activity{display:inline-flex}.focus-play .breadcrumb{display:none}.focus-play .hero-layout{grid-template-columns:1fr}.focus-play .hero-layout>.side-stack{display:none}.focus-play .topbar{position:sticky;top:0;z-index:20;background:#fff}.avatar-picker{border:0;padding:12px 0}#avatar-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.avatar-choice{display:flex;flex-direction:column;align-items:center;position:relative;border:2px solid #ddd;border-radius:14px;padding:8px;cursor:pointer}.avatar-choice:has(input:checked){border-color:#7042ad;background:#eee6ff}.avatar-choice input{min-height:18px}.avatar-choice>span:first-of-type{font-size:2rem}.avatar-choice>span:last-child{font-size:.8rem}#player-score{white-space:nowrap;font-weight:bold;color:#654600}.topbar{gap:12px;flex-wrap:wrap}.focus-play footer{display:none}@media(max-width:600px){.focus-play .topbar{padding:10px}.profile-controls{flex-wrap:wrap}.focus-play .topbar .profile-controls{margin-left:auto}.focus-play #main{padding:18px 12px}#avatar-options{gap:6px}}
.primary,.secondary,.topic,.question-tools button,.carousel-nav button{min-height:56px;padding:14px 22px;font-size:1.1rem}.reward-win>span{font-size:5rem;color:#16803b;line-height:1}.reward-win strong{font-size:1.35rem}.more-methods,.extra-help{margin:14px 0}.more-methods summary,.extra-help summary{padding:14px;font-size:1.05rem;cursor:pointer}.focus-play .intro h1{font-size:clamp(1.8rem,4vw,2.7rem)}.focus-play .intro{margin-bottom:16px}.focus-play .intro p{display:none}.focus-play .question h2{font-size:clamp(2rem,6vw,3rem)}.focus-play .subject-card{max-width:850px;margin:auto}.focus-play .answer-form{flex-wrap:nowrap}.focus-play .answer-form input{min-width:0;width:100%}.focus-play .answer-form label{min-width:0}.keyboard-open .topbar,.keyboard-open .intro,.keyboard-open .reward-meter,.keyboard-open footer,.keyboard-open .exercise-top,.keyboard-open .card-header,.keyboard-open .studio-body>p,.keyboard-open #spelling-guidance,.keyboard-open .question>p,.keyboard-open .question-tools{display:none!important}.keyboard-open #main{padding:8px!important}.keyboard-open .studio-body,.keyboard-open .subject-card{padding:12px!important}.keyboard-open .question{padding:0}.keyboard-open .subject-card h2{font-size:1.3rem;margin:0 0 8px}.keyboard-open .setting{margin:8px 0}.keyboard-open .spelling-audio button{min-height:44px;padding:8px 14px}.keyboard-open #audio-status{margin:6px 0;font-size:.9rem}.keyboard-open .subject-card>.button-row{display:none}.keyboard-open #spell-answer{display:flex;align-items:end;gap:10px}.keyboard-open #spell-answer label{flex:1;min-width:0}.keyboard-open #spell-answer input{width:100%;min-width:0}.keyboard-open .reward-win{padding:8px;margin:4px}.keyboard-open .reward-win>span{font-size:3rem}.keyboard-open .question h2{margin:5px 0}.focus-play .lesson-quiz-dock{left:0!important}.keyboard-open .lesson-quiz-dock{display:none}
.avatar-collection{padding:24px;margin-bottom:24px}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:12px}.avatar-grid>div{display:flex;flex-direction:column;gap:8px;align-items:center;padding:14px;background:#f4edff;border-radius:14px;text-align:center}.avatar-grid>div>span{font-size:2.5rem}.avatar-grid .locked{filter:grayscale(1);opacity:.65}.avatar-choice:has(input:disabled){opacity:.45}#explore-reward{font-size:.9rem;color:#285c2c;max-width:230px}.keyboard-open #explore-reward{display:none}
.robot-avatar{width:1.5em;height:1.5em;vertical-align:middle}.avatar .robot-avatar{width:36px;height:36px}.avatar-choice .robot-avatar,.avatar-grid .robot-avatar{width:60px;height:60px}
.game-guide{width:110px;height:140px;object-fit:contain;float:right;animation:robot-bob 3s ease-in-out infinite}.spell-play{overflow:hidden;background:linear-gradient(130deg,#dfedff,#eee0ff);border:2px solid #c3bcf7}.spell-play button{margin:6px}.bridge-scene{height:180px;position:relative;background:linear-gradient(#b4dfff 0 65%,#3789be 65%);border-radius:24px;overflow:hidden;margin:16px 0}.bridge-scene .bridge-robot{position:absolute;width:85px;height:110px;object-fit:contain;bottom:36px;left:5%;transition:left .35s ease;z-index:2}.bridge-prize{position:absolute;right:12px;bottom:50px;font-size:44px;animation:robot-bob 2s ease-in-out infinite}#bridge-ice{display:flex;position:absolute;left:5%;right:10%;bottom:24px;gap:4px}#bridge-ice i{flex:1;height:24px;border-radius:8px;background:#ffffff25;border:2px dashed #c9efff}#bridge-ice i.built{background:#deffff;border:2px solid white;box-shadow:0 5px 0 #72c8ee}.bridge-win{animation:robot-bob .3s ease-in-out 3}.letter-nudge{animation:letter-nudge .2s 2}.letter-tiles button,.letter-slot{font-size:1.6rem;min-width:56px;min-height:56px}.word-display{font-size:clamp(2rem,5vw,3rem)}@keyframes robot-bob{50%{transform:translateY(-8px) rotate(3deg)}}@keyframes letter-nudge{50%{transform:translateX(5px)}}@media(prefers-reduced-motion:reduce){.game-guide,.bridge-prize,.bridge-win,.letter-nudge{animation:none}.bridge-scene .bridge-robot{transition:none}}
.quest-lobby{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#e2f1ff,#e7dbff);padding:28px;border-radius:28px;margin-bottom:24px;gap:15px}.quest-lobby h1{font-size:clamp(2rem,4vw,3.2rem);margin:10px 0}.lobby-robot{width:150px;height:190px;object-fit:contain;animation:robot-bob 3s infinite}.quest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.quest-card{padding:24px;background:white;border:2px solid #ddd8f0;border-radius:24px;display:flex;flex-direction:column;align-items:stretch}.quest-card h2{margin:10px 0}.quest-card p{flex:1}.quest-card a{text-align:center;text-decoration:none;display:block}.quest-icon{font-size:2.5rem;color:#7144ad}.quest-card:nth-child(2){background:#eef8ff}.quest-card:nth-child(3){background:#f1fae6}.quest-card:nth-child(4){background:#fff6df}.collection-teaser{padding:24px;text-align:center}.collection-teaser a{display:inline-block;text-decoration:none}.lesson-options{margin-bottom:12px}.lesson-options summary{padding:12px;cursor:pointer}.focus-play .reward-meter{padding:10px 16px;margin-bottom:12px}.focus-play .subject-card>.word-display{margin:8px 0}.focus-play .subject-card>.primary:first-of-type{float:right;margin:5px}.bridge-scene{clear:both}@media(max-width:600px){.quest-grid{grid-template-columns:1fr}.quest-lobby{padding:18px}.lobby-robot{width:90px;height:125px}.focus-play .topbar #create-profile{display:none}.focus-play .topbar .profile-controls select{max-width:155px}.focus-play #player-score{font-size:.85rem}.focus-play .intro{display:none}.reward-meter span{font-size:.9rem}}@media(prefers-reduced-motion:reduce){.lobby-robot{animation:none}}

/* Game choices replace hidden method menus and blind carousel cycling. */
[hidden]{display:none!important}.choose-activity{display:inline-flex;align-items:center;gap:8px;margin:8px 0}.activity-picker{max-width:950px;margin:auto;padding:22px;background:#f3f0ff;border:2px solid #d3c8f4;border-radius:24px;scroll-margin-top:110px}.activity-picker h2{font-size:2rem;margin:24px 0 8px}.activity-pictures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.activity-picture{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:220px;padding:22px 12px;border:3px solid #b9a7e5;border-radius:24px;background:#fff;color:#29194f;text-align:center;box-shadow:0 7px 0 #cfc0ee;cursor:pointer}.activity-picture:nth-child(2){background:#fff4d7;border-color:#dfbb58;box-shadow:0 7px 0 #ebd591}.activity-picture:nth-child(3){background:#e7f7ff;border-color:#80c4e8;box-shadow:0 7px 0 #b4ddf2}.activity-picture-icon{font-size:3.7rem;line-height:1.2}.activity-picture strong{font-size:1.5rem}.activity-picture>span:not(.activity-picture-icon){font-size:1rem}.activity-picture b{font-size:1rem;color:#5b358f}.activity-picture:hover{transform:translateY(-3px)}.activity-picture:active{transform:translateY(4px);box-shadow:none}.activity-picker-pages{display:flex;align-items:center;justify-content:space-between;gap:16px}.activity-picker-pages>span{font-size:.9rem}.focus-play .subject-card{scroll-margin-top:110px}.focus-play .subject-card>.primary:first-of-type{float:none;margin:8px}.focus-play .subject-card>.lesson-options{order:9}#spell-retest,#choose-activity{min-height:60px}.activity-picker [data-picker-back]{min-height:56px}
@media(max-width:600px){.activity-picker{padding:14px;scroll-margin-top:85px}.activity-pictures{gap:14px;grid-template-columns:1fr}.activity-picture{min-height:105px;display:grid;grid-template-columns:72px 1fr;text-align:left;gap:5px 12px;padding:12px 16px}.activity-picture-icon{grid-row:1/4;font-size:3rem}.activity-picture strong{font-size:1.3rem}.activity-picker h2{font-size:1.7rem;margin-top:18px}}

.learn-quiz-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 20px;clear:both}.learn-quiz-nav button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:82px!important;font-size:1.6rem!important;font-weight:800;border-width:3px;border-radius:18px;margin:0!important}.learn-quiz-nav button>span{font-size:2rem}.learn-quiz-nav button:disabled{opacity:1;cursor:default}.learn-quiz-nav [aria-current="page"]{box-shadow:inset 0 0 0 3px #fff6;outline:2px solid #7751bf;outline-offset:3px}.keyboard-open .learn-quiz-nav{gap:10px;margin-bottom:12px}.keyboard-open .learn-quiz-nav button{min-height:56px!important;font-size:1.2rem!important;padding:8px}.keyboard-open .learn-quiz-nav button>span{font-size:1.4rem}.spell-play .learn-quiz-nav{margin:20px 0 0}.spell-play .game-guide{float:none;display:block;margin:0 auto}.spell-play{text-align:center}@media(max-width:600px){.learn-quiz-nav{gap:12px}.learn-quiz-nav button{min-height:72px!important;font-size:1.35rem!important;padding:10px}.learn-quiz-nav button>span{font-size:1.6rem}}

.learning-flyout{position:fixed;inset:0 0 0 auto;margin:0;width:min(620px,94vw);max-width:none;max-height:100dvh;height:100dvh;box-sizing:border-box;border:0;border-left:3px solid #c9b9ee;border-radius:26px 0 0 26px;padding:24px;background:#f4efff;color:#29194f;box-shadow:-12px 0 60px #20103c30;overflow:auto;animation:flyout-in .18s ease-out}.learning-flyout::backdrop{background:#19132a66}.flyout-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.flyout-heading h2{font-size:2rem;margin:0}.flyout-heading button{min-width:56px;min-height:56px}.learning-flyout .activity-pictures{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.learning-flyout .activity-picture{min-height:170px;padding:14px;gap:8px}.learning-flyout .activity-picture-icon{font-size:3rem}.learning-flyout .activity-picture strong{font-size:1.3rem}.learning-flyout .activity-picture>span:not(.activity-picture-icon){font-size:.95rem}.learn-quiz-nav{position:relative;z-index:1}@keyframes flyout-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(max-width:600px){.learning-flyout{padding:18px;width:96vw}.learning-flyout .activity-picture{display:flex;min-height:150px;text-align:center;padding:10px}.learning-flyout .activity-picture-icon{font-size:2.5rem}.learning-flyout .activity-picture strong{font-size:1.15rem}.learning-flyout .activity-picture>span:not(.activity-picture-icon){font-size:.85rem}}@media(prefers-reduced-motion:reduce){.learning-flyout{animation:none}}

/* Keep the playable area in the viewport; scores already live in the top bar. */
.focus-play #main>.intro,.focus-play #main>.reward-meter{display:none}.focus-play #main{padding:12px 18px}.focus-play .topbar{min-height:64px;padding:8px 18px}.focus-play #create-profile,.focus-play #explore-reward{display:none}.spelling-play .subject-card{max-width:960px;padding:16px}.spelling-play .learn-quiz-nav{gap:14px;margin:0 0 12px}.spelling-play .learn-quiz-nav button{min-height:60px!important;font-size:1.4rem!important;padding:10px}.word-game-heading{display:flex;gap:12px;align-items:center;margin:0 0 10px}.word-game-heading .word-display{flex:1;padding:8px 12px;margin:0;line-height:1.1;font-size:2rem}.word-game-heading button{min-height:56px;min-width:60px;padding:8px;font-size:1.6rem}.word-game-activity .bridge-scene{height:clamp(85px,16dvh,135px);margin:8px 0}.word-game-activity .bridge-scene .bridge-robot{height:90px;width:70px;bottom:25px}.word-game-activity .bridge-prize{bottom:30px;font-size:34px}.word-game-activity #bridge-ice{bottom:15px}.word-game-activity #bridge-ice i{height:20px}.word-game-activity p{margin:8px 0;font-size:1rem}.word-game-activity h2:not(.sr-only){font-size:1.3rem;margin:8px 0}.word-game-activity .letter-slots,.word-game-activity .letter-tiles{gap:8px;margin:10px 0}.word-game-activity .letter-tiles button,.word-game-activity .letter-slot{min-height:52px;min-width:48px;padding:8px;font-size:1.4rem}.word-game-activity #reset-letters{min-height:44px;padding:8px 12px;margin:0}.word-game-activity #tile-status{display:inline-block;margin:4px 12px;font-size:.95rem}.word-game-activity #word-drawing{height:clamp(90px,19dvh,170px);width:100%;display:block;touch-action:none}.word-game-activity .button-row{margin:8px 0;gap:8px}.word-game-activity .button-row button,.word-game-activity #hide-word-example{min-height:48px;padding:10px 16px;font-size:1rem}.word-game-activity #drawing-practice .small{font-size:.8rem;margin:4px 0}.word-game-activity #write-status:empty{display:none}.word-game-activity #typing-practice .setting{margin:8px 0}.spelling-play .spelling-audio button{min-height:52px;padding:10px 16px}.spelling-play #spell-answer .setting{margin:12px 0}.spelling-play #spell-answer input{min-height:56px}.spelling-play #spelling-guidance{margin:4px 0 12px}.spelling-play .subject-card>h2{font-size:1.5rem;margin:12px 0}.spelling-play #audio-status{margin:10px 0}.spelling-play #subject-finish{min-height:44px}.spelling-play .subject-card>.button-row{margin:8px 0}
@media(max-height:700px){.spelling-play .subject-card{padding:10px 14px}.word-game-activity .bridge-scene{height:85px}.word-game-activity .bridge-scene .bridge-robot{height:65px}.word-game-activity #word-drawing{height:90px}.word-game-activity p{margin:5px 0}.spelling-play .learn-quiz-nav{margin-bottom:8px}.word-game-activity .letter-slots,.word-game-activity .letter-tiles{margin:6px 0}.word-game-activity #drawing-help{display:none}}
@media(max-width:600px){.spelling-play #main{padding:8px}.spelling-play .subject-card{padding:12px}.spelling-play .topbar{padding:6px 10px;gap:8px}.spelling-play .topbar .profile-controls{display:none}.spelling-play .topbar #exit-activity{min-height:48px;padding:8px 14px}.spelling-play .topbar #player-score{font-size:.85rem}.spelling-play .learn-quiz-nav button{min-height:58px!important}.word-game-activity .letter-tiles button,.word-game-activity .letter-slot{min-width:44px;min-height:48px}.word-game-activity .letter-slots,.word-game-activity .letter-tiles{gap:5px}.word-game-heading .word-display{font-size:1.75rem}.word-game-activity .button-row button{padding:8px 12px}}
@media(max-height:750px){.learning-flyout{padding:16px}.learning-flyout .activity-pictures{margin:12px 0;gap:12px}.learning-flyout .activity-picture{min-height:135px;gap:5px}.learning-flyout .activity-picture-icon{font-size:2.3rem}.learning-flyout>p{margin:8px 0}}

.spelling-play .topbar #player-score{display:none}.spelling-play .topbar{position:relative;min-height:54px;padding:4px 18px}.spelling-play .topbar #exit-activity{min-height:44px;padding:8px 16px}.spelling-play .topbar .profile-controls{margin-left:auto}.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding-bottom:12px;border-bottom:2px solid #ece5fa}.game-toolbar h1{font-size:1.65rem;line-height:1.12;margin:0;color:#29204d}.game-toolbar-right{width:min(430px,62%)}.game-inline-score{text-align:center;font-size:1rem;font-weight:800;color:#634500;margin:0 0 10px;white-space:nowrap}.game-toolbar .learn-quiz-nav{margin:0;gap:12px}.game-toolbar .learn-quiz-nav button{min-height:56px!important;font-size:1.2rem!important;padding:8px 16px}.game-toolbar .learn-quiz-nav button>span{font-size:1.5rem}.spelling-play #main{padding-top:6px}
@media(max-width:600px){.game-toolbar{gap:8px;margin-bottom:10px;padding-bottom:10px}.game-toolbar h1{font-size:1.15rem}.game-toolbar-right{width:66%}.game-inline-score{font-size:.73rem;margin-bottom:8px}.game-toolbar .learn-quiz-nav{gap:8px}.game-toolbar .learn-quiz-nav button{min-height:52px!important;font-size:1rem!important;padding:6px}.game-toolbar .learn-quiz-nav button>span{font-size:1rem}.spelling-play .topbar{min-height:48px;padding:2px 10px}}

#exit-activity{font-size:1.6rem;min-width:52px!important;padding:6px 12px!important}.profile-customizer{display:flex;align-items:center;gap:10px;background:transparent;border:2px solid transparent;border-radius:16px;min-height:48px;padding:4px 8px;color:#2d2150;font-weight:750;cursor:pointer}.profile-customizer:hover{background:#eee5ff;border-color:#cdbbed}.profile-customizer .avatar{width:42px;height:42px}.subject-flyout{inset:0 auto 0 0;border-radius:0 24px 24px 0;border-left:0;border-right:3px solid #c9b9ee;animation:subject-menu-in .18s ease-out}.subject-flyout .activity-picture{min-height:145px}.player-customizer{display:grid;grid-template-columns:130px 1fr;gap:22px;padding:24px;margin-bottom:20px}.customizer-preview{font-size:6rem;align-self:center;text-align:center}.customizer-preview .robot-avatar{width:120px;height:150px;object-fit:contain}.player-customizer h1{font-size:2rem;margin:0 0 16px}.player-customizer form .button-row{display:flex;gap:12px;flex-wrap:wrap}.player-customizer input{min-width:160px;flex:1}.dashboard-players{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.dashboard-players label{display:grid;gap:6px}.avatar-unlock{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;border:2px solid #d5c6ed;border-radius:16px;background:#f6f0ff;color:#372358;cursor:pointer}.avatar-unlock>span{font-size:2.5rem}.avatar-unlock[aria-pressed="true"]{border:3px solid #7140bd;background:#e9d9ff}.avatar-unlock:disabled{cursor:default}.avatar-unlock strong{font-size:.9rem}.avatar-unlock small{font-size:.75rem}@keyframes subject-menu-in{from{transform:translateX(-100%)}to{transform:translateX(0)}}@media(max-width:600px){.spelling-play .topbar .profile-controls{display:flex}.profile-customizer{gap:4px;padding:2px 4px}.profile-customizer #player-name{max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-customizer{grid-template-columns:1fr;padding:18px}.customizer-preview{font-size:4rem}.customizer-preview .robot-avatar{width:85px;height:100px}.player-customizer h1{text-align:center}.player-customizer .button-row button{min-height:48px}}@media(prefers-reduced-motion:reduce){.subject-flyout{animation:none}}

.math-type-picker{max-width:1000px;margin:auto}.math-type-picker h1{font-size:2.5rem;margin:0 0 8px}.math-type-picker>p{font-size:1.2rem;margin:0 0 22px}.math-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.math-type-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:168px;padding:18px 12px;background:#eee7ff;color:#352252;border:3px solid #c7b7ea;border-radius:22px;box-shadow:0 6px 0 #d8c9f0;cursor:pointer}.math-type-card:nth-child(4n+2){background:#e7f7ff;border-color:#9ecde7;box-shadow:0 6px 0 #bddfeb}.math-type-card:nth-child(4n+3){background:#fff5d9;border-color:#e2c673;box-shadow:0 6px 0 #ebdcab}.math-type-card:nth-child(4n){background:#edf8e5;border-color:#b4cf9a;box-shadow:0 6px 0 #cfdfba}.math-type-card>span{font-size:2.5rem;line-height:1}.math-type-card strong{font-size:1.15rem}.math-type-card small{font-size:.85rem;line-height:1.3}.math-type-card:active{transform:translateY(4px);box-shadow:none}.math-type-card:focus-visible{outline:3px solid #47237d;outline-offset:5px}@media(max-width:1100px){.math-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.math-type-card{min-height:114px;display:grid;grid-template-columns:50px 1fr;text-align:left;gap:5px 10px;padding:14px}.math-type-card>span{grid-row:1/3;text-align:center}.math-type-card strong{font-size:1.1rem}.math-type-card small{font-size:.8rem}}@media(max-width:600px){.math-type-picker h1{font-size:2rem}.math-type-picker>p{margin-bottom:16px}.math-type-card{grid-template-columns:1fr;display:flex;text-align:center;min-height:112px;padding:12px 6px;gap:6px}.math-type-card>span{font-size:2rem}.math-type-card small{display:none}.math-type-card strong{font-size:1rem}.math-type-grid{gap:12px}}
/* Tablets and phones use the subject drawer instead of a permanent sidebar. */
@media(max-width:1200px),(pointer:coarse){
 .sidebar{display:none!important}.app{display:block!important}.workspace{margin-left:0!important;width:100%!important;min-width:0}.topbar{height:auto;min-height:64px;padding:8px 16px;display:flex;flex-wrap:nowrap;gap:12px}.breadcrumb,.mobile-settings{display:none!important}#exit-activity{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;min-width:52px;min-height:48px}.profile-controls{margin-left:auto;flex:0 0 auto;justify-content:flex-end}.profile-controls .avatar{display:grid}.profile-customizer{padding:4px 6px!important}#player-score{font-size:.95rem}#main{max-width:1100px;margin:auto;padding:20px 18px}#main>.reward-meter{display:none}footer{display:none}.quest-lobby{padding:18px;margin-bottom:18px}.quest-lobby h1{font-size:2rem}.lobby-robot{width:100px;height:130px}.quest-grid{gap:14px}.quest-card{padding:18px}.math-type-picker h1{font-size:2rem}.math-type-picker>p{margin-bottom:16px}
}
@media(max-width:600px){
 .topbar{padding:6px 10px;min-height:58px;gap:8px}#player-score{font-size:.8rem;white-space:normal;line-height:1.3}.profile-customizer #player-name{display:none}.profile-customizer .avatar{width:38px;height:38px}.profile-controls{gap:0}.profile-customizer{min-width:44px;min-height:44px}#main{padding:16px 12px}.math-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.subject-card{margin-top:12px}.spell-play{padding:16px}.spell-play .game-guide{width:70px;height:90px}.spell-play h3{margin:10px 0}.spell-play p{margin:8px 0}.intro h1{font-size:2rem}.intro{margin-bottom:16px}
}

/* Full trophy progress belongs on the dashboard, not above each game. */
#main>.reward-meter{display:none!important}.dashboard-view #main>.reward-meter{display:flex!important}

.unlock-hint{margin:0 0 12px;padding:0;color:#654a91;font-size:.95rem;font-weight:650;line-height:1.4}.dashboard-view #main>.unlock-hint{display:none}.focus-play #main>.unlock-hint{margin:2px 4px 8px;font-size:.85rem}.keyboard-open #main>.unlock-hint{display:none}

.geo-play .topbar #player-score{display:none}.geo-play .topbar{position:relative;min-height:54px;padding:4px 18px}.geo-play .topbar .profile-controls{margin-left:auto}.geo-play .subject-card{max-width:1000px;margin:0 auto;padding:16px}.geo-play .game-toolbar .learn-quiz-nav{margin:0}.geo-play .game-toolbar .learn-quiz-nav button{width:100%}.geo-play .subject-card>h2{font-size:clamp(1.15rem,2.5vw,1.6rem);margin:10px 0}.geo-play .subject-choices{margin:12px 0 0;gap:12px;grid-template-columns:1fr 1fr}.geo-play .subject-choices button{min-height:56px;padding:10px 16px;font-size:1.1rem}.geo-play .learning-map{margin:8px 0}.geo-play .learning-map svg{max-height:clamp(150px,28dvh,270px);min-height:0}.geo-play .world-map-activity{margin:8px 0}.geo-play .world-map-scroller{overflow:auto;max-height:28dvh}.geo-play .world-map-stage{min-width:0!important;width:100%!important}.geo-play .world-map-stage>img{max-height:28dvh;object-fit:contain}.geo-play .world-map-mobile-note{display:none}.geo-play #subject-result:empty{margin:0}.geo-clue{padding:10px 14px;margin:6px 0;background:#fff5cd;border-radius:12px;color:#594210;font-weight:650}.geo-game-activity p{margin:10px 0}.geo-game-activity .geo-flip{min-height:180px;padding:20px;gap:16px}.geo-game-activity .geo-journey{min-height:0;padding:10px 0}.geo-game-activity .rhyme-lesson,.geo-game-activity .association-scene{padding:18px;margin:10px 0}.geo-game-activity .rhyme-lines{font-size:1.2rem;line-height:1.45}.geo-game-activity .region-art{display:none}.geo-game-activity .button-row{margin-top:12px}.geo-game-activity .world-map-controls p{display:none}
@media(max-width:600px){.geo-play #main{padding:8px}.geo-play .subject-card{padding:12px}.geo-play .topbar{padding:4px 10px}.geo-play .subject-choices{gap:10px}.geo-play .subject-choices button{font-size:.95rem;padding:10px 8px}.geo-play .learning-map svg{max-height:24dvh}.geo-play .world-map-scroller,.geo-play .world-map-stage>img{max-height:24dvh}}

.next-learning-game{margin:12px 0 0;min-height:52px}.geo-play .geo-game-activity .subject-sources{display:none}

.canada-quest-map{width:100%;max-width:none;position:relative;border:2px solid #b4d8e9;border-radius:20px;background:linear-gradient(140deg,#e3f5ff,#eefaff);overflow:hidden;margin:10px 0}.canada-quest-map>svg{display:block;width:100%;height:clamp(230px,34dvh,380px);max-height:none!important;touch-action:none;cursor:grab}.canada-quest-map>svg:active{cursor:grabbing}.map-quest-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 12px;background:#ffffffbf}.map-quest-tools>span{font-size:.9rem;font-weight:700;color:#274d68}.map-quest-tools>div{display:flex;gap:6px}.map-quest-tools button{min-height:44px;min-width:44px;padding:6px 10px;border:2px solid #c2dce9;border-radius:10px;background:#fff;color:#27395f;font-size:1rem}.map-gem{font-size:26px;fill:#fff3a0;stroke:#8b6c10;stroke-width:.5;paint-order:stroke;pointer-events:none}.conner-selected .map-gem{font-size:34px;filter:drop-shadow(0 0 7px #ffdc35);animation:map-gem-glow 1.3s ease-in-out infinite}.canada-quest-map .conner-region{cursor:pointer}.canada-quest-map .conner-region:hover path,.canada-quest-map .conner-region:focus path{filter:brightness(1.18);stroke:#ffcc3c;stroke-width:3}.map-quest-caption{position:absolute;bottom:8px;left:12px;pointer-events:none;padding:5px 10px;background:#fffE;border-radius:10px;font-size:.85rem;font-weight:800;color:#34215b}.map-treasure-card{position:absolute;left:14px;right:14px;bottom:12px;max-width:510px;padding:14px 48px 14px 16px;border:2px solid #e5bd46;border-radius:16px;background:#fff5cc;box-shadow:0 7px 25px #2e40752b;animation:star-pop .25s ease-out}.map-treasure-card strong,.map-treasure-card>span{display:block;margin-bottom:6px}.map-treasure-card strong{font-size:1.15rem;color:#3b246b}.map-treasure-card>span{font-size:.9rem;font-weight:700}.map-treasure-card p{font-size:.9rem;line-height:1.4;margin:6px 0}.map-treasure-card>b{color:#694c00}.map-fact-close{position:absolute;right:5px;top:5px;min-width:40px;min-height:40px;padding:5px;border:0;border-radius:10px;background:transparent;color:#493660}.map-discovered path{filter:drop-shadow(0 0 4px #ffdd70)}@keyframes map-gem-glow{50%{filter:drop-shadow(0 0 14px #fff06b)}}@media(max-height:750px){.canada-quest-map>svg{height:clamp(180px,29dvh,250px)}}@media(max-width:600px){.map-quest-tools{padding:5px;gap:4px}.map-quest-tools>span{font-size:.72rem}.map-quest-tools button{font-size:.85rem;padding:5px;min-width:42px}.canada-quest-map>svg{height:26dvh;min-height:185px}.map-treasure-card{left:7px;right:7px;padding:10px 40px 10px 12px}.map-treasure-card p{font-size:.8rem}.map-treasure-card strong{font-size:1rem}}@media(prefers-reduced-motion:reduce){.conner-selected .map-gem,.map-treasure-card{animation:none}}
.crystal-play .topbar #player-score{display:none}.crystal-play .topbar{min-height:54px;padding:4px 18px}.crystal-play .profile-controls{margin-left:auto}.crystal-game{max-width:1000px;margin:auto;border:2px solid #d5c5ef;border-radius:24px;padding:18px;background:#fff}.crystal-game .learn-quiz-nav{margin:0}.crystal-challenge{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;background:#eee4ff;border-radius:18px;color:#362252}.crystal-challenge>div:first-child{display:flex;gap:18px;align-items:center}.crystal-challenge span{font-size:.85rem;font-weight:800;letter-spacing:.06em}.crystal-challenge strong{font-size:2.5rem}.crystal-attempts{font-size:1.5rem;letter-spacing:7px;color:#7042c1}.crystal-attempts small{display:block;font-size:.8rem;letter-spacing:0;text-align:right}.crystal-reactor{display:flex;align-items:center;gap:18px;padding:15px 20px;margin:12px 0;background:#192547;color:white;border-radius:18px}.crystal-reactor>span{font-size:2.1rem}.crystal-reactor>strong{font-size:2rem}.reactor-track{height:22px;flex:1;background:#3c4565;border-radius:20px;overflow:hidden}.reactor-track i{display:block;height:100%;background:linear-gradient(90deg,#50d9ef,#a5e884);border-radius:20px;transition:width .25s}.overloaded .reactor-track i{background:#f58b64}.crystal-equation{text-align:center;font-size:1.25rem;font-weight:750;min-height:28px;margin:10px 0;color:#392857}.crystal-values{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:14px 0}.crystal-values button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px;border:2px solid #b6cae8;border-radius:18px;background:#edf4ff;color:#2b2450;min-height:138px;cursor:pointer;box-shadow:0 5px 0 #d9ddec}.crystal-values svg{width:62px;height:70px}.crystal-values strong{font-size:1.15rem}.crystal-values small{font-size:.8rem}.crystal-values button:active{transform:translateY(4px);box-shadow:none}.crystal-values button:disabled{opacity:.4;cursor:default}.crystal-actions{display:flex;gap:12px;justify-content:center}.crystal-actions button{min-height:54px;min-width:140px}#crystal-status{font-weight:700;color:#6c3f19;text-align:center;margin:10px 0 0;min-height:22px}.crystal-lesson{text-align:center}.crystal-lesson h2{font-size:1.5rem;margin:12px 0}.crystal-demo{display:flex;align-items:center;justify-content:center;gap:12px;min-height:110px;margin:18px 0}.crystal-demo svg{width:70px;height:90px}.demo-crystal{background:#ecf8ff;border:3px solid #73cdf1;border-radius:18px;padding:8px 20px;box-shadow:0 0 18px #9ee6ff;animation:robot-bob 1.6s infinite}.demo-crystal svg{width:65px;height:80px}.crystal-demo-win{font-size:1.5rem;color:#258647;font-weight:800}@media(max-width:600px){.crystal-game{padding:12px}.crystal-challenge{padding:10px}.crystal-challenge span{font-size:.7rem}.crystal-challenge strong{font-size:2rem}.crystal-attempts{font-size:1.1rem;letter-spacing:4px}.crystal-values{gap:8px}.crystal-values button{min-height:122px;padding:6px}.crystal-values svg{width:48px;height:60px}.crystal-values strong{font-size:1rem}.crystal-values small{font-size:.65rem}.crystal-reactor{margin:10px 0;padding:10px}.crystal-equation{font-size:1rem}.crystal-actions button{min-width:0;flex:1}}@media(prefers-reduced-motion:reduce){.demo-crystal{animation:none}.reactor-track i{transition:none}}
/* Fraction Garden: the garden grows in place, with every control within reach. */
.fraction-garden{max-width:1120px;margin:auto;position:relative}.fraction-garden-play #main{padding:12px 24px}.fg-progress{display:flex;justify-content:space-between;align-items:center;margin:4px 0 8px}.fg-progress>span{display:flex;gap:14px}.fg-progress b{font-size:14px;color:#6d7483}.fg-progress b.current{color:#16654b;background:#d8f2dc;border-radius:14px;padding:5px 12px}.fg-progress small{font-weight:800}.fg-landscape{height:clamp(105px,19dvh,170px);position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(#c0ecff 0%,#eefbff 50%,#a1d77d 51%,#6bab50);border:2px solid #c3dfab}.fg-sun{position:absolute;right:6%;top:2px;font-size:52px;color:#ffb51f}.fg-crop-label{position:absolute;left:18px;top:10px;font-size:20px;font-weight:900;color:#235a35}.fg-bed{display:grid;grid-template-columns:repeat(var(--columns),1fr);position:absolute;left:13%;right:16%;bottom:8px;gap:3px;background:#795232;border:7px solid #be8a51;border-bottom-width:12px;border-radius:14px;transform:perspective(600px) rotateX(12deg);box-shadow:0 6px 0 #417a38}.fg-plot{text-align:center;border-radius:8px;background:#644327;color:#af8057;height:32px;font-size:29px;line-height:32px}.fg-harvest .fg-plot{animation:fg-grow .6s var(--delay) both}.fg-basket{position:absolute;right:2%;bottom:10px;font-size:28px}.fg-rain{position:absolute;left:15%;top:20px;font-size:25px;animation:fg-water .7s linear infinite}.fg-task h2{font-size:clamp(18px,2.4vw,26px);margin:10px 0;text-align:center;line-height:1.25}.fg-measure{display:flex;gap:16px;align-items:center}.fg-measure strong{min-width:65px;text-align:center;font-size:23px}.fg-measure-bar{display:flex;gap:3px;flex:1;height:22px;background:#e5e9ee;border:2px solid #b0bace;border-radius:8px;overflow:hidden}.fg-measure-bar i{flex:1;background:#e7ddd1}.fg-measure-bar i.filled{background:#488abe}.fg-measure.soil i.filled{background:#6b4430}.fg-equation{text-align:center;min-height:24px;margin:7px 0;font-size:17px}.fg-tools{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.fg-tools button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:76px;padding:7px;background:#fff;border:2px solid #b9d8c3;box-shadow:0 4px #9cbba5;border-radius:18px}.fg-tools button>span{font-size:30px}.fg-tools button>strong{font-size:28px}.fg-actions{display:flex;gap:12px;justify-content:center;margin-top:12px}.fg-actions button{min-height:52px;padding:10px 25px;font-size:20px}#fg-status{min-height:24px;text-align:center;font-size:16px;margin:8px 0 0}.fg-celebration{position:absolute;inset:85px 0 0;background:#f1fff0ed;z-index:2;border-radius:20px;display:flex;align-items:center;justify-content:center;pointer-events:none}.fg-celebration[hidden]{display:none}.fg-celebration .reward-meter,.fg-celebration .unlock-hint{display:none}.fg-celebration .reward-win{background:transparent;box-shadow:none}.fg-lesson{text-align:center}.fg-lesson h2{margin:12px 0}.fg-demonstration{font-size:clamp(24px,4vw,38px);color:#226b45}.fg-lesson p{margin:10px 0;font-size:17px}.fg-demo-parts{min-height:34px;font-size:24px;font-weight:800;margin:12px}.fg-lesson button{min-height:58px;font-size:22px}@keyframes fg-grow{from{transform:scale(.4) translateY(12px)}to{transform:scale(1)}}@keyframes fg-water{from{transform:translateY(-30px);opacity:0}to{transform:translateY(60px);opacity:1}}
@media(max-width:600px){.fraction-garden-play #main{padding:8px 10px}.fg-landscape{height:115px}.fg-progress>span{gap:4px}.fg-progress b{font-size:12px}.fg-tools{gap:7px}.fg-tools button{flex-direction:column;gap:0;min-height:76px}.fg-tools button>strong{font-size:23px}.fg-tools button>span{font-size:23px}.fg-bed{left:6%;right:21%;border-width:4px}.fg-plot{font-size:22px;height:26px;line-height:26px}.fg-crop-label{font-size:16px;top:4px}.fg-actions button{flex:1;padding:8px}.fg-task h2{margin:9px 0}.fg-lesson p{font-size:15px}}
@media(max-height:700px){.fraction-garden-play .game-toolbar{margin-bottom:6px}.fg-landscape{height:105px}.fg-tools button{min-height:62px}.fg-task h2{margin:7px 0}.fg-actions{margin-top:8px}}
@media(prefers-reduced-motion:reduce){.fg-harvest .fg-plot,.fg-rain{animation:none}}
/* Mixed geography recall: location, name, reverse pairs, and spelling recovery. */
.geo-play .subject-card{max-width:1120px}.geo-world-quiz svg{display:block;width:100%;height:clamp(230px,43dvh,430px);background:#def4ff;border-radius:20px}.world-continent[role=button],.world-hit{cursor:pointer}.world-continent[role=button]:hover,.world-continent[role=button]:focus{filter:brightness(1.13);outline:none;stroke:#292651;stroke-width:18}.world-hit circle{fill:#fff;stroke:#5953a5;stroke-width:18}.world-hit text{font-size:180px;font-weight:900;fill:#292651;pointer-events:none}.world-hit:focus circle,.world-hit:hover circle{fill:#fff2a4;stroke:#19133f;stroke-width:32}.geo-target path{stroke:#27213e;stroke-width:35;paint-order:stroke;filter:brightness(1.3)}.world-hit.geo-target circle{fill:#ffe36d;stroke:#542bc4;stroke-width:35}.geo-map-instruction{margin:4px 0;text-align:center;font-size:15px}.geo-round-map .canada-quest-map svg{height:clamp(240px,48dvh,470px)}.geo-round-map .map-quest-caption{display:none}.geo-round-map .conner-region:hover{filter:brightness(1.25)}.geo-round-typed .geo-recall-scene,.geo-round-multiple_choice .geo-recall-scene{font-size:clamp(48px,9vw,100px);text-align:center;padding:24px 0}.geo-answer-form{display:flex;gap:12px;margin-top:16px}.geo-answer-form input{flex:1;min-width:0;min-height:62px;font-size:24px;padding:12px;border:2px solid #b8a3df;border-radius:14px}.geo-answer-form button{font-size:23px;min-height:62px}.geo-memory-pair{font-size:clamp(20px,3vw,30px);font-weight:900;text-align:center;margin:12px 0}.geo-pair-game{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:20px;padding:30px 0}.geo-pair-game span,.geo-pair-game button{font-size:clamp(20px,3vw,32px);font-weight:850}.geo-pair-game button{min-height:90px;background:#e7f5dd;border-color:#78a462}.geo-letter-slots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;margin:26px 0}.geo-letter-slots span{min-width:24px;border-bottom:3px solid #baadd7;font-size:27px;font-weight:850;text-align:center}.geo-letter-slots .current{background:#fff0af;border-color:#7954bf}.geo-letter-slots .done{background:#cdf3ce}.geo-letter-choices{grid-template-columns:repeat(4,1fr)!important}.geo-letter-choices button{font-size:30px!important;min-height:80px!important}.geo-repair>p{text-align:center}.keyboard-open .geo-recall-scene{display:none}.keyboard-open .geo-world-quiz svg{height:120px}.keyboard-open .geo-answer-form{margin-top:4px}.geo-play .canada-quest-map svg .conner-selected{stroke:#29214f;stroke-width:6;filter:brightness(1.25)}
@media(max-width:600px){.geo-world-quiz svg{height:clamp(220px,40dvh,350px)}.geo-answer-form{gap:6px}.geo-answer-form input{font-size:20px}.geo-answer-form button{font-size:18px;padding:10px}.geo-letter-slots span{font-size:22px;min-width:20px}.geo-round-map .canada-quest-map svg{height:42dvh}}
.geo-play .topbar{min-height:52px;height:52px;padding:3px 16px}.geo-play .profile-customizer{min-height:44px;padding:0}.geo-play .profile-customizer .avatar,.geo-play .profile-customizer .robot-avatar{width:38px;height:38px}.geo-play #exit-activity{min-height:44px;height:44px;padding:6px 14px}.geo-play #main{max-width:1400px;padding:6px 14px}.geo-play #main>.unlock-hint{margin:2px 8px 5px;font-size:12px}.geo-play .subject-card{max-width:none;padding:10px 14px}.geo-play .game-toolbar{padding-bottom:8px;margin-bottom:6px;min-height:0}.geo-play .game-toolbar h1{font-size:25px;line-height:1.1}.geo-play .game-toolbar h1 br{display:none}.geo-play .game-toolbar-right{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end}.geo-play .game-toolbar .learn-quiz-nav{display:flex;gap:8px}.geo-play .game-toolbar .learn-quiz-nav button{min-height:50px!important;font-size:20px!important;padding:8px 22px;width:auto}.geo-play .subject-card>h2{margin:6px 0;font-size:22px}.geo-play .canada-quest-map{position:relative;margin:6px 0 0}.geo-play .map-quest-tools{position:absolute;top:5px;right:5px;z-index:1;padding:0;background:transparent;border:0}.geo-play .map-quest-tools>span{display:none}.geo-play .map-quest-tools button{background:#ffffffed}.geo-play .canada-quest-map>svg{min-height:0;max-height:none}.geo-play .map-quest-caption{font-size:13px;padding:3px}.geo-play .geo-memory-pair{margin:5px 0}.geo-play .geo-map-instruction{display:none}.geo-play .game-toolbar h1{max-width:none}.geo-play .geo-repair #geo-repair-status{margin:4px 0;font-size:16px}
@media(max-width:700px){.geo-play .game-toolbar{align-items:center;gap:5px}.geo-play .game-toolbar h1{font-size:19px;max-width:95px}.geo-play .game-toolbar-right{display:block}.geo-play .game-inline-score{font-size:12px;margin-bottom:4px}.geo-play .game-toolbar .learn-quiz-nav button{min-height:46px!important;font-size:17px!important;padding:7px 13px}.geo-play .subject-card>h2{font-size:19px}.geo-play #main{padding:5px}.geo-play .subject-card{padding:8px}}
@media(min-width:701px){.geo-play .game-toolbar-right{width:auto;flex-wrap:nowrap}.geo-play .game-inline-score{margin:0;font-size:15px}.geo-play .game-toolbar .learn-quiz-nav{width:auto}}
.fraction-garden-play .topbar #player-score{display:none}.fraction-garden-play .profile-controls{margin-left:auto}.fg-tools{grid-template-columns:repeat(var(--tools,4),1fr)}.fg-plot.compost{background:#352719;box-shadow:inset 0 0 0 2px #a7bb5b}.fg-celebration{background:transparent;align-items:flex-end}.fg-celebration .reward-win{background:#efffeafa;border:3px solid #83c275;border-radius:20px;margin:12px;padding:16px 24px;width:90%}
.world-place-fact{padding:8px 14px;background:#fff5d0;border:2px solid #ead078;border-radius:14px;font-size:16px}.world-place-fact strong{font-size:20px}.world-place-fact p{margin:4px 0!important}.geo-play .world-explore{margin:0}.geo-play .world-explore .geo-world-quiz svg{min-height:0}.map-small-callout path{stroke:#4b4279!important;fill:none!important;stroke-width:2px!important}.map-small-callout text{pointer-events:none}

.game-guide>.rc-robot,.bridge-robot>.rc-robot{display:block;width:100%;height:100%;overflow:visible}
