/* Catalog and classroom refinements. */
input,summary{font:inherit}input:focus-visible,summary:focus-visible{outline:3px solid #bd8323;outline-offset:4px}
.catalog-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(200px,.6fr) auto;gap:16px;align-items:end;margin:22px 0 0;padding:20px;background:#fffefb;border:1px solid #dce8e0;border-radius:18px}
.catalog-tools label{color:#3c665c}.catalog-tools input{width:100%;min-height:50px;border:1px solid #bccfc5;border-radius:10px;padding:12px;color:#294d45;background:white}.catalog-tools select{border-radius:10px;border-color:#bccfc5}.catalog-tools button{min-height:50px}.search-count{font-size:15px;color:#466d60;margin:16px 0}.search-empty{grid-column:1/-1;text-align:center;background:#fff;padding:32px;border:1px dashed #b6cfc3;border-radius:18px}
.lesson-rule{margin:20px 0;background:#fffdf4;border:1px solid #e6dcae;border-radius:16px;padding:16px 20px;text-align:left;color:#456154}.lesson-rule summary{cursor:pointer;min-height:32px;font-weight:800;font-size:18px}.lesson-rule p{font-size:18px;color:#365e50;margin:12px 0 0;line-height:1.65}.lesson-rule .rule-example{border-top:1px solid #e7dfc4;padding-top:12px}.game-layout>.lesson-rule{grid-column:1;margin-bottom:0}
.game-context{grid-column:1;color:#476d60;font-size:16px;line-height:1.6;margin:0 0 14px;overflow-wrap:anywhere}.mistake-review{margin:28px auto 0;max-width:850px;text-align:left;background:#f4f8f1;border-radius:18px;padding:20px}.mistake-review summary{cursor:pointer;font-size:21px;color:#366958;font-weight:800}.mistake-review ol{padding-left:26px}.mistake-review li{padding:14px 4px;border-bottom:1px solid #d7e4d5;font-size:19px;overflow-wrap:anywhere}.mistake-review li:last-child{border:0}.mistake-review p{margin:6px 0;color:#3d6556;font-size:17px}
/* The revealed question needs a rectangular surface to remain readable. */
.game-stage .mystery-reveal{height:auto;min-height:250px;margin-bottom:24px}.game-stage .mystery-card{height:auto;min-height:240px;display:grid;width:min(680px,100%)}
.game-stage .mystery-card .mystery-back{position:relative;min-height:240px;clip-path:none!important;border-radius:22px!important;background:#fffef8!important;padding:56px 26px 26px!important;border:3px solid #e3d3f2;display:flex;align-items:center;justify-content:center}.game-stage .mystery-card .mystery-back>span{left:18px;top:12px}.game-stage .mystery-card .mystery-back h2{font-size:clamp(24px,2.5vw,36px);line-height:1.4;overflow-wrap:anywhere}.game-stage .mystery-card .mystery-front{z-index:1}
/* Mobile fullscreen should obey the same responsive wheel layout. */
@media(max-width:1100px){:fullscreen .game-stage[data-engine='wheel'] .wheel-layout{grid-template-columns:minmax(0,1fr);--wheel-size:min(65vw,60vh,540px);gap:32px}:fullscreen .game-stage[data-engine='wheel'] .wheel-question{max-width:480px}.catalog-tools{grid-template-columns:minmax(0,1fr) minmax(180px,.7fr)}.catalog-tools>button{grid-column:1/-1;justify-self:end}}
@media(max-width:550px){.catalog-tools{grid-template-columns:1fr;padding:16px;gap:12px}.catalog-tools>button{justify-self:stretch}.topic-heading{flex-wrap:wrap}.cards{grid-template-columns:1fr}.preview{height:180px}.activity h3{font-size:25px}.card-meta{justify-content:flex-start;gap:18px}.lesson-rule{padding:16px}.lesson-rule p{font-size:17px}.game-context{font-size:14px}.game-stage .mystery-card .mystery-back{padding:54px 16px 20px!important}.game-stage .mystery-reveal,.game-stage .mystery-card,.game-stage .mystery-card .mystery-back{min-height:220px}.game-stage[data-engine='choice']>.choices{grid-template-columns:1fr}.game-stage[data-engine='wheel'] .wheel-layout{--wheel-size:min(70vw,330px)}:fullscreen .game-stage[data-engine='wheel'] .wheel-layout{--wheel-size:min(65vw,50vh,330px)}.game-stage[data-engine='wheel'] .wheel-word{font-size:10px!important}.mistake-review{padding:16px}.result .choices button{width:100%}.sidebar-activities{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.mystery-card{animation:none!important;transform:rotateY(180deg)}.wheel.spinning{animation:none!important;transform:rotate(var(--to))!important}}
