@font-face{font-family:Happy;src:url('assets/ZCOOLKuaiLe-Regular.ttf') format('truetype');font-display:swap}
:root{--ink:#172e28;--paper:#fff3c9;--yellow:#f8ca62;--coral:#ef8068;--teal:#69bfb0;--outline:3px solid var(--ink)}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'Microsoft YaHei','PingFang SC',sans-serif;background:#123d33}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #fff;outline-offset:4px;box-shadow:0 0 0 7px #172e28}button:disabled{cursor:default}button svg{width:27px;height:27px;stroke:var(--ink);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;fill:#fff1bb}button svg circle{fill:var(--ink)}[hidden]{display:none!important}
.review-bar{min-height:40px;display:flex;align-items:center;justify-content:space-between;padding:7px 22px;background:#f5f0df;gap:10px;font-size:12px;border-bottom:1px solid #c6c6b5}.review-bar b{white-space:nowrap}.review-bar b span{font-weight:400;margin-left:10px;color:#526658}.review-bar>div{display:flex;align-items:center;gap:5px}.review-bar button,.review-bar a{border:0;border-radius:4px;padding:5px 9px;background:transparent;text-decoration:none;color:#344d43;font-size:12px;white-space:nowrap}.review-bar button[aria-pressed=true]{background:#264e3d;color:white}
.game{min-height:720px;position:relative;overflow:hidden;background:#73ac74 url('assets/field.svg') center/100% 100% no-repeat;padding:21px 34px 14px}.game-top{max-width:1190px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}.edition{font-family:Happy,sans-serif;color:#fdf1c9;letter-spacing:2px;font-size:17px;transform:rotate(-3deg);text-shadow:2px 2px 0 #15382d}.music{display:flex;align-items:center;gap:8px;background:var(--paper);border:var(--outline);border-radius:42% 13% 36% 12% / 14% 30% 13% 36%;box-shadow:3px 4px 0 #123f30;padding:4px 12px 4px 6px;font-size:12px;font-weight:bold;transform:rotate(1deg)}.music button{background:var(--yellow);border:2px solid var(--ink);border-radius:50%;width:33px;height:32px;display:grid;place-items:center;padding:2px}.music button[aria-pressed=true]{background:#c7cfad}.music button[aria-pressed=true] svg{opacity:.4}.music input{accent-color:var(--ink);width:83px;cursor:pointer;height:20px}.music output{min-width:32px;font-variant-numeric:tabular-nums}
.title{text-align:center;position:relative;margin:1px auto 21px;width:max-content;max-width:100%}.title p{font-size:13px;letter-spacing:2px;font-weight:bold;margin:9px 0 5px;color:#f7f0c3;text-shadow:1px 2px 0 #254f38}.title h1{position:relative;margin:0;font:86px/.99 Happy,sans-serif;letter-spacing:4px;filter:drop-shadow(0 5px 0 #133c2e)}.title h1 span{display:inline-block;paint-order:stroke fill;-webkit-text-stroke:8px var(--ink);color:var(--paper)}.title h1 span:nth-child(1){transform:rotate(-7deg)}.title h1 span:nth-child(2){transform:rotate(3deg) translateY(3px)}.title h1 span:nth-child(3){transform:rotate(-5deg);color:#ffcd62}.title h1 span:nth-child(4){transform:rotate(5deg);color:#ffbd55}.title h1 span:nth-child(5){transform:rotate(-4deg)}.title-spark{position:absolute;right:-38px;top:-13px;color:#f5ca62;font-size:44px;transform:rotate(14deg);font-style:normal;-webkit-text-stroke:3px var(--ink)}
.selection-body{width:min(900px,100%);margin:auto}.step-label{display:flex;align-items:center;gap:9px;font-family:Happy,sans-serif;font-size:21px;margin:0 0 10px}.step-label b{border:2px solid var(--ink);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;background:var(--paper);font:18px Happy}.step-label>span{white-space:nowrap}.step-label i{height:2px;background:var(--ink);opacity:.25;flex:1;transform:rotate(-.4deg)}.step-label small{font-family:'Microsoft YaHei',sans-serif;font-size:12px;color:#345c40;font-weight:normal}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px 18px}.subject-card{--card:#eec989;position:relative;display:flex;align-items:center;gap:9px;min-width:0;padding:8px 20px 8px 9px;height:103px;background:var(--card);border:var(--outline);border-radius:18px 12px 19px 14px / 13px 18px 13px 17px;box-shadow:3px 5px 0 #244a37,inset 0 0 0 4px #fff1bf88;transition:translate .1s,box-shadow .1s;transform:rotate(var(--tilt,0deg));text-align:left}.subject-card:nth-child(2n){--tilt:.6deg}.subject-card:nth-child(3n){--tilt:-.7deg}.subject-card>img{width:84px;height:87px;flex-shrink:0;filter:drop-shadow(1px 2px 0 #fff8dc88)}.subject-card strong{font-family:Happy,sans-serif;font-size:30px;letter-spacing:2px;display:block}.subject-card small{display:block;font-size:12px;margin-top:6px;white-space:nowrap;color:#344239}.subject-card .tick{display:none;position:absolute;right:9px;top:8px;border:2px solid var(--ink);width:24px;height:23px;border-radius:50%;background:var(--paper);text-align:center;font-size:16px;font-weight:bold}.subject-card[aria-pressed=true] .tick{display:block}.subject-card .corners{pointer-events:none;position:absolute;inset:-5px;opacity:0}.subject-card[aria-pressed=true] .corners{opacity:1}.corners i{position:absolute;width:19px;height:19px;border:7px solid var(--ink);border-radius:4px;filter:drop-shadow(1px 1px 0 #fff7d5)}.corners i:after{content:'';position:absolute;inset:-4px;border:2px solid white;border-radius:2px}.corners i:nth-child(1){top:0;left:0;clip-path:polygon(0 0,100% 0,100% 45%,45% 45%,45% 100%,0 100%)}.corners i:nth-child(2){top:0;right:0;transform:rotate(90deg);clip-path:polygon(0 0,100% 0,100% 45%,45% 45%,45% 100%,0 100%)}.corners i:nth-child(3){bottom:0;right:0;transform:rotate(180deg);clip-path:polygon(0 0,100% 0,100% 45%,45% 45%,45% 100%,0 100%)}.corners i:nth-child(4){bottom:0;left:0;transform:rotate(270deg);clip-path:polygon(0 0,100% 0,100% 45%,45% 45%,45% 100%,0 100%)}
.sound-line{display:flex;align-items:center;justify-content:center;gap:18px;margin:22px 0 18px}.sound-title{font:18px Happy}.sound-options{display:flex;gap:10px}.sound-options button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:99px;border:2px solid var(--ink);background:#e3e9b8;box-shadow:2px 3px 0 #36583b;border-radius:11px 14px 9px 12px;padding:5px 10px;font:17px Happy}.sound-options button[aria-pressed=true]{background:var(--paper);box-shadow:2px 3px 0 var(--ink)}.sound-options button[aria-pressed=true]:after{content:'✓';font:14px sans-serif}.time-step{margin-bottom:9px}.duration-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.duration-grid button,.restart{position:relative;background:#ffd17a;border:var(--outline);border-radius:14px 19px 13px 16px / 20px 13px 18px 14px;box-shadow:3px 6px 0 #203f30,inset 0 0 0 3px #ffedb2;padding:12px 10px 11px;transition:translate .1s,box-shadow .1s}.duration-grid button:nth-child(even){transform:rotate(.8deg)}.duration-grid strong{font:39px/1 Happy,sans-serif;letter-spacing:-1px}.duration-grid span{font:16px Happy;margin-left:4px}.duration-grid i{font-style:normal;font-size:20px;position:absolute;right:10px;top:10px;opacity:.6}.subject-card:hover,.duration-grid button:hover,.restart:hover{translate:0 -3px}.subject-card:active,.duration-grid button:active,.restart:active,.sound-options button:active{translate:2px 4px;box-shadow:0 1px 0 #203f30}.rebound{animation:rebound .28s ease-out}.card-pop>img{animation:book-pop .36s ease-out}.game-footer{display:flex;justify-content:center;gap:17px;font-size:12px;color:#284e36;margin:23px auto 0;letter-spacing:2px}.tiny-star{font-size:19px;color:#f9e6a0}
.review-note{color:#dee7d7;font-size:12px;line-height:1.7;text-align:center;padding:12px 24px;background:#123d33}.view{animation:enter .28s ease-out}.play-heading{max-width:930px;display:flex;align-items:center;justify-content:space-between;margin:18px auto 0;position:relative;z-index:1}.subject-stamp{display:flex;align-items:center;gap:10px;border:var(--outline);background:var(--paper);padding:3px 20px 3px 5px;transform:rotate(-3deg);border-radius:18px 10px 16px 12px;box-shadow:3px 4px 0 var(--ink)}.subject-stamp img{width:65px;height:65px}.subject-stamp b{display:block;font:25px Happy}.subject-stamp small{font-size:12px;display:block;margin-top:5px}.timer-plaque{text-align:center;background:#fff1b9;border:4px solid var(--ink);box-shadow:4px 5px 0 #25503b;transform:rotate(2deg);border-radius:20px 25px 18px 23px;padding:8px 27px 5px}.timer-plaque small{display:block;font:16px Happy}.timer-plaque strong{display:block;font:65px/.95 Happy;letter-spacing:2px;font-variant-numeric:tabular-nums}.fuse-field{position:relative;max-width:960px;margin:5px auto 0;height:390px}.fuse-map{width:100%;height:100%;overflow:visible;filter:drop-shadow(1px 3px 0 #4b895360)}.spark{transform-box:fill-box;transform-origin:center;animation:spark .6s steps(2,end) infinite}.scene-actors{position:absolute;left:45%;bottom:-62px;display:flex;align-items:flex-end;gap:0}.hero-book{width:160px;margin-right:-5px;transform:rotate(-9deg);animation:breathe 3s ease-in-out infinite}.hero-bomb{width:133px}.scene-caption{margin:75px 0 0;text-align:center;font:18px Happy;letter-spacing:1px}.ending-scene{max-width:880px;height:565px;margin:0 auto;position:relative;display:grid;place-items:center}.burst{width:570px;height:450px;position:absolute;background:#f4bb55;clip-path:polygon(50% 0,57% 17%,73% 4%,73% 25%,97% 16%,84% 38%,100% 51%,82% 59%,96% 82%,70% 77%,73% 99%,54% 85%,40% 100%,35% 80%,10% 94%,18% 69%,0 58%,17% 45%,1% 25%,27% 29%,29% 4%,43% 21%);transform:rotate(-7deg)}.cloud{z-index:1;position:relative;top:15px;width:440px;text-align:center;background:var(--paper);border:4px solid var(--ink);box-shadow:5px 8px 0 #183b2b;border-radius:45% 42% 43% 38% / 23% 32% 30% 27%;padding:36px 25px 30px;transform:rotate(-2deg)}.cloud small{font:20px Happy}.cloud h2{font:77px/1.05 Happy;margin:10px 0;color:var(--coral);paint-order:stroke fill;-webkit-text-stroke:4px var(--ink);text-shadow:2px 4px 0 var(--ink)}.cloud p{font-size:14px;margin:9px 0 24px}.restart{font:24px Happy;padding:12px 28px;background:#ffd17a;min-width:190px}.restart span{margin-left:20px}.end-book{position:absolute;width:150px;left:74px;top:58px;transform:rotate(-32deg);z-index:2}.confetti{position:absolute;color:#fff0c1;font-size:65px;-webkit-text-stroke:3px var(--ink);z-index:2}.c1{right:95px;top:100px;transform:rotate(10deg)}.c2{left:55px;bottom:84px}.c3{right:76px;bottom:60px;font-size:45px;color:#ed826e}.kit-title{text-align:center;font:44px Happy;margin:35px 0 10px}.kit-intro{text-align:center;font-size:14px}.kit-grid{max-width:1050px;margin:35px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.kit-panel{padding:20px;background:var(--paper);border:var(--outline);border-radius:17px 24px 18px 20px;box-shadow:4px 6px 0 #234833}.kit-panel h3{font:25px Happy;margin:0 0 20px}.kit-panel p{font-size:13px;line-height:1.8}.kit-panel .subject-card{width:100%;padding-right:10px}.kit-panel .subject-card img{width:73px}.text-button{border:2px solid var(--ink);border-radius:8px;padding:8px;background:#bfce9b}.swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.swatches i{display:block;height:46px;border:3px solid var(--ink);border-radius:8px 12px 7px 10px}
@keyframes rebound{0%{translate:2px 4px}50%{translate:0 -4px}100%{translate:0 0}}@keyframes book-pop{0%{transform:scale(.94) rotate(-5deg)}45%{transform:scale(1.09) rotate(5deg)}75%{transform:scale(.99) rotate(-2deg)}100%{transform:scale(1) rotate(0)}}@keyframes enter{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes spark{50%{opacity:.65}}@keyframes breathe{50%{translate:0 -4px}}
.reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.reduce-motion button:hover{translate:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}button:hover{translate:none}}
@media(min-width:1400px){.game{min-height:calc(100vh - 84px);padding-top:28px}.title{margin-top:10px;margin-bottom:28px}.title h1{font-size:96px}.subject-card{height:115px}.subject-card>img{width:96px;height:98px}.sound-line{margin-top:27px;margin-bottom:24px}.duration-grid button{padding:16px}.selection-body{width:960px}.fuse-field{height:420px}}
@media(max-width:700px){.review-bar{padding:7px 9px;align-items:flex-start;flex-direction:column;gap:5px}.review-bar b{font-size:11px}.review-bar>div{width:100%;justify-content:space-between;gap:0}.review-bar button,.review-bar a{font-size:11px;padding:5px}.game{min-height:760px;padding:15px 18px 20px;background-size:auto 100%;background-position:center}.game-top{justify-content:center}.edition{display:none}.music{font-size:11px;padding:3px 8px;gap:8px}.music input{width:80px}.music button{width:30px;height:29px}.title{margin:21px auto 23px}.title p{font-size:11px;letter-spacing:1px;margin:0 0 12px}.title h1{font-size:51px;letter-spacing:0;filter:drop-shadow(0 3px 0 #133c2e)}.title h1 span{-webkit-text-stroke-width:5px}.title-spark{font-size:26px;right:-19px;top:-13px;-webkit-text-stroke-width:2px}.step-label{font-size:18px;gap:7px;margin-bottom:10px}.step-label b{width:24px;height:24px;font-size:16px}.step-label small{display:none}.subject-grid{grid-template-columns:repeat(2,1fr);gap:13px 12px}.subject-card{height:106px;display:flex;gap:0;padding:7px 9px 7px 1px;box-shadow:2px 4px 0 #244a37}.subject-card>img{width:70px;height:88px}.subject-card strong{font-size:23px;letter-spacing:0}.subject-card small{font-size:10px;margin-top:5px;letter-spacing:-.5px}.subject-card .tick{width:19px;height:19px;right:5px;top:5px;font-size:12px}.sound-line{gap:8px;margin:22px 0 22px;justify-content:space-between}.sound-title{font-size:14px;white-space:nowrap}.sound-options{gap:6px;flex:1;justify-content:flex-end}.sound-options button{min-width:0;gap:3px;padding:6px 7px;font-size:15px}.sound-options button svg{width:20px;height:20px}.sound-options button[aria-pressed=true]:after{display:none}.sound-options button[aria-pressed=true]{outline:2px solid #fff4c2;outline-offset:-5px}.duration-grid{gap:9px}.duration-grid button{padding:13px 3px 10px;box-shadow:2px 4px 0 #203f30}.duration-grid strong{font-size:31px;display:block}.duration-grid span{font-size:13px;margin-left:0}.duration-grid i{display:none}.game-footer{font-size:10px;letter-spacing:.5px;gap:10px;margin-top:22px}.review-note{padding:10px 14px;text-align:left;font-size:11px}.play-heading{margin-top:29px;gap:12px}.subject-stamp{padding:3px 9px 4px 1px;gap:0}.subject-stamp img{width:46px;height:54px}.subject-stamp b{font-size:21px}.subject-stamp small{font-size:10px}.timer-plaque{padding:8px 13px 7px}.timer-plaque small{font-size:13px}.timer-plaque strong{font-size:44px}.fuse-field{height:405px;margin-top:28px}.fuse-map{height:345px;transform:scaleY(1.05)}.scene-actors{left:14%;bottom:-4px}.hero-book{width:143px}.hero-bomb{width:114px}.scene-caption{font-size:15px;margin-top:35px}.ending-scene{height:545px}.burst{width:340px;height:355px}.cloud{width:285px;padding:34px 14px 28px}.cloud h2{font-size:59px}.cloud small{font-size:17px}.cloud p{font-size:12px}.cloud .restart{font-size:22px;min-width:190px}.end-book{width:99px;left:4px;top:34px}.confetti{font-size:42px}.c1{right:4px;top:79px}.c2{left:1px;bottom:87px}.c3{right:1px;bottom:58px;font-size:36px}.kit-title{font-size:31px}.kit-intro{font-size:12px;line-height:1.8}.kit-grid{grid-template-columns:1fr;margin:24px auto}.kit-panel .subject-card{max-width:280px}.kit-panel .subject-card>img{width:86px}.kit-panel .subject-card strong{font-size:27px}}
@media(max-width:370px){.game{padding-left:13px;padding-right:13px}.subject-card>img{width:61px}.subject-card strong{font-size:21px}.subject-card small{font-size:9px}.sound-options button{padding:6px}.title h1{font-size:48px}}
@media(max-height:500px) and (min-width:701px){.game{min-height:720px}.review-bar{position:relative}body{overflow:auto}}
/* V1 refinement: frame the whole composition, including portrait layouts. */
.game{background-image:url('assets/field.svg?v=2')}
.title p{color:#234d38;text-shadow:none}.game-footer{color:#f4ecca}.mobile-fuse{display:none}
.scene-caption{color:#fff1c9}
@media(min-width:701px) and (max-width:1399px){.game{min-height:660px;padding-top:15px}.title{margin-bottom:16px}.title h1{font-size:78px}.subject-card{height:96px}.subject-card>img{height:83px;width:80px}.sound-line{margin-top:19px;margin-bottom:15px}.game-footer{margin-top:20px}}
@media(max-width:700px){.game{background-size:100% 100%;min-height:760px}.title{margin-top:18px;margin-bottom:20px}.subject-card{height:99px}.game-footer{margin-top:20px}}
@media(max-width:700px){.desktop-fuse{display:none}.mobile-fuse{display:block;height:375px;transform:none}.fuse-field{height:450px}.scene-actors{bottom:0}.scene-caption{margin-top:20px}}
