/* CLASSROOM ARCHITECTS — V11 CINEMATIC DESIGN SYSTEM
   Visual-only layer. Does not alter game scoring, Firebase paths, element IDs,
   drag callbacks, or public render contracts. */
:root{--bg:#080b1e;--bg2:#11132e;--surface:#161b3a;--surface2:#202443;--line:#535274;--muted:#c3c4dc;--text:#fff8f3;--accent:#ffd28c;--cyan:#94ffdb;--danger:#ffb7c2;--good:#8fffc9;--deep:#090b20;--cardshadow:0 18px 55px #04071dbb}
html{scroll-behavior:smooth}
body{color:var(--text);background:radial-gradient(ellipse 80% 58% at 110% -10%,#543b77 0%,transparent 70%),radial-gradient(ellipse 50% 50% at -25% 50%,#172e5d 0%,transparent 70%),linear-gradient(165deg,#090b22,#12132c 60%,#090b1d)}
body::before{content:"";position:fixed;inset:0;background-image:radial-gradient(#ffffff73 .55px,transparent .65px),radial-gradient(#ffe8ad50 .75px,transparent .85px);background-position:0 0,70px 90px;background-size:107px 111px,177px 169px;opacity:.20;pointer-events:none;z-index:-1}
.app-shell{max-width:1460px;padding:22px clamp(16px,3vw,44px) 60px}
a:hover{color:#ffe6af}
.topbar{border-bottom:1px solid #af9cb033;margin-bottom:25px;position:relative;z-index:10}
.brand{color:#fff7e8;letter-spacing:.06em}
.logo{background:linear-gradient(140deg,#ffda94,#e9a38a 57%,#d48ce9);box-shadow:0 0 27px #ffa89e5d,0 5px 16px #010314;border-radius:13px}
.nav a,.pill{color:#f6e7f8;background:#1c244bba;border:1px solid #8880a06e;box-shadow:inset 0 1px #ffffff16}
.nav a:hover{background:#564c77;border-color:#f0c799;color:#fff}
.eyebrow{color:#b7fee4;letter-spacing:.16em}
.btn{border:1px solid #9289a6;background:#262b50;box-shadow:inset 0 1px #ffffff1c;color:#fff4ea;border-radius:12px}
.btn:hover:not(:disabled){background:#494063;color:#fff;border-color:#f9bfb2;transform:translateY(-2px)}
.btn.primary{color:#30243e;background:linear-gradient(115deg,#ffe5ad,#ffc18b 58%,#f3a6a7);border-color:#ffe1ae;box-shadow:0 8px 0 #ae6b5b33,0 14px 30px #e9938c2f}
.btn.primary:hover{background:linear-gradient(115deg,#fff4cf,#ffd3a2,#f8b5b7)}
.btn.alt{background:#253a53;border-color:#74beb3;color:#adffe3}
.btn.ghost{background:#1d254788}
.panel{background:linear-gradient(155deg,#222a4cef,#141b37ef);border:1px solid #9583a35e;box-shadow:0 24px 70px #03061680,inset 0 1px #ffffff1c}
.subtle-panel{background:#1a2243;border-color:#67658b}
.feature-icon,.feature .feature-icon{background:#4f466a;color:#ffdca1}
.section-title h2,.panel h2{color:#fff3e3}
.badge{background:#704c62;border-color:#e0a38a;color:#ffe4bb}
.field{background:#0e1937!important;border-color:#7a789e!important;color:#fff!important}
.field::placeholder{color:#aca7c5}
.field:focus-visible{border-color:#eec38a!important}
.timer-panel{background:linear-gradient(135deg,#263b59,#2b2850);border-color:#85799d}
.timer{color:#ffe3a5}
.scoreboard,.team-grid{min-width:0}
.studio-placement,.v4-feedback-rail,.now-play{background:#222d50;border-color:#686f95}
.stage{border-color:#f3d8e3ab;box-shadow:0 12px 42px #05081b}
.story-player{background:#1a2949;border-color:#897ead;box-shadow:0 16px 50px #02071869}
.story-caption{background:#252747;border-color:#857fa1}
.story-caption b{color:#ffe0a7}
.story-player .story-stepper button{background:#353458;border-color:#857eab;color:#f1e4f2}
.story-player .story-stepper button.active{background:#ffe1a5;color:#332a45}
.mission-art-strip{border-color:#f5cb96}
.mission-art-strip span{background:#211c46e8}
.mission-head{border-left-color:#ffca8e}
.profile{background:#282f51;border-color:#6d749d}
.feature p,.muted,.details-cue{color:#d7d5e3}
.page-home .app-shell{max-width:1560px;padding:14px clamp(16px,2.5vw,36px) 35px}
.page-home .topbar{margin-bottom:0;border-bottom:0}
.page-home .brand-lines{display:flex;flex-direction:column;gap:4px}
.page-home .brand-lines strong{font-weight:950;font-size:13px;line-height:1.06;letter-spacing:.13em}
.page-home .brand-lines small{font-size:8px;color:#ded0e5;letter-spacing:.12em}
.page-home .logo{width:52px;height:52px;font-size:28px}
.page-home .nav a{background:#171a35ac}
/* Full cinematic stage, no costly parallax or glass blur. */
.adventure-hero{position:relative;isolation:isolate;min-height:min(775px,calc(100svh - 90px));overflow:hidden;border:1px solid #dfad9a73;border-radius:26px;background:#191b38;box-shadow:0 48px 100px #020412ad;margin-top:8px;display:flex;align-items:center}
.adventure-landscape,.adventure-shade{position:absolute;inset:0;pointer-events:none}
.adventure-landscape img{width:100%;height:100%;object-fit:cover;object-position:center 45%;display:block}
.adventure-shade{background:linear-gradient(90deg,#0a102beD 0%,#0b1430e8 27%,#111432cc 47%,#17172a55 75%,#271c2e22),linear-gradient(0deg,#090b23e8 0%,transparent 27%,#0d14277d 100%)}
.adventure-copy{position:relative;z-index:3;padding:clamp(45px,7vw,100px) clamp(25px,5.4vw,87px) 84px;max-width:860px}
.cinematic-overline{letter-spacing:.22em;color:#aaf9e3;font-weight:950;font-size:11px;line-height:1.6}
.pulse-spark{color:#ffe9a6}
.cinematic-edition{display:inline-block;background:#f8c38f;color:#382338;border-radius:5px;padding:3px 7px;margin-left:7px;font-size:9px;letter-spacing:.07em}
.chapter-kicker{font-size:16px;color:#f8d4b5;letter-spacing:.02em;margin:21px 0 0;font-weight:730}
.adventure-copy h1{font-family:Impact,"Arial Narrow","Arial Black",system-ui,sans-serif;font-size:clamp(60px,6.1vw,105px);font-weight:900;line-height:.99;letter-spacing:.006em;text-shadow:0 7px 30px #01041dbb;margin:22px 0 23px}
.adventure-copy h1 span{color:#ffe1a3}.adventure-copy h1 em{font-style:normal;color:#a8ffe4}
.cinematic-lead{font-size:clamp(15px,1.42vw,18px);line-height:1.7;max-width:600px;color:#f6eefa;text-shadow:0 2px 8px #010312}
.cinematic-lead strong{color:#ffe7b5}
.adventure-actions{display:flex;gap:13px;flex-wrap:wrap;margin:30px 0 20px}
.adventure-actions .btn{min-height:56px;letter-spacing:.06em;font-size:13px;padding:16px 22px}
.adventure-outline{border-color:#fff4cfab;background:#0c1430c9}
.hero-metrics{display:flex;align-items:center;gap:22px;margin-top:33px}
.hero-metrics>span{display:flex;flex-direction:column;gap:4px}.hero-metrics b{font-size:27px;line-height:1;color:#ffe7ab}.hero-metrics small{font-size:10px;letter-spacing:.14em;color:#ddd2dc;font-weight:850}.hero-metrics i{height:28px;border-left:1px solid #f9ddc359}
.hero-character{position:absolute;z-index:2;pointer-events:none;filter:drop-shadow(0 16px 19px #170e2bbd)}
.hero-character img{display:block;width:100%;height:100%;object-fit:contain}
.character-teacher{width:clamp(130px,16vw,250px);height:clamp(245px,38vw,525px);right:5%;bottom:-1%}
.character-student{width:clamp(120px,12vw,183px);height:clamp(190px,24vw,360px);right:22%;bottom:-1%}
.starline{position:absolute;font-size:38px;z-index:1;color:#ffe7bd;opacity:.85;text-shadow:0 0 16px #fff7d7}
.starline-a{right:13%;top:14%}.starline-b{right:36%;top:25%;color:#9cffe3;font-size:25px}
.hero-scroll{position:absolute;z-index:4;bottom:21px;right:25px;letter-spacing:.16em;color:#fce5ce;font-size:10px;font-weight:850}.hero-scroll span{font-size:17px;padding-left:8px}
.chapter-world{padding:86px 12px 55px}
.chapter-section-head{text-align:center;max-width:940px;margin:0 auto 38px}
.chapter-line{display:block;background:linear-gradient(90deg,transparent,#ffc788,transparent);height:1px;width:240px;margin:0 auto 20px}
.chapter-section-head h2,.narrative-text h2,.join-world h2{font-family:Impact,"Arial Narrow","Arial Black",sans-serif;font-weight:900;letter-spacing:.012em;font-size:clamp(39px,4.3vw,65px);line-height:1.13;margin:16px 0}
.chapter-section-head h2 em,.narrative-text h2 em,.join-world h2 em{font-style:normal;color:#ffdaa1}
.chapter-section-head p{max-width:730px;margin:0 auto;color:#d0cfdf;font-size:16px;line-height:1.6}
.world-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:19px;max-width:1360px;margin:0 auto}
.world-card{position:relative;display:block;min-height:346px;grid-column:span 2;border:2px solid #b6a2c09c;border-radius:20px;overflow:hidden;background:#12182c;box-shadow:0 16px 40px #040418a6;isolation:isolate;color:#fff;transition:transform .2s ease,border-color .2s ease}
.world-card:nth-child(1),.world-card:nth-child(2){grid-column:span 3;min-height:415px}
.world-card:hover{transform:translateY(-6px);border-color:#ffdb9d;color:#fff}
.world-card:focus-visible{outline:3px solid #ffe0a5;outline-offset:4px}
.world-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 36%;display:block;transition:transform .38s ease}
.world-card:hover>img{transform:scale(1.04)}
.world-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#111026fa 0%,#111026e7 16%,#11102660 53%,#140e2016 100%)}
.world-number,.world-identity{position:absolute;top:18px;background:#12132cd9;border:1px solid #ffe0b57a;border-radius:7px;color:#ffe4b5;padding:8px 12px;letter-spacing:.13em;font-weight:950;font-size:10px}
.world-number{left:17px}.world-identity{right:17px;background:#f4c9a3;color:#33213c;border-color:#fff1da}
.world-copy{position:absolute;bottom:0;left:0;right:0;padding:26px 25px 22px;display:flex;flex-direction:column;gap:8px}
.world-glyph{font-size:24px;color:#ffeead}.world-copy strong{font-size:clamp(23px,2.2vw,33px);line-height:1.06;font-weight:950;letter-spacing:-.035em}.world-copy small{font-size:13px;color:#e5dbe5;max-width:410px;line-height:1.5}.world-explore{display:flex;justify-content:space-between;border-top:1px solid #ffffff45;padding-top:12px;margin-top:12px;font-size:10px;letter-spacing:.12em;font-weight:950;color:#aef6df}.world-explore b{font-size:16px;color:#ffe0aa}
.chapter-endnote{text-align:center;font-size:12px;margin-top:25px;color:#c9c7de}
.narrative-section{position:relative;isolation:isolate;display:grid;grid-template-columns:300px 1fr;align-items:center;gap:45px;max-width:1240px;margin:45px auto 90px;padding:32px 55px;border:1px solid #ba92b1;border-radius:25px;background:radial-gradient(circle at 20% 20%,#5e5178,transparent 42%),linear-gradient(110deg,#2f3c63,#221e3e);overflow:hidden}
.narrative-section::after{content:'✦';position:absolute;font-size:290px;color:#ffffff0c;right:20px;top:-72px;pointer-events:none;z-index:-1}
.narrative-character{height:300px;align-self:end;display:flex;align-items:flex-end;justify-content:center}
.narrative-character img{display:block;max-height:330px;max-width:100%;object-fit:contain;filter:drop-shadow(0 11px 16px #08091b8f)}
.narrative-text h2{font-size:clamp(35px,4vw,56px)}.narrative-text p{color:#e0d9e8;line-height:1.75;max-width:720px;font-size:15px}
.narrative-steps{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}
.narrative-steps span{border:1px solid #ebbbac8a;background:#171c3b8f;padding:11px 15px;border-radius:9px;font-size:11px;font-weight:850;letter-spacing:.1em}
.narrative-steps b{color:#ffdaa2;font-size:16px;margin-right:9px}
.join-world{max-width:1320px;margin:auto;padding:35px 0 70px;text-align:center}
.join-world h2{margin:16px auto 30px}
.role-worlds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;text-align:left}
.role-card{border:1px solid #bba6b795;border-radius:20px;min-height:300px;padding:28px;background:radial-gradient(circle at 90% 8%,#4c497b,transparent 55%),linear-gradient(145deg,#262444,#161c37);display:flex;flex-direction:column;color:#fdf7f0;transition:transform .18s,border-color .18s}
.role-card:hover{transform:translateY(-5px);color:#fff;border-color:#ffdda2}
.role-symbol{font-size:39px;color:#ffe1a8;margin-bottom:27px;line-height:1}
.role-card>span{color:#bafbe1;letter-spacing:.17em;font-weight:850;font-size:10px}
.role-card h3{font-size:26px;letter-spacing:-.025em;margin:11px 0}
.role-card p{color:#d4d1e6;line-height:1.55;font-size:14px;flex:1}
.role-card>b{border-top:1px solid #d5bed75c;padding-top:14px;font-size:12px;letter-spacing:.09em;color:#ffdbab}
.cinematic-utility{display:flex;align-items:center;justify-content:space-between;gap:30px;max-width:1280px;margin:0 auto 55px;border:1px solid #79739888;background:#13172ed5;border-radius:16px;padding:26px 30px}
.cinematic-utility h3{margin:9px 0;font-size:25px}.cinematic-utility p{color:#c8c8da;font-size:13px;line-height:1.5;margin:0;max-width:610px}
.cinematic-utility .adventure-actions{margin:0}.cinematic-utility .btn{min-height:42px;font-size:11px}
.cinematic-footer{border-top:1px solid #9d829257;padding:27px 6px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;color:#f5d7cf;font-size:10px;font-weight:850;letter-spacing:.12em}
.cinematic-footer small{color:#a9a8c7}
/* Entry screens, elevated from admin dashboard into game portals. */
.page-host #createPanel,.page-captain #joinPanel,.page-projector #projectorJoin{position:relative;isolation:isolate;overflow:hidden;border:1px solid #f4bfae9c;background:linear-gradient(100deg,#242448f4,#171b38e5);min-height:420px;box-shadow:0 25px 65px #04061ab0}
.page-host #createPanel::before,.page-captain #joinPanel::before,.page-projector #projectorJoin::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#15152fe8,transparent 80%),url('../assets/backgrounds/lobby.webp') center/cover;opacity:.26;z-index:-1}
.page-host #createPanel h2,.page-captain #joinPanel h2,.page-projector #projectorJoin h1{font-family:Impact,"Arial Narrow",sans-serif;letter-spacing:.015em;font-size:clamp(34px,4vw,53px);margin:17px 0}
.page-host #createPanel{max-width:850px!important;min-height:510px;padding:36px clamp(24px,4vw,54px)}
.page-host #createPanel .details-cue{max-width:520px;font-size:16px;line-height:1.7}
.page-host #createPanel #createBtn{position:relative;z-index:2;min-height:56px;min-width:245px;font-size:16px}
.cinematic-smallmark{color:#b8fbe0;font-size:11px;font-weight:850;letter-spacing:.15em}
.cinematic-host-art{position:absolute;right:5%;bottom:-20px;height:350px;opacity:.7;pointer-events:none;z-index:-1}
.cinematic-host-art img{height:100%;width:auto;filter:drop-shadow(0 8px 15px #090925)}
.page-captain #joinPanel{max-width:650px!important;padding:35px 34px}
.page-captain #joinPanel form{position:relative;z-index:1;max-width:415px}
.cinematic-captain-art{position:absolute;right:0;bottom:-5px;height:280px;opacity:.45;z-index:-1;pointer-events:none}
.cinematic-captain-art img{height:100%;width:auto}
.page-host .heading-line>div>h1,.page-captain .heading-line>div>h1,.page-preview .heading-line>div>h1{font-family:Impact,"Arial Narrow",sans-serif;letter-spacing:.015em;font-size:clamp(36px,5.3vw,68px)!important;text-transform:uppercase}
.page-host .room-code{font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(59px,7vw,100px);letter-spacing:.1em;color:#ffe0aa;text-shadow:0 4px 24px #f3bd8a33}
.page-host #roomPanel .panel{border-color:#91789d70}
.page-host #currentMission,.page-captain #captainBrief{position:relative;overflow:hidden}
.page-host #currentMission::before{content:'✦';font-size:92px;color:#fff3e215;position:absolute;right:10px;top:4px;pointer-events:none}
.page-captain #captainBrief{background:linear-gradient(145deg,#312b56,#1b2645);border:1px solid #987da6}
.page-preview #missionInfo{padding:17px 23px;background:linear-gradient(110deg,#3a3155,#222a4b);border:1px solid #9882a0;border-left:5px solid #ffd294;border-radius:14px}
.page-preview .stepper{background:#191f40;padding:15px;border:1px solid #685b85;border-radius:15px}
.page-preview .builder,.page-captain .builder{gap:26px}
.page-projector .projector{max-width:1280px;margin:auto}
.page-projector .projector .hero-name{font-family:Impact,"Arial Narrow",sans-serif;font-size:clamp(47px,7vw,105px);letter-spacing:.01em;line-height:1.07;color:#ffe0ab;text-shadow:0 8px 23px #0b0a22}
.page-projector .projector-art-banner{max-width:1120px;box-shadow:0 30px 50px #080922; border-color:#ffd89c}
.page-projector .projector-art-banner img{height:clamp(240px,32vw,440px)}
.page-projector #projectorJoin{max-width:680px!important;margin:52px auto;text-align:center;padding:42px 35px}
.page-projector #projectorJoin .horizontal{margin-top:35px}
.page-projector .mission-no{letter-spacing:.2em;color:#b9ffdc}
.page-projector #projectorResults{background:#191b38f2}
.page-projector #projectorScene{max-width:1060px;margin:20px auto}
.page-gallery .vault-card,.page-gallery .vault-dialog-inner{background:#212747;border-color:#83779d}
/* Responsive, performance-sensitive: no infinitely animated whole-page backdrops. */
@media(max-width:1140px){.adventure-copy{max-width:770px}.adventure-copy h1{font-size:clamp(56px,6.5vw,82px)}.character-teacher{right:1%;width:165px}.character-student{right:16%;width:118px}.adventure-shade{background:linear-gradient(90deg,#0a102bf2 0%,#0b1430d9 44%,#141c3866 100%),linear-gradient(0deg,#080b23bb,transparent 55%)}.world-card:nth-child(n){grid-column:span 3}}
@media(max-width:780px){.adventure-hero{min-height:710px}.adventure-copy{padding:45px 28px 155px}.adventure-copy h1{font-size:clamp(53px,10vw,80px)}.cinematic-lead{max-width:520px}.hero-character{opacity:.72}.character-teacher{width:126px;height:270px;right:1%;bottom:0}.character-student{width:94px;height:210px;right:18%;bottom:0}.chapter-world{padding-top:55px}.world-grid{gap:12px}.world-card:nth-child(n){grid-column:span 3;min-height:330px}.world-copy{padding:15px}.world-copy strong{font-size:24px}.world-copy small{font-size:12px}.narrative-section{grid-template-columns:165px 1fr;padding:24px;gap:22px}.narrative-character{height:250px}.narrative-character img{max-height:270px}.role-worlds{grid-template-columns:1fr}.role-card{min-height:225px}.role-symbol{margin-bottom:13px}.cinematic-utility{flex-direction:column;align-items:flex-start}}
@media(max-width:560px){.page-home .app-shell{padding:9px 10px 35px}.page-home .brand-lines small{display:none}.page-home .brand-lines strong{font-size:10px}.page-home .logo{width:43px;height:43px}.page-home .topbar{gap:10px;padding-bottom:15px}.page-home .nav{gap:5px}.page-home .nav a{font-size:9px;padding:7px 9px}.page-home .nav a[href="#chapters"],.page-home .nav a[href="projector.html"]{display:none}.adventure-hero{min-height:730px;border-radius:17px}.adventure-landscape img{object-position:60% 50%}.adventure-shade{background:linear-gradient(180deg,#0b1026d9,#11142fe3 54%,#0b0b24c9),linear-gradient(90deg,#080c1dcc,transparent)}.adventure-copy{padding:44px 20px 175px;align-self:flex-start}.adventure-copy h1{font-size:clamp(48px,11.2vw,68px);line-height:1.03;margin-top:18px}.cinematic-overline{letter-spacing:.11em;font-size:9px}.cinematic-edition{display:none}.chapter-kicker{font-size:13px;margin-top:12px}.cinematic-lead{font-size:14px;line-height:1.55}.adventure-actions{gap:8px;margin:18px 0}.adventure-actions .btn{min-height:44px;font-size:10px;padding:12px}.hero-metrics{gap:17px;margin-top:15px}.hero-metrics b{font-size:21px}.hero-metrics small{font-size:8px}.character-teacher{width:95px;height:210px;right:1%;opacity:.8}.character-student{width:86px;height:180px;right:20%;opacity:.8}.hero-scroll{font-size:8px;right:12px;bottom:12px}.chapter-world{padding:45px 2px}.chapter-section-head h2,.join-world h2{font-size:37px}.chapter-section-head p{font-size:13px}.world-grid{grid-template-columns:1fr;gap:12px}.world-card:nth-child(n){grid-column:1;min-height:300px}.world-card:nth-child(1){min-height:360px}.world-card>img{object-position:center 42%}.world-copy strong{font-size:28px}.world-number,.world-identity{font-size:9px;padding:7px 10px}.narrative-section{grid-template-columns:1fr;margin:5px auto 60px;padding:22px}.narrative-character{height:150px;order:2;justify-content:flex-end}.narrative-character img{max-height:160px}.narrative-text h2{font-size:39px}.narrative-steps span{padding:9px 10px;font-size:9px}.join-world{padding-top:10px}.cinematic-utility{padding:18px}.cinematic-footer{font-size:9px}.page-host #createPanel{padding:27px 19px;min-height:460px}.cinematic-host-art{height:230px;opacity:.23}.page-captain #joinPanel{padding:26px 20px}.cinematic-captain-art{opacity:.2}.page-projector #projectorJoin{margin:20px auto;padding:28px 20px}}
@media(prefers-reduced-motion:reduce){.world-card,.world-card>img,.role-card{transition:none!important}.world-card:hover,.world-card:hover>img,.role-card:hover{transform:none!important}}
/* Story-like choice making, not a corporate form: visual only. */
.layout.builder>.panel{position:relative;overflow:hidden;border-top:3px solid #ffd4a0}
.layout.builder>.panel::before{content:'✦  EVERY CHOICE CHANGES THE CLASSROOM';display:block;color:#bff8df;font-size:10px;font-weight:900;letter-spacing:.14em;border-bottom:1px solid #d3bed34a;padding:0 0 15px;margin-bottom:18px}
.layout.builder .mission-head h2{font-family:Impact,'Arial Narrow',sans-serif;font-size:clamp(29px,3vw,44px);letter-spacing:.014em;line-height:1.09;color:#ffe2b0;text-transform:uppercase}
.layout.builder .stepper{padding:10px;background:#101731a6;border-radius:14px;border:1px solid #76648e7a;gap:7px}
.layout.builder .step{flex:1 1 auto;padding:11px 10px;background:#272a50;border:1px solid #807299;color:#ece0ef;min-height:43px}
.layout.builder .step.active{background:linear-gradient(110deg,#ffe0a6,#ffc2a4);color:#2a2240;border-color:#ffdfa3;box-shadow:0 3px 16px #e7ad9e3a}
.layout.builder .step.done:not(.active){color:#aaf9d9;border-color:#4eaf95}
.layout.builder .option-grid{gap:13px}
.layout.builder .option{background:linear-gradient(125deg,#2c3056,#222749);border:1px solid #776a9c;color:#fff5ef;border-radius:15px;padding:18px 52px 18px 20px;box-shadow:inset 0 1px #ffffff0c;min-height:100px;transition:border-color .14s,background .14s,transform .14s}
.layout.builder .option:hover{transform:translateY(-2px);background:#38355f;border-color:#efc39b}
.layout.builder .option.active{border:2px solid #ffd29a;background:linear-gradient(125deg,#454061,#343458);box-shadow:0 0 0 2px #ffd59b25,0 10px 23px #07091d75}
.layout.builder .option strong{font-size:15px;color:#fff3e5}
.layout.builder .option span:not(.check){color:#d2d0e7;font-size:13px;line-height:1.6}
.layout.builder .resource{background:#252b50;border-color:#756c97;border-radius:13px;padding:15px}
.layout.builder .resource:has(input:checked){background:#3c3d60;border-color:#ffd4a0}
.layout.builder .resource-thumb{border:1px solid #eacfb2;background:#f5e5db}
.layout.builder .money b{color:#ffe0a2}
.layout.builder .bar{background:#161930}.layout.builder .bar>span{background:linear-gradient(90deg,#74d8b6,#ffe1a3)}
.layout.builder>.sticky>.stage{border:4px solid #e7c9d6;box-shadow:0 18px 50px #03061da0}
.layout.builder .mission-art-strip{border:2px solid #cdb3a3;box-shadow:0 13px 31px #070917a0}
.layout.builder .mission-art-strip img{height:clamp(150px,18vw,235px)}
.layout.builder .mission-art-strip span{background:#211d42d9;border:1px solid #ffc993a6;letter-spacing:.14em}
.layout.builder .studio-placement{background:#2a2f53}
.page-host .team-card{background:#252c50;border-color:#676b94;border-radius:13px}
.page-host .team-card.joined{border-color:#83e5bd;background:#244d50}
.page-host .score-row,.page-captain .score-row,.page-projector .score-row{background:linear-gradient(120deg,#363354,#24294b);border-color:#8680a5}
.page-host .score-row .position,.page-projector .score-row .position{background:#694e67;color:#ffdfae}
.page-host .score-row .points,.page-projector .score-row .points{color:#aaf4cf}
.page-preview #resultMount>.panel,.page-captain #captainResult>.panel{border-top:3px solid #ffd391}
.page-preview .result-big,.page-captain .result-big{color:#ffdfa8;text-shadow:0 7px 30px #f9ca8450}
@media(max-width:560px){.layout.builder .stepper{gap:5px;padding:7px}.layout.builder .step{font-size:10px;min-height:37px;padding:7px}.layout.builder .option{padding:14px 41px 14px 13px;min-height:90px}.layout.builder .mission-art-strip img{height:140px}}
@media(prefers-reduced-motion:reduce){.layout.builder .option{transition:none!important}.layout.builder .option:hover{transform:none!important}}


/* V12 · CINEMATIC CLASSROOM THEATER: real illustrated worlds + an optional precise planning view */
.ca-plan-room{display:none}.ca-world-room{display:block}.scene-evolve.is-plan .ca-plan-room{display:block}.scene-evolve.is-plan .ca-world-room{display:none}
.theater-stage{position:relative;overflow:hidden;background:#18223e!important;border:3px solid #f5d1a7!important;border-radius:18px;box-shadow:0 15px 48px #05091db3,0 0 0 1px #f8d9ad55!important;isolation:isolate}
.theater-stage .classroom-svg{border-radius:15px}.theater-stage::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;box-shadow:inset 0 0 70px #0a122b3b}
.theater-marquee{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:15px 18px;background:linear-gradient(110deg,#3d315e,#262a4e 60%,#2d345b);border:1px solid #a58aa2;border-radius:16px 16px 6px 6px;color:#ffeed6;box-shadow:0 12px 25px #070a24aa}
.theater-marquee strong{font-size:clamp(15px,1.65vw,22px);font-weight:950;letter-spacing:.035em}.theater-mission-tag{border:1px solid #f2c4ad;background:#191e40aa;padding:7px 9px;border-radius:7px;font-size:10px;font-weight:950;color:#fbd6a5;letter-spacing:.07em}
.theater-live-dot{color:#b6ffdd;font-size:10px;font-weight:900;letter-spacing:.11em;white-space:nowrap}.theater-live-dot::first-letter{color:#67e6ab}
.theater-controls{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px!important;padding:10px!important;margin-top:0!important;background:#202747;border:1px solid #6d6c93;border-top:0;border-radius:0 0 13px 13px}.theater-control-group{display:flex;gap:6px;flex-wrap:wrap}.theater-controls .btn{min-height:35px;font-size:11px;border-radius:9px!important;padding:7px 10px!important}
.director-console{margin-top:15px;background:linear-gradient(143deg,#2b2951,#202a4c);border:1px solid #ac90a9;border-radius:18px;padding:22px;box-shadow:0 14px 30px #08092280}
.director-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.director-heading h3{font-size:21px;color:#fff0dd;letter-spacing:-.02em;margin:7px 0 13px}.director-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;color:#baf4df}.director-progress{width:54px;height:54px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#4f4068;border:2px solid #ffdbab;font-size:25px;font-weight:950;color:#ffdeb2}.director-progress small{font-size:12px;color:#e9bfd0;margin-left:-6px}.director-meter{height:6px;background:#0f1c38;border-radius:100px;overflow:hidden;margin:2px 0 18px}.director-meter span{display:block;height:100%;background:linear-gradient(90deg,#7ee8c2,#f6cf9b);border-radius:100px;transition:width .24s}
.director-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.director-route{display:flex;gap:10px;align-items:center;background:#171e3d;border:1px solid #625d84;border-radius:12px;padding:11px;min-width:0;min-height:77px}.director-route.is-chosen{border-color:#cfae93;background:#363251}.route-icon{font-size:25px;color:#93e0ca;width:24px;text-align:center;flex:none}.director-route>span:nth-child(2){flex:1;min-width:0}.director-route small{display:block;color:#b2b3d6;letter-spacing:.1em;font-size:9px;font-weight:900;margin-bottom:5px}.director-route b{font-size:12px;line-height:1.35;display:block;color:#f9eadf;overflow-wrap:anywhere}.route-check{font-size:15px;color:#bff4dc;font-weight:900}
.director-flash{display:flex;gap:12px;align-items:flex-start;border-left:3px solid #ffd49c;background:#413654;border-radius:5px 12px 12px 5px;padding:12px 14px;margin-top:15px}.director-flash-icon{color:#ffd5a4;font-size:25px}.director-flash small{font-size:9px;font-weight:900;letter-spacing:.14em;color:#ffe0b2}.director-flash p{font-size:13px;margin:4px 0 0;color:#f6e8e4;line-height:1.45}.director-equipment{font-size:12px;line-height:1.6;color:#d0daea;margin:15px 0 7px}.director-equipment b{color:#a1f0d1}.director-disclaimer{border-top:1px solid #817a96;font-size:11px;color:#bfc5da;line-height:1.55;padding-top:11px;margin:7px 0 0}
.theater-tips{border:1px solid #777196;background:#202a4d;border-radius:11px;margin-top:12px;color:#f9deae}.theater-tips>summary{cursor:pointer;padding:12px 16px;font-size:12px;font-weight:850}.theater-tips>.panel{border:0;box-shadow:none;padding:14px!important}
.story-player .ca-plan-room{display:none}.story-player .ca-world-room,.page-projector .ca-world-room{display:block}.story-player .story-screen{border:2px solid #f8ceac;border-radius:15px;overflow:hidden;background:#121b39}.story-player .ca-stage-overlay{filter:drop-shadow(0 2px 6px #0007)}
.scene-phase-observe .ca-world-room image{opacity:.82}.scene-phase-reflect .ca-world-room image{opacity:1}.story-player .story-beat.is-current .story-screen{animation:ca-scene-arrival .35s ease-out both}@keyframes ca-scene-arrival{from{opacity:.7;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.scene-evolve.is-plan .ca-world-sheen{display:none}.scene-evolve .ca-choice-prop{filter:drop-shadow(0 4px 6px #03041a55)}
@media(min-width:1080px){.page-preview .layout.builder,.page-captain .layout.builder{grid-template-columns:minmax(0,.9fr) minmax(0,1.28fr)!important}.director-heading h3{font-size:23px}}
@media(max-width:600px){.theater-marquee{padding:11px;justify-content:center;text-align:center}.theater-mission-tag{font-size:9px}.theater-marquee strong{font-size:15px}.theater-live-dot{font-size:9px}.director-console{padding:15px}.director-routes{gap:7px}.director-route{padding:9px;min-height:68px;gap:7px}.route-icon{font-size:19px;width:18px}.director-route b{font-size:10.5px}.director-heading h3{font-size:17px}.theater-controls{justify-content:center}.theater-control-group{justify-content:center}.theater-controls .btn{font-size:10px!important;padding:6px 8px!important}}
@media(max-width:780px){.layout.builder{display:flex;flex-direction:column;gap:0!important}.layout.builder>.sticky{display:contents}.layout.builder>.sticky>.theater-marquee{order:0}.layout.builder>.sticky>.theater-stage{order:1}.layout.builder>.sticky>.theater-controls{order:2;margin-bottom:15px}.layout.builder>.panel{order:3}.layout.builder>.sticky>.director-console{order:4}.layout.builder>.sticky>.studio-placement{order:5}.layout.builder>.sticky>.theater-tips{order:6}.ca-jump-scene{display:flex;width:100%;margin:0 0 15px;color:#ffdca8!important;border-color:#9a789a!important}}
@media(min-width:781px){.ca-jump-scene{display:none!important}}
@media(max-width:370px){.director-routes{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.director-meter span,.story-player .story-beat.is-current .story-screen{animation:none!important;transition:none!important}}
html[data-quality="smooth"] .story-player .story-beat.is-current .story-screen{animation:none!important}
