@font-face{font-family:WordSortPixel;src:url("pixel.ttf") format("truetype");font-display:swap}
:root{font-family:ui-rounded,"Trebuchet MS",Arial,sans-serif;color:#26334d;font-synthesis:none;background:#edf3ff;font-weight:500;--navy:#26334d;--purple:#6d5cbe}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{height:100svh;height:100dvh;background:linear-gradient(140deg,#edf7ff 0%,#f4f0ff 62%,#f4f8ff);display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:3px solid #7562c8;outline-offset:4px}button:disabled{cursor:default}button[hidden],[hidden]{display:none!important}.app{position:relative;z-index:1;width:min(1040px,100%);height:100%;max-height:870px;min-height:0}.game{height:100%;display:grid;grid-template-rows:48px auto minmax(88px,.65fr) minmax(0,1.35fr) 22px;gap:clamp(10px,2.1vh,22px);min-height:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.replay{display:flex;align-items:center;gap:8px;padding:11px 15px;background:#fff9;border:1px solid #fff;border-radius:15px;font-size:12px;font-weight:800;letter-spacing:.055em;box-shadow:0 3px 10px #58657f06}.replay svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.replay:hover{background:#fff}.counters{display:flex;gap:10px;height:100%}.counter{border-radius:15px;display:flex;align-items:center;gap:15px;padding:9px 17px;background:#fff9;box-shadow:0 3px 12px #414e6d04;border:1px solid #fff}.counter>span{font-size:10px;font-weight:800;letter-spacing:.10em;color:#737b90}.counter strong{font-size:23px;font-weight:800;font-variant-numeric:tabular-nums}.counter strong span{font-size:13px;color:#979db0;margin-left:3px}.counter.score{background:#eee9ff;border-color:#f7f4ff}.counter.score strong{color:#6e5ab1}.instruction{justify-self:center;text-align:center;background:#fff0b9;border:1px solid #fff7d6;border-radius:16px;padding:14px 25px;font-size:clamp(15px,2vw,20px);font-weight:700;line-height:1.35;box-shadow:0 5px 15px #c4a9550b;max-width:100%;text-wrap:balance}.word-stage{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:0}.card-slot{width:min(430px,78%);height:clamp(64px,11vh,98px);flex-shrink:0}.word-card{position:relative;border:1.5px solid #fff;background:#fffefa;width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:15px;border-radius:22px;box-shadow:0 10px 0 #deddf345,0 15px 30px #5d578512;font-size:clamp(24px,4vw,39px);font-weight:800;letter-spacing:.025em;text-transform:uppercase;touch-action:none;user-select:none;-webkit-user-select:none;transform:translate3d(var(--dx,0px),var(--dy,0px),0);transition:box-shadow .18s,background .18s;will-change:transform;cursor:grab;line-height:1.15;padding:12px 30px}.word-card #word{overflow-wrap:normal;text-align:center}.grip{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:24px;color:#b9b5d5;letter-spacing:0}.card-spark{position:absolute;right:13px;top:12px;font-size:16px;color:#c5b7f1}.word-card.dragging{transform:translate3d(var(--dx,0px),var(--dy,0px),0) scale(1.045);box-shadow:0 20px 40px #554b8333;cursor:grabbing;z-index:20}.word-card.selected{background:#faf7ff;box-shadow:0 0 0 3px #b9a8ee,0 15px 30px #5d57851a}.word-card.entering{animation:enter .25s ease-out both}.word-card.bounce-back{animation:bounceBack .46s cubic-bezier(.2,.8,.2,1) both}.word-card.sorted{transform:translate3d(var(--dx,0px),var(--dy,0px),0) scale(.12);opacity:0;transition:transform .42s ease-in,opacity .4s ease}.help{font-size:13px;color:#737b91;text-align:center;margin:0;line-height:1.35}.feedback{position:absolute;top:100%;margin:0;font-weight:700;font-size:14px;text-align:center;line-height:1.25;pointer-events:none;transform:translateY(-2px);color:#458064}.feedback.negative{color:#a85a67}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:clamp(10px,1.6vw,18px);min-height:0;padding-top:10px}.category{--card:#ffe3dc;--ink:#ab665a;position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,1.2vh,13px);border:2px solid #ffffffa6;background:var(--card);border-radius:24px;box-shadow:0 6px 0 #fff8,0 8px 18px #53617d05;padding:clamp(10px,2vw,22px);transition:transform .18s,background .18s,box-shadow .18s,border-color .18s;touch-action:manipulation;isolation:isolate}.category.green{--card:#e0f1df;--ink:#5f8f65}.category.blue{--card:#dcecff;--ink:#5781b0}.category.lavender{--card:#e9e1fa;--ink:#8c71b5}.category.yellow{--card:#fff0ca;--ink:#b58a42}.category.turquoise{--card:#d9f1ed;--ink:#5d9c93}.icon-wrap{display:grid;place-items:center;width:clamp(34px,5.3vh,54px);height:clamp(34px,5.3vh,54px);border-radius:17px;background:#fff7;color:var(--ink);flex-shrink:0}.category svg{width:70%;height:70%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.category-label{font-size:clamp(16px,1.9vw,21px);font-weight:750;line-height:1.25;text-align:center;max-width:100%;text-wrap:balance;overflow-wrap:normal}.category.hovered{transform:translateY(-3px);border-color:#9280cf;box-shadow:0 0 0 3px #b9a8ee3b,0 10px 25px #6f619c1a}.category.correct{background:#d6f2df;border-color:#91cfa5;box-shadow:0 0 0 4px #a9dfbb45}.category.wrong{background:#f8dde2;border-color:#e5a3ae;animation:wiggle .3s ease}.mark{position:absolute;right:12px;top:10px;width:27px;height:27px;border-radius:50%;display:none;place-items:center;background:#fff;color:#388254;font-size:18px;font-weight:800}.correct .mark,.wrong .mark{display:grid;animation:mark .25s ease-out}.wrong .mark{color:#bb6475}footer{display:flex;align-items:center;justify-content:center;gap:12px;color:#8a8ea4;font-size:11px;min-width:0}.progress-track{width:min(180px,35%);height:5px;background:#dfe0f0;border-radius:20px;overflow:hidden}.progress-track>div{height:100%;width:0%;border-radius:20px;background:#ad9add;transition:width .3s}.decor{position:fixed;inset:0;pointer-events:none;overflow:hidden}.blob{position:absolute;border-radius:40% 60% 60% 40%;opacity:.35}.blob.a{width:250px;height:310px;background:#d8d7f7;left:-180px;top:16%;transform:rotate(25deg)}.blob.b{width:250px;height:270px;background:#d3eceb;right:-170px;bottom:8%;transform:rotate(-20deg)}.blob.c{width:200px;height:150px;background:#ffecc6;right:2%;top:-110px}.doodle{position:absolute;width:26px;height:26px;fill:none;stroke:#a6a1ca;stroke-width:2;opacity:.27}.d1{left:3%;top:10%}.d2{right:2%;top:40%}.d3{left:2%;bottom:7%}.results{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:relative;gap:12px}.result-badge{background:#fff0bb;width:100px;height:100px;display:grid;place-items:center;border-radius:32px;box-shadow:0 10px 30px #d3b15015}.result-badge svg{width:62px;fill:#edbb53;stroke:#d9a23b;stroke-width:1.5}.eyebrow{margin:16px 0 0;font-size:11px;letter-spacing:.15em;color:#8d83ad;font-weight:800}.results h1{font-size:clamp(32px,6vw,56px);margin:0;color:#514774;letter-spacing:-.04em}.result-label{margin:14px 0 0;letter-spacing:.12em;font-size:12px;color:#82859d;font-weight:800}.result-number{display:flex;align-items:baseline;gap:12px;margin:0}.result-number strong{font-size:clamp(66px,13vw,104px);color:#7461b5;line-height:1.05;letter-spacing:-.05em}.result-number>span{font-size:27px;color:#a5a0b8}.result-note{font-size:15px;color:#7e8299;margin:4px 0 18px}.primary{padding:17px 28px;border:0;background:#7763b9;color:white;border-radius:17px;font-size:13px;font-weight:800;letter-spacing:.06em;box-shadow:0 7px 0 #6150961a}.primary span{margin-left:30px;font-size:20px}.primary:hover{background:#6954aa}.celebration{position:absolute;inset:0;overflow:hidden;pointer-events:none}.celebration span{position:absolute;left:18%;top:24%;color:#dab867;font-size:23px;animation:float 3s ease-in-out 2}.celebration span:nth-child(2){left:76%;top:17%;color:#a999d7;animation-delay:.2s}.celebration span:nth-child(3){left:82%;top:56%;color:#90bab2;animation-delay:.4s}.celebration span:nth-child(4){left:12%;top:61%;color:#a999d7;animation-delay:.6s}.celebration span:nth-child(5){left:52%;top:8%;font-size:17px;animation-delay:.8s}@keyframes enter{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes bounceBack{0%{transform:translate3d(var(--dx,0px),var(--dy,0px),0) scale(1.045)}75%{transform:translate3d(0,-5px,0)}100%{transform:translate3d(0,0,0)}}@keyframes wiggle{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes mark{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}@keyframes float{50%{transform:translateY(-14px) rotate(15deg)}}@media(max-width:650px) and (orientation:portrait){body{padding: max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.game{grid-template-rows:44px auto minmax(90px,.62fr) minmax(0,1.38fr) 19px;gap:clamp(8px,1.5vh,14px)}.replay{padding:10px 11px;font-size:10px;gap:5px;border-radius:13px}.replay svg{width:15px}.counters{gap:6px}.counter{padding:7px 10px;gap:7px;border-radius:13px}.counter>span{font-size:9px}.counter strong{font-size:19px}.counter strong span{font-size:11px}.instruction{padding:12px 15px;width:100%;font-size:clamp(14px,3.8vw,17px);border-radius:15px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;padding-top:8px}.category{border-radius:19px;padding:10px 12px;gap:6px}.category-label{font-size:clamp(15px,3.9vw,18px)}.icon-wrap{width:34px;height:34px;border-radius:12px}.card-slot{width:85%;height:clamp(66px,10.5vh,86px)}.word-card{font-size:clamp(23px,6.4vw,32px);border-radius:19px;padding:10px 28px}.help{font-size:11px;max-width:95%}.feedback{font-size:12px}.mark{right:7px;top:6px;width:22px;height:22px;font-size:15px}.result-note{font-size:14px}}@media(max-height:520px){body{padding: max(6px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.game{grid-template-rows:36px auto minmax(72px,.55fr) minmax(0,1.45fr) 14px;gap:6px}.counter{padding:4px 12px}.counter strong{font-size:20px}.counter>span{font-size:9px}.counter strong span{font-size:12px}.replay{padding:7px 12px;font-size:10px}.instruction{padding:7px 20px;font-size:15px}.card-slot{height:52px;width:min(380px,65%)}.word-card{font-size:25px;border-radius:16px;padding:8px 28px;box-shadow:0 5px 0 #deddf345,0 8px 18px #5d578510}.word-stage{gap:4px}.help{font-size:10px}.category-grid{padding-top:7px;gap:8px}.category{border-radius:16px;flex-direction:row;gap:10px;padding:8px 12px}.category-label{font-size:15px;line-height:1.15}.icon-wrap{width:30px;height:30px;border-radius:10px}.feedback{font-size:11px;transform:translateY(-1px)}footer{font-size:10px}.result-badge{width:55px;height:55px;border-radius:18px}.result-badge svg{width:38px}.results{gap:5px}.eyebrow{margin-top:4px}.results h1{font-size:30px}.result-label{margin-top:3px}.result-number strong{font-size:62px}.result-note{margin:3px 0 8px}.primary{padding:11px 22px}}@media(max-height:420px) and (orientation:portrait){.game{grid-template-rows:34px auto 54px minmax(0,1fr) 12px;gap:4px}.category{flex-direction:row;padding:5px;gap:5px}.category-label{font-size:13px}.icon-wrap{width:24px;height:24px}.help{display:none}.card-slot{height:45px}.instruction{font-size:13px;padding:5px 8px}.replay{font-size:9px;padding:6px}.replay svg{display:none}.counter{padding:3px 5px;gap:3px}.counter strong{font-size:16px}.counter>span{font-size:8px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:650px) and (orientation:portrait) and (min-height:521px) and (max-height:700px){.game{grid-template-rows:44px auto minmax(92px,.45fr) minmax(0,1.55fr) 16px;gap:8px}.word-stage{gap:8px}.category{padding:8px 10px;gap:4px}.icon-wrap{width:30px;height:30px}.category-grid{gap:8px}}

/* WORD SORT: yellow / black pixel arcade skin. */
:root{font-family:WordSortPixel,monospace;--navy:#151923;--purple:#1884d2;color:#151923;background:#ffdf55;font-weight:400}
body{background-color:#ffdf55;background-image:linear-gradient(#252c3b05 1px,transparent 1px),linear-gradient(90deg,#252c3b05 1px,transparent 1px);background-size:24px 24px}
button{font-family:WordSortPixel,monospace;font-weight:400!important}button:focus-visible{outline:3px solid #1884d2;outline-offset:5px}
.replay,.counter,.instruction,.word-card,.category,.icon-wrap,.mark,.primary,.result-badge,.progress-track,.progress-track>div{border-radius:0!important}
.replay,.counter{border:3px solid #171c27;background:#fffef5;box-shadow:4px 4px 0 #171c27}
.replay{font-size:11px;letter-spacing:0;line-height:1.2;padding:10px 12px}.replay:hover{background:#ffe980}.replay svg{stroke:#171c27;stroke-linecap:square;stroke-linejoin:miter}
.counter{gap:10px}.counter>span{font-size:10px;color:#454955;letter-spacing:0;font-weight:400}.counter strong{font-size:23px;font-weight:400;color:#171c27}.counter strong span{font-size:12px;color:#616777}.counter.score{background:#1a83ca;border-color:#171c27}.counter.score>span,.counter.score strong,.counter.score strong span{color:#fff}
.instruction{background:#171c27;color:#ffe776;border:3px solid #171c27;box-shadow:4px 4px 0 #b49a2f;font-size:clamp(13px,1.7vw,17px);font-weight:400;line-height:1.45;padding:12px 18px}
.word-card{background:#fffef7;border:3px solid #171c27;box-shadow:7px 7px 0 #171c27;font-size:clamp(24px,3.5vw,36px);letter-spacing:0;font-weight:400;padding:10px 27px;line-height:1.25}
.word-card.dragging{box-shadow:10px 12px 0 #171c27bb}.word-card.selected{background:#fff1a6;box-shadow:0 0 0 4px #1884d2,7px 7px 0 #171c27}
.grip{font-family:monospace;color:#1685ce;font-size:24px}.card-spark{color:#1685ce;font-family:monospace;font-size:18px}
.help{font-size:10px;line-height:1.4;color:#454333;font-weight:400}.feedback{font-size:11px;line-height:1.2;font-weight:400;color:#205e3c}.feedback.negative{color:#8e302d}
.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{background:#fff2b2;border:3px solid #171c27;box-shadow:5px 5px 0 #171c27;gap:8px;padding:12px 14px}

.icon-wrap{background:#ffe161;color:#171c27;border:2px solid #171c27;width:40px;height:40px}.category svg{fill:currentColor;stroke:none;shape-rendering:crispEdges;width:25px;height:25px}
.category-label{font-size:clamp(13px,1.5vw,17px);font-weight:400;line-height:1.35;letter-spacing:0}
.category.hovered{background:#fff8db;border-color:#1685ce;box-shadow:5px 5px 0 #1685ce;transform:translateY(-2px)}
.category.correct{background:#e0efb6;border-color:#22593b;box-shadow:5px 5px 0 #22593b}.category.wrong{background:#ffe3b8;border-color:#9c3934;box-shadow:5px 5px 0 #9c3934}
.mark{border:2px solid currentColor;background:#fffef7;color:#22593b;font-family:monospace;font-weight:900}.wrong .mark{color:#9c3934}
footer{font-size:9px;color:#514d35}.progress-track{height:8px;border:2px solid #171c27;background:#fff5ba}.progress-track>div{background:#1685ce}
.blob{border-radius:0!important;opacity:.18;transform:none!important;background:#171c27!important;width:100px!important;height:100px!important}.blob.a{left:-75px;top:22%;box-shadow:22px 22px 0 #171c27}.blob.b{right:-75px;bottom:15%;box-shadow:-22px 22px 0 #171c27}.blob.c{right:9%;top:-80px;background:#1685ce!important;opacity:.35}
.doodle{stroke:#171c27;stroke-linejoin:miter;opacity:.3}.d3{stroke:#1685ce;stroke-width:4}
.result-badge{background:#ffe56a;border:4px solid #171c27;box-shadow:6px 6px 0 #171c27}.result-badge svg{fill:#171c27;stroke:none;shape-rendering:crispEdges}.eyebrow{font-size:10px;letter-spacing:0;color:#514d35;font-weight:400}.results h1{font-size:clamp(27px,5vw,45px);letter-spacing:0;color:#171c27}.result-label{color:#171c27;font-weight:400;letter-spacing:0;font-size:12px}.result-number strong{font-family:WordSortPixel,monospace;font-weight:400;color:#1685ce;letter-spacing:-.04em;font-size:clamp(58px,12vw,95px)}.result-number>span{font-size:23px;color:#171c27}.result-note{font-size:11px;color:#514d35;line-height:1.6}.primary{background:#171c27;color:#ffe56a;border:3px solid #171c27;box-shadow:5px 5px 0 #1685ce;font-size:12px;font-weight:400;letter-spacing:0}.primary:hover{background:#293244}.primary span{font-family:monospace;color:#fff}.celebration span{color:#171c27!important;font-family:monospace}.celebration span:nth-child(even){color:#1685ce!important}
.word-card.discarded{animation:discard .52s steps(7,end) forwards}@keyframes discard{0%{transform:translate3d(var(--dx,0px),var(--dy,0px),0);opacity:1}45%{transform:translate3d(0,0,0);opacity:1}100%{transform:translate3d(0,8px,0) scale(.85);opacity:0}}
@media(max-width:650px) and (orientation:portrait){.replay{font-size:9px;padding:9px 8px}.counter{padding:6px 8px;gap:5px}.counter>span{font-size:8px}.counter strong{font-size:17px}.counter strong span{font-size:10px}.instruction{font-size:12px;padding:10px 11px;line-height:1.5}.category{padding:8px;gap:5px}.category-label{font-size:13px;line-height:1.25}.icon-wrap{width:30px;height:30px}.category svg{width:20px;height:20px}.word-card{font-size:clamp(21px,5.5vw,28px)}.help{font-size:9px}.feedback{font-size:10px}.result-note{font-size:10px}.game{gap:10px}.category-grid{gap:10px}}
@media(max-height:520px){.replay{font-size:9px;padding:6px 9px}.counter{padding:3px 9px}.counter strong{font-size:17px}.counter>span{font-size:8px}.instruction{padding:6px 15px;font-size:12px}.word-card{font-size:23px;box-shadow:4px 4px 0 #171c27}.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{padding:7px 9px;gap:8px;box-shadow:3px 3px 0 #171c27}.category-label{font-size:12px;line-height:1.2}.icon-wrap{width:27px;height:27px;min-width:27px}.category svg{width:18px;height:18px}.help{font-size:8px}.feedback{font-size:9px}footer{font-size:8px}.results h1{font-size:25px}.result-label{font-size:10px}.result-number strong{font-size:54px}.result-note{font-size:9px}.primary{font-size:10px}}
@media(max-width:650px) and (orientation:portrait) and (min-height:521px) and (max-height:700px){.game{gap:8px}.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{padding:7px 8px;gap:4px}.category-label{font-size:12px}.icon-wrap{width:26px;height:26px}.category svg{width:18px;height:18px}}
@media(prefers-reduced-motion:reduce){.word-card.discarded{opacity:0;transform:none}}
@media(max-width:360px) and (orientation:portrait){.word-card{font-size:18px}}
@media(max-height:360px){.game{grid-template-rows:32px auto minmax(58px,.4fr) minmax(0,1.6fr) 12px;gap:4px}.help{display:none}.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{padding:4px 7px}.instruction{padding:4px 10px}.feedback{font-size:8px}}

/* Ten-second analog clock above a smaller, lower word card. */
.question-timer{height:48px;flex-shrink:0;display:flex;align-items:center;gap:8px;color:#171c27}
.timer-face{width:48px;height:48px;overflow:visible}.timer-base{fill:#fffef7;stroke:#171c27;stroke-width:3}.timer-arc{fill:none;stroke:#1685ce;stroke-width:4;transform:rotate(-90deg);transform-origin:32px 32px}.timer-ticks{fill:none;stroke:#171c27;stroke-width:2}.timer-face #timer-hand{fill:none;stroke:#171c27;stroke-width:3;stroke-linecap:square}.timer-face rect{fill:#171c27}.timer-readout{display:flex;flex-direction:column;gap:3px}.timer-readout strong{font-weight:400;font-size:18px;line-height:1}.timer-readout>span{font-size:8px}.question-timer.urgent .timer-arc{stroke:#aa3831}.question-timer.urgent .timer-readout{color:#942d28}
.game{grid-template-rows:48px auto minmax(164px,.75fr) minmax(0,1.25fr) 22px}.word-stage{gap:7px;padding-top:6px}.card-slot{width:min(370px,72%);height:clamp(56px,9vh,78px);margin-top:3px}.word-card{font-size:clamp(18px,3vw,30px)}
@media(max-width:650px) and (orientation:portrait){.game{grid-template-rows:44px auto minmax(144px,.7fr) minmax(0,1.3fr) 19px;gap:8px}.card-slot{width:80%;height:56px}.word-card{font-size:clamp(18px,5.1vw,25px)}.question-timer{height:42px}.timer-face{width:42px;height:42px}.timer-readout strong{font-size:16px}.word-stage{gap:6px;padding-top:4px}.help{font-size:8px}}
@media(max-width:650px) and (orientation:portrait) and (min-height:521px) and (max-height:620px){.game{grid-template-rows:44px auto minmax(138px,.7fr) minmax(0,1.3fr) 16px}.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{padding:5px 7px;gap:2px}.icon-wrap{width:18px;height:18px;border-width:1px}.category svg{width:14px;height:14px}.category-label{font-size:12px;line-height:1.2}}
@media(max-height:520px){.game{grid-template-rows:34px auto minmax(88px,.65fr) minmax(0,1.35fr) 14px;gap:5px}.question-timer{height:30px;gap:5px}.timer-face{width:30px;height:30px}.timer-readout{flex-direction:row;align-items:center;gap:4px}.timer-readout strong{font-size:13px}.timer-readout>span{font-size:8px}.card-slot{height:42px;width:min(335px,68%);margin-top:0}.word-card{font-size:21px;padding:5px 24px}.word-stage{gap:4px;padding-top:0}.help{display:none}.category,.category.green,.category.blue,.category.lavender,.category.yellow,.category.turquoise{padding:4px 7px}}
@media(max-height:420px) and (orientation:portrait){.game{grid-template-rows:32px auto 78px minmax(0,1fr) 12px;gap:4px}.question-timer{height:26px}.timer-face{width:26px;height:26px}.card-slot{width:85%;height:40px}.category-label{font-size:11px}.icon-wrap{display:none}}
@media(max-height:360px){.game{grid-template-rows:30px auto 76px minmax(0,1fr) 12px;gap:4px}.instruction{padding:4px 10px}.question-timer{height:26px}.timer-face{width:26px;height:26px}.card-slot{height:38px}.word-card{font-size:19px;padding:4px 24px}}
/* Pixel welcome: same game palette, clear student and teacher entry paths. */
.welcome{width:min(760px,100%);margin:auto;display:flex;flex-direction:column;align-items:center;gap:clamp(8px,2vh,18px);padding:16px;color:#17202d}.welcome-title{text-align:center;font-family:WordSortPixel,monospace;font-weight:900;line-height:1.18;filter:drop-shadow(5px 5px 0 #17202d)}.welcome-title span{display:block;font-size:clamp(28px,6.7vw,62px);color:white;-webkit-text-stroke:1px #17202d}.welcome-title strong{display:block;font-size:clamp(42px,10vw,90px);color:#ffdf55;-webkit-text-stroke:1px #17202d}.welcome-tag,.welcome-foot{font-size:clamp(10px,2.4vw,15px);margin:0;text-align:center}.entry-panel{width:min(560px,100%);background:#fffbed;border:4px solid #17202d;box-shadow:7px 7px 0 #17202d;padding:clamp(14px,3vw,26px);display:grid;gap:10px}.entry-panel label{font-size:14px;display:block;margin-top:5px}.entry-panel input{width:100%;min-width:0;min-height:46px;border:3px solid #17202d;background:white;padding:10px;font:16px monospace;color:#17202d;border-radius:0}.entry-panel input:disabled{background:#e7e7e0}.blue-button{background:#54baff;color:#142032;border:3px solid #17202d;box-shadow:3px 3px 0 #17202d;padding:11px 12px;font:inherit;font-size:12px;cursor:pointer}.blue-button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #17202d}.entry-panel .primary{width:100%;margin:0;min-height:50px}.entry-panel p{font:13px/1.4 monospace;margin:0;min-height:20px}button:disabled{cursor:default;opacity:.55}table{border-collapse:collapse;width:100%;font:14px/1.5 system-ui}th,td{text-align:left;padding:10px;border-bottom:2px solid #17202d;overflow-wrap:anywhere}.results{gap:12px}#back-menu{margin:0}body:has(.welcome:not([hidden])){background:#ffdf55;background-image:linear-gradient(90deg,#f7cc3930 1px,transparent 1px),linear-gradient(#f7cc3930 1px,transparent 1px);background-size:32px 32px}.app:has(.welcome:not([hidden])){display:flex;align-items:center;justify-content:center}@media(max-height:650px){.welcome{gap:7px;padding:7px}.welcome-title span{font-size:26px}.welcome-title strong{font-size:38px}.entry-panel{gap:5px;padding:12px}.entry-panel input{min-height:38px;padding:7px}.welcome-tag{display:none}.entry-panel .primary{min-height:40px}.welcome-foot{font-size:10px}}@media(max-height:450px) and (min-width:600px){.welcome{display:grid;grid-template-columns:1fr 1.3fr;gap:12px;width:900px}.welcome-title{grid-column:1;grid-row:1/3}.entry-panel{grid-column:2;grid-row:1/4}.welcome-foot{grid-column:1;grid-row:4}.entry-panel input{min-height:34px}.entry-panel label{font-size:11px}}
/* Reference logo is clipped in CSS so the original approved artwork stays exact. */
.welcome{width:min(1080px,100%);gap:clamp(7px,1.3dvh,14px);padding:8px}.welcome-logo{position:relative;overflow:hidden;width:100%;aspect-ratio:1536/282;flex-shrink:0}.welcome-logo img{width:100%;height:auto;display:block;image-rendering:pixelated}.entry-panel{width:min(660px,92%);border:0;outline:5px solid #101010;box-shadow:7px 9px 0 #101010;padding:clamp(14px,2.6dvh,26px);background:#fffdf0;clip-path:polygon(0 12px,12px 12px,12px 0,calc(100% - 12px) 0,calc(100% - 12px) 12px,100% 12px,100% calc(100% - 12px),calc(100% - 12px) calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,12px calc(100% - 12px),0 calc(100% - 12px));border:5px solid #111}.entry-panel label{font-weight:bold}.welcome-foot{font-size:clamp(9px,1.7vw,13px)}.entry-panel input,.entry-panel p,table{font-family:WordSortPixel,monospace}.entry-panel input{font-size:clamp(12px,1.8vw,17px);line-height:1.4}#student-name{text-transform:uppercase}.entry-panel p{font-size:10px}.blue-button{color:white;background:#009cf5;border-color:#101010;box-shadow:3px 3px 0 #101010,inset 3px 3px 0 #69d6ff,inset -3px -3px 0 #0062bd;border-radius:0}.primary{border-radius:0}.primary{box-shadow:4px 4px 0 #111,inset 3px 3px 0 #fff48b}.name-col{width:54%}.score-col{width:20%}.action-col{width:26%}@media(max-width:500px){.welcome .entry-panel{width:95%}.name-col{width:49%}.score-col{width:21%}.action-col{width:30%}.welcome .entry-panel label{font-size:12px}.welcome-logo{width:110%;max-width:calc(100vw - 10px)}}@media(max-height:650px){.welcome-logo{width:min(700px,100%)}.welcome .entry-panel{padding:12px 18px;gap:6px}.entry-panel input{min-height:35px}.welcome-foot{font-size:9px}}@media(max-height:450px) and (min-width:600px){.welcome{grid-template-columns:1fr 1.3fr}.welcome-logo{grid-column:1;grid-row:1/3;width:100%;align-self:center}.welcome .entry-panel{width:100%;grid-row:1/5}.welcome-foot{grid-row:4}}.entry-panel input::placeholder{font-family:WordSortPixel,monospace}.entry-panel input:disabled{opacity:1;color:#6b6b65}

/* The active quiz has counters only; replay is available after completion. */
#quiz .topbar{justify-content:flex-end}
/* Standalone free-game navigation and brief page entrances. */
#quiz .topbar{justify-content:space-between}.home-button{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;padding:8px;background:#159fe5;color:#fffbed;border:3px solid #171c27;border-radius:0;box-shadow:3px 3px 0 #171c27;touch-action:manipulation}.home-button svg{width:100%;height:100%;fill:currentColor}.home-button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #171c27}#results{position:relative}#results>.home-button{position:absolute;left:0;top:0}.result-pupil{font-family:WordSortPixel,monospace;font-size:clamp(16px,3vw,28px);line-height:1.4;text-align:center;max-width:90%;overflow-wrap:anywhere;margin:8px 0}.welcome .entry-panel{gap:clamp(12px,2.5dvh,22px);padding:clamp(18px,3.5dvh,32px);margin:8px 0}.welcome .entry-panel input{min-height:46px}.page-enter{animation:pixelPageIn .22s steps(6,end) both}@keyframes pixelPageIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-height:520px){.home-button{width:30px;height:30px;padding:5px}.welcome .entry-panel{padding:14px 20px;gap:10px}.welcome .entry-panel input{min-height:38px}.result-pupil{font-size:16px;margin:4px 0}}@media(prefers-reduced-motion:reduce){.page-enter{animation:none}}
