@import url('/lesson-layout.css?v=bounded-header');
@import url('/living-skills/traffic-lights/traffic.css?v=topic-icons-motion-v11');
:root {
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.scene-result[hidden], .speech-message:empty { display:none; }
.breadcrumb [aria-current=page] { color:#103363; font-weight:800; }
.dialog-link { display:block; padding:12px 18px; margin:12px 0; border:1.5px solid var(--line); border-radius:14px; font-size:20px; font-weight:850; text-decoration:none; }
@font-face{font-family:Nunito;src:url('/living-skills/assets/NunitoSans.ttf') format('truetype');font-weight:200 1000;font-display:swap}
:root{font-family:Nunito,system-ui,sans-serif;color:#103363;background:#f3f9fd;font-synthesis:none;font-weight:600;--blue:#0562e9;--navy:#103363;--line:#bfddf6;--pale:#eaf6ff}
*{box-sizing:border-box}body{margin:0}button,input,select,a{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1.5px solid var(--line);background:#f6fbff;border-radius:14px;min-height:48px}a{color:var(--blue)}button:hover,a:hover{filter:brightness(.96)}button:active{transform:translateY(1px)}:focus-visible{outline:3px solid #76590b;outline-offset:4px}h1:focus{outline:none}button img,a img{pointer-events:none}.icon{width:28px;height:28px;flex-shrink:0;filter:invert(28%) sepia(99%) saturate(3234%) hue-rotate(211deg) brightness(94%) contrast(113%)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.skip-link{position:absolute;left:12px;top:-70px;z-index:30;padding:12px;background:white;border:2px solid var(--blue);border-radius:8px}.skip-link:focus{top:10px}.site-header{height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:4px 34px 4px 42px}.brand{display:flex;align-items:center;height:68px}.brand>img{height:68px;width:120px;object-fit:contain}.site-header nav{display:flex;gap:30px}.site-header button{display:flex;align-items:center;gap:10px;border:0;background:transparent;font-size:19px;padding:0 0 0 10px}.site-header .icon{width:34px;height:34px}
.lesson-layout{display:grid;grid-template-columns:minmax(210px,19.5%) minmax(0,1fr) minmax(144px,12.25%);min-height:calc(100vh - 77px)}.guide{border-right:1px solid #d6eafa;padding:32px 21px;display:flex;flex-direction:column;align-items:center;gap:22px}.guide-portrait{width:100%;height:366px;object-fit:contain;object-position:center bottom}.topic-picker{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:14px;width:100%;background:#f8fcff;min-height:74px;padding-left:16px;gap:8px}.topic-picker .icon{width:36px;height:36px}.topic-picker .topic-art{width:44px;height:44px;object-fit:contain;flex-shrink:0}.topic-picker select{width:100%;min-width:0;color:var(--navy);background:transparent;border:none;padding:15px 3px;font-size:17px;font-weight:750;height:72px;border-radius:12px;cursor:pointer}.browse-link{font-size:15px;text-underline-offset:4px}.workspace{padding:18px 20px 24px 28px;min-width:0}.breadcrumb{font-size:17px;margin:0 0 4px;line-height:1.6;color:var(--blue)}.breadcrumb a{text-decoration:none}.breadcrumb strong{color:var(--navy);font-weight:800}h1{font-size:clamp(30px,3vw,44px);font-weight:950;letter-spacing:-1px;line-height:1.2;margin:6px 0 8px}.lesson-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;gap:12px}.mode-tabs{display:flex;border:1.5px solid var(--line);border-radius:26px;overflow:hidden;min-height:44px;min-width:440px;max-width:490px;flex-shrink:1}.mode-tabs a{display:flex;align-items:center;justify-content:center;padding:6px 32px;text-decoration:none;font-size:20px;font-weight:850;flex:1;white-space:nowrap}.mode-tabs a[aria-current]{background:#0057e7;border-radius:26px;color:white}.situation-count{font-size:14px;color:#365b7e;white-space:nowrap}
.scene{width:100%;aspect-ratio:16/9;position:relative;border-radius:20px;overflow:hidden;isolation:isolate;background:#e1eff9;border:1px solid #dae8ec}.scene-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.scene-prompt{position:absolute;top:0;left:0;z-index:2;padding:14px 20px;margin:0;border-radius:0 0 20px 0;background:#f9fcf0ed;max-width:80%;color:#103363;font-size:clamp(19px,2vw,28px);line-height:1.25;font-weight:950;letter-spacing:-.4px}.alex-message{position:absolute;left:49.5%;top:15%;max-width:23%;margin:0;padding:17px 18px;border:1.5px solid #74aaff;border-radius:28px;background:#fffffff7;text-align:center;font-size:clamp(17px,1.6vw,25px);font-weight:950;line-height:1.25;z-index:2;box-shadow:0 3px 14px #10336310}.movable-marvin{position:absolute;top:14%;height:83%;width:24%;transform:translateX(-50%);margin:0;border:0;border-radius:15px;min-height:0;padding:0;background:transparent;transition:left .35s ease;touch-action:none;z-index:1;cursor:grab}.movable-marvin:hover{filter:none}.movable-marvin:active{transform:translateX(-50%)}.movable-marvin.dragging{cursor:grabbing;transition:none}.movable-marvin img{height:100%;width:100%;object-fit:contain;user-select:none}.scene-label{position:absolute;bottom:18px;left:18px;margin:0;padding:12px 18px;border-radius:14px;background:#ffffffed;font-size:21px;font-weight:850}.pretend-message{position:absolute;right:4%;top:26%;background:#fffffff5;border-radius:20px;padding:18px 22px;border:1.5px solid var(--line);max-width:40%;margin:0;font-size:17px;box-shadow:0 4px 20px #10336315}.pretend-message .icon{display:block;margin-bottom:8px}.pretend-message strong{display:block;font-size:22px;line-height:1.25;margin-top:5px}.scene-result{position:absolute;bottom:18px;right:18px;max-width:62%;display:flex;align-items:center;gap:12px;background:#fffffff5;border:1.5px solid #b1d4c7;border-radius:18px;padding:14px 18px;font-size:21px;font-weight:850;z-index:3;box-shadow:0 2px 14px #102e4910}.scene-result .icon{width:34px;height:34px}.scene-checklist{position:absolute;left:18px;bottom:18px;display:flex;gap:8px;flex-direction:column;z-index:3}.scene-checklist span{display:flex;align-items:center;gap:8px;background:#fffffff5;border-radius:10px;padding:8px 12px;font-size:16px}.scene-checklist .icon{width:22px;height:22px}
.choices{display:flex;justify-content:center;gap:26px;margin:24px auto 0;max-width:94%}.choices button{display:flex;align-items:center;justify-content:center;gap:25px;border:1.5px solid var(--line);border-radius:15px;min-height:74px;padding:4px 28px;background:#e9f5ff;font-size:clamp(18px,1.8vw,27px);font-weight:950;line-height:1.2;flex:1;max-width:335px}.choice-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#1476f3;flex-shrink:0}.choice-icon .icon{filter:invert(1);width:36px;height:36px}.choices button.selected{border:2px solid #0055d4;background:#dceeff}.choices button.example{border:2px dashed #0055d4}.many-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:100%}.many-choices button{font-size:22px;gap:14px;max-width:none}.many-choices .choice-icon{width:48px;height:48px}.many-choices .icon{width:27px;height:27px}.feedback{text-align:center;font-size:23px;font-weight:850;line-height:1.35;min-height:32px;margin:24px 0 18px}.lesson-footer{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap}.lesson-footer button{display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;background:transparent;color:#005ae6;font-size:20px;padding:5px 10px;font-weight:800}.lesson-footer button+button{border-left:1px solid var(--line);border-radius:0;padding-left:25px}.action-rail{border-left:1px solid #d6eafa;display:flex;align-items:center;flex-direction:column;padding:44px 30px}.action-rail button{display:flex;flex-direction:column;align-items:center;gap:10px;padding:30px 0 38px;min-width:118px;border:0;border-radius:0;background:transparent;font-size:26px;font-weight:950;width:100%;border-bottom:1px solid var(--line)}.action-rail button:last-child{border-bottom:0}.action-rail button>span{display:flex;align-items:center;justify-content:center;border:1.5px solid var(--line);border-radius:50%;width:96px;height:96px;background:#e7f4ff}.action-rail .icon{width:47px;height:47px}.action-rail .show-me>span{background:#1978f5;box-shadow:0 0 0 5px #bbd8ff;border:2px solid white}.action-rail .show-me .icon{filter:invert(1)}
body:has(#main.catalog){min-width:0}.catalog{max-width:1200px;margin:auto;padding:32px}.catalog>p:not(.breadcrumb){font-size:22px}.group-tabs{display:flex;gap:10px;margin:28px 0;flex-wrap:wrap}.group-tabs button{padding:12px 22px;font-size:20px;font-weight:800}.group-tabs button[aria-pressed=true]{background:var(--blue);color:white;border-color:var(--blue)}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.activity-tile{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:white;color:var(--navy);text-decoration:none;box-shadow:0 3px 14px #194b6910}.activity-tile>img{display:block;aspect-ratio:16/9;width:100%;height:auto;object-fit:contain}.activity-tile .topic-art{width:44px;height:44px;object-fit:contain;flex-shrink:0}.activity-tile .topic-label{min-width:0;overflow-wrap:anywhere}.activity-tile>span{display:flex;align-items:center;gap:12px;padding:17px 20px;font-size:21px;font-weight:850}.catalog-finish{margin-top:28px;display:flex;align-items:center;gap:10px;padding:12px 20px}
dialog{color:var(--navy);background:#f8fcff;border:2px solid var(--line);border-radius:26px;padding:32px;width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-shadow:0 12px 65px #15314830;text-align:center}dialog::backdrop{background:#18395466}dialog h2{font-size:30px;font-weight:950;line-height:1.2;margin:12px 0 18px}dialog p{font-size:20px;line-height:1.45}dialog>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;font-size:20px;font-weight:850;padding:12px 18px;margin:12px 0}.primary{background:#0864e6;color:white;border-color:#0864e6}.primary .icon{filter:invert(1)}.dialog-icon{width:58px;height:58px}dialog .setting{display:flex;align-items:center;gap:14px;font-size:21px;text-align:left;padding:12px 0;min-height:52px}input[type=checkbox]{width:26px;height:26px;accent-color:var(--blue);flex-shrink:0}dialog .small{font-size:17px;text-align:left;margin:0 0 16px 40px}details{text-align:left;border-top:1px solid var(--line);padding:14px 0}summary{cursor:pointer;min-height:48px;display:list-item;font-size:19px;font-weight:850}details p{font-size:17px}.speech-message{margin:0 auto;max-width:700px;padding:16px;text-align:center;background:#fff8df;border:1px solid #d8c692;border-radius:14px}.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after{transition:none!important;animation:none!important}
.scene{overflow:clip}.guide-portrait{object-fit:cover}.workspace{padding-top:16px}h1{letter-spacing:0;line-height:1.12;font-weight:900}.mode-tabs a:first-child{flex:1.27}.movable-marvin{top:11%;height:87%;width:34%}.movable-marvin[aria-hidden=true]{pointer-events:none;cursor:default}.space-scene .scene-art{transform:translate(-4%,-10%) scale(1.21);transform-origin:80% 0}.alex-message{max-width:20%}.choices button{max-width:324px}.many-choices button{max-width:none}.action-rail{padding-top:49px}.action-rail button{padding-bottom:42px}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media(min-width:1700px){.guide-portrait{height:420px}}
@media(max-width:1199px){.lesson-layout{grid-template-columns:180px minmax(0,1fr) 118px}.guide{padding:25px 12px;gap:16px}.guide-portrait{height:280px}.topic-picker{min-height:62px;padding-left:8px;gap:4px}.topic-picker .icon{width:26px;height:26px}.topic-picker select{font-size:14px;height:60px}.workspace{padding:18px 18px 24px}.breadcrumb{font-size:14px}h1{font-size:32px}.mode-tabs{min-width:320px}.mode-tabs a{font-size:17px;padding:8px 20px}.lesson-heading{margin-bottom:24px}.action-rail{padding:30px 12px}.action-rail button{min-width:0;font-size:21px;padding:26px 0}.action-rail button>span{height:76px;width:76px}.action-rail .icon{width:36px;height:36px}.choices{gap:14px;max-width:100%}.choices button{gap:12px;padding:6px 14px;font-size:20px}.choice-icon{width:50px;height:50px}.choice-icon .icon{width:28px;height:28px}.feedback{font-size:20px}.lesson-footer{gap:8px}.lesson-footer button{font-size:17px}.lesson-footer button+button{padding-left:14px}.scene-result{font-size:18px;padding:10px}.alex-message{padding:12px}.scene-label{font-size:17px}.pretend-message{max-width:48%;padding:12px;font-size:14px}.pretend-message strong{font-size:18px}.many-choices button{font-size:18px}}
@media(max-width:900px){.lesson-layout{grid-template-columns:150px minmax(0,1fr)}.action-rail{grid-column:2;grid-row:2;border-left:0;border-top:1px solid var(--line);flex-direction:row;justify-content:center;padding:12px 16px;gap:16px}.action-rail button{flex-direction:row;border-bottom:0;border-right:1px solid var(--line);gap:10px;font-size:18px;padding:4px 12px}.action-rail button:last-child{border-right:0}.action-rail button>span{width:48px;height:48px}.action-rail .icon{width:25px;height:25px}.guide{grid-row:1/3}.guide-portrait{height:240px}.topic-picker{flex-direction:column;padding:8px 5px;gap:0}.topic-picker select{height:46px;text-align:center;font-size:13px}.browse-link{font-size:13px;text-align:center}.situation-count{font-size:12px}.mode-tabs{min-width:270px}.mode-tabs a{padding:8px 15px;font-size:16px}.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scene-prompt{max-width:90%;font-size:20px;padding:10px 14px}.scene-checklist{left:10px;bottom:10px;gap:5px}.scene-checklist span{font-size:13px;padding:4px 8px}.scene-result{font-size:16px;max-width:60%;right:10px;bottom:10px}.choices button{font-size:18px;gap:9px;padding:6px 10px}.choice-icon{width:44px;height:44px}.many-choices{gap:10px}.many-choices button{font-size:16px}.many-choices .choice-icon{width:35px;height:35px}.many-choices .icon{width:23px;height:23px}.lesson-footer{justify-content:center}}
@media(max-width:640px){.site-header{height:72px;padding:4px 16px}.brand>img{height:62px;width:92px}.site-header nav{gap:12px}.site-header button{font-size:15px;gap:6px;padding:0 2px}.site-header .icon{width:26px;height:26px}.lesson-layout{display:flex;flex-direction:column;min-height:calc(100vh - 72px);padding-bottom:84px}.guide{border:0;border-bottom:1px solid var(--line);flex-direction:row;padding:8px 16px;gap:12px;min-height:84px}.guide-portrait{height:72px;width:54px;object-position:center}.topic-picker{flex:1;flex-direction:row;min-height:52px;padding:0 10px}.topic-picker select{text-align:left;font-size:16px;height:52px;padding:8px}.topic-picker .icon{width:28px;height:28px}.topic-picker .topic-art{width:32px;height:32px}.browse-link{display:none}.workspace{padding:16px 16px 18px}.breadcrumb{font-size:12px;margin-bottom:7px}h1{font-size:29px;letter-spacing:-.6px;margin:4px 0 12px}.lesson-heading{margin-bottom:18px;gap:8px}.mode-tabs{min-width:0;flex:1;min-height:46px}.mode-tabs a{font-size:16px;padding:9px 13px}.situation-count{font-size:12px}.scene{aspect-ratio:4/3;border-radius:17px}.scene-art{object-fit:cover}.space-scene{aspect-ratio:4/3}.space-scene .scene-art{object-position:76% center}.scene-prompt{font-size:20px;max-width:100%;padding:10px 12px;border-radius:0 0 14px 0}.movable-marvin{height:72%;width:33%;top:26%}.alex-message{top:22%;left:46%;max-width:36%;padding:10px;font-size:16px;border-radius:18px}.scene-label{left:10px;bottom:10px;font-size:15px;padding:9px 12px;max-width:92%}.pretend-message{top:29%;right:3%;max-width:64%;font-size:13px}.pretend-message strong{font-size:18px}.scene-result{max-width:85%;font-size:17px;bottom:10px;right:10px;padding:10px 12px;line-height:1.2}.scene-result .icon{width:28px;height:28px}.scene-checklist{top:25%;bottom:auto}.choices{gap:10px;margin-top:16px;flex-wrap:wrap;max-width:100%}.choices button{min-height:68px;border-radius:13px;padding:7px 10px;font-size:18px;gap:8px;max-width:none;flex:1 1 calc(50% - 10px)}.choice-icon{width:40px;height:40px}.choice-icon .icon{width:26px;height:26px}.choices.many-choices{grid-template-columns:repeat(2,1fr)}.feedback{font-size:19px;margin:18px 0 12px;min-height:32px}.lesson-footer{gap:8px;justify-content:space-between}.lesson-footer button{font-size:16px;gap:7px;padding:5px 2px}.lesson-footer .icon{width:25px;height:25px}.lesson-footer button+button{padding-left:12px}.action-rail{width:100%;border-top:1px solid var(--line);padding:12px 8px;gap:0;position:fixed;bottom:0;left:0;background:#f3f9fdf5;z-index:5;box-shadow:0 -3px 12px #10336308}.action-rail button{padding:4px 8px;font-size:17px;gap:8px}.action-rail button>span{width:40px;height:40px}.action-rail .show-me>span{box-shadow:0 0 0 2px #bbd8ff}.action-rail .icon{width:24px;height:24px}.catalog{padding:22px 16px}.catalog>p:not(.breadcrumb){font-size:19px}.group-tabs{gap:8px;margin:22px 0}.group-tabs button{font-size:16px;padding:9px 13px;flex:1 1 45%}.activity-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.activity-tile{border-radius:14px}.activity-tile>span{font-size:17px;padding:12px;gap:8px;line-height:1.2}.activity-tile .icon{width:24px;height:24px}.activity-tile .topic-art{width:32px;height:32px}dialog{padding:24px}dialog h2{font-size:28px}.setting{font-size:18px!important}}


/* Narration remains an explicit action above the guide. */
.guide-bubble{position:relative;width:100%;min-height:58px;padding:14px 16px;border:1.5px solid #74aaff;border-radius:20px;background:white;font-size:18px;font-weight:850;line-height:1.3;cursor:url('/icons/volume-2.svg') 12 12,pointer}
.guide-bubble::after{content:'';position:absolute;bottom:-9px;left:50%;width:16px;height:16px;background:white;border-right:1.5px solid #74aaff;border-bottom:1.5px solid #74aaff;transform:translateX(-50%) rotate(45deg)}
.space-scene .scene-art{transform:none;object-position:center}
.space-scene .movable-marvin,.scene-alex{position:absolute;top:20%;height:78%;width:30%;transform:translateX(-50%);transition:left .35s ease;z-index:1}
.scene-alex{pointer-events:none}
.scene-alex img{width:100%;height:100%;object-fit:contain}
.space-scene .alex-message{left:60%;top:5%;max-width:28%}
@media(max-width:640px){.guide{flex-wrap:wrap}.guide-bubble{flex-basis:100%;font-size:16px;min-height:48px;padding:10px 14px}.space-scene .movable-marvin,.scene-alex{top:28%;height:70%;width:33%}.space-scene .alex-message{left:10%;top:21%;max-width:42%;font-size:15px}}

.space-scene .movable-marvin.dragging{transition:none}

.lesson-footer button[hidden]{display:none}
.space-scene.approaching .scene-alex{transition:left 1.2s linear}
.space-scene.approaching .scene-alex img{animation:walking-step .3s ease-in-out infinite alternate}
@keyframes walking-step{to{transform:translateY(-3px)}}

.space-scene.own-space .alex-message{left:14%;top:11%;max-width:30%}

@media(max-width:640px){.space-scene.own-space .alex-message{left:10%;top:22%;max-width:44%}.space-scene.own-space .movable-marvin,.space-scene.own-space .scene-alex{top:40%;height:58%}}

.guide-portrait{width:76%;height:240px;object-fit:contain}
.lesson-heading{align-items:center;flex-wrap:wrap;margin:8px 0 24px;gap:16px}
.lesson-heading h1{flex:1 1 340px;margin:0;font-size:clamp(28px,2.3vw,38px)}
.lesson-heading .mode-tabs{min-width:0;flex:0 1 330px;min-height:48px}
.lesson-heading .mode-tabs a{padding:8px 18px;font-size:18px}
.lesson-footer button,.lesson-footer .previous-situation,.lesson-footer .next-situation{font-size:20px;min-height:48px;gap:10px}
.lesson-footer .icon{width:28px;height:28px}
.social-distance{position:absolute;left:44%;width:26%;bottom:4%;margin:0;padding:5px 0;border-bottom:3px dashed #0562e9;text-align:center;font-size:15px;font-weight:850;color:#103363;background:#fffffff0;border-radius:8px;z-index:2;pointer-events:none}
@media(min-width:641px) and (max-width:1199px){.space-scene.own-space .movable-marvin,.space-scene.own-space .scene-alex{top:33%;height:65%}}
@media(max-width:1199px){.guide-portrait{height:190px}.lesson-heading h1{flex-basis:100%}.lesson-heading .mode-tabs{flex:1;max-width:360px}.lesson-footer button,.lesson-footer .previous-situation,.lesson-footer .next-situation{font-size:17px}}
@media(max-width:640px){.guide-portrait{height:72px;width:54px}.lesson-heading{gap:8px;margin:4px 0 18px}.lesson-heading h1{font-size:29px;margin-bottom:4px}.lesson-heading .mode-tabs a{font-size:16px;padding:9px 13px}.lesson-footer{gap:4px;justify-content:center}.lesson-footer button,.lesson-footer .previous-situation,.lesson-footer .next-situation{font-size:15px;border:0;border-radius:0;flex:1 1 30%;margin:0;padding:8px 4px;gap:5px;background:transparent}.lesson-footer button+button{border-left:1px solid var(--line)}.lesson-footer .icon{width:23px;height:23px}.social-distance{left:39%;width:32%;font-size:11px;padding:3px}}
@media(max-width:640px){.space-scene{aspect-ratio:1}.space-scene .alex-message{top:26%}.space-scene .movable-marvin,.space-scene .scene-alex{top:46%;height:52%}.space-scene.own-space .alex-message{top:22%}.space-scene.own-space .movable-marvin,.space-scene.own-space .scene-alex{top:40%;height:58%}}
@media(max-width:360px){.activity-tile>span{flex-direction:column;align-items:flex-start;gap:6px}}
