
:root{font-family:var(--font-zh);color:#35445b;background:#f7f3eb;--theme-ink:#66538c;--theme-light:#f4e8ff}
*{box-sizing:border-box}html{min-height:100%}body{font-family:var(--font-zh);margin:0;min-height:100dvh;background:radial-gradient(ellipse at 12% 0,#fff7dd,transparent 50%),radial-gradient(ellipse at 100% 95%,#eee7f5,transparent 50%),#f7f3eb}
button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #bc8528;outline-offset:4px}button:disabled{cursor:default}
.hidden,[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.mecc-global-nav{position:relative!important;background:transparent!important;border-bottom:1px solid #d9cdb84d!important}
.game-toolbar{display:flex;justify-content:center;align-items:center;gap:8px;padding:12px 16px}
.quiet{border:1px solid #dfd8c9;border-radius:20px;background:#fffdf8;color:#68727e;padding:8px 14px;font-size:12px;min-height:36px}.quiet:hover{background:#fff4d9}.level-pill{background:#f0ebdf;color:#78653e;font-weight:700}
main{max-width:1120px;margin:auto;padding:0 24px 12px}
.companions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}
.companion{position:relative;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e1d8c9;background:#ffffffa6;border-radius:18px;padding:5px 12px;min-height:82px;color:#596173;transition:background .2s,transform .2s,box-shadow .2s}
.companion:hover:not(:disabled){transform:translateY(-2px);background:white}.companion[aria-pressed=true]{border-color:#bca477;background:#fff9e9;box-shadow:0 4px 14px #8a704514}
.companion .hero-art{width:68px;height:68px;object-fit:contain}.companion strong{font-size:17px;display:block;color:#41495c}.companion small{font-size:11px;display:block;margin-top:5px;color:#89909a}
.selected-mark{margin-left:auto;color:#ab8540;opacity:0}.companion[aria-pressed=true] .selected-mark{opacity:1}
.scene{height:clamp(270px,40vh,430px);position:relative;overflow:hidden;border:5px solid #fffdf8;border-radius:28px;background:var(--theme-light);box-shadow:0 8px 30px #4e3d6b12}
.land{height:100%;width:100%;display:block}.tag,.progress{position:absolute;top:16px;border:1px solid #ffffffb3;background:#ffffffc9;backdrop-filter:blur(8px);border-radius:13px;padding:9px 14px;color:var(--theme-ink);font-size:12px;font-weight:700;z-index:2}.tag{left:16px}.progress{right:16px}
.chick{position:absolute;left:10%;bottom:21.212121%;width:clamp(80px,13vh,124px);height:clamp(80px,13vh,124px);transform:translate(-50%,6%);z-index:2;filter:drop-shadow(0 6px 5px #3d2b5425)}
.chick .hero-art{width:100%;height:100%;object-fit:contain;display:block;transform-origin:50% 92%}
body:not(.playing) .chick{left:24%!important;width:clamp(200px,31vh,310px);height:clamp(200px,31vh,310px);bottom:10%;filter:drop-shadow(0 12px 9px #3d2b542a)}
body:not(.playing) .land{opacity:.65}
.scene-story{position:absolute;left:46%;right:7%;top:50%;transform:translateY(-44%);z-index:1;color:var(--theme-ink)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#9b8053}.scene-story h2{font-family:var(--font-zh);font-size:clamp(25px,3.5vw,40px);line-height:1.35;margin:10px 0 14px;letter-spacing:2px}.scene-story p{font-size:14px;line-height:1.9;max-width:360px;margin:0}.story-steps{display:block;margin-top:20px;font-size:11px;letter-spacing:2px;opacity:.8}
.playing .scene-story{display:none}.playing .companions{display:none}.playing .scene{height:clamp(210px,38vh,420px)}
.panel{margin-top:14px;border:1px solid #e5ddcf;border-radius:24px;background:#fffdf8;box-shadow:0 6px 22px #65533809;text-align:center;padding:20px 28px}
.intro h1{font-size:23px;margin:0 0 6px;color:#444b60}.intro p{font-size:13px;color:#8a8c91;margin:6px 0 15px;line-height:1.6}
.levels{display:flex;justify-content:center;gap:10px;margin:14px auto;max-width:520px}
.level{flex:1;border:1px solid #e1d9ca;border-bottom:3px solid #d7cebd;border-radius:13px;background:#f8f5ee;color:#767166;padding:10px 12px;position:relative}.level strong{font-size:21px}.level small{display:block;font-size:11px;margin-top:4px}.level-icon{margin-right:8px}
.level[aria-pressed=true]{background:#f5edd9;border-color:#b99a5e;color:#81652f}.level[aria-pressed=true]::after{content:"✓";position:absolute;right:8px;top:4px;font-size:11px}
.primary{border:0;border-bottom:4px solid #b5852f;background:#eec877;color:#604821;padding:12px 32px;min-height:48px;font-weight:800;font-size:16px;border-radius:14px;box-shadow:0 4px 14px #a47b2820}.primary:hover{background:#f7d58b}.primary:active{transform:translateY(2px)}
.question-heading h2{font-size:22px;margin:6px 0;color:#454d60}.question-heading p{font-size:12px;color:#8a8c91;margin:4px 0}
.objects{display:grid;grid-template-columns:repeat(10,44px);justify-content:center;gap:8px 10px;margin:16px 0 20px;align-content:center;min-height:60px}



.choices{display:flex;justify-content:center;gap:16px}.answer{width:116px;min-height:60px;border:1px solid #c8d8e4;border-bottom:4px solid #99b3c8;border-radius:16px;background:#eaf3f9;color:#496a82;font-size:32px;font-weight:900;transition:transform .15s;position:relative}
.answer:nth-child(2){background:#f0eaf8;border-color:#d3c8e4;border-bottom-color:#b5a4cc;color:#71608d}.answer:nth-child(3){background:#fcf0d6;border-color:#e7d6a9;border-bottom-color:#c9b47e;color:#8b723d}
.answer:hover:not(:disabled){transform:translateY(-3px);filter:brightness(1.03)}.answer.correct{background:#d9f0dc!important;border-color:#78ad83!important;color:#397145;animation:answerGlow .5s ease-out}.answer.wrong{background:#ffe9dc!important;border-color:#d7ad98!important;animation:answerShake .4s}.answer.correct::after{content:"✓";position:absolute;right:9px;top:6px;font-size:14px}
.star-track{display:flex;justify-content:center;gap:8px;width:max-content;max-width:100%;margin:0 auto 12px;background:#f6f0df;border:1px solid #eee2c7;border-radius:20px;padding:7px 14px}.star-track span{color:#a9a2ba;font-size:18px;line-height:1}.star-track .done{color:#c99734}.star-track .next{color:var(--theme-ink)}
.scene-message{position:absolute;top:25%;left:50%;transform:translate(-50%,-10px);background:#fffdf4f0;border:1px solid white;border-radius:18px;padding:12px 20px;color:#49714e;font-size:20px;font-weight:800;box-shadow:0 6px 20px #47596d18;opacity:0;pointer-events:none;z-index:4;text-align:center;transition:opacity .12s,transform .12s;max-width:90%}.scene-message.show{opacity:1;transform:translate(-50%,0)}.scene-message.retry{color:#956b44;background:#fff1dd}
.chick.crouch .hero-art{transform:scale(1.07,.86)}.chick.landing .hero-art{animation:softLanding .24s ease-out}.chick.celebrating .hero-art{animation:happyHero .64s ease-in-out 3}

.trophy{font-size:35px}.win-stars{color:#cda54a;letter-spacing:8px;margin:5px}.arrived .scene-story{display:none}.arrived .panel{background:#fff9e9}
.ripple-ring{fill:none;stroke:#f4ffe7;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:waterRipple .8s ease-out forwards}.ripple-ring.second{animation-delay:.14s}
.fireworks,.confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:3}.burst{position:absolute}
@keyframes eggPop{50%{transform:scale(1.12)}}@keyframes answerGlow{50%{transform:scale(1.07)}}@keyframes answerShake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes softLanding{0%{transform:scale(1.1,.85)}45%{transform:scale(.97,1.04)}100%{transform:scale(1)}}@keyframes happyHero{50%{transform:translateY(-8px)}}@keyframes waterRipple{0%{opacity:.8;transform:scale(.3)}100%{opacity:0;transform:scale(1.6)}}

@media(min-width:760px) and (min-height:700px){.playing main{max-width:1120px}.playing .panel{padding:18px 28px}}
@media(max-width:650px){main{padding:0 12px 8px}.game-toolbar{padding:8px;gap:6px}.quiet{font-size:11px;padding:7px 10px}.companions{gap:7px;grid-template-columns:repeat(4,1fr);margin-bottom:10px}.companion{flex-direction:column;gap:0;text-align:center;padding:5px 2px;min-height:98px;border-radius:13px}.companion .hero-art{height:54px;width:54px}.companion strong{font-size:14px}.companion small{font-size:9px;margin-top:3px}.selected-mark{position:absolute;top:5px;right:7px;font-size:10px}
.scene{height:270px;border-width:3px;border-radius:22px}.tag,.progress{top:10px;padding:7px 9px;font-size:10px}.tag{left:9px}.progress{right:9px}.scene-story{left:44%;right:5%}.scene-story h2{font-size:24px;letter-spacing:0;margin:9px 0}.scene-story p{font-size:11px;line-height:1.8}.story-steps{font-size:9px;letter-spacing:0;margin-top:12px}.scene-story .eyebrow{font-size:9px;letter-spacing:0}
body:not(.playing) .chick{width:170px;height:210px;left:23%!important;bottom:4%}.panel{padding:16px 12px;margin-top:10px;border-radius:20px}.intro h1{font-size:20px}.intro p{font-size:11px}.levels{gap:7px;margin:12px 0}.level{padding:9px 5px}.level strong{font-size:19px}.level small{font-size:10px}.level-icon{font-size:13px;margin-right:4px}
.playing .scene{height:clamp(185px,30vh,280px)}.chick{width:72px;height:82px}.objects{grid-template-columns:repeat(5,44px);gap:6px 9px;margin:12px 0 16px}.question-heading h2{font-size:19px}.answer{width:83px;min-height:56px;font-size:30px}.choices{gap:12px}.star-track{gap:5px;padding:6px 10px;margin-bottom:10px}.star-track span{font-size:15px}.scene-message{font-size:15px}}
@media(max-height:500px) and (min-width:651px){.playing main{display:grid;grid-template-columns:1fr 1fr;gap:10px}.playing .scene{height:310px}.playing .panel{margin:0;padding:12px}.objects{grid-template-columns:repeat(5,44px);gap:4px;margin:8px 0}.answer{min-height:44px;width:80px;font-size:26px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.mecc-nav-title{color:#635974!important;text-shadow:none!important}.mecc-nav-back{color:#776b58!important}

body:not(.playing) .land #pads{display:none}.scene-story{transform:translateY(-52%)}

/* Home: one scene, with the setup beside the character. */
html{height:100%}
body{height:100dvh;min-height:0;display:flex;flex-direction:column}
.mecc-global-nav,.game-toolbar{flex:0 0 auto}
main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;margin:0 auto;padding-bottom:16px}
.companions{flex:0 0 auto}
body:not(.playing) .level-pill,body:not(.playing) #changeLevelBtn{display:none}
body:not(.playing) .game-toolbar{justify-content:flex-end;max-width:1120px;width:100%;margin:auto;padding:8px 24px}
body:not(.playing) .scene{flex:1;height:auto;min-height:310px}
body:not(.playing) .panel{display:none}
body:not(.playing) .scene .tag,body:not(.playing) .scene .progress{display:none}
body:not(.playing) .chick{left:24%!important;bottom:12%;width:clamp(220px,40vh,380px);height:clamp(220px,52vh,450px);max-height:82%}
.scene-story{left:46%;right:6%;top:50%;transform:translateY(-50%);text-align:left}
.scene-story h2{font-size:clamp(24px,2.6vw,34px);line-height:1.25;letter-spacing:1px;margin:0 0 10px}
.scene-story p{font-size:13px;line-height:1.6;margin:0 0 20px;max-width:none}
#intro{padding:0}
#intro .levels{margin:0 0 16px;max-width:460px}
#intro .level{padding:12px 8px}
#intro .primary{min-width:190px}
.playing .scene{flex:1;height:auto;min-height:200px}
.playing .panel{flex:0 0 auto}
.arrived .star-track{display:none}
@media(max-width:650px){
 main{padding-bottom:12px}
 body:not(.playing) .game-toolbar{padding:6px 12px}
 .companions{gap:6px;margin-bottom:10px}
 .companion{min-height:78px;padding:4px 2px}
 .companion .hero-art{width:48px;height:48px}
 .companion small{display:none}
 body:not(.playing) .scene{min-height:340px}
 body:not(.playing) .chick{left:22%!important;bottom:17%;width:44%;height:58%;max-height:none}
 .scene-story{left:45%;right:5%}
 .scene-story h2{font-size:21px;letter-spacing:0;margin:0 0 8px}
 .scene-story p{font-size:11px;line-height:1.6;margin-bottom:14px}
 #intro .levels{flex-direction:column;gap:6px;margin-bottom:12px}
 #intro .level{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:7px 3px;border-radius:10px}
 #intro .level strong{font-size:17px}
 #intro .level small{font-size:10px;margin:0}
 #intro .level-icon{font-size:12px;margin:0}
 #intro .primary{min-width:0;width:100%;font-size:14px;padding:9px 8px;min-height:44px}
 .playing .scene{min-height:180px}
}
@media(max-height:720px) and (max-width:650px){
 .playing .panel{padding:12px}
 .playing .objects{gap:4px 9px;margin:10px 0}
  .playing .question-heading p{margin:3px 0}
 .playing .star-track{margin-bottom:6px}
 .playing .answer{min-height:48px}
 .playing .scene{min-height:150px}
}
@media(max-height:500px) and (min-width:651px){
 .playing main{display:grid}
 body:not(.playing) .scene{min-height:260px}
 body:not(.playing) .companions{margin-bottom:8px}
 body:not(.playing) .companion{min-height:60px}
 body:not(.playing) .companion .hero-art{height:48px;width:48px}
 .scene-story h2{font-size:23px}
 .scene-story p{margin-bottom:10px}
 #intro .levels{margin-bottom:10px}
 #intro .level{padding:7px}
}

/* Illustrated stages; the path and character stay in a separate layer. */
.scene{background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.land{position:absolute;inset:0;z-index:1;pointer-events:none}
body:not(.playing) .land{opacity:1}
.scene-story{background:#fffdf5ed;backdrop-filter:blur(8px);padding:24px;border:1px solid #ffffffa8;border-radius:22px;box-shadow:0 8px 28px #172e4620}
.scene-story h2{font-size:clamp(22px,2.3vw,30px)}
body:not(.playing) .chick{filter:drop-shadow(0 8px 5px #18344360)}
.playing .chick{filter:drop-shadow(0 5px 4px #102d4660)}
/* The answer panel takes only its content height. The stage uses the rest. */
.playing main{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:10px;padding-bottom:10px;min-height:0}
.playing .scene{height:100%;min-height:0;flex:none}
.playing .panel{margin:0;padding:12px 18px}
#game{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.question-heading{display:contents}
.question-heading h2{grid-column:1;grid-row:1;text-align:left;margin:0;font-size:20px}
.star-track{grid-column:2;grid-row:1;margin:0;padding:5px 10px;gap:5px}
.star-track span{font-size:16px}
.objects{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(10,50px);gap:6px 10px;margin:0;min-height:50px}
.count-item{position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #e4ddcb;border-radius:12px;background:#fbf7ef;width:50px;height:50px;padding:4px;transition:background .15s,transform .15s}
.count-item:hover:not(:disabled){background:#fff0d0;transform:translateY(-2px)}
.item-art{width:100%;height:100%;filter:drop-shadow(0 2px 1px #594b401a)}
.count-item.counted{background:#e1efe4;border-color:#7bb28a}
.count-item.counted .item-art{opacity:.6}
.item-number{position:absolute;right:-3px;top:-4px;min-width:20px;height:20px;display:none;place-items:center;border-radius:50%;background:#477958;color:white;font-size:12px;font-weight:800;border:2px solid #fffdf5}
.counted .item-number{display:grid}
.count-item.pop .item-art{animation:eggPop .22s ease-out}
.choices{grid-column:1/-1;grid-row:3}
.answer{min-height:52px;font-size:30px}
@media(max-height:620px) and (min-width:651px){
 .game-toolbar{padding:6px 14px}
 .playing main{gap:8px;padding-bottom:8px}
 .playing .panel{padding:10px 16px}
 #game{gap:8px}
 .question-heading h2{font-size:18px}
 .objects{grid-template-columns:repeat(10,44px);gap:5px 8px;min-height:44px}
 .count-item{width:44px;height:44px;padding:3px}
 .answer{min-height:44px;font-size:27px}
}
@media(max-width:650px){
 .scene-story{padding:14px 10px;left:44%;right:4%;border-radius:16px}
 .scene-story h2{font-size:19px}
 .scene-story p{font-size:11px;margin-bottom:10px}
 .playing .panel{padding:10px 12px}
 #game{gap:10px}
 .question-heading h2{font-size:16px}
 .star-track{padding:5px 7px;gap:3px;margin:0}
 .star-track span{font-size:13px}
 .objects{grid-template-columns:repeat(5,48px);gap:6px 9px;min-height:48px}
 .count-item{width:48px;height:48px}
 .answer{min-height:48px;font-size:28px}
 .playing .chick{width:66px;height:76px}
}
@media(max-height:720px) and (max-width:650px){
 #game{gap:8px}
 .objects{grid-template-columns:repeat(5,44px);gap:4px 9px;margin:0;min-height:44px}
 .count-item{width:44px;height:44px;padding:3px}
 .playing .panel{padding:10px}
 .answer{min-height:44px;font-size:26px}
}
@media(max-height:450px) and (min-width:651px){
 .playing main{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}
 .playing .panel{min-height:0;display:flex;align-items:center;justify-content:center}
 #game{width:100%;gap:6px}
 .objects{grid-template-columns:repeat(5,44px);gap:4px 8px}
 .question-heading h2{font-size:16px}
 .star-track{gap:3px;padding:4px 6px}
 .star-track span{font-size:13px}
}

@media(min-width:651px) and (min-height:451px){body:not(.playing) .scene{min-height:250px}}

@media(max-width:650px){.scene{background-size:cover;background-position:center bottom}}

/* Reserve the selected level's largest question, including the result view. */
body{--count-rows:1;--item-size:50px;--item-gap:6px;--panel-chrome:124px;--panel-min:192px}
body[data-max="20"]{--count-rows:2}
.playing main{grid-template-rows:minmax(0,1fr) var(--answer-height);--answer-height:max(var(--panel-min),calc(var(--count-rows)*var(--item-size) + (var(--count-rows) - 1)*var(--item-gap) + var(--panel-chrome)))}
.playing .panel{height:100%;min-height:0;display:flex;align-items:center;justify-content:center}
#game{width:100%}
.objects{min-height:calc(var(--count-rows)*var(--item-size) + (var(--count-rows) - 1)*var(--item-gap));grid-auto-rows:var(--item-size);align-content:center}
#result{width:100%}
#result .trophy{font-size:25px;line-height:30px}
#result .win-stars{font-size:14px;line-height:18px;margin:2px 0}
#result h1{font-size:22px;line-height:28px;margin:3px 0}
#result p{font-size:12px;line-height:18px;margin:4px 0 8px}
#result .primary{min-height:44px;padding:8px 28px;font-size:15px}
.playing #again.hidden{display:inline-block!important;visibility:hidden;pointer-events:none}
@media(max-height:620px) and (min-width:651px){
 body{--item-size:44px;--item-gap:5px;--panel-chrome:108px;--panel-min:180px}
}
@media(max-width:650px){
 body{--item-size:48px;--item-gap:6px;--panel-chrome:102px;--panel-min:180px}
 body[data-max="10"]{--count-rows:2}
 body[data-max="20"]{--count-rows:4}
 .objects{min-height:calc(var(--count-rows)*var(--item-size) + (var(--count-rows) - 1)*var(--item-gap))}
}
@media(max-height:720px) and (max-width:650px){
 body{--item-size:44px;--item-gap:4px;--panel-chrome:90px}
}
@media(max-height:450px) and (min-width:651px){
 .playing main{grid-template-rows:minmax(0,1fr)}
 body[data-max="10"]{--count-rows:2}
 body[data-max="20"]{--count-rows:4}
 body{--item-gap:4px}
}

/* Keep earlier compact rules from adding space outside the reserved panel. */
body{--panel-chrome:128px;--answer-button-height:52px}
.playing .objects,.playing .star-track{margin:0}
.playing .answer{min-height:var(--answer-button-height)}
@media(max-height:620px) and (min-width:651px){body{--panel-chrome:112px;--answer-button-height:44px}}
@media(max-width:650px){body{--panel-chrome:116px;--answer-button-height:48px}}
@media(max-height:720px) and (max-width:650px){body{--panel-chrome:108px;--answer-button-height:44px}}

/* Large celebratory fireworks, drawn entirely inside the fixed stage. */
.fireworks{z-index:3}
.spark{position:absolute;left:0;top:0;width:4px;height:18px;border-radius:50%;background:linear-gradient(to top,transparent,var(--color));box-shadow:0 0 9px var(--color);animation:grandSpark 4s ease-out var(--delay) infinite both}
.spark.glitter{width:5px;height:5px;background:var(--color);border-radius:50%}
.flare{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:#fff7cd;box-shadow:0 0 22px #ffe488,0 0 45px #ffd570;animation:grandFlare 4s ease-out var(--delay) infinite both}
.firework-ring{position:absolute;left:0;top:0;width:var(--diameter);height:var(--diameter);border:2px solid #ffeab59c;border-radius:50%;box-shadow:0 0 15px #ffd77850,inset 0 0 15px #ffd77830;animation:grandRing 4s ease-out var(--delay) infinite both}
@keyframes grandSpark{
 0%{opacity:0;transform:translate(0,90px) rotate(var(--angle)) scale(.1)}
 12%{opacity:1;transform:translate(0,0) rotate(var(--angle)) scale(.4)}
 35%{opacity:1;transform:translate(calc(var(--dx)*.85),calc(var(--dy)*.85)) rotate(var(--angle)) scale(1)}
 65%{opacity:.85;transform:translate(var(--dx),var(--dy)) rotate(var(--angle)) scale(.7)}
 100%{opacity:0;transform:translate(calc(var(--dx)*1.08),calc(var(--dy) + 26px)) rotate(var(--angle)) scale(.1)}
}
@keyframes grandFlare{0%,8%{opacity:0;transform:translateY(90px) scale(.2)}12%{opacity:1;transform:translateY(0) scale(1.8)}28%{opacity:.6;transform:scale(1)}55%,100%{opacity:0;transform:scale(.1)}}
@keyframes grandRing{0%,10%{opacity:0;transform:translate(-50%,-50%) scale(.05)}18%{opacity:.7}50%{opacity:.4;transform:translate(-50%,-50%) scale(.95)}80%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)}}

/* Bright particle trails against the illustrated stage. */
.fireworks{background:radial-gradient(ellipse at 50% 38%,#10203e24,transparent 75%)}
.fireworks .spark{width:5px;height:24px;box-shadow:0 0 4px var(--color),0 0 11px var(--color)}
.fireworks .spark.glitter{width:7px;height:7px}


/* The user requested live fireworks even when other motion is reduced. */
.fireworks .spark{animation:grandSpark 4s ease-out var(--delay) infinite both!important}
.fireworks .flare{animation:grandFlare 4s ease-out var(--delay) infinite both!important}
.fireworks .firework-ring{animation:grandRing 4s ease-out var(--delay) infinite both!important}
.firework-rocket{position:absolute;left:-2px;top:0;width:4px;height:30px;border-radius:50%;background:linear-gradient(#fff7c0,#ffc857,transparent);box-shadow:0 0 10px #ffda5c;animation:rocketFlight 4s ease-out var(--delay) infinite both!important}
@keyframes rocketFlight{
 0%{opacity:1;transform:translateY(var(--launch)) scaleY(1)}
 11%{opacity:1;transform:translateY(0) scaleY(.6)}
 14%,100%{opacity:0;transform:translateY(0) scaleY(.1)}
}

/* The shared CJK-only KaiTi face leaves Latin, pinyin and digits to WenKai. */
.answer,.level strong,.item-number{font-family:var(--font-en)}

/* English names and punctuation use the English/pinyin font explicitly. */
html[lang="en"] body,html[lang="en"] .scene-story h2{font-family:var(--font-en)}
html[lang="en"] .mecc-nav-title,html[lang="en"] .mecc-nav-back{font-family:var(--font-en)!important}
