@font-face{font-family:Nunito;src:url('../assets/NunitoSans.ttf') format('truetype');font-display:swap}
:root{--ink:#182638;--paper:#fbfaf6;--stage:#dfe6e9;--blue:#286fc9;--blue-dark:#1e5eaf;--green:#238a73;--coral:#e46149;--line:#b9c5cd;--shadow:0 18px 45px rgba(15,31,45,.22)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#101923}button,a{font:inherit}button{cursor:pointer}.review-bar{height:64px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;color:#edf4f7;background:#101923;border-bottom:1px solid #30414d}.review-bar>div{display:flex;align-items:baseline;gap:14px}.review-bar strong{font-size:18px}.review-bar span{font-size:12px;color:#9eacb7}.review-bar nav{display:flex;gap:6px;align-items:center}.review-bar nav i{width:1px;height:24px;background:#40505d;margin:0 7px}.review-bar button{min-height:36px;padding:0 15px;color:#d9e3e8;background:#1c2a35;border:1px solid #3a4b58;border-radius:9px;font-weight:800}.review-bar button.is-active{background:#eef6f8;color:#182638}.review-stage{min-height:calc(100dvh - 64px);display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 50% 20%,#334754 0,#17232c 55%,#0e161d 100%)}.device{position:relative;width:844px;height:390px;overflow:hidden;border-radius:28px;background:#0d1720;box-shadow:0 0 0 8px #273745,0 0 0 10px #5e6b74,var(--shadow)}.screen{position:absolute;inset:0;overflow:hidden}.splash-screen{display:none;background:#12202d;color:#fff}.device[data-screen="splash"] .splash-screen{display:block}.device[data-screen="lobby"] .lobby-screen{display:block}.splash-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.02)}.splash-wash{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,24,34,.88) 0%,rgba(8,24,34,.45) 55%,rgba(8,24,34,.2)),linear-gradient(0deg,rgba(5,18,27,.58),transparent 60%)}.splash-safe{position:absolute;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));z-index:2;display:flex;justify-content:space-between;font-weight:800;font-size:11px}.splash-safe--top{top:max(10px,env(safe-area-inset-top))}.splash-safe--bottom{bottom:max(8px,env(safe-area-inset-bottom))}.system-icons{font-size:8px;letter-spacing:1px}.brand-lockup,.lobby-brand{display:flex;align-items:center;gap:8px}.splash-screen .brand-lockup{position:absolute;z-index:2;left:28px;top:45px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--blue);color:#fff;font-size:21px;font-weight:1000;transform:skew(-5deg)}.brand-word{font-size:23px;font-weight:1000;letter-spacing:-1.5px}.brand-word span{color:#58a993}.splash-copy{position:absolute;z-index:2;left:28px;top:115px;max-width:390px}.eyebrow{font-size:9px;font-weight:1000;letter-spacing:1.8px;color:#97c8ff}.splash-copy h1{margin:8px 0 0;font-size:38px;line-height:1.02;letter-spacing:-1.6px}.load-panel{position:absolute;z-index:2;left:28px;bottom:30px;width:360px;padding:14px 16px 12px;border:1px solid rgba(255,255,255,.33);border-radius:16px;background:rgba(248,250,247,.94);color:var(--ink);box-shadow:0 12px 28px rgba(4,17,25,.25)}.load-line{display:flex;justify-content:space-between;font-size:12px}.load-line strong{font-weight:900}.load-line span{color:var(--blue);font-weight:1000}.load-track{height:6px;margin:8px 0 5px;border-radius:99px;background:#dbe2e5;overflow:hidden}.load-track span{display:block;width:72%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),#62a5f4);animation:load 1.8s ease-in-out infinite alternate}.load-panel p{margin:0;color:#62717e;font-size:10px}.lobby-screen{display:none;background:var(--stage)}.lobby-header{height:58px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));display:grid;grid-template-columns:180px 1fr 160px;align-items:center;border-bottom:1px solid #adb9c0;background:var(--paper)}.lobby-brand{color:inherit;text-decoration:none}.lobby-brand .brand-mark{width:31px;height:31px;border-radius:10px;font-size:19px}.lobby-brand .brand-word{font-size:21px}.mode-tabs{height:100%;display:flex;justify-content:center;gap:6px}.mode-tabs button{position:relative;min-width:150px;padding:0 15px;border:0;background:transparent;color:#64717c;font-size:12px;font-weight:900}.mode-tabs button:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:transparent}.mode-tabs button.is-active{color:var(--blue)}.mode-tabs button.is-active:after{background:var(--blue)}.mode-icon{display:inline-block;width:18px;height:18px;margin-right:7px;vertical-align:-5px;border:2px solid currentColor;border-radius:6px}.mode-icon--search:after{content:"";display:block;width:5px;height:5px;margin:4px;border:2px solid currentColor;border-radius:50%}.mode-icon--split{border-radius:4px;background:linear-gradient(90deg,transparent 44%,currentColor 44% 56%,transparent 56%)}.header-actions{display:flex;justify-content:flex-end;gap:7px}.header-actions button{display:grid;place-items:center;width:36px;height:36px;border:1px solid #bdc8ce;border-radius:11px;background:#fff;color:#334454;font-weight:900}.header-actions .avatar{border:0;background:#e2eee8;color:#247a68}.lobby-body{height:calc(100% - 58px);display:grid;grid-template-columns:minmax(320px,.94fr) minmax(420px,1.35fr);gap:12px;padding:12px max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.continue-card{position:relative;min-width:0;overflow:hidden;border-radius:17px;border:1px solid #8da0aa;background:#21303c;box-shadow:0 8px 17px rgba(35,56,68,.18)}.continue-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.continue-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,28,40,.9) 0%,rgba(11,28,40,.5) 67%,transparent),linear-gradient(0deg,rgba(9,24,35,.65),transparent 50%)}.continue-copy{position:absolute;left:19px;right:18px;bottom:17px;color:#fff}.continue-kicker{font-size:8px;font-weight:1000;letter-spacing:1.2px;color:#9ed1ff}.continue-copy h1{margin:5px 0 1px;font-size:25px;line-height:1.05;letter-spacing:-.7px}.continue-copy p{margin:0 0 8px;font-size:10px;color:#e0e9ee}.progress{width:120px;height:4px;border-radius:99px;background:rgba(255,255,255,.28);overflow:hidden}.progress span{display:block;width:42%;height:100%;background:#54b59d}.primary-play{position:absolute;right:0;bottom:0;height:44px;min-width:122px;padding:0 9px 0 17px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;border-radius:13px;background:var(--blue);color:#fff;font-size:13px;font-weight:1000;box-shadow:0 3px 0 #164b8a}.primary-play:active{transform:translateY(1px);box-shadow:0 2px 0 #164b8a}.primary-play b{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#fff;color:var(--blue);font-size:17px}.discover-panel{min-width:0;padding:14px 14px 10px;border:1px solid #b3c0c7;border-radius:17px;background:var(--paper);box-shadow:0 7px 17px rgba(35,56,68,.1)}.discover-heading{height:47px;display:flex;align-items:flex-start;justify-content:space-between}.discover-heading span{font-size:7px;font-weight:1000;letter-spacing:1.2px;color:var(--blue)}.discover-heading h2{margin:1px 0 0;font-size:17px;letter-spacing:-.35px}.filter{width:34px;height:34px;border:1px solid #bdc8ce;border-radius:10px;background:#fff;color:#435563}.scene-row{height:210px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.scene-card{min-width:0;padding:0;overflow:hidden;text-align:left;border:1px solid #bac5ca;border-radius:13px;background:#fff;color:var(--ink);box-shadow:0 3px 0 #c6ced1}.scene-card.is-selected{border:2px solid var(--blue);box-shadow:0 3px 0 #95add0}.scene-image{position:relative;display:block;height:112px;overflow:hidden}.scene-image img{width:100%;height:100%;object-fit:cover;transition:transform .22s ease}.scene-card:hover .scene-image img{transform:scale(1.035)}.scene-image em{position:absolute;left:7px;bottom:7px;padding:3px 6px;border-radius:7px;background:rgba(18,36,49,.84);color:#fff;font-size:7px;font-style:normal;font-weight:900}.scene-info{display:block;padding:8px 9px}.scene-info small,.scene-info strong,.scene-info>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.scene-info small{font-size:7px;font-weight:900;color:var(--blue)}.scene-info strong{margin:2px 0 0;font-size:11px}.scene-info>span{font-size:8px;color:#667681}.scene-card--locked .scene-image img{filter:grayscale(.25) brightness(.75)}.scene-card--locked .scene-image:after{content:"";position:absolute;inset:0;background:rgba(23,37,48,.22)}.library-footer{height:30px;display:flex;align-items:flex-end;justify-content:space-between;font-size:8px;color:#677681}.library-footer b{color:var(--blue)}.pager{display:flex;align-items:center;gap:5px}.pager button{width:23px;height:23px;border:1px solid #c0c9ce;border-radius:8px;background:#fff}.pager i{width:5px;height:5px;border-radius:50%;background:#c0c9ce}.pager i.active{width:14px;border-radius:8px;background:var(--blue)}.rotate-note{display:none}.device[data-device="tablet"]{width:1024px;height:768px;border-radius:31px}.device[data-device="tablet"] .lobby-header{height:76px;grid-template-columns:210px 1fr 200px;padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}.device[data-device="tablet"] .lobby-body{height:calc(100% - 76px);grid-template-columns:1.15fr 1fr;grid-template-rows:1fr;padding:18px 22px 22px;gap:18px}.device[data-device="tablet"] .continue-card,.device[data-device="tablet"] .discover-panel{border-radius:23px}.device[data-device="tablet"] .continue-copy{left:30px;right:27px;bottom:28px}.device[data-device="tablet"] .continue-copy h1{font-size:38px}.device[data-device="tablet"] .continue-copy p{font-size:13px;margin-bottom:14px}.device[data-device="tablet"] .continue-kicker{font-size:10px}.device[data-device="tablet"] .progress{width:180px;height:6px}.device[data-device="tablet"] .primary-play{height:54px;min-width:155px;font-size:16px}.device[data-device="tablet"] .discover-panel{padding:24px}.device[data-device="tablet"] .discover-heading{height:74px}.device[data-device="tablet"] .discover-heading span{font-size:9px}.device[data-device="tablet"] .discover-heading h2{font-size:25px}.device[data-device="tablet"] .filter{width:44px;height:44px}.device[data-device="tablet"] .scene-row{height:520px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}.device[data-device="tablet"] .scene-card:last-child{grid-column:1/-1}.device[data-device="tablet"] .scene-card:last-child{display:grid;grid-template-columns:1fr 1fr}.device[data-device="tablet"] .scene-card:last-child .scene-image{height:100%}.device[data-device="tablet"] .scene-image{height:157px}.device[data-device="tablet"] .scene-info{padding:12px 13px}.device[data-device="tablet"] .scene-info small{font-size:9px}.device[data-device="tablet"] .scene-info strong{font-size:15px}.device[data-device="tablet"] .scene-info>span{font-size:10px}.device[data-device="tablet"] .library-footer{height:39px;font-size:10px}.device[data-device="tablet"] .splash-screen .brand-lockup{left:54px;top:80px}.device[data-device="tablet"] .splash-copy{left:54px;top:210px}.device[data-device="tablet"] .splash-copy h1{font-size:62px}.device[data-device="tablet"] .eyebrow{font-size:12px}.device[data-device="tablet"] .load-panel{left:54px;bottom:64px;width:460px;padding:19px 20px 16px;border-radius:20px}.device[data-device="tablet"] .load-line{font-size:15px}.device[data-device="tablet"] .load-track{height:8px;margin:11px 0 7px}.device[data-device="tablet"] .load-panel p{font-size:12px}.device[data-device="tablet"] .splash-safe{left:38px;right:38px;top:18px;font-size:13px}.device[data-screen="splash"][data-device="phone"]{width:390px;height:844px}.device[data-screen="splash"][data-device="phone"] .splash-wash{background:linear-gradient(0deg,rgba(7,22,32,.92) 0%,rgba(7,22,32,.26) 65%,rgba(7,22,32,.48))}.device[data-screen="splash"][data-device="phone"] .brand-lockup{left:26px;top:78px}.device[data-screen="splash"][data-device="phone"] .splash-copy{left:26px;right:25px;top:auto;bottom:210px}.device[data-screen="splash"][data-device="phone"] .splash-copy h1{font-size:41px}.device[data-screen="splash"][data-device="phone"] .load-panel{left:20px;right:20px;bottom:42px;width:auto}.device[data-screen="splash"][data-device="phone"] .splash-art{object-position:55% center}.device[data-screen="splash"][data-device="tablet"]{width:768px;height:1024px}.device[data-screen="splash"][data-device="tablet"] .splash-art{object-position:54% center}.device[data-screen="splash"][data-device="tablet"] .splash-wash{background:linear-gradient(0deg,rgba(7,22,32,.87) 0%,rgba(7,22,32,.2) 66%,rgba(7,22,32,.35))}.device[data-screen="splash"][data-device="tablet"] .splash-copy{top:auto;bottom:250px;max-width:600px}.device[data-screen="splash"][data-device="tablet"] .load-panel{width:500px}.device[data-orientation="portrait"] .lobby-body,.device[data-orientation="portrait"] .lobby-header{visibility:hidden}.device[data-orientation="portrait"] .rotate-note{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--paper);text-align:center}.rotate-note span{font-size:46px;color:var(--blue)}.rotate-note strong{font-size:24px}.rotate-note small{max-width:280px;margin-top:8px;color:#62717e}.export-mode .review-bar{display:none}.export-mode .review-stage{min-height:100dvh;padding:0;background:transparent}.export-mode .device{border-radius:0;box-shadow:none}
@keyframes load{from{width:54%}to{width:78%}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* IteraPath Studio endorsement: approved Scheme F mark and signature geometry. */
.studio-attribution{position:absolute;z-index:2;right:28px;bottom:30px;display:flex;align-items:center;gap:11px;padding:12px 15px;border:1px solid rgba(255,255,255,.24);border-radius:15px;background:rgba(8,18,25,.72);box-shadow:0 10px 24px rgba(4,17,25,.24);backdrop-filter:blur(8px)}
.studio-attribution>img{display:block;width:38px;height:38px;flex:0 0 auto;border-radius:9px}
.studio-copy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.studio-prefix{color:rgba(255,255,255,.72);font-size:9px;font-weight:800;line-height:1;letter-spacing:.08em}
.studio-wordmark{display:flex;flex-direction:column;align-items:center;color:#fff}
.studio-wordmark svg{display:block;width:108px;height:auto;overflow:visible}
.studio-wordmark b{margin-top:6px;font-size:7px;line-height:1;letter-spacing:.4em;text-indent:.4em;color:rgba(255,255,255,.72)}
.device[data-screen="splash"][data-device="tablet"] .studio-attribution{right:54px;bottom:64px;padding:17px 20px;border-radius:19px;gap:14px}
.device[data-screen="splash"][data-device="tablet"] .studio-attribution>img{width:50px;height:50px;border-radius:12px}
.device[data-screen="splash"][data-device="tablet"] .studio-copy{gap:9px}
.device[data-screen="splash"][data-device="tablet"] .studio-prefix{font-size:11px}
.device[data-screen="splash"][data-device="tablet"] .studio-wordmark svg{width:142px}
.device[data-screen="splash"][data-device="tablet"] .studio-wordmark b{margin-top:8px;font-size:8px}

/* Visual-QA adjustments: protect phone copy and retain 44px control targets. */
.continue-copy h1{max-width:185px;font-size:22px}.continue-copy p{max-width:185px}.lobby-brand{min-height:44px}.header-actions button,.filter{width:44px;height:44px}.scene-row{height:198px}.scene-image{height:104px}.library-footer{height:42px;align-items:center}.pager button{width:44px;height:44px}.unlock-progress,.preview-label{display:none}
.device[data-device="tablet"] .continue-copy h1,.device[data-device="tablet"] .continue-copy p{max-width:none}.device[data-device="tablet"] .continue-copy h1{font-size:38px}.device[data-device="tablet"] .scene-image{height:157px}.device[data-device="tablet"] .scene-card--locked .scene-info{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:22px}.device[data-device="tablet"] .unlock-progress{display:block;width:100%;height:6px;margin:18px 0 10px;border-radius:99px;background:#dfe5e7;overflow:hidden}.device[data-device="tablet"] .unlock-progress i{display:block;width:50%;height:100%;background:#52ae96}.device[data-device="tablet"] .preview-label{display:block;color:var(--blue);font-size:12px}

/* Product decision: every designed surface begins in landscape. */
.brand-word{white-space:nowrap;letter-spacing:-.65px}.device[data-screen="splash"][data-device="phone"]{width:844px;height:390px}.device[data-screen="splash"][data-device="phone"] .splash-art{object-position:center}.device[data-screen="splash"][data-device="phone"] .splash-wash{background:linear-gradient(90deg,rgba(8,24,34,.88) 0%,rgba(8,24,34,.45) 55%,rgba(8,24,34,.2)),linear-gradient(0deg,rgba(5,18,27,.58),transparent 60%)}.device[data-screen="splash"][data-device="phone"] .brand-lockup{left:28px;top:45px}.device[data-screen="splash"][data-device="phone"] .splash-copy{left:28px;right:auto;top:115px;bottom:auto;max-width:390px}.device[data-screen="splash"][data-device="phone"] .splash-copy h1{font-size:38px}.device[data-screen="splash"][data-device="phone"] .load-panel{left:28px;right:auto;bottom:30px;width:360px}
.device[data-screen="splash"][data-device="tablet"]{width:1024px;height:768px}.device[data-screen="splash"][data-device="tablet"] .splash-art{object-position:center}.device[data-screen="splash"][data-device="tablet"] .splash-wash{background:linear-gradient(90deg,rgba(8,24,34,.86) 0%,rgba(8,24,34,.42) 55%,rgba(8,24,34,.16)),linear-gradient(0deg,rgba(5,18,27,.55),transparent 60%)}.device[data-screen="splash"][data-device="tablet"] .brand-lockup{left:54px;top:72px}.device[data-screen="splash"][data-device="tablet"] .splash-copy{left:54px;right:auto;top:220px;bottom:auto;max-width:610px}.device[data-screen="splash"][data-device="tablet"] .load-panel{left:54px;right:auto;bottom:64px;width:500px}

/* Collision-proof geometry at the two delivery breakpoints. */
.discover-panel,.scene-card,.scene-info,.continue-copy{min-width:0}.continue-copy h1{margin-bottom:6px}.device[data-device="phone"] .scene-row{height:176px}.device[data-device="phone"] .scene-image{height:90px}.device[data-device="phone"] .library-footer{height:44px;margin-top:12px}.device[data-device="tablet"] .scene-row{height:448px}.device[data-device="tablet"] .library-footer{height:44px;margin-top:18px}

/* Research-led scalable library: compact starter pane + adaptive scene feed. */
.lobby-body{grid-template-columns:220px minmax(0,1fr)}
.continue-copy{left:15px;right:15px;bottom:15px}
.continue-copy h1{max-width:none;font-size:23px}
.continue-copy p{max-width:none;margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.first-play-tip{display:flex;align-items:center;gap:6px;min-height:26px;padding:5px 7px;border-radius:9px;background:rgba(247,250,248,.16);font-size:8px;line-height:1.15;color:#eef6f8}
.first-play-tip b{color:#93d7c5}
.primary-play{position:relative;right:auto;bottom:auto;width:100%;height:44px;margin-top:8px;padding-left:13px}
.device[data-player="returning"] .first-play-tip{display:none}
.device[data-player="returning"] .progress{display:block;margin-top:9px}
.discover-panel{padding:10px 12px 8px}
.discover-heading{height:38px;align-items:center}
.discover-heading>div>span{font-size:7px}
.discover-heading h2{font-size:16px}
.browse-hint{font-size:8px!important;font-weight:800!important;letter-spacing:0!important;color:#75838d!important}
.scene-tools{height:44px;display:flex;align-items:center;gap:8px;margin-bottom:8px}
.filter-chips{min-width:0;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}
.filter-chips::-webkit-scrollbar,.scene-row::-webkit-scrollbar{display:none}
.filter-chips button{height:40px;min-width:44px;padding:0 10px;flex:0 0 auto;border:1px solid #bdc8ce;border-radius:11px;background:#fff;color:#596974;font-size:9px;font-weight:900}
.filter-chips button.is-active{border-color:var(--blue);background:#eaf3ff;color:var(--blue)}
.filter-chips .more-filter{min-width:68px}
.scene-row{height:132px!important;grid-template-columns:none!important;grid-template-rows:1fr!important;grid-auto-flow:column;grid-auto-columns:calc((100% - 27px)/4);gap:9px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory}
.scene-card{scroll-snap-align:start}
.scene-card[hidden]{display:none}
.scene-image{height:72px!important}
.scene-info{padding:5px 7px}
.scene-info small{font-size:6px}
.scene-info strong{font-size:10px}
.scene-info>span{font-size:7px}
.library-footer{height:44px!important;margin-top:10px!important;align-items:center}
.swipe-hint{color:#7b8992}
.pager{margin-left:auto}

.device[data-device="tablet"] .lobby-body{grid-template-columns:250px minmax(0,1fr)}
.device[data-device="tablet"] .continue-copy{left:22px;right:22px;bottom:22px}
.device[data-device="tablet"] .continue-copy h1{font-size:30px}
.device[data-device="tablet"] .continue-copy p{font-size:11px}
.device[data-device="tablet"] .continue-kicker{font-size:9px}
.device[data-device="tablet"] .first-play-tip{min-height:40px;padding:8px 10px;font-size:10px}
.device[data-device="tablet"] .primary-play{height:50px;margin-top:12px;font-size:14px}
.device[data-device="tablet"] .discover-panel{padding:18px 20px 14px}
.device[data-device="tablet"] .discover-heading{height:52px}
.device[data-device="tablet"] .discover-heading h2{font-size:23px}
.device[data-device="tablet"] .browse-hint{font-size:10px!important}
.device[data-device="tablet"] .scene-tools{height:46px;margin-bottom:12px;gap:10px}
.device[data-device="tablet"] .filter-chips button{height:44px;font-size:10px}
.device[data-device="tablet"] .scene-row{height:430px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row;grid-auto-rows:210px;grid-auto-columns:auto;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y proximity}
.device[data-device="tablet"] .scene-card:last-child{grid-column:auto;display:block}
.device[data-device="tablet"] .scene-card:last-child .scene-image{height:126px!important}
.device[data-device="tablet"] .scene-image{height:126px!important}
.device[data-device="tablet"] .scene-info{padding:8px 10px}
.device[data-device="tablet"] .scene-info small{font-size:7px}
.device[data-device="tablet"] .scene-info strong{font-size:12px}
.device[data-device="tablet"] .scene-info>span{font-size:8px}
.device[data-device="tablet"] .library-footer{height:44px!important;margin-top:12px!important}

/* Landscape phone: compact start/continue rail above a full-width six-card feed. */
.device[data-device="phone"] .lobby-body{grid-template-columns:1fr;grid-template-rows:64px minmax(0,1fr);gap:8px;padding:8px 10px 10px}
.device[data-device="phone"] .continue-card{border-radius:14px}
.device[data-device="phone"] .continue-shade{background:linear-gradient(90deg,rgba(11,28,40,.92),rgba(11,28,40,.64) 58%,rgba(11,28,40,.28))}
.device[data-device="phone"] .continue-copy{inset:0;display:grid;grid-template-columns:minmax(0,1fr) 142px;grid-template-rows:14px 24px 12px;align-content:center;column-gap:12px;padding:6px 10px}
.device[data-device="phone"] .continue-kicker{grid-column:1;font-size:6px}
.device[data-device="phone"] .continue-copy h1{grid-column:1;margin:0;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.device[data-device="phone"] .continue-copy p{grid-column:1;margin:0;font-size:8px}
.device[data-device="phone"] .first-play-tip{display:none}
.device[data-device="phone"] .progress{grid-column:1;width:108px;height:3px;margin-top:4px}
.device[data-device="phone"] .primary-play{grid-column:2;grid-row:1/4;align-self:center;height:44px;margin:0}
.device[data-device="phone"] .discover-panel{padding:7px 10px 6px}
.device[data-device="phone"] .discover-heading{height:30px}
.device[data-device="phone"] .discover-heading h2{font-size:14px}
.device[data-device="phone"] .browse-hint{font-size:7px!important}
.device[data-device="phone"] .scene-tools{height:44px;margin-bottom:6px}
.device[data-device="phone"] .filter-chips button{height:40px}
.device[data-device="phone"] .scene-row{height:88px!important;grid-auto-columns:calc((100% - 45px)/6)}
.device[data-device="phone"] .scene-image{height:58px!important}
.device[data-device="phone"] .scene-info{padding:5px 6px}
.device[data-device="phone"] .scene-info small,.device[data-device="phone"] .scene-info>span{display:none}
.device[data-device="phone"] .scene-info strong{margin:0;font-size:9px}
.device[data-device="phone"] .browse-hint{display:none}
.device[data-device="phone"] .library-footer{height:44px!important;margin-top:10px!important}
.pager{display:none}
.swipe-hint{margin-left:auto}
.export-mode .load-track span{width:72%;animation:none}

/* Phone revision: controls share the hero row; the catalog owns the lower canvas. */
.phone-tools{display:none}
.device[data-device="phone"] .lobby-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);gap:8px;padding:8px 10px 10px}
.device[data-device="phone"] .continue-card{grid-column:1;grid-row:1}
.device[data-device="phone"] .continue-copy{grid-template-columns:minmax(0,1fr) 132px;column-gap:8px}
.device[data-device="phone"] .primary-play{min-width:0;padding-left:11px;font-size:11px}
.device[data-device="phone"] .phone-tools{grid-column:2;grid-row:1;display:flex;align-items:center;gap:7px;min-width:0;padding:8px;border:1px solid #b3c0c7;border-radius:14px;background:var(--paper);box-shadow:0 5px 12px rgba(35,56,68,.1)}
.device[data-device="phone"] .phone-tools .filter-chips{gap:4px}
.device[data-device="phone"] .phone-tools .filter-chips button{height:44px;min-width:44px;padding:0 7px;font-size:9px}
.device[data-device="phone"] .phone-tools .filter-chips .more-filter{min-width:56px}
.device[data-device="phone"] .discover-panel{grid-column:1/-1;grid-row:2;padding:6px 10px}
.device[data-device="phone"] .discover-heading{height:28px}
.device[data-device="phone"] .discover-heading>div{display:flex;align-items:baseline;gap:8px}
.device[data-device="phone"] .discover-heading h2{font-size:14px}
.device[data-device="phone"] .scene-tools{display:none}
.device[data-device="phone"] .scene-row{height:178px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row;grid-auto-columns:auto;gap:8px;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity}
.device[data-device="phone"] .scene-image{height:55px!important}
.device[data-device="phone"] .scene-info{padding:5px 6px}
.device[data-device="phone"] .library-footer{display:none}

/* Explicit faceted menus replace ambiguous one-off theme and More chips. */
.filter-menus{display:flex;align-items:center;gap:6px;min-width:0}
.filter-menus details{position:relative;flex:0 0 auto}
.filter-menus summary{height:44px;min-width:86px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #bdc8ce;border-radius:11px;background:#fff;color:#596974;font-size:10px;font-weight:900;cursor:pointer;list-style:none}
.filter-menus summary::-webkit-details-marker{display:none}
.filter-menus summary:after{content:"⌄";font-size:10px;color:#7b8992}
.filter-menus details[open] summary{border-color:var(--blue);background:#eaf3ff;color:var(--blue)}
.filter-menus details>div{position:absolute;z-index:20;top:49px;left:0;min-width:150px;padding:6px;display:grid;gap:3px;border:1px solid #b5c2c9;border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(23,39,52,.2)}
.filter-menus details:not([open])>div{display:none}
.filter-menus details>div button{min-height:40px;padding:0 10px;text-align:left;border:0;border-radius:8px;background:#fff;color:var(--ink);font-size:10px;font-weight:800}
.filter-menus details>div button:hover,.filter-menus details>div button.is-active{background:#eaf3ff;color:var(--blue)}
.scene-scrollbar{display:none}

/* Phone scene browser: adaptive 3/4/5-column rows, with the next row peeking in. */
.device[data-device="phone"] .phone-tools .filter-menus{gap:4px;overflow:visible}
.device[data-device="phone"] .phone-tools .filter-menus summary{min-width:0;height:44px;padding:0 8px;font-size:9px}
.device[data-device="phone"] .phone-tools [data-filter-menu="difficulty"] summary{width:82px}
.device[data-device="phone"] .phone-tools [data-filter-menu="theme"] summary{width:68px}
.device[data-device="phone"] .phone-tools [data-sort-menu] summary{width:59px}
.device[data-device="phone"] .continue-copy{grid-template-columns:minmax(0,1fr) 150px}
.device[data-device="phone"] .primary-play{font-size:12px;font-weight:800;line-height:1;letter-spacing:0;-webkit-font-smoothing:antialiased}
.device[data-device="phone"] .primary-play>span{white-space:nowrap}
.device[data-device="phone"] .discover-panel{position:relative;padding-right:16px}
.device[data-device="phone"] .lobby-body{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
.device[data-device="phone"] .discover-panel{container-type:inline-size;container-name:scene-library}
.device[data-device="phone"] .scene-row{height:178px!important;padding-right:8px;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row;grid-auto-rows:116px;gap:9px;overflow-x:hidden;overflow-y:auto;scroll-snap-type:y proximity;scrollbar-width:none}
.device[data-device="phone"] .scene-card{display:block;scroll-snap-align:start}
.device[data-device="phone"] .scene-image{height:76px!important}
.device[data-device="phone"] .scene-info{display:block;padding:5px 8px}
.device[data-device="phone"] .scene-info small{display:block;font-size:8px}
.device[data-device="phone"] .scene-info strong{margin:1px 0 0;font-size:11px}
.device[data-device="phone"] .scene-info>span{display:none}
.device[data-device="phone"] .scene-scrollbar{position:absolute;z-index:4;top:38px;right:6px;width:4px;height:174px;display:block;border-radius:99px;background:#d8e0e4}
.device[data-device="phone"] .scene-scrollbar span{display:block;width:100%;height:48px;border-radius:inherit;background:#6e8290;transform:translateY(var(--scene-scroll-y,0px));transition:transform .12s linear}
.scene-card[hidden]{display:none!important}
.device.no-scene-scroll .scene-scrollbar{display:none!important}
.device.no-scene-scroll .swipe-hint,.device.no-scene-scroll .pager{display:none!important}

@container scene-library (max-width:675px){
  .device[data-device="phone"] .scene-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .device[data-device="phone"] .phone-tools [data-filter-menu="difficulty"] summary{width:74px}
  .device[data-device="phone"] .phone-tools [data-filter-menu="theme"] summary{width:62px}
  .device[data-device="phone"] .phone-tools [data-sort-menu] summary{width:54px}
}
@container scene-library (min-width:848px){
  .device[data-device="phone"] .scene-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}
}

/* Settings design review: one panel replaces its own content; no nested menus. */
.header-actions .settings-trigger svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.header-actions .settings-trigger[aria-expanded="true"]{border-color:var(--blue);background:#eaf3ff;color:var(--blue)}
.settings-scrim{position:absolute;z-index:29;inset:0;width:100%;height:100%;border:0;background:rgba(11,27,38,.31)}
.settings-scrim[hidden],.settings-panel[hidden],.settings-view[hidden]{display:none}
.settings-panel{position:absolute;z-index:30;top:83px;right:24px;width:284px;max-height:calc(100% - 95px);padding:10px;border:1px solid #b9c5cd;border-radius:17px;background:var(--paper);box-shadow:0 18px 38px rgba(10,27,42,.28);overflow-y:auto}
.settings-panel-header{height:37px;display:flex;align-items:center;justify-content:space-between;padding:0 4px 6px 9px;border-bottom:1px solid #e1e7e9}
.settings-panel-header strong{font-size:15px;font-weight:1000}
.settings-panel-header button{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:#64717c;font-size:21px;font-weight:800}
.settings-panel-header button:hover{background:#e9f1f4}
.settings-panel-header .settings-back{margin-right:3px;font-size:26px}
.settings-panel-header:has(.settings-back){justify-content:flex-start;gap:5px}
.settings-panel-header:has(.settings-back) button:last-child{margin-left:auto}
.settings-row{width:100%;min-height:53px;display:flex;align-items:center;gap:11px;padding:7px 9px;border:0;border-bottom:1px solid #e8edef;background:transparent;color:var(--ink);text-align:left;text-decoration:none}
.settings-row:last-child{border-bottom:0}
.settings-row:hover,.settings-row:focus-visible{border-radius:10px;background:#edf5fb}
.settings-row-icon{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;background:#eaf3ff;color:var(--blue);font-size:14px;font-weight:900}
.settings-row-copy{flex:1;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.settings-row-copy strong{font-size:12px;font-weight:900}
.settings-row-copy small{color:#657783;font-size:10px;font-weight:800}
.settings-chevron{color:#788b97;font-size:18px}
.language-hint{margin:9px 7px 8px;color:#687984;font-size:10px;font-weight:700}
.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.language-grid button{height:44px;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:2px;padding:0 9px;border:1px solid #c2ccd1;border-radius:10px;background:#fff;color:var(--ink);font-size:11px;font-weight:900;text-align:left;white-space:nowrap}
.language-grid button:hover,.language-grid button:focus-visible{border-color:var(--blue);background:#f0f6ff}
.language-grid button span{visibility:hidden;color:var(--blue);font-size:14px}
.language-grid button.is-selected{border-color:var(--blue);background:#eaf3ff;color:#175eac}
.language-grid button.is-selected span{visibility:visible}
.device[data-device="phone"] .settings-panel{top:62px;right:6px;bottom:auto;width:294px;max-height:calc(100% - 68px);border-radius:19px}
.device[data-device="phone"] .settings-panel:has([data-settings-view="language"]:not([hidden])){top:6px;bottom:6px;max-height:none}

/* Startup ready state: keep the approved composition and replace only the progress surface. */
.splash-art--next{opacity:0;transition:opacity .7s ease}
.splash-art--next.is-visible{opacity:1}
.splash-safe--bottom{pointer-events:none}
.load-track span{animation:none}
.device[data-boot="ready"] .load-panel,.device[data-boot="loading"] .splash-enter{display:none}
.splash-enter{position:absolute;z-index:2;left:28px;bottom:34px;width:360px;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 10px 8px 21px;border:1px solid #74b4f1;border-radius:16px;background:var(--blue);color:#fff;box-shadow:0 4px 0 #164b8a,0 12px 28px rgba(4,17,25,.25);font-size:17px;font-weight:1000;text-align:left}
.splash-enter b{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:12px;background:#fff;color:var(--blue);font-size:25px;line-height:1}
.splash-enter:hover{background:#156bbd}
.splash-enter:active{transform:translateY(2px);box-shadow:0 2px 0 #164b8a,0 8px 20px rgba(4,17,25,.25)}
.splash-enter:focus-visible{outline:3px solid #fff;outline-offset:3px}
.device[data-screen="splash"][data-device="tablet"] .splash-enter{left:54px;bottom:71.4px;width:500px;min-height:76px;padding:9px 11px 9px 24px;border-radius:20px;font-size:20px}
.device[data-screen="splash"][data-device="tablet"] .splash-enter b{width:54px;height:54px;flex-basis:54px;border-radius:14px;font-size:30px}
.export-mode .splash-art--next{transition:none}
@media (prefers-reduced-motion:reduce){.splash-art--next{transition:none}}
