/* V4.19.0 Everest: scoped presentation, with shared learning controls unchanged. */
.everest-only,.everest-stage{display:none}
.everest-sprite{display:inline-block;aspect-ratio:1;background-image:url('assets/everest-poses.png');background-size:400% 200%;background-repeat:no-repeat;background-position:0 0;flex:none;pointer-events:none}
[data-everest-pose=blink]{background-position:33.333333% 0}
[data-everest-pose=wave]{background-position:66.666667% 0}
[data-everest-pose=read]{background-position:100% 0}
[data-everest-pose=listen]{background-position:0 100%}
[data-everest-pose=cheer]{background-position:33.333333% 100%}
[data-everest-pose=retry]{background-position:66.666667% 100%}
[data-everest-pose=finish]{background-position:100% 100%}
:root[data-character=everest]{--bg:#f0fbff;--card:#fcfeff;--text:#203e56;--muted:#526b7e;--line:#a4ccd8;--accent:#137b82;--accent2:#9275bd;--primary-bg:#18838a;--title-blue:#203e56;--surface:#e2f2f7;--surface-soft:#f4fbfd;--accent-soft:#d7f2ec;--accent-line:#91cdd8;--focus:#835cb2;--hero-a:#d7f4f3;--hero-b:#e8e6fb;--hero-c:#d3ecfc;--rose-a:#e9def7;--rose-b:#e2e5fa;--rose-line:#b4a2d0;--purple-a:#eee6fa;--purple-b:#e1ddf5;--purple-line:#b6a3d3;--mint-a:#daf5ec;--mint-b:#c8eae6;--mint-line:#7fbeb1;--peach-a:#e0f1fc;--peach-b:#d1e9f8;--peach-line:#9fc9e1;--blue-a:#dceffc;--blue-b:#f0f8ff;--blue-line:#a3c5e1;--violet-bg:#e1daf2;--violet-text:#5d447b;--nav-bg:#eef9fe;--good-bg:#d9f5e5;--good:#246c47;--bad-bg:#ffebef;--bad:#9a3453;--warm-bg:#fff3d5;--warm-text:#74501f;--warm-line:#e4c188;--target-bg:#e0d2f4;--target-text:#553474;--progress-track:#c9dae4;--paper-glow:#ddf5f8;--frame-shadow:#28697524;--sprite:url('assets/melody-icons.png');--peek:none;--poses:none;--hero-wave:#a5e5ec55}
:root[data-character=everest] body{background-image:radial-gradient(ellipse at 0 8%,#dbf2f8,transparent 55%),radial-gradient(ellipse at 100% 65%,#e9e4fa,transparent 60%)!important}
:root[data-character=everest] main.app{padding-top:calc(4px + env(safe-area-inset-top));padding-bottom:calc(88px + env(safe-area-inset-bottom))}
:root[data-character=everest] .everest-only{display:inline-block}
:root[data-character=everest] .story-decor,:root[data-character=everest] .brand-logo>svg:not(.everest-only),:root[data-character=everest] .brand-decoration>svg:not(.everest-only),:root[data-character=everest] .appearance-open>svg:not(.everest-only),:root[data-character=everest] .practice-decoration>svg:not(.everest-only),:root[data-character=everest] .practice-title .theme-art>svg:not(.everest-only){display:none!important}
:root[data-character=everest] .progress-heading h3>svg,:root[data-character=everest] .scope-drawer summary strong>svg{display:block!important}
.everest-paw{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 2px #5b85a42b)}
:root[data-character=everest] .brand-decoration,:root[data-character=everest] .appearance-open{width:13cqw;height:13cqw;top:3px}
:root[data-character=everest] .brand-logo{width:9cqw;height:9cqw}
:root[data-character=everest] .practice-decoration{width:11cqw;height:11cqw;bottom:0}
:root[data-character=everest] .welcome{height:88cqw;min-height:304px;max-height:486px;padding:0;border:2px solid #91c5e3;border-radius:7cqw;isolation:isolate;overflow:clip;background:#183f64;box-shadow:0 5px 0 #acd4e6,0 8px 18px #31567922;margin-bottom:13px}
:root[data-character=everest] .welcome>div:not(.everest-stage),:root[data-character=everest] .welcome>img,:root[data-character=everest] .welcome>.sunshine,:root[data-character=everest] .welcome::before{display:none}
:root[data-character=everest] .everest-stage{display:block;position:absolute;inset:0;overflow:hidden}
.everest-backdrop{position:absolute;inset:0;background:url('assets/everest-snow.png') center/cover no-repeat}
.everest-shade{position:absolute;inset:0;background:linear-gradient(95deg,#0a315259,transparent 65%);pointer-events:none}
.everest-aurora{position:absolute;inset:-8% -10% 40%;background:linear-gradient(110deg,transparent 20%,#8ffff935 45%,#e2a8ff33 58%,transparent 75%);filter:blur(10px);pointer-events:none}
.everest-copy{position:absolute;left:6%;top:7%;width:57%;z-index:4;color:#fffaf0;text-shadow:0 2px 3px #1439569c;pointer-events:none}
.everest-copy small{display:block;font:900 clamp(8px,2.6cqw,15px)/1.3 var(--round-font);letter-spacing:.08em;white-space:nowrap}
.everest-copy strong{display:block;font-size:clamp(21px,6.6cqw,37px);line-height:1.37;letter-spacing:.025em;margin-top:12px;white-space:pre-line}
.everest-copy span{display:block;font-size:clamp(11px,3cqw,17px);line-height:1.5;margin-top:12px}
.everest-buddy{position:absolute;right:0;bottom:0;width:66%;aspect-ratio:1;z-index:3;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;overflow:visible;cursor:pointer;touch-action:manipulation;transform:none!important}
.everest-buddy>.everest-sprite{width:100%;height:100%;transform-origin:50% 90%;filter:drop-shadow(0 3px 3px #27577a25)}
.everest-buddy:focus-visible{outline:3px solid #f5bf6b;border-radius:40%}
.everest-snow,.everest-trail{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.everest-snow i{position:absolute;top:-8%;left:var(--x);font-style:normal;font-size:var(--size);color:#efffff;opacity:0}
.everest-trail i{position:absolute;left:var(--x);bottom:var(--y);font-style:normal;font-size:22px;color:#dcfbff;opacity:0;text-shadow:0 0 6px #2e87b9}
:root[data-character=everest][data-motion=on] .everest-stage[data-playing=true] .everest-aurora{animation:ev-aurora 9s ease-in-out infinite alternate}
:root[data-character=everest][data-motion=on] .everest-stage[data-playing=true] .everest-snow i{animation:ev-snow var(--duration) linear var(--delay) infinite}
:root[data-character=everest][data-motion=on] .everest-stage[data-playing=true] .everest-buddy>.everest-sprite{animation:ev-breathe 4s ease-in-out infinite}
:root[data-character=everest][data-motion=on] .everest-stage[data-act=wave] .everest-buddy>.everest-sprite{animation:ev-wave 1.7s ease-in-out both}
:root[data-character=everest][data-motion=on] .everest-stage[data-act=cheer] .everest-buddy>.everest-sprite{animation:ev-hop 1.6s ease-in-out both}
:root[data-character=everest][data-motion=on] .everest-stage[data-act=cheer] .everest-trail i,:root[data-character=everest][data-motion=on] .everest-stage[data-act=wave] .everest-trail i{animation:ev-trail 1.6s ease-out var(--delay) both}
:root[data-character=everest] .btn.primary,:root[data-character=everest] .review-start{background:linear-gradient(115deg,#267f8a,#7868a9);border-color:#92c9d1;color:#fff}
:root[data-character=everest] .tab.active{color:var(--accent)}
:root[data-character=everest] .tab.active span{background:var(--violet-bg)}
:root[data-character=everest] .hero .progress-fill,:root[data-character=everest] .finish-complete{background:linear-gradient(90deg,#30bed1,#a6a5ef)}
:root[data-character=everest] .hero .star-cell .progress-fill{background:linear-gradient(90deg,#a293d5,#d4b6f1)}
:root[data-character=everest] [data-character-image]{background-image:url('assets/everest-poses.png');background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;object-fit:contain;aspect-ratio:1;filter:drop-shadow(0 2px 2px #4b68822b)}
:root[data-character=everest] [data-everest-pose=read]{background-position:100% 0}
:root[data-character=everest] [data-everest-pose=listen]{background-position:0 100%}
:root[data-character=everest] [data-everest-pose=retry]{background-position:66.666667% 100%}
:root[data-character=everest] [data-everest-pose=cheer]{background-position:33.333333% 100%}
:root[data-character=everest] [data-everest-pose=finish]{background-position:100% 100%}
:root[data-character=everest] [data-everest-pose=wave]{background-position:66.666667% 0}
:root[data-character=everest] [data-everest-pose=blink]{background-position:33.333333% 0}
/* A real layout column holds the mascot; headings and controls cannot cover its head. */
:root[data-character=everest] .quiz-banner,:root[data-character=everest] .quiz-banner[data-kind=spell]{display:grid;grid-template-columns:minmax(0,1fr) clamp(70px,22cqw,120px);grid-template-rows:auto auto;align-items:center;gap:0 6px;border:1.5px solid var(--line);border-radius:24px;padding:8px 10px;margin:8px 0 12px;background:linear-gradient(110deg,var(--hero-a),var(--hero-b));overflow:visible}
:root[data-character=everest] .quiz-banner .toolbar{grid-column:1;min-width:0;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
:root[data-character=everest] .quiz-banner .toolbar h2,:root[data-character=everest] .quiz-banner[data-kind=spell] .toolbar h2{font-size:clamp(21px,6.7cqw,36px);white-space:normal;line-height:1.3}
:root[data-character=everest] .quiz-banner .adaptive-pill{display:none}
:root[data-character=everest] .quiz-banner #quizScope,:root[data-character=everest] .quiz-banner[data-kind=spell] #quizScope{grid-column:1;min-width:0;max-width:100%;margin:3px auto 0;padding:2px 4px;font-size:clamp(11px,3.5cqw,18px);background:transparent;overflow-wrap:anywhere}
:root[data-character=everest] .quiz-banner .quiz-peek,:root[data-character=everest] .quiz-banner[data-kind=spell] .quiz-peek{display:block;position:static;grid-column:2;grid-row:1/3;width:100%;height:auto;pointer-events:none;animation:none!important;transform:none!important}
:root[data-character=everest] .quiz-card::after{display:none!important}
:root[data-character=everest] .quiz-card,:root[data-character=everest] .quiz-card[data-kind][data-answered]{padding-bottom:20px!important}
:root[data-character=everest] .listen-hint{position:static;display:block;margin:12px auto;text-align:center}
:root[data-character=everest] .quiz-next-wrap{position:static;margin-top:18px}
:root[data-character=everest] .prompt .speak{border-color:var(--accent-line)}
:root[data-character=everest] .prompt .speak .art-icon{color:var(--accent)}
/* Companion is in card flow after the reveal button, away from the word and explanations. */
:root[data-character=everest] .flashcard .card-mascot{position:static;display:block;width:clamp(76px,25cqw,135px);height:auto;margin:12px auto 0;animation:none!important;transform:none!important}
:root[data-character=everest] .flashcard.expanded .card-mascot{display:none!important}
:root[data-character=everest] .flashcard .word-hero{padding-right:0}
:root[data-character=everest] .review-hero,:root[data-character=everest] .help-hero,:root[data-character=everest] .scope-page-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;background:linear-gradient(110deg,var(--hero-a),var(--hero-b));overflow:visible}
:root[data-character=everest] .review-hero h3{max-width:none;min-width:0;flex:1}
:root[data-character=everest] .review-hero .panel-mascot,:root[data-character=everest] .help-hero img,:root[data-character=everest] .scope-page-intro img{position:static;display:block;width:clamp(76px,25cqw,130px);height:auto;flex:none;margin:0;animation:none!important}
:root[data-character=everest] .detail-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr) 70px;gap:8px;align-items:center}
:root[data-character=everest] .detail-toolbar h2{font-size:clamp(20px,6cqw,30px)}
:root[data-character=everest] .detail-peek{display:block;position:static;width:70px;height:70px}
:root[data-character=everest] .finish-mascot{width:clamp(125px,40cqw,210px);height:auto;display:block;margin:0 auto}
:root[data-character=everest] .cloud-illustration::after,:root[data-character=everest] .modal-mascot.cloud-pose::after{display:none}
:root[data-character=everest] .cloud-illustration{height:105px;margin:0;display:flex;justify-content:flex-end}
:root[data-character=everest] .cloud-illustration .panel-mascot{display:block;position:static;width:105px;height:105px}
:root[data-character=everest] .modal-mascot,:root[data-character=everest] .modal-mascot.cloud-pose{position:static;height:95px;display:flex;justify-content:center;margin:0}
:root[data-character=everest] .modal-mascot img,:root[data-character=everest] .modal-mascot.cloud-pose img{display:block;position:static;width:95px;height:95px;transform:none;margin:0}
:root[data-character=everest] .theme-about img{width:64px;height:64px;flex:none}
.everest-page-buddy,.everest-empty{display:none}
:root[data-character=everest] .everest-page-buddy{display:block;width:64px;height:64px;margin-left:auto}
:root[data-character=everest] .everest-empty{display:block;width:100px;height:100px;margin:0 auto 10px}
:root[data-character=everest] .empty{background:var(--surface-soft);border-color:var(--line)}
.theme-choice.everest-choice{background:linear-gradient(115deg,#d6f3f3,#e4e0fa)!important;color:#254b5b;border-color:#8dc6d2}
.theme-choice.everest-choice>.everest-sprite{grid-column:1;grid-row:1/4;width:100%;height:auto;align-self:center}
.theme-choice.everest-choice b{font-size:clamp(22px,6vw,32px)}
[data-theme-choice=everest] .theme-swatches i{background:#73c9c9}[data-theme-choice=everest] .theme-swatches i:nth-child(2){background:#addbf3}[data-theme-choice=everest] .theme-swatches i:nth-child(3){background:#bdace5}
/* A short in-flow feedback strip keeps celebration away from answer controls. */
.everest-feedback-slot{display:none}
:root[data-character=everest] .everest-feedback-slot{display:flex;position:relative;align-items:center;justify-content:center;min-height:68px;margin:0 0 6px;isolation:isolate;overflow:visible}
.everest-feedback{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;height:68px;border:1px solid var(--accent-line);border-radius:20px;background:linear-gradient(110deg,var(--surface-soft),var(--purple-a));color:var(--text);pointer-events:none;position:relative}
.everest-feedback>.everest-sprite{width:74px;height:74px;margin-top:-6px}
.everest-feedback-copy strong{display:block;font:900 clamp(19px,5.5cqw,29px)/1.2 var(--round-font)}
.everest-feedback-copy small{display:block;font-size:clamp(11px,3.1cqw,16px);line-height:1.4;margin-top:3px}
.everest-feedback-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:20px}
.everest-feedback-particles i{position:absolute;left:var(--x);top:var(--y);font-style:normal;color:var(--accent);font-size:var(--size);opacity:0}
:root[data-character=everest][data-motion=on] .everest-feedback{animation:ev-feedback var(--feedback-time,2700ms) ease both}
:root[data-character=everest][data-motion=on] .everest-feedback>.everest-sprite{animation:ev-hop 1.3s ease-in-out 2}
:root[data-character=everest][data-motion=on] .everest-feedback.retry>.everest-sprite{animation:ev-wave 1.4s ease-in-out both}
:root[data-character=everest][data-motion=on] .everest-feedback-particles i{animation:ev-spark 1.6s ease-out var(--delay) both}
:root[data-motion=off] .everest-feedback,:root[data-motion=off] .everest-feedback-slot{display:none}
@keyframes ev-breathe{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-3px) rotate(.5deg)}}
@keyframes ev-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}60%{transform:rotate(3deg)}}
@keyframes ev-hop{0%,100%{transform:translateY(0) scale(1)}25%{transform:translateY(-6px) scale(1.03)}55%{transform:translateY(0) scale(.98)}75%{transform:translateY(-3px) scale(1.01)}}
@keyframes ev-aurora{from{transform:translateX(-6%) rotate(-4deg);opacity:.3}to{transform:translateX(8%) rotate(5deg);opacity:.9}}
@keyframes ev-snow{0%{transform:translate(0,0);opacity:0}15%,85%{opacity:.7}100%{transform:translate(18px,500px) rotate(160deg);opacity:0}}
@keyframes ev-trail{0%{transform:translateY(20px) scale(.2);opacity:0}25%{opacity:1}100%{transform:translateY(-30px) scale(1.2);opacity:0}}
@keyframes ev-feedback{0%{opacity:0;transform:translateY(5px) scale(.96)}12%,85%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-3px)}}
@keyframes ev-spark{0%{opacity:0;transform:scale(.2)}30%{opacity:1}100%{opacity:0;transform:translateY(-18px) rotate(45deg) scale(1.2)}}
@media(prefers-color-scheme:dark){
:root[data-character=everest]{color-scheme:dark;--bg:#112a40;--card:#1b354b;--text:#f3f8ff;--muted:#c4d7e4;--line:#5d839d;--accent:#9ee8e8;--accent2:#d3bcec;--surface:#26465c;--surface-soft:#1e3b52;--accent-soft:#315c69;--accent-line:#83bcd3;--focus:#d3c1f8;--hero-a:#224b60;--hero-b:#394566;--hero-c:#284c68;--rose-a:#524166;--rose-b:#3e3d60;--rose-line:#a99bc3;--purple-a:#434a74;--purple-b:#353b5a;--purple-line:#a49bc7;--mint-a:#2b5b5c;--mint-b:#294950;--mint-line:#85beb3;--peach-a:#304f70;--peach-b:#293e59;--peach-line:#91b5d2;--blue-a:#27485e;--blue-b:#263d55;--blue-line:#87acc8;--violet-bg:#505582;--violet-text:#e9ddff;--nav-bg:#112a40;--good-bg:#275440;--good:#c8f5d9;--bad-bg:#613548;--bad:#ffd5df;--warm-bg:#4d4633;--warm-text:#ffe9bb;--target-bg:#64517d;--target-text:#fff2ff;--progress-track:#4c6379;--paper-glow:#294b64;--frame-shadow:#0003}
:root[data-character=everest] body{background-image:radial-gradient(ellipse at 0 8%,#1b4261,transparent 55%),radial-gradient(ellipse at 100% 65%,#353759,transparent 60%)!important}
:root[data-character=everest] .welcome{box-shadow:0 5px 0 #344f70,0 9px 18px #0003}
.everest-backdrop{filter:brightness(.79) saturate(.94)}
.theme-choice.everest-choice{background:linear-gradient(115deg,#254f60,#424366)!important;color:#eff9ff;border-color:#8bbdcb}
}
@media(min-width:900px) and (orientation:landscape){
:root[data-character=everest] .welcome{height:416px;min-height:416px;max-height:416px;margin:0;border-radius:28px}
.everest-copy small{font-size:10px}.everest-copy strong{font-size:27px}.everest-copy span{font-size:13px}.everest-copy{width:66%}
:root[data-character=everest] .brand-decoration,:root[data-character=everest] .appearance-open{width:65px;height:65px}
:root[data-character=everest] .brand-logo{width:52px;height:52px}
:root[data-character=everest] .practice-decoration{width:58px;height:58px}
:root[data-character=everest] .quiz-banner{grid-template-columns:minmax(0,1fr) 100px}
:root[data-character=everest] .quiz-banner .toolbar h2{font-size:32px}
}
@media(prefers-reduced-motion:reduce){.everest-stage *,.everest-feedback *{animation:none!important;transition:none!important}.everest-feedback-slot{display:none!important}}
@media(max-height:480px){:root[data-character=everest] .everest-feedback-slot{display:none}}

:root[data-character=everest] .everest-feedback-slot[hidden]{display:none!important}
:root[data-character=everest] #screen-study .flash-wrap{padding-top:14px}
/* Override the legacy decorative-sprite hiding rule for the new paw controls. */
:root[data-character=everest] .theme-art>.everest-paw,:root[data-character=everest] .appearance-open>.everest-paw{display:block!important}
