/* Pilot branding supplied by ELC: white, navy and violet. */
:root{--ink:#100c4d;--violet:#7856ff;--pale:#eee8ff;--line:#e2dbff;--muted:#686582;--paper:#fff}html{background:#faf9ff;color:var(--ink)}button,input,select,textarea{color:var(--ink)}a{color:#5134c8}button,.nav-link{background:white;border-color:var(--ink);box-shadow:0 2px 0 #100c4d;border-radius:10px}button:hover{background:#f0ebff}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--violet);outline-offset:4px}.primary{background:#7050e8;color:#fff;border-color:#6645df}.primary:hover{background:#5936ca;color:#fff}.ghost{background:transparent;box-shadow:none;border:0}.eyebrow{color:#6945d2}.topbar{background:#fff;border-bottom:2px solid var(--line);gap:20px;padding:14px 3%}.topbar nav{align-items:center}.topbar nav button,.nav-link{font-size:12px;white-space:nowrap}.nav-link{display:inline-block;padding:9px 10px;text-decoration:none;font-weight:700}.cotf-brand{display:block;position:relative;width:290px;height:85px;overflow:hidden;flex-shrink:0;background:#fff;border-radius:8px}.wordmark{border-left:1px solid var(--line);background:#100c4d;padding:0 7px;box-shadow:none}.inner-logo{width:145px;height:75px}.game-shell{max-width:1680px;padding:28px 3.5%}.chapter h1{font-size:clamp(27px,3.5vw,46px);color:var(--ink)}.status-pill{background:var(--pale);color:var(--ink)}.guide{background:white;border:2px solid #9277ff;box-shadow:0 3px 8px #6854ad12;border-radius:16px;padding:14px 20px}.guide-face{background:var(--pale);border:0;border-radius:12px}.guide p{color:var(--ink);line-height:1.5}.city-world{border:10px solid white;border-radius:24px;box-shadow:0 0 0 2px var(--line),0 3px 12px #100c4d1a}.map-scroll{padding:3px;border-radius:24px}.landmark{background:#201568e8;border-radius:30px;padding:6px 9px;font-weight:700}.map-marker>span{background:white;border:2px solid #5540b6;border-radius:18px;color:var(--ink)}.map-marker>b{background:#2f237d;box-shadow:0 0 0 2px #7860d8;border-color:#fff;color:#fff}.map-marker small{color:#635a80}.map-marker.mall:not(.available)>span{background:#eeebf8}.university>b,.mall.available>b{background:#fff6a8;color:#100c4d}.map-trail.open{stroke:#fff5aa}.map-trail.locked{stroke:#b3a6d8}.name-tag{background:#251469;border-color:#eae1ff}.chapter .eyebrow:after{content:'SESSION 01 · GETTING YOUR MESSAGE ACROSS';display:block;letter-spacing:1.3px;margin-top:6px;font-size:10px;color:#70669f}.controls,.map-bottom,footer{color:#625d7a}.title-screen{background:#faf9ff;color:var(--ink)}.title-world{opacity:.13;object-position:bottom;filter:saturate(.8)}.title-sky{background:linear-gradient(90deg,#fff 5%,#ffffffee 30%,#f5f1ff55),linear-gradient(0deg,#ede6ffdd,transparent 70%)}.title-meta{align-items:center;padding:14px 4%;color:#685799}.title-meta .cotf-brand{width:310px}.title-start{padding:6vh 6% 8vh;width:54%}.title-start h1{font-size:clamp(40px,5vw,72px);letter-spacing:-3px;margin:19px 0}.title-start p{color:#62577e;font-size:17px}.title-start .eyebrow{color:#6947d3}.title-start small{color:#6c6285}.title-start .ghost{color:#534581;padding:7px 0;font-size:13px;margin:10px 0}.title-emblem{top:19%;right:5%;width:40%;background:radial-gradient(circle,#25135bd9 0 52%,#b6a4ff22 53%,transparent 69%);border-radius:50%}.orbit{border-color:#a18aff;box-shadow:0 0 70px #b4a0ff80}.title-roo{right:15%;bottom:3%}.access-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:26px 0}.access-link{display:block;padding:19px 20px;border:2px solid #7050e8;border-radius:14px;box-shadow:0 4px 0 #5434ba;text-decoration:none;font:700 18px/1.4 Mission,Arial,sans-serif;letter-spacing:0}.access-link span{display:block;font:700 9px/1.4 monospace;letter-spacing:1px;margin-bottom:9px}.access-link b{float:right}.teacher-choice{background:#fff;color:var(--ink);border-color:#b8a9ef;box-shadow:0 4px 0 #d8cef9}.access-link:hover{transform:translateY(-2px)}.practice-entry{border-top:1px solid #dbd2ee;padding-top:4px}.practice-entry small{display:block;font-size:11px}.input-note{display:block;margin-top:22px;font-size:10px}.presents-screen{min-height:100svh;position:relative;background:white;display:grid;place-items:center;padding-bottom:80px}.presents-screen video{width:min(100%,1200px);max-height:72svh;object-fit:contain}.presents-caption{text-align:center;position:absolute;bottom:100px;left:0;width:100%;color:#100c4d}.presents-caption span{font:11px monospace;letter-spacing:3px;color:#7557d0}.presents-caption h1{font-size:clamp(19px,2.3vw,30px);margin:10px}.presents-caption p{font-size:13px;color:#8171a3}.intro-actions{position:absolute;bottom:24px;right:4%;display:flex;gap:10px}.intro-actions button{font-size:12px}.challenge,.journal,.modal,.name-card,.result-cards section,.practice-summary{background:#fff;border-color:#d2c5f7;color:var(--ink);box-shadow:0 4px 12px #100c4d12}.mini-guide,.audio-panel,.target-note,.email-checklist{background:#eee8ff;color:var(--ink)}.guide,.challenge,.modal,.journal,.brief-art,.checkpoint-art{border-radius:16px}.instruction,.journal-note,small{color:#68617e}.clock{background:#fff;border-color:#baaae8}.trail-check.active,.teacher-wait,.next-level-card{background:#f0eaff;border-color:#a58ae9;color:var(--ink)}.next-level-card{background:linear-gradient(120deg,#ece4ff,#f9f6ff)}input,select,textarea{border-color:#c1b4e1;background:#fff}.order-tray,.drop-slot{background:#f4f0ff;border-color:#b4a3de}.choices button span{background:#ece5fc}.choices button{box-shadow:0 2px 0 #dfd5f8;border-color:#cfc1ef}.feedback.correct{background:#e6f5ee;color:#194d37;border-color:#98cdb5}.feedback.retry{background:#fff2de;color:#724718}.release-code{background:#20145b;color:#fff}.release-code small{color:#ddd2ff}.teacher-table table{width:100%;font-size:13px;background:#fff}.teacher-table th{background:#f0eaff;color:#301e6b}.teacher-table td,.teacher-table th{border-color:#e7def6;padding:14px}.teacher-table meter{accent-color:#7050e8}.login-page{min-height:100svh;background:radial-gradient(ellipse at 85% 10%,#e9e0ff,transparent 55%),#faf9ff}.login-top{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1160px;margin:auto;padding:20px}.login-top>a:last-child{font-size:13px;text-decoration:none}.login-layout{max-width:1160px;margin:20px auto 50px;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}.login-story h1{font-size:clamp(36px,4.5vw,60px);line-height:1.05;margin:14px 0 24px;letter-spacing:-2px}.login-story>p{font-size:17px;color:#6b6186;max-width:410px}.login-illustration{position:relative;height:225px;border-radius:24px;background:linear-gradient(140deg,#ded2ff,#f2edff);overflow:hidden;margin-top:30px;max-width:440px}.login-illustration>img{width:100%;height:100%;object-fit:cover;opacity:.65}.login-illustration .roo{position:absolute;bottom:5px;left:calc(50% - 85px);width:180px;height:180px}.login-card{background:#fff;border:1px solid #e1d6f7;border-radius:24px;padding:32px;box-shadow:0 14px 50px #44237810}.role-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;background:#f0eaff;border-radius:12px;padding:5px;margin-bottom:28px}.role-tabs a{text-align:center;text-decoration:none;font-size:13px;font-weight:700;color:#635580;padding:11px;border-radius:8px}.role-tabs a.active{background:#fff;color:#20145b;box-shadow:0 2px 7px #32195912}.login-card h2{font-size:25px}.login-card p{font-size:14px;color:#6a5e83}.login-card label{font-size:13px}.login-card button{width:100%;margin-top:18px}.login-status{padding:12px;background:#f2edff;border-radius:9px;min-height:0}.login-status:empty{display:none}.activation-note{padding:15px;background:#f5f1ff;border:1px solid #ded2f8;border-radius:12px;font-size:13px;line-height:1.55}.password-row{display:flex;gap:8px;align-items:center}.password-row input{min-width:0}.password-row button{width:auto;margin:0;box-shadow:none;font-size:12px}.login-card details{margin-top:22px;font-size:12px;color:#675b80;line-height:1.6}.login-card summary{cursor:pointer}.login-card .subtle{font-size:11px}.connected-badge{display:inline-block;padding:6px 10px;background:#ebe4ff;border-radius:20px;color:#5736b7;font-size:11px;font-weight:700}.teacher-activation{max-width:650px;margin:50px auto;background:#fff;border:1px solid #ddcff8;padding:32px;border-radius:20px}.sync-badge{color:#6143b7}
@media(max-width:1150px){.topbar{gap:12px}.topbar .cotf-brand{width:230px;height:65px}.topbar nav{margin-left:0}.inner-logo{width:115px;height:60px}.title-start{width:57%}.access-choices{grid-template-columns:1fr}.access-link{padding:14px 18px}.access-link span{margin-bottom:4px}.title-emblem{right:1%}}
@media(max-width:800px){.title-start{width:100%;padding:300px 6% 40px;text-align:center}.title-start h1{font-size:44px;letter-spacing:-1.5px}.title-emblem{top:125px;width:270px;right:50%;transform:translateX(50%)}.title-meta{padding:10px 4%}.title-meta .cotf-brand{width:230px;height:70px}.access-choices{grid-template-columns:1fr 1fr;max-width:560px;margin:24px auto;text-align:left}.title-start .ghost{margin:12px auto}.login-layout{gap:25px}.login-story h1{font-size:38px}.login-card{padding:24px}.presents-caption{bottom:95px}.presents-screen video{margin-top:-90px}.topbar nav{justify-content:flex-start;gap:8px}.topbar .cotf-brand{margin-right:auto}.game-shell{padding:20px}.chapter .eyebrow:after{font-size:8px}}
@media(max-width:600px){.login-layout{grid-template-columns:1fr;margin:0 auto;gap:15px;padding:16px}.login-story h1{font-size:34px;margin-bottom:12px}.login-story>p{font-size:14px}.login-illustration{display:none}.login-top{padding:12px}.login-top .cotf-brand{width:235px;height:68px}.login-top>a:last-child{font-size:11px}.title-meta>span{font-size:8px;max-width:80px}.title-start{padding-top:285px}.title-start h1{font-size:36px}.title-start p{font-size:14px}.access-link{font-size:15px;padding:15px 12px}.access-link span{font-size:8px}.topbar .cotf-brand{width:210px;height:58px}.inner-logo{width:90px;height:46px}.topbar nav button{font-size:10px}.guide{padding:12px}.presents-caption h1{font-size:21px;padding:0 20px}.game-shell{padding:14px}.city-world{border-width:6px}.title-start .input-note{font-size:9px}.intro-actions{left:4%;right:4%;justify-content:center}.intro-actions button{font-size:11px}}
/* Reference-led pilot polish: light paired branding, storybook explorers. */
.title-screen{background:#f8f9ff;min-height:100svh;overflow:hidden}.title-meta{position:relative;z-index:3;height:125px;display:flex;align-items:center;justify-content:flex-start;gap:24px;background:white;border-bottom:1px solid #e6e6f0;padding:10px 5%}.title-meta>span{font-size:10px;max-width:100px;color:#5c5875}.title-emblem{position:absolute;top:12px;left:440px;right:auto;transform:none;width:235px;height:105px;border:0;border-left:1px solid #dedcea;border-radius:0;background:none;box-shadow:none;padding-left:25px;z-index:4;animation:none}.title-emblem img{width:100%;height:100%;object-fit:contain;filter:none;animation:none}.title-world{left:48%;top:125px;width:52%;height:calc(100% - 125px);object-fit:cover;opacity:1}.title-sky{background:linear-gradient(90deg,#f8f9ff 44%,#f8f9ff00 65%)}.title-start{position:relative;padding:55px 5% 40px;width:57%;z-index:2}.title-start h1{font-size:clamp(40px,4.5vw,66px);color:#171b50}.title-start p{color:#535775}.title-start .access-choices{max-width:560px}.inner-logo{object-fit:contain}.avatar{display:inline-block;background:none!important;transform-origin:center bottom}.avatar svg{width:100%;height:100%;overflow:hidden;display:block}.avatar.pose-idle svg{animation:explorer-breathe 3s ease-in-out infinite}.avatar.pose-walk svg{animation:explorer-walk .3s ease-in-out infinite alternate}.avatar.pose-celebrate svg{animation:explorer-cheer .8s ease-in-out infinite}.avatar.pose-dizzy svg{animation:explorer-dizzy .5s ease-in-out infinite}.avatar.pose-jump svg{animation:explorer-jump .85s ease-in-out}.avatar.pose-idle,.avatar.pose-walk,.avatar.pose-celebrate,.avatar.pose-dizzy,.avatar.pose-jump{background-position:0 0!important}
@keyframes explorer-breathe{50%{transform:translateY(-3px) scaleY(1.025)}}@keyframes explorer-walk{to{transform:translateY(-8px) rotate(5deg)}}@keyframes explorer-cheer{40%{transform:translateY(-15px) rotate(-5deg)}70%{transform:translateY(-5px) rotate(5deg)}}@keyframes explorer-dizzy{25%{transform:rotate(-9deg)}75%{transform:rotate(9deg)}}@keyframes explorer-jump{50%{transform:translateY(-80px) scaleY(1.06)}}
.character-screen{max-width:1140px;margin:auto;padding:24px}.character-heading{text-align:center;margin-bottom:25px}.character-heading h1{font-size:32px;margin:8px 0}.character-heading p{color:#646078}.character-book{display:grid;grid-template-columns:1.25fr 1fr;border:1px solid #d9d4e9;border-radius:28px;overflow:hidden;background:#fffdf5;box-shadow:0 18px 60px #25185b12}.character-grid{padding:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:linear-gradient(90deg,#fffefa,#f5f0e5)}.character-card{border:2px solid transparent;box-shadow:none;border-radius:18px;background:#fffaf0;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#24264e}.character-card .avatar{width:130px;height:145px}.character-card strong{font:700 13px system-ui}.character-card small{font:11px system-ui;color:#6b607e}.character-card.selected{border-color:#7050df;background:#eee8ff;box-shadow:0 3px 0 #7050df}.character-preview{border-left:1px solid #ded6c7;text-align:center;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center}.character-preview>.avatar{width:230px;height:255px}.character-preview h2{margin:10px 0;font-size:30px}.character-preview p{color:#605675}.character-preview>small{margin-top:14px;font-size:12px;color:#68637b}.activity-tag{display:inline-block;font:700 11px system-ui;padding:5px 8px;border-radius:12px;background:#eeebf7;color:#5b527b}.activity-tag.active{background:#e4f5ed;color:#245e43}.teacher-table progress{width:115px;accent-color:#7050df}.teacher-table td{vertical-align:top}.teacher-table button{font:12px system-ui;padding:8px;margin-top:8px}.student-detail{background:white;border:1px solid #ded7f1;border-radius:16px;padding:20px;margin:20px 0}.student-detail summary{font-weight:700;cursor:pointer}
@media(min-width:1000px) and (min-height:600px){.playing-screen .topbar{height:72px;min-height:72px;padding:5px 20px;gap:12px;flex-wrap:nowrap}.playing-screen .topbar .cotf-brand{width:205px;height:58px;flex-shrink:0}.playing-screen .inner-logo{width:105px;height:54px}.playing-screen .topbar nav{gap:4px;flex-wrap:wrap}.playing-screen .topbar nav button{font-size:10px;padding:6px}.playing-screen .mission-shell{height:calc(100dvh - 100px);max-width:1600px;padding:10px 18px;display:flex;flex-direction:column;gap:8px}.playing-screen .mission-hud{margin:0;min-height:45px}.playing-screen .mission-hud h1{font-size:22px;margin:4px 0}.playing-screen .phase-trail{margin:0;padding:6px}.playing-screen .mission-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 210px;gap:14px}.playing-screen .play-column{display:flex;flex-direction:column;min-height:0}.playing-screen .mini-guide{padding:9px 12px;font-size:13px;min-height:42px}.playing-screen .play-stage,.playing-screen .play-stage.challenge-active{flex:1;min-height:0;height:auto;margin:8px 0;padding:0;border-radius:16px}.playing-screen .challenge{position:absolute;top:8px;right:8px;bottom:8px;left:27%;width:auto;max-width:none;max-height:none;overflow:auto;margin:0;padding:18px;border-radius:14px;box-sizing:border-box}.playing-screen .challenge h2{font-size:21px;margin:10px 0;line-height:1.25}.playing-screen .challenge p{font-size:14px;margin:8px 0}.playing-screen .challenge button{font-size:13px;padding:10px}.playing-screen .challenge .choice-grid{gap:8px}.playing-screen .challenge input{padding:10px;font-size:16px}.playing-screen .challenge-active .actor{left:13%!important;bottom:4%!important}.playing-screen .challenge-active .actor .roo{width:120px;height:140px}.playing-screen .challenge-active .world-object.active{left:13%!important;bottom:46%}.playing-screen .controls{padding:5px 10px;font-size:10px;min-height:36px}.playing-screen .controls button{padding:7px 11px}.playing-screen .checkpoint-hint{font-size:10px;padding:4px}.playing-screen .journal{overflow:auto;min-height:0;padding:14px}.playing-screen footer{height:28px;padding:4px 18px;font-size:10px}.playing-screen footer button{padding:2px 6px;font-size:10px}}
@media(max-width:800px){.title-meta{height:105px}.title-meta>span{display:none}.title-emblem{left:auto;right:4%;top:14px;width:170px;height:78px;padding-left:15px}.title-meta .cotf-brand{width:210px}.title-start{padding:35px 6% 240px;width:100%;text-align:left}.title-world{left:0;top:auto;bottom:0;width:100%;height:230px}.title-sky{background:linear-gradient(#f8f9ff 62%,transparent 82%)}.title-start .access-choices{margin:20px 0}.title-start .ghost{margin-left:0}.character-book{grid-template-columns:1fr}.character-preview{border-left:0;border-top:1px solid #ded6c7}.character-grid{padding:15px}.character-card .avatar{width:90px;height:115px}.character-preview>.avatar{height:180px}.character-heading h1{font-size:26px}}
.reduced-motion .avatar svg{animation:none!important}@media(prefers-reduced-motion:reduce){.avatar svg{animation:none!important}}

.wordmark{background:white;border:0;border-left:1px solid #dedcea}.title-meta>span{margin-left:auto;max-width:160px}.title-meta .cotf-brand{width:290px}.title-emblem{left:calc(5% + 315px)}@media(max-width:800px){.title-emblem{left:auto;right:4%}.title-meta .cotf-brand{width:210px}}@media(max-width:440px){.title-meta .cotf-brand{width:180px}.title-emblem{width:140px}}
@media(min-width:1000px) and (min-height:600px){.playing-screen .trail-progress{margin:8px 5px 10px;padding-top:6px;flex-shrink:0}.playing-screen .journal{align-self:stretch;max-height:100%;box-sizing:border-box}}
/* v16: explicitly clipped expression sheets; no neighbouring artwork can bleed. */
.avatar{position:relative;image-rendering:auto!important;background:none!important;animation:none!important}.pet-frame{display:block;position:relative;overflow:hidden;isolation:isolate;width:100%;height:100%;aspect-ratio:1;clip-path:inset(0);transform-origin:50% 95%}.pet-sheet{position:absolute!important;display:block;left:0;top:0;width:200%!important;height:200%!important;max-width:none!important;object-fit:fill;pointer-events:none;user-select:none}.pose-jump .pet-sheet,.pose-surprised .pet-sheet{left:-100%}.pose-celebrate .pet-sheet,.pose-happy .pet-sheet{top:-100%}.pose-dizzy .pet-sheet,.pose-hurt .pet-sheet{top:-100%;left:-100%}.pose-idle .pet-frame,.pose-type .pet-frame{animation:pet-breathe 3s ease-in-out infinite}.pose-walk .pet-frame{animation:pet-step .28s ease-in-out infinite alternate}.pose-jump .pet-frame{animation:pet-leap .9s cubic-bezier(.2,.7,.3,1)}.pose-celebrate .pet-frame{animation:pet-cheer .65s ease-in-out 3}.pose-dizzy .pet-frame{animation:pet-wobble .45s ease-in-out 3}.pet-emote{position:absolute;right:5%;top:0;color:#6f45e2;font:bold 24px system-ui;pointer-events:none}.pose-jump .pet-emote:after{content:'!';animation:pet-pop .9s ease-out}.pose-celebrate .pet-emote:after{content:'✦';color:#e4ac19;animation:pet-pop .8s ease-out 3}.pose-dizzy .pet-emote:after{content:'↻';animation:pet-wobble .5s ease-in-out 3}.character-card .pet-frame{animation:none}.character-card>span:not(.avatar){font-size:11px;color:#615c7b}.character-preview>.avatar{width:235px;height:235px}.character-card .avatar{width:130px;height:130px}
@keyframes pet-breathe{50%{transform:translateY(-2px) scaleY(1.015)}}@keyframes pet-step{to{transform:translateY(-7px) rotate(4deg)}}@keyframes pet-leap{0%,100%{transform:translateY(0)}25%{transform:scaleY(.93)}55%{transform:translateY(-65px) rotate(-4deg)}80%{transform:translateY(-15px)}}@keyframes pet-cheer{50%{transform:translateY(-14px) rotate(5deg)}}@keyframes pet-wobble{25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}@keyframes pet-pop{from{opacity:0;transform:scale(.6)}40%{opacity:1;transform:translateY(-15px) scale(1.3)}to{opacity:0;transform:translateY(-35px)}}
.stage-tabs{display:flex;gap:18px;color:#77708f;font-size:11px;font-weight:700;margin:2px 0 8px}.stage-tabs span{padding:4px 0;border-bottom:2px solid transparent}.stage-tabs .current{color:#6240cc;border-color:#7856ff}.trail-progress:before{background:#d8ccef!important;height:2px!important}.trail-check{background:transparent!important;padding:0 6px!important;color:#69617c}.trail-check.current{color:#5130ad}.trail-check>span{background:#fff!important;border:1px solid #c7b9e7!important;color:#625780!important}.trail-check.current>span{background:#7150dd!important;color:white!important;border-color:#7150dd!important}.trail-check.done>span{background:#eae3fc!important;color:#5130ad!important}.trail-check .progress-roo{display:none}.teacher-release{padding:22px;margin:18px 0;border:1px solid #d8c9f5;border-radius:18px;background:#f6f2ff}.teacher-release small{display:block;margin-top:10px}.teacher-release h2{margin-top:8px}.brief-goals span b{background:#ede5ff!important;color:#5937b3}.answer-recap{font-size:13px;color:#6c6380;margin:6px 0}.challenge .feedback{margin:12px 0;padding:15px}.challenge .feedback p{line-height:1.45}.modal .journal{display:block;max-height:none;border:0;padding:8px}.modal .journal h2{font-size:26px}
@media(min-width:900px) and (min-height:540px){
.playing-screen #app{height:100dvh;display:grid;grid-template-rows:54px minmax(0,1fr) 22px;overflow:hidden}.playing-screen .topbar{height:54px;min-height:0;padding:3px 14px;gap:8px;flex-wrap:nowrap}.playing-screen .topbar .cotf-brand{width:180px;height:46px}.playing-screen .inner-logo{width:86px;height:44px}.playing-screen .topbar nav{margin-left:auto;gap:4px;flex-wrap:nowrap}.playing-screen .topbar nav button{font:600 10px system-ui;padding:6px;box-shadow:none}.playing-screen .mission-shell{height:auto!important;width:100%;max-width:none;min-height:0;display:flex;flex-direction:column;gap:4px;margin:0;padding:7px 14px;box-sizing:border-box}.playing-screen .mission-hud{min-height:34px;max-height:40px;margin:0;gap:12px}.playing-screen .mission-hud h1{font-size:18px;line-height:1.1;margin:3px 0}.playing-screen .mission-hud .eyebrow{font-size:9px;letter-spacing:1px}.playing-screen .clock{padding:4px 12px;min-width:95px;display:flex;align-items:center;gap:10px;border-width:1px}.playing-screen .clock strong{font-size:24px;line-height:1}.playing-screen .clock small{font-size:8px;max-width:55px}.playing-screen .coin-count{font-size:20px}.playing-screen .stage-tabs{margin:0;gap:20px;line-height:16px;min-height:22px}.playing-screen .trail-progress{margin:2px 3px 4px;padding:0;min-height:27px;gap:10px}.playing-screen .trail-check{flex-direction:row;font-size:10px}.playing-screen .trail-check>span{width:23px;height:23px}.playing-screen .trail-check b{font-size:10px;max-width:none}.playing-screen .mission-layout{display:block!important;flex:1;min-height:0}.playing-screen .play-column{height:100%;display:flex;flex-direction:column;min-height:0}.playing-screen .mini-guide{min-height:30px;padding:5px 10px;font-size:12px;border:1px solid #d2c3ec;border-radius:9px;gap:9px}.playing-screen .mini-guide button{padding:3px 8px}.playing-screen .play-stage,.playing-screen .play-stage.challenge-active{flex:1;min-height:0;height:auto;padding:0;margin:5px 0;border:2px solid #c8b8ee;border-radius:14px;overflow:hidden}.playing-screen .challenge{position:absolute;top:8px;bottom:8px;left:22%;right:8px;width:auto;max-width:none;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:14px 18px;margin:0;border:1px solid #d3c4ef;border-radius:12px;box-shadow:0 4px 20px #35206116}.playing-screen .challenge h2{font-size:clamp(18px,1.65vw,25px);line-height:1.25;margin:8px 0 12px}.playing-screen .challenge-top{min-height:20px;margin:0}.playing-screen .challenge-top .eyebrow{font-size:10px}.playing-screen .challenge-top button{padding:2px 8px;box-shadow:none}.playing-screen .challenge .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.playing-screen .choices button{min-height:44px;padding:9px 12px;font-size:15px;line-height:1.3;box-shadow:none;border-width:1px}.playing-screen .choices button span{margin-right:8px}.playing-screen .challenge p{font-size:14px;margin:7px 0}.playing-screen .challenge .feedback{padding:14px;margin:10px 0}.playing-screen .challenge .feedback p{font-size:16px;line-height:1.45}.playing-screen .challenge button.primary{padding:10px 16px;font-size:13px;margin-top:8px}.playing-screen .audio-panel{padding:8px 10px;margin:8px 0}.playing-screen .audio-buttons{display:flex;flex-wrap:wrap;gap:6px}.playing-screen .audio-panel button{padding:7px 10px}.playing-screen .match-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.playing-screen .match-slots>div{margin:0}.playing-screen .word-bank{gap:6px;margin:8px 0}.playing-screen .word-bank button{padding:7px 10px}.playing-screen .challenge .support-row{margin-top:8px}.playing-screen .challenge .support-row button{font-size:11px;padding:7px}.playing-screen .order-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px}.playing-screen .order-controls>.primary{grid-column:1/-1}.playing-screen .order-line{padding:6px;font-size:12px;margin:3px 0}.playing-screen .sentence-bank button{padding:7px;font-size:12px;margin:3px 0}.playing-screen .challenge-active .actor{left:10%!important;bottom:3%!important}.playing-screen .challenge-active .actor .roo{width:150px;height:150px}.playing-screen .challenge-active .world-object.active{left:10%!important;bottom:53%}.playing-screen .scene-waypoint{font-size:12px;padding:8px}.playing-screen .scene-waypoint span{font-size:9px}.playing-screen .controls{min-height:30px;padding:3px 8px;font-size:10px}.playing-screen .controls button{padding:6px 10px}.playing-screen .checkpoint-hint{display:none}.playing-screen footer{height:22px;min-height:0;padding:2px 14px;font-size:9px}.playing-screen footer button{font-size:9px;padding:1px 5px;box-shadow:none}.playing-screen .time-banner{padding:4px 8px;font-size:11px}
.briefing{display:grid;grid-template-columns:minmax(250px,.7fr) minmax(450px,1.3fr);gap:26px;padding:18px 3%;align-items:center;min-height:0}.brief-art{height:min(62dvh,510px);min-height:0!important}.brief-copy h1{font-size:clamp(28px,3vw,42px);line-height:1.15;margin:12px 0}.brief-copy>p{font-size:15px;margin:12px 0}.brief-goals{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.brief-goals span{font-size:12px;gap:6px}.brief-goals span b{width:23px;height:23px}.brief-copy .target-note{padding:10px 14px;margin:12px 0;font-size:13px}.brief-copy .teacher-wait{padding:14px;margin-top:12px}.teacher-wait p{font-size:13px;margin:8px 0}.teacher-wait .big{font-size:12px;padding:12px}.brief-art .roo{width:180px;height:180px}
}
@media(max-width:899px){.character-card .avatar{width:100px;height:100px}.playing-screen .mission-layout{display:block}.playing-screen .challenge .choices{grid-template-columns:repeat(2,minmax(0,1fr))}.playing-screen .stage-tabs{padding:4px}.playing-screen .challenge-active{padding-left:0}.playing-screen .challenge{max-height:none}.playing-screen .challenge-active .actor{display:none}}
.reduced-motion .pet-frame,.reduced-motion .pet-emote:after{animation:none!important}@media(prefers-reduced-motion:reduce){.pet-frame,.pet-emote:after{animation:none!important}}

@media(min-width:900px) and (min-height:540px){.playing-screen .trail-progress:before{top:13px!important}.playing-screen .controls{flex-direction:row;align-items:center;gap:8px}.playing-screen .controls>span{text-align:left}.playing-screen .guide-face .roo{width:70px;height:70px}}
/* Guest entry keeps the same character artwork and university palette. */
.guest-characters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;border:0;padding:12px 0}.guest-characters legend{font-weight:750}.guest-characters button{padding:8px 3px;min-width:0;display:grid;justify-items:center;gap:5px;border:2px solid #dcd9ee;background:#fff}.guest-characters button[aria-pressed=true]{border-color:#6254d8;background:#f1efff}.guest-characters .avatar{width:60px;height:68px;position:relative;display:block}.guest-characters small{font-size:10px}.guest-characters b{font-size:12px}.guest-lobby{text-align:center}.guest-lobby .avatar{position:relative;width:110px;height:130px;display:inline-block}.guest-lobby strong{color:#3b2a9b}.teacher-table button{font-size:11px;padding:5px 7px}dialog{max-width:540px;border:1px solid #d4cdec;border-radius:18px;padding:30px;color:#201950}dialog::backdrop{background:#110c3b99}dialog input{width:100%;font-family:monospace;margin:15px 0}

/* Classroom laptop refinement: one play surface, with a readable exercise drawer. */
.pet-frame{display:flex;align-items:flex-end;justify-content:center;clip-path:none}
.avatar .pet-art{display:block;width:100%;height:100%;overflow:hidden;animation:none!important;transform:none!important}
.character-book{background:#fff;border-color:#ded8ef;box-shadow:0 12px 35px #24145b0b}
.character-grid{background:#f5f3fc;align-content:center;gap:12px}
.character-card{background:#fff;border-color:#e4def2;padding:12px;transition:border-color .15s,background .15s}
.character-card:hover{background:#f3efff;border-color:#aa93ec}
.character-card.selected{background:#eee8ff;border-color:#7050df;box-shadow:0 0 0 1px #7050df}
.character-card .avatar{width:120px;height:120px}
.character-card strong{font-size:16px}.character-card small{font-size:12px}
.character-preview{border-color:#ded8ef;background:#fff}.character-preview p{max-width:28ch;line-height:1.5}
.guest-characters button{margin-top:0!important;border-radius:12px;box-shadow:none}
.guest-characters .avatar{width:64px;height:64px}.guest-characters button:focus-visible{outline-offset:2px}
.guest-lobby .avatar{width:140px;height:140px}.guest-lobby p{line-height:1.5;max-width:44ch;margin:12px auto}
.guest-lobby .eyebrow{display:block;margin-top:10px}.guest-lobby h2{font-size:26px;margin:12px 0}
@media(min-width:900px) and (min-height:540px){
 .playing-screen #app{grid-template-rows:48px minmax(0,1fr) 18px}
 .playing-screen .topbar{height:48px}.playing-screen .mission-shell{padding:5px 10px;gap:2px}
 .playing-screen .mission-hud{min-height:32px;max-height:none}.playing-screen .mission-hud h1{font-size:17px}
 .playing-screen .stage-tabs{min-height:20px;margin:0;gap:18px}
 .playing-screen .trail-progress{min-height:25px;margin:0 2px 2px}
 .playing-screen .mini-guide{min-height:28px;flex-shrink:0;padding:4px 9px;line-height:1.35;background:#f5f2fd}
 .playing-screen .mini-guide span{flex:1;min-width:0}.playing-screen .mini-guide b{font-size:11px}
 .playing-screen .play-stage,.playing-screen .play-stage.challenge-active{margin:4px 0;border-radius:12px}
 .playing-screen .challenge{left:auto;right:10px;top:10px;bottom:10px;width:clamp(590px,49%,820px);padding:14px 18px;overflow-x:hidden;overflow-wrap:anywhere;background:#fffffff5}
 .playing-screen .challenge h2{font-size:clamp(20px,1.45vw,27px);margin:8px 0;line-height:1.25}
 .playing-screen .challenge-active .actor{left:21%!important;bottom:4%!important}
 .playing-screen .challenge-active .actor .roo{width:clamp(150px,15vw,245px);height:clamp(150px,15vw,245px)}
 .playing-screen .challenge-active .world-object.active{left:21%!important;bottom:58%}
 .playing-screen .challenge-active .scene-waypoint{max-width:40%;font-size:13px}
 .playing-screen .challenge .feedback p{font-size:15px}.playing-screen .challenge .feedback{padding:12px}
 .playing-screen .controls{min-height:30px;flex-shrink:0;padding:2px 6px}
 .playing-screen .controls .touch-controls button{min-height:30px;min-width:38px}
 .playing-screen footer{height:18px;font-size:9px;padding:0 10px}
 .character-screen{max-width:1200px;padding:14px 24px}.character-heading{margin-bottom:14px}
 .character-heading h1{font-size:28px;margin:6px 0}.character-heading p{margin:8px 0}
 .character-grid{padding:18px}.character-preview{padding:18px}.character-preview>.avatar{width:200px;height:200px}
}
@media(min-width:900px) and (max-width:1199px){.playing-screen .challenge{width:60%;padding:12px}.playing-screen .challenge-active .actor{left:16%!important}.playing-screen .challenge-active .world-object.active{left:16%!important}.playing-screen .topbar .cotf-brand{width:140px}.playing-screen .topbar .inner-logo{width:72px}}
@media(max-width:600px){.character-book{grid-template-columns:1fr}.character-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px;gap:6px}.character-card{padding:8px 3px}.character-card .avatar{width:80px;height:80px}.character-preview{border-left:0;border-top:1px solid #ded8ef}.guest-characters{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Center the supplied intro without duplicate caption text. */
.presents-screen{height:100svh;min-height:100svh;padding:0;background:#fff}.presents-screen video{margin:0;width:min(100%,1200px);max-height:85svh;object-fit:contain}
.host-lobby{background:linear-gradient(135deg,#ece8ff,#f9f8ff);border:1px solid #d9ceef;border-radius:24px;padding:28px;margin:24px 0;color:#17104e;min-height:520px}.lobby-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.lobby-heading h2{font-size:30px;margin:8px 0 22px}.host-lobby-grid{display:grid;grid-template-columns:260px 1fr;gap:24px}.host-lobby aside{background:#20145b;color:white;border-radius:18px;padding:24px}.host-lobby aside small{color:#d9cef9}.join-address{overflow-wrap:anywhere}.lobby-code{font:bold clamp(24px,3vw,40px) monospace;letter-spacing:3px;margin:18px 0}.roster-grid{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:12px;align-content:start}.roster-card{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #e0d9ef;background:white;border-radius:16px;padding:10px;min-width:0}.roster-card .avatar{width:88px;height:88px}.roster-card strong{overflow-wrap:anywhere}.roster-card small{font-size:10px;margin-top:6px}.lobby-empty{grid-column:1/-1;align-self:center;text-align:center;padding:50px 15px}.lobby-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:24px 0 12px}.lobby-controls span{font-size:12px;flex-basis:100%}@media(max-width:950px){.host-lobby-grid{grid-template-columns:210px 1fr}.roster-grid{grid-template-columns:repeat(3,minmax(90px,1fr))}}@media(max-width:600px){.host-lobby{padding:16px}.host-lobby-grid{grid-template-columns:1fr}.lobby-heading{display:block}.roster-grid{grid-template-columns:repeat(3,1fr)}}
/* Riverside landing: independent artwork layers, semantic links and readable HTML copy. */
.landing-page{position:relative;isolation:isolate;min-height:100svh;overflow:hidden;background:#faf9ff;color:#100c4d}.landing-art{position:absolute;inset:0 0 0 43%;overflow:hidden;z-index:-1}.landing-riverside{width:100%;height:100%;object-fit:cover;object-position:55% center;animation:riverside-drift 18s ease-in-out infinite alternate}.landing-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#faf9ff 0%,#faf9ff80 5%,transparent 17%);pointer-events:none}.landing-explorers{position:absolute;inset:0;animation:explorer-drift 14s ease-in-out infinite alternate}.landing-animal{position:absolute;bottom:6%;width:auto;height:36%;object-fit:contain;filter:drop-shadow(0 9px 5px #382b3540);transform-origin:50% 95%;animation:explorer-breathe 4s ease-in-out var(--delay) infinite alternate}.animal-kangaroo{left:7%;height:49%;z-index:2}.animal-koala{left:28%;height:36%;z-index:4}.animal-platypus{left:44%;height:35%;z-index:3}.animal-devil{left:61%;height:40%;z-index:2}.animal-dingo{left:79%;height:29%;z-index:4}.landing-brands{height:145px;padding:22px 4.5%;display:flex;align-items:center;gap:22px}.landing-brands .cotf-brand{width:280px;flex-shrink:0}.landing-logo{width:190px;height:100px;object-fit:contain}.brand-divider{height:55px;width:1px;background:#cdc1f6}.landing-elc{margin-left:auto;align-self:flex-start;padding:22px 0;font:700 12px monospace;letter-spacing:1px}.landing-copy{width:48%;max-width:880px;padding:4vh 0 5vh 4.5%;position:relative;z-index:2}.landing-copy .eyebrow{color:#8252f4;font-size:12px;letter-spacing:2px}.landing-copy h1{font-size:clamp(38px,4.25vw,76px);line-height:1.09;letter-spacing:-2.5px;margin:23px 0}.landing-copy h1 em{font-style:normal;color:#7950f4}.landing-description{font-size:clamp(16px,1.4vw,23px);line-height:1.5;max-width:610px;color:#494078}.landing-tagline{font-size:clamp(14px,1.1vw,18px);line-height:1.5;color:#797099;margin:20px 0}.landing-actions{display:flex;gap:5px;margin:18px -15px 8px;max-width:680px}.landing-actions a{display:block;width:50%;transition:transform .2s;border-radius:22px}.landing-actions img{display:block;width:100%;height:auto}.landing-actions a:hover{transform:translateY(-3px)}.landing-actions a:focus-visible{outline:3px solid #160a55;outline-offset:3px}.landing-practice{display:flex;flex-wrap:wrap;gap:4px 12px}.landing-practice .ghost{color:#423178;font-size:13px;padding:7px 0;text-align:left}.landing-practice small{display:block;flex-basis:100%;font-size:11px;line-height:1.5;max-width:420px;color:#736987}.landing-input{display:block;font-size:10px;margin-top:18px;color:#736987}.landing-motion{font-size:10px;margin-top:6px;padding:4px 0;color:#514476}
@keyframes riverside-drift{from{transform:scale(1.03) translateX(-.5%)}to{transform:scale(1.07) translateX(.5%)}}@keyframes explorer-drift{from{transform:translateX(-3px)}to{transform:translateX(4px)}}@keyframes explorer-breathe{from{transform:translateY(0) rotate(-.5deg)}to{transform:translateY(-5px) rotate(.5deg)}}
.play-stage.phase-1 .scene-bg{animation:library-light 16s ease-in-out infinite alternate}.play-stage.phase-1 .floor-strip{background:linear-gradient(0deg,#cfa479aa,transparent);border-color:#c4a279}@keyframes library-light{from{filter:brightness(1)}to{filter:brightness(1.045)}}
@media(min-width:1000px) and (max-height:800px){.landing-brands{height:110px}.landing-copy{padding-top:2vh}.landing-copy h1{margin:18px 0;font-size:clamp(38px,4.1vw,62px)}.landing-tagline{margin:12px 0}.landing-actions{margin-top:10px}.landing-input{margin-top:10px}}
@media(max-width:900px){.landing-brands{height:115px;padding:14px 5%;gap:10px}.landing-brands .cotf-brand{width:235px}.landing-logo{width:145px}.landing-elc{display:none}.landing-copy{width:60%;padding:25px 0 35px 5%}.landing-art{left:48%}.landing-copy h1{font-size:42px}.landing-animal{height:27%}.animal-kangaroo{height:36%}.animal-dingo{display:none}}
@media(max-width:600px){.landing-page{padding-bottom:310px}.landing-brands{height:100px}.landing-brands .cotf-brand{width:200px;height:65px}.landing-logo{width:105px;height:75px}.brand-divider{height:40px}.landing-copy{width:100%;padding:20px 6%}.landing-copy h1{font-size:43px;letter-spacing:-1.8px}.landing-description{font-size:16px}.landing-art{inset:auto 0 0;height:320px}.landing-art:after{background:linear-gradient(#faf9ff,transparent 20%)}.landing-riverside{object-position:center 65%}.landing-animal{height:55%}.animal-kangaroo{height:70%;left:12%}.animal-koala{left:34%}.animal-platypus{left:53%}.animal-devil{left:72%}.landing-actions{max-width:480px}.landing-copy .eyebrow{font-size:10px}}
.reduced-motion .landing-riverside,.reduced-motion .landing-explorers,.reduced-motion .landing-animal,.reduced-motion .play-stage.phase-1 .scene-bg{animation:none!important}@media(prefers-reduced-motion:reduce){.landing-riverside,.landing-explorers,.landing-animal,.play-stage.phase-1 .scene-bg{animation:none!important}}

.copy-code-icon{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;min-width:36px;min-height:36px;padding:6px;border-radius:8px;letter-spacing:normal}.lobby-code .copy-code-icon{color:white;background:#ffffff18;border:1px solid #ffffff60}.copy-code-icon:focus-visible{outline:3px solid #a691ff;outline-offset:3px}

/* Scale the complete logo proportionally inside every brand slot. Only the source image white margins sit outside the slot. */
.cotf-brand img{position:absolute;width:120%;height:auto;max-width:none;left:-10%;top:50%;transform:translateY(-50%)}
