/* A sunny classroom palette drawn from the LearnSmart home illustration. */
:root{color-scheme:light;--ink:#194b70;--blue:#147ec2;--sun:#ffcf3d;--coral:#ee654d;--green:#26945a;--ice:#147ec2;--violet:#7c51bc;--panel:#fffdf5;background:#e8f8ff;color:var(--ink)}
body{color:var(--ink);background:radial-gradient(ellipse at 8% 15%,#fff1a6 0,transparent 42%),linear-gradient(145deg,#e3f8ff,#fff8df 70%,#dcf5e5)}
body::before{background:radial-gradient(circle at 90% 8%,#ffdb6670,transparent 35%),linear-gradient(155deg,#e4f8ff,#fff9df 65%,#e2f6e8)}
.arena-wrap,body[data-style=blaster] .arena-wrap,body[data-style=blocks] .arena-wrap,body[data-mode=words] .arena-wrap,body[data-mode=words][data-style=bubble] .arena-wrap{background:radial-gradient(ellipse at 50% 0,#fff7ca,transparent 58%),linear-gradient(180deg,#c7efff,#e8faff 60%,#d9f4de)}
body[data-style=blocks] .arena-wrap::before{background:linear-gradient(140deg,#ffe17820,#46b86d15)}
.floating-menu,.game-top .pause,.icon-button{background:#fffdf2;color:var(--ink);border:2px solid #fff;box-shadow:0 4px 0 #b8d9e8,0 6px 15px #257ba015;backdrop-filter:none}
.floating-menu{background:#ffda54;border-color:#fff3b2;box-shadow:0 4px 0 #dab23a;color:#624709}
.game-top .style-name,body[data-mode=words][data-style=bubble] .style-name{color:#194b70}
.level-label,.level-label b,.out-of{color:#35617a!important}.round-label{color:#986219}
.target-chip{background:#fffdf3;color:#476e83;border:2px solid #fff;box-shadow:0 4px 0 #b4d7e5;backdrop-filter:none}.target-chip b{color:#146ba3}
.pop-progress>span{color:#799aad}.pop-progress>span.complete{color:#e6a500;text-shadow:0 2px 0 #fff}.pop-progress>span.letter-progress,.pop-progress>span.table-progress{background:#fff5ce;color:#775b14;text-shadow:none}.pop-progress>span.letter-progress.complete{background:#ffda54;color:#624709}
.number-tray,body[data-style=blaster] .number-tray,body[data-style=blocks] .number-tray{background:linear-gradient(145deg,#fffefa,#fff4d1);border:3px solid white;box-shadow:0 5px 0 #a7cedf,0 12px 28px #226b9218;backdrop-filter:none}
.tray-heading,body[data-style=blaster] .tray-heading{color:#315f79}
.number-choice,body[data-style=blaster] .number-choice,body[data-style=blocks] .number-choice{background:linear-gradient(#fff,#e1f4ff);color:#1c618c;border:2px solid #fff;box-shadow:0 4px 0 #9ecade}
.number-choice:nth-child(2){background:linear-gradient(#fff,#ffe5dc);color:#a13f2e}.number-choice:nth-child(3){background:linear-gradient(#fff,#e0f4df);color:#266d43}
.number-choice[aria-pressed=true],body[data-style=blaster] .number-choice[aria-pressed=true],body[data-style=blocks] .number-choice[aria-pressed=true]{background:linear-gradient(#ffe982,#ffcd3d);border-color:#fff7ce;color:#654700;box-shadow:0 4px 0 #cda023,0 0 0 3px #ffd34455}
.number-choice small{color:#476b82}.number-choice:hover{filter:brightness(1.02)}
.primary-button{background:linear-gradient(#2498da,#1477b8);border:2px solid #79c7ee;color:#fff;box-shadow:0 4px 0 #075e98;text-shadow:none}.primary-button:hover{background:linear-gradient(#36a9e7,#2188ca)}
.equation-toast{background:#fff1e9;color:#a12d26;border:2px solid #f7a68c;box-shadow:0 6px 0 #eac6b1}.equation-toast.correct{background:#e6f8df;color:#246b3c;border:2px solid #8bcc96;box-shadow:0 6px 0 #b9dfaa}
.overlay{background:linear-gradient(#d5f4ffeF,#fff1cceF);backdrop-filter:blur(8px)}.overlay-content{color:var(--ink);background:linear-gradient(#fffef9,#fff4d1);border:3px solid white;box-shadow:0 8px 0 #b8d6e2,0 24px 50px #4385a325}
.overlay h2,.leveling-up h2{color:#146ba3;text-shadow:none}.overlay .eyebrow{color:#2c8057}.overlay p:not(.eyebrow){color:#426781}.celebrate-symbol,.leveling-up .celebrate-symbol{background:#ffde60;color:#695014;border:2px solid #fff1b1;text-shadow:none;box-shadow:0 4px 0 #dab138}
dialog{color-scheme:light;background:linear-gradient(145deg,#fffef9,#edf9ff);color:var(--ink);border:4px solid #fff;box-shadow:0 8px 0 #b5d8e8,0 25px 70px #316e9430}dialog::backdrop{background:#386c8b55;backdrop-filter:blur(8px)}
.dialog-heading h2,.menu-section-title,.workspace-heading h2,.play-heading h1{color:#194b70}.dialog-heading .eyebrow,.workspace-heading .eyebrow,.play-heading .eyebrow{color:#268559}
.menu-credit,.menu-note,.word-source,.menu-settings,.table-options p,dialog>p,#tableChartSection>p,.play-heading>p:last-child{color:#4b7087}.word-source a{color:#126fa9}
.text-button,.menu-settings .text-button{color:#146ba3}.secondary-button,.outline-button,.creative-menu-button{background:#e0f2ff;color:#1d638f;border:2px solid #b6ddef;box-shadow:0 3px 0 #b9d8e5}.creative-menu-button{background:#ffeab1;color:#74541a;border-color:#ffe086}
.style-tile,.style-tile[data-style=blaster],.style-tile[data-style=blocks]{background:linear-gradient(#fff,#e4f5ff);color:#235b7a;border:2px solid #c0deed;box-shadow:0 4px 0 #c1dce8}.style-tile[data-style=blaster]{background:linear-gradient(#fff,#ffe9db)}.style-tile[data-style=blocks]{background:linear-gradient(#fff,#e3f4de)}
.style-tile>span{color:#1b83b9}.style-tile small{color:#4e7184}.style-tile[aria-pressed=true],.style-tile[data-style=blaster][aria-pressed=true],.style-tile[data-style=blocks][aria-pressed=true]{background:#fff0b7;color:#745419;border-color:#e5b83a;box-shadow:0 4px 0 #d6b550}
.mode-tile{background:linear-gradient(#43bb85,#238d60);border:2px solid white;box-shadow:0 4px 0 #b7d8c7;color:white}.mode-subtract{background:linear-gradient(#f58b68,#dc5647)}.mode-multiply{background:linear-gradient(#aa80da,#7b53b2)}.mode-divide{background:linear-gradient(#36a3dc,#167db7)}.mode-words{background:linear-gradient(#f3b13e,#d58420)}.mode-symbol{color:white}.mode-tile small{color:#fff}
.subject-switch button{background:#1885c5;color:white;border:2px solid #87cef1;box-shadow:0 3px 0 #126594}.subject-switch button:nth-child(2){background:#28985f;border-color:#9cdfac}.subject-switch button:nth-child(3){background:#e6684d;border-color:#ffb198}
.table-options,.wheel-picker{background:#e8f6ff;border:2px solid #c4e2f0}.pattern-toggle button,.wheel-picker select,#wordGroup{color:#245d80;background:#fff;border-color:#b8dbea}.pattern-toggle button[aria-pressed=true]{background:#ffdf74;color:#6b4e11;border-color:#e0b638}.wheel-picker label{color:#326a8d}.wheel-picker option:checked{background:#ffdf74;color:#684c10}
.table-chart th,.table-chart button,.table-chart tr:nth-child(even) button,.level-grid button{background:#e0f2ff;color:#275d7a}.table-chart tr:nth-child(even) button{background:#edf7df}.table-chart button.active,.table-chart button:hover{background:#ffdc67!important;color:#614712}.level-grid button.active{background:#1885c5;color:white}
.activity-card,.activity-workspace{background:linear-gradient(#fffef9,#f0faff);color:#235f7e;border:3px solid white;box-shadow:0 6px 0 #b9d7e5,0 12px 22px #4889a514}.activity-card b{color:#194b70}.activity-card small,.activity-enter,.activity-instructions,.activity-tools label,.activity-feedback{color:#406880}.activity-feedback.success{color:#247144}
.activity-tools select{background:white;color:#235d7d;border:2px solid #b8dcec}.creative-canvas{background:white;border:3px solid #b6deed;box-shadow:none}.workspace-heading{border-bottom-color:#d5eaf4}.recipe-card{background:#fff1cf;color:#695729;border-color:#f0ce74}.recipe-card h3{color:#8e601b}.building-boards h3{color:#245c78}.block-board{background:#e6f4fc}.ingredient-buttons button{background:#fff8e5;color:#604c23;border:2px solid #efcf84}.ingredient-buttons small,.mixing-bowl{color:#665a36}
.word-stage-heading,.word-feedback{color:#315e78!important}.word-stage.correct .word-feedback{color:#247144!important}.word-stage.wrong .word-feedback{color:#b63232!important}.word-picture{background:white!important;box-shadow:0 7px 0 #b9d9e5}.word-listen{background:#d6efff;color:#236283;border:2px solid #a5d5ef}.word-slot{background:linear-gradient(#fff,#e1f3ff);color:#23597a;border-color:white;box-shadow:0 5px 0 #a5c9dc;text-shadow:none}.word-slot.missing{background:#ffefb0;color:#826115;border-color:#e6bc47}.word-stage.correct .word-slot{background:#d5f4d9}.word-stage.wrong .missing{background:#ffe1d9}
.game-footer{background:#fffaf0f5;border-top:3px solid #ffdc67;backdrop-filter:none}.game-footer button{background:#e3f4ff;color:#225f83;border:2px solid #b7deef}.game-footer #footerLevels{background:#ffdc67;color:#705013;border-color:#ecc14c}.runner-controls button{background:#fff4c5;color:#6e521a;border:2px solid white;box-shadow:0 4px 0 #d8be6d}.runner-controls button.active{background:#ffce4a;color:#604511}
.round-banner{background:linear-gradient(135deg,#249bd9,#1779b4);border:4px solid #fff1a6;border-radius:28px;box-shadow:0 7px 0 #b2d2df;height:125px;text-shadow:none}.round-banner strong{color:white}.round-banner span{color:#fff0b0}
.home-screen{background-color:#cceeff;color:#194b70}.home-shade{background:linear-gradient(90deg,#e6f7ff 0%,#e6f7fff2 32%,#e6f7ff50 58%,transparent 80%)}.home-content{text-shadow:none}.home-kicker{color:#26774e}.home-content h1{color:#147bc0;text-shadow:0 3px 0 white,0 6px 0 #accfe0}.home-subtitle{color:#1b5275}.home-credit{color:#3d6680}.home-subjects button{background:linear-gradient(#299bd9,#1678b8);border:2px solid white;box-shadow:0 5px 0 #146496,0 12px 20px #377d9d20}.home-subjects button:nth-child(2){background:linear-gradient(#4db878,#288e56);box-shadow:0 5px 0 #226f43}.home-subjects button:nth-child(3){background:linear-gradient(#f58b69,#df5a46);box-shadow:0 5px 0 #b64536}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline-color:#195e92}
@media(max-width:700px){.home-shade{background:linear-gradient(0deg,#e6f7ff 0%,#e6f7fff5 25%,#e6f7ff35 65%,transparent 100%)}}

/* Illustrated game environments and equation lane controls. */
body[data-style=bubble] .arena-wrap{background:#fff6db url('distant-playground.png') center center/cover no-repeat}
body[data-style=blaster] .arena-wrap{background:#fff2c6 url('school-hallway.png') center center/cover no-repeat}
body[data-style=blaster] .number-choice{font-size:clamp(12px,3.1vw,19px);white-space:nowrap;padding:14px 4px 5px;height:58px;min-width:0}
body[data-style=blaster] .number-choice small{color:#315e79;font-size:9px;left:0;right:0;text-align:center}
body[data-style=blaster] .runner-controls{bottom:calc(145px + env(safe-area-inset-bottom))}
body[data-style=blaster] .number-tray{padding-top:10px;padding-bottom:10px}
body[data-style=blocks] .arena-wrap::before{display:none}
body[data-style=blocks] .number-choice:disabled{opacity:.6}
@media(max-width:700px){body[data-style=blaster] .runner-controls{bottom:calc(152px + env(safe-area-inset-bottom))}}
