@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap');
:root{--blue:#2354d8;--ink:#182341;--paper:#f5f7fc;--yellow:#ffe05a;--red:#ac1740;--muted:#5e6c83}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Golos Text',Arial,sans-serif;font-size:17px;line-height:1.5}button,input{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,label:has(input:focus-visible){outline:4px solid #df9d00;outline-offset:4px}button:disabled{cursor:default;opacity:.4}button{transition:transform .18s,background .18s}button:hover:not(:disabled){transform:translateY(-2px)}header{max-width:1440px;margin:auto;padding:28px 48px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:27px;font-weight:900;letter-spacing:-1px;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:12px}.brand-icon{width:43px;height:43px;background:var(--blue);color:white;border-radius:14px;display:grid;place-items:center;font-size:23px}.tag{font-size:11px;letter-spacing:1.5px;font-weight:600;margin-left:15px;max-width:130px;line-height:1.4}.quiet{background:transparent;color:var(--muted);padding:12px 16px;border-radius:14px;font-size:15px;font-weight:600}.quiet:hover{background:#e7edf9;color:var(--blue)}main{max-width:1360px;margin:0 auto;padding:0 48px 40px}.steps{display:flex;justify-content:space-between;border-top:1px solid #dce2ec;padding:22px 0 30px;gap:14px}.steps span{display:flex;align-items:center;gap:10px;color:#778195;font-size:14px}.steps b{width:29px;height:29px;display:grid;place-items:center;background:#e8edf5;border-radius:50%;font-size:12px}.steps em{font-style:normal}.steps .current{color:var(--blue);font-weight:700}.steps .current b{background:var(--blue);color:#fff}.steps .done b{background:#d7e7de;color:#27704a}.home{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;padding:20px 0 34px}.eyebrow{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:1.6px}h1{font-size:clamp(32px,3.7vw,52px);line-height:1.12;letter-spacing:-1.6px;margin:17px 0 22px;font-weight:800}h1 span{color:var(--blue)}.lead{color:#52617a;max-width:650px;font-size:19px;line-height:1.6;margin:0 0 24px}.names{border:0;padding:0;margin:32px 0 28px;display:flex;gap:10px;flex-wrap:wrap}.names legend{font-size:15px;font-weight:600;margin-bottom:14px}.name-choice{display:flex;align-items:center;gap:8px;padding:8px 13px 8px 8px;background:white;border:2px solid #e0e6f0;border-radius:17px;cursor:pointer;font-weight:600}.name-choice input,.duration input{position:absolute;opacity:0;width:1px;height:1px}.name-choice.selected,.duration-option.selected{border-color:var(--blue);background:#edf2ff;color:var(--blue)}.name-dot{border-radius:10px;width:34px;height:34px;display:grid;place-items:center;background:#f7d956;color:#614c00}.n1{background:#c9e9f0;color:#286476}.n2{background:#f4d2de;color:#922947}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:24px;border-radius:17px;min-height:56px;padding:15px 27px;background:var(--blue);color:white;font-weight:700;font-size:17px;box-shadow:0 5px 0 #173b9f}.primary:hover{background:#1646c4}.secondary{color:var(--blue);background:#e4ebff;box-shadow:none}.small{font-size:14px;color:var(--muted);line-height:1.65;margin-top:22px}.studio-cover{height:555px;border-radius:34px;position:relative;background:#bee6f0;transform:rotate(2deg)}.studio-cover img{width:100%;height:100%;object-fit:cover;border-radius:34px}.cover-sticker{position:absolute;left:-20px;bottom:35px;background:white;padding:23px 30px;border-radius:20px;box-shadow:0 12px 38px #1823411c;transform:rotate(-5deg);max-width:95%}.cover-sticker span{font-size:10px;letter-spacing:1.5px;font-weight:800;color:var(--blue)}.cover-sticker strong{display:block;font-size:25px;margin-top:7px;letter-spacing:-.7px}.cover-sticker p{font-size:14px;margin:5px 0 0;color:var(--muted)}.ticket{position:absolute;right:-15px;top:24px;padding:13px 20px;background:var(--yellow);border-radius:16px;transform:rotate(6deg);font-size:13px;line-height:1.6}.ticket b{font-size:21px}footer{max-width:1360px;margin:0 auto;padding:22px 48px;border-top:1px solid #dce2ec;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:var(--muted)}.workspace{max-width:1020px;margin:0 auto 24px}.stage-intro h1{font-size:39px;margin-bottom:14px}.stage-intro .lead{font-size:18px}.note{background:#fff3b5;border-radius:23px;padding:21px 28px;margin:22px 0 28px;box-shadow:0 4px 0 #eadb94;position:relative}.note-label{font-size:11px;letter-spacing:1.3px;font-weight:700;color:#826323}.note p{font-size:20px;line-height:1.7;margin:10px 0 0}.scene-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.scene-card{background:white;border:2px solid #e2e8f2;border-radius:23px;overflow:hidden}.scene-art{width:100%;height:230px;background-image:url('frames.webp');background-size:300% 100%;background-repeat:no-repeat;background-color:#f2eee4}.frame-0{background-position:0% 50%}.frame-1{background-position:50% 50%}.frame-2{background-position:100% 50%}.scene-details{padding:15px}.scene-details h2{font-size:17px;margin:0 0 14px}.pick-row{display:flex;gap:7px}.chip{padding:10px 13px;font-size:14px;flex:1;border:2px solid #e0e6f2;background:#f7f9fd;color:var(--muted);border-radius:12px}.chip.picked{border-color:var(--blue);background:var(--blue);color:white}.tools{display:flex;gap:4px;margin-top:18px}.hint{border-radius:17px;padding:17px 22px;background:#e7edff;color:#254291;margin:10px 0}.feedback{font-weight:600;min-height:28px;color:#9e294b;margin:12px 0}.feedback.success{color:#236844}.actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.editing{padding:25px;background:white;border-radius:27px;border:1px solid #e0e6f0}.timeline-cards{display:grid;grid-template-columns:6fr 8fr 6fr;gap:12px}.clip{position:relative;border-radius:16px;overflow:hidden;background:#edf2ff;border:3px solid #4670e5}.clip:nth-child(2){border-color:#e0ad30}.clip:nth-child(3){border-color:var(--red)}.clip .scene-art{height:205px}.clip>span{position:absolute;top:12px;left:12px;border-radius:7px;background:#ffffffea;padding:4px 8px;font-size:10px;letter-spacing:1px;font-weight:700}.clip>strong{display:block;padding:7px 14px;color:#173b9f;font-size:25px;background:#edf2ff}.clip:nth-child(2)>strong{background:#fff3bd;color:#735308}.clip:nth-child(3)>strong{background:#fbe7ee;color:var(--red)}.clip small{font-size:14px}.ruler-label{margin:26px 0 10px;display:flex;justify-content:space-between;font-size:14px;gap:12px}.ruler{display:flex;gap:3px}.ruler span{min-width:0;flex:1;height:35px;display:grid;place-items:center;border-radius:5px;font-size:11px;background:#e9edf3;color:#425674}.ruler .part-a{background:#d9e5ff;color:#1c4096}.ruler .part-b{background:#ffeb9f;color:#6a5109}.ruler .part-c{background:#f6ccdb;color:#8d1d3e}.ruler .overflow{outline:2px solid #b62f41}.ruler-note{font-size:12px;color:var(--muted);margin:8px 0 20px}.duration{border:0;padding:0;display:flex;gap:15px;justify-content:center}.duration legend{text-align:center;font-size:15px;font-weight:600;margin-bottom:13px}.duration-option{border:2px solid #dfe6f1;padding:10px 23px;border-radius:15px;cursor:pointer;font-size:14px}.duration-option b{font-size:27px;margin-right:4px}.caption-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:30px;align-items:center;background:white;padding:25px;border-radius:25px}.caption-preview{border-radius:20px;overflow:hidden;background:#f2eee4}.caption-preview .scene-art{height:290px}.caption-preview>span{display:block;text-align:center;padding:10px;font-size:11px;letter-spacing:1px}.sentence{display:flex;gap:10px;flex-wrap:wrap;min-height:130px;align-content:center}.empty-word,.placed{border:2px dashed #c3cde1;padding:12px 14px;border-radius:12px;font-size:15px;color:#667693}.placed{border:2px solid var(--blue);background:#eff3ff;color:var(--blue);font-size:17px;font-weight:600}.placed small{margin-left:8px}.word-bank{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}.word{padding:13px 20px;background:var(--yellow);border-radius:13px;font-weight:700;color:#514007;box-shadow:0 3px 0 #d7b634}.mini-tip{font-size:14px;color:var(--muted)}.premiere{max-width:780px;margin:auto}.premiere .stage-intro{text-align:center}.premiere .lead{max-width:none}.movie{position:relative;border-radius:25px;overflow:hidden;background:#171f39;height:420px;border:10px solid #19243e}.movie .scene-art{height:100%;width:62%;margin:auto}.movie-label{position:absolute;top:16px;left:16px;font-size:13px;color:white;background:#17213fd9;padding:7px 12px;border-radius:9px}.play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:78px;height:78px;border-radius:50%;background:var(--yellow);color:#26385a;font-size:29px;box-shadow:0 5px 20px #0003}.play:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.05)}#movie-caption{position:absolute;bottom:15px;left:10px;right:10px;text-align:center;color:white;font-weight:700;font-size:23px;text-shadow:0 2px 6px #000;background:#17213fbf;border-radius:12px;margin:0;padding:10px}#movie-caption:empty{display:none}.movie-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0 18px}.movie-controls>span{font-size:14px;color:var(--muted)}.movie-progress{height:6px;background:#dce3f0;border-radius:10px;overflow:hidden}.movie-progress span{height:100%;display:block;width:0;background:var(--blue)}.completion{display:flex;gap:18px;align-items:center;margin:25px 0;background:white;padding:22px;border-radius:20px}.seal{display:grid;place-items:center;flex:0 0 43px;height:43px;background:#e1f0e7;border-radius:50%;color:#2b7850;font-size:24px}.completion h2{font-size:18px;margin:0 0 7px}.completion p{font-size:15px;color:var(--muted);margin:0}.filming{animation:film 6s ease-in-out infinite alternate}@keyframes film{from{transform:scale(1)}to{transform:scale(1.06) translateY(-3px)}}dialog{border:0;padding:30px;border-radius:25px;width:min(650px,calc(100% - 30px));color:var(--ink);box-shadow:0 25px 80px #17213f33}dialog::backdrop{background:#111f4b85;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:24px;margin:0}dialog p{font-size:15px}table{border-collapse:collapse;width:100%;font-size:14px;margin:22px 0}td,th{padding:12px 6px;text-align:left;border-bottom:1px solid #e0e6ef}.adult-note{background:#edf2fd;border-radius:17px;padding:18px}.adult-note p:last-child{margin-bottom:0}.danger{color:#a52143}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:1400px){.home h1{font-size:56px}}@media(max-width:900px){header{padding:22px 26px}main{padding:0 26px 28px}.tag{display:none}.home{gap:28px}.studio-cover{height:450px}.home h1{font-size:40px}.cover-sticker{padding:20px}.cover-sticker strong{font-size:21px}.scene-art{height:200px}.chip{padding:10px 7px}.caption-layout{gap:20px}.stage-intro h1{font-size:33px}footer{padding:20px 26px}.steps span{font-size:12px;gap:7px}.steps em{max-width:90px}.ruler span{font-size:9px}.name-choice{padding-right:9px}.names{gap:7px}}@media(max-width:620px){body{font-size:16px}header{padding:17px 18px}.brand{font-size:23px}.brand-icon{width:36px;height:36px;font-size:18px;border-radius:11px}.quiet{font-size:14px;padding:12px}.steps{padding:18px 0 22px;gap:8px}.steps em{display:none}.steps span.current{flex:1}.steps .current em{display:inline;max-width:none;font-size:13px}.steps b{width:25px;height:25px;font-size:11px}main{padding:0 18px 22px}.home{display:flex;flex-direction:column-reverse;gap:26px;padding-top:0;align-items:stretch}.studio-cover{height:220px;transform:none;border-radius:23px;margin:0 7px 0 0}.studio-cover img{border-radius:23px;object-position:50% 55%}.cover-sticker{left:12px;bottom:15px;padding:12px 17px;border-radius:13px;transform:rotate(-3deg)}.cover-sticker span{font-size:9px}.cover-sticker strong{font-size:20px;margin-top:3px}.cover-sticker p{font-size:12px}.ticket{top:13px;right:-10px;padding:8px 12px;font-size:11px}.ticket b{font-size:17px}.eyebrow{font-size:10px;letter-spacing:1.2px}.home h1{font-size:35px;letter-spacing:-1px;margin:12px 0 17px}.lead{font-size:17px;margin-bottom:18px}.names{margin:23px 0}.name-choice{font-size:15px}.home .primary{width:100%}.small{font-size:13px;margin-top:18px}footer{padding:18px;flex-direction:column;gap:4px;font-size:11px}.stage-intro h1{font-size:30px;letter-spacing:-.7px}.stage-intro .lead{font-size:16px}.note{padding:17px 19px;margin:18px 0 22px}.note p{font-size:17px;line-height:1.65}.scene-grid{gap:9px}.scene-card{border-radius:16px}.scene-art{height:162px}.scene-details{padding:9px 7px}.scene-details h2{font-size:13px;min-height:36px;margin-bottom:9px;line-height:1.3}.pick-row{flex-direction:column;gap:6px}.chip{font-size:13px;padding:9px 4px;border-radius:9px;min-height:40px}.tools{margin-top:15px}.feedback{font-size:15px}.actions{gap:9px}.primary,.secondary{font-size:15px;padding:14px 19px;min-height:51px;gap:10px}.editing{padding:14px;border-radius:20px}.timeline-cards{gap:7px}.clip .scene-art{height:140px}.clip{border-width:2px;border-radius:12px}.clip>span{font-size:8px;left:5px;top:7px;padding:3px 5px}.clip>strong{font-size:23px;padding:7px 8px}.clip small{font-size:12px}.ruler-label{font-size:12px;flex-direction:column;gap:3px;margin-top:19px}.ruler{gap:2px;flex-wrap:wrap}.ruler span{flex:0 0 calc((100% - 18px)/10);height:28px;font-size:11px}.ruler-note{font-size:11px}.duration{gap:8px}.duration-option{padding:9px 12px;font-size:12px}.duration-option b{font-size:25px}.duration legend{font-size:14px}.caption-layout{grid-template-columns:1fr;padding:17px;gap:16px}.caption-preview{max-width:190px;margin:auto;width:100%}.caption-preview .scene-art{height:195px}.sentence{min-height:100px;gap:7px}.empty-word,.placed{font-size:14px;padding:10px}.word-bank{gap:9px;margin:20px 0}.word{font-size:16px;padding:13px 17px}.movie{height:350px;border-width:7px;border-radius:21px}.movie .scene-art{width:90%}.movie-label{font-size:11px;left:10px;top:10px}#movie-caption{font-size:19px}.movie-controls{gap:10px}.movie-controls>span{font-size:12px}.completion{padding:17px;gap:12px}.completion h2{font-size:16px}.completion p{font-size:14px}dialog{padding:21px}.dialog-head h2{font-size:21px}table{font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Preserve the original illustration proportions in every film frame. */
.scene-art{width:115px;max-width:100%;margin-inline:auto}.scene-card,.clip,.caption-preview{background:#eadfcf}.clip .scene-art{width:102.5px}.caption-preview .scene-art{width:145px}.movie .scene-art{width:200px;max-width:100%}@media(max-width:900px) and (min-width:621px){.scene-card .scene-art{width:100px}}@media(max-width:620px){.scene-card .scene-art{width:81px}.clip .scene-art{width:70px}.caption-preview .scene-art{width:97.5px}.movie .scene-art{width:168px}}

/* Actual video scenes and frame posters. Preserve each complete frame. */
.scene-art,.clip .scene-art,.caption-preview .scene-art{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#17213f;margin:0}
.scene-media{position:relative;background:#17213f}.scene-preview{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#17213f}
.scene-card{background:white}.scene-details h2{font-size:17px;min-height:0}.caption-preview{max-width:none;width:100%}
.studio-cover{height:460px}.studio-cover img{object-fit:cover;object-position:48% center}
.video-movie{height:auto;aspect-ratio:16/9;background:#101a31;border-width:6px}.video-movie video{display:block;width:100%;height:100%;object-fit:contain}
.video-movie #movie-caption{bottom:53px;left:7%;right:7%;font-size:clamp(14px,2.2vw,23px);padding:6px 10px;pointer-events:none}
.media-status{font-size:14px;min-height:22px;color:var(--muted);margin:10px 0}.video-error{display:block;padding:14px;color:white;font-size:14px}
.film-segments{display:flex;gap:7px;margin-top:12px}.film-segments span{flex:1;padding:9px;border-radius:10px;background:#e6ebf4;color:var(--muted);font-size:13px;text-align:center}.film-segments span:nth-child(2){flex:1.33}.film-segments .active{background:var(--blue);color:white}
.movie-controls{flex-wrap:wrap}.movie-controls>span{margin-left:auto}.movie .play{z-index:2}.scene-preview:focus-visible,#film-video:focus-visible{outline:4px solid #df9d00;outline-offset:3px}
@media(max-width:620px){.scene-grid{grid-template-columns:1fr;gap:20px}.scene-details{padding:16px}.pick-row{flex-direction:row}.chip{font-size:15px;min-height:44px}.scene-details h2{font-size:18px;margin-bottom:13px}.studio-cover{height:240px}.studio-cover img{object-position:50% center}.timeline-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.clip>span{position:static;display:block;margin:0;border-radius:0;font-size:9px;letter-spacing:.3px;padding:4px 5px}.caption-preview{max-width:none}.video-movie{height:auto;aspect-ratio:16/9}.video-movie #movie-caption{bottom:45px;font-size:14px;left:3%;right:3%}.movie-controls{gap:9px}.movie-controls .primary{flex:1}.movie-controls .quiet{font-size:13px;padding:10px}.film-segments span{font-size:11px;padding:8px 4px}.movie .play{width:58px;height:58px;font-size:22px}}

/* Clear two-step frame choice. */
.compact-intro h1{margin-bottom:12px}.scene-task{display:flex;align-items:center;gap:16px;margin:14px 0 18px;padding:14px 18px;border-radius:17px;background:#fff0a9;color:#493b10;font-size:18px}.scene-task>b{white-space:nowrap}.scene-task span{margin-left:auto;color:#685b31;font-size:14px}.scene-task.is-done{background:#dff1e6;color:#1f6242}.scene-task.is-done span{color:#3c7057}.clue-workspace .scene-details{display:flex;align-items:center;justify-content:space-between;gap:12px}.clue-workspace .scene-details h2{margin:0}.choose-scene{flex:0 0 auto;min-width:104px;background:#edf2ff;color:var(--blue);border-color:#cbd8fa;font-weight:700}.order-label{display:block;margin-top:3px;color:var(--blue);font-size:10px;font-weight:800;letter-spacing:.8px}.scene-grid.ordered .scene-card{border-color:#cbd9ff}.compact-actions{margin-top:8px}

/* Desktop game stages fit in a 900px-high screen. */
@media(min-width:901px) and (max-height:950px){
header{padding:12px 48px}.brand{font-size:23px}.brand-icon{width:38px;height:38px;border-radius:12px}.tag{font-size:10px}.quiet{padding:9px 13px}
main{padding-bottom:12px}.steps{padding:10px 0 14px}.steps b{width:25px;height:25px}.workspace{max-width:1120px;margin-bottom:8px}.stage-intro h1{font-size:32px;margin:8px 0 5px}.stage-intro .lead{font-size:16px;line-height:1.4;margin-bottom:10px}.eyebrow{font-size:10px}
.scene-task{margin:9px 0 12px;padding:10px 16px}.scene-grid{gap:14px}.scene-details{padding:10px 12px}.scene-details h2{font-size:15px}.feedback{min-height:22px;margin:7px 0;font-size:14px}.actions{margin:8px 0}.primary,.secondary{min-height:44px;padding:10px 21px;font-size:15px;border-radius:14px;box-shadow:0 4px 0 #173b9f}.secondary{box-shadow:none}.compact-actions{margin-top:2px}
.editing{padding:14px 18px;border-radius:20px}.timeline-cards{gap:9px}.clip>strong{font-size:21px;padding:5px 12px}.clip>span{top:8px;left:8px}.ruler-label{margin:13px 0 6px}.ruler span{height:27px}.ruler-note{margin:5px 0 9px}.duration-option{padding:6px 18px}.duration-option b{font-size:22px}.duration legend{margin-bottom:7px}.tools{margin-top:7px}.hint{padding:10px 16px;margin:6px 0;font-size:14px}
.caption-layout{padding:15px 18px;gap:22px}.caption-preview .scene-art{max-height:230px}.caption-preview>span{padding:6px}.sentence{min-height:82px}.empty-word,.placed{padding:9px 11px}.word-bank{margin:15px 0}.word{padding:10px 17px}.small{margin-top:9px}
.premiere{max-width:620px}.premiere .stage-intro h1{font-size:30px}.premiere .lead{margin-bottom:8px}.movie-controls{margin:9px 0 8px}.media-status{min-height:16px;margin:3px 0;font-size:12px}.film-segments{margin-top:7px}.film-segments span{padding:6px}.completion{margin:9px 0;padding:10px 14px}.completion p{font-size:13px}.completion h2{margin-bottom:2px}.premiere>.actions{margin-top:8px}.premiere>.small{display:none}
footer{display:none}
}

@media(max-width:620px){.scene-task{align-items:flex-start;flex-direction:column;gap:5px;font-size:16px}.scene-task span{margin-left:0}.clue-workspace .scene-details{padding:11px 13px}.choose-scene{min-width:96px}.scene-grid.ordered{grid-template-columns:1fr}.scene-grid.ordered .scene-details{padding:10px 14px}}
