:root{
  --jade:#2b6a56;--jade-dark:#205244;--ink:#314f45;--cream:#faf8f1;
  --line:#d7e2d6;--gold:#c89d56;
  font-family:KaiTi-CJK,"LXGW WenKai Lite",serif;color:var(--ink)
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{width:100%;height:100dvh;min-height:0;overflow:hidden}
body{
  margin:0;display:flex;flex-direction:column;
  background:radial-gradient(ellipse at 0 0,#e9f1e8,transparent 47%),
    radial-gradient(ellipse at 100% 100%,#f5ebdb,transparent 49%),#f8f7f0;
  font-family:KaiTi-CJK,"LXGW WenKai Lite",serif;color:var(--ink)
}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #bd8b4d;outline-offset:3px}
.champion-header{
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:12px;
  height:56px;min-height:56px;padding:6px clamp(12px,2vw,30px);
  background:#fafbf5;border-bottom:1px solid #dbe4d9
}
.champion-brand{grid-column:2;grid-row:1;text-align:center;font-size:clamp(18px,2vw,23px);font-weight:800;letter-spacing:.04em}
.champion-exit{
  grid-column:1;grid-row:1;justify-self:start;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  background:#f0f6ef;border:1px solid #c9dbcc;border-radius:12px;
  padding:8px 17px;font-size:15px;color:var(--jade)
}
.champion-exit:hover{background:#e5efe3}
.champion-shell{
  flex:1 1 auto;min-height:0;width:min(1360px,100%);
  margin:auto;padding:clamp(8px,1.5dvh,18px) clamp(10px,2vw,30px);
  display:flex;flex-direction:column
}
.champion-paper{
  flex:1 1 auto;min-height:0;width:100%;
  border:1px solid #dce5d9;border-radius:22px;background:#fffefa;
  box-shadow:0 12px 30px #3557460c;
  padding:clamp(12px,2vw,25px);overflow:hidden;
  display:flex;flex-direction:column
}
.champion-paper>div:not([hidden]){width:100%;flex:1 1 auto;min-height:0}
.champion-loading,.champion-start,.champion-finish{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:clamp(16px,3dvh,30px);text-align:center;padding:16px
}
.champion-loading p,.champion-start p{
  font-size:clamp(18px,2.3vw,27px);color:#5d7768;
  line-height:1.55;max-width:700px;margin:0
}
.champion-start p{font-size:clamp(20px,2.6vw,31px)}
.champion-button{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;min-height:48px;border:1px solid #b6cfbf;
  border-radius:15px;padding:10px 26px;font-size:clamp(17px,2vw,22px);
  font-weight:800;transition:background .15s,transform .15s
}
.champion-button.primary{background:var(--jade);color:#fff;border-color:var(--jade)}
.champion-button.primary:hover{background:var(--jade-dark)}
.champion-button.outline{background:#f2f6ee;color:var(--jade)}
.champion-button.outline:hover{background:#e7f1e7}
.champion-button:disabled{opacity:.45;cursor:default}
.champion-play{
  /* Exact reserved rows: success text and Next never resize the answer area. */
  --audio-help-height:19px;--feedback-height:38px;--next-slot-height:62px;
  display:grid;
  grid-template-rows:auto 8px auto auto var(--audio-help-height) minmax(0,1fr) var(--feedback-height) var(--next-slot-height);
  align-items:stretch;gap:clamp(6px,1.15dvh,14px);overflow:hidden
}
.champion-topline{grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:12px}
.champion-kind{
  background:#f4e9d5;border:1px solid #e8d5b3;border-radius:999px;
  padding:6px 15px;font-size:clamp(14px,1.3vw,17px);font-weight:800;color:#896539
}
.champion-counter{font-size:clamp(15px,1.6vw,19px);font-weight:800;color:#667e72}
.champion-dots{grid-row:2;display:flex;gap:9px;min-height:8px}
.champion-dot{flex:1;height:8px;border-radius:8px;background:#e2ece2}
.champion-dot.done{background:#89ab91}
.champion-dot.active{background:#b58f53}
.champion-prompt-row{
  grid-row:3;display:flex;align-items:center;justify-content:center;
  gap:clamp(12px,2.5vw,30px);min-height:0;
}
.champion-bunny{
  flex:0 0 auto;display:grid;place-items:center;
  width:clamp(76px,13dvh,124px);height:clamp(76px,13dvh,124px);
  background:radial-gradient(circle at 50% 55%,#eff6ec 5%,#f5f8f100 70%);
  border:0;border-radius:50%;padding:0;touch-action:manipulation;
}
.champion-bunny-art{
  width:100%;height:100%;display:block;overflow:visible;
  filter:drop-shadow(0 4px 4px #8c8f752b);
  transition:transform .2s ease;
}
.champion-bunny:hover .champion-bunny-art,.champion-bunny:focus-visible .champion-bunny-art{transform:scale(1.045)}
.champion-question{
  font-size:clamp(22px,2.8vw,35px);line-height:1.28;font-weight:800;
  text-align:left;margin:0;max-width:min(780px,75%);
}
.champion-listen{grid-row:4;
  display:flex;align-items:center;justify-content:center;gap:9px;
  justify-self:center;align-self:center;margin:0 auto;
  min-height:54px;padding:9px 27px;border-radius:16px;
  background:#e9f3e8;border:2px solid #a8c8b4;
  color:var(--jade-dark);font-size:clamp(17px,1.6vw,21px);font-weight:750
}
.champion-listen span:first-child{font-size:28px}
.champion-listen:hover{background:#dbeede}
.champion-audio-help{
  grid-row:5;text-align:center;color:#a46950;font-size:13px;margin:0;
  align-self:end
}
.champion-choices{grid-row:6;
  align-self:stretch;justify-self:center;min-height:0;min-width:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(8px,1.4vw,20px);max-width:1040px;width:100%;height:100%;
  align-items:center;justify-content:center;margin:0 auto
}
.champion-choice{
  width:100%;min-width:0;min-height:0;
  border:2px solid #cfded1;border-radius:19px;
  background:#fbfdf9;color:#304e44;
  padding:10px;transition:background .15s,border-color .15s,transform .15s
}
.champion-choice:hover:not(:disabled){background:#eaf5e9;border-color:#86b69b}
.champion-choice.correct{background:#dcf1e3;border-color:#3b9268;color:#205f47}
.champion-choice.wrong{background:#fff0e7;border-color:#cf9a7c;color:#8b523a;animation:champion-nudge .22s linear}
.champion-choice:disabled{cursor:default}
.champion-choice.character-choice{
  height:min(100%,clamp(130px,36dvh,285px));display:grid;place-items:center;
  font-size:clamp(68px,10dvh,130px);font-weight:600
}
.champion-choice.pictured-choice{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:min(100%,clamp(158px,42dvh,340px));
  gap:clamp(6px,1.2dvh,13px);padding:clamp(7px,1vw,14px)
}
.champion-choice-image{
  display:block;width:100%;height:75%;max-height:245px;min-height:0;
  object-fit:contain;flex:1 1 auto;background:#fff;border-radius:10px
}
.champion-choice-word{
  font-size:clamp(22px,2.6vw,35px);font-weight:800;line-height:1.24;
  overflow-wrap:anywhere;text-align:center;flex:none
}
.champion-feedback{grid-row:7;
  display:flex;align-items:center;justify-content:center;
  text-align:center;height:var(--feedback-height);min-height:0;
  line-height:1.25;margin:0;overflow:hidden;
  font-size:clamp(14px,1.4vw,18px);font-weight:700;color:#34745f
}
.champion-feedback.error{color:#a66b50}
.champion-next-slot{
  grid-row:8;display:flex;align-items:center;justify-content:center;
  height:var(--next-slot-height);min-height:0;max-height:var(--next-slot-height);
  overflow:hidden;
}
.champion-next{
  min-width:190px;height:calc(var(--next-slot-height) - 6px);
  min-height:0;padding:0 24px;line-height:1;
}
.champion-finish h2{font-size:clamp(29px,4vw,46px);color:var(--jade);margin:0}
.champion-finish p{font-size:clamp(18px,2.2vw,26px);line-height:1.5;margin:0}
@keyframes champion-nudge{0%,100%{transform:translateX(0)}33%{transform:translateX(-3px)}66%{transform:translateX(3px)}}
@media(max-width:680px){
  .champion-header{height:46px;min-height:46px;padding:4px 10px}
  .champion-brand{font-size:18px}
  .champion-exit{font-size:12px;padding:7px 9px}
  .champion-shell{padding:6px}
  .champion-paper{border-radius:15px;padding:9px}
  .champion-play{
    --audio-help-height:17px;--feedback-height:36px;--next-slot-height:46px;
    gap:5px
  }
  .champion-question{font-size:clamp(18px,4.8vw,25px);max-width:calc(100% - 70px)}
  .champion-prompt-row{gap:7px}
  .champion-bunny{width:clamp(55px,9dvh,74px);height:clamp(55px,9dvh,74px)}

  .champion-listen{min-height:44px;font-size:16px;padding:5px 15px}
  .champion-choices{gap:5px}
  .champion-choice{border-radius:10px;padding:4px}
  .champion-choice.character-choice{font-size:clamp(40px,12vw,68px);height:min(100%,28dvh)}
  .champion-choice.pictured-choice{height:min(100%,32dvh);gap:3px;padding:4px}
  .champion-choice-image{height:67%;border-radius:7px}
  .champion-choice-word{font-size:clamp(15px,4vw,21px)}
  .champion-button{font-size:16px;min-height:38px;padding:7px 16px}
  .champion-feedback{font-size:13px}
}
@media(max-height:590px){
  .champion-header{height:42px;min-height:42px}
  .champion-shell{padding:4px}
  .champion-paper{padding:7px}
  .champion-play{
    --audio-help-height:15px;--feedback-height:30px;--next-slot-height:42px;
    gap:4px
  }
  .champion-question{font-size:19px}
  .champion-bunny{width:60px;height:60px}
  .champion-prompt-row{gap:8px}

  .champion-listen{min-height:39px;padding:3px 15px}
  .champion-choice.pictured-choice{height:min(100%,34dvh)}
  .champion-next{min-height:0}
}
@media(prefers-reduced-motion:reduce){.champion-choice,.champion-button{transition:none;animation:none}}


/* Preserve the fireworks particles/animation from the original six-stage game. */
.fireworks{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:999}
.fireworks span{position:absolute;left:0;top:0;width:10px;height:10px;margin:-5px;border-radius:50%;animation:fw-burst .8s ease-out forwards}
@keyframes fw-burst{
  0%{transform:translate(0,0) scale(1);opacity:1}
  100%{transform:translate(var(--dx),var(--dy)) scale(.3);opacity:0}
}
