:root{color-scheme:light;--ink:#354c3a;--dark:#334635;--muted:#657160;--leaf:#536c48;--border:#e1e3d4;--card:#fffef8;--sans:"Nunito","PingFang TC","Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;font-family:var(--sans);color:var(--dark);background:#faf8ef}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;position:relative;isolation:isolate;background-color:#faf8ef;background-image:radial-gradient(#9aab7324 .85px,transparent .95px);background-size:15px 15px;padding-bottom:46px}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:disabled{cursor:default}
button:focus-visible,h2:focus-visible{outline:3px solid #286861;outline-offset:4px}
button:active:not(:disabled){transform:translateY(2px)}
[hidden]{display:none!important}
.icon{display:inline-block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none;pointer-events:none}
.wrap{width:min(1100px,calc(100% - 92px));margin-inline:auto}
.topbar{background:#fffff9f5;border-bottom:1px solid #dfdfcf}
.nav,.nav-actions,.brand,.section-head,.speaker,.speaker-name,.play-control,.sound-control,.primary{display:flex;align-items:center}
.nav{justify-content:space-between;min-height:72px}
.brand{gap:10px;font-size:24px;letter-spacing:.065em;font-weight:850;color:#354d37}
.brand img{width:44px;height:44px}.nav-actions{gap:12px}
.sound-control,.help-control{background:#fffef8;border:1.5px solid #d9dfce;color:#53654d}
.sound-control{border-radius:24px;min-height:40px;padding:6px 15px;gap:8px;font-size:14px;font-weight:700}
.sound-control .icon{width:18px}
.help-control,.dialog-close{display:grid;place-items:center;width:40px;height:40px;border-radius:50%}
.help-control:hover,.sound-control:hover,.dialog-close:hover{background:#f1f4e6}
.intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:28px 1px 23px}
h1,h2,p,figure{margin:0}
h1{display:flex;align-items:center;gap:13px;color:#344b36;font-size:clamp(32px,3.3vw,44px);line-height:1.32;font-weight:850;letter-spacing:.035em}
.blossom{color:#eab34c;font-family:Georgia,serif;font-size:.85em;line-height:1;transform:rotate(14deg);text-shadow:0 2px 0 #ffdf8c}
.intro p{font-size:16px;letter-spacing:.035em;margin-top:6px;color:#64705e}
.progress-card{background:#fffef7;border:1.5px solid #dfe2d0;border-radius:17px;padding:9px 15px 10px;min-width:154px;box-shadow:0 3px 0 #65744c0a}
.progress-card>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:13px;font-weight:750;color:#66715d}
.progress-card strong{font-family:ui-rounded,var(--sans);font-size:13px;letter-spacing:.07em;color:#58624e}
.stars{display:flex;justify-content:space-between;margin-top:4px;gap:4px}
.stars .icon{width:20px;height:20px;fill:#f3f0de;color:#b9b596;stroke-width:1.35}
.stars .earned{fill:#ffce5c;color:#bd852e}
.story-card,.work-card{background:var(--card);border:1.5px solid var(--border);border-radius:24px;box-shadow:0 4px 0 #83855c12,0 6px 20px #797b4e09}
.story-card{display:grid;grid-template-columns:1.12fr 1fr;overflow:hidden;position:relative}
.scene{position:relative;min-height:320px;border-right:1px solid #dbdfc7;isolation:isolate}
.scene-img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:50% 53%}
.scene figcaption{position:absolute;left:17px;top:16px;display:flex;align-items:center;gap:7px;padding:5px 12px 6px;background:#fffcf1f2;color:#4b5b40;border:1px solid #fffae9;border-radius:18px;font-weight:750;font-size:13px;box-shadow:0 2px 5px #495b4120}
.green-dot{width:8px;height:8px;background:#82a264;border-radius:50%}
.story{padding:22px 25px 24px;position:relative;align-self:center;width:100%}
.section-head{justify-content:space-between;gap:8px;margin-bottom:15px}
h2{font-size:22px;line-height:1.5;letter-spacing:.035em;color:var(--ink);font-weight:800}
.section-head h2{display:flex;align-items:center;gap:9px}.section-head h2 .icon{color:#647f50;width:23px;height:23px}
.play-control{border:1px solid #cedbbf;background:#eef4e3;gap:5px;padding:6px 11px;min-height:36px;white-space:nowrap;border-radius:18px;color:#48643d;font-size:13px;font-weight:750}
.play-control:hover{background:#e2edce}.play-control .icon{width:15px;height:15px}
.line-card{border-radius:16px;padding:8px 15px 12px;background:var(--bubble);box-shadow:inset 0 0 0 1px var(--bubble-border);transition:box-shadow .18s}
.peppa{--bubble:#fdf0ed;--voice:#9a5062;--bubble-border:#f1deda}
.george{--bubble:#edf6f6;--voice:#46747e;--bubble-border:#d8e7e6;margin-top:12px}
.line-card.speaking{box-shadow:inset 0 0 0 2px var(--voice)}
.speaker{justify-content:space-between;color:var(--voice)}
.speaker-name{gap:7px;font-weight:800;font-size:14px;letter-spacing:.04em}
.speaker-name img{width:26px;height:26px;border:1.5px solid #fffd;border-radius:50%}
.line-play{min-width:40px;height:35px;display:grid;place-items:center;color:var(--voice);background:transparent;border:0;border-radius:12px}
.line-play .icon{width:17px;height:17px}
.line-play:hover{background:#ffffffa1}
.line-card p{font-size:clamp(18px,1.55vw,22px);color:#494a41;line-height:1.5;letter-spacing:.025em;font-weight:650;padding-top:2px}
.line-card b{color:var(--voice);font:inherit;font-weight:800}
.audio-status{font-size:13px;color:#866030;margin-top:8px}
.work-card{margin-top:20px;padding:24px 26px;display:grid;grid-template-columns:1.12fr 1fr;gap:27px}
.picnic-count{min-width:0}
.picnic-count .section-head{margin-bottom:12px}
.mat{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:5px 3px;padding:16px 11px;min-height:107px;border:1px solid #dfd7bc;border-radius:15px;position:relative;background-color:#fff9e5;background-image:linear-gradient(90deg,#dbc99133 50%,transparent 50%),linear-gradient(#dbc99133 50%,transparent 50%);background-size:20px 20px}
.mat:before{content:"";position:absolute;inset:5px;border:1.3px dashed #beac7e78;border-radius:11px;pointer-events:none}
.counter{appearance:none;background:transparent;border:0;padding:1px;width:clamp(42px,4.25vw,57px);height:clamp(44px,4.25vw,57px);display:grid;place-items:center;position:relative;isolation:isolate;border-radius:12px}
.counter img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px #7d653323);pointer-events:none}
.counter:nth-child(3n+1) img{transform:rotate(-6deg)}.counter:nth-child(3n+2) img{transform:rotate(5deg)}
.counter:hover:not(:disabled) img{scale:1.08}
.counter.counted:after{content:"✓";position:absolute;right:0;bottom:0;border-radius:50%;color:white;background:#58855a;border:2px solid #fff;font-weight:900;font-size:12px;width:18px;height:18px;display:grid;place-items:center}
.counter.removed img{opacity:.23;filter:grayscale(.75)}
.counter.removed:after{content:"";position:absolute;inset:50% 10% auto;transform:rotate(-35deg);border-top:3px solid #957e67;border-radius:3px}
.counter.arrival{animation:appear .35s ease-out both}
.counter.leaving{animation:away .4s ease-out both}
.counter.waiting{visibility:hidden}
.group-gap{width:5px}
.mat.dense .counter{width:clamp(39px,3.6vw,48px);height:48px}
.answer{padding-left:22px;border-left:1.5px dashed #dcdcc7;display:flex;flex-direction:column;justify-content:center}
.answer h2{font-size:23px;line-height:1.45;margin-bottom:13px}
.choices{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.choice{border:1.5px solid var(--edge);border-bottom:4px solid var(--edge);border-radius:15px;height:73px;font:800 38px/1 ui-rounded,"Trebuchet MS",var(--sans);color:var(--digit);background:var(--fill)}
.choice[data-slot="0"]{--fill:#f9e4de;--edge:#e7bcb2;--digit:#925749}
.choice[data-slot="1"]{--fill:#fbefc5;--edge:#dfcc92;--digit:#89672b}
.choice[data-slot="2"]{--fill:#e5efdc;--edge:#bfd0ab;--digit:#587049}
.choice:hover:not(:disabled){filter:brightness(.985);transform:translateY(-2px)}
.feedback{font-size:14px;line-height:1.5;color:#7c6851;font-weight:600;margin-top:8px;min-height:21px}
.feedback:empty:before{content:"點選你覺得對的數字。";color:#737767;font-weight:500}
.result{display:grid;gap:12px}
.result-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.reward-banner{
  position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:12px;
  min-height:74px;padding:9px 14px;border:1px solid #e6ce8d;border-radius:17px;
  background:radial-gradient(circle at 90% 22%,#ffda7880 2px,transparent 3px),
    radial-gradient(circle at 85% 78%,#e3b56c80 2px,transparent 3px),linear-gradient(108deg,#fff0bd,#fff8e1);
}
.answer .reward-banner h2{position:relative;margin:0;color:#715022;font-size:clamp(18px,2vw,23px)}
.reward-star{
  position:relative;flex:none;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;
  background:#fff9df;border:2px solid #eac669;box-shadow:0 3px 0 #e6bd6180;
  animation:reward-pop .55s ease-out both;
}
.reward-star .icon{width:34px;height:34px;color:#aa7021;fill:#ffcf56;stroke-width:1.3;transform:rotate(-8deg)}
.confetti{position:absolute;inset:0;pointer-events:none}
.confetti i{
  position:absolute;top:-10px;left:calc((var(--i) + .5)*8.333%);width:6px;height:10px;border-radius:2px;
  background:#d99c39;--drift:12px;--turn:140deg;animation:confetti-fall 1.25s ease-out both;
}
.confetti i:nth-child(3n+1){background:#c68184;--drift:-12px;--turn:-165deg;animation-delay:.12s}
.confetti i:nth-child(3n+2){background:#7ca681;--drift:5px;--turn:95deg;animation-delay:.03s}
.confetti i:nth-child(4n){width:7px;height:7px;border-radius:50%;background:#76a7b4;animation-delay:.22s}
@keyframes reward-pop{
  0%{transform:scale(.62) rotate(-18deg)}
  65%{transform:scale(1.12) rotate(7deg)}
  100%{transform:none}
}
@keyframes confetti-fall{
  0%{opacity:0;transform:translateY(0)}
  15%{opacity:.95}
  75%{opacity:.85}
  100%{opacity:0;transform:translate(var(--drift),88px) rotate(var(--turn))}
}
.result strong{font-family:ui-rounded,"Trebuchet MS",var(--sans);font-size:clamp(25px,3vw,37px);color:#4c6748;letter-spacing:.03em}
.primary,.error button{background:#55794b;color:white;border:1px solid #486b40;border-bottom:3px solid #3f6138;border-radius:14px;min-height:44px;justify-content:center;gap:8px;padding:8px 17px;font-weight:700}
.primary:hover{background:#486d40}.primary .icon{width:18px}
.error{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:14px;padding:10px;border-radius:12px;background:#ffedce;color:#744b21}
.bottom-meadow{position:absolute;z-index:-1;left:0;right:0;bottom:0;height:14px;background:radial-gradient(ellipse at 50% 100%,#dce7bd 61%,transparent 63%) repeat-x bottom/45px 18px}
dialog{color:var(--dark);background:#fffef7;border:1.5px solid #d6ddc7;border-radius:24px;box-shadow:0 15px 80px #27392535;width:min(390px,calc(100% - 32px));padding:31px 25px 25px;text-align:center}
dialog::backdrop{background:#283c31a6}
.dialog-close{position:absolute;top:12px;right:12px;border:0;background:#f4f3e9}
.dialog-basket{width:58px;height:58px}dialog h2{margin:8px 0 12px;font-size:27px}dialog ol{text-align:left;padding-left:24px;line-height:1.8}
dialog li{margin-bottom:6px}dialog .primary{width:100%;margin-top:19px}
.big-stars{font-size:32px;color:#cf942d;letter-spacing:.07em}
.text-btn{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;margin-top:12px;padding:8px}
@keyframes appear{from{opacity:0;transform:translateY(-12px) scale(.85)}to{opacity:1;transform:none}}
@keyframes away{from{transform:scale(1.12)}to{transform:scale(1)}}
@media(min-width:1500px){.intro{padding-block:40px 30px}.scene{min-height:350px}.work-card{margin-top:26px;padding-block:30px}}
@media(max-width:940px){.wrap{width:calc(100% - 48px)}.story{padding:18px}.work-card{padding:20px;gap:18px}.answer{padding-left:17px}.scene{min-height:300px}.section-head h2,.answer h2{font-size:20px}.counter{width:45px;height:45px}.choice{height:64px}.mat.dense .counter{width:39px;height:42px}}
@media(max-width:720px){.wrap{width:calc(100% - 32px)}.nav{min-height:59px}.brand{font-size:19px;gap:7px}.brand img{width:36px;height:36px}.nav-actions{gap:6px}.sound-control{min-height:38px;padding:4px 11px}.help-control{width:38px;height:38px}.intro{padding:19px 0 15px}.intro h1{font-size:29px;gap:6px}.intro p{font-size:13px;max-width:255px;line-height:1.55}.progress-card{min-width:101px;padding:7px 9px;border-radius:12px}.progress-card>div:first-child,.progress-card strong{font-size:11px;gap:6px}.stars{gap:1px}.stars .icon{width:15px;height:15px}.story-card{grid-template-columns:1fr;border-radius:20px}.scene{min-height:0;height:clamp(170px,43vw,260px);border-right:0;border-bottom:1px solid #dfddc6}.scene-img{object-position:50% 56%}.scene figcaption{left:12px;top:11px;font-size:11px;padding:4px 9px}.story{padding:13px 15px 15px}.section-head{margin-bottom:9px}.line-card{padding:5px 11px 8px}.line-card p{font-size:17px;padding:0}.speaker-name{font-size:12px}.speaker-name img{width:22px;height:22px}.line-play{height:32px;width:42px}.george{margin-top:7px}.work-card{display:block;margin-top:13px;padding:15px;border-radius:20px}.section-head h2,.answer h2{font-size:19px}.mat{min-height:80px;padding:10px 8px;gap:3px}.picnic-count .section-head{margin-bottom:8px}.answer{border:0;margin-top:14px;padding:0}.answer h2{margin-bottom:8px}.choice{height:57px;font-size:31px;border-radius:12px}.feedback{font-size:13px;min-height:17px;margin-top:6px}body{padding-bottom:30px}}
@media(max-width:370px){.wrap{width:calc(100% - 20px)}.intro h1{font-size:25px}.blossom{display:none}.sound-control span{font-size:12px}.story,.work-card{padding:12px}.progress-card{min-width:84px}.nav-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:500px) and (max-width:720px){.intro p{max-width:none}}
