/* Shared light classroom workspace: flexible choices, teaching cards and elapsed time. */
.practice-bar{flex-wrap:wrap;flex:none}.practice-tools{align-items:center;flex-wrap:wrap}.race-clock{display:flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid #deeadf;border-radius:9px;background:#f5f9f5;color:#587568;font:500 16px/1.5 var(--sans);font-variant-numeric:tabular-nums;white-space:nowrap}.race-clock>span{font-size:21px}.game-view-switch{display:flex;padding:3px;border:1px solid #e3ece5;border-radius:10px;background:#f5f8f5;gap:2px}.game-view-switch button{font-size:13px;min-height:32px;padding:4px 10px;border-color:transparent;background:transparent;color:#6b8174}.game-view-switch button[aria-pressed=true]{background:#e6f0e8;border-color:#d4e4d8;color:#496b57}.result-time{font-size:23px!important;color:#5c7b69;font-variant-numeric:tabular-nums}
.question-panel:has(.pair-board){display:flex;flex-direction:column}.question-panel>.pair-board{flex:1;margin-top:22px;margin-bottom:18px;min-height:260px;width:100%;max-height:470px}.pair-column button[aria-pressed=true]{border-color:#84aa92;background:#edf6ef}.pair-column button{touch-action:manipulation}.pair-column svg{display:block;width:75px;height:75px;margin:auto}.pair-column ruby rt{font-size:15px;line-height:1.3}.pair-column .py{font-family:SchoolPinyin,var(--sans)}
.teaching-tiles{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;max-width:100%;height:100%}.teaching-tiles img{display:block;min-width:0;width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain;flex:0 1 auto;border-radius:8px}.memory-front.with-teaching-card{height:100%;width:100%;max-height:100%;padding:3px}.memory-card.is-open .memory-front.with-teaching-card{display:flex;align-items:center;justify-content:center}.memory-front.with-teaching-card .teaching-tiles{height:100%;max-height:220px}.memory-front.with-teaching-card.py{height:auto}.memory-card:has(.teaching-tiles){overflow:hidden}.memory-board{min-height:280px}.memory-card{min-height:0;padding:5px}.memory-back{pointer-events:none}
.listen-choice .teaching-tiles{height:clamp(88px,18vh,155px);max-height:100%;width:100%}.listen-choice .teaching-tiles img{height:100%;width:auto;max-width:100%}.listen-picture .teaching-tiles{height:150px;width:125px}.listen-picture .teaching-tiles img{height:100%;width:100%}.remember-card{overflow:hidden;min-height:0}.remember-card .teaching-tiles{height:100%;max-height:280px;width:100%}.remember-card .teaching-tiles img{height:100%;width:auto;max-width:100%}.missing-board{max-height:330px}.missing-answers .answer{background:#fff;border-bottom:1px solid #d9e6db}.missing-heading{flex:none}.question-panel:has(.missing-board){overflow:auto}
.bumper-arena{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;position:relative;min-height:270px;max-height:470px;width:min(100%,900px);margin:15px auto;isolation:isolate}.bumper-car{position:relative;border:1px solid #e5dcca;border-radius:30px;padding:20px 18px 30px;background:#fffcf4;min-width:0;transform-origin:50% 90%}.bumper-car-1{border-color:#d7e6da;background:#f4f9f4}.bumper-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:210px;align-content:center}.bumper-word{display:flex;align-items:center;justify-content:center;min-width:0;min-height:87px;padding:6px;border:1px solid #e6dfcf;background:#fffefa;border-radius:50%;aspect-ratio:1}.bumper-car-1 .bumper-word{border-color:#dce9de;background:#fcfffc}.bumper-word .hanzi{font:clamp(25px,3.8vw,46px)/1.2 SchoolKai,SchoolKaiExtra,KaiTi,serif;overflow-wrap:anywhere}.bumper-word[aria-pressed=true]{background:#e9f3eb!important;border-color:#8db59b!important;box-shadow:0 0 0 2px #bad6c344}.bumper-card-mode .bumper-word{aspect-ratio:auto;border-radius:12px;height:180px;padding:3px;min-height:110px}.bumper-card-mode .bumper-words{min-height:190px}.bumper-word .teaching-tiles{height:100%}.bumper-chassis{height:13px;position:absolute;left:14px;right:14px;bottom:-2px;border-radius:10px;background:#dfcba5;border:1px solid #cbb895}.bumper-car-1 .bumper-chassis{background:#bfd6c6;border-color:#a2bea9}.bumper-chassis i{position:absolute;top:8px;width:28px;height:17px;border-radius:5px;background:#8b9c96}.bumper-chassis i:first-child{left:20%}.bumper-chassis i:last-child{right:20%}.bumper-impact{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:92px;color:#c6ae76;opacity:0;z-index:3}.is-colliding .bumper-car-0{animation:bumper-left 1s ease-in-out}.is-colliding .bumper-car-1{animation:bumper-right 1s ease-in-out}.is-colliding .bumper-impact{animation:bumper-flash 1s ease-in-out}.is-colliding .bumper-word[aria-pressed=true]{background:#e0f0e2!important;border-color:#88ac8e!important}
@keyframes bumper-left{0%,100%{transform:translateX(0)}40%,55%{transform:translateX(9%) rotate(2deg)}70%{transform:translateX(-2%) rotate(-1deg)}}@keyframes bumper-right{0%,100%{transform:translateX(0)}40%,55%{transform:translateX(-9%) rotate(-2deg)}70%{transform:translateX(2%) rotate(1deg)}}@keyframes bumper-flash{0%,30%,85%,100%{opacity:0;transform:scale(.5)}45%,60%{opacity:1;transform:scale(1)}}
.order-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0 4px;flex:none}.order-heading h2{font:26px/1.5 SchoolKai,SchoolKaiExtra,KaiTi,serif}.order-heading button{font-size:14px;white-space:nowrap}.order-source{font-size:13px;color:#70867a;margin:0 0 12px}.order-bank,.order-answer{display:flex;flex-wrap:wrap;gap:12px;align-content:center;padding:18px;border:1px solid #e1e9df;border-radius:12px;background:#fafcf8;min-height:100px;overflow:auto;flex:none}.order-bank{flex:1;min-height:130px;margin-top:14px}.order-bank button,.order-answer>span{font:clamp(24px,3.8vh,34px)/1.8 SchoolKai,SchoolKaiExtra,KaiTi,serif;padding:14px 18px;background:#fff;border:1px solid #dfe9df;border-radius:10px;min-width:0}.order-bank button{border-bottom-width:1px}.order-bank ruby,.order-answer ruby{ruby-position:over;white-space:nowrap}.order-bank ruby rt,.order-answer ruby rt{font:400 12px/1.1 SchoolPinyin,var(--sans);text-align:center;letter-spacing:0}.order-bank button:disabled{opacity:.35}.order-answer:empty:before{content:' ';min-height:30px}.question-panel:has(.order-bank){overflow:auto}.question-panel:has(.writing-board){overflow:auto}.question-panel:has(.bumper-arena){overflow:auto}
@media(max-width:850px){.practice-tools{gap:6px}.game-view-switch button{padding:4px 7px}.practice-tools [data-exit]{min-height:36px;padding:6px 10px;font-size:13px}.bumper-arena{gap:20px}.bumper-car{padding:12px 8px 24px;border-radius:22px}.bumper-word{min-height:65px}.bumper-words{gap:7px;min-height:160px}.bumper-card-mode .bumper-word{height:150px}.bumper-card-mode .bumper-words{min-height:160px}}
@media(max-width:650px){.practice-bar{align-items:flex-start;gap:8px}.practice-tools{width:100%;justify-content:space-between;flex-wrap:nowrap}.game-view-switch button{font-size:12px;padding:3px 7px;min-height:30px}.race-clock{font-size:14px;padding:4px 7px;gap:3px}.race-clock>span{font-size:17px}.question-panel:has(.pair-board){padding:13px 12px}.question-panel>.pair-board{gap:40px;margin:15px auto;min-height:260px}.pair-column svg{width:55px;height:55px}.pair-column ruby rt{font-size:12px}.listen-choice .teaching-tiles{height:98px}.memory-front.with-teaching-card .teaching-tiles{max-height:150px}.memory-board{min-height:510px}.memory-card{min-height:120px}.remember-card .teaching-tiles{max-height:155px}.missing-board{min-height:310px;max-height:360px}.missing-choice-area{margin-top:12px}.bumper-arena{gap:12px;min-height:230px;margin:12px auto}.bumper-car{padding:10px 5px 22px;border-radius:18px}.bumper-words{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-height:180px}.bumper-word{min-height:54px;min-width:0;padding:4px}.bumper-word .hanzi{font-size:28px}.bumper-card-mode .bumper-words{grid-template-columns:1fr;min-height:300px}.bumper-card-mode .bumper-word{height:105px;min-height:90px;width:100%;border-radius:9px}.bumper-card-mode .bumper-word .teaching-tiles{height:100%;max-height:98px}.bumper-chassis{left:7px;right:7px}.bumper-chassis i{width:20px;height:13px}.bumper-impact{font-size:50px}.order-heading{margin-top:13px}.order-heading h2{font-size:22px}.order-bank,.order-answer{padding:10px;gap:9px}.order-bank button,.order-answer>span{font-size:24px;padding:10px 12px}.order-bank ruby rt,.order-answer ruby rt{font-size:10px}}
@media(prefers-reduced-motion:reduce){.is-colliding .bumper-car,.is-colliding .bumper-impact{animation:none}.is-colliding .bumper-impact{opacity:1}}
