/* V4.17.2 Frozen: one coherent stage, dedicated copy / actors / caption rows. */
.frozen-only,.frozen-stage{display:none}
:root[data-character=frozen]{--bg:#eefaff;--card:#fcfdff;--text:#263d68;--muted:#566b89;--line:#b7d9ee;--accent:#3575ac;--accent2:#8666c4;--primary-bg:#657bd4;--title-blue:#263d68;--surface:#e1effc;--surface-soft:#f5fcff;--accent-soft:#e1e0ff;--accent-line:#98d7ee;--focus:#566dba;--hero-a:#d9f5ff;--hero-b:#ece7ff;--hero-c:#bfeaf7;--rose-a:#fce9f6;--rose-b:#f5dcf1;--rose-line:#e9b6dc;--purple-a:#eee7ff;--purple-b:#e0dcfc;--purple-line:#bdaee5;--mint-a:#e3fcf0;--mint-b:#c9f2e9;--mint-line:#9ad9c8;--peach-a:#e3f5ff;--peach-b:#cae9fa;--peach-line:#a0cde8;--blue-a:#e1f5ff;--blue-b:#f3fcff;--blue-line:#aacfe8;--violet-bg:#e2dcfc;--violet-text:#5c4682;--nav-bg:#eefaff;--good-bg:#d7f5e8;--good:#1e715e;--good-line:#8fcbb8;--bad-bg:#fff0f4;--bad:#a44369;--bad-line:#ebafc5;--warm-bg:#fff7dc;--warm-text:#77571d;--warm-line:#e4d198;--target-bg:#e7d9fb;--target-text:#5b3c84;--progress-track:#d3dbe7;--paper-glow:#dceaff;--frame-shadow:#4478a51c;--hero-wave:#a1e8f34d;--peek:url('assets/frozen-peek.png');--sprite:url('assets/melody-icons.png')}
:root[data-character=frozen] .hero .progress-fill,:root[data-character=frozen] .finish-complete{background:linear-gradient(90deg,#50c2df,#8e9be9)}
:root[data-character=frozen] .hero .star-cell .progress-fill{background:linear-gradient(90deg,#b78ce7,#d9acec)}
:root[data-character=frozen] .tab.active{color:#5e6ec3}
:root[data-character=frozen] .card-mascot,:root[data-character=frozen] .panel-mascot,:root[data-character=frozen] .quiz-peek,:root[data-character=frozen] .detail-peek{object-fit:contain;filter:drop-shadow(0 3px 3px #527ca53b)}
:root[data-character=frozen] .quiz-card:not(.finished)::after{background-image:url('assets/frozen-finish.png');background-size:contain;background-position:center bottom}
:root[data-character=frozen] .quiz-card[data-kind=spell]:not(.finished)::after{background-image:url('assets/frozen-peek.png')}
:root[data-character=frozen] .cloud-illustration::after,:root[data-character=frozen] .modal-mascot.cloud-pose::after{background:url('assets/frozen-finish.png') center bottom/contain no-repeat}
:root[data-character=frozen] .quiz-banner,:root[data-character=frozen] .help-hero,:root[data-character=frozen] .review-hero{background:linear-gradient(110deg,var(--hero-a),var(--hero-b));border-color:var(--accent-line)}
:root[data-character=frozen] .review-start,:root[data-character=frozen] .review-actions .action-card:nth-child(2) .review-start{background:linear-gradient(120deg,#407dbb,#8973c8);border-color:#bfd5ff}
:root[data-character=frozen] .flashcard{background:radial-gradient(ellipse at 98% 100%,var(--peach-a),transparent 55%),var(--card)}

@media(prefers-color-scheme:dark){:root[data-character=frozen]{color-scheme:dark;--bg:#14283f;--card:#203750;--text:#eff7ff;--muted:#c2d6ed;--line:#587fa6;--accent:#b8e4ff;--accent2:#d4bbf8;--primary-bg:#686dcc;--title-blue:#eff7ff;--surface:#2b4565;--surface-soft:#253b55;--accent-soft:#3c4b77;--accent-line:#80bfdc;--focus:#d3c6ff;--hero-a:#244e6c;--hero-b:#3c3c68;--hero-c:#23516e;--rose-a:#503c63;--rose-b:#423756;--rose-line:#b398c4;--purple-a:#3e416e;--purple-b:#33395d;--purple-line:#a8a3de;--mint-a:#285b60;--mint-b:#254a53;--mint-line:#80bfb6;--peach-a:#284c6e;--peach-b:#233f59;--peach-line:#7facce;--blue-a:#274462;--blue-b:#273a55;--blue-line:#759fc7;--violet-bg:#484e7b;--violet-text:#e7d9ff;--nav-bg:#14283f;--good-bg:#24524e;--good:#b5f0da;--bad-bg:#5a394c;--bad:#ffd7e5;--warm-bg:#4c4935;--warm-text:#fff0b5;--target-bg:#665482;--target-text:#fff5ff;--progress-track:#4e617c;--paper-glow:#203c5e;--frame-shadow:#0003}}
:root[data-character=frozen]{--bg:#f8f6ff;--hero-a:#def3ff;--hero-b:#fbe3ec;--peach-a:#fff3dd;--peach-b:#ffe5d7;--peach-line:#ecc49e;--nav-bg:#f8f6ff}
:root[data-character=frozen] body{background-image:radial-gradient(ellipse at 0 6%,#d9f4ff,transparent 50%),radial-gradient(ellipse at 98% 58%,#ffe5ef,transparent 58%)!important}
:root[data-character=frozen] .frozen-only{display:block!important}
:root[data-character=frozen] .brand-logo>.art-icon,:root[data-character=frozen] .brand-decoration>.art-icon,:root[data-character=frozen] .appearance-open>.art-icon,:root[data-character=frozen] .practice-decoration>.art-icon,:root[data-character=frozen] .story-decor,:root[data-character=frozen] .practice-title .theme-art>svg:not(.frozen-only){display:none!important}
.frozen-crystal-icon{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 3px #81afd640)}
:root[data-character=frozen] .brand-decoration,:root[data-character=frozen] .appearance-open{width:13cqw;height:13cqw;top:0}
:root[data-character=frozen] .brand-decoration{left:0}:root[data-character=frozen] .appearance-open{right:0}
:root[data-character=frozen] .brand-logo{width:10cqw;height:10cqw}
:root[data-character=frozen] .practice-decoration{width:15cqw;height:15cqw;bottom:-2cqw;right:2cqw}
:root[data-character=frozen] .welcome{height:clamp(352px,calc(124cqw - 88px),572px);min-height:352px;max-height:572px;padding:0;margin-bottom:14px;border:2px solid #b8c9ef;border-radius:7cqw;background:#e0c9eb;box-shadow:inset 0 0 0 2px #fff9,0 5px 0 #c1dded,0 10px 18px #876ba729;overflow:clip;isolation:isolate}
:root[data-character=frozen] .welcome>div:not(.frozen-stage),:root[data-character=frozen] .welcome>img,:root[data-character=frozen] .welcome>.sunshine,:root[data-character=frozen] .welcome::before{display:none}
:root[data-character=frozen] .frozen-stage{position:absolute;inset:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:20px;padding:18px 15px 18px;overflow:clip;z-index:1;--snow-fall:680px}
.frozen-backdrop{position:absolute;inset:0;background:url('assets/frozen-festival.webp') center bottom/cover;z-index:-3}
.frozen-scene-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(180deg,#4a386ba8 0%,#644c773b 30%,transparent 52%,#39527a10 86%,#31588380 100%);pointer-events:none}
.frozen-stage-copy{position:relative;align-self:start;margin:0;padding:0 5px;width:auto;z-index:6;color:#fffbed;text-shadow:0 2px 3px #42376499,0 4px 14px #42376455;pointer-events:none;background:none;border:0;box-shadow:none}
.frozen-stage-copy small{display:block;margin:0 0 8px;font:900 clamp(10px,2.6cqw,13px)/1.3 var(--round-font);letter-spacing:.08em;color:#fff0bc}
.frozen-stage-copy strong{display:block;margin:0;font:950 clamp(22px,6.4cqw,34px)/1.25 var(--round-font);letter-spacing:.01em}
.frozen-team{position:relative;min-height:0;z-index:3;isolation:isolate}
.frozen-buddy{position:absolute;bottom:0;padding:0;border:0;background:none;box-shadow:none!important;cursor:pointer;outline-offset:-3px;border-radius:35% 35% 10% 10%;touch-action:manipulation}
.frozen-buddy:focus-visible{outline:3px solid #fff0b1}
.frozen-elsa{left:-10%;width:66%;height:96%;bottom:2%;z-index:1}
.frozen-anna{right:-16%;width:74%;height:94%;bottom:3%;z-index:2}
.frozen-olaf{left:29%;width:44%;height:54%;bottom:-3%;z-index:3}
.frozen-actor{position:absolute;inset:0;transform-origin:50% 97%;pointer-events:none}
:root[data-character=frozen] .welcome .frozen-actor img{position:absolute;inset:0;width:100%;height:100%;max-width:none;display:block;object-fit:contain;object-position:center bottom;animation:none;opacity:1;transition:opacity .22s;filter:drop-shadow(0 5px 3px #29385f40)}
:root[data-character=frozen] .welcome .frozen-actor .actor-alternate{opacity:0}
/* Same full-body height across Elsa poses; the wide cape may extend behind Olaf. */
:root[data-character=frozen] .welcome .frozen-elsa .actor-alternate{width:180%;left:-30%;object-position:center bottom}
:root[data-character=frozen] .frozen-stage[data-act=magic] .frozen-elsa img:first-child,:root[data-character=frozen] .frozen-stage[data-act=twirl] .frozen-olaf img:first-child{opacity:0}
:root[data-character=frozen] .frozen-stage[data-act=magic] .frozen-elsa .actor-alternate,:root[data-character=frozen] .frozen-stage[data-act=twirl] .frozen-olaf .actor-alternate{opacity:1}
.frozen-shadow{position:absolute;bottom:0;left:20%;width:60%;height:12px;border-radius:50%;background:#31445d30;filter:blur(4px)}
.frozen-stage-glow{position:absolute;inset:auto -15% 1%;height:11%;border-radius:50%;background:radial-gradient(ellipse,#d7faff90,transparent 68%);z-index:-1}
.frozen-snow{position:absolute;inset:0;overflow:clip;pointer-events:none;z-index:0}
.frozen-snow i{position:absolute;top:-15px;left:var(--x);width:var(--size);height:var(--size);background:#fff;border-radius:50%;opacity:0;box-shadow:0 0 5px #fff8}
.frozen-lanterns{position:absolute;inset:0;z-index:0;pointer-events:none}
.frozen-lanterns i{position:absolute;left:6%;top:48%;width:30px;height:35px;border-radius:50%;background:radial-gradient(#fff4ad88,#ffd16a40 40%,transparent 70%);box-shadow:0 0 14px #ffda6a55}
.frozen-lanterns i:nth-child(2){left:87%;top:50%}.frozen-lanterns i:nth-child(3){left:21%;top:64%}.frozen-lanterns i:nth-child(4){left:75%;top:65%}
.frozen-magic-ring{position:absolute;left:0;bottom:8%;width:75%;aspect-ratio:1;border:3px solid #efffff;border-radius:50%;box-shadow:0 0 15px #affaff,inset 0 0 15px #b0d8ff;opacity:0;z-index:0;pointer-events:none}
.frozen-spell-trail,.frozen-letter-orbit,.frozen-team-stars{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:clip}
.frozen-spell-trail i,.frozen-letter-orbit i,.frozen-team-stars i{position:absolute;left:var(--x);top:var(--y);font-style:normal;opacity:0;color:#fff0a6;text-shadow:0 0 8px #ffccf7;font-size:clamp(17px,5cqw,27px)}
.frozen-letter-orbit i{font:950 clamp(21px,6cqw,33px)/1.25 var(--round-font);color:#675082;background:linear-gradient(#fff9df,#ffefb1);border:2px solid #fff5e7;border-radius:10px;padding:2px 7px;box-shadow:0 4px 0 #8c74a445;text-shadow:none}
.frozen-letter-orbit i:nth-child(2){background:linear-gradient(#ffe6ef,#e5c5f7)}.frozen-letter-orbit i:nth-child(3){background:linear-gradient(#dffff4,#bde5f8)}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-playing=true] .frozen-snow i{animation:frozen-snow var(--duration) linear var(--delay) infinite}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-playing=true] .frozen-lanterns i{animation:frozen-lantern 4s ease-in-out infinite alternate}
.frozen-lanterns i:nth-child(2n){animation-delay:-2s!important}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-playing=true] .frozen-actor{animation:frozen-breathe 4s ease-in-out infinite}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-playing=true] .frozen-anna .frozen-actor{animation:frozen-anna-glide 5s ease-in-out infinite;animation-delay:-1.3s}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-playing=true] .frozen-olaf .frozen-actor{animation-delay:-2.6s}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=magic] .frozen-elsa .frozen-actor{animation:frozen-cast 3.2s ease-in-out both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=letters] .frozen-anna .frozen-actor{animation:frozen-anna-cheer 3.2s ease-in-out both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=twirl] .frozen-olaf .frozen-actor{animation:frozen-olaf-hop 3.2s ease-in-out both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=team] .frozen-actor{animation:frozen-team-cheer 3s ease-in-out both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=team] .frozen-anna .frozen-actor{animation-delay:.2s}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=team] .frozen-olaf .frozen-actor{animation-delay:.4s}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=magic] .frozen-magic-ring{animation:frozen-ring 3s ease-out both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=magic] .frozen-spell-trail i,:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=team] .frozen-team-stars i,:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=twirl] .frozen-team-stars i{animation:frozen-spark 2.6s ease-out var(--delay) both}
:root[data-character=frozen][data-motion=on] .frozen-stage[data-act=letters] .frozen-letter-orbit i{animation:frozen-letter 3s ease-in-out var(--delay) both}
@keyframes frozen-breathe{0%,100%{transform:translateY(0) rotate(-.5deg)}50%{transform:translateY(-3px) rotate(.5deg)}}
@keyframes frozen-cast{0%,100%{transform:scale(1)}30%{transform:translateY(-5px) rotate(-1deg) scale(1.02)}70%{transform:rotate(1deg)}}
@keyframes frozen-anna-glide{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(-6px,-2px) rotate(-1deg)}}
@keyframes frozen-anna-cheer{0%,100%{transform:translate(0,0)}25%,65%{transform:translate(-12px,-5px) rotate(-2deg)}45%,82%{transform:translate(-4px,-1px) rotate(1deg)}}
@keyframes frozen-olaf-hop{0%,100%{transform:translateY(0)}20%{transform:translateY(-27px) rotate(-7deg)}40%{transform:translateY(0) scale(1.03,.97)}65%{transform:translateY(-20px) rotate(7deg)}85%{transform:translateY(0)}}
@keyframes frozen-team-cheer{0%,100%{transform:translateY(0)}22%,62%{transform:translateY(-8px) rotate(-1deg)}42%,82%{transform:translateY(-1px) rotate(1deg)}}
@keyframes frozen-snow{0%{opacity:0;transform:translateY(0)}12%,85%{opacity:.65}100%{opacity:0;transform:translate(20px,var(--snow-fall))}}
@keyframes frozen-lantern{from{opacity:.35;transform:scale(.8)}to{opacity:1;transform:scale(1.2)}}
@keyframes frozen-ring{0%{opacity:0;transform:scale(.2) rotateX(70deg)}25%{opacity:1}100%{opacity:0;transform:scale(1.4) rotateX(70deg)}}
@keyframes frozen-spark{0%{opacity:0;transform:translateY(15px) scale(.2)}25%,65%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-18px) scale(.5)}}
@keyframes frozen-letter{0%{opacity:0;transform:translate(30px,40px) rotate(12deg) scale(.3)}25%,70%{opacity:1;transform:translate(0,0) rotate(-4deg) scale(1)}100%{opacity:0;transform:translate(-10px,-18px) scale(.7)}}
@media(prefers-color-scheme:dark){:root[data-character=frozen]{--bg:#192c43;--nav-bg:#192c43;--hero-a:#294f6a;--hero-b:#553d61;--peach-a:#58474b;--peach-b:#473b47;--peach-line:#bd9aa5}:root[data-character=frozen] body{background-image:radial-gradient(ellipse at 0 7%,#244761,transparent 55%),radial-gradient(ellipse at 98% 60%,#493653,transparent 60%)!important}:root[data-character=frozen] .tab.active{color:#e4eaff}:root[data-character=frozen] .welcome{border-color:#839fcb;box-shadow:0 5px 0 #405678,0 10px 18px #0003}.frozen-backdrop{filter:brightness(.78) saturate(.95)}}
@media(min-width:900px) and (orientation:landscape){:root[data-character=frozen] .welcome{height:442px;min-height:442px;max-height:442px;margin:0;border-radius:28px}:root[data-character=frozen] .frozen-stage{padding:18px 15px 18px;gap:22px}.frozen-stage-copy small{font-size:10px}.frozen-stage-copy strong{font-size:25px}:root[data-character=frozen] .brand-logo{width:58px;height:58px}:root[data-character=frozen] .brand-decoration,:root[data-character=frozen] .appearance-open{width:78px;height:78px}:root[data-character=frozen] .practice-decoration{width:82px;height:82px;bottom:-8px;right:18px}}
/* Answer feedback is non-blocking and never covers input with a clickable layer. */
.frozen-party{position:fixed;z-index:210;left:50%;top:calc(env(safe-area-inset-top) + 92px);width:min(94vw,510px);height:220px;transform:translateX(-50%);pointer-events:none;isolation:isolate;color:#345075;filter:drop-shadow(0 8px 15px #21385c30)}
.frozen-party::before{content:'';position:absolute;inset:45px 0 0;border:3px solid #bddff2;border-radius:30px;background:linear-gradient(125deg,#e7fafff5,#ffe7f2f5,#fff2cef5);box-shadow:inset 0 0 0 2px #fff9;z-index:-1}
.frozen-party-team{position:absolute;left:0;bottom:0;width:47%;height:220px}
.frozen-party-team img{position:absolute;bottom:15px;left:0;width:65%;height:95%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 3px #334c6630)}
.frozen-party-team img:nth-child(2){left:43%;height:94%;width:58%}.frozen-party-team img:nth-child(3){left:29%;bottom:0;height:52%;width:60%}
.frozen-party-copy{position:absolute;right:0;bottom:22px;width:52%;padding:0 7px;text-align:center}
.frozen-party-copy strong{display:block;font:950 clamp(26px,7.8vw,42px)/1.05 var(--round-font);color:#575693}
.frozen-party-copy span{display:block;font:850 clamp(13px,3.5vw,18px)/1.4 var(--round-font);margin-top:8px}
.frozen-party-copy i{display:block;font-style:normal;color:#ba82b7;font-size:22px;letter-spacing:5px;margin-top:8px}
.frozen-party.is-finish{height:280px}.frozen-party.is-finish .frozen-party-team{height:280px}
.frozen-confetti{position:fixed;inset:0;z-index:220;pointer-events:none;overflow:hidden;contain:strict}
.frozen-confetti i{position:absolute;top:-40px;left:var(--x);font-size:var(--size);color:var(--color);font-style:normal;text-shadow:0 0 5px #fff;opacity:0}
:root[data-motion=on] .frozen-party{animation:frozen-party 2.6s ease both}:root[data-motion=on] .frozen-party.is-finish{animation-duration:3.2s}
:root[data-motion=on] .frozen-party-team img{animation:frozen-team-cheer 2.5s ease-in-out both}.frozen-party-team img:nth-child(2){animation-delay:.16s}.frozen-party-team img:nth-child(3){animation-delay:.32s}
:root[data-motion=on] .frozen-confetti i{animation:frozen-confetti 2.5s cubic-bezier(.2,.4,.6,.85) var(--delay) both}
.frozen-retry{position:fixed;z-index:210;right:15px;bottom:calc(90px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;pointer-events:none;color:#375371;background:#fff7e6ed;border:2px solid #aad6ef;border-radius:22px;padding:8px 15px;font:900 20px var(--round-font);box-shadow:0 4px 18px #233a5320}.frozen-retry img{width:52px;height:66px;object-fit:contain}
:root[data-motion=off] .frozen-party,:root[data-motion=off] .frozen-confetti,:root[data-motion=off] .frozen-retry{display:none}
@keyframes frozen-party{0%{opacity:0;transform:translate(-50%,20px) scale(.75)}15%{opacity:1;transform:translate(-50%,-5px) scale(1.03)}28%,84%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-12px) scale(.96)}}
@keyframes frozen-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}10%,80%{opacity:1}100%{opacity:0;transform:translate(var(--drift),105vh) rotate(var(--spin))}}
@media(prefers-reduced-motion:reduce){.frozen-party,.frozen-confetti,.frozen-retry{display:none}.frozen-actor img{transition:none!important}}

.frozen-art-credit{display:none}:root[data-character=frozen] .frozen-art-credit{display:block;margin:14px 4px;font-size:13px;color:var(--muted)}.frozen-art-credit a{color:inherit}
