@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{--paper:#e9f5ff;--white:#fff;--ink:#20334c;--muted:#5c7086;--line:#cbdceb;--blue:#356de8;--blue-dark:#204fae;--green:#187654;--green-soft:#e0f7e7;--yellow:#ffdb60;--accent:#ff775f;font-family:'Nunito','Noto Sans KR',sans-serif;color:var(--ink);background:var(--paper);font-size:16px;color-scheme:light}
*{box-sizing:border-box}body{margin:0;line-height:1.6;background:radial-gradient(#8cb4d62b 1px,transparent 1px) 0 0/22px 22px;min-height:100dvh}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button,a,input,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.45;letter-spacing:-.8px;font-weight:900}h2{font-size:23px;line-height:1.5;letter-spacing:-.4px;font-weight:800}a{color:inherit}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip:focus{position:fixed;z-index:20;background:white;padding:12px}main:focus{outline:none}[hidden]{display:none!important}
.topbar{height:74px;display:flex;align-items:center;gap:40px;padding:0 36px;background:#ffffffd9;border-bottom:2px solid #d3e4f1}.wordmark{font-weight:900;font-size:39px;line-height:1;text-decoration:none;letter-spacing:-2px;transform:rotate(-5deg)}.wordmark span{color:var(--accent)}#journey{display:flex;align-items:center;gap:20px;flex:1}.journey-item{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:700;color:var(--muted)}.journey-num{height:30px;width:30px;display:grid;place-items:center;border-radius:11px;background:#eaf0f6;color:#64788d;font-size:14px}.journey-item.active{color:var(--blue-dark)}.journey-item.active .journey-num{background:var(--blue);color:white;box-shadow:0 3px 0 var(--blue-dark)}.journey-item.done .journey-num{background:#d7f1dd;color:var(--green)}.header-actions{margin-left:auto}.icon-button{border:2px solid var(--line);border-radius:13px;padding:6px 12px;background:white;font-size:14px;font-weight:700;white-space:nowrap}.icon-button:hover{border-color:#84a9d5;background:#f4f9ff}.hint-trigger{background:none;border:0;font-size:14px;color:#435f83;text-decoration:underline;text-underline-offset:4px;padding:8px 0}.muted,.micro,.subcopy{color:var(--muted)}.micro{font-size:14px}.subcopy{margin-top:10px;font-size:16px;line-height:1.75}.eyebrow{display:none}.center{text-align:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:47px;border:2px solid var(--line);border-radius:15px;padding:9px 18px;background:white;box-shadow:0 4px 0 #bdd0e0;font-size:16px;font-weight:800;text-decoration:none;word-break:keep-all;transition:transform .15s,box-shadow .15s,background .15s}.button.primary{background:var(--blue);border-color:var(--blue-dark);box-shadow:0 4px 0 var(--blue-dark);color:#fff}.button:hover:not(:disabled){background:#f2f8ff;transform:translateY(-1px)}.button.primary:hover:not(:disabled){background:#275fd9}.button:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #a8bbcd}.button.small{min-height:37px;padding:5px 12px;font-size:14px;border-radius:12px;box-shadow:0 3px 0 #bdd0e0}.button.quiet{background:transparent;border-color:transparent;box-shadow:none;color:var(--muted)}.button:disabled{box-shadow:none;transform:none}.action-row,.ending-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}.ending-actions{justify-content:center}main{max-width:1320px;margin:auto;padding:22px 32px 28px}.work-header,.scene-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.step-meta{font-size:16px;color:var(--muted);white-space:nowrap}.count{font-size:22px;color:var(--blue)}.scene-heading{display:flex;align-items:center;gap:20px}.scene-toolbar h1{font-size:23px}.scene-toolbar .muted{font-size:16px;font-weight:600}.clue-tokens{display:flex;gap:7px}.clue-token{height:29px;width:29px;border:2px dashed #a5c1d8;color:#708aa4;border-radius:10px;display:grid;place-items:center;font-size:13px;font-weight:800;background:#ffffff80}.clue-token.found{background:var(--yellow);border:2px solid #d3a329;color:#76531a;box-shadow:0 2px 0 #d3a329}.case-chip,.round-label{display:inline-flex;align-items:center;border-radius:9px;background:var(--yellow);color:#614510;padding:4px 10px;font-weight:900;font-size:13px;letter-spacing:.5px}.case-chip{border:2px solid #e7b940;box-shadow:0 3px 0 #e7b940;transform:rotate(-3deg)}
/* Compact, two-column play area; the current video survives answer renders. */
.investigation-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,1fr);gap:24px;align-items:start}.scene-player{min-width:0;background:white;border:2px solid var(--ink);border-radius:22px;padding:10px 10px 17px;box-shadow:0 6px 0 #bed8ec}.video-wrap{position:relative;width:100%;aspect-ratio:16/9;max-height:min(47dvh,410px);background:#e5e5e5;border-radius:13px;overflow:hidden}.video-wrap video{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.player-tools{display:flex;align-items:center;justify-content:space-between;margin:10px 7px}.sentence{font-size:clamp(22px,2vw,29px);line-height:1.5;font-weight:800;letter-spacing:-.3px}.scene-player>.sentence{margin:0 10px}.sentence-ko{font-size:15px;color:var(--muted);margin:6px 10px 0}.question-panel,.final-panel{min-width:0;background:white;border:2px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 6px 0 #c9deee}.question-panel{min-height:390px}.question-meta{font-size:14px;color:var(--blue-dark);font-weight:800;margin-bottom:13px}.question-prompt{font-size:21px;line-height:1.6;margin-bottom:18px;word-break:keep-all}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.question-panel .choices{grid-template-columns:1fr}.choice{display:flex;align-items:center;gap:12px;text-align:left;min-height:52px;padding:11px 13px;border:2px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 3px 0 #dbe7f0;font-size:16px;font-weight:700;word-break:keep-all;min-width:0;transition:transform .14s,background .14s,border-color .14s}.choice:hover:not(:disabled){background:#f1f7ff;border-color:#7ba6ed;transform:translateY(-1px)}.choice:active:not(:disabled){transform:translateY(2px);box-shadow:none}.choice .key{height:26px;width:26px;display:grid;place-items:center;font-size:13px;font-weight:800;color:#5b728d;background:#edf3f9;border-radius:8px;flex:0 0 26px}.choice.correct{background:var(--green-soft);border-color:#5eb984;box-shadow:0 3px 0 #5eb984;opacity:1}.choice.correct .key{color:white;background:var(--green)}.choice.correct .key:after{content:'✓'}.choice.correct .key{font-size:0}.choice.correct .key:after{font-size:16px}.choice.wrong{background:#fff1ec;border-color:#e9967f;box-shadow:0 3px 0 #e9967f}.choice.selected{background:#eaf1ff;border-color:var(--blue);box-shadow:0 3px 0 var(--blue)}.question-panel>.hint-trigger{margin-top:10px}.hint-box{font-size:14px;padding:10px 12px;border-radius:12px;background:#fff5cf;color:#675016;margin-top:5px}.feedback{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.65;background:var(--green-soft);color:#205d3c;border-radius:12px;padding:11px 13px;margin-top:14px;animation:pop-in .22s ease-out}.feedback>span:first-child{font-weight:900}.feedback.retry{background:#fff0e9;color:#93412d}.feedback.neutral{background:#edf3fa;color:#486080}.question-next{display:flex;justify-content:flex-end;margin-top:19px}.question-next:empty{display:none}.watch-prompt,.earned-prompt{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:28px 0}.watch-prompt>p:not(.micro),.earned-prompt>p{font-size:16px;color:var(--muted)}.watch-prompt .button,.earned-prompt .button{margin-top:8px}.clue-check{width:68px;height:68px;display:grid;place-items:center;border:2px solid #d3a329;border-radius:22px;background:var(--yellow);color:#785518;font-size:38px;box-shadow:0 5px 0 #d3a329;transform:rotate(-7deg);animation:reward-in .4s ease-out}.media-message{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;background:#edf6ffef;font-size:15px;pointer-events:none}
.intro-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:48px;align-items:center;min-height:min(570px,calc(100dvh - 145px))}.intro-image{display:block;width:100%;border:3px solid var(--ink);border-radius:28px;box-shadow:8px 8px 0 #bbd6eb;transform:rotate(-2deg)}.intro-copy h1{font-size:42px;margin-top:22px;line-height:1.45;font-weight:900}.intro-copy .action-row{margin-top:28px}.intro-copy .subcopy{max-width:340px}.vocab-shell{max-width:780px;margin:4px auto}.vocab-card{background:var(--white);border:2px solid var(--line);border-radius:24px;padding:24px 32px;margin-top:18px;box-shadow:0 6px 0 #c9deee}.word-number{font-size:13px;font-weight:800;text-align:center;color:var(--blue)}.vocab-word{font-size:54px;font-weight:900;text-align:center;margin:3px 0 5px;line-height:1.3;letter-spacing:-1px}.vocab-card .choices{margin-top:20px}.progress-track{height:11px;background:#d3e4f2;border-radius:10px;overflow:hidden;border:2px solid #c5dceb}.progress-track span{display:block;height:100%;background:var(--blue);border-radius:6px;transition:width .25s}.vocab-group{display:none}.tool-row,.next-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.next-row .micro{display:none}.next-row{justify-content:flex-end}.tool-row .micro{font-size:13px}
.final-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,1fr);gap:32px;align-items:center;max-width:1130px;margin:26px auto 0}.final-character{min-width:0}.character-picture{position:relative;border:2px solid var(--ink);border-radius:26px;background:#e6e6e6;box-shadow:6px 6px 0 #bed7ea;overflow:hidden;transform:rotate(-2deg)}.character-picture>.case-chip{position:absolute;top:17px;left:17px;z-index:1}.character-picture>img{display:block;width:100%;max-height:290px;object-fit:contain}.speech-bubble{background:var(--yellow);border:2px solid #dfb235;border-radius:19px;padding:15px 22px;margin:23px 20px 0;box-shadow:0 4px 0 #dfb235;font-size:19px;font-weight:800;text-align:center;transform:rotate(1deg)}.final-panel .round-label{background:#eaf1ff;color:var(--blue-dark)}.final-panel h2{font-size:23px;margin:12px 0 18px}.suspects{display:grid;grid-template-columns:1fr 1fr;gap:14px}.suspect{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:12px 16px;min-height:119px}.option-top{display:flex;width:100%;align-items:center;justify-content:space-between;margin-bottom:6px}.selection-mark{font-size:18px;color:var(--blue);height:26px}.suspect strong{font-size:26px;line-height:1.2;font-weight:900}.suspect small{font-size:15px;color:var(--muted);margin-top:3px}.final-check{margin-top:24px}.final-check .button{width:100%}.final-panel .feedback{margin-top:18px}
.reveal{max-width:850px;margin:2px auto;text-align:center}.reward-stars{display:flex;justify-content:center;align-items:center;gap:15px;height:69px;color:#c18a00;font-size:38px;line-height:1;text-shadow:0 3px 0 #fff1b9}.reward-stars span{display:block;animation:reward-in .4s ease-out}.reward-stars span:first-child{transform:rotate(-15deg)}.reward-stars span:nth-child(2){font-size:58px;animation-delay:.07s}.reward-stars span:last-child{transform:rotate(15deg);animation-delay:.14s}.reveal h1{font-size:29px}.reveal .subcopy{margin-top:6px}.completion-card{max-width:570px;text-align:left;background:var(--white);border:2px solid var(--ink);border-radius:24px;padding:22px 27px;margin:20px auto 0;box-shadow:6px 6px 0 #bed7ea}.case-card-top{display:flex;justify-content:space-between;align-items:center}.stamp{display:inline-block;border:2px solid var(--green);color:var(--green);border-radius:9px;padding:2px 10px;font-size:15px;font-weight:900;letter-spacing:1px;transform:rotate(6deg)}.case-result{font-size:48px;line-height:1.25;font-weight:900;margin-top:14px;letter-spacing:-1px}.answer-explanation{font-size:15px;color:var(--muted);margin-top:8px;line-height:1.65}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);background:#f1f7fd;border-radius:13px;padding:10px 0;margin:17px 0;gap:8px;text-align:center}.result-stats strong{display:block;font-size:25px;font-weight:900;color:var(--blue-dark);line-height:1.2}.result-stats small{font-size:13px;color:var(--muted)}.note-text{font-size:19px;line-height:1.45;font-weight:800}.record{margin-top:14px}.record summary{cursor:pointer;font-size:14px;color:var(--muted)}.record-list{margin-top:12px}.record-item{display:flex;justify-content:space-between;gap:20px;font-size:14px;padding:8px 0;border-bottom:1px solid var(--line)}.record-item>span:last-child{white-space:nowrap}.learning-note{font-size:14px;color:var(--muted);margin:16px 0}.sentence-slots,.tokens{display:flex;gap:8px;flex-wrap:wrap}.sentence-slots{background:#edf5ff;border:2px dashed #9dbce2;border-radius:14px;padding:12px;min-height:74px;margin:18px 0}.slot-empty{align-self:center;font-size:14px;color:var(--muted)}.token{font-size:20px;font-weight:800;padding:8px 12px;border:2px solid var(--line);border-radius:12px;box-shadow:0 3px 0 #d4e3ef;background:var(--white)}
dialog{border:2px solid var(--ink);border-radius:24px;padding:24px;color:var(--ink);background:var(--paper);width:calc(100% - 32px);max-width:650px;max-height:90dvh;overflow:auto;box-shadow:0 12px 40px #20334c30}dialog::backdrop{background:#152b487d}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.modal-head h2{font-size:22px}.close{border:2px solid var(--line);border-radius:12px;height:38px;width:38px;background:white;font-size:24px;flex:0 0 38px;line-height:1}.modal-video{display:block;width:100%;max-height:50dvh;border-radius:14px;background:#ddd}.note-item{padding:14px 0;border-top:1px solid var(--line)}.note-label{font-size:13px;font-weight:800;color:var(--blue-dark)}.hypothesis{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.settings-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 0;font-size:16px}.settings-row input{width:23px;height:23px;accent-color:var(--blue)}.field-label{display:block;margin-bottom:7px;font-size:16px}input[type=text]{width:100%;border:2px solid #a8bed5;border-radius:12px;background:white;padding:12px;font-size:16px}.inset-note{padding:14px;border-radius:14px;background:#d9ebff;font-size:14px}.storage-error{color:#a34730}
@keyframes pop-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes reward-in{0%{opacity:0;scale:.6}70%{scale:1.1}100%{opacity:1;scale:1}}
@media(max-height:760px) and (min-width:761px){.topbar{height:65px}main{padding-top:16px}.scene-toolbar{margin-bottom:14px}.question-panel{padding:19px;min-height:340px}.question-prompt{margin-bottom:13px;font-size:20px}.question-meta{margin-bottom:8px}.choice{padding:8px 12px;min-height:47px}.feedback{margin-top:10px;padding:9px 12px}.question-next{margin-top:14px}.watch-prompt,.earned-prompt{padding:20px 0}.vocab-card{padding:19px 28px}.vocab-word{font-size:47px}.work-header{margin-bottom:14px}.final-grid{margin-top:20px}.final-panel{padding:20px}.suspect{min-height:110px}.reward-stars{height:55px;font-size:30px}.reward-stars span:nth-child(2){font-size:46px}.completion-card{margin-top:15px;padding:17px 24px}.case-result{font-size:42px;margin-top:9px}.result-stats{margin:12px 0}.reveal h1{font-size:27px}.ending-actions{margin-top:19px}}
@media(max-width:1000px){main{padding:20px}.topbar{padding:0 20px;gap:25px}#journey{gap:14px}.investigation-grid{grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:20px}.question-panel{padding:19px}.intro-copy h1{font-size:34px}.intro-grid{gap:30px}.sentence{font-size:24px}.final-grid{gap:24px}.speech-bubble{margin-inline:10px}.final-panel{padding:19px}}
@media(max-width:760px){.topbar{height:61px;padding:0 16px;gap:24px}.wordmark{font-size:33px}#journey{gap:13px}.journey-name{display:none}.journey-num{width:27px;height:27px;border-radius:9px}main{padding:16px 16px 26px}.icon-button{padding:5px 9px;font-size:13px}.scene-toolbar{margin-bottom:13px}.scene-heading{gap:12px}.scene-toolbar h1{font-size:19px}.scene-toolbar .muted{font-size:14px}.clue-tokens{gap:4px}.clue-token{height:23px;width:23px;font-size:12px;border-radius:8px}.investigation-grid{grid-template-columns:1fr;gap:17px}.scene-player{border-radius:18px;padding:7px 7px 12px;box-shadow:0 4px 0 #bed8ec}.video-wrap{max-height:30dvh;border-radius:10px}.player-tools{margin:8px 6px}.scene-player>.sentence{font-size:20px;margin:0 7px}.scene-player .sentence br{display:initial}.sentence-ko{font-size:14px;margin:6px 7px 0}.question-panel{min-height:0;padding:17px;border-radius:18px}.question-prompt{font-size:18px;margin-bottom:12px}.question-meta{margin-bottom:8px}.watch-prompt,.earned-prompt{padding:0;gap:11px}.watch-prompt h2,.earned-prompt h2{font-size:21px}.watch-prompt .button,.earned-prompt .button{margin-top:0}.clue-check{height:42px;width:42px;font-size:25px;border-radius:14px;box-shadow:0 3px 0 #d3a329}.question-next{margin-top:14px}.intro-grid{grid-template-columns:1fr;gap:29px;min-height:0;padding:14px 6px}.intro-image{max-height:31dvh;object-fit:contain;background:#e6e6e6;border-radius:23px;box-shadow:5px 5px 0 #bbd6eb}.intro-copy h1{font-size:32px;margin-top:16px}.intro-copy .action-row{margin-top:22px}.intro-copy .subcopy{font-size:15px}.work-header{gap:12px}.work-header h1{font-size:22px}.vocab-card{padding:20px;margin-top:14px;border-radius:20px}.vocab-word{font-size:46px}.choice{font-size:15px;min-height:48px;padding:9px 11px;gap:9px}.vocab-card .choices{margin-top:17px;gap:11px}.vocab-card .tool-row .micro{display:none}.vocab-card .feedback{font-size:14px}.final-grid{grid-template-columns:1fr;gap:18px;margin-top:12px}.final-character{display:flex;align-items:center;gap:12px}.character-picture{flex:0 0 42%;border-radius:17px;box-shadow:3px 3px 0 #bed7ea}.character-picture>.case-chip{display:none}.character-picture>img{height:112px;object-fit:cover}.speech-bubble{flex:1;margin:0;border-radius:15px;padding:11px 12px;font-size:15px;box-shadow:0 3px 0 #dfb235}.final-panel{padding:18px;border-radius:20px}.final-panel h2{font-size:21px;margin:9px 0 15px}.suspects{gap:12px}.suspect{min-height:104px;padding:10px 13px}.suspect strong{font-size:25px}.suspect small{font-size:14px}.final-check{margin-top:20px}.reveal h1{font-size:24px}.reward-stars{height:64px}.completion-card{padding:20px;margin-top:20px;box-shadow:4px 4px 0 #bed7ea}.case-result{font-size:43px}.result-stats strong{font-size:24px}.result-stats small{font-size:12px}.answer-explanation{font-size:14px}.ending-actions{gap:11px}.ending-actions .button{font-size:14px}.token{font-size:18px;padding:8px 10px}.vocab-card h2:not(.vocab-word){font-size:20px}.record-item{font-size:13px}.reveal .subcopy{font-size:15px}.note-text{font-size:18px}.button{font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.question-quote{font-size:22px;font-weight:800;line-height:1.5;margin:0 0 10px;padding:10px 13px;background:#f1f7fd;border-radius:12px;word-break:normal}.question-quote mark{background:var(--yellow);color:var(--ink);padding:0 3px;border-radius:4px;box-decoration-break:clone}.question-quote+.question-prompt{font-size:19px;margin-bottom:14px}@media(max-width:760px){.question-quote{font-size:20px;padding:9px 11px;margin-bottom:9px}.question-quote+.question-prompt{font-size:18px}}
/* Case selection stays separate from each episode's saved play state. */
.play-layout{display:grid;grid-template-columns:17rem minmax(0,1fr);width:100%;min-height:calc(100dvh - 74px)}
.play-layout>main{width:100%;min-width:0;margin:0 auto;align-self:start;padding:22px 26px 28px}
.case-sidebar{padding:20px 12px 24px;background:#f7fbffe8;border-right:2px solid #d3e4f1;position:sticky;top:0;align-self:start;height:calc(100dvh - 74px);overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable}
.case-list-heading{padding:0 8px 14px}.case-list-heading>p{font-size:16px;font-weight:900}.case-list-heading>span{font-size:13px;color:var(--muted)}
.case-nav{display:grid;gap:8px}.case-link{display:flex;align-items:flex-start;gap:9px;width:100%;border:2px solid transparent;background:transparent;border-radius:14px;padding:10px 9px;text-align:left;line-height:1.45;min-width:0}.case-link:hover{background:#e7f1ff}.case-link.current{background:white;border-color:var(--blue);box-shadow:0 3px 0 #c0d5f5}.case-index{flex:0 0 29px;height:29px;display:grid;place-items:center;border-radius:10px;background:#e1ebf5;color:#476284;font-weight:900;font-size:14px}.current .case-index{background:var(--blue);color:white}.solved .case-index{background:#d7f1dd;color:var(--green)}.case-link-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.case-link-copy strong{font-size:14px;font-weight:900}.case-link-copy small{font-size:.875rem;word-break:keep-all;white-space:nowrap;color:#405976}.case-link-copy>span{font-size:12px;color:var(--muted)}.menu-toggle{display:none}.case-menu{margin:0;padding:18px 14px;width:min(320px,90vw);max-width:none;height:100dvh;max-height:100dvh;border-radius:0 22px 22px 0;border:0;border-right:2px solid var(--ink)}.case-menu-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;padding:0 6px}.case-menu-head>strong{font-size:21px}.case-menu .case-list-heading>p{display:none}.case-menu .case-link{padding:11px 12px}.case-menu .case-link-copy small{font-size:14px}.case-menu .case-link-copy strong{font-size:16px}
@media(min-width:1101px){.play-layout .investigation-grid{grid-template-columns:minmax(0,1.22fr) minmax(310px,1fr);gap:20px}.play-layout .scene-player>.sentence{font-size:clamp(22px,1.85vw,27px)}.play-layout .intro-grid{gap:40px}.play-layout .intro-copy h1{font-size:clamp(1.75rem,2.3vw,2.25rem)}.play-layout .final-grid{gap:24px}.play-layout .final-panel h2{font-size:21px}.play-layout .question-panel{padding:20px}}
@media(max-height:760px) and (min-width:1101px){.play-layout{min-height:calc(100dvh - 65px)}.case-sidebar{height:calc(100dvh - 65px);padding-top:14px}.case-link{padding-block:8px}.play-layout>main{padding-top:16px}.play-layout .question-panel{padding:18px}}
@media(max-width:1100px){.play-layout{display:block;min-height:calc(100dvh - 65px)}.case-sidebar{display:none}.menu-toggle{display:inline-flex}.topbar{gap:20px}.play-layout>main{padding:20px}.case-menu .case-list-heading{padding-bottom:10px}}
@media(max-width:760px){.play-layout>main{padding:16px 16px 26px}.topbar{gap:14px}.menu-toggle{font-size:13px;padding:5px 9px}.wordmark{font-size:29px}#journey{gap:8px}.journey-num{width:24px;height:24px;font-size:12px}.header-actions{margin-left:auto}.topbar .icon-button{padding:5px 8px}.intro-copy .case-chip{font-size:12px}.case-menu .case-list-heading>span{font-size:14px}}

.header-actions{display:flex;align-items:center;gap:8px}.mode-link{text-decoration:none}

/* Center the introduction as a balanced pair inside the available play area. */
.play-layout .intro-grid{width:100%;max-width:1040px;margin-inline:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.play-layout .intro-image{max-width:500px;justify-self:center}
.play-layout .intro-copy{min-width:0}
.play-layout .intro-copy h1{word-break:keep-all;text-wrap:balance}
@media(max-width:760px){.play-layout .intro-grid{grid-template-columns:minmax(0,1fr);max-width:500px}.play-layout .intro-copy{text-align:center}.play-layout .intro-copy .subcopy{margin-inline:auto}.play-layout .intro-copy .action-row{justify-content:center}}
@media(max-width:360px){.case-menu{padding-inline:10px;width:94vw}.case-menu .case-link{padding-inline:8px}}

/* Keep all three learning modes and settings reachable on narrow screens. */
@media(max-width:600px){.app-shell>.topbar{height:auto;min-height:61px;flex-wrap:wrap;gap:10px;padding-block:8px}.app-shell>.topbar #journey{order:3;flex:1 0 100%;justify-content:center}}

/* Center watch and reward prompts without changing question or speaking layouts. */
.question-panel:has(> :is(.watch-prompt,.earned-prompt)){display:flex;align-items:center;justify-content:center}
.question-panel > :is(.watch-prompt,.earned-prompt){width:100%;align-items:center;text-align:center}

/* A taped illustration card keeps the opening playful without player chrome. */
.opening-player{position:relative;min-width:0;width:100%;padding:13px;background:#fffdf7;border:2px solid #526985;border-radius:28px;box-shadow:6px 7px 0 #bfd8eb}
.opening-player::before,.opening-player::after{content:'';position:absolute;z-index:1;width:76px;height:25px;pointer-events:none;border-radius:3px;border:1px solid #e5bf55;background:repeating-linear-gradient(90deg,#ffe58fcf 0 7px,#ffdb72cf 7px 8px)}
.opening-player::before{top:-11px;left:25px;transform:rotate(-9deg)}
.opening-player::after{bottom:-10px;right:25px;transform:rotate(-9deg)}
.opening-player video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:15px;background:transparent;pointer-events:none}
#game[data-stage="intro"]{caret-color:transparent}
.intro-copy{cursor:default}
.opening-status{margin-top:18px;color:var(--muted);font-size:14px;line-height:1.6;word-break:keep-all}
.intro-copy .action-row:has([hidden]){display:none}
@media(max-width:760px){.opening-player{padding:10px;border-radius:22px;box-shadow:4px 5px 0 #bfd8eb}.opening-player video{border-radius:11px}.opening-player::before,.opening-player::after{width:62px;height:21px}.opening-player::before{top:-9px;left:21px}.opening-player::after{bottom:-9px;right:21px}.opening-status{margin-top:12px}}

/* RDR feedback: keep sentence breaks and balance the captions under the video. */
.scene-player>.sentence,.scene-player>.sentence-ko,.modal-video~.sentence,.modal-video~.sentence-ko{text-align:center}
.learning-navigation{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}
.scene-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:600px){.scene-toolbar{flex-wrap:wrap;gap:12px}.scene-actions{gap:8px}.scene-actions .button{font-size:13px}.learning-navigation .button{font-size:14px}}

/* Larger reading and touch targets for the children's riddle activities. */
.app-shell .topbar{min-height:74px}
.app-shell .journey-item{font-size:17px}
.app-shell .journey-num{width:36px;height:36px;font-size:16px}
.app-shell .icon-button{min-height:44px;font-size:16px;padding:8px 14px}
.app-shell .play-layout>main{max-width:1720px;padding:24px clamp(20px,2vw,40px) 32px}
#game h1{font-size:clamp(28px,2vw,36px)}
#game .button{min-height:56px;font-size:19px;padding:11px 22px}
#game .button.small{min-height:44px;font-size:16px;padding:7px 14px}
#game .hint-trigger{min-height:44px;font-size:16px}
#game .micro,#game .question-meta,#game .word-number{font-size:16px}
#game .subcopy{font-size:20px}
#game .case-chip,#game .round-label{font-size:16px;padding:6px 12px}
#game .scene-toolbar{margin-bottom:22px}
#game .clue-token{width:36px;height:36px;font-size:16px}
#game .investigation-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}
#game .video-wrap{max-height:min(52dvh,620px)}
#game .scene-player{padding:12px 12px 24px}
#game .scene-player>.sentence{font-size:clamp(28px,2.3vw,40px);line-height:1.45;margin:8px 12px 0}
#game .sentence-ko{font-size:18px;line-height:1.65;margin:10px 12px 0}
#game .player-tools{margin:12px 8px}
#game .question-panel,#game .final-panel{padding:clamp(24px,2vw,36px)}
#game .question-panel{min-height:clamp(440px,54dvh,640px)}
#game .question-quote{font-size:clamp(26px,1.8vw,34px);padding:14px 18px}
#game .question-prompt,#game .question-quote+.question-prompt{font-size:clamp(22px,1.45vw,27px);line-height:1.5}
#game .choices{gap:16px}
#game .choice{min-height:64px;font-size:clamp(20px,1.3vw,24px);padding:14px 18px;gap:14px}
#game .choice .key{width:32px;height:32px;flex-basis:32px;font-size:16px}
#game .feedback,#game .hint-box{font-size:17px;line-height:1.65;padding:14px 16px}
#game .watch-prompt h2,#game .earned-prompt h2{font-size:30px}
#game .watch-prompt>p:not(.micro),#game .earned-prompt>p{font-size:20px}
#game .intro-grid{max-width:1480px;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(32px,4vw,64px);min-height:min(720px,calc(100dvh - 160px))}
#game .intro-copy h1{font-size:clamp(36px,3.2vw,56px)}
#game .intro-copy .subcopy{max-width:480px;font-size:22px}
#game .opening-status{font-size:18px}
#game .vocab-shell{max-width:1060px;margin:8px auto}
#game .vocab-card{padding:28px clamp(28px,3vw,52px);min-height:min(560px,calc(100dvh - 250px));display:flex;flex-direction:column;justify-content:center}
#game .vocab-word{font-size:clamp(60px,5.5vw,84px)}
#game .vocab-card>.center{font-size:20px}
#game .vocab-card .choice{min-height:70px}
#game .final-grid{max-width:1440px;margin-top:30px}
#game .character-picture>img{max-height:460px}
#game .speech-bubble{font-size:24px;padding:20px 24px}
#game .final-panel h2{font-size:30px}
#game .suspect{min-height:150px}
#game .suspect strong{font-size:36px}
#game .suspect small{font-size:18px}
#game .reveal{max-width:1120px}
#game .completion-card{max-width:760px;padding:30px 36px}
#game .case-result{font-size:60px}
#game .answer-explanation{font-size:19px}
#game .note-text{font-size:24px}
#game .result-stats{padding:16px 0}
#game .result-stats strong{font-size:34px}
#game .result-stats small{font-size:16px}
@media(min-width:1401px){
 .play-layout{grid-template-columns:300px minmax(0,1fr)}
 .case-list-heading>p{font-size:20px}.case-list-heading>span{font-size:15px}
 .case-link{gap:12px;padding:12px 10px}.case-index{height:34px;flex-basis:34px;font-size:16px}
 .case-link-copy strong{font-size:17px}.case-link-copy small{font-size:15px}.case-link-copy>span{font-size:14px}
}
@media(min-width:761px) and (max-width:1400px){
 .play-layout{display:block}.case-sidebar{display:none}.menu-toggle{display:inline-flex}
}
@media(min-width:761px) and (max-height:820px){
 .app-shell .play-layout>main{padding-top:18px}
 #game .scene-toolbar{margin-bottom:16px}
 #game .question-panel,#game .final-panel{padding:22px}
 #game .question-panel{min-height:420px}
 #game .choice{min-height:56px;padding:10px 15px;font-size:20px}
 #game .choices{gap:12px}
 #game .question-quote{font-size:26px;padding:10px 14px}
 #game .question-prompt,#game .question-quote+.question-prompt{font-size:22px;margin-bottom:14px}
 #game .scene-player>.sentence{font-size:30px}
 #game .video-wrap{max-height:46dvh}
 #game .vocab-card{padding-block:22px}
 #game .vocab-card .choice{min-height:60px}
 #game .vocab-word{font-size:64px}
}
@media(max-width:760px){
 .app-shell .topbar{gap:10px;padding-inline:12px}
 .app-shell .icon-button{min-height:44px;font-size:14px;padding:7px 10px}
 .app-shell .journey-num{width:30px;height:30px;font-size:14px}
 .app-shell .play-layout>main{padding:18px 14px 28px}
 #game h1{font-size:26px}
 #game .button{min-height:52px;font-size:17px;padding:10px 16px}
 #game .button.small{min-height:44px;font-size:15px}
 #game .scene-toolbar{gap:12px;margin-bottom:16px;flex-wrap:wrap}
 #game .scene-toolbar h1{font-size:22px}
 #game .scene-heading{gap:10px}
 #game .clue-token{width:27px;height:27px;font-size:13px}
 #game .scene-actions{justify-content:space-between;width:100%}
 #game .investigation-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 #game .video-wrap{max-height:none}
 #game .scene-player{padding:8px 8px 18px}
 #game .scene-player>.sentence{font-size:25px;margin:4px 6px 0}
 #game .sentence-ko{font-size:16px;margin-inline:6px}
 #game .player-tools{margin:8px 4px}
 #game .question-panel,#game .final-panel{min-height:0;padding:22px 18px}
 #game .question-quote{font-size:25px;padding:12px}
 #game .question-prompt,#game .question-quote+.question-prompt{font-size:21px}
 #game .choice{min-height:58px;font-size:18px;padding:12px;gap:10px}
 #game .choices{gap:12px}
 #game .choice .key{width:28px;height:28px;flex-basis:28px;font-size:14px}
 #game .feedback,#game .hint-box{font-size:16px;padding:12px}
 #game .watch-prompt h2,#game .earned-prompt h2{font-size:26px}
 #game .watch-prompt>p:not(.micro),#game .earned-prompt>p{font-size:18px}
 #game .intro-grid{grid-template-columns:minmax(0,1fr);max-width:600px;min-height:0;gap:28px;padding:12px 4px}
 #game .intro-copy h1{font-size:34px}
 #game .intro-copy .subcopy{font-size:19px}
 #game .opening-status{font-size:16px}
 #game .case-chip,#game .round-label{font-size:14px}
 #game .vocab-shell{margin:0 auto}
 #game .work-header{align-items:flex-start}
 #game .work-header h1{font-size:26px}
 #game .subcopy{font-size:17px}
 #game .vocab-card{padding:24px 18px;min-height:0}
 #game .vocab-word{font-size:58px}
 #game .vocab-card .choice{min-height:62px;font-size:18px}
 #game .final-grid{margin-top:20px}
 #game .speech-bubble{font-size:18px;padding:14px}
 #game .final-panel h2{font-size:27px}
 #game .suspect{min-height:126px;padding:12px}
 #game .suspect strong{font-size:30px}
 #game .suspect small{font-size:16px}
 #game .completion-card{padding:24px 20px}
 #game .case-result{font-size:50px}
 #game .answer-explanation{font-size:17px}
 #game .note-text{font-size:21px}
 #game .result-stats strong{font-size:28px}
 #game .result-stats small{font-size:14px}
}
