/* Kangxuan's own explorer world: sea glass, illustrated maps and rounded islands. */
:root{--ink:#213c48;--muted:#536975;--paper:#f7faf6;--white:#fffef9;--line:#ccdfd6;--orange:#b94e30;--blue:#286a68;--yellow:#ffda88;--purple:#e1d8f0;--shadow:0 8px 24px #213c4809;font-family:'PingFang TC','Microsoft JhengHei',system-ui,sans-serif;color:var(--ink);background:var(--paper)}
body{background:var(--paper)}button,select,input{font:inherit}button{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #b94e30;outline-offset:4px}.cute-icon{width:100%;height:100%;display:block}main{max-width:1360px;padding:0 40px;margin:auto}.topbar{min-height:92px;height:auto;padding:18px max(28px,calc((100vw - 1280px)/2));border-bottom:1px solid var(--line);background:var(--white)}.brand{font-size:19px;letter-spacing:0;gap:10px}.brand small{font-size:11px;letter-spacing:2px;margin-top:5px}.brand-mark{width:48px;height:48px;background:none;transform:none}.brand-mark img{width:100%;height:100%}.topbar nav{gap:5px}.topbar nav button{font-size:12px;min-height:42px;border-radius:22px;padding:10px 13px}.topbar nav button:hover{background:#e8f2e9}.topbar nav button:last-child{border-color:var(--line)}
.expedition-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:25px;align-items:center;padding:48px 0 35px}.hero-words .eyebrow{font-size:10px;letter-spacing:2px;color:var(--blue);font-weight:800}.eyebrow:before{display:none}.grade-label{font-size:15px;font-weight:700;margin-top:24px;letter-spacing:2px}.hero-words h1{font-size:clamp(40px,4.7vw,64px);letter-spacing:-2px;line-height:1.25;margin:12px 0 18px;font-weight:900}.hero-words h1 span{display:block;font-size:clamp(21px,2.5vw,32px);letter-spacing:0;color:var(--blue);margin-top:14px}.hero-copy{font-size:14px;line-height:1.9;color:var(--muted)}.hero-pills{display:flex;gap:7px;flex-wrap:wrap;margin:22px 0}.hero-pills span{font-size:11px;background:#e9f1e8;padding:8px 11px;border-radius:20px}.hero-cta{display:inline-flex;align-items:center;gap:22px;background:var(--ink);color:white;border-radius:28px;text-decoration:none;padding:14px 23px;font-size:14px;font-weight:700;box-shadow:0 5px 0 #213c4812}.hero-cta span{font-size:22px;line-height:1}.explorer-scene{position:relative;background:#e1f1e9;border-radius:47% 43% 35% 32%;padding:34px 20px 14px;min-height:350px;display:flex;align-items:center;justify-content:center;isolation:isolate}.explorer-scene:before{content:'';position:absolute;inset:18px -10px -8px 14px;border:1px dashed #b1d1bf;border-radius:47% 43% 35% 32%;z-index:-1}.explorer-scene img{width:100%;max-width:460px;height:auto}.scene-label{position:absolute;top:25px;left:45px;font-size:9px;letter-spacing:1.5px;font-weight:700;color:var(--blue)}.scene-coordinate{position:absolute;bottom:22px;right:35px;font-size:10px;color:var(--blue);letter-spacing:1px}.fox-bubble{position:absolute;right:10px;top:82px;font-size:12px;font-weight:700;border-radius:20px 20px 20px 3px;background:var(--white);padding:13px 17px;box-shadow:0 5px 0 #213c4808;transform:rotate(4deg)}
.passport{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:24px;margin:0 0 34px;display:grid;grid-template-columns:210px 1fr;gap:18px;align-items:center;box-shadow:var(--shadow)}.passport .index{font-size:9px;font-weight:700;letter-spacing:1.5px;color:var(--blue)}.passport h2{font-size:19px;margin:8px 0}.passport h2 small{font:700 11px system-ui;color:var(--blue);border-radius:14px;background:#e6f1ea;padding:5px 8px}.passport p{font-size:11px;line-height:1.8;color:var(--muted)}.stamp-list{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.stamp{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;color:var(--muted)}.stamp>b{display:grid;place-items:center;font:700 14px/1.6 'PingFang TC','Microsoft JhengHei',sans-serif;border:1.5px dashed #a8bfb2;border-radius:18px 14px 18px 14px;width:100%;min-height:60px;padding:8px 5px;background:#f2f6f0;overflow-wrap:anywhere}.stamp small{font-size:9px;line-height:1.7}.stamp.earned{color:#276555}.stamp.earned>b{border:2px solid #659b80;background:#e1efcd;color:#276555}.stamp-state{font-size:10px;line-height:1.5;color:var(--muted)}.stamp.earned .stamp-state{color:#276555;font-weight:700}.passport-note{grid-column:1/-1;border-top:1px dashed var(--line);padding-top:12px;font-size:10px;color:var(--muted)}
.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px;align-items:start}.mission-left{min-width:0}.scope-box,.challenge-box{background:var(--white);border:1px solid var(--line);border-radius:24px;padding:25px;margin-bottom:26px}.section-title{align-items:center;margin:0 0 20px}.section-title .index{font-size:10px;letter-spacing:1px;color:var(--blue);font-weight:700}.section-title h2{font-size:21px;line-height:1.5;letter-spacing:0}.text-btn{font-size:12px}.tiny-label{font-size:10px;padding:7px 10px;border-radius:15px;background:#f7ebc9;white-space:nowrap}.grade-switch{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:13px}.grade-switch>span{width:100%;font-size:11px;font-weight:700;margin-bottom:3px}.grade-button{padding:10px 12px;min-height:42px;font-size:13px;border:1px solid var(--line);border-radius:12px;background:#f5f8f2;flex:1;white-space:nowrap}.grade-button.active{background:var(--ink);color:white;border-color:var(--ink)}.grade-switch small{width:100%;font-size:10px;margin-top:3px;color:var(--muted)}.semester-switch{padding:0;margin-bottom:16px;gap:7px}.semester-button{background:#f5f8f2;border:1px solid var(--line);font-size:14px;min-height:42px;border-radius:12px;padding:10px 22px}.semester-button.active{background:#e1efdf;color:var(--ink);border-color:#6c997a}.semester-switch small{font-size:10px;line-height:1.7;flex:1;min-width:130px}.scope-presets{gap:6px;margin-bottom:15px}.scope-presets button{font-size:11px;border-radius:18px;padding:8px 12px;min-height:36px;background:#f0f4ed}.scope-presets button.active{background:#ffedc1;border-color:#dfc189}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lesson{background:#fffef9;border:1px solid var(--line);border-radius:12px;padding:11px 21px 11px 10px;min-height:72px;gap:9px}.lesson.selected{background:#edf5e8;border-color:#9bb78d}.lesson:hover{background:#e5f0dd}.lesson-no{font-size:19px;color:#668474;min-width:25px}.lesson-text{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.lesson-text small{font-size:9px;line-height:1.6;margin-top:3px}.lesson-tick{right:7px;top:8px;font-size:12px;color:var(--blue)}.scope-note{font-size:11px;line-height:1.8;margin-top:10px;color:var(--muted)}
.mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;position:relative;background:radial-gradient(ellipse at 50% 50%,#e2f3ef 0,transparent 72%);padding:8px 0}.mode-card{--island:#edf3d9;--island-edge:#9eb475;background:var(--island);color:var(--ink);border:1px solid var(--island-edge);border-bottom:5px solid var(--island-edge);border-radius:30px 22px 32px 22px;min-height:186px;padding:18px 13px 16px;gap:9px;align-items:flex-start;position:relative;box-shadow:0 7px 0 #dfeee9}.mode-card:nth-child(2n){--island:#e5eefb;--island-edge:#a2b9d4;border-radius:22px 32px 22px 32px}.mode-card:nth-child(3n){--island:#fff0cc;--island-edge:#d4bc80}.mode-card:nth-child(5n){--island:#efe7f6;--island-edge:#b7a1cb}.mode-card:nth-child(7n){--island:#fce8dd;--island-edge:#d9ab94}.mode-card.active{background:var(--island);color:var(--ink);outline:3px solid var(--blue);outline-offset:3px;border-color:var(--island-edge)}.mode-card.active:after{content:'已選擇';position:absolute;right:8px;bottom:8px;background:var(--blue);color:white;border-radius:10px;padding:3px 7px;font-size:9px}.mode-card:hover{transform:translateY(-3px)}.mode-icon,.mode-card.active .mode-icon{display:block;background:none;width:52px;height:52px}.mode-copy{display:flex;flex-direction:column;gap:6px}.mode-card strong{white-space:normal;font-size:14px;line-height:1.5}.mode-card small,.mode-card.active small{font-size:10px;line-height:1.7;color:var(--muted)}.mode-card .mode-island{font-size:11px;letter-spacing:.3px;font-weight:700;color:#3e665f}.mode-card .check{top:12px;right:13px;color:var(--blue);font-size:14px}.mode-card .mode-copy>small:last-child{padding-bottom:8px}
.settings{position:sticky;top:18px;background:var(--ink);color:var(--white);border:0;border-radius:24px;padding:24px;box-shadow:0 10px 0 #d9e6de}.settings h3{font-size:19px;margin-bottom:22px}.setting-label{font-size:12px;margin-bottom:9px;color:inherit}.segmented{background:#ffffff14;padding:4px;gap:4px;border-radius:14px}.segmented button{font-size:13px;padding:10px 0;border-radius:10px;color:var(--white)}.segmented button.active{background:#d3ead8;color:var(--ink)}select{font-size:12px;padding:11px 9px;min-height:44px;border:1px solid #b8cec2;border-radius:10px;background:var(--white);color:var(--ink)}.settings-row{gap:10px}.checkbox-row{font-size:12px;line-height:1.8}.checkbox-row input{accent-color:#e8b45c}.settings .scope-note,.settings .available{color:#d5e5df;font-size:11px}.primary{border:0;background:var(--orange);color:white;border-radius:16px;box-shadow:0 4px 0 #213c4815;padding:14px 20px;font-size:14px;font-weight:700;line-height:1.6}.primary:hover{background:#9a4028}.start{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:22px;background:#ffda88;color:var(--ink);font-size:16px}.start:hover{background:#ffe6b1}.start span{font-size:24px}.available{font-size:11px;line-height:1.9;margin-top:18px}.how-strip{border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);font-size:12px;gap:12px;margin-top:20px;padding:22px 0;color:var(--muted)}.how-strip b{color:var(--blue);font-size:18px;margin-right:6px}.home-recent{flex-wrap:wrap;font-size:11px;gap:10px}.record-note{margin-left:auto;font-size:10px}footer{max-width:none;padding:23px 40px;background:#e9f1e9;font-size:10px;border-top:1px solid var(--line);margin-top:20px;color:var(--muted)}
.in-game main{padding-top:0}.game-top{border-bottom:1px solid var(--line);padding-bottom:12px}.game-brand{color:var(--blue)}.round-pill{color:var(--ink);background:#e5f0de;border-radius:20px}.small-btn,.icon-btn{background:var(--white);border:1px solid var(--line);border-radius:11px;padding:9px 12px}.small-btn:hover{background:#e3efdf}.game-controls{flex-wrap:wrap;justify-content:flex-end}.expedition-progress{display:flex;align-items:center;gap:15px;font-size:11px;color:var(--blue);font-weight:700;margin:15px 0}.expedition-progress progress{flex:1;height:9px;accent-color:var(--blue);border:0;border-radius:12px;overflow:hidden;background:#dae7dd}.expedition-progress progress::-webkit-progress-bar{background:#dae7dd}.expedition-progress progress::-webkit-progress-value{background:#6ba58d;border-radius:12px}.question-card{background:var(--white);border:1px solid var(--line);border-radius:22px;padding-right:80px;box-shadow:var(--shadow)}.question-kicker{color:var(--blue)}.question-prompt{line-height:1.7}.question-display{line-height:1.7}.question-display.rhetoric,.question-display.punctuation{font-size:24px;line-height:1.8}.clock{background:#edf3df;border:1px solid #d2dfbf;border-radius:14px}.clock.urgent{background:#f9dcc9;color:#7b311f}.time-bar{background:#e2eae0;border-radius:5px;height:5px}.time-fill{background:#7ba68a}.team-panel{border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.team-header{background:var(--team);border-bottom:1px solid #213c4815}.team-badge{background:none;border:0;width:30px;height:30px}.answer{border:1px solid #b7cdc0;border-radius:13px;background:var(--white)}.answer:hover:not(:disabled){background:#edf4e6}.answer .key{background:#e8eee6;color:var(--ink);opacity:1}.answer:disabled{opacity:.7}.answer.correct{background:#e3f1d4;color:#2a5122;border:2px solid #6c914c;opacity:1}.answer.wrong{background:#fff1df;border:2px solid #bd8b51;opacity:1}.team-status.good{color:#2b664c}.track-progress{background:var(--team)}.track-progress:after{border-color:#658d76}.memory-card{border-radius:14px;background:#e6efe1;border-color:#b0c7b5;padding:8px}.memory-card .cute-icon{max-width:48px;height:42px;margin:auto}.memory-card.face{background:var(--white)}.memory-card.matched{background:#e0efcf;border-color:#82a866;color:#2a5122}.order-line{background:#edf5e6;border:1px dashed #9fb990;border-radius:12px;line-height:1.8}.reveal-bar{background:var(--white);border:1px solid #9ebc9f;border-radius:18px;box-shadow:var(--shadow)}.fox-feedback{display:flex;align-items:center;gap:6px;margin:-4px 0 9px;font:700 13px/1.6 'PingFang TC',sans-serif;color:var(--blue)}.fox-feedback img{width:48px;height:42px;object-fit:cover;flex-shrink:0}.fox-feedback.success img{animation:fox-hop .5s ease 1}.fox-feedback.try-again{color:#82592c}.countdown{background:#edf7f2f5}.countdown b{background:#d8eddb;color:var(--ink);border-radius:50%;width:160px;height:160px;display:grid;place-items:center;font-size:90px;border:2px dashed #83ad8e}.countdown span{font-size:22px}.pause-overlay{background:#213c48b8}.pause-box{border:1px solid var(--line);border-radius:24px;background:var(--white)}.result-mark{width:130px;height:110px;margin:10px auto}.result-mark img{width:100%;height:100%}.result h1{font-size:34px;line-height:1.5}.result .eyebrow{color:var(--blue)}.expedition-badges{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:24px 0 18px}.expedition-badges article{display:grid;grid-template-columns:36px 1fr;gap:3px 9px;text-align:left;padding:14px 18px;background:#eaf2df;border:1px solid #c5d6b4;border-radius:18px;max-width:290px}.expedition-badges b{grid-row:1/3;align-self:center;font-size:28px;color:var(--blue)}.expedition-badges strong{font-size:14px}.expedition-badges small{font-size:11px;line-height:1.7;color:var(--muted)}.stamp-celebrate{font-size:13px;color:var(--blue);font-weight:700}.podium-card{border:1px solid var(--line);border-radius:20px}.podium-card.winner{background:var(--team);box-shadow:0 7px 0 #213c4810}.review-card{border:1px solid var(--line);border-radius:18px;background:var(--white)}.review-area h2{font-size:21px}.review-card .review-answer{color:#2d663d}.empty-state{border-radius:16px;border-color:#b1c6b6}.mobile-note{background:#fff0d5;color:#6e512d;border-radius:12px}.modal-top{border-bottom:1px solid var(--line)}dialog{background:var(--white);border:1px solid var(--line);border-radius:24px;max-width:min(850px,94vw);box-shadow:0 15px 80px #213c4830}dialog::backdrop{background:#213c4880}.help-content{color:var(--ink)}.help-content .small-btn{margin:14px 0}.help-content select{width:100%}.char-card,.help-key{border-radius:13px;border:1px solid var(--line)}.char-card{background:#f1f6e8}.type-chip{border-color:var(--line)}#toast{background:var(--ink);border-radius:16px;color:white}body.reduced-motion *,body.reduced-motion *:before,body.reduced-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@keyframes fox-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(min-width:1101px){.in-game .question-card{padding:14px 80px 14px 22px;min-height:110px}.in-game .teams.four{grid-template-columns:repeat(4,minmax(0,1fr))}.in-game .teams.four .answers{grid-template-columns:1fr}.in-game .teams.four .memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.in-game .teams.four .answer{font-size:18px;line-height:1.65;min-height:56px}.in-game .teams.four .team-body{padding:10px}.in-game .question-display{font-size:27px}.in-game .question-display.glyph,.in-game .question-display.sound{font-size:38px}}
@media(max-width:1150px){main{padding:0 24px}.topbar{padding:17px 24px}.play-layout{grid-template-columns:minmax(0,1fr) 275px;gap:20px}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-card{min-height:160px}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.passport{grid-template-columns:1fr}.hero-pills{gap:5px}.hero-pills span{font-size:10px}.fox-bubble{right:0;top:70px;font-size:10px}.hero-words h1{font-size:48px}.settings{padding:20px}.brand{font-size:17px}.topbar nav button{font-size:11px;padding:9px}.scene-label{font-size:8px;left:26px}}
@media(max-width:800px){.topbar{flex-wrap:wrap;gap:12px;padding:16px 20px}.topbar nav{margin-left:auto}.play-layout{grid-template-columns:1fr}.settings{position:static;border-radius:22px;padding:24px;margin-bottom:20px}.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-card{min-height:180px}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.expedition-hero{gap:10px;padding:35px 0 28px}.hero-words h1{font-size:39px}.hero-words h1 span{font-size:21px}.hero-copy{font-size:12px}.explorer-scene{min-height:290px;padding:35px 0 10px}.scene-label{left:20px;top:30px;font-size:7px}.scene-coordinate{right:12px;bottom:24px;font-size:8px}.fox-bubble{right:-5px;top:73px;font-size:9px;padding:9px 12px}.hero-pills{margin:16px 0}.hero-pills span{font-size:9px}.hero-cta{padding:12px 17px;font-size:12px;gap:15px}.grade-label{font-size:12px;margin-top:16px}.how-strip{font-size:11px;flex-wrap:nowrap}.how-strip span{width:auto}.how-strip b{display:block}.record-note{width:100%;margin-left:0}.question-card{padding:49px 16px 17px}.question-display.rhetoric,.question-display.punctuation{font-size:21px;line-height:1.8}.game-top-left{max-width:60%;min-width:0}.game-controls{max-width:40%}.expedition-progress{gap:8px;font-size:10px}.expedition-progress>span:first-child{max-width:42%}.in-game .teams.four .answer{font-size:16px;line-height:1.65}.in-game .teams.four .team-name{font-size:12px}.in-game main{padding:0 15px}.reveal-bar{padding:15px}.result h1{font-size:28px}.review-area .section-title{flex-wrap:wrap}.topbar nav .desktop-text{display:inline}footer{padding:22px}}
@media(max-width:560px){main{padding:0 18px}.topbar{padding:14px 18px}.brand{font-size:17px}.brand small{font-size:10px}.brand-mark{width:42px;height:42px}.topbar nav{width:100%;justify-content:space-between;gap:1px}.topbar nav button{font-size:10px;padding:9px 8px}.expedition-hero{grid-template-columns:1fr;padding:28px 0;gap:22px}.hero-words .eyebrow{font-size:9px}.grade-label{font-size:13px;margin-top:20px}.hero-words h1{font-size:44px;margin-top:10px}.hero-words h1 span{font-size:24px;margin-top:10px}.hero-copy{font-size:13px}.hero-pills{gap:6px}.hero-pills span{font-size:10px;padding:7px 9px}.hero-cta{font-size:13px;padding:12px 18px}.explorer-scene{min-height:250px;max-width:370px;margin:0 8px 0 0;padding:22px 12px 8px}.explorer-scene img{max-width:300px}.scene-label{top:18px;left:26px;font-size:8px}.fox-bubble{right:-4px;top:55px;font-size:10px}.scene-coordinate{bottom:15px;right:30px;font-size:9px}.passport{padding:18px;gap:16px;margin-bottom:24px;border-radius:19px}.passport h2{font-size:19px}.stamp-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 8px}.stamp small{font-size:9px}.passport-note{line-height:1.8}.scope-box,.challenge-box{padding:18px;border-radius:20px;margin-bottom:20px}.section-title{gap:8px;align-items:center}.section-title h2{font-size:19px}.section-title .index{font-size:9px}.section-title .text-btn{font-size:10px;white-space:nowrap}.tiny-label{font-size:9px;padding:6px 8px}.grade-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.grade-switch>span,.grade-switch>small{grid-column:1/-1}.grade-button{font-size:12px;padding:9px 5px;min-width:0}.semester-button{font-size:13px;padding:10px 18px}.semester-switch small{font-size:9px;line-height:1.8;margin-left:0;min-width:90px}.scope-presets button{font-size:10px;min-height:38px;padding:7px 10px}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.lesson{padding:10px 18px 10px 8px;gap:6px;min-height:72px}.lesson-text{font-size:12px}.lesson-no{min-width:21px;font-size:18px}.lesson-text small{font-size:8px}.lesson-tick{right:5px;font-size:11px}.scope-note{font-size:10px}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.mode-card{padding:16px 12px;min-height:189px;gap:8px}.mode-card strong{font-size:14px}.mode-card small{font-size:10px}.mode-card .mode-island{font-size:11px;line-height:1.8}.mode-icon{width:48px;height:48px}.mode-copy{gap:6px}.mode-card .check{font-size:12px;top:13px;right:12px}.settings{padding:23px}.setting-label{font-size:12px}.how-strip{gap:8px;font-size:10px}.how-strip b{font-size:18px}.game-controls .small-btn{font-size:10px;padding:7px}.game-top-left>strong{width:100%}.game-top-left{gap:5px}.team-badge{width:24px;height:24px}.team-name{font-size:12px}.team-points{font-size:17px}.teams.four{gap:9px}.team-body{padding:8px}.teams.four .answer{min-height:53px}.team-status{font-size:10px}.answer{font-size:17px;min-height:60px}.memory-card{min-height:76px}.teams.four .memory-card.face,.teams.four .memory-card.matched{font-size:13px}.reveal-bar .primary{align-self:stretch}.result-actions{gap:8px}.result-actions .small-btn{font-size:11px}.review-card{padding:15px}.podium-card{padding:18px 8px}.podium-card h3{font-size:17px}.podium-card strong{font-size:32px}.expedition-progress{font-size:9px}.expedition-progress>span:last-child{white-space:nowrap}.expedition-badges article{width:100%;max-width:340px}.stamp-celebrate{font-size:12px;line-height:1.8}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.topbar,footer,.result-actions,.game-controls{display:none}.result{padding:0}body{background:white}.podium-card,.review-card{box-shadow:none;border:1px solid #777}main{padding:0}.passport{box-shadow:none}}
/* Grades 1 through 3: official unmodified Zihi font, loaded only when these reading zones are used. */
@font-face{font-family:'Zihi Bopomofo';src:url('./fonts/BpmfZihiKaiStd-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
.zhuyin-note{font-size:12px;line-height:1.8;background:#fff1bd;border-left:4px solid var(--blue);padding:8px 12px;margin:0 0 12px}
.zhuyin-grade .question-prompt,.zhuyin-grade .question-display,.zhuyin-grade .question-context,.zhuyin-grade .answer,.zhuyin-grade .order-line,.zhuyin-grade .memory-card.face,.zhuyin-grade .memory-card.matched,.zhuyin-grade .reveal-bar>div,.zhuyin-grade .review-card{font-family:'Zihi Bopomofo','PingFang TC',sans-serif;font-weight:400;letter-spacing:0;overflow-wrap:anywhere}
.zhuyin-grade .question-prompt{font-size:28px;line-height:1.7}.zhuyin-grade .question-display{font-size:32px;line-height:1.7}.zhuyin-grade .question-context{font-size:26px;line-height:1.7}
.zhuyin-grade .answer,.zhuyin-grade.in-game .teams.four .answer{font-size:27px;line-height:1.65;min-height:60px;padding:8px 10px;gap:7px}.zhuyin-grade .answer>span:not(.key){min-width:0}.zhuyin-grade .answer .key{font:700 10px Arial,sans-serif}
.zhuyin-grade .order-line,.zhuyin-grade .memory-card.face,.zhuyin-grade .memory-card.matched{font-size:25px;line-height:1.6}.zhuyin-grade .memory-card{min-height:90px}.zhuyin-grade .reveal-bar b,.zhuyin-grade .reveal-bar p,.zhuyin-grade .review-card,.zhuyin-grade .review-card b{font-size:26px;line-height:1.8}
.zhuyin-grade .review-card .review-meta,.zhuyin-grade .review-card summary{font-family:'PingFang TC',sans-serif;font-size:12px}
@media(min-width:1101px){.zhuyin-grade .teams.four{grid-template-columns:repeat(4,minmax(0,1fr))}.zhuyin-grade .teams.four .answers{grid-template-columns:1fr}.zhuyin-grade .teams.four .memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.zhuyin-grade .question-prompt{font-size:25px}.zhuyin-grade .question-display{font-size:28px}.zhuyin-grade .answer,.zhuyin-grade.in-game .teams.four .answer{font-size:24px}.zhuyin-grade .question-context{font-size:25px}.zhuyin-grade .memory-card.face,.zhuyin-grade .memory-card.matched{font-size:23px}}

.in-game .game-wrap:has(.teams.two) .tracks{grid-template-columns:repeat(2,minmax(0,1fr))}.in-game .game-wrap:has(.teams.single) .tracks{grid-template-columns:1fr}

/* Island names remain readable at tablet and phone widths. */
@media(max-width:1000px){.stamp-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px}}
@media(max-width:560px){.stamp-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stamp>b{min-height:52px;font-size:15px}}
/* Classroom flow: choose a course and task first, collect stamps after the setup. */
.quick-setup{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:center;background:#e8f1e5;border:1px solid #cddfc5;border-radius:23px;padding:22px 24px;margin:0 0 28px}.quick-setup .index{font:700 10px/1.6 Arial,sans-serif;letter-spacing:1.5px;color:var(--blue)}.quick-setup h2{font-size:22px;margin:6px 0}.quick-setup p{font-size:11px;line-height:1.8;color:var(--muted)}.preset-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.preset-buttons button{display:flex;flex-direction:column;gap:7px;text-align:left;border:1px solid #b7cdb0;border-radius:15px;background:var(--white);padding:14px;min-height:80px}.preset-buttons button.active{background:var(--ink);color:white;border-color:var(--ink)}.preset-buttons strong{font-size:14px}.preset-buttons small{font-size:10px;line-height:1.7}.passport-link{display:inline-block;font-size:12px;margin:12px 0 0 14px;color:var(--blue);text-underline-offset:4px}.stamp{border:0;padding:0;background:transparent;font:inherit;cursor:pointer}.stamp:hover>b{background:#e4efd9;border-style:solid}.stamp:focus-visible{outline:3px solid var(--orange);outline-offset:5px;border-radius:15px}.passport{margin:28px 0 20px;scroll-margin-top:20px}.challenge-box,#launch-settings,#setup{scroll-margin-top:20px}.launch-summary{display:flex;flex-direction:column;gap:7px;padding:14px;border:1px solid #ffffff38;border-radius:14px;background:#ffffff0b;margin-top:18px;font-size:11px;line-height:1.8}.launch-summary b{font-size:13px;color:#ffdf97}.launch-summary span{overflow-wrap:anywhere}.start:disabled{opacity:.5;cursor:not-allowed}.mobile-launch{display:none}.top-next{padding:9px 14px;font-size:12px}.game-controls .small-btn{min-height:40px}.large-text .question-prompt{font-size:30px;line-height:1.8}.large-text .question-display,.large-text .question-display.rhetoric,.large-text .question-display.punctuation{font-size:32px;line-height:1.8}.large-text .answer,.large-text.in-game .teams.four .answer{font-size:24px;line-height:1.8;min-height:65px}.large-text .question-context{font-size:26px;line-height:1.8}.large-text .order-line,.large-text .memory-card.face,.large-text .memory-card.matched{font-size:25px;line-height:1.8}.large-text .reveal-bar p,.large-text .reveal-bar b,.large-text .review-card,.large-text .review-card b{font-size:25px;line-height:1.9}.zhuyin-grade.large-text .question-prompt{font-size:33px}.zhuyin-grade.large-text .question-display{font-size:38px}.zhuyin-grade.large-text .question-context{font-size:31px}.zhuyin-grade.large-text .answer,.zhuyin-grade.large-text.in-game .teams.four .answer{font-size:32px}.large-text .question-display.glyph,.large-text .question-display.sound{font-size:42px}
@media(max-width:1150px){.quick-setup{grid-template-columns:1fr;gap:14px}.quick-setup>div:first-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.quick-setup h2{font-size:21px}.quick-setup p{margin-left:auto}.preset-buttons button{min-height:75px}}
@media(max-width:800px){body:not(.in-game){padding-bottom:88px}.mobile-launch{position:fixed;z-index:15;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);box-shadow:0 -4px 20px #213c4808}.mobile-launch>div{display:flex;flex-direction:column;gap:5px;min-width:0}.mobile-launch b{font-size:12px;line-height:1.6}.mobile-launch small{font-size:10px;color:var(--muted)}.mobile-launch .primary{font-size:12px;padding:10px 15px;white-space:nowrap;border-radius:22px}.game-controls{max-width:55%}.game-top-left{max-width:45%}.game-controls .small-btn,.game-controls .top-next{font-size:10px;padding:7px 9px}.large-text .answer,.large-text.in-game .teams.four .answer{font-size:23px}.zhuyin-grade.large-text .answer,.zhuyin-grade.large-text.in-game .teams.four .answer{font-size:28px}.zhuyin-grade.large-text .question-prompt{font-size:29px}.zhuyin-grade.large-text .question-display{font-size:34px}}
@media(max-width:560px){.quick-setup{padding:18px;margin-bottom:22px;border-radius:19px}.quick-setup>div:first-child{display:block}.quick-setup h2{font-size:21px;margin:6px 0}.preset-buttons{grid-template-columns:1fr;gap:8px}.preset-buttons button{min-height:59px;padding:12px 14px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.preset-buttons strong{font-size:13px;white-space:nowrap}.preset-buttons small{font-size:10px;text-align:right}.passport-link{font-size:11px;margin-left:10px}.explorer-scene{min-height:180px;max-height:200px}.explorer-scene img{max-height:180px;width:auto;max-width:100%}.scene-coordinate{font-size:8px}.game-controls{max-width:57%}.game-top-left{max-width:43%}.game-controls .small-btn,.game-controls .top-next{font-size:10px;padding:6px 8px;min-height:36px}.launch-summary{font-size:11px}.large-text .question-display.rhetoric,.large-text .question-display.punctuation{font-size:26px}.large-text .question-context{font-size:25px}}
@media print{.mobile-launch,.quick-setup{display:none!important}body{padding-bottom:0!important}}

/* Keep lesson provenance visible during single, team and mixed practice. */
.question-source{margin:0;color:var(--muted);font-size:clamp(13px,1.2vw,17px);line-height:1.5;font-weight:700;letter-spacing:0;overflow-wrap:anywhere}
.large-text .question-source{font-size:clamp(16px,1.5vw,20px)}
@media(max-width:560px){.question-source{font-size:13px;line-height:1.45}}
