@font-face{font-family:OracySans;src:url('media/OracySans.ttf') format('truetype');font-display:swap}
:root{--ink:#252044;--purple:#683bb8;--deep:#31205c;--blue:#2673b8;--paper:#f4f3f8;--line:#e0ddec;--ok:#176449;--danger:#a3344c;--top:78px;--bottom:82px}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overscroll-behavior:none}body{font-family:OracySans,Arial,sans-serif;color:var(--ink);background:var(--paper);overflow:hidden}button,select,a{touch-action:manipulation}button,select{font:inherit}button,a.download-link{min-height:48px;cursor:pointer;border-radius:12px;border:1px solid var(--line);padding:10px 19px;background:#fff;color:var(--ink);font-weight:700;text-decoration:none}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible,select:focus-visible{outline:4px solid #e4aa28;outline-offset:3px}button:disabled{opacity:.42;cursor:default}button[hidden],*[hidden]{display:none!important}.primary{background:var(--purple);border-color:var(--purple);color:white}.quiet{background:transparent;border-color:#ffffff50;color:white}.light{background:white;border-color:white;color:var(--deep)}.topbar{height:var(--top);padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--deep);color:white}.brand{background:none;color:white;border:0;padding:0;text-align:left;min-height:48px}.brand strong{font-family:Arial,sans-serif;display:block;font-size:29px;letter-spacing:-1px;font-weight:800}.brand strong span{font-weight:400;margin-left:3px;color:#e1d6f7}.brand small{display:block;font-size:10px;letter-spacing:2.4px;margin-top:4px}.top-actions{display:flex;align-items:center;gap:12px}#connection{font-size:13px;color:#ece4fa}#app{height:calc(100dvh - var(--top));height:calc(100vh - var(--top));overflow:auto} @supports(height:100dvh){#app{height:calc(100dvh - var(--top))}}
.library{max-width:1300px;margin:auto;padding:32px 36px 40px}.library-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}.eyebrow{font-size:13px;letter-spacing:1.8px;text-transform:uppercase;font-weight:700;color:var(--purple);margin:0 0 9px}h1{font-size:clamp(28px,3vw,42px);letter-spacing:-1.4px;line-height:1.16;margin:0 0 10px}p{line-height:1.6}.library-head p{margin:0;color:#686179}.library-tools{display:flex;gap:10px;flex-wrap:wrap}.lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.lesson-card{background:white;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 9px 25px #31205c08}.lesson-cover{width:100%;aspect-ratio:16/9;object-fit:contain;background:#fff;display:block;border-bottom:1px solid var(--line)}.lesson-info{padding:22px 24px}.lesson-info h2{font-size:25px;margin:6px 0 12px;letter-spacing:-.6px}.lesson-info .subtitle{font-size:15px;color:#645d76;margin:0 0 16px}.lesson-meta{display:flex;justify-content:space-between;font-size:12px;letter-spacing:1px;font-weight:700;color:var(--purple)}.lesson-buttons{display:flex;gap:10px;flex-wrap:wrap}.download-state{font-size:13px;color:#5c556f;min-height:22px;margin:12px 0 0}.download-state.ready{color:var(--ok)}.library-foot{display:flex;justify-content:space-between;align-items:center;gap:18px;font-size:13px;color:#686179;margin-top:25px}.library-foot a{color:var(--purple)}
.player{height:100%;display:grid;grid-template-rows:1fr var(--bottom);overflow:hidden}.stage{position:relative;min-height:0;overflow:hidden;display:flex;justify-content:center;align-items:center;background:#e9e6f1;padding:12px}.slide-image{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 4px 12px #29204414)}.player-nav{background:white;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px}.nav-left,.nav-right{display:flex;align-items:center;gap:10px}.slide-select{max-width:320px;font-size:14px;border:1px solid var(--line);padding:13px 10px;border-radius:10px;background:#faf9fc;color:var(--ink)}.position{font-size:14px;white-space:nowrap;min-width:56px;text-align:center}.activity-launch{background:var(--purple);border-color:var(--purple);color:white;min-width:180px}.lesson-label{font-size:12px;color:#655d78;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity{width:100%;height:100%;max-width:1500px;display:flex;flex-direction:column;padding:14px 30px;background:white;border-radius:14px}.activity-header{display:flex;justify-content:space-between;align-items:start;gap:15px}.activity h2{font-size:clamp(23px,2.7vw,38px);line-height:1.15;margin:3px 0 7px;color:var(--deep);letter-spacing:-.7px}.activity-instruction{font-size:clamp(14px,1.3vw,19px);margin:0;color:#666079}.activity-controls{display:flex;gap:8px}.activity-controls button{font-size:14px;white-space:nowrap}.activity-work{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:16px;padding:18px 0 8px}.targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;flex:1;min-height:0;max-height:65%}.target{border:2px dashed #b4aacb;border-radius:14px;background:#faf9fd;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-width:0;min-height:0;padding:8px;position:relative;color:var(--ink)}.target img{max-width:100%;max-height:calc(100% - 37px);height:100%;min-height:0;object-fit:contain;pointer-events:none}.target .target-text{font-size:clamp(15px,1.7vw,25px);font-weight:700;padding:12px;line-height:1.35}.target .slot-label{min-height:26px;display:block;font-size:clamp(13px,1.4vw,21px);font-weight:700;line-height:1.2}.target.correct{border-style:solid;border-color:var(--ok);background:#eff9f4}.target.incorrect{border-color:var(--danger);background:#fff0f3}.target.hovered{background:#e9e0fa;border-color:var(--purple)}.target-number{position:absolute;top:8px;left:9px;color:var(--purple);font-size:15px}.cards{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;min-height:55px}.drag-card{background:var(--deep);border:3px solid var(--deep);color:white;min-width:140px;font-size:clamp(17px,1.7vw,24px);min-height:57px;touch-action:none;user-select:none;-webkit-user-select:none}.drag-card.selected{background:var(--blue);border-color:#ffc746;box-shadow:0 0 0 3px #ffc746}.drag-card.placed{background:#eeebf5;color:#696075;border-color:#e4deee;font-size:16px}.drag-ghost{position:fixed;z-index:10000;pointer-events:none;transform:none;box-shadow:0 8px 20px #30204655;opacity:.95;margin:0}.activity-feedback{font-size:clamp(15px,1.3vw,21px);text-align:center;min-height:30px;margin:0;color:var(--purple);font-weight:700}.choice-layout{display:flex;align-items:center;gap:28px;min-height:0;height:100%}.choice-scene{width:45%;height:100%;object-fit:contain}.choice-options{display:grid;gap:14px;flex:1}.choice-options button{font-size:clamp(17px,2vw,29px);min-height:74px;text-align:left;padding:15px 20px;border:2px solid var(--line)}.choice-options button.correct{border-color:var(--ok);background:#eff9f4}.choice-options button.incorrect{border-color:var(--danger);background:#fff0f3}.scene-order .targets{max-height:45%;grid-template-columns:repeat(3,minmax(0,1fr))}.scene-order .cards{flex-wrap:nowrap;height:40%;min-height:0}.scene-order .drag-card{height:100%;flex:1;min-width:0;background:white;max-width:29%;padding:7px}.scene-order .drag-card img{height:100%;width:100%;object-fit:contain;pointer-events:none}.scene-order .target img{max-height:calc(100% - 25px)}.scene-order .target .slot-label{font-size:16px}.toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);background:var(--deep);color:#fff;border-radius:13px;padding:16px 22px;max-width:90%;box-shadow:0 8px 30px #21153940;z-index:9999;font-size:15px}dialog{border:0;border-radius:20px;padding:32px;max-width:650px;width:calc(100% - 28px);max-height:90vh;color:var(--ink)}dialog::backdrop{background:#191029aa}.dialog-close{position:absolute;right:14px;top:14px;font-size:25px;border:0;padding:0;width:45px}dialog h2{font-size:28px;margin-right:28px}dialog h3{font-size:18px;margin-top:25px}.fine{font-size:13px;color:#716982}
@media(min-width:1600px){:root{--top:92px;--bottom:96px}button{min-height:56px;font-size:19px}.library{max-width:1450px;padding-top:48px}.lesson-info h2{font-size:30px}.activity{padding:25px 42px}.targets{gap:20px}.drag-card{min-height:66px}}
@media(max-height:650px) and (orientation:landscape){:root{--top:57px;--bottom:62px}.topbar{padding:6px 18px}.brand strong{font-size:23px}.brand small{font-size:8px}.top-actions button,button{min-height:42px;padding:8px 13px}.stage{padding:6px}.player-nav{padding:7px 12px}.activity{padding:9px 18px}.activity h2{font-size:24px}.activity-instruction{font-size:13px}.activity-work{gap:9px;padding:8px 0}.targets{gap:8px}.target{padding:4px}.target img{max-height:calc(100% - 24px)}.target .slot-label{min-height:20px;font-size:14px}.drag-card{min-height:40px;font-size:17px;min-width:100px}.cards{min-height:42px;gap:7px}.activity-feedback{font-size:14px;min-height:22px}.lesson-label{display:none}.slide-select{max-width:220px;padding:9px;font-size:12px}}
@media(max-width:700px){:root{--top:66px;--bottom:126px}.topbar{padding:8px 12px;gap:8px}.brand strong{font-size:23px}.brand small{font-size:7px;letter-spacing:1.9px}.top-actions{gap:6px}#connection{display:none}.top-actions button{padding:8px 10px;font-size:12px;min-height:43px}#help{display:none}.library{padding:22px 16px}.library-head{display:block}.library-tools{margin-top:18px}.lesson-grid{grid-template-columns:1fr}.library-foot{display:block}.lesson-info{padding:18px}.lesson-info h2{font-size:23px}.player-nav{flex-wrap:wrap;padding:8px 12px;gap:6px}.nav-left{width:100%}.nav-right{width:100%;justify-content:space-between}.slide-select{flex:1;max-width:100%;min-width:0}.lesson-label{display:none}.activity-launch{min-width:145px;font-size:14px}.stage{padding:5px}.activity{padding:10px}.activity-header{display:block}.activity-controls{margin-top:8px;justify-content:end}.activity-controls button{min-height:35px;padding:6px 10px;font-size:12px}.activity h2{font-size:24px}.activity-work{padding:10px 0;gap:9px}.targets{grid-template-columns:repeat(2,minmax(0,1fr));max-height:68%;gap:7px}.target{padding:4px}.target .slot-label{font-size:14px;min-height:20px}.target img{max-height:calc(100% - 23px)}.cards{gap:6px}.drag-card{font-size:16px;min-width:90px;min-height:44px;padding:6px 10px}.activity-feedback{font-size:14px;min-height:24px}.choice-layout{flex-direction:column;gap:12px}.choice-scene{width:100%;height:43%}.choice-options{width:100%;gap:9px}.choice-options button{min-height:50px;font-size:17px}.scene-order .targets{max-height:38%}.scene-order .drag-card{max-width:32%;padding:4px}.target .target-text{font-size:16px;padding:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.drag-ghost img{width:100%;height:100%;object-fit:contain;pointer-events:none}

.mission-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 25px}.mission-tabs [aria-pressed="true"]{background:var(--deep);color:white;border-color:var(--deep)}.lesson-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lesson-info{padding:19px}.lesson-info h2{font-size:23px}.lesson-info .subtitle{min-height:48px}.lesson-buttons button{font-size:14px;padding:9px 12px}.player-nav select{min-height:48px;max-width:220px;border:1px solid var(--line);border-radius:10px;background:#faf9fc;padding:8px;font-size:13px}.nav-right{flex-wrap:wrap}.nav-right .activity-launch{display:none}.nav-right #return-slide{display:inline-block;min-width:120px}.text-sequence .targets{grid-template-columns:repeat(2,minmax(0,1fr));max-height:55%;min-height:150px}.text-sequence .target{padding:18px 12px}.text-sequence .slot-label{font-size:clamp(14px,1.5vw,23px);line-height:1.35}.text-sequence .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.text-sequence .drag-card{font-size:clamp(13px,1.2vw,18px);min-width:0;line-height:1.4}.quote-prompt{font-size:clamp(18px,2vw,29px);color:var(--deep);font-weight:bold;margin:0 0 5px}.script-lines{padding-left:24px}.script-lines li{padding:8px}.script-lines strong{color:var(--purple)}.script-lines p{margin:4px 0 10px}.listen-controls{display:flex;gap:10px;margin:15px 0}#recording{display:block;width:100%;margin-top:20px}#track-select{display:block;max-width:100%;padding:12px;margin-top:8px}#slow-track[aria-pressed="true"]{background:var(--deep);color:white}
@media(max-width:1100px){.lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-nav{padding:8px 12px}.script-button{font-size:12px;padding:7px 10px}.player-nav select{max-width:175px}.nav-left,.nav-right{gap:6px}}
@media(max-width:700px){.lesson-grid{grid-template-columns:1fr}.lesson-info .subtitle{min-height:0}.player-nav select{max-width:160px}.nav-left .slide-select{max-width:none}.script-button{display:none}.text-sequence .cards{gap:5px}.text-sequence .drag-card{font-size:12px;padding:6px}.text-sequence .targets{min-height:120px}.text-sequence .slot-label{font-size:13px}.text-sequence .activity-work{overflow:auto}.mission-tabs button{padding:9px 12px;font-size:14px}}
@media(max-height:650px){.text-sequence .activity-work{overflow:auto;justify-content:flex-start}.text-sequence .targets{min-height:140px}.text-sequence .drag-card{min-height:40px;font-size:13px}.player-nav select{min-height:40px}.quote-prompt{font-size:18px}}

.player{grid-template-rows:minmax(0,1fr) auto}.player-nav{min-height:var(--bottom);flex-wrap:wrap}.nav-left{min-width:0}.nav-right{margin-left:auto}.nav-right #activity-picker{min-width:135px}.script-button{display:inline-block}
@media(max-width:700px){.nav-right #activity-picker{max-width:145px}.script-button{font-size:12px;min-height:40px}}

/* Listening controls stay in English and work with embedded recordings. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.recording-count{display:inline-block;margin-left:7px;padding:1px 8px;border-radius:20px;background:#ffffff26;font-size:13px;vertical-align:middle}
.listening-panel{max-width:820px;padding:30px 36px;max-height:94vh;max-height:94dvh;overscroll-behavior:contain}
.listening-panel h2{margin-top:0;margin-bottom:7px;color:var(--deep);font-size:clamp(26px,3vw,36px)}
.listen-intro{margin:0 35px 18px 0;color:#686179}
.listen-label{display:block;font-size:13px;font-weight:700;margin:14px 0 6px;color:var(--deep)}
.listening-panel .listen-select{display:block;width:100%;max-width:100%;min-height:51px;margin:0;padding:11px 14px;font-size:16px;border:1px solid var(--line);border-radius:11px;background:#faf9fd;color:var(--ink)}
#track-meta{margin:10px 0 16px;line-height:1.5}
.listening-player{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:18px 22px 14px}
.listening-panel .listen-controls{margin:0 0 18px;display:flex;gap:10px;flex-wrap:wrap}
.listen-controls button{min-height:54px;min-width:110px;font-size:17px}
#play-track{min-width:135px}
#track-seek{display:block;width:100%;height:26px;margin:0;accent-color:var(--purple);cursor:pointer;touch-action:manipulation}
#track-seek:disabled{cursor:default;opacity:.5}
#track-seek:focus-visible{outline:3px solid #e4aa28;outline-offset:4px;border-radius:4px}
.track-timing{display:flex;justify-content:space-between;gap:15px;font-size:13px;font-variant-numeric:tabular-nums;color:#686179}
#listening-status{margin:11px 0 0;min-height:25px;font-size:14px;color:var(--deep)}
.track-transcript{margin-top:20px;border:1px solid var(--line);border-radius:13px;background:white;overflow:hidden}
.track-transcript summary{cursor:pointer;padding:14px 18px;font-weight:700;color:var(--purple);min-height:50px}
.track-transcript summary:focus-visible{outline:3px solid #e4aa28;outline-offset:-4px}
#track-script{font-size:clamp(17px,1.8vw,23px);white-space:pre-line;line-height:1.65;margin:0;padding:0 20px 22px;overflow-wrap:anywhere}
.listen-offline-note{font-size:13px;line-height:1.5;color:#716982;margin:15px 0 0}
@media(max-width:700px){.listening-panel{padding:25px 18px 20px}.listening-player{padding:15px}.listen-controls button{font-size:15px;min-height:50px;min-width:85px;padding:9px 12px}#play-track{min-width:95px}.listening-panel .listen-controls{gap:7px}.listening-panel .listen-select{font-size:14px}.listen-intro{font-size:14px}.listening-panel h2{margin-right:35px}#track-script{padding:0 16px 18px}#help{display:inline-block}}
@media(max-height:650px){.listening-panel{padding-top:20px}.listening-panel h2{font-size:26px}.listen-intro{margin-bottom:10px}.listen-label{margin-top:10px}.listening-panel .listen-select{min-height:43px;padding:8px 12px}.listen-controls button{min-height:43px}.listening-panel .listen-controls{margin-bottom:10px}.listening-player{padding:12px 16px}.track-transcript{margin-top:13px}}

/* Page-specific activities and the five-game Mission ending. */
.nav-right #launch.activity-launch{display:inline-block;min-width:155px}.page-activity-list{display:grid;gap:12px;margin-top:18px}.page-activity-choice{text-align:left;padding:18px;display:flex;flex-direction:column;gap:6px;min-height:86px}.page-activity-choice strong{font-size:20px;color:var(--purple)}.page-activity-choice span{font-weight:400;color:#625b73;font-size:14px;line-height:1.5}
/* Anthologies game covers: original characters and a preview of each game. */
.game-hub{container:hub/size;width:100%;height:100%;max-width:1600px;display:flex;flex-direction:column;gap:16px;padding:20px 25px 14px;background:radial-gradient(ellipse at 5% 0%,#fff1c6 0,transparent 32%),radial-gradient(ellipse at 98% 100%,#e5dcff 0,transparent 38%),#fffaf2;border:2px solid #fff;border-radius:24px;min-height:0;overflow:hidden}
.game-hub-heading{position:relative;text-align:center;flex:none;padding:0 38px}.game-hub .eyebrow{font-size:12px;letter-spacing:1.5px;margin:0 0 7px;color:#755197}.game-hub h2{font-size:clamp(26px,3vw,43px);line-height:1.12;margin:0;color:#412263;letter-spacing:-1.3px}.game-hub-heading p:not(.eyebrow){font-size:clamp(13px,1.3vw,19px);margin:8px 0 0;color:#73607d;line-height:1.4}.hub-heading-star{position:absolute;right:5%;top:4px;font-size:46px;line-height:1;color:#edb532;transform:rotate(12deg)}
.game-hub-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:15px;align-items:stretch;padding:4px 1px 6px}
.game-hub-card{--cover:#eee0ff;--accent:#7244a5;--pale:#f8f0ff;position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;border:3px solid #fff;padding:0;border-radius:23px;min-width:0;min-height:0;background:#fff;color:#412263;text-align:center;overflow:hidden;box-shadow:0 5px 0 color-mix(in srgb,var(--accent) 40%,#ddd),0 9px 17px #48295412;isolation:isolate;transition:transform .18s,box-shadow .18s}
.game-hub-card-2{--cover:#ffe9a5;--accent:#956019;--pale:#fff5d9}.game-hub-card-3{--cover:#d3eeef;--accent:#287a82;--pale:#edfaf9}.game-hub-card-4{--cover:#dcebb6;--accent:#5b742d;--pale:#f3f9e7}.game-hub-card-5{--cover:#ffd9e6;--accent:#a24670;--pale:#fff0f6}
.game-hub-card:hover{filter:none}.game-hub-card:focus-visible{outline:5px solid #7040a0;outline-offset:2px}.game-card-number{position:absolute;top:11px;left:10px;width:29px;height:29px;border:2px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--accent);background:#ffffffce;z-index:4;box-shadow:0 2px 0 #58347413}.game-card-tag{position:absolute;right:11px;top:14px;color:var(--accent);font-size:10px;letter-spacing:1.5px;z-index:4;font-weight:800}
.cover-art{position:relative;display:block;flex:1;min-height:0;width:100%;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#ffffff8a 0,transparent 62%),var(--cover)}.cover-orbit{position:absolute;left:7%;top:22%;width:86%;height:72%;border:2px dashed #ffffffd9;border-radius:50%;transform:rotate(-15deg)}.cover-character{position:absolute;width:86%;height:87%;left:7%;bottom:0;object-fit:contain;object-position:center bottom;pointer-events:none;filter:drop-shadow(0 5px 0 #ffffffbc);transition:transform .2s;transform-origin:bottom center;user-select:none}.cover-game-hangman .cover-character{width:72%;left:3%;height:89%;bottom:5%}.cover-game-scramble .cover-character{width:94%;left:0;height:79%;bottom:6%}.cover-game-memory .cover-character{width:97%;left:1%;height:65%;bottom:5%}.cover-game-quiz .cover-character{width:70%;left:-3%;height:87%;bottom:1%}.cover-match .cover-character{width:91%;left:-5%;height:68%;bottom:3%}
.cover-spark{position:absolute;font-size:34px;line-height:1;color:#fff;z-index:2;pointer-events:none;text-shadow:0 2px 0 #b892d833}.cover-spark-one{left:8%;top:20%;transform:rotate(-15deg)}.cover-spark-two{right:9%;top:37%;color:var(--accent);font-size:25px}.cover-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#fff;right:18%;top:26%}.cover-bubble{position:absolute;right:10%;top:19%;padding:8px 10px;border:3px solid #fff;border-radius:14px 14px 14px 2px;background:#fff8d7;color:#683c87;font-size:clamp(21px,2.1vw,31px);line-height:1;font-weight:900;transform:rotate(9deg);z-index:3;box-shadow:0 3px 0 #76489418}.cover-bubble-star{color:#d29821;background:#fffdf0;right:9%;top:19%}
.cover-demo{position:absolute;display:flex;z-index:3;pointer-events:none}.cover-guess,.cover-build{bottom:8%;left:4%;width:92%;justify-content:center;gap:4px;transform:rotate(-4deg)}.cover-letter{display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid #fff;border-radius:7px;color:#5b3679;min-width:0;flex:1;max-width:37px;height:clamp(27px,3.1vw,42px);font-size:clamp(17px,1.9vw,28px);font-weight:800;box-shadow:0 4px 0 #b4a2c9;line-height:1}.cover-guess .cover-letter:nth-child(2){background:#ffd559;border-color:#ffe998;color:#724a16;transform:translateY(-6px) rotate(8deg)}.cover-build{transform:rotate(3deg);bottom:11%;padding-bottom:10px}.cover-build .cover-letter{color:#875714;box-shadow:0 4px 0 #cfad67}.cover-build .cover-letter:nth-child(2n){transform:translateY(-13px) rotate(-10deg);background:#fffcdf}.cover-build-line{position:absolute;left:8%;right:8%;bottom:-5px;border-bottom:3px dashed #a07834}
.cover-memory{right:5%;top:23%;width:66%;height:62%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;transform:rotate(9deg)}.cover-memory>span{border:3px solid #fff;border-radius:10px;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;box-shadow:0 3px 0 #20555a35;overflow:hidden}.cover-mini-back{background:#714b9c;color:#e5cdfc;font-size:clamp(20px,2.6vw,38px)}.cover-mini-picture{background:#fff}.cover-mini-picture img{width:100%;height:100%;min-height:0;object-fit:contain}.cover-mini-word{font-size:clamp(11px,1.05vw,16px);background:#f6ffe2;color:#557637;overflow-wrap:anywhere}.cover-memory .cover-mini-picture{transform:rotate(-8deg)}.cover-memory .cover-mini-word{transform:rotate(-6deg)}
.cover-match-demo{right:6%;top:25%;width:59%;height:64%;display:flex;flex-direction:column;align-items:center;gap:0;transform:rotate(7deg)}.cover-match-word{width:100%;border:3px solid white;border-radius:11px;padding:8px 4px;color:#59722c;background:#fcffe4;font-size:clamp(14px,1.35vw,21px);box-shadow:0 3px 0 #6586293d}.cover-match-demo svg{width:93%;height:34px;overflow:visible;flex-shrink:1}.cover-match-demo svg path{fill:none;stroke:#607d2c;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.cover-match-picture{height:55%;min-height:0;width:76%;border:3px solid #fff;border-radius:12px;background:#fff;position:relative;box-shadow:0 3px 0 #6586293d}.cover-match-picture img{width:100%;height:100%;object-fit:contain}.cover-match-picture i{position:absolute;right:-9px;bottom:-7px;width:27px;height:27px;border-radius:50%;background:#6a8b35;color:#fff;border:2px solid #fff;font-style:normal;font-size:18px;line-height:23px}
.cover-quiz{right:4%;bottom:13%;width:67%;flex-direction:column;gap:7px;transform:rotate(-6deg)}.cover-answer{position:relative;border:2px solid #fff;border-radius:9px;padding:6px 18px 6px 7px;color:#825577;background:#fff6fb;font-size:clamp(11px,1.12vw,17px);line-height:1.2;box-shadow:0 3px 0 #ae77943f}.cover-answer-right{color:#3b7049;background:#efffd9;border-color:#fff}.cover-answer i{position:absolute;right:-8px;top:-9px;border:2px solid #fff;border-radius:50%;width:26px;height:26px;line-height:22px;background:#5b9654;color:#fff;font-size:18px;font-style:normal}
.game-card-copy{flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;padding:15px 9px 13px;background:linear-gradient(#fff,var(--pale));z-index:4}.game-hub-card strong{font-size:clamp(18px,1.75vw,27px);line-height:1.14;letter-spacing:-.5px;color:#442360}.game-card-instruction{font-size:clamp(11px,1.02vw,15px);font-weight:400;line-height:1.35;min-height:2.7em;color:#76627d}.game-card-play{display:flex;align-items:center;justify-content:center;gap:13px;width:calc(100% - 9px);max-width:190px;font-size:clamp(13px,1.1vw,17px);background:#66418d;border-radius:11px;color:#fff;padding:8px 10px;line-height:1.2;box-shadow:0 3px 0 #432c62}.game-card-play b{font-size:21px;font-weight:400;line-height:1}
.game-hub-foot{text-align:center;font-size:12px;color:#866890;margin:0;line-height:1.3;flex:none}.game-hub-foot span{color:#daa52b;margin:0 10px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.game-hub-card:hover{transform:translateY(-4px);box-shadow:0 7px 0 color-mix(in srgb,var(--accent) 45%,#ddd),0 12px 19px #48295419}.game-hub-card:hover .cover-character{transform:scale(1.035)}}
@media(max-width:1100px){.game-hub{padding:15px 13px 10px;gap:12px}.game-hub-grid{gap:10px}.game-card-copy{padding:12px 6px 11px;gap:7px}.game-hub-card strong{font-size:20px}.game-card-tag{font-size:8px;right:8px;letter-spacing:1px}.game-card-number{width:25px;height:25px;left:8px;top:10px;font-size:13px}.game-card-instruction{font-size:12px}.game-card-play{font-size:13px;gap:8px}.game-hub-card{border-radius:18px}.hub-heading-star{font-size:32px;right:1%}}
@media(max-width:900px) and (orientation:portrait){.game-hub-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}.game-hub-card{grid-column:span 2}.game-hub-card:nth-child(4){grid-column:2/span 2}.game-card-copy{padding:9px 6px;gap:5px}.game-hub-card strong{font-size:19px}.game-card-instruction{display:none}.game-card-play{padding:7px;font-size:13px}.cover-character{height:91%}.game-hub-heading p:not(.eyebrow){font-size:13px}.game-hub .eyebrow{font-size:10px}.game-hub h2{font-size:28px}.cover-art{min-height:0}}
@media(max-width:480px) and (orientation:portrait){.game-hub{padding:10px 9px;gap:7px;border-radius:16px}.game-hub-heading{padding:0 4px}.game-hub .eyebrow{font-size:9px;letter-spacing:.7px;margin-bottom:5px}.game-hub h2{font-size:23px;letter-spacing:-.7px}.game-hub-heading p:not(.eyebrow){font-size:11px;margin-top:4px}.hub-heading-star{display:none}.game-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:4px}.game-hub-card{grid-column:auto;border-width:2px;border-radius:14px}.game-hub-card:nth-child(4){grid-column:auto}.game-hub-card:nth-child(5){grid-column:1/-1;width:calc(50% - 4px);justify-self:center}.game-card-copy{padding:6px 4px;gap:5px}.game-hub-card strong{font-size:16px;letter-spacing:-.4px}.game-card-play{padding:4px;font-size:11px;max-width:130px;box-shadow:0 2px 0 #432c62}.game-card-play b{font-size:15px}.game-card-number{width:19px;height:19px;font-size:10px;left:6px;top:6px;border-width:1px}.game-card-tag{top:9px;right:6px;font-size:7px}.cover-letter{height:23px;font-size:16px;border-radius:5px;max-width:27px}.cover-bubble{font-size:18px;padding:5px;border-width:2px;top:14%;right:9%;border-radius:9px 9px 9px 1px}.cover-memory{top:17%;height:73%;gap:4px;width:51%;right:10%}.cover-memory>span{border-width:2px;border-radius:6px}.cover-mini-word{font-size:9px}.cover-mini-back{font-size:19px}.cover-match-word{padding:3px;font-size:12px;border-width:2px;border-radius:6px}.cover-match-demo{top:13%;height:78%;width:48%}.cover-match-demo svg{height:19px}.cover-match-picture{border-width:2px;border-radius:6px}.cover-match-picture i{width:19px;height:19px;font-size:12px;line-height:15px}.cover-quiz{gap:4px;width:54%;bottom:10%;right:5%}.cover-answer{padding:3px 10px 3px 3px;font-size:9px;border-radius:5px;border-width:1px}.cover-answer i{width:19px;height:19px;line-height:15px;font-size:12px;right:-6px;top:-5px}.cover-spark{font-size:19px}.cover-spark-two{font-size:16px}.cover-build .cover-letter:nth-child(2n){transform:translateY(-6px) rotate(-8deg)}.cover-build-line{border-width:2px;bottom:0}.game-hub-foot{font-size:9px}.game-hub-foot span{margin:0 4px}}
@container hub (max-height:390px){.game-hub-heading p:not(.eyebrow),.game-hub-foot{display:none}.game-hub-heading{padding:0 25px}.game-hub h2{font-size:25px}.game-hub .eyebrow{font-size:9px;margin-bottom:3px}.game-card-instruction{display:none}.game-card-copy{padding:8px 5px;gap:6px}.game-hub-card strong{font-size:18px}.game-card-play{padding:6px;font-size:12px}.game-card-tag{font-size:8px;top:10px}.game-card-number{top:8px;width:22px;height:22px;font-size:12px}.cover-bubble{font-size:21px;padding:5px}.cover-memory{gap:4px}.cover-letter{height:26px;font-size:19px}.cover-answer{font-size:11px;padding:4px 10px 4px 4px}.cover-match-word{font-size:14px;padding:4px}}
@container hub (max-height:220px){.game-hub-heading .eyebrow,.game-card-tag,.cover-bubble,.cover-spark,.cover-dot{display:none}.game-hub h2{font-size:20px}.game-hub-grid{gap:7px}.game-hub-card strong{font-size:13px;line-height:1.1}.game-card-copy{padding:5px 3px;gap:4px}.game-card-play{padding:4px;font-size:10px;gap:4px}.game-card-play b{font-size:13px}.game-card-number{left:4px;top:4px;width:17px;height:17px;font-size:9px;border-width:1px}.cover-letter{height:19px;font-size:13px;border-width:1px}.cover-memory{top:5%;height:90%;width:49%;right:6%;gap:3px}.cover-mini-back{font-size:13px}.cover-mini-word{font-size:7px}.cover-memory>span{border-width:1px;border-radius:4px}.cover-quiz{gap:2px;bottom:8%;width:56%}.cover-answer{font-size:7px;padding:2px 6px 2px 2px;border-width:1px;border-radius:4px}.cover-answer i{width:15px;height:15px;font-size:10px;line-height:11px;right:-5px;top:-4px}.cover-match-demo{top:2%;height:95%;width:49%}.cover-match-word{font-size:9px;padding:2px;border-width:1px}.cover-match-demo svg{height:15px}.cover-match-picture{border-width:1px}.cover-match-picture i{width:17px;height:17px;line-height:13px;font-size:10px}.cover-build .cover-letter:nth-child(2n){transform:translateY(-4px)}.cover-build-line{bottom:1px;border-width:1px}}
@media(max-height:650px) and (orientation:landscape){.game-hub{padding:9px 13px;gap:8px}.game-hub-heading p:not(.eyebrow){margin-top:4px}.game-hub h2{font-size:28px}.game-card-instruction{display:none}.game-card-copy{padding:9px 6px;gap:6px}.game-hub-card strong{font-size:19px}.game-card-play{padding:6px;font-size:12px}.game-hub-foot{font-size:10px}}
@media(max-height:450px) and (orientation:landscape){.game-hub{padding:6px 8px;gap:5px}.game-hub-heading p:not(.eyebrow),.game-hub-foot{display:none}.game-hub h2{font-size:21px}.game-hub .eyebrow{display:none}.game-hub-grid{gap:7px}.game-hub-card{border-width:2px;border-radius:13px}.game-card-copy{padding:5px 3px;gap:4px}.game-hub-card strong{font-size:14px}.game-card-play{padding:4px;font-size:10px}.game-card-play b{font-size:13px}.game-card-instruction{display:none}}
@media(prefers-reduced-motion:reduce){.game-hub-card,.cover-character{transition:none}}
/* Open the complete Anthologies as a book, from the teacher library. */
.book-entry{display:flex;align-items:center;gap:26px;padding:21px 27px;margin:0 0 29px;background:linear-gradient(115deg,#fff3cc,#f3e9ff);border:2px solid #fff;border-radius:23px;box-shadow:0 4px 14px #5238740c;position:relative;overflow:hidden}.book-entry-art{width:94px;height:118px;position:relative;flex:none;perspective:700px}.book-entry-art img{position:relative;width:82px;height:115px;object-fit:contain;transform:rotate(-9deg);border-radius:2px 6px 6px 2px;box-shadow:3px 5px 0 #efede9,5px 8px 0 #c8bfb5,8px 10px 15px #60437830}.book-entry-pages{position:absolute;background:#fffdf6;border:1px solid #dbc8ad;width:81px;height:109px;left:11px;top:1px;transform:rotate(6deg);border-radius:3px 8px 8px 3px}.book-entry-star{position:absolute;font-size:33px;right:-12px;top:-12px;color:#dfa71f}.book-entry-copy{flex:1;min-width:0}.book-entry h2{font-size:clamp(22px,2vw,29px);line-height:1.15;letter-spacing:-.6px;color:#4c2c6c;margin:4px 0 7px}.book-entry .eyebrow{font-size:10px;letter-spacing:1.5px;margin:0}.book-entry-copy p:not(.eyebrow){margin:0;font-size:14px;color:#74627c;line-height:1.45}.book-entry-copy .book-entry-status{font-size:11px!important;margin-top:8px!important}.book-entry-status.ready{color:var(--ok)!important}.book-entry-actions{display:flex;gap:9px;flex-direction:column}.book-entry-actions button{white-space:nowrap;font-size:15px;min-height:47px}
@media(max-width:700px){.book-entry{padding:16px;gap:17px;flex-wrap:wrap}.book-entry-art{width:65px;height:87px}.book-entry-art img{width:61px;height:86px}.book-entry-pages{width:58px;height:80px}.book-entry-star{font-size:26px;right:-13px}.book-entry h2{font-size:21px}.book-entry-copy p:not(.eyebrow){font-size:12px}.book-entry .eyebrow{font-size:8px;letter-spacing:1px}.book-entry-actions{width:100%;flex-direction:row;justify-content:center;flex-wrap:wrap}.book-entry-actions button{flex:1;font-size:13px;min-height:44px}.book-entry-copy{min-width:175px}}

/* Eight Mission games, including the three classroom activities. */
.game-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:13px}
.game-hub-card:nth-child(n){grid-column:auto;width:auto;justify-self:stretch}
.game-card-copy{padding:10px 9px 11px;gap:7px}.game-card-instruction{display:none}.game-hub-card strong{font-size:clamp(18px,1.6vw,25px)}.game-card-play{padding:7px 10px;max-width:200px}
.game-hub-card-6{--cover:#ffe1c8;--accent:#a65b32;--pale:#fff4e8}.game-hub-card-7{--cover:#d9eaff;--accent:#3c649f;--pale:#edf6ff}.game-hub-card-8{--cover:#efd8ff;--accent:#8750a0;--pale:#faf0ff}
.cover-game-missing .cover-character{width:80%;height:91%;left:-7%;bottom:0}.cover-game-bingo .cover-character{width:82%;height:73%;left:-4%;bottom:0}.cover-game-act .cover-character{width:76%;height:96%;left:8%;bottom:0;z-index:2}
.cover-missing-demo,.cover-bingo-demo{right:7%;top:23%;width:54%;height:67%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;transform:rotate(7deg)}.cover-missing-demo>span,.cover-bingo-demo>span{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;border:3px solid #fff;border-radius:9px;background:#fff;box-shadow:0 3px 0 #80533c2c}.cover-missing-demo img,.cover-bingo-demo img{width:100%;height:100%;min-height:0;object-fit:contain}.cover-missing-demo .cover-missing-slot{border:3px dashed #b77651;background:#fff3dd;font-size:clamp(22px,3vw,38px);color:#a6602c;line-height:1;transform:rotate(-6deg)}.cover-game-missing .cover-bubble{right:auto;left:8%;top:19%;font-size:24px;background:#fff7e7}
.cover-bingo-call{position:absolute;right:9%;top:21%;border:3px solid #fff;border-radius:11px;padding:5px 8px;color:#445f93;background:#fff4ad;font-weight:900;font-size:clamp(15px,1.5vw,23px);transform:rotate(-7deg);line-height:1;z-index:3;box-shadow:0 3px 0 #7189a632}.cover-bingo-demo{top:36%;height:53%;transform:rotate(-4deg)}.cover-bingo-demo i{position:absolute;right:-5px;bottom:-5px;width:24px;height:24px;border-radius:50%;background:#548a58;border:2px solid #fff;color:#fff;font-size:16px;font-style:normal;line-height:20px;text-align:center;box-shadow:0 2px 0 #365b2933}
.cover-curtain{position:absolute;top:0;height:95%;width:19%;z-index:1;background:repeating-linear-gradient(90deg,#a967b2 0,#a967b2 12px,#bb80c3 12px,#bb80c3 24px);box-shadow:inset 0 -4px 0 #7942893d}.cover-curtain-left{left:0;border-radius:0 0 85% 0;transform:rotate(4deg);transform-origin:top left}.cover-curtain-right{right:0;border-radius:0 0 0 85%;transform:rotate(-4deg);transform-origin:top right}.cover-act-demo{left:10%;right:10%;bottom:8%;padding:6px 7px;background:#fff8d7;border:3px solid #fff;border-radius:10px;align-items:center;justify-content:center;gap:8px;box-shadow:0 3px 0 #865d9f40;transform:rotate(-4deg);font-size:clamp(12px,1.2vw,18px);color:#74418d;line-height:1}.cover-act-demo b{font-size:20px;color:#b37b2d}.cover-game-act .cover-bubble{font-size:25px;padding:5px 9px;right:15%;top:24%}
@media(min-width:1600px) and (min-height:850px){.game-hub-grid{gap:18px}.game-card-copy{padding:13px;gap:8px}.game-hub-card strong{font-size:27px}.game-card-play{font-size:17px;padding:9px 12px}}
@media(max-width:900px) and (orientation:portrait){.game-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:9px}.game-hub-card:nth-child(n){grid-column:auto;width:auto;justify-self:stretch}.game-card-copy{padding:6px 5px;gap:5px}.game-hub-card strong{font-size:17px}.game-card-play{padding:4px 7px;font-size:11px;max-width:170px}.game-card-play b{font-size:16px}.game-card-number{width:23px;height:23px;font-size:12px;top:7px}.game-card-tag{top:11px;font-size:8px}.cover-bubble{font-size:18px;padding:4px 7px}.cover-quiz{gap:4px}.cover-answer{padding:3px 12px 3px 5px;font-size:10px}.cover-letter{height:25px;font-size:17px}.cover-memory{gap:4px}.cover-mini-word{font-size:10px}.cover-mini-back{font-size:22px}.cover-match-word{font-size:13px;padding:3px}.cover-match-demo svg{height:18px}.cover-missing-demo,.cover-bingo-demo{gap:4px;top:16%;height:78%;width:48%}.cover-missing-demo>span,.cover-bingo-demo>span{border-width:2px;border-radius:6px}.cover-missing-demo .cover-missing-slot{font-size:22px;border-width:2px}.cover-bingo-call{font-size:14px;top:13%;padding:3px 6px;border-width:2px}.cover-bingo-demo{top:38%;height:56%}.cover-bingo-demo i{width:18px;height:18px;font-size:12px;line-height:14px}.cover-act-demo{padding:4px;font-size:11px;gap:5px;border-width:2px}.cover-game-act .cover-bubble,.cover-game-missing .cover-bubble{font-size:19px;padding:4px 7px}}
@media(max-width:480px) and (orientation:portrait){.game-hub-grid{gap:8px}.game-hub-card{flex-direction:row}.game-hub-card .cover-art{height:100%;width:47%;flex:0 0 47%}.game-hub-card .game-card-copy{width:53%;flex:1;justify-content:center;padding:6px 3px;gap:8px}.game-hub-card strong{font-size:13px;line-height:1.15;letter-spacing:-.3px}.game-card-play{font-size:9px;padding:5px 3px;width:95%;gap:4px;border-radius:7px;line-height:1.15}.game-card-play b{font-size:13px}.game-card-tag{display:none}.game-card-number{width:16px;height:16px;left:4px;top:4px;font-size:8px;border-width:1px}.game-hub-heading p:not(.eyebrow){display:none}.game-hub h2{font-size:22px}.game-hub-foot{font-size:8px}.cover-letter{height:17px;font-size:11px;border-radius:4px;border-width:1px;box-shadow:0 2px 0 #b4a2c9}.cover-guess,.cover-build{gap:2px;width:96%;left:2%;bottom:10%}.cover-build .cover-letter:nth-child(2n){transform:translateY(-5px) rotate(-8deg)}.cover-build-line{bottom:0}.cover-bubble{font-size:13px;padding:3px;border-width:1px;right:6%;top:20%;border-radius:6px}.cover-game-missing .cover-bubble,.cover-game-act .cover-bubble{font-size:14px;padding:3px;border-width:1px}.cover-spark,.cover-spark-two{font-size:15px}.cover-dot{width:5px;height:5px}.cover-memory{width:63%;right:5%;gap:3px;top:26%;height:62%}.cover-memory>span{border-width:1px;border-radius:4px}.cover-mini-back{font-size:15px}.cover-mini-word{font-size:7px}.cover-match-demo{width:61%;right:5%;height:70%;top:20%}.cover-match-word{font-size:9px;padding:3px;border-width:1px;border-radius:5px}.cover-match-demo svg{height:15px}.cover-match-picture{border-width:1px;border-radius:5px}.cover-match-picture i{width:15px;height:15px;line-height:11px;font-size:9px}.cover-quiz{width:70%;right:4%;gap:3px}.cover-answer{font-size:7px;padding:3px 4px 3px 2px;border-width:1px;border-radius:4px}.cover-answer i{width:14px;height:14px;font-size:9px;line-height:10px;border-width:2px}.cover-missing-demo,.cover-bingo-demo{width:64%;right:4%;height:62%;top:29%;gap:3px}.cover-missing-demo>span,.cover-bingo-demo>span{border-width:1px;border-radius:4px}.cover-missing-demo .cover-missing-slot{font-size:16px;border-width:1px}.cover-bingo-call{font-size:10px;right:5%;top:20%;padding:3px;border-width:1px;border-radius:5px}.cover-bingo-demo{top:39%;height:54%}.cover-bingo-demo i{width:13px;height:13px;line-height:9px;font-size:8px;right:-3px;bottom:-3px}.cover-act-demo{left:3%;right:3%;font-size:7px;gap:3px;padding:4px 2px;border-width:1px;border-radius:5px}.cover-act-demo b{font-size:10px}.cover-curtain{width:17%}}
@container hub (max-height:390px){.game-hub-card strong{font-size:16px}.game-card-copy{padding:6px 5px;gap:5px}.game-card-play{font-size:11px;padding:5px;max-width:150px}.cover-missing-demo,.cover-bingo-demo{gap:3px}.cover-missing-demo>span,.cover-bingo-demo>span{border-width:2px;border-radius:5px}.cover-missing-demo .cover-missing-slot{font-size:21px;border-width:2px}.cover-bingo-call{font-size:13px;padding:3px 5px;border-width:2px}.cover-act-demo{font-size:10px;padding:4px;border-width:2px}.cover-game-act .cover-bubble,.cover-game-missing .cover-bubble{font-size:16px;padding:4px}}
@media(max-height:450px) and (orientation:landscape){.game-hub-card{flex-direction:row}.game-hub-card .cover-art{width:44%;height:100%;flex:0 0 44%}.game-card-copy{flex:1;width:56%;justify-content:center;padding:5px 3px;gap:5px}.game-hub-card strong{font-size:12px;letter-spacing:-.3px;line-height:1.1}.game-card-play{font-size:9px;padding:4px 3px;gap:3px;max-width:120px}.game-card-play b{font-size:12px}.game-card-number{font-size:8px;width:15px;height:15px;top:4px;left:4px;border-width:1px}.game-card-tag,.cover-bubble{display:none}.cover-letter{font-size:10px;height:16px;border-width:1px;border-radius:3px}.cover-guess,.cover-build{gap:2px}.cover-mini-word{font-size:7px}.cover-mini-back{font-size:14px}.cover-answer{font-size:7px;padding:2px 4px 2px 2px}.cover-act-demo{font-size:7px;gap:3px;padding:3px;border-width:1px}.cover-act-demo b{font-size:10px}.cover-bingo-call{font-size:9px;padding:3px;border-width:1px}.cover-bingo-demo i{width:13px;height:13px;line-height:9px;font-size:8px}.cover-match-word{font-size:8px;padding:2px;border-width:1px}.cover-match-demo svg{height:14px}.cover-missing-demo .cover-missing-slot{font-size:15px}}
/* Keep eight compact portrait covers readable after the container overrides. */
@media(max-width:480px) and (orientation:portrait){.game-hub-card strong{font-size:13px;line-height:1.15}.game-hub-card .game-card-copy{padding:5px 3px;gap:6px}}
@media(max-width:480px) and (max-height:650px) and (orientation:portrait){.game-hub{padding:7px;gap:5px}.game-hub-grid{gap:6px}.game-hub .eyebrow,.game-hub-foot{display:none}.game-hub h2{font-size:19px}.game-hub-card .game-card-copy{padding:3px 2px;gap:3px}.game-hub-card strong{font-size:12px;line-height:1.1}.game-card-play{font-size:8px;padding:3px 2px;gap:3px}.game-card-play b{font-size:11px}}

/* The header can wrap on phones without covering the lesson controls. */
body{display:grid;grid-template-rows:auto minmax(0,1fr);height:100vh}
@supports(height:100dvh){body{height:100dvh}}
.topbar{height:auto;min-height:var(--top);padding-top:max(12px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
#app{height:auto;min-height:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
.startup{max-width:640px;margin:40px auto;padding:24px}
.library-tools{max-width:340px}.library-tools .download-state{width:100%;margin:0}
dialog:not([open]){display:none}.dialog-shade{position:fixed;inset:0;background:#1c123bb3;z-index:9998}.dialog-fallback[open]{display:block;position:fixed;inset:0;margin:auto;z-index:9999;height:max-content;max-height:85vh;overflow:auto}
@media(max-width:600px){
 .topbar{flex-wrap:wrap;gap:8px;padding-bottom:10px}
 .brand{min-height:40px}.brand strong{font-size:25px}.brand small{font-size:8px}
 .top-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;gap:6px}
 .top-actions button{min-height:44px;font-size:12px;padding:8px 10px}
 #connection{margin-right:auto;font-size:11px}
 .library-head{align-items:start;flex-direction:column}.library-tools{max-width:100%;width:100%}
 .library{padding:20px 14px 28px}.lesson-info{padding:18px}
 .nav-left,.nav-right{min-width:0}.slide-select{min-width:0}
}
@media(max-width:360px){.topbar{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.top-actions{justify-content:space-between}#connection{display:none}}
@media(max-width:700px),(max-height:570px){
 .activity{min-height:0;padding:12px}
 .activity-header{flex-shrink:0;flex-wrap:wrap;gap:8px}
 .activity-work{overflow:auto;justify-content:flex-start;overscroll-behavior:contain}
 .activity-work .choice-layout{flex:none;height:auto;min-height:100%;align-items:flex-start}
 .activity-work .choice-scene{max-height:220px;object-fit:contain}
 .activity-work .targets{flex:none;max-height:none;grid-auto-rows:128px;min-height:128px}
 .activity-work .target{min-height:128px}
 .activity-work .target img{height:84px;max-height:84px}
 .activity-work .cards{flex-shrink:0}.scene-order .activity-work .cards{height:128px;min-height:128px}
}
@media(max-height:570px) and (orientation:landscape){
 .activity h2{font-size:22px}.activity-instruction{font-size:12px}
 .activity-controls button{min-height:40px;padding:7px 10px}
 .activity-work .choice-scene{max-height:180px}
 .choice-options button{min-height:48px;padding:10px;font-size:18px}
}

@media(max-width:700px){#help{display:inline-block}}
/* Wrapped navigation grows naturally instead of clipping controls. */
.player{grid-template-rows:minmax(0,1fr) auto}.player-nav{min-height:var(--bottom)}
