:root{--paper:#f8f6ee;--ink:#172e39;--red:#ae352b;--line:#c9c8bd;--mono:ui-monospace,"SFMono-Regular",Consolas,monospace;font-family:"Avenir Next",Avenir,"Helvetica Neue",Arial,"PingFang TC",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,#stage:focus-visible{outline:3px solid #165475;outline-offset:4px}button:active{transform:translateY(1px)}button{touch-action:manipulation}svg{display:block}button svg,.iconBox svg,.meterLabel svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sprites,.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.mono,.meterLabel,.eyebrow,.kicker,.courseTag,.hud>span{font-family:var(--mono);font-size:10px;line-height:1.2;letter-spacing:.13em;font-weight:750}.page{max-width:1392px;padding:0 clamp(18px,5.6vw,84px);margin:auto}.rail{display:flex;height:70px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.identity,.tools,.meterLabel,.eyebrow,.kicker,.courseTag,.hud,.lesson,.iconBox,footer>span{display:flex;align-items:center}.identity{gap:18px}.identity img{width:112px;height:auto}.identity i{width:1px;height:20px;background:var(--line)}.tools{gap:8px}.tools button,.hud button{border:1px solid #a8b0ac;background:transparent;border-radius:50%;height:38px;min-width:38px;display:grid;place-items:center;line-height:1}.tools button:hover,.hud button:hover{background:#fff9e7}.tools #language{border-radius:24px;padding:0 12px;font-size:12px;font-weight:700}.tools a{font-size:12px;font-weight:650;margin-right:4px;text-underline-offset:3px}.tools svg,.hud button svg{width:19px;height:19px}.heading{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:30px 0 24px}.eyebrow{font-size:10px;gap:9px;letter-spacing:.16em;color:#37525b}.eyebrow b,footer b{color:#a9aba2}.routeLine{width:25px;height:7px;background:repeating-linear-gradient(130deg,var(--red) 0 3px,transparent 3px 6px,#3e6175 6px 9px,transparent 9px 12px)}h1,h2,p{margin:0}h1{font-size:clamp(42px,5.7vw,84px);letter-spacing:-.073em;line-height:1.02;margin:9px 0 0;font-weight:800}h1 em{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.075em;color:var(--red);margin-left:.012em}.period{color:var(--red)}.scores{display:flex;align-items:end;margin-bottom:3px}.scores>div{min-width:110px;padding:0 20px;border-left:1px solid var(--line)}.scores>div:last-child{padding-right:0}.meterLabel{height:15px;font-size:9px;gap:6px;color:#4a5b60;white-space:nowrap}.meterLabel svg{width:13px;height:13px;stroke:var(--red)}.scores strong{display:block;font:700 clamp(25px,2.7vw,38px)/1.05 var(--mono);letter-spacing:-.08em;font-variant-numeric:tabular-nums;margin-top:4px}.scores small{font:600 15px var(--mono);letter-spacing:0;color:#617279}
#stage{position:relative;width:100%;height:clamp(345px,min(37.2vw,57svh),485px);overflow:hidden;isolation:isolate;background:#bbdedc;border:1px solid #365462;border-bottom:0;border-radius:13px 13px 0 0;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}#sky{position:absolute;inset:0;width:100%;height:100%}.courseTag{position:absolute;left:21px;top:18px;gap:8px;border:1px solid #54757482;border-radius:30px;padding:7px 11px;background:#f5f7e9ba;color:#244b54;font-size:9px;letter-spacing:.12em;pointer-events:none}.signal{width:6px;height:6px;background:#34746e;border-radius:50%}.hud{position:absolute;top:13px;right:16px;gap:8px}.hud>span,.hud button{background:#fcf7e7e8;border:1px solid #71908d}.hud>span{padding:7px 10px;border-radius:20px;font-size:9px}.hud button{height:36px;min-width:36px}.panel{position:absolute;left:6%;top:50%;transform:translateY(-44%);max-width:min(38%,375px);z-index:1}.kicker{font-size:9px;color:#79412c;gap:7px;letter-spacing:.16em}.kicker>span:first-child{width:17px;height:2px;background:var(--red)}.panel h2{font:700 clamp(48px,5.7vw,88px)/.93 Georgia,"Times New Roman",serif;letter-spacing:-.064em;margin:12px 0 11px;color:#173642}.panel h2 em{font-weight:500}.panel p{font-size:clamp(13px,1.2vw,16px);line-height:1.45;max-width:29ch;font-weight:550}.launch{display:inline-flex;align-items:center;gap:12px;border:1px solid #8f2e23;border-radius:28px;background:var(--red);color:#fff9ec;padding:12px 18px;min-height:45px;box-shadow:0 3px 0 #732f29;font-weight:750;margin-top:16px}.launch:hover{background:#942d24}.launch svg{width:18px;height:18px}.launch b{margin-left:8px}.stripe{height:8px;border:1px solid #365462;border-radius:0 0 5px 5px;background:repeating-linear-gradient(128deg,#bf5145 0 13px,#eee8d7 13px 29px,#426b7f 29px 42px,#eee8d7 42px 58px)}.manual{display:grid;grid-template-columns:.75fr 1fr 1fr;gap:26px;align-items:center;border-bottom:1px solid var(--line);padding:25px 0 23px}.manualName>.mono{font-size:9px;color:#626c69}.manualName h2{font:700 clamp(22px,2.2vw,32px)/1.2 Georgia,serif;letter-spacing:-.045em;margin-top:4px}.lesson{border-left:1px solid var(--line);padding-left:clamp(14px,2.8vw,40px);gap:13px}.iconBox{width:44px;height:44px;flex:none;justify-content:center;border:1px solid #bdc5b9;background:#ebeee3;border-radius:12px;color:#3b6466}.iconBox svg{width:25px;height:25px}.lesson strong{font-size:15px}.lesson p{color:#516168;font-size:12px;line-height:1.45;margin:3px 0 0}footer{display:flex;align-items:center;justify-content:space-between;color:#60716e;font-size:9px!important;padding:16px 0 22px}footer>span{gap:8px}footer i{width:6px;height:6px;border-radius:50%;background:#4b7971}html:lang(zh-Hant) h1,html:lang(zh-Hant) h2{letter-spacing:-.035em}html:lang(zh-Hant) .panel h2{line-height:1.12}html:lang(zh-Hant) h1 em{font-family:inherit;font-weight:750}
@media(max-width:700px){.page{padding:0 15px}.rail{height:54px}.identity{gap:10px}.identity img{width:88px}.identity .mono{font-size:8px}.tools{gap:5px}.tools button{height:34px;min-width:34px}.heading{padding:21px 0 15px;align-items:start;flex-direction:column;gap:13px}h1{font-size:clamp(38px,8.9vw,57px);margin-top:5px}.scores{gap:16px;margin:0}.scores>div{padding:0;border:0;min-width:0;display:flex;gap:7px;align-items:baseline}.scores strong{font-size:20px;margin:0}.scores small{font-size:11px}.meterLabel{font-size:8px;height:auto;letter-spacing:.08em}.meterLabel svg{display:none}.eyebrow{font-size:9px}#stage{height:clamp(360px,55svh,450px)}.panel{left:6%;max-width:66%;top:50%;transform:translateY(-36%)}.panel h2{font-size:clamp(46px,9.2vw,58px)}.panel p{max-width:23ch;font-size:13px}.courseTag{left:12px;top:12px;font-size:8px}.hud{right:8px;top:8px}.manual{grid-template-columns:1fr 1fr;gap:10px;padding:17px 0}.manualName{grid-column:1/-1;display:flex;align-items:center;gap:12px}.manualName h2{font-size:21px;margin:0}.manualName>.mono{font-size:8px}.lesson{padding-left:0;border:0;align-items:flex-start;gap:8px}.iconBox{height:31px;width:31px;border-radius:8px}.iconBox svg{width:19px;height:19px}.lesson strong{font-size:12px}.lesson p{font-size:11px}.tools a{font-size:10px}footer{font-size:7px!important}}
@media(max-height:520px) and (orientation:landscape){.page{padding:0 15px}.rail{height:36px}.identity img{width:77px}.tools button{min-height:28px;height:28px;min-width:28px}.heading{padding:5px 0 7px;align-items:center;flex-direction:row}h1{font-size:32px;margin:0}.heading .eyebrow{display:none}.scores strong{font-size:20px}#stage{height:calc(100svh - 95px);min-height:180px}.panel h2{font-size:clamp(28px,10vh,49px);margin:7px 0}.panel{transform:translateY(-40%)}.panel p{font-size:12px}.launch{padding:5px 13px;min-height:32px;margin-top:8px}.manual{padding:15px 0}.courseTag{top:8px;left:10px}}
#stage[data-mode="paused"] .panel,#stage[data-mode="over"] .panel{top:50%;left:50%;transform:translate(-50%,-47%);width:min(345px,88%);max-width:none;background:#fff9e9f5;border:1px solid #597271;border-radius:9px;padding:20px 24px;box-shadow:4px 5px 0 #274c5326;text-align:center}
#stage:is([data-mode="paused"],[data-mode="over"]) .kicker{justify-content:center}#stage:is([data-mode="paused"],[data-mode="over"]) h2{font-size:clamp(32px,4vw,49px);line-height:1.04}#stage:is([data-mode="paused"],[data-mode="over"]) .panel p{margin:auto;max-width:32ch}#stage[data-mode="running"]{cursor:pointer}
@media(max-height:420px) and (orientation:landscape){#stage:is([data-mode="paused"],[data-mode="over"]) .panel{padding:10px 20px}#stage:is([data-mode="paused"],[data-mode="over"]) h2{font-size:30px}}

/* Keep the flight deck within reach on a wall-mounted classroom display. */
.page{min-height:100svh;display:flex;flex-direction:column;padding-bottom:max(8px,env(safe-area-inset-bottom))}
.rail{flex:none}.page main{flex:1;display:flex;flex-direction:column;justify-content:flex-end}
.heading{padding-top:clamp(16px,3vh,34px);padding-bottom:clamp(14px,2.4vh,25px)}
#stage{flex:none;height:clamp(270px,53svh,630px)}.stripe{flex:none}
.deck{display:grid;grid-template-columns:minmax(140px,.55fr) minmax(0,1.75fr) auto;align-items:stretch;gap:14px;padding:12px 0 0}
.deckName{align-self:center}.deckName>.mono{font-size:9px;color:#5b6b67}.deckName h2{font:700 22px/1.16 Georgia,serif;letter-spacing:-.035em;margin-top:3px}.deckName p{font-size:11px;color:#57666b;margin:3px 0 0}
.windPad,.lowerPause{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;display:flex;align-items:center;justify-content:center;gap:13px;border:1px solid #667e75;border-radius:11px;min-height:68px;background:#e3ece0;color:#204c4a}
.windPad{text-align:left;position:relative;padding:7px 43px}.padIcon{display:grid;place-items:center}.padIcon svg{width:30px;height:30px}.windPad strong{display:block;font-weight:760;font-size:18px;line-height:1.2}.windPad small{display:block;font-size:12px;color:#3f5f5a;margin-top:2px}.padArrow{position:absolute;right:18px;top:50%;transform:translateY(-50%);font:600 25px/1 var(--mono)}
.windPad[data-held="true"]{background:#24635d;color:#fffbed;box-shadow:inset 0 3px 0 #174c47}.windPad[data-held="true"] small{color:#fffbed}.lowerPause{flex-direction:column;gap:4px;min-width:76px;padding:6px 12px;background:transparent;color:var(--ink);font-size:11px;font-weight:700}.lowerPause svg{width:19px;height:19px}.lowerPause:disabled{opacity:.41;cursor:default}
@media(min-width:1000px) and (min-height:850px){.page{padding-bottom:max(15px,env(safe-area-inset-bottom))}.deck{padding-top:16px}.windPad,.lowerPause{min-height:79px}}
@media(max-width:700px){.deck{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding-top:8px}.deckName{display:none}.windPad,.lowerPause{min-height:58px}.windPad strong{font-size:16px}.lowerPause{min-width:62px}.heading{padding:13px 0;gap:8px}.page{padding-bottom:max(7px,env(safe-area-inset-bottom))}#stage{height:clamp(265px,60svh,520px)}}
@media(max-height:520px) and (orientation:landscape){.heading{padding:4px 0 7px}.page{padding-bottom:max(4px,env(safe-area-inset-bottom))}.deck{grid-template-columns:1fr auto;padding-top:5px;gap:6px}.deckName{display:none}.windPad,.lowerPause{min-height:44px}.lowerPause{flex-direction:row;min-width:68px}.windPad{padding:4px 32px}.windPad strong{font-size:14px}.windPad small{font-size:10px}#stage{height:calc(100svh - 140px);min-height:155px}}
.wordCard{display:flex;align-items:center;gap:clamp(12px,2vw,30px);min-width:0;background:#fff9e9;border:1px solid #bebba9;border-radius:9px;margin:0 0 10px;padding:8px 13px;color:#263f45;position:relative}
.partPicture{width:clamp(66px,8vw,107px);height:64px;flex:none;border-right:1px dashed #b6b8a9;padding-right:10px}.part{fill:#eee8d6}.fuselage{fill:#fffaf0}.part.lit{fill:#ffbb42;stroke:#8c3d29;stroke-width:2.3}.gearDetail{display:none}.partPicture[data-word="gears"]>g:first-child{display:none}.partPicture[data-word="gears"] .gearDetail{display:inline}
.spellMain{flex:none}.spellLabel{display:flex;align-items:center;gap:9px;margin-bottom:4px}.spellLabel .mono{font-size:9px;letter-spacing:.11em;color:#4e615d}#wordMeaning{font-size:12px;line-height:1.1;font-weight:700;color:#675b46}.tiles{display:flex;align-items:center;gap:3px}.tiles span{display:grid;place-items:center;width:clamp(22px,2.5vw,35px);height:clamp(27px,2.8vw,39px);border-radius:5px;border:1px solid #c9cabc;color:#4b5960;background:#f6f3e7;font:bold clamp(18px,2vw,28px)/1 Verdana,Arial,sans-serif}
.tiles .next{background:#ffdc68;border:2px solid #695227;color:#293f40;box-shadow:inset 0 -3px 0 #e9ac32}.tiles .caught{background:#305c57;color:white;border-color:#305c57}.wordCard[data-celebrating="true"]{background:#e8f1df;border-color:#6e8b6c}
.wordCue{display:flex;flex:1 1 110px;min-width:0;flex-direction:column;gap:3px}.wordCue strong{font-size:clamp(15px,1.6vw,22px);line-height:1.12}.wordCue span{font-size:clamp(11px,1vw,15px);color:#505f61;line-height:1.25}.wordActions{margin-left:auto;display:flex;align-items:center;flex-direction:column;gap:4px;min-width:87px}.wordActions button,.wordActions select{font-family:inherit;color:var(--ink);cursor:pointer}.wordActions button{border:1px solid #8c9f91;background:#f6f6e9;border-radius:24px;display:flex;align-items:center;gap:5px;justify-content:center;padding:5px 10px;min-height:32px;font-size:12px;font-weight:700}.wordActions button svg{height:15px;width:15px}.wordActions select{width:100%;max-width:145px;background:transparent;border:0;text-decoration:underline;text-underline-offset:2px;font-size:12px;min-height:24px}.wordActions select:focus-visible{outline:2px solid var(--ink)}#stamps{font-size:9px;color:#4f6460}
@media(max-width:700px){.wordCard{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:3px 7px;padding:7px 8px;margin-bottom:6px}.partPicture{grid-row:1/3;width:44px;height:36px;padding-right:3px}.spellMain{grid-column:2}.spellLabel{gap:5px;margin-bottom:2px}.spellLabel .mono{font-size:7px}#wordMeaning{font-size:9px}.tiles{gap:2px}.tiles span{width:clamp(16px,4.8vw,26px);height:24px;font-size:17px}.wordCue{grid-column:2;grid-row:2;display:block}.wordCue strong{font-size:12px}.wordCue span{display:none}.wordActions{grid-column:3;grid-row:1/3;min-width:0;gap:1px}.wordActions button{min-width:34px;min-height:29px;padding:4px 7px}.wordActions button span{display:none}.wordActions select{font-size:10px;max-width:85px}.wordActions #stamps{font-size:8px}.heading{padding:6px 0 8px}#stage{height:clamp(225px,min(57svh,calc(100svh - 288px)),520px)}}
@media(max-width:365px){.partPicture{display:none}.wordCard{grid-template-columns:0 minmax(0,1fr) auto;padding-inline:5px;column-gap:4px}}
@media(max-height:650px) and (orientation:portrait){.heading .eyebrow{display:none}.heading h1{font-size:32px}.heading{gap:3px}}
@media(max-height:520px) and (orientation:landscape){.heading{display:none}.wordCard{display:flex;gap:13px;min-height:43px;margin:3px 0;padding:3px 9px}.partPicture{width:48px;height:35px}.spellLabel{margin-bottom:1px}.tiles span{width:21px;height:23px;font-size:16px}.wordCue{display:flex}.wordCue strong{font-size:13px}.wordCue span{display:block;font-size:10px}.wordActions{flex-direction:row;gap:6px}.wordActions button{min-height:28px}.wordActions select{max-width:99px}#stage{height:calc(100svh - 157px);min-height:126px}}
@media(max-width:700px) and (orientation:portrait){
 .page{height:100svh;min-height:0}.page main{min-height:0}.heading,.wordCard,.deck{flex:none}
 #stage{flex:0 1 auto;min-height:160px}
}
@media(max-width:700px) and (max-height:675px) and (orientation:portrait){
 .panel{transform:translateY(-40%)}.panel h2{font-size:35px;margin:7px 0}.panel p{font-size:12px}.launch{min-height:34px;margin-top:8px;padding:5px 12px}
}
.deck{grid-template-columns:minmax(120px,.55fr) minmax(0,1.75fr) auto auto}
#stage[data-mode="over"] .launch{margin:12px 3px 0;min-height:39px;padding:8px 13px;font-size:14px}
#stage[data-mode="over"] #action{color:var(--ink);background:#f4eedf;border-color:#9a9688;box-shadow:none}
#stage[data-mode="over"] #action svg,#stage[data-mode="over"] #action b{display:none}
#boardDialog{width:min(430px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto auto max(10px,3svh);overflow-y:auto;border:1px solid #777f75;border-radius:12px;background:#fff9e9;padding:16px 20px;color:var(--ink);box-shadow:0 10px 45px #172e3955}
#boardDialog::backdrop{background:#18364075}
#boardDialog header,#scoreForm>div{display:flex;align-items:center;gap:8px}
#boardDialog header{justify-content:space-between;border-bottom:1px dashed #b3b9a8;padding-bottom:8px}
#boardDialog h2{font:700 32px/1.1 Georgia,serif}
#boardDialog button{border:1px solid #7c8e83;border-radius:8px;padding:7px 11px;background:#eef0e1;font-weight:700}
#boardClose{font-size:22px;min-width:40px;min-height:40px}
#scoreForm{margin-top:12px}#scoreForm strong{display:block;font-size:22px}
#scoreForm label{display:block;margin:6px 0 3px;font-size:13px}
#scoreForm input{flex:1;min-width:0;padding:9px;border:1px solid #7c8e83;border-radius:6px;font:inherit;background:white}
#scoreForm button{background:var(--red);color:white}#scoreForm button:disabled{opacity:.6}
#boardDialog p:not(:empty){margin:12px 0 3px;font-size:14px}#boardTable{margin-top:12px;border-collapse:collapse;width:100%;text-align:left}
#boardTable th,#boardTable td{padding:5px;border-bottom:1px solid #deded1}#boardTable td:last-child,#boardTable th:last-child{text-align:right;font-variant-numeric:tabular-nums}
#boardTable th{font-size:12px;color:#58665e}
@media(max-width:700px),(max-height:520px) and (orientation:landscape){.deck{grid-template-columns:minmax(0,1fr) auto auto}.deckName{display:none}.deck .lowerPause{min-width:49px;padding:4px 7px}.boardOpen span{max-width:58px}.windPad{padding-inline:6px}.padArrow{display:none}.scores{gap:10px}}
@media(max-width:365px){.deck .lowerPause{min-width:44px}.boardOpen span{max-width:44px}}
.partPicture[data-extra="true"]>g:first-child{display:none}
.countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.3rem;background:#faf5df42;pointer-events:none;color:var(--ink)}
.countdown span{font-weight:800;padding:.22em .75em;border-radius:1em;background:#fff8e5}
.countdown strong{display:grid;place-items:center;width:1.4em;height:1.4em;border:3px solid #294951;border-radius:50%;font:800 clamp(44px,9vmin,95px)/1 var(--mono);background:#ffda65;box-shadow:2px 4px 0 #29495142}
