/* StickyWord whole-app visual candidate — browser preview only.
 * Material and typography overrides. Original art, scene coordinates, Home,
 * Profile's six PNG tiles and the separate Game glass panels stay intact. */
@font-face{font-family:Fredoka;src:url('review-fonts/Fredoka.woff2') format('woff2');font-weight:300 700;font-style:normal;font-display:swap}
@font-face{font-family:Nunito;src:url('review-fonts/Nunito.woff2') format('woff2');font-weight:200 1000;font-style:normal;font-display:swap}
@font-face{font-family:Andika;src:url('review-fonts/Andika-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Andika;src:url('review-fonts/Andika-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}
:root{
 --fui-ink:#3b485c;--fui-muted:#53657a;--fui-line:#cfe3ed;
 --fui-paper:linear-gradient(145deg,#fff,#f2faff);
 --fui-lemon:linear-gradient(155deg,#fffbd8 2%,#fff3a0 38%,#ffe66e);
 --fui-sky:linear-gradient(150deg,#fff,#eaf8ff 50%,#c2eaff);
 --fui-pink:linear-gradient(150deg,#fff4f7,#ffd0df);
 --fui-mint:linear-gradient(150deg,#fff,#ddfaeb);
 --fui-lavender:linear-gradient(150deg,#fff,#f0e8ff);
 --fui-card-shadow:inset 0 2px 0 #fff,0 4px 12px #5594af0b;
 --fui-button-shadow:inset 0 2px 0 #fff,0 2px 0 #b3dfef50;
 --fui-dialog:linear-gradient(155deg,#fff,#fffef9 75%,#f6f2ff);
}

/* Three clearly separated type roles; graphical wordmarks are never rebuilt. */
body{font-family:Nunito,sans-serif}
:is(.worlds-screen,.sw-screen,.game-category-dialog,.learning-mode-card,
 .overlay-card,.buddy-dialog,#avatar-dialog,#player-settings-dialog,#daily-time-dialog){font-family:Nunito,sans-serif;color:var(--fui-ink)}
:is(.app-page-title,.worlds-header h1,.game-category-header h2,
 .learning-mode-copy strong,.learning-theme-folder strong,.learning-task h2,
 .sw-category-copy strong,.sw-level-copy strong,.sw-library-hero h2,
 .worlds-scene-card>span,.worlds-series-room-name,#worlds-scene-title,
 #learning-world-title,.album-theme,#buddy-name){font-family:Fredoka,sans-serif!important;font-weight:600!important;letter-spacing:0;line-height:1.2}
.app-title-letter,.worlds-title-letter{color:var(--fui-ink)!important;-webkit-text-fill-color:var(--fui-ink)!important;-webkit-text-stroke:0;text-shadow:none;transform:none!important}
.app-page-title::after{display:none}
:is(.overlay-title,.buddy-dialog h2,.learning-switch-dialog h2,
 .player-settings-header h2,#player-settings-dialog.is-parental .player-settings-header h2,
 #daily-time-dialog h2,.worlds-unlock-dialog h2,#avatar-dialog h2){font-family:Fredoka,sans-serif;font-weight:600;line-height:1.25;color:var(--fui-ink)}
:is(.worlds-button,.settings-action,.game-category-actions button,.learning-play-entry,
 .sw-primary,.sw-secondary,.sw-icon,.sw-sound,.sw-phase-track button,.sw-quiet,
 .navigation-bar button,.worlds-tray-close,.worlds-drawer-handle,
 .learning-theme-tab,.overlay-card button,.buddy-dialog button){font-family:Nunito,sans-serif;font-weight:800}
:is(.study-word-tile span,#study-word,.sw-target,.sw-example,.sw-word-tile>span,
 .sw-slots button,.sw-letter,.sw-category-art i,.sw-entry-art i,
 .learning-core-strip small,.worlds-tray-sticker span,#learning-world-tray span,
 .album-name,#screen-game .word-en,#screen-game[data-learning-mode=spelling] .answer-choice-slot){font-family:Andika,sans-serif!important;font-weight:400!important;font-synthesis:none;letter-spacing:0}
.sw-sentence-target{font-family:Andika,sans-serif;font-weight:700;color:#ad3f69}
#study-word,.sw-target{color:#334e69;line-height:1.35}
.sw-example{color:#334e69;line-height:1.6}
.album-stage{--album-font-primary:Fredoka,sans-serif;--album-font-support:Nunito,sans-serif}
.profile-stage,.buddy-stage{font-family:Nunito,sans-serif}
.profile-details h1,.profile-stickers-panel h2{font-family:Fredoka,sans-serif;font-weight:600}
.profile-stat strong{font-family:Nunito,sans-serif;font-weight:800}
#screen-game :is(button,.game-progress-text),#screen-result :is(.result-action-label,.result-home-label,#learning-result-detail){font-family:Nunito,sans-serif;font-weight:800}

/* Play entrance: the four original badges retain their calibrated visible size. */
#game-category-dialog{background:#fffef9;border:1px solid #d6e7ef;border-radius:28px;box-shadow:0 18px 50px #36516e20}
.game-category-header{background:linear-gradient(180deg,#fffef6,#fffef9)}
.game-category-footer{background:#fffef9;border-color:#dfebf0;box-shadow:none}
.game-category-header p,#game-category-copy b{color:var(--fui-muted)}
.learning-mode-card{border:1px solid var(--mode-edge,#cfe3ed);background:linear-gradient(145deg,#fff,var(--mode-tint,#f2faff));box-shadow:var(--fui-card-shadow);color:var(--fui-ink)}
.learning-mode-card::after{display:none}
.learning-mode-card.tone-peach{--mode-tint:#fff4cb;--mode-edge:#f0e0a1}
.learning-mode-card.tone-blue{--mode-tint:#e0f4ff;--mode-edge:#b9dff1}
.learning-mode-card.tone-pink{--mode-tint:#ffe9f2;--mode-edge:#f1cad9}
.learning-mode-card.tone-mint{--mode-tint:#e5f9ed;--mode-edge:#bfdfcb}
.learning-mode-copy strong{overflow-wrap:normal}
.learning-mode-subtitle,.tone-blue .learning-mode-subtitle,.tone-pink .learning-mode-subtitle,.learning-mode-status{color:var(--fui-muted);font-weight:700}
.learning-mode-arrow{color:#6b9bb3;font-weight:600}
.learning-mode-card:hover{border-color:#9ccfe8;filter:none}
.learning-play-entry{background:var(--fui-sky);border:1px solid #b9dfee;box-shadow:var(--fui-button-shadow);color:#326787}
.learning-pick-icon i{border-color:#9acadd;background:#f5fbff;color:#527d90}
.learning-pick-icon i:first-child{background:#fff0a8;border-color:#e9d47c}

/* Picture-only categories retain their illustration + number structure. */
.game-category-choice{border:1px solid #d3e5ed;background:linear-gradient(145deg,#fff,var(--category-tile,#f2faff));box-shadow:inset 0 2px #fff}
.game-category-choice[aria-pressed=true],.learning-theme-tab[aria-pressed=true]{background:#fff7c5;border:1px solid #9ccfe8;box-shadow:inset 0 2px #fff}
.game-category-choice[aria-pressed=true]::after{background:#ffe875;color:#675122}
#game-category-dialog[data-step=categories] .game-category-choice-copy small{background:#ffffffed;color:#53657a}
.game-category-choice-art svg{stroke:#4b7e98;stroke-width:1.5}

/* Shared CSS controls only: no universal button fill, so PNG controls survive. */
:is(.worlds-button,.sw-primary,#game-category-start,#learning-switch-confirm,
 #study-listen,.settings-action.primary,.buddy-dialog button[type=submit]){
 background:var(--fui-lemon);border:1px solid #eed575;color:#5d4824;
 box-shadow:inset 0 2px #fff,0 2px 0 #ead26c60,0 5px 12px #e8c8550d;
}
#learning-resume{background:var(--fui-lemon)!important;border:1px solid #eed575;color:#5d4824;box-shadow:var(--fui-button-shadow)}
:is(.sw-secondary,.sw-icon,.sw-sound,.sw-sentence-sound,
 .worlds-header>.worlds-button,.study-reader-nav .worlds-button,
 .learning-world-tools .worlds-button,.settings-action:not(.primary):not(.danger),
 #learning-switch-cancel){background:var(--fui-sky);border:1px solid #bddfee;color:#326787;box-shadow:var(--fui-button-shadow)}
.settings-action.danger,#learning-remove{background:var(--fui-pink);border:1px solid #e8b3c4;color:#933b58;box-shadow:inset 0 2px #fff}
:is(.learning-world-tools button[aria-pressed=true],.sw-phase-track .is-active){background:#fff5ba;border:1px solid #9ccfe8;color:#5d4824;box-shadow:inset 0 1px white}
:is(.worlds-button,.settings-action,.sw-primary,.sw-secondary,.learning-play-entry):active:not(:disabled){box-shadow:inset 0 1px 3px #52789016}
:is(.game-category-choice,.worlds-button,.settings-action,.sw-primary,.sw-secondary,.learning-mode-card,.study-word-tile,.learning-theme-tab):focus-visible{outline:2px solid #3e7f9f;outline-offset:3px}
/* Existing header targets and icon geometry remain authoritative. */
body .screen:not(#screen-game):not(#screen-home) .app-header-control,
body dialog .app-header-control{border:1px solid #bddfee!important;background:var(--fui-sky)!important;color:#326787!important;box-shadow:inset 0 2px #fff!important}
body .screen:not(#screen-game):not(#screen-home) .app-header-control.scene-lock-button[aria-pressed=true]{background:var(--fui-lemon)!important;border-color:#eed575!important;color:#675122!important}
.navigation-bar{background:linear-gradient(145deg,#fffef8,#fff);border-color:#d3e4ed;box-shadow:0 4px 14px #527a9910}
.navigation-bar [aria-current=page] .navigation-pill{background:linear-gradient(145deg,#fff4b9,#ffe875);box-shadow:inset 0 1px white}

/* Learn words — clear teaching print inside a quiet, lightly glazed surface. */
.study-screen{background:linear-gradient(165deg,#fffef9,#f2faff);color:var(--fui-ink)}
.study-invitation,.study-eyebrow,#study-meaning,#study-position,#study-speech-status{color:var(--fui-muted)}
.study-word-tile{border:1px solid #cfe3ed;background:var(--fui-paper);box-shadow:var(--fui-card-shadow);color:#334e69}
.study-word-tile:hover{background:#fff9db;border-color:#9ccfe8}
.study-art-frame{border:1px solid #cfe3ed;background:var(--fui-paper);box-shadow:inset 0 2px #fff,0 6px 20px #5594af0b}
#study-record:not([data-phase=recording]),#study-my-voice{border-color:#c3dfed;box-shadow:inset 0 2px white}

/* Spell Test — category, level, library and lesson. Keep the single inner frame. */
.sw-screen,.sw-shell{background:linear-gradient(165deg,#fffef9,#f5fbff);color:var(--fui-ink)}
.sw-shell{border-color:#dfeaf0;box-shadow:none}
.sw-category-card{background:var(--fui-mint);border:1px solid #c8e7d4;box-shadow:var(--fui-card-shadow)}
.sw-level-card{background:linear-gradient(145deg,#fff,#fff7ce);border:1px solid #e9dfad;box-shadow:var(--fui-card-shadow)}
.sw-level-card.is-locked{background:#f4f7fa;border-color:#dce6ed;color:#718398;box-shadow:inset 0 2px white}
.sw-level-card.is-locked .sw-level-state{color:#718398}
.sw-level-copy>span,.sw-category-copy>span,.sw-category-invitation,
.sw-library-hero p,.sw-library-count,.sw-eyebrow,.sw-lesson-meta,
.sw-feedback,.sw-quiet,.sw-learn-foot{color:var(--fui-muted)}
.sw-library-hero h2{color:var(--fui-ink)}
.sw-word-tile{border:1px solid #cfe3ed;background:var(--fui-paper);box-shadow:inset 0 2px white;color:#334e69}
.sw-word-dot{background:#d3e2eb}.sw-word-dot.is-practiced{background:#edc84e}.sw-word-dot.is-independent{background:#6db990;box-shadow:0 0 0 2px #ddf8e9}
.sw-phase-track{background:#edf6fb;border:1px solid #d3e5ee}
.sw-phase-track button{color:#536b80}
.sw-word-board::before{background:var(--fui-paper);border:1px solid #cfe3ed;box-shadow:inset 0 2px #fff}
.sw-cue-row p{color:#53657a}
.sw-slots button{background:#f0f8fd;border-color:#9ccfe8;color:#334e69;box-shadow:inset 0 1px white}
.sw-slots button:disabled{color:#334e69}
.sw-slots.is-wrong button{background:#fff0f5;border-color:#e8a4bc;color:#933b58}
.sw-slots.is-complete button{background:#e4faee;border-color:#90ceac;color:#32664f}
.sw-letter{background:var(--fui-lemon);border:1px solid #e9d98e;color:#675122;box-shadow:inset 0 2px #fff,0 2px 0 #ead26c50}
.sw-letter-1{background:var(--fui-sky);border-color:#bddfee;color:#326787}
.sw-letter-2{background:var(--fui-pink);border-color:#e8bfd1;color:#894965}
.sw-letter-3{background:var(--fui-mint);border-color:#bce0ca;color:#386f55}
.sw-small-tools button{background:transparent;border-color:#cfe3ed;color:#53657a;box-shadow:none}
.sw-feedback.has-warning{color:#933b58}

/* Collection and scene tools. No repaint of paper/binding art or saved layouts. */
.album-progress-panel{background:var(--fui-paper);border-color:#cfe3ed;box-shadow:inset 0 2px white}
.album-progress-bar{background:#e6f0f7;box-shadow:inset 0 1px 2px #63829c0e}
.album-progress-text,.album-group-action{color:var(--fui-ink);font-family:Nunito,sans-serif}
.learning-theme-folder,.learning-task,.learning-theme-tab,.worlds-scene-card{
 background:var(--fui-paper);border:1px solid #cfe3ed;box-shadow:var(--fui-card-shadow);color:var(--fui-ink);
}
.learning-theme-folder{background:var(--fui-lavender)}
.learning-task p,.learning-theme-folder small,#learning-themes-copy{color:var(--fui-muted)}
.learning-decorate{background:var(--fui-mint);border-color:#bce0ca;color:#32664f}
.worlds-screen:not(#screen-worlds-editor):not(#screen-theme-editor){background:linear-gradient(165deg,#fffef9,#f5fbff)}
.worlds-rewards{background:#fffef8;border:1px solid #e3e6d6;box-shadow:inset 0 2px white}
.worlds-chances{background:#f1e9ff;color:#77549c}.worlds-stars{background:#fff3b5;color:#765922}
.worlds-reward-part strong{font-family:Nunito,sans-serif;font-weight:800}
.worlds-tray-panel,.learning-world-controls{background:linear-gradient(145deg,#ffffffed,#eef9ffeb);border:1px solid #cfe3ed;box-shadow:inset 0 2px #fff,0 5px 18px #36516e12}
.worlds-category,.worlds-tray-sticker,#learning-world-tray .worlds-tray-sticker{background:#fff;border-color:#d0e3ed;box-shadow:inset 0 2px white}
.worlds-category-count{background:#f1f9ff;color:#53657a}
.worlds-tray-sticker.is-previewed{background:#fff6c5;border:1px solid #9ccfe8;box-shadow:inset 0 1px white}
.worlds-tray-sticker.is-previewed::after{background:#ffe875;border-color:#e8d387;color:#675122}
.worlds-drawer-handle{background:var(--fui-sky);border-color:#bddfee;color:#326787;box-shadow:var(--fui-button-shadow)}
.worlds-drawer-handle span{color:inherit}
.worlds-instance.is-selected,.worlds-screen .worlds-instance:focus-visible{outline:1px solid #55a7d1;box-shadow:0 0 0 2px #fff8}
.worlds-remove{background:var(--fui-pink);border-color:#e8b3c4;box-shadow:inset 0 2px white}.worlds-remove svg{stroke:#933b58}
#worlds-scene-title,#learning-world-title{background:#fffffff2;border-color:#d2e4ed;box-shadow:0 3px 12px #36516e10}

/* All shared dialogs are light, single-frame surfaces. */
dialog:not(#game-category-dialog){background:var(--fui-dialog);border:1px solid #fff;border-radius:28px;box-shadow:0 22px 70px #36516e25;color:var(--fui-ink)}
dialog::backdrop{background:#344c7047;backdrop-filter:blur(3px)}
:is(.buddy-dialog,#avatar-dialog,#daily-time-dialog,#player-settings-dialog.is-parental){background:var(--fui-dialog);border:1px solid white;border-radius:28px;color:var(--fui-ink)}
.learning-switch-dialog p,.learning-switch-dialog .learning-switch-note{color:var(--fui-muted)}
#learning-switch-target{color:#74548e;background:#f2eaff}
.settings-current{background:var(--fui-mint);border:1px solid #cbe8d6;box-shadow:inset 0 2px white}
.settings-current strong,.settings-section-title{font-family:Fredoka,sans-serif;font-weight:600;color:var(--fui-ink)}
.settings-current small,.settings-hint,.settings-footnote,.parental-form .settings-hint{color:var(--fui-muted)}
.settings-current-icon,.settings-list-icon{background:var(--fui-lemon);border:1px solid #f0e3aa;color:#66532a}
.settings-player-list button{border:1px solid #d3e5ed;background:var(--fui-paper);color:var(--fui-ink)}
.settings-text-input,.parental-form .settings-text-input,.buddy-dialog input{background:#fff;border:1px solid #b7d5e5;color:var(--fui-ink);border-radius:14px;font-family:Nunito,sans-serif}
.settings-text-input:focus,.parental-form .settings-text-input:focus{border-color:#6faecf;box-shadow:0 0 0 2px #dff2ff}
.settings-warning{background:#fff0f5;border:1px solid #edbfd1;color:#933b58}
.settings-danger-row,.parental-audio-section{border-color:#d8e7ed}
.settings-action{font-weight:800;border-radius:18px}
#player-settings-dialog.is-parental .settings-action,#daily-time-dialog .settings-action{font-weight:800;border-width:1px;box-shadow:var(--fui-button-shadow)}
#player-settings-dialog.is-parental .settings-action.primary,#daily-time-dialog .settings-action.primary{box-shadow:inset 0 2px white,0 2px 0 #ead26c50}
.player-settings-close,#player-settings-dialog.is-parental .player-settings-close{background:var(--fui-sky);border:1px solid #c5e1ee;color:#326787;min-width:44px;min-height:44px}
.player-settings-kicker,#player-settings-dialog.is-parental .player-settings-kicker{color:#53657a}
.settings-label{color:var(--fui-ink)}
.settings-inline-actions .settings-action{min-height:44px}

/* Voice Studio also loads this stylesheet in its own iframe. */
body:has(#voices){background:#fffef9;color:var(--fui-ink);font-family:Nunito,sans-serif}
body:has(#voices) :is(h1,h2){font-family:Fredoka,sans-serif;font-weight:600}
body:has(#voices) :is(.controls,.voice){background:var(--fui-paper);border:1px solid #cfe3ed;box-shadow:var(--fui-card-shadow)}
body:has(#voices) button:not(.favorite){background:var(--fui-sky);border:1px solid #bddfee;color:#326787;box-shadow:var(--fui-button-shadow);font-family:Nunito,sans-serif;font-weight:800}
body:has(#voices) .use{background:var(--fui-lemon);border-color:#eed575;color:#5d4824}
body:has(#voices) .voice.chosen,body:has(#voices) #samples button[aria-pressed=true]{background:#fff7ce;border:1px solid #9ccfe8}
body:has(#voices) .voice.playing{background:#e9f9f2;border-color:#9fd4ba}
body:has(#voices) .selected{background:#fff5bd;color:#66532a}
body:has(#voices) :is(.meta,.range-labels,header p,footer,.eyebrow,#mode){color:var(--fui-muted)}

/* Fixed-art pages keep their existing geometry; bounds are retained here. */
dialog input,dialog select,dialog textarea{min-width:0;max-width:100%;box-sizing:border-box}
dialog :is(h1,h2,h3,p,label){overflow-wrap:anywhere}
.settings-footer-actions,.worlds-unlock-actions,.buddy-dialog-actions{min-width:0}
.settings-footer-actions>*,.worlds-unlock-actions>*,.buddy-dialog-actions>*{min-width:0;max-width:100%;white-space:normal}
@media(max-width:360px){
 .learning-mode-copy strong{font-size:21px!important}
 .player-settings-header h2,#player-settings-dialog.is-parental .player-settings-header h2{font-size:24px}
 .sw-level-copy strong{font-size:21px}
 .sw-header #sw-title{font-size:29px}
 .study-reader-nav button{min-width:0}
}
@media(prefers-reduced-motion:reduce){
 :is(.learning-mode-card,.game-category-choice,.settings-action,.sw-primary,.sw-secondary,.sw-letter){transition:none;animation:none}
}

/* English-only presentation; original learning data is retained. */
#study-meaning,.sw-meaning{display:none!important}

#screen-result .result-action-label{color:#3b485c;text-shadow:none}
#screen-game :is(.word-en,.answer-choice-slot){font-style:normal!important}
/* A short review window still exposes all four primary activities. */
@media(max-height:500px){
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-header{padding:8px 10px 3px!important}
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-header h2{font-size:23px}
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-options{gap:6px;padding:5px 12px 7px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card{min-height:58px;flex:0 0 58px;max-height:58px;padding:5px 10px;gap:10px;border-radius:19px;--entry-badge-size:46px}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-copy strong{font-size:18px}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-subtitle{font-size:10px}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play] .learning-mode-copy{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:4px}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entries{margin:0;gap:5px;flex:none}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-play-entry{min-width:44px;min-height:44px;padding:4px;flex:none;border-radius:12px}
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-pick-icon i{width:10px;height:10px;font-size:8px}
 #game-category-dialog.has-sight-entry[data-step=modes] .pick-two i{height:19px}
 #game-category-dialog .navigation-bar{height:58px;margin:3px auto 8px}
}
@media(max-height:500px){
 #game-category-dialog.has-sight-entry[data-step=modes] .learning-mode-card[data-section=play]{min-height:58px;flex-basis:58px;max-height:58px;}
 #game-category-dialog.has-sight-entry[data-step=modes] .game-category-header #game-category-title{font-size:23px}
}
