/* Original geometric classroom theme: primary colors, black grids, friendly faces. */
:root{--ink:#181818;--muted:#55534e;--paper:#f5f3ea;--white:#fffdf5;--line:#181818;--orange:#e63732;--blue:#2455d6;--yellow:#ffd52a;--purple:#d7dffc;font-family:'PingFang TC','Microsoft JhengHei',system-ui,sans-serif;color:var(--ink);background:var(--paper);--shadow:none}
body{background:var(--paper)}button,select,input{font:inherit}button{transition:background .15s,transform .15s}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #2455d6;outline-offset:4px}button:hover:not(:disabled){filter:none}button:active:not(:disabled){transform:translateY(2px)}.cute-icon{width:100%;height:100%;display:block;flex-shrink:0}main{max-width:1440px;padding:30px 42px 0}.topbar{height:96px;padding:0 42px;border-bottom:4px solid var(--ink);background:var(--white)}.brand{font-size:21px;letter-spacing:.5px;gap:12px}.brand small{font-size:11px;letter-spacing:1.2px;margin-top:5px}.brand-mark{width:48px;height:48px;background:none;border-radius:0;transform:none}.brand-mark svg{width:100%;height:100%}.topbar nav{gap:0;border:2px solid var(--ink)}.topbar nav button{border-radius:0;border:0;border-right:2px solid var(--ink);padding:12px 15px;font-size:12px;min-height:44px}.topbar nav button:last-child{border:0;background:var(--yellow)}.topbar nav button:hover{background:var(--yellow)}
.mond-board{display:grid;grid-template-columns:1.75fr .65fr .9fr 1.05fr;grid-template-rows:128px 128px auto;gap:5px;background:var(--ink);border:5px solid var(--ink)}.hero-title-cell{grid-column:1/3;grid-row:1/3;padding:26px 30px;background:var(--white);position:relative}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;line-height:1.5}.eyebrow:before{display:none}.grade-label{font-size:15px;font-weight:800;margin-top:16px;letter-spacing:3px}.hero-title-cell h1{font-size:clamp(40px,4.4vw,66px);line-height:1.2;letter-spacing:-2px;margin:6px 0 12px;font-weight:950;white-space:nowrap}.hero-title-cell h1 span{color:var(--blue)}.hero-title-cell h1 i{font-style:normal;color:var(--orange);margin-left:3px}.hero-copy{font-size:12px;line-height:1.9;color:var(--muted);font-weight:600}.edition-tag{position:absolute;right:18px;bottom:20px;border:1.5px solid var(--ink);padding:5px 8px;font-size:10px;font-weight:700;background:var(--yellow);transform:rotate(-3deg)}.hero-star{background:var(--orange);display:flex;align-items:center;justify-content:center;gap:6px;padding:15px;grid-column:3;grid-row:1}.hero-star .cute-icon{width:72px;height:72px}.hero-star>span{font-size:11px;line-height:1.7;font-weight:900;color:white;white-space:nowrap}.hero-book{grid-column:4;grid-row:1/3;background:var(--yellow);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:25px 14px 0}.hero-book .cute-icon{max-width:210px;height:auto;transform:rotate(-10deg);filter:drop-shadow(4px 7px 0 #18181820)}.hello-bubble{position:absolute;top:20px;right:15px;padding:8px 12px;background:var(--white);border:2px solid var(--ink);border-radius:50%;font-size:12px;font-weight:800;transform:rotate(7deg)}.hero-blue{grid-column:3;grid-row:2;background:var(--blue);color:white;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;font-size:19px;font-weight:900;line-height:1.2;letter-spacing:1px}.hero-arrow{font-size:50px;font-weight:400}.hero-stats{grid-column:1/5;grid-row:3;display:grid;grid-template-columns:1fr 1fr 1fr 1.5fr;background:var(--white);min-height:64px}.hero-stats>span{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;font-weight:700;border-right:3px solid var(--ink);padding:8px 15px}.hero-stats b{font-size:30px;line-height:1;font-family:Arial,sans-serif;font-weight:900}.hero-stats .stats-note{border-right:0;justify-content:space-between;font-size:10px;letter-spacing:.5px;line-height:1.8;background:var(--white)}
.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:26px;margin-top:30px}.mission-left{min-width:0;display:flex;flex-direction:column;gap:28px}.scope-box{background:none;border:0;border-radius:0;padding:0}.section-title{margin:0 0 17px;align-items:center;gap:12px}.section-title h2{font-size:22px;letter-spacing:-.5px;line-height:1.5;font-weight:900}.section-title .index{font-size:10px;letter-spacing:1.3px;font-weight:800;color:var(--blue);margin-bottom:6px}.text-btn{font-size:11px;white-space:nowrap}.semester-switch{padding:0;gap:0;margin:0 0 13px;border:2px solid var(--ink);background:var(--white);flex-wrap:nowrap}.semester-button{font-size:15px;border:0;border-right:2px solid var(--ink);border-radius:0;padding:12px 24px;background:var(--white);font-weight:900;min-height:47px}.semester-button.active{background:var(--blue);color:white;border-color:var(--ink)}.semester-button:hover:not(.active){background:var(--yellow)}.semester-switch small{padding:0 12px;line-height:1.7;margin-left:auto;font-size:10px;color:var(--muted);text-align:right}.scope-presets{gap:8px;margin-bottom:14px}.scope-presets button{border:1.5px solid var(--ink);border-radius:0;background:var(--white);font-size:11px;padding:8px 12px}.scope-presets button.active{background:var(--yellow);border-color:var(--ink)}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:2px solid var(--ink);border-left:2px solid var(--ink)}.lesson{border:0;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);border-radius:0;gap:9px;padding:10px 23px 10px 10px;min-height:68px;background:var(--white)}.lesson.selected{background:#fff7cf;border-color:var(--ink)}.lesson:hover{background:#ffef9a}.lesson-no{font-size:21px;font-family:Arial,sans-serif;color:#8c8a80;min-width:26px}.lesson.selected .lesson-no{color:var(--ink)}.lesson-text{font-size:12px;line-height:1.55;overflow-wrap:anywhere}.lesson-text small{font-size:9px;margin-top:5px}.lesson-tick{right:6px;top:7px;font-size:12px;color:var(--ink)}.scope-note{font-size:10px;line-height:1.9;margin-top:10px}.tiny-label{font-size:10px;padding:6px 8px;background:var(--yellow);border:1.5px solid var(--ink);white-space:nowrap}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mode-card{border:2px solid var(--ink);border-radius:0;padding:13px 10px;min-height:128px;gap:8px;background:var(--white);display:flex;flex-direction:row;align-items:center;box-shadow:3px 3px 0 var(--ink);text-align:left}.mode-card:hover{transform:translateY(-3px)}.mode-card.active{background:var(--blue);color:white;border-color:var(--ink)}.mode-card:nth-child(2).active,.mode-card:nth-child(5).active{background:var(--orange)}.mode-card:nth-child(3).active,.mode-card:nth-child(6).active{background:var(--yellow);color:var(--ink)}.mode-icon,.mode-card.active .mode-icon{width:54px;height:60px;background:none;border-radius:0;flex-shrink:0}.mode-copy{display:flex;flex-direction:column;gap:6px;min-width:0}.mode-card strong{font-size:13px;white-space:normal;line-height:1.5}.mode-card small{font-size:9px;line-height:1.6;color:var(--muted)}.mode-card .mode-number{font-family:Arial,sans-serif;font-size:8px;letter-spacing:1px;font-weight:700}.mode-card.active small{color:inherit;opacity:.85}.mode-card .check{top:5px;right:7px;font-size:12px;font-weight:900}.settings{border:3px solid var(--ink);border-radius:0;background:var(--white);padding:20px;position:sticky;top:20px;box-shadow:6px 6px 0 var(--ink);align-self:start}.settings h3{font-size:17px;border-bottom:3px solid var(--ink);margin:-20px -20px 15px;padding:15px 20px;background:var(--yellow)}.setting-label{font-size:11px}.segmented{border:2px solid var(--ink);border-radius:0;padding:0;gap:0;background:var(--white)}.segmented button{border-radius:0;border-right:2px solid var(--ink);padding:10px 0;font-size:12px}.segmented button:last-child{border-right:0}.segmented button.active{background:var(--blue);color:white}.segmented button:hover:not(.active){background:var(--yellow)}select{border:1.5px solid var(--ink);border-radius:0;font-size:11px;padding:10px 6px;min-height:44px;background:var(--white)}.settings-row{gap:10px}.checkbox-row{font-size:11px}.checkbox-row input{accent-color:var(--blue)}.primary{background:var(--orange);border:2px solid var(--ink);border-radius:0;box-shadow:4px 4px 0 var(--ink);color:white;font-size:14px;padding:14px 15px;line-height:1.6}.primary:hover{background:#c92522}.start{margin-top:18px;text-align:left;align-items:center;gap:10px}.start>span{font-size:24px}.available{font-size:10px;margin-top:18px}.how-strip{border-top:3px solid var(--ink);border-bottom:3px solid var(--ink);margin-top:36px;padding:18px 0;color:var(--ink);font-size:11px}.how-strip b{font-size:20px;color:var(--blue)}.home-recent{font-size:10px;flex-wrap:wrap;gap:10px;padding:18px 0}.record-note{margin-left:auto}footer{padding:22px 42px;background:var(--ink);color:var(--white);border:0;font-size:9px;max-width:none}.small-btn,.icon-btn{border:2px solid var(--ink);border-radius:0;background:var(--white)}.small-btn:hover{background:var(--yellow)}
/* Competition stage keeps the same clear answer zones in the new visual system. */
.in-game main{padding-top:0}.game-top{padding:8px 0;border-bottom:3px solid var(--ink)}.game-brand{color:var(--blue)}.round-pill{border-radius:0;background:var(--yellow);color:var(--ink);border:1.5px solid var(--ink)}.question-card{border:3px solid var(--ink);border-radius:0;background:var(--white);padding-right:75px}.question-kicker{color:var(--blue)}.clock{border:2px solid var(--ink);border-radius:0;background:var(--yellow)}.clock.urgent{background:var(--orange);color:white}.time-bar{border-radius:0;background:#d6d4cc;height:5px}.time-fill{background:var(--blue)}.team-panel{border:2px solid var(--ink);border-radius:0;box-shadow:3px 3px 0 var(--ink)}.team-header{border-bottom:2px solid var(--ink);background:var(--team)}.team-badge{width:30px;height:30px;border:0;background:none;border-radius:0}.answer{border:1.5px solid var(--ink);border-radius:0;background:var(--white)}.answer:hover:not(:disabled){background:#fff4bd}.answer .key{border:1px solid var(--ink);border-radius:0;background:#f4f0e1;color:var(--ink);opacity:1}.answer:disabled{opacity:.65}.answer.correct{background:#e4f4cd;border:2px solid #285b18;opacity:1}.answer.wrong{background:#ffe0de;border:2px solid #ad241d;opacity:1}.track-progress{border-radius:0;border:1px solid var(--ink)}.track-progress:after{border-color:var(--ink);border-radius:0}.track{border-color:var(--ink)}.order-line{border:1.5px dashed var(--ink);border-radius:0;background:#fff4bd}.order-line span{border-radius:0}.memory-card{border:2px solid var(--ink);border-radius:0;background:var(--yellow);padding:6px}.memory-card .cute-icon{height:42px;max-width:52px;margin:auto}.memory-card.face{background:var(--white)}.memory-card.matched{background:#e4f4cd;color:#285b18;border-color:#285b18}.reveal-bar{border:2px solid var(--ink);border-radius:0;background:#fff4bd}.countdown{background:#fffdf5f5}.countdown b{background:var(--yellow);border:5px solid var(--ink);padding:8px 42px;box-shadow:8px 8px 0 var(--blue);line-height:1.3}.pause-overlay{background:#181818b8}.pause-box{border:4px solid var(--ink);border-radius:0;box-shadow:9px 9px 0 var(--blue)}.result-mark{width:90px;height:90px;margin:15px auto}.result .eyebrow{color:var(--blue)}.podium-card{border:2px solid var(--ink);border-radius:0}.podium-card.winner{box-shadow:5px 5px 0 var(--ink)}.review-card{border:2px solid var(--ink);border-radius:0}.empty-state{border:2px dashed var(--ink);border-radius:0}.review-card .review-answer{color:#285b18}.result h1{line-height:1.5}.mobile-note{border:1px solid var(--ink);border-radius:0;background:#fff4bd}dialog{border:3px solid var(--ink);border-radius:0;background:var(--white)}dialog::backdrop{background:#181818a8}.modal-top{border-bottom:3px solid var(--ink)}.char-card,.help-key{border:1.5px solid var(--ink);border-radius:0}.char-card{background:#fff4bd}.type-chip,kbd{border-radius:0}.bank-item .solution{color:#285b18}.bank-item{border-color:#ccc8ba}#toast{border:2px solid var(--ink);border-radius:0;box-shadow:4px 4px 0 var(--yellow)}
@media(min-width:1450px){.hero-title-cell h1{font-size:69px}.mond-board{grid-template-rows:136px 136px auto}.hero-title-cell{padding:28px 36px}.hero-copy{font-size:13px}.play-layout{grid-template-columns:minmax(0,1fr) 330px}}
@media(max-width:1150px){main{padding:25px 25px 0}.topbar{padding:0 25px}.play-layout{grid-template-columns:minmax(0,1fr) 285px;gap:20px}.mond-board{grid-template-columns:1.6fr .7fr .8fr 1fr;grid-template-rows:126px 126px auto}.hero-title-cell{padding:23px}.hero-title-cell h1{font-size:48px}.edition-tag{position:static;display:inline-block;margin-top:8px;font-size:9px;padding:3px 7px}.hero-copy{font-size:11px}.grade-label{margin-top:12px}.hero-star{gap:0;padding:10px}.hero-star>span{display:none}.hero-star .cute-icon{width:80px;height:80px}.hero-blue{font-size:15px;padding:15px}.hero-arrow{font-size:38px}.hero-stats>span{padding:9px 8px}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-card{min-height:112px;padding:12px}.mode-card strong{font-size:13px}.hero-stats .stats-note{font-size:9px}.topbar nav button{padding:11px 10px}.brand{font-size:19px}}
@media(max-width:800px){main{padding:20px 18px 0}.topbar{min-height:86px;height:auto;padding:15px 18px;gap:12px}.brand{font-size:18px}.brand small{font-size:9px}.brand-mark{width:42px;height:42px}.topbar nav button{font-size:10px;padding:8px;min-height:38px}.play-layout{grid-template-columns:1fr;gap:25px;margin-top:24px}.settings{position:static;box-shadow:5px 5px 0 var(--ink);margin-right:5px}.settings-row{grid-template-columns:1fr 1fr}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-card{min-height:125px;padding:12px 9px;gap:7px}.mode-icon{width:45px;height:52px}.mode-card strong{font-size:12px}.hero-title-cell h1{font-size:42px;letter-spacing:-1px}.hero-title-cell{padding:20px}.hero-title-cell .eyebrow{font-size:8px;letter-spacing:1px}.hero-stats>span{font-size:10px}.hero-stats b{font-size:26px}.hero-book{padding:25px 5px 0}.hello-bubble{font-size:10px;top:20px;right:9px;padding:6px 8px}.hero-blue{font-size:13px}.hero-arrow{font-size:30px}.hero-stats .stats-note{font-size:8px}.mond-board{grid-template-rows:120px 120px auto}.how-strip{flex-wrap:nowrap;gap:12px}.how-strip span{width:auto;line-height:1.6}.how-strip b{display:block;margin-bottom:4px}.question-card{padding:50px 15px 16px}.team-badge{width:26px;height:26px}.game-controls .small-btn{padding:7px}.result-mark{width:80px;height:80px}footer{padding:20px 18px}.in-game .question-card{padding:46px 15px 15px}.home-recent .record-note{width:100%;margin-left:0}}
@media(max-width:560px){.topbar{padding:14px 16px;gap:14px}.brand{font-size:19px}.brand small{font-size:9px}.brand-mark{width:44px;height:44px}.topbar nav{width:100%;justify-content:space-between}.topbar nav button{flex:1;min-height:39px;font-size:11px}.topbar nav .desktop-text{display:inline}.mond-board{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto 110px auto;border-width:4px;gap:4px}.hero-title-cell{grid-column:1/4;grid-row:1;padding:22px 20px}.hero-title-cell h1{font-size:clamp(37px,9.6vw,53px);margin-top:7px}.grade-label{font-size:13px;letter-spacing:2px;margin-top:14px}.hero-title-cell .eyebrow{font-size:9px;letter-spacing:.8px}.hero-copy{font-size:11px}.edition-tag{position:absolute;bottom:22px;right:17px;font-size:8px;max-width:124px;line-height:1.7;text-align:center}.hero-star{grid-column:1;grid-row:2;padding:8px}.hero-star .cute-icon{height:80px;width:80px}.hero-book{grid-column:2;grid-row:2;padding:10px 8px 0}.hero-book .cute-icon{height:90px;width:90px}.hello-bubble{display:none}.hero-blue{grid-column:3;grid-row:2;padding:12px;position:relative;align-items:flex-start;font-size:14px;line-height:1.3}.hero-arrow{position:absolute;right:11px;bottom:4px;font-size:33px}.hero-stats{grid-column:1/4;grid-row:3;grid-template-columns:repeat(3,1fr);min-height:56px}.hero-stats .stats-note{display:none}.hero-stats>span{border-width:2px;font-size:9px;flex-wrap:wrap;gap:5px;padding:10px 5px}.hero-stats>span:nth-child(3){border-right:0}.hero-stats b{font-size:25px}.section-title h2{font-size:20px}.section-title .index{font-size:9px;letter-spacing:1px}.section-title{align-items:center}.section-title .tiny-label{font-size:8px;max-width:70px;white-space:normal;text-align:center;padding:5px}.semester-switch{flex-wrap:wrap}.semester-button{padding:11px 20px;font-size:14px}.semester-switch small{padding:6px 8px;font-size:9px;flex:1}.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson{padding:10px 20px 10px 8px;gap:8px;min-height:70px}.lesson-text{font-size:11px}.lesson-text small{font-size:8px}.lesson-no{min-width:24px;font-size:21px}.scope-presets{gap:6px}.scope-presets button{padding:8px;font-size:10px;min-height:38px}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mode-card{min-height:119px;padding:10px 8px;gap:5px}.mode-icon{width:45px;height:53px}.mode-card strong{font-size:12px}.mode-card small{font-size:9px}.mode-card .mode-number{font-size:7px}.mode-card .check{right:5px;top:4px;font-size:11px}.settings{padding:20px}.how-strip{font-size:10px;gap:7px}.how-strip b{font-size:20px}.game-top-left{min-width:0;max-width:65%}.in-game main{padding:0 12px}.in-game .game-top-left>strong{font-size:12px}.team-badge{width:23px;height:23px}.answer{font-size:13px}.teams.four .answer{min-height:48px}.memory-card{min-height:70px}.memory-card .cute-icon{width:40px;height:40px}.podium-card strong{font-size:30px}.podium-card h3{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.topbar,footer,.result-actions{display:none}.result{padding:0}body{background:white}.podium-card,.review-card{border:1px solid black;box-shadow:none}main{padding:0}}
@media(min-width:801px){.in-game .question-card{padding:12px 75px 12px 22px;min-height:105px;gap:5px}.in-game .question-prompt{font-size:21px;line-height:1.5}.in-game .question-display{font-size:26px;line-height:1.5}.in-game .question-display.glyph,.in-game .question-display.sound{font-size:36px}.in-game .teams.four .answer{min-height:48px;padding:8px 10px;font-size:18px}.in-game .team-header{padding:7px 12px}.in-game .team-body{padding:8px}.in-game .team-status{min-height:20px;margin-top:4px;font-size:10px}.in-game .teams{gap:12px}.in-game .tracks{margin:7px 0 10px}.in-game .game-top{margin-bottom:12px}.in-game .team-badge{width:27px;height:27px}}
@media(max-width:560px){.edition-tag{position:static;display:inline-block;max-width:none;margin-top:12px;font-size:9px;padding:4px 8px}.hero-title-cell{padding-bottom:20px}}

.mode-card[data-value="rhetoric"]{background:#fff1d6}.mode-card[data-value="rhetoric"].active{background:var(--orange);color:white}.mode-card:nth-last-child(-n+2){grid-column:span 1}.question-display.rhetoric{font-size:clamp(18px,2vw,27px);line-height:1.8}.question-card:has(.rhetoric) .question-context{font-size:11px;letter-spacing:0;color:var(--muted)}
@media(min-width:801px){.in-game .question-display.rhetoric{font-size:22px}}

@media(min-width:1151px){.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-card{flex-direction:column;align-items:flex-start;min-height:176px}.mode-icon{width:48px;height:55px}.mode-copy{gap:5px}.mode-card strong{font-size:13px}.mode-card small{font-size:9px}}
@media(min-width:561px) and (max-width:800px){.mode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.mode-card{flex-direction:column;align-items:flex-start;min-height:170px}}
.question-display.punctuation{font-size:clamp(18px,2vw,27px);line-height:1.8}.question-card:has(.punctuation) .question-context{font-size:11px;letter-spacing:0;color:var(--muted)}
@media(min-width:801px){.in-game .question-display.punctuation{font-size:22px}}
@media(min-width:801px){.game-wrap:has(.rhetoric) .answer,.game-wrap:has(.punctuation) .answer{font-size:16px;line-height:1.55}}
@media(min-width:1101px){.game-wrap:has(.rhetoric) .teams.four,.game-wrap:has(.punctuation) .teams.four{grid-template-columns:repeat(4,minmax(0,1fr))}.game-wrap:has(.rhetoric) .teams.four .answers,.game-wrap:has(.punctuation) .teams.four .answers{grid-template-columns:1fr}.in-game .game-wrap:has(.rhetoric) .teams.four .answer,.in-game .game-wrap:has(.punctuation) .teams.four .answer{font-size:16px;line-height:1.55}}

.grade-switch{display:flex;align-items:center;gap:0;border:2px solid var(--ink);background:var(--white);margin-bottom:12px;flex-wrap:wrap}.grade-switch>span{padding:0 14px;font-size:11px;font-weight:800}.grade-button{border-left:2px solid var(--ink);padding:11px 22px;min-height:44px;font-size:14px;font-weight:900;background:var(--white)}.grade-button.active{background:var(--yellow)}.grade-switch small{font-size:9px;color:var(--muted);margin-left:auto;padding:8px 12px}.brand{font-size:20px}
@media(max-width:560px){.grade-switch>span{padding:0 10px;font-size:10px}.grade-button{padding:10px 17px;font-size:13px}.grade-switch small{width:100%;border-top:1px solid var(--ink);padding:7px 10px}.brand{font-size:18px}}

/* 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}}
@media(max-width:560px){.grade-switch>span{width:100%;padding:7px 10px;border-bottom:1px solid var(--ink)}.grade-button{flex:1;padding:10px 7px}.grade-button:first-of-type{border-left:0}}

/* Official dictionary neutral-tone fallback for expressions not in the font's IVS table. */
.zhuyin-grade .neutral-zhuyin{display:inline-flex;align-items:center;vertical-align:middle;white-space:nowrap;line-height:1;margin:0 .02em}
.zhuyin-grade .neutral-zhuyin-char{font-family:'PingFang TC','Noto Sans TC',sans-serif;font-size:1em;letter-spacing:0}
.zhuyin-grade .neutral-zhuyin-reading{font-family:'Noto Sans TC',sans-serif;font-size:.37em;line-height:1.15;letter-spacing:0;writing-mode:vertical-rl;text-orientation:upright;margin-left:.1em}

/* Explicit phonetic syllables: stack symbols without rotating Chinese text.
   CLReq 5.5.3.3: non-neutral tones sit above/right of the last symbol;
   the neutral dot sits above the stack. https://www.w3.org/TR/clreq/ */
.zhuyin-syllable{display:inline-block;position:relative;box-sizing:content-box;vertical-align:middle;margin:0 .12em;padding:.5em .55em .15em 0;min-width:1em;font-family:inherit;font-size:.72em;font-weight:400;line-height:1;letter-spacing:0;white-space:nowrap;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb;direction:ltr}
.zhuyin-grade .zhuyin-syllable{font-family:'Zihi Bopomofo','PingFang TC',sans-serif}
.zhuyin-syllable>.zhuyin-symbols{display:flex;flex-direction:column;align-items:center;width:1em;font-size:inherit;line-height:1}
.zhuyin-symbols>span{display:block;width:1em;height:1em;font-size:inherit;line-height:1;text-align:center}
.zhuyin-syllable>.zhuyin-tone{position:absolute;left:1em;bottom:.65em;width:.55em;height:1em;font-size:inherit;line-height:1;text-align:center}
.zhuyin-syllable>.zhuyin-tone-neutral{left:0;top:.06em;bottom:auto;width:1em;height:.3em;overflow:hidden;text-indent:-100em}
.zhuyin-tone-neutral::after{content:'';position:absolute;left:.43em;top:.08em;width:.14em;height:.14em;border-radius:50%;background:currentColor}
.memory-card .zhuyin-syllable{font-size:1em}
.zhuyin-grade .memory-card{min-height:108px}
.char-card .zhuyin-syllable{display:inline-block;font-size:18px;line-height:1}
@media(max-width:560px){.zhuyin-grade .memory-card{min-height:102px}.memory-card .zhuyin-syllable{font-size:.9em}}

/* 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}}

