:root{--navy:#08162b;--cream:#f5f7f6;--lime:#c6ed57;--blue:#3fdbef;--pink:#ffcf5a;--ink:#11243b;--edge:#38516c}body{background:#050d1a;color:var(--ink)}.app{max-width:900px;background:radial-gradient(ellipse at 90% 15%,#17445c 0,transparent 52%),linear-gradient(145deg,#0d2039,#081324 70%);color:#eef6ff}.top{padding:16px 22px;background:#09172b;border-bottom:2px solid #31506a}.brand{font-size:clamp(.8rem,2.7vw,1.05rem);letter-spacing:.03em}.stage{font-size:.72rem;color:#64e2ec;opacity:1;margin-top:7px;letter-spacing:.06em}.top .btn{min-height:42px;padding:6px 12px;white-space:nowrap;background:#142e46;color:#fff;border:2px solid #5e809b;font-size:.82rem;box-shadow:none}.screen{gap:16px;padding:24px;outline:0}.panel{position:relative;border:2px solid #7793a8;border-top:5px solid #3fdbef;border-radius:3px;background:#f5f7f6;color:#11243b;box-shadow:5px 5px 0 #020b17;padding:24px}h1{font-size:clamp(1.5rem,5.4vw,2.3rem);line-height:1.65;margin:0 0 14px;font-weight:950}h2{line-height:1.7}p{line-height:2;margin:12px 0}.btn{border:2px solid #0b1b30;border-radius:3px;box-shadow:3px 4px 0 #041021;min-height:54px;padding:13px 18px;font-weight:850;line-height:1.8;background:#fff}.btn.primary{background:#ffcf5a;color:#0a1a2b;border-color:#8b651d}.btn.accent{background:#d8f7fa;color:#10283c;border-color:#328491}.btn:hover{filter:brightness(1.035)}.btn:focus-visible,.avatar:focus-visible{outline:3px solid #f5ac30;outline-offset:4px}.btn:active{transform:translate(1px,2px);box-shadow:1px 1px 0 #041021}.stack{display:grid;gap:12px;margin-top:18px}.title{padding:28px;text-align:center;margin:auto 0}.title .tag{background:#122e45;color:#80eaf4;border:0;border-left:4px solid #c6ed57;border-radius:0;padding:7px 12px;font-size:.76rem;letter-spacing:.04em}.title .logo{display:block;width:min(100%,520px);height:auto;max-height:250px;object-fit:contain;margin:22px auto}.title>p{font-weight:650}.title .stack{max-width:460px;margin:20px auto 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.avatars{gap:16px;margin:24px 0 16px}.avatar,.avatar.pink{position:relative;background:linear-gradient(155deg,#193b53,#10243c);color:#fff;border:2px solid #5a7893;border-radius:3px;padding:14px 8px;min-height:250px;gap:12px;overflow:visible}.avatar.selected{border-color:#ffcf5a;outline:3px solid #ffcf5a;outline-offset:3px;background:linear-gradient(155deg,#285269,#10243c)}.avatar img{display:block;object-fit:contain;object-position:center;width:100%;height:210px;flex:none;padding:6px}.avatar small{font-size:.95rem;line-height:1.9;min-height:30px}.avatar.selected small{color:#ffdc76}.field{background:#fff;border:2px solid #36617a;border-radius:3px;padding:12px;margin-top:8px;line-height:1.7}.art{min-height:0;height:clamp(130px,26dvh,240px);flex:none;border:2px solid #587892;border-radius:3px;overflow:hidden}.art .hero{position:absolute;right:8%;bottom:5%;height:87%;max-width:40%;object-fit:contain;filter:drop-shadow(1px 2px 0 #14283b)}.art .metton{position:absolute;left:9%;bottom:5%;height:80%;width:auto;max-width:40%;object-fit:contain;z-index:1}.scene-label{position:absolute;left:10px;top:8px;z-index:2;background:#07172de8;color:#f5fbff;border-left:3px solid #c6ed57;padding:5px 9px;font-size:.72rem;font-weight:700;line-height:1.8}.home{background:linear-gradient(#f1e4cb 0 72%,#c39c75 72%)}.home .scene-shape{position:absolute;left:12%;bottom:0;width:35%;height:34%;border-top:13px solid #925d37;border-left:12px solid #925d37;border-right:12px solid #925d37}.home:before{content:'';position:absolute;left:17%;top:12%;width:25%;height:40%;border:8px solid #fffdf4;background:linear-gradient(90deg,transparent 46%,white 46% 54%,transparent 54%),linear-gradient(#a7e6f4 47%,white 47% 54%,#a7e6f4 54%)}.sea{background:linear-gradient(#bcecff 0 50%,#4aaec7 50% 72%,#f4deb4 72%)}.quiz-progress{display:flex;justify-content:space-between;align-items:center;font-weight:850;font-size:.88rem;color:#e2f4ff;line-height:1.9}.quiz-progress span:last-child{color:#ffda72}.progress{height:7px;border:0;border-radius:0;background:#28435e}.progress span{background:#48d6e5}.question{font-size:clamp(1.07rem,3.6vw,1.4rem);line-height:1.95;margin:8px 0 16px}.quizButtons{display:grid;gap:12px;grid-template-columns:1fr 1fr}.quizButtons .btn{display:flex;align-items:center;gap:12px;text-align:left;min-height:96px;padding:12px;font-size:1rem;line-height:2}.choiceLetter{background:#0c263e;color:#fff;border:0;border-radius:2px;min-width:29px;height:31px;line-height:31px;text-align:center}.quizButtons .ox{font-size:2rem;line-height:1;margin:auto}.eyebrow{font-size:.76rem;color:#23556c;font-weight:800;line-height:1.9}.dialog{min-height:0;font-size:1rem}.dialog p{margin:10px 0 18px;line-height:2.05}.dialog .btn{width:100%}.feedback{padding:14px;border-left:4px solid #157f89;background:#e2f1f1;font-weight:700;line-height:2}.feedback p{margin:8px 0 0;line-height:2}.answer-summary{font-size:.85rem;margin:8px 0;line-height:1.9}.mode-feedback .btn,.ending .btn{width:100%;margin-top:10px}.learnings{text-align:left;padding-left:24px;line-height:2.1;font-size:.95rem}.friend{background:#143a4c;color:#d1f878;border-left:4px solid #c6ed57;padding:10px;border-radius:0}.clear-metton .metton{height:140px;width:auto;max-width:100%;object-fit:contain;margin:10px auto 0}.foot{padding:0 10px;line-height:1.9;font-size:.72rem;color:#bad1e1}.panel .foot{color:#39546a}.foot ruby rt{color:inherit}.ending .dialog .feedback{margin:12px 0}#saveNotice{font-size:.8rem;background:#ffdf84;color:#132942;text-align:center;margin:0;line-height:1.9}#saveNotice:empty{display:none}dialog{border:2px solid #6b8da5;border-top:5px solid #ffcf5a;border-radius:3px;max-width:440px;width:calc(100% - 32px);padding:22px;background:#f5f7f6;color:#11243b;box-shadow:8px 8px 0 #041021}dialog::backdrop{background:#020a17d9}dialog p{line-height:2}ruby{ruby-align:center}rt{font-size:.52em;font-weight:600;letter-spacing:0;line-height:1.1}button rt{font-size:.52em}.hidden{display:none!important}
@media(max-width:480px){.screen{padding:14px;gap:11px}.top{padding:10px 14px}.top .btn{padding:4px 9px}.panel{padding:17px;border-top-width:4px;box-shadow:3px 3px 0 #020b17}.title{padding:20px 16px}.title .logo{max-height:190px;margin:18px auto}.title p{font-size:.94rem}.title .stack{margin-top:16px}.avatars{gap:13px;margin:20px 0 14px}.avatar,.avatar.pink{min-height:220px;padding:9px 4px;gap:7px}.avatar img{height:175px;padding:5px}.avatar small{font-size:.82rem}.select h1{font-size:1.52rem;margin-bottom:8px}.select p{font-size:.87rem}.quizButtons{grid-template-columns:1fr;gap:10px}.quizButtons .btn{min-height:62px;font-size:.93rem;padding:8px 10px;line-height:1.95}.question .art{height:85px}.question .panel{padding:13px}.question .question{font-size:1rem;line-height:1.95;margin:7px 0 12px}.question .eyebrow{font-size:.69rem}.quiz-progress{font-size:.78rem}.scene-label{font-size:.65rem;top:5px;left:5px;padding:3px 6px}.story .art,.mode-feedback .art{height:140px}.dialog p{font-size:.97rem}.feedback{font-size:.92rem}.foot{font-size:.66rem}.clear-metton .metton{height:110px}}
@media(max-height:620px) and (max-width:480px){.screen{padding:10px;gap:8px}.top{padding:7px 10px}.stage{margin-top:4px}.question .art{height:57px}.question .panel{padding:10px}.question .question{font-size:.94rem;line-height:1.85;margin:5px 0 10px}.quizButtons .btn{min-height:53px;font-size:.86rem;line-height:1.9;padding:7px 8px}.question .eyebrow{font-size:.65rem}.quizButtons{gap:8px}.avatar img{height:142px}.avatar,.avatar.pink{min-height:186px}.select .panel{padding:14px}.select h1{font-size:1.35rem}.select p{font-size:.82rem}.avatars{margin-top:15px}.select .stack{margin-top:12px}.title .logo{max-height:150px}.title{padding:16px}.foot{margin:5px 0}.story .art,.mode-feedback .art{height:100px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
.header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.motion-setting{display:flex;align-items:center;gap:5px;font-size:.65rem;line-height:1.8;color:#d4e6f5;white-space:nowrap}.motion-setting input{accent-color:#ffcf5a;width:14px;height:14px;margin:0}.movie-stage{position:relative;min-height:220px;height:32dvh;max-height:320px;background:radial-gradient(ellipse at 50% 100%,#256179 0,#0b2037 65%);border:1px solid #3c617c;border-left:4px solid #46dbea;overflow:hidden}.movie-number{position:absolute;top:13px;left:15px;z-index:2;color:#a9eeef;font-size:.7rem;font-weight:800;letter-spacing:.14em}.movie-visual{height:100%;padding:40px 18px 18px;display:flex;align-items:center;justify-content:center;animation:reveal-visual 1.8s ease-out both}.movie-logo{width:min(100%,470px);max-height:100%;object-fit:contain}.movie-metton{height:100%;max-width:90%;object-fit:contain}.movie-heroes{height:100%;display:flex;gap:24px;justify-content:center}.movie-heroes img{height:100%;max-width:45%;object-fit:contain}.movie-copy h1{font-size:clamp(1.12rem,4vw,1.65rem);line-height:1.9}.movie-copy p{font-size:.95rem}.movie-copy .stack{margin-top:14px}.movie-copy .foot{font-size:.66rem}.chapter-label{color:#a3ecf0;font-size:.75rem;font-weight:800;letter-spacing:.06em;line-height:1.9}.chapter-ending{animation:reveal-copy .6s ease-out both}.ending .art{animation:reveal-visual 1.8s ease-out both}.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation:none!important;transition:none!important}@keyframes reveal-visual{from{opacity:0;transform:translateY(5px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes reveal-copy{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:480px){.movie-stage{min-height:170px;height:26dvh}.movie-copy{padding:16px}.movie-copy p{font-size:.9rem}.header-actions{gap:4px}.top .stage{font-size:.64rem}}@media(max-height:620px) and (max-width:480px){.movie-stage{min-height:130px;height:24dvh}.movie-copy h1{font-size:1.03rem}.movie-copy p{font-size:.83rem;line-height:1.9}.movie-copy .btn{min-height:45px;padding:8px}.header-actions{gap:2px}.motion-setting{font-size:.6rem}.top{padding:6px 10px}.question .art{height:48px}}
