@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--paper:#f7f8f2;--ink:#252c25;--muted:#72786e;--line:#dfe3d7;--lime:#d6ee79;--green:#355c3d;--white:#fff;--red:#b8493e;font-family:'Space Grotesk','Noto Sans TC',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button{color:inherit}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6c9137;outline-offset:4px}button{border:0}header,main,footer{max-width:1280px;margin:auto;padding-left:48px;padding-right:48px}.header{height:104px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;text-decoration:none;align-items:center;font-size:21px;font-weight:900;letter-spacing:.04em}.brand small{display:block;font-size:10px;font-weight:600;letter-spacing:.23em;margin-top:3px}.brand-ball{width:38px;height:38px;background:linear-gradient(var(--green) 45%,var(--ink) 45% 55%,var(--paper) 55%);border:2px solid var(--ink);border-radius:50%;position:relative;transform:rotate(-24deg)}.brand-ball:after{content:'';position:absolute;width:10px;height:10px;background:var(--paper);border:3px solid var(--ink);border-radius:50%;left:10px;top:10px}nav{display:flex;gap:28px;align-items:center}.nav-link{background:none;padding:10px 0;font-size:14px;font-weight:600}.nav-link span{font-size:18px;margin-left:4px}.edition{font-size:11px;letter-spacing:.12em;border:1px solid var(--line);padding:9px 12px;border-radius:4px;color:var(--muted)}main{min-height:calc(100svh - 180px);padding-top:46px;padding-bottom:50px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;margin:0 0 16px;color:var(--green)}.eyebrow:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:8px}.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:32px}.hero h1{font-size:clamp(30px,3.5vw,46px);line-height:1.35;letter-spacing:-.05em;margin:0;font-weight:900}.hero h1 em{font-style:normal;position:relative;z-index:0}.hero h1 em:after{content:'';position:absolute;left:-3px;right:-3px;bottom:2px;height:14px;z-index:-1;background:var(--lime);transform:rotate(-1deg)}.hero p.description{font-size:15px;color:var(--muted);line-height:1.9;margin:14px 0 0}.hero-stats{display:flex;gap:28px;padding-bottom:6px;flex-shrink:0}.hero-stats div{border-left:1px solid var(--line);padding-left:24px}.hero-stats strong{display:block;font-size:29px;font-weight:500}.hero-stats small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.setup-grid{display:grid;grid-template-columns:1.03fr 1fr;gap:24px}.panel{border:1px solid var(--line);border-radius:20px;background:var(--white);padding:28px}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.panel h2{font-size:19px;margin:0;letter-spacing:-.02em}.panel-heading small{font-size:11px;color:var(--muted);letter-spacing:.08em}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#f1f3ed;padding:5px;border-radius:12px;gap:4px}.segment{border-radius:9px;background:transparent;padding:11px 4px;font-size:15px;font-weight:700;color:#74796f}.segment.active{background:var(--white);box-shadow:0 2px 5px #26382410;color:var(--ink)}.segment .mini-icon{margin-right:8px;font-size:17px}.form-group{margin-top:23px}.label-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;margin-bottom:11px}.label-row small{font-size:12px;font-weight:400;color:var(--muted)}.level-group{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.level{border:1px solid var(--line);background:var(--white);border-radius:10px;padding:13px 4px 11px;text-align:left;padding-left:13px}.level.active{border-color:#6c8748;background:#f1f6e7;box-shadow:inset 0 0 0 1px #6c8748}.level b{font-size:14px;display:block}.level small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.settings-row label{font-size:14px;font-weight:600;display:block;margin-bottom:10px}select,input{width:100%;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 12px;font-size:14px;color:var(--ink)}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23565e50' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}.names{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.names label{font-size:13px;display:grid;gap:8px}.start{display:block;width:100%;background:var(--ink);color:white;border-radius:11px;padding:16px;font-size:16px;font-weight:700;margin-top:24px;transition:background .2s,transform .2s}.start:hover{background:var(--green);transform:translateY(-1px)}.start .star{color:var(--lime);margin-right:9px}.setup-note{font-size:12px;color:var(--muted);text-align:center;margin:12px 0 0}.arena-preview{overflow:hidden;position:relative;border-radius:20px;border:1px solid #ccdba8;background:#e9efd9;display:flex;flex-direction:column;min-height:470px}.preview-top{display:flex;justify-content:space-between;padding:24px 26px;position:relative;z-index:1;align-items:center}.preview-top span{font-size:11px;letter-spacing:.12em;color:#5f6f46}.preview-top b{font-size:11px;font-weight:500;background:#f7f9efad;padding:7px 10px;border-radius:20px;border:1px solid #cbd7b6}.stage{position:relative;flex:1;min-height:250px;display:grid;place-items:center;isolation:isolate;background-image:radial-gradient(#81915d33 1px,transparent 1px);background-size:20px 20px}.orbit{position:absolute;width:254px;height:254px;border:1px solid #8ca16a40;border-radius:50%;display:grid;place-items:center}.orbit:before{content:'';position:absolute;inset:-35px;border:1px solid #8ca16a20;border-radius:50%}.orbit:after{content:'';position:absolute;inset:35px;border:1px dashed #8ca16a60;border-radius:50%}.battle-ball{position:relative;width:145px;height:145px;border-radius:50%;border:2px solid #34482c;background:linear-gradient(148deg,#7b9952 0%,#476a36 48%,#34482c 49% 52%,#eff3d9 53%);box-shadow:inset -10px -14px 14px #23371b22,inset 7px 7px 14px #fff4,0 25px 25px -20px #2d441a99;transform:rotate(-22deg);z-index:1}.battle-ball:before{content:'';position:absolute;inset:52px;border:7px solid #34482c;border-radius:50%;background:#edf2da;box-shadow:0 0 0 3px #eff3d966}.battle-ball:after{content:'';position:absolute;inset:65px;border-radius:50%;border:1px solid #8e9c7d}.float-type{position:absolute;z-index:2;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;background:#ffffffed;border:1px solid #dde3d3;border-radius:10px;padding:10px 14px;box-shadow:0 8px 20px #45572c09}.float-type span{font-size:22px}.float-type.fire{left:13%;top:11%;transform:rotate(-9deg)}.float-type.water{right:7%;top:38%;transform:rotate(8deg)}.float-type.grass{left:12%;bottom:4%;transform:rotate(-6deg)}.spark{position:absolute;color:#627b42;font-size:26px;right:21%;top:7%}.spark.small{left:25%;top:49%;font-size:17px}.preview-bottom{padding:26px;z-index:2}.preview-bottom h3{margin:0 0 9px;font-size:22px;font-weight:800}.preview-bottom p{margin:0;color:#64724e;font-size:13px;line-height:1.8}.preview-bottom .tag{font-size:11px;font-weight:700;letter-spacing:.12em;display:inline-block;margin-bottom:10px;color:#61704c}.how{margin-top:26px;border-top:1px solid var(--line);padding-top:23px;display:grid;grid-template-columns:repeat(3,1fr);gap:26px}.how-item{display:flex;align-items:flex-start;gap:13px}.how-icon{font-size:21px;color:var(--green);width:37px;height:37px;background:#eaf0df;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.how h3{font-size:14px;margin:0 0 5px}.how p{font-size:12px;color:var(--muted);margin:0;line-height:1.7}footer{min-height:76px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:11px}.tiny-ball{font-size:16px;color:var(--green);margin-right:6px}.quiz-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px}.text-button{background:transparent;font-size:14px;color:var(--muted);padding:10px 0;text-decoration:underline;text-underline-offset:5px}.quiz-meta{font-size:14px;display:flex;gap:20px;align-items:center}.tag-pill{padding:6px 11px;border:1px solid var(--line);border-radius:20px;font-size:12px}.progress-track{height:5px;background:#e3e7db;border-radius:5px;margin:14px 0 30px;overflow:hidden}.progress-fill{height:100%;background:#70943d;transition:width .3s}.quiz-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:26px;align-items:start}.question-card{background:#eaf0dd;border:1px solid #ceddb6;border-radius:20px;padding:30px;position:sticky;top:24px;overflow:hidden}.question-number{font-size:12px;letter-spacing:.12em;color:var(--green);margin:0 0 20px}.question-card h1{font-size:28px;margin:0 0 12px;line-height:1.5;letter-spacing:-.04em}.question-card>p{font-size:14px;color:#64724e;line-height:1.8}.target-stage{display:flex;justify-content:center;gap:15px;min-height:180px;align-items:center;position:relative;background:radial-gradient(ellipse,#d6e0be77,transparent 65%)}.target-type{width:108px;aspect-ratio:1;border-radius:50%;background:#ffffffa6;border:1px solid #ffffff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 13px 20px #45632b0c}.target-type i{font-style:normal;font-size:40px;color:var(--type)}.target-type b{font-size:17px}.target-plus{color:#8a9d6c;font-size:22px}.question-tip{border-top:1px solid #cdd8b9;padding-top:18px;font-size:12px;line-height:1.8;color:#66724f}.answer-panel{padding:25px 27px}.type-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.type-button{display:flex;align-items:center;gap:9px;position:relative;min-height:57px;border:1px solid var(--line);border-radius:10px;background:white;text-align:left;padding:11px;font-size:14px;transition:.15s}.type-button:hover:enabled{border-color:#8ca470;background:#f4f7ed}.type-button.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);background:#eef5df}.type-button .type-icon{color:var(--type);font-size:22px;line-height:1;min-width:21px;text-align:center}.type-button .check{margin-left:auto;border:1px solid #d0d8c8;width:15px;height:15px;border-radius:4px;font-size:11px;line-height:14px;text-align:center;flex-shrink:0}.type-button.selected .check{background:var(--green);color:white;border-color:var(--green)}.type-button.correct{background:#edf7e6;border-color:#78a85c}.type-button.wrong{background:#fceee9;border-color:#d28475}.type-button.missed{border-style:dashed;border-color:#6c9a47;background:#f4f8ef}.type-button .multi{font-size:12px;margin-left:auto;color:var(--green);font-weight:700}.answer-footer{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:17px}.feedback{margin-top:20px;background:#f0f6e9;border:1px solid #d9e7cc;border-radius:12px;padding:18px;font-size:14px;line-height:1.8}.feedback.partial{background:#fff6eb;border-color:#eddfc9}.feedback h3{font-size:17px;margin:0 0 7px}.feedback p{margin:4px 0}.formula-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.formula{background:#fff9;border-radius:5px;padding:4px 8px;font-size:12px}.result-hero{text-align:center;max-width:770px;margin:0 auto 26px}.result-hero h1{font-size:36px;margin:9px 0 12px}.result-hero p{font-size:14px;color:var(--muted);line-height:1.8}.trophy{font-size:38px;display:inline-grid;place-items:center;background:var(--lime);width:80px;height:80px;border-radius:50%;margin-bottom:18px}.scoreboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));max-width:800px;gap:18px;margin:24px auto}.score-card{position:relative;text-align:center;background:white;border:1px solid var(--line);border-radius:18px;padding:28px}.score-card.winner{background:#eef5dc;border-color:#96ae66}.score-card h2{font-size:18px;margin:0 0 18px;overflow-wrap:anywhere}.score-number{font-size:58px;line-height:1.1;letter-spacing:-.06em}.score-number small{font-size:18px;color:var(--muted);letter-spacing:0}.score-card p{font-size:13px;color:var(--muted);margin:16px 0 0}.rank-label{display:block;font-size:12px;color:var(--green);margin-bottom:10px;font-weight:600}.result-actions{display:flex;gap:12px;justify-content:center;margin:24px 0 35px}.primary,.secondary{padding:13px 22px;border-radius:9px;font-size:14px;font-weight:600}.primary{background:var(--ink);color:white}.secondary{background:white;border:1px solid var(--line)}.review{max-width:900px;margin:auto}.review>h2{font-size:20px;margin-bottom:18px}.review details{border:1px solid var(--line);background:white;border-radius:12px;padding:16px 20px;margin:10px 0}.review summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;list-style:none}.review summary:after{content:'＋';color:var(--muted)}.review details[open] summary:after{content:'−'}.review .review-content{margin-top:16px;border-top:1px solid var(--line);padding-top:12px;font-size:13px;line-height:1.9}.review p{margin:6px 0}.good{color:#3f793a}.bad{color:var(--red)}.handoff{max-width:560px;margin:55px auto;text-align:center}.handoff h1{font-size:32px;overflow-wrap:anywhere}.handoff p{font-size:15px;line-height:1.9;color:var(--muted)}.handoff .start{max-width:360px;margin:28px auto}.timer{font-variant-numeric:tabular-nums;padding:7px 12px;background:#edf1e4;border-radius:8px;font-size:15px}.timer.urgent{color:#b8493e;background:#fcece5}dialog{border:1px solid var(--line);border-radius:20px;padding:30px;width:min(820px,calc(100% - 28px));max-height:85svh;color:var(--ink);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#15200e66;backdrop-filter:blur(4px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.modal-head h2{margin:0 0 22px;font-size:25px}.icon-button{background:#f0f2e9;border-radius:50%;width:35px;height:35px;font-size:24px;flex-shrink:0}.chart-types{display:grid;grid-template-columns:repeat(6,1fr);gap:7px;margin-bottom:22px}.chart-types button{border:1px solid var(--line);border-radius:8px;padding:9px 3px;background:white;font-size:13px}.chart-types button.active{background:var(--ink);color:white;border-color:var(--ink)}.chart-group{margin:20px 0}.chart-group h3{font-size:14px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid var(--line);border-radius:6px;padding:6px 10px;font-size:13px;background:#fafbf7}.chart-explain{font-size:13px;color:var(--muted);line-height:1.8}.source-link{font-size:12px;color:var(--green);display:inline-block;margin-top:10px}.table-wrap{overflow-x:auto}.history-table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}.history-table th,.history-table td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line)}.history-table td:first-child{white-space:normal;overflow-wrap:anywhere;min-width:100px}.empty{padding:40px 10px;text-align:center;color:var(--muted);font-size:14px}.confirm-actions{display:flex;gap:10px;margin-top:24px}.legend{display:flex;gap:14px;font-size:11px;color:var(--muted);margin-top:12px}.legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:2px;background:#9bbc7c;margin-right:5px}.legend span:last-child:before{background:#d68d80}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.fade-in{animation:fade .3s ease}@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1500px){main{padding-top:60px}.hero{margin-bottom:40px}.arena-preview{min-height:500px}}@media(max-width:900px){header,main,footer{padding-left:25px;padding-right:25px}.hero-stats{gap:15px}.hero-stats div{padding-left:15px}.setup-grid{gap:18px}.panel{padding:23px}.level{padding-left:8px}.float-type.fire{left:7%}.float-type.water{right:3%}.float-type.grass{left:7%}.quiz-layout{grid-template-columns:.8fr 1.2fr;gap:18px}.type-grid{gap:7px}.type-button{padding:9px 7px;gap:5px;font-size:13px}.type-button .type-icon{font-size:19px}.answer-panel{padding:20px}.question-card{padding:24px}.target-type{width:85px}.target-type i{font-size:33px}.question-card h1{font-size:24px}}@media(max-width:680px){.header{height:83px}.brand{font-size:18px;gap:9px}.brand-ball{width:32px;height:32px}.brand-ball:after{left:7px;top:7px}.brand small{font-size:8px}nav{gap:17px}.nav-link{font-size:12px}.edition{display:none}main{padding-top:29px;padding-bottom:30px}.hero{margin-bottom:24px;align-items:flex-start}.hero h1{font-size:30px}.hero p.description{font-size:13px;line-height:1.8}.hero-stats{display:none}.eyebrow{font-size:10px}.setup-grid{grid-template-columns:1fr}.arena-preview{min-height:390px;order:2}.stage{min-height:220px}.preview-top{padding:20px 24px}.preview-bottom{padding:23px}.how{grid-template-columns:1fr;gap:18px}.how-item{align-items:center}.how p{font-size:12px}footer{flex-direction:column;align-items:flex-start;justify-content:center;padding-top:20px;padding-bottom:20px;gap:8px;font-size:10px}.quiz-layout{grid-template-columns:1fr}.question-card{position:relative;top:0;padding:22px}.question-card h1{font-size:24px}.target-stage{min-height:128px}.target-type{width:87px}.question-card>p{margin:6px 0}.question-tip{padding-top:13px;font-size:11px}.question-number{margin-bottom:12px}.quiz-top{margin-bottom:10px}.quiz-meta{font-size:12px;gap:10px}.quiz-top .tag-pill{display:none}.progress-track{margin-bottom:20px}.type-button{padding:13px 10px;font-size:14px;min-height:59px;gap:7px}.answer-panel{padding:20px}.type-grid{gap:8px}.chart-types{grid-template-columns:repeat(3,1fr)}dialog{padding:23px}.modal-head h2{font-size:23px}.result-hero h1{font-size:28px}.score-number{font-size:49px}.scoreboard{grid-template-columns:1fr}.result-actions{flex-wrap:wrap}.review details{padding:15px}.review summary{font-size:13px}.handoff{margin-top:30px}.handoff h1{font-size:27px}.legend{font-size:10px}.names{grid-template-columns:1fr 1fr}.hero h1 em:after{height:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#app:focus{outline:none}.fade-in{animation:none}
@media(max-width:380px){.type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-meta{max-width:185px}.quiz-meta>span:first-child{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.panel-heading small{font-size:10px}.question-card h1{font-size:23px}.panel{padding:20px}}
@media(max-width:380px){.header{padding-left:16px;padding-right:16px}.brand{font-size:16px;gap:7px;white-space:nowrap}.brand-ball{width:28px;height:28px;flex-shrink:0}.brand-ball:after{width:8px;height:8px;left:5px;top:5px}.brand small{font-size:7px}nav{gap:12px}.nav-link{font-size:11px;white-space:nowrap}#chart-open span{display:none}.type-button{font-size:13px;padding:11px 8px;gap:5px}.type-button .type-icon{font-size:19px;min-width:19px}.type-button .check{width:13px;height:13px;line-height:12px}.type-button>span:nth-child(2){white-space:nowrap}}
