/* EduMagnet Games 1.14.1: Bold Candy skin for the classic game modes.
   Loaded last on /games/ pages and scoped with html:root body.emg-play-page = html:root body.emg-play-page, so it wins over the older
   layers (emg.css, emg-layout-css, emg-polish-css). Uses Baloo 2 and Nunito from local files only (no CDN),
   keeps text at 14px or larger, and uses AA contrast colours: navy ink on bright surfaces, candy pink, sun yellow
   and violet accents. The shared fullscreen rules are at the end of the file. */
@font-face{font-family:'Baloo 2';src:url(../fonts/baloo2.woff2) format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:Nunito;src:url(../fonts/nunito.woff2) format('woff2');font-weight:400 1000;font-display:swap}
html:root body.emg-play-page{--ink:#14213d;--mut:#3d4a66;--candy:#d81b72;--candyd:#9b0f50;--sun:#ffd21f;--violet:#5b23b0;--violetd:#3a1478;--good:#136b45;--goodbg:#e3f6ec;--bad:#a3261b;--badbg:#ffe9ea;--line:#e6d9ee;--line2:#c9bde0;--sky:#e6f6ff;--bg:#fff3f9;
  --emg-font:Nunito,system-ui,sans-serif;--emg-font-heading:'Baloo 2',Nunito,system-ui,sans-serif;--emg-navy:#14213d;--emg-muted:#3d4a66;--emg-cyan:#5b23b0;--emg-orange:#d81b72;--emg-dark:#14213d;
  background:var(--bg)!important;background-image:radial-gradient(circle at 6% 3%,#ffe1ef 0 160px,transparent 161px),radial-gradient(circle at 97% 26%,#e6f6ff 0 200px,transparent 201px)!important;background-attachment:fixed!important;color:var(--ink)!important;font-family:Nunito,system-ui,sans-serif!important}
html:root body.emg-play-page main,html:root body.emg-play-page main *:not(svg):not(svg *){font-family:Nunito,system-ui,sans-serif!important}
html:root body.emg-play-page main h1,html:root body.emg-play-page main h2,html:root body.emg-play-page main h3,html:root body.emg-play-page main h4,html:root body.emg-play-page .emg-q,html:root body.emg-play-page .emg-stat strong,html:root body.emg-play-page .emg-board-heading span,html:root body.emg-play-page .emg-overlay-card h2,html:root body.emg-play-page .emg-choice-index,html:root body.emg-play-page .emg-tl-slot-num,html:root body.emg-play-page .emg-flashcard strong,html:root body.emg-play-page .emg-wheel-term,html:root body.emg-play-page #emg-wheel-term,html:root body.emg-play-page .emg-result strong,html:root body.emg-play-page .emg-zoom-prompt,html:root body.emg-play-page .emg-maze-prompt,html:root body.emg-play-page .emg-comet-prompt,html:root body.emg-play-page .emg-bubble-prompt,html:root body.emg-play-page .emg-zap-prompt,html:root body.emg-play-page .emg-bingo-prompt,html:root body.emg-play-page .emg-crate-prompt,html:root body.emg-play-page .emg-tl-prompt,html:root body.emg-play-page .emg-deck-lesson h3,html:root body.emg-play-page .emg-tfrun-q{font-family:'Baloo 2',Nunito,system-ui,sans-serif!important;letter-spacing:-.01em!important}
html:root body.emg-play-page main h1,html:root body.emg-play-page main h2,html:root body.emg-play-page main h3,html:root body.emg-play-page .emg-q,html:root body.emg-play-page .emg-board-heading span{font-weight:800!important;color:var(--ink)!important}
/* nothing under 14px */
html:root body.emg-play-page main small,html:root body.emg-play-page main .emg-stat span,html:root body.emg-play-page main .emg-unit,html:root body.emg-play-page main .emg-question-kicker,html:root body.emg-play-page main .emg-overlay-kicker,html:root body.emg-play-page main .emg-overlay-tip,html:root body.emg-play-page main .emg-switch-reason,html:root body.emg-play-page main .emg-switcher-heading small,html:root body.emg-play-page main .emg-result-label,html:root body.emg-play-page main .emg-flash-meta,html:root body.emg-play-page main .emg-flash-face small,html:root body.emg-play-page main .emg-flip-hint,html:root body.emg-play-page main .emg-bubble-drop-label,html:root body.emg-play-page main .emg-maze-zone-label,html:root body.emg-play-page main .emg-tl-slot-num,html:root body.emg-play-page main .emg-chip-caption,html:root body.emg-play-page main .emg-mem-caption,html:root body.emg-play-page main .emg-wheel-center span,html:root body.emg-play-page main .emg-group-count,html:root body.emg-play-page main .emg-sort-count,html:root body.emg-play-page main .emg-sort-drop-hint,html:root body.emg-play-page main .emg-deck-tip,html:root body.emg-play-page main .emg-tfrun-meta,html:root body.emg-play-page main .emg-footer,html:root body.emg-play-page .emg-footer *{font-size:max(14px,1em)!important}
html:root body.emg-play-page main .emg-wheel-center strong{font-size:max(16px,1em)!important}
/* --- play bar & stats --- */
html:root body.emg-play-page .emg-play-bar{background:transparent!important;border:0!important;box-shadow:none!important;gap:12px!important;margin:4px 0 16px!important}
html:root body.emg-play-page .emg-stats{gap:10px!important}
html:root body.emg-play-page .emg-stat{background:#fff!important;border:2px solid var(--line)!important;border-radius:16px!important;box-shadow:0 3px 0 rgba(20,33,61,.10)!important;color:var(--ink)!important;padding:8px 16px!important;min-width:96px}
html:root body.emg-play-page .emg-stat strong{color:var(--ink)!important;font-size:26px!important;font-weight:800!important;line-height:1.1!important}
html:root body.emg-play-page .emg-stat span{color:var(--mut)!important;font-size:14px!important;letter-spacing:.04em!important;font-weight:800!important;text-transform:uppercase!important;margin-top:2px!important}
html:root body.emg-play-page .emg-stat strong .emg-unit{display:inline!important;text-transform:none!important;letter-spacing:0!important;font-size:16px!important;color:inherit!important;margin-left:2px!important}
html:root body.emg-play-page .emg-stat-lives strong{color:var(--candy)!important;text-shadow:none!important}
html:root body.emg-play-page .emg-stat-know strong{color:var(--good)!important}
html:root body.emg-play-page .emg-stat-learning strong{color:#8a4b00!important}
html:root body.emg-play-page .emg-stat-timer.is-low{border-color:#f3a1a6!important;background:var(--badbg)!important}
html:root body.emg-play-page .emg-stat-timer.is-low strong{color:var(--bad)!important}
html:root body.emg-play-page .emg-play-hint{color:var(--mut)!important;font-size:15px!important;font-weight:700!important}
html:root body.emg-play-page .emg-btn-fs-stage{background:#fff!important;color:var(--ink)!important;border:2px solid var(--ink)!important;border-radius:14px!important;box-shadow:0 3px 0 var(--ink)!important;font-weight:900!important;font-size:15px!important;min-height:44px!important;padding:8px 14px!important}
html:root body.emg-play-page .emg-btn-fs-stage:hover{background:var(--sun)!important}
/* --- stage --- */
html:root body.emg-play-page .emg-stage{background-color:#fff!important;border:3px solid var(--ink)!important;border-radius:26px!important;box-shadow:0 8px 0 var(--ink)!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-progress{height:10px!important;background:#f3e6f0!important;border-radius:999px!important}
html:root body.emg-play-page .emg-progress i{background:linear-gradient(90deg,var(--candy),#ff8a3d,var(--sun))!important;border-radius:999px!important}
html:root body.emg-play-page .emg-question-kicker,html:root body.emg-play-page .emg-overlay-kicker{color:var(--candy)!important;font-size:15px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important}
html:root body.emg-play-page .emg-board-heading strong,html:root body.emg-play-page .emg-stage-help,html:root body.emg-play-page .emg-stage [class$="-feedback"],html:root body.emg-play-page .emg-stage [role="status"]{color:var(--mut)!important;font-weight:700!important}
html:root body.emg-play-page .emg-board-heading span{color:var(--ink)!important}
html:root body.emg-play-page .emg-explain{background:var(--sky)!important;border:2px solid #b9e3fb!important;border-radius:16px!important;color:var(--ink)!important}
/* answer buttons, chips and cards */
html:root body.emg-play-page .emg-choice,html:root body.emg-play-page .emg-zoom-choice,html:root body.emg-play-page .emg-crate-choice,html:root body.emg-play-page .emg-deck-tf-btn,html:root body.emg-play-page .emg-chip,html:root body.emg-play-page .emg-sort-item,html:root body.emg-play-page .emg-tl-card,html:root body.emg-play-page .emg-bingo-cell{background:#fff!important;color:var(--ink)!important;border:3px solid var(--line2)!important;border-radius:18px!important;box-shadow:0 4px 0 rgba(20,33,61,.14)!important;font-weight:800!important}
html:root body.emg-play-page .emg-choice:not(:disabled):hover,html:root body.emg-play-page .emg-zoom-choice:not(:disabled):hover,html:root body.emg-play-page .emg-crate-choice:not(:disabled):hover,html:root body.emg-play-page .emg-chip:hover,html:root body.emg-play-page .emg-sort-item:hover,html:root body.emg-play-page .emg-tl-card:hover,html:root body.emg-play-page .emg-bingo-cell:not(:disabled):hover{border-color:var(--ink)!important;transform:translateY(-2px)}
html:root body.emg-play-page .emg-choice-index{background:var(--violet)!important;color:#fff!important;border:0!important;font-weight:800!important}
html:root body.emg-play-page .emg-choice.correct,html:root body.emg-play-page .emg-zoom-choice.correct,html:root body.emg-play-page .emg-zoom-choice.is-correct,html:root body.emg-play-page .emg-crate-choice.is-correct,html:root body.emg-play-page .emg-crate-choice.correct,html:root body.emg-play-page .emg-chip.is-matched,html:root body.emg-play-page .emg-chip.matched,html:root body.emg-play-page .emg-bingo-cell.is-marked,html:root body.emg-play-page .emg-bingo-cell.is-correct,html:root body.emg-play-page .emg-sort-item.is-correct,html:root body.emg-play-page .emg-deck-tf-btn.correct{background:var(--goodbg)!important;border-color:var(--good)!important;color:#0d4f32!important}
html:root body.emg-play-page .emg-choice.wrong,html:root body.emg-play-page .emg-zoom-choice.wrong,html:root body.emg-play-page .emg-zoom-choice.is-wrong,html:root body.emg-play-page .emg-crate-choice.is-wrong,html:root body.emg-play-page .emg-crate-choice.wrong,html:root body.emg-play-page .emg-chip.is-wrong,html:root body.emg-play-page .emg-chip.wrong,html:root body.emg-play-page .emg-bingo-cell.is-wrong,html:root body.emg-play-page .emg-sort-item.is-wrong,html:root body.emg-play-page .emg-deck-tf-btn.wrong{background:var(--badbg)!important;border-color:var(--bad)!important;color:#7d1218!important}
html:root body.emg-play-page .emg-choice.correct .emg-choice-index{background:var(--good)!important}
html:root body.emg-play-page .emg-choice.wrong .emg-choice-index{background:var(--bad)!important}
html:root body.emg-play-page .emg-chip.is-selected,html:root body.emg-play-page .emg-chip.selected,html:root body.emg-play-page .emg-sort-item.is-selected,html:root body.emg-play-page .emg-sort-item[aria-pressed="true"],html:root body.emg-play-page .emg-tl-card.is-selected,html:root body.emg-play-page .emg-tl-card[aria-pressed="true"]{border-color:var(--violet)!important;background:#f1eafc!important;box-shadow:0 0 0 3px rgba(91,35,176,.25)!important}
html:root body.emg-play-page .emg-tl-card{background:var(--violet)!important;color:#fff!important;border-color:var(--violetd)!important}
html:root body.emg-play-page .emg-tl-card.is-selected,html:root body.emg-play-page .emg-tl-card[aria-pressed="true"]{background:#fff!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-tl-slot{background:#fff!important;border:3px dashed var(--line2)!important;border-radius:16px!important;color:var(--mut)!important}
html:root body.emg-play-page .emg-tl-slot.is-filled,html:root body.emg-play-page .emg-tl-slot:has(.emg-tl-card){border-style:solid!important;border-color:var(--violet)!important}
html:root body.emg-play-page .emg-tl-slot-num{color:var(--violet)!important;font-weight:900!important}
html:root body.emg-play-page .emg-sort-pool{background:#fff7d6!important;border:2px dashed #e0b400!important;border-radius:18px!important}
html:root body.emg-play-page .emg-sort-bucket{background:#f7f3ff!important;border:3px solid var(--line2)!important;border-radius:20px!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-sort-bucket.is-over,html:root body.emg-play-page .emg-sort-bucket.is-ready{border-color:var(--violet)!important}
html:root body.emg-play-page .emg-sort-bucket.is-correct{border-color:var(--good)!important}
html:root body.emg-play-page .emg-sort-bucket.is-wrong{border-color:var(--bad)!important;background:var(--badbg)!important}
html:root body.emg-play-page .emg-sort-bucket-heading,html:root body.emg-play-page .emg-sort-group-name,html:root body.emg-play-page .emg-sort-buckets button{color:var(--ink)!important;background:transparent!important}
html:root body.emg-play-page .emg-sort-drop-hint,html:root body.emg-play-page .emg-sort-count,html:root body.emg-play-page .emg-group-count{color:var(--mut)!important}
html:root body.emg-play-page .emg-sort-placed,html:root body.emg-play-page .emg-sort-bucket .emg-sort-item{position:static!important}
/* primary & secondary buttons */
html:root body.emg-play-page .emg-btn-primary,html:root body.emg-play-page .emg-tl-check,html:root body.emg-play-page .emg-deck-submit,html:root body.emg-play-page .emg-zoom-buzz,html:root body.emg-play-page #emg-flip,html:root body.emg-play-page .emg-sweep-next{background:var(--candy)!important;color:#fff!important;border:0!important;border-radius:16px!important;box-shadow:0 5px 0 var(--candyd)!important;font-weight:900!important;text-shadow:none!important}
html:root body.emg-play-page .emg-btn-primary:hover,html:root body.emg-play-page .emg-tl-check:hover,html:root body.emg-play-page .emg-deck-submit:hover,html:root body.emg-play-page .emg-zoom-buzz:hover{background:#c0145f!important}
html:root body.emg-play-page main .emg-btn:not(.emg-btn-primary):not(.emg-btn-fs-stage):not(.emg-zoom-buzz):not(#emg-flip){background:#fff!important;color:var(--ink)!important;border:2px solid var(--line2)!important;border-radius:14px!important;box-shadow:0 3px 0 rgba(20,33,61,.12)!important;font-weight:800!important}
html:root body.emg-play-page .emg-btn-know{background:var(--goodbg)!important;color:#0d4f32!important;border-color:var(--good)!important}
html:root body.emg-play-page .emg-btn-learning{background:#fff4d6!important;color:#6b3d00!important;border-color:#d69a00!important}
html:root body.emg-play-page .emg-deck-input,html:root body.emg-play-page .emg-builder-input,html:root body.emg-play-page main input[type=text],html:root body.emg-play-page main input[type=number]{border:3px solid var(--line2)!important;border-radius:14px!important;color:var(--ink)!important;background:#fff!important;font-size:18px!important}
html:root body.emg-play-page main input:focus{border-color:var(--violet)!important;outline:3px solid rgba(91,35,176,.25)!important}
html:root body.emg-play-page main :focus-visible{outline:4px solid #1546b8!important;outline-offset:3px!important}
/* lesson & deck cards */
html:root body.emg-play-page .emg-deck-lesson,html:root body.emg-play-page .emg-deck-tf,html:root body.emg-play-page .emg-deck-order,html:root body.emg-play-page .emg-deck-cloze,html:root body.emg-play-page .emg-deck-multi,html:root body.emg-play-page .emg-deck-tfrun{background:#fff!important;border:3px solid var(--line2)!important;border-radius:22px!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-deck-lesson h3,html:root body.emg-play-page .emg-deck-lesson strong{color:var(--ink)!important}
html:root body.emg-play-page .emg-deck-lesson-art{color:var(--violet)!important}
html:root body.emg-play-page .emg-deck-tip,html:root body.emg-play-page .emg-tfrun-meta{color:var(--mut)!important;background:transparent!important}
/* dark arenas become a violet candy night sky */
html:root body.emg-play-page .emg-bubble-sky,html:root body.emg-play-page .emg-comet-sky,html:root body.emg-play-page .emg-rocket-sky,html:root body.emg-play-page .emg-recall-belt,html:root body.emg-play-page .emg-zap-board{background:linear-gradient(165deg,#6a2bc7 0%,#3a1478 100%)!important;border:3px solid var(--ink)!important;border-radius:22px!important}
html:root body.emg-play-page .emg-bubble strong,html:root body.emg-play-page .emg-comet strong,html:root body.emg-play-page .emg-zap-mole strong{background:#fff!important;color:var(--ink)!important;border:2px solid var(--ink)!important;border-radius:12px!important;box-shadow:0 3px 0 var(--ink)!important;font-weight:800!important;font-size:16px!important}
html:root body.emg-play-page .emg-bubble.is-correct strong,html:root body.emg-play-page .emg-comet.is-correct strong{background:var(--goodbg)!important;border-color:var(--good)!important}
html:root body.emg-play-page .emg-bubble.is-miss strong,html:root body.emg-play-page .emg-comet.is-miss strong,html:root body.emg-play-page .emg-comet.is-wrong strong{background:var(--badbg)!important;border-color:var(--bad)!important;color:#7d1218!important}
html:root body.emg-play-page .emg-bubble-drop{background:#fff7d6!important;border:3px dashed #c99700!important;color:var(--ink)!important;border-radius:18px!important}
html:root body.emg-play-page .emg-bubble-drop.is-filled{background:var(--goodbg)!important;border-color:var(--good)!important;border-style:solid!important}
html:root body.emg-play-page .emg-bubble-drop-label{background:transparent!important;color:#6b4a00!important;font-weight:900!important}
html:root body.emg-play-page .emg-bubble-drop small,html:root body.emg-play-page .emg-bubble-drop strong{color:var(--ink)!important}
/* bubble pop: a tidy grid of bubbles so labels never overlap */
html:root body.emg-play-page .emg-bubble-sky{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:14px;padding:22px 16px!important;min-height:300px!important}
html:root body.emg-play-page .emg-bubble{position:relative!important;left:auto!important;bottom:auto!important;width:100%!important;min-width:0!important}
html:root body.emg-play-page .emg-bubble strong{min-width:0!important;max-width:none!important;width:100%!important;white-space:normal!important;overflow-wrap:anywhere;padding:10px 10px!important;line-height:1.25!important}
/* circuit maze */
html:root body.emg-play-page .emg-maze-board{background:#f7f3ff!important;border:3px solid var(--ink)!important;border-radius:22px!important;padding:12px!important}
html:root body.emg-play-page .emg-maze-cell{background:#fff!important;border:3px solid var(--line2)!important;border-radius:16px!important;color:var(--ink)!important;box-shadow:0 4px 0 rgba(20,33,61,.12)!important}
html:root body.emg-play-page .emg-maze-path{background:#ede4fb!important;border-color:#b79be6!important}
html:root body.emg-play-page .emg-maze-hazard{background:#ffe9ea!important;border-color:#f3a1a6!important;color:#7d1218!important}
html:root body.emg-play-page .emg-maze-zone-label{background:var(--sun)!important;color:var(--ink)!important;border-radius:8px!important;padding:2px 8px!important;font-weight:900!important}
html:root body.emg-play-page .emg-maze-cell strong,html:root body.emg-play-page .emg-maze-cell span{color:inherit!important}
/* crates, tiles, memory, flashcards */
html:root body.emg-play-page .emg-crate,html:root body.emg-play-page .emg-disc-face,html:root body.emg-play-page .emg-mem-face{border-radius:20px!important}
html:root body.emg-play-page .emg-crate{background:#fff!important;border:3px solid var(--line2)!important;color:var(--ink)!important;box-shadow:0 5px 0 rgba(20,33,61,.14)!important}
html:root body.emg-play-page .emg-disc-front,html:root body.emg-play-page .emg-mem-front{background:linear-gradient(160deg,var(--violet),var(--violetd))!important;color:#fff!important;border:3px solid var(--ink)!important}
html:root body.emg-play-page .emg-disc-back,html:root body.emg-play-page .emg-mem-back{background:#fff!important;color:var(--ink)!important;border:3px solid var(--line2)!important}
html:root body.emg-play-page .emg-disc-front *,html:root body.emg-play-page .emg-mem-front *{color:#fff!important}
html:root body.emg-play-page .emg-disc-back *,html:root body.emg-play-page .emg-mem-back *{color:var(--ink)!important}
html:root body.emg-play-page .emg-flashcard .emg-flash-face{border:3px solid var(--ink)!important;border-radius:26px!important;box-shadow:0 8px 0 var(--ink)!important}
html:root body.emg-play-page .emg-flash-front{background:#fff!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-flash-back{background:var(--violet)!important;color:#fff!important}
html:root body.emg-play-page .emg-flash-front *{color:var(--ink)!important}
html:root body.emg-play-page .emg-flash-back *{color:#fff!important}
html:root body.emg-play-page .emg-flash-meta,html:root body.emg-play-page .emg-study-actions>span{color:var(--mut)!important;font-weight:800!important}
/* spin wheel */
html:root body.emg-play-page .emg-wheel-center{background:var(--candy)!important;color:#fff!important;border:4px solid #fff!important;box-shadow:0 0 0 3px var(--ink)!important}
html:root body.emg-play-page .emg-wheel-center *{color:#fff!important}
html:root body.emg-play-page .emg-wheel-pointer{color:var(--candy)!important}
html:root body.emg-play-page .emg-wheel-result{background:#fff!important;border:3px solid var(--line2)!important;border-radius:20px!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-result-label{color:var(--candy)!important;font-weight:900!important}
/* zoom guess */
html:root body.emg-play-page .emg-zoom-tile{background:var(--violet)!important;border-color:#fff!important}
html:root body.emg-play-page .emg-zoom-art{background:#fff7d6!important;border:3px solid var(--ink)!important;border-radius:20px!important}
/* bingo */
html:root body.emg-play-page .emg-bingo-cell.is-marked{box-shadow:inset 0 0 0 3px var(--good)!important}
/* overlay */
html:root body.emg-play-page .emg-overlay{background:rgba(20,33,61,.55)!important;backdrop-filter:blur(6px)}
html:root body.emg-play-page .emg-overlay-card{background:#fff!important;border:3px solid var(--ink)!important;border-radius:26px!important;box-shadow:0 10px 0 var(--ink)!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-overlay-card h2{color:var(--ink)!important;font-weight:800!important}
html:root body.emg-play-page .emg-overlay-card p,html:root body.emg-play-page .emg-overlay-tip{color:var(--mut)!important;font-weight:700!important}
html:root body.emg-play-page .emg-overlay-illustration{background:#fff7d6!important;border:3px solid var(--ink)!important;border-radius:20px!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-overlay-back{color:#1546b8!important;font-weight:800!important}
html:root body.emg-play-page .emg-penguin-level{background:#fff!important;border:3px solid var(--line2)!important;color:var(--ink)!important;border-radius:14px!important}
html:root body.emg-play-page .emg-penguin-level.is-selected{border-color:var(--violet)!important;background:#f1eafc!important}
html:root body.emg-play-page .emg-penguin-level span{color:var(--mut)!important;font-size:14px!important}
/* switcher & footer */
html:root body.emg-play-page .emg-switcher{background:#fff!important;border:3px solid var(--line)!important;border-radius:22px!important;box-shadow:none!important}
html:root body.emg-play-page .emg-switcher-heading strong{font-family:'Baloo 2',Nunito,sans-serif!important;font-size:20px!important;color:var(--ink)!important}
html:root body.emg-play-page .emg-switcher-heading small{color:var(--mut)!important;font-size:15px!important}
html:root body.emg-play-page .emg-switch-link:not(.is-disabled){background:#fff!important;border:2px solid var(--line2)!important;color:var(--ink)!important;border-radius:999px!important;font-weight:800!important;font-size:15px!important;box-shadow:0 2px 0 rgba(20,33,61,.10)!important}
html:root body.emg-play-page .emg-switch-link:not(.is-disabled):hover{border-color:var(--ink)!important}
html:root body.emg-play-page .emg-switch-link.is-active{background:var(--violet)!important;color:#fff!important;border-color:var(--violet)!important}
html:root body.emg-play-page .emg-switch-link.is-disabled{color:#5a6478!important;background:#f5f3f8!important;border:2px dashed #cfc8da!important;border-radius:999px!important}
html:root body.emg-play-page .emg-switcher-toggle{background:#fff!important;color:var(--ink)!important;border:2px solid var(--ink)!important;border-radius:999px!important;font-weight:900!important;font-size:15px!important}
html:root body.emg-play-page .emg-footer{color:var(--mut)!important;font-weight:700!important}
html:root body.emg-play-page .emg-footer a{color:#1546b8!important}
/* --- phone layouts --- */
@media (max-width:640px){
  html:root body.emg-play-page .emg-play-bar{display:grid!important;grid-template-columns:1fr auto;align-items:stretch;gap:8px!important;margin:2px 0 10px!important}
  html:root body.emg-play-page .emg-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;gap:6px!important;width:100%!important;grid-column:1/-1}
  html:root body.emg-play-page .emg-stat{min-width:0!important;padding:6px 8px!important;border-radius:12px!important;text-align:center!important}
  html:root body.emg-play-page .emg-stat strong{font-size:20px!important}
  html:root body.emg-play-page .emg-stat span{font-size:14px!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html:root body.emg-play-page .emg-play-bar-actions{grid-column:1/-1;justify-content:stretch!important}
  html:root body.emg-play-page .emg-play-hint{display:none!important}
  html:root body.emg-play-page .emg-btn-fs-stage{width:100%!important;justify-content:center!important;min-height:44px!important}
  html:root body.emg-play-page .emg-stage{padding:16px 14px 22px!important;border-radius:22px!important;box-shadow:0 6px 0 var(--ink)!important}
  html:root body.emg-play-page .emg-q{font-size:clamp(24px,6.4vw,30px)!important;margin:4px 0 16px!important}
  html:root body.emg-play-page .emg-choices{grid-template-columns:1fr!important;gap:12px!important}
  html:root body.emg-play-page .emg-choice{min-height:64px!important;font-size:20px!important;padding:12px 16px!important}
  html:root body.emg-play-page .emg-bubble-sky{grid-template-columns:repeat(2,minmax(0,1fr));min-height:0!important;gap:12px}
  html:root body.emg-play-page .emg-bubble svg{width:48px!important;height:48px!important}
  html:root body.emg-play-page .emg-bubble strong{font-size:15px!important}
  html:root body.emg-play-page .emg-sort-pool{position:static!important;max-height:none!important}
  html:root body.emg-play-page .emg-sort-buckets{grid-template-columns:1fr!important}
  html:root body.emg-play-page .emg-sort-bucket{min-height:120px!important}
}
/* ================= shared fullscreen (native API or the full-window fallback) ================= */
.emg-fs-bar{display:none}
html.emg-pseudo-fs-lock,html.emg-pseudo-fs-lock body{overflow:hidden!important;overscroll-behavior:none}
html:root body.emg-play-page .emg-stage.emg-pseudo-fs{position:fixed!important;inset:0!important;z-index:2147483000!important;margin:0!important;max-width:none!important}
html:root body.emg-play-page .emg-stage:fullscreen,html:root body.emg-play-page .emg-stage:-webkit-full-screen,html:root body.emg-play-page .emg-stage.emg-pseudo-fs{width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;align-content:stretch!important;gap:clamp(10px,1.6vh,20px)!important;padding:clamp(10px,1.8vh,22px) clamp(14px,3vw,56px) clamp(14px,2.4vh,28px)!important;overflow:auto!important;background-color:#fff!important;background-image:radial-gradient(circle at 4% 4%,#ffe1ef 0 120px,transparent 121px),radial-gradient(circle at 98% 96%,#e6f6ff 0 160px,transparent 161px)!important}
html:root body.emg-play-page .emg-stage:fullscreen>.emg-fs-bar,html:root body.emg-play-page .emg-stage:-webkit-full-screen>.emg-fs-bar,html:root body.emg-play-page .emg-stage.emg-pseudo-fs>.emg-fs-bar{display:flex!important;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto;flex-wrap:wrap}
html:root body.emg-play-page .emg-fs-bar .emg-stats{display:flex!important;gap:8px!important;flex-wrap:wrap;width:auto!important}
html:root body.emg-play-page .emg-fs-bar .emg-stat{padding:4px 12px!important;min-width:0!important;box-shadow:none!important}
html:root body.emg-play-page .emg-fs-bar .emg-stat strong{font-size:20px!important}
html:root body.emg-play-page .emg-fs-exit{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:8px 16px;border-radius:14px;border:2px solid var(--ink);background:#fff;color:var(--ink);font:900 16px/1.1 Nunito,system-ui,sans-serif;box-shadow:0 3px 0 var(--ink);cursor:pointer}
html:root body.emg-play-page .emg-fs-exit:hover{background:var(--sun)}
html:root body.emg-play-page .emg-stage:fullscreen>.emg-progress,html:root body.emg-play-page .emg-stage.emg-pseudo-fs>.emg-progress{flex:0 0 auto;margin:0!important}
/* the game's main board grows to use the remaining height */
html:root body.emg-play-page .emg-stage:fullscreen>:not(.emg-fs-bar):not(.emg-progress):not(.emg-overlay):not(.emg-explain):not([hidden]),
html:root body.emg-play-page .emg-stage.emg-pseudo-fs>:not(.emg-fs-bar):not(.emg-progress):not(.emg-overlay):not(.emg-explain):not([hidden]){width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
html:root body.emg-play-page .emg-stage:fullscreen .emg-overlay,html:root body.emg-play-page .emg-stage.emg-pseudo-fs .emg-overlay{position:fixed!important;inset:0!important}
html:root body.emg-play-page .emg-stage:fullscreen::before,html:root body.emg-play-page .emg-stage:fullscreen::after,html:root body.emg-play-page .emg-stage.emg-pseudo-fs::before,html:root body.emg-play-page .emg-stage.emg-pseudo-fs::after{display:none!important}
html:root body.emg-play-page .emg-stage:fullscreen,html:root body.emg-play-page .emg-stage.emg-pseudo-fs{background-image:none!important}
/* main containers take the free height (grow, but never squash content: phones scroll inside the stage) */
html:root body.emg-play-page .emg-stage:fullscreen>:is(.emg-question-wrap,.emg-board-heading,.emg-stage-help,.emg-sort-feedback),html:root body.emg-play-page .emg-stage.emg-pseudo-fs>:is(.emg-question-wrap,.emg-board-heading,.emg-stage-help,.emg-sort-feedback){flex:0 0 auto!important;margin-top:0!important;margin-bottom:0!important}
html:root body.emg-play-page .emg-stage:fullscreen>:is(.emg-bubble-layout,.emg-maze-layout,.emg-comet-layout,.emg-deck-wrap,.emg-disc-board,.emg-flash-layout,.emg-sort-buckets,.emg-zap-layout,.emg-match,.emg-memory,.emg-crate-board,.emg-choices,.emg-bingo-layout,.emg-wheel-layout,.emg-tl-layout,.emg-zoom-layout),
html:root body.emg-play-page .emg-stage.emg-pseudo-fs>:is(.emg-bubble-layout,.emg-maze-layout,.emg-comet-layout,.emg-deck-wrap,.emg-disc-board,.emg-flash-layout,.emg-sort-buckets,.emg-zap-layout,.emg-match,.emg-memory,.emg-crate-board,.emg-choices,.emg-bingo-layout,.emg-wheel-layout,.emg-tl-layout,.emg-zoom-layout){flex:1 0 auto!important;min-height:0!important}
html:root body.emg-play-page .emg-is-fs-on :is(.emg-bubble-layout,.emg-maze-layout,.emg-comet-layout,.emg-zap-layout,.emg-bingo-layout,.emg-tl-layout,.emg-zoom-layout,.emg-deck-wrap,.emg-flash-layout){display:flex!important;flex-direction:column!important;gap:clamp(8px,1.4vh,16px)!important;padding-bottom:0!important}
html:root body.emg-play-page .emg-is-fs-on :is(.emg-maze-board,.emg-comet-sky,.emg-bubble-sky,.emg-zap-board,.emg-bingo-board,.emg-tl-track){flex:1 0 auto!important}
html:root body.emg-play-page .emg-is-fs-on :is(.emg-maze-board,.emg-zap-board,.emg-bingo-board,.emg-disc-board,.emg-memory,.emg-crate-board,.emg-choices){align-content:stretch!important;grid-auto-rows:1fr!important}
html:root body.emg-play-page .emg-is-fs-on :is(.emg-maze-board,.emg-zap-board,.emg-bingo-board,.emg-disc-board,.emg-memory,.emg-crate-board,.emg-choices)>*{min-height:0!important;height:auto!important}
html:root body.emg-play-page .emg-is-fs-on .emg-disc-board>*>*{min-height:100%!important;height:100%!important}
html:root body.emg-play-page .emg-is-fs-on .emg-memory .emg-mem-inner{height:100%!important;min-height:100%!important}
html:root body.emg-play-page .emg-is-fs-on .emg-choices{max-width:none!important;width:100%!important}
html:root body.emg-play-page .emg-is-fs-on .emg-choice{min-height:0!important}
html:root body.emg-play-page .emg-is-fs-on .emg-q{font-size:clamp(28px,4.2vh,54px)!important;margin:0!important}
html:root body.emg-play-page .emg-is-fs-on .emg-choice{font-size:clamp(20px,3vh,34px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-match{align-items:stretch!important}
html:root body.emg-play-page .emg-is-fs-on .emg-col{display:flex!important;flex-direction:column!important}
html:root body.emg-play-page .emg-is-fs-on .emg-col>.emg-chip{flex:1 0 auto!important}
html:root body.emg-play-page .emg-is-fs-on .emg-deck-wrap{max-width:none!important;width:100%!important;justify-content:flex-start}
html:root body.emg-play-page .emg-is-fs-on .emg-deck-wrap>:is(.emg-choices,article,.emg-deck-tf,.emg-deck-order,.emg-deck-multi,.emg-deck-cloze,.emg-deck-tfrun,form){flex:1 0 auto!important}
html:root body.emg-play-page .emg-is-fs-on .emg-deck-wrap>article,html:root body.emg-play-page .emg-is-fs-on .emg-deck-wrap>:is(.emg-deck-tf,.emg-deck-order,.emg-deck-multi,.emg-deck-cloze,.emg-deck-tfrun,form){display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;width:100%!important;max-width:none!important;margin:0!important;gap:14px}
html:root body.emg-play-page .emg-is-fs-on .emg-deck-lesson{font-size:clamp(18px,2.6vh,28px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-deck-lesson h3{font-size:clamp(28px,4.4vh,52px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-flash-layout{max-width:min(1100px,100%)!important;width:100%!important;margin:0 auto!important}
html:root body.emg-play-page .emg-is-fs-on .emg-flashcard{flex:1 0 auto!important;max-width:none!important;min-height:clamp(260px,52vh,640px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-wheel-layout{align-items:center!important;align-content:center!important}
html:root body.emg-play-page .emg-is-fs-on .emg-wheel-wrap{width:min(70vh,52vw)!important;height:auto!important;max-width:100%!important;aspect-ratio:1/1}
html:root body.emg-play-page .emg-is-fs-on .emg-wheel-wrap canvas{width:100%!important;height:100%!important}
html:root body.emg-play-page .emg-is-fs-on .emg-sort-buckets>*{min-height:clamp(160px,30vh,420px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-bubble-sky{min-height:clamp(240px,40vh,560px)!important}
html:root body.emg-play-page .emg-is-fs-on .emg-comet-sky{min-height:clamp(260px,46vh,620px)!important}
@media (max-width:640px){
  html:root body.emg-play-page .emg-fs-exit-long{display:none}
  html:root body.emg-play-page .emg-fs-bar .emg-stats{flex-wrap:nowrap!important;flex:1 1 auto;min-width:0}
  html:root body.emg-play-page .emg-fs-bar .emg-stat{flex:1 1 0;padding:4px 6px!important}
  html:root body.emg-play-page .emg-fs-bar .emg-stat span{white-space:normal!important}
  html:root body.emg-play-page .emg-stat span{white-space:normal!important}
  html:root body.emg-play-page .emg-is-fs-on .emg-choices{grid-template-columns:1fr!important}
  html:root body.emg-play-page .emg-is-fs-on .emg-wheel-wrap{width:min(86vw,46vh)!important}
}
html:root body.emg-play-page .emg-is-fs-on>*{flex-shrink:0!important}
html:root body.emg-play-page .emg-is-fs-on .emg-sort-pool{height:auto!important;max-height:none!important;overflow:visible!important}
html:root body.emg-play-page .emg-is-fs-on .emg-zoom-stage{flex:0 0 auto!important;width:min(54vh,100%)!important;max-width:none!important;height:auto!important;aspect-ratio:1/1;margin-left:auto!important;margin-right:auto!important}
html:root body.emg-play-page .emg-group-item,html:root body.emg-play-page .emg-sort-item{padding:8px 14px!important;min-height:44px!important}
/* site header on play pages: Bold Candy (was navy + gold) */
html:root body.emg-play-page .emgh-header{background:#fff!important;background-image:none!important;border-bottom:4px solid #14213d!important;box-shadow:0 6px 0 rgba(20,33,61,.08)!important;color:#14213d!important}
html:root body.emg-play-page .emgh-header::before,html:root body.emg-play-page .emgh-header::after{display:none!important}
html:root body.emg-play-page .emgh-brand{color:#14213d!important;font-family:'Baloo 2',Nunito,sans-serif!important;font-weight:800!important;font-size:20px!important}
html:root body.emg-play-page .emgh-brand span{color:#d81b72!important}
html:root body.emg-play-page .emgh-context strong{color:#14213d!important;font-family:'Baloo 2',Nunito,sans-serif!important}
html:root body.emg-play-page .emgh-context span{color:#3d4a66!important;font-size:14px!important}
html:root body.emg-play-page .emgh-nav>a:not(.emgh-cta){color:#14213d!important;font-family:Nunito,sans-serif!important;font-weight:800!important;font-size:15px!important;text-decoration:none!important}
html:root body.emg-play-page .emgh-nav>a:not(.emgh-cta):hover{color:#d81b72!important}
html:root body.emg-play-page .emgh-header .emgh-nav a.emgh-cta,html:root body.emg-play-page .emgh-header a.emgh-cta:hover,html:root body.emg-play-page .emgh-header a.emgh-cta:focus{background:#d81b72!important;background-image:none!important;color:#fff!important;border:0!important;border-radius:14px!important;box-shadow:0 4px 0 #a3115a!important;font-weight:900!important;font-size:15px!important}
html:root body.emg-play-page .emgh-tools .emg-icon-btn{background:#fff!important;color:#14213d!important;border:2px solid #14213d!important;box-shadow:none!important}
html:root body.emg-play-page .emgh-menu-btn{background:#fff!important;color:#14213d!important;border:2px solid #14213d!important;font-size:15px!important}
html:root body.emg-play-page .emgh-menu-icon i{background:#14213d!important}
@media (max-width:720px){
  html:root body.emg-play-page .emgh-nav{background:#fff!important;background-image:none!important;border:3px solid #14213d!important;color:#14213d!important}
  html:root body.emg-play-page .emgh-nav>a:not(.emgh-cta){border-color:#d9cde6!important;font-size:16px!important}
}
