
:root{color-scheme:dark;--ink:#f4f6ff;--muted:#b6c4e5;--line:rgba(158,204,255,.23);--panel:rgba(9,18,48,.8)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#070b1c;color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid #9ce9ff;outline-offset:4px}.container{width:min(1170px,calc(100% - 40px));margin:auto}.top{position:relative;z-index:4;background:#090d20d9;border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.topin{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:74px}.back{font-size:13px;font-weight:800;letter-spacing:.12em}.back b{color:#83d5ff}.navlinks{display:flex;flex-wrap:wrap;gap:24px}.navlinks a{font-size:12px;letter-spacing:.12em;font-weight:800;color:#ccd8f5}.navlinks a:hover{color:white}.hero{position:relative;min-height:680px;display:flex;align-items:center;isolation:isolate;overflow:hidden;background:#020614}.hero::after{pointer-events:none;content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#070b1c 0%,transparent 35%),radial-gradient(circle at 75% 50%,transparent 8%,#060b2380 86%)}@keyframes vortexDrift{from{transform:scale(1)}to{transform:scale(1.08) translate3d(-.7%,.5%,0)}}.eyebrow{font-size:11px;letter-spacing:.24em;font-weight:900;color:#93dbff}.hero-content{padding:92px 0 155px}.hero h1{font-weight:900;font-size:clamp(60px,10vw,142px);letter-spacing:-.07em;line-height:.85;margin:25px 0 27px;text-shadow:0 5px 40px #0205189c}.hero h1 span{background:linear-gradient(95deg,#f2faff,#98e9ff,#d1a6ff);background-clip:text;color:transparent}.hero p{max-width:545px;font-size:clamp(17px,2vw,21px);line-height:1.65;color:#e0e9ff;text-shadow:0 2px 18px #060922}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:12px;padding:16px 22px;border-radius:4px;font-size:12px;font-weight:900;letter-spacing:.09em;border:1px solid #97bdff66;background:#0a183ab8;cursor:pointer;color:white;transition:background .2s,transform .2s}.btn:hover{background:#233968;transform:translateY(-2px)}.btn.primary{background:#b7eeff;color:#051026;border-color:#b7eeff}.btn.primary:hover{background:#e6faff}.hero-number{position:absolute;bottom:65px;right:7%;font-size:11px;letter-spacing:.2em;color:#c1dafa}.separator{height:10px;background:linear-gradient(90deg,#1c3c8f,#29d4ef,#9d5bff,#e66dcd,#233975)}.section{padding:92px 0;background:radial-gradient(ellipse at top right,#13234c 0%,#070b1c 58%)}.kicker{color:#88cffa;font-size:11px;font-weight:900;letter-spacing:.21em}.section h2{font-size:clamp(38px,5vw,67px);margin:10px 0 18px;line-height:1.03;letter-spacing:-.05em}.intro{max-width:680px;color:var(--muted);line-height:1.75;margin-bottom:34px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.destination{position:relative;min-height:332px;border:1px solid var(--line);background:linear-gradient(160deg,#193d77bd,#0a112ce8);overflow:hidden;border-radius:12px;display:flex;flex-direction:column;justify-content:flex-end;padding:25px;cursor:pointer;transition:transform .2s,border-color .2s}.destination:hover{transform:translateY(-5px);border-color:#81d7ff}.destination:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 17%,#64acff50,transparent 47%);pointer-events:none}.destination:nth-child(2){background:linear-gradient(160deg,#43342a,#111424)}.destination:nth-child(3){background:linear-gradient(160deg,#2c2159,#0c1127)}.destination img{position:absolute;top:5px;right:0;width:88%;max-height:160px;object-fit:contain;opacity:.9}.destination .glyph{position:absolute;top:25px;left:25px;font-size:58px;color:#a7b8f5;opacity:.6}.destination .num{font-size:11px;color:#bbd3f8;letter-spacing:.2em}.destination h3{position:relative;font-size:clamp(23px,2.5vw,34px);line-height:1.08;margin:12px 0;letter-spacing:-.03em}.destination p{position:relative;color:#d0d7ed;font-size:14px;line-height:1.5;margin:0}.destination strong{position:relative;font-size:11px;letter-spacing:.1em;margin-top:22px;color:#a1ebff}.content-view{display:none;padding-top:24px}.content-view.active{display:block}.secondary-panel{background:#111c37;border:1px solid var(--line);border-radius:14px;padding:28px;margin-top:18px}.secondary-panel h3{font-size:25px;margin:0 0 10px}.secondary-panel p{color:#c6d5ef;line-height:1.7}.pills{display:flex;gap:10px;flex-wrap:wrap}.pill{border:1px solid #5974ad;background:#112044;color:white;padding:12px 16px;border-radius:6px;cursor:pointer}.pill[aria-selected=true]{background:#b3e7ff;color:#0b1531;border-color:#b3e7ff}.media-box{margin-top:20px;min-height:160px;display:grid;place-content:center;text-align:center;background:linear-gradient(125deg,#101a3b,#152454);border:1px dashed #6073a2;border-radius:10px;padding:25px;color:#c1d0ee}.media-box strong{font-size:20px;color:white}.media-box p{margin:7px 0 0}.mini-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.profile{padding:20px;background:#101b38;border-radius:10px;border:1px solid var(--line)}.profile h4{margin:0 0 7px;font-size:22px}.profile p{color:#bfd0ed;font-size:14px;line-height:1.6}.warning{display:none;background:#2c1830;border:1px solid #f89aac;border-radius:12px;padding:23px;margin-top:18px}.warning.active{display:block}.warning img{float:right;width:105px;height:115px;object-fit:contain}.warning h3{color:#ffd8df}.warning .btn{margin-right:8px;margin-top:10px}.footer{border-top:1px solid var(--line);padding:34px 0;color:#adc1e9;font-size:13px}.footer .container{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}@media(max-width:760px){.topin{min-height:68px}.navlinks{gap:12px}.navlinks a{font-size:10px}.hero{min-height:580px}.hero::before{background-position:58% center}.hero-content{padding:80px 0}.cards{grid-template-columns:1fr}.destination{min-height:235px}.destination img{width:48%;max-height:150px}.mini-profiles{grid-template-columns:1fr}.section{padding:64px 0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* V1.2: visual-only shared-universe scenery selector */
body{--accent:#8cdbff;--soft:#b6c4e5;--themeGlow:#13234c;transition:background-color .6s ease}
body[data-scenery="home"]{--accent:#ffd3e9;--soft:#f4d6ec;--themeGlow:#49304e}
body[data-scenery="port"]{--accent:#ffda8b;--soft:#f4dfca;--themeGlow:#473144}
.scenery-backdrops{position:absolute;inset:0;z-index:-2;overflow:hidden;background:#070b1c}
.scenery-image{position:absolute;inset:-3%;opacity:0;background-position:center;background-size:cover;transition:opacity 1.1s ease;will-change:transform,opacity}
.scenery-vortex{background-image:linear-gradient(90deg,rgba(3,7,27,.88),rgba(3,7,27,.55) 40%,rgba(3,7,27,.12) 80%),url('assets/vortex.webp');animation:vortexDrift 11s ease-in-out infinite alternate}
.scenery-home{background-image:linear-gradient(90deg,rgba(37,12,48,.80),rgba(63,19,66,.38) 55%,rgba(70,25,64,.08)),url('assets/home-sky.webp');animation:cloudDrift 24s ease-in-out infinite alternate}
.scenery-port{background-image:linear-gradient(90deg,rgba(35,15,43,.84),rgba(48,21,54,.40) 52%,rgba(33,12,40,.09)),url('assets/porta-nexus-sky.webp');animation:portDrift 20s ease-in-out infinite alternate}
body[data-scenery="vortex"] .scenery-vortex,body[data-scenery="home"] .scenery-home,body[data-scenery="port"] .scenery-port{opacity:1}
@keyframes cloudDrift{from{transform:scale(1.06) translateX(-.5%)}to{transform:scale(1.12) translateX(1%)}}
@keyframes portDrift{from{transform:scale(1.04) translateY(-.5%)}to{transform:scale(1.095) translateY(.5%)}}
.scenery-picker{display:inline-flex;flex-direction:column;gap:10px;margin-bottom:42px;background:rgba(5,10,29,.75);border:1px solid color-mix(in srgb,var(--accent) 43%,transparent);border-radius:13px;padding:14px 16px;backdrop-filter:blur(15px);box-shadow:0 15px 35px #03051655}
.picker-label{font-size:11px;font-weight:900;letter-spacing:.15em;color:var(--accent)}
.picker-label span{font-size:9px;font-weight:600;letter-spacing:.09em;color:#d3d9e9;margin-left:9px}
.scenery-options{display:flex;gap:6px;flex-wrap:wrap}
.scenery-option{border:1px solid #a7b9e650;border-radius:6px;padding:10px 14px;background:#14203bd4;color:#ecf3ff;font-size:11px;letter-spacing:.075em;font-weight:850;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}
.scenery-option:hover{transform:translateY(-2px);border-color:var(--accent)}
.scenery-option.active{color:#111225;background:var(--accent);border-color:var(--accent)}
.eyebrow,.kicker{color:var(--accent)}
.hero h1 span{background:linear-gradient(95deg,#fff,var(--accent),#edbdff);background-clip:text;color:transparent}
.btn.primary{background:var(--accent);border-color:var(--accent)}
.section{background:radial-gradient(ellipse at top right,var(--themeGlow) 0%,#070b1c 60%);transition:background .4s}
.separator{background:linear-gradient(90deg,#152955,var(--accent),#9d5bff,#e66dcd,#233975)}
@media(max-width:760px){.scenery-picker{margin-bottom:30px}.picker-label span{display:block;margin:6px 0 0}.scenery-options{gap:5px}.scenery-option{padding:9px 11px}.hero-content{padding:70px 0 80px}}
@media(prefers-reduced-motion:reduce){.scenery-image{animation:none!important;transition:none!important}}

/* V1.4: scene-specific protagonists; left / right staging remains independent of the backgrounds. */
.hero{min-height:740px}
.character-stage{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.character-pair{position:absolute;inset:0;opacity:0;transition:opacity .7s ease}
body[data-scenery="vortex"] .pair-vortex,body[data-scenery="home"] .pair-home,body[data-scenery="port"] .pair-port{opacity:1}
.character{position:absolute;bottom:-28px;max-width:none;width:auto;object-fit:contain;filter:drop-shadow(0 13px 19px rgba(1,4,18,.74));}
.pair-vortex .character-left{height:min(71%,560px);left:max(0%,calc(50% - 690px));}
.pair-vortex .character-right{height:min(76%,590px);right:max(-2%,calc(50% - 715px));}
.pair-home .character-left{height:min(73%,580px);left:max(1%,calc(50% - 695px));}
.pair-home .character-right{height:min(78%,615px);right:max(-3%,calc(50% - 700px));}
/* Alister points toward Darla, whose face and folded arms turn back toward him. */
.pair-port .character-left{height:min(77%,610px);left:max(0%,calc(50% - 735px));}
.pair-port .character-right{height:min(77%,605px);right:max(-2%,calc(50% - 690px));}
.hero-content{position:relative;z-index:1;pointer-events:none}
.hero-content a,.hero-content button{pointer-events:auto}
.hero-content h1{max-width:850px;font-size:clamp(58px,8.3vw,114px);text-shadow:0 5px 20px #000b,0 6px 55px #000}
.hero-content p{max-width:465px;filter:drop-shadow(0 3px 9px #000)}
.scenery-picker{pointer-events:auto;position:relative}
.hero-number{z-index:2}
@media(min-width:901px){.hero-content{padding:84px 0 168px}.hero h1{max-width:790px}}
@media(max-width:900px){.hero{min-height:710px}.character{bottom:-5px}.pair-vortex .character-left,.pair-home .character-left,.pair-port .character-left{height:48%;left:-9%}.pair-vortex .character-right,.pair-home .character-right,.pair-port .character-right{height:49%;right:-9%}.hero-content{padding:65px 0 250px}.hero h1{font-size:clamp(56px,9.2vw,96px)}}
@media(max-width:540px){.hero{min-height:780px}.character{bottom:2px}.pair-vortex .character-left,.pair-home .character-left,.pair-port .character-left{height:34%;left:-8%}.pair-vortex .character-right,.pair-home .character-right,.pair-port .character-right{height:36%;right:-12%}.hero-content{padding:44px 0 255px}.hero h1{font-size:clamp(52px,11.5vw,72px)}.hero-content p{font-size:15px}.scenery-picker{margin-bottom:22px}.hero-number{bottom:16px;font-size:9px;right:20px}}
@media(prefers-reduced-motion:reduce){.character-pair{transition:none}}

/* v1.5: Split the hero into a readable heading and a separate cast stage. */
.hero{min-height:1000px;display:block;}
.hero-content{padding:48px 0 500px!important;text-align:center;margin-inline:auto;}
.scenery-picker{margin:0 auto 21px;display:flex;width:max-content;max-width:100%;}
.hero-content .eyebrow{margin-top:7px}
.hero-content h1{margin:15px auto 20px;max-width:860px;font-size:clamp(58px,7.5vw,104px);line-height:.93}
.hero-content p{margin:0 auto;max-width:700px}
.hero-actions{justify-content:center;margin-top:22px}
.hero-number{bottom:17px;right:24px}
.character-stage{z-index:0}
.character{bottom:0!important;}
/* Keep faces below the headline. Compensation for larger Clyde cutout. */
.pair-vortex .character-left{height:420px;left:max(1%,calc(50% - 570px));}
.pair-vortex .character-right{height:500px;right:max(2%,calc(50% - 550px));}
.pair-home .character-left{height:460px;left:max(1%,calc(50% - 575px));}
.pair-home .character-right{height:490px;right:max(1%,calc(50% - 575px));}
.pair-port .character-left{height:505px;left:max(0%,calc(50% - 615px));}
.pair-port .character-right{height:490px;right:max(0%,calc(50% - 605px));}
@media(max-width:900px){
.hero{min-height:890px}.hero-content{padding:39px 0 375px!important}
.hero-content h1{font-size:clamp(48px,8vw,78px)}
.pair-vortex .character-left,.pair-home .character-left,.pair-port .character-left{height:360px;left:-7%}
.pair-vortex .character-right,.pair-home .character-right,.pair-port .character-right{height:385px;right:-7%}
}
@media(max-width:540px){
.hero{min-height:790px}
.hero-content{padding:28px 0 300px!important}
.hero-content h1{font-size:clamp(41px,10.5vw,59px);margin-top:18px}
.hero-content p{font-size:14px;line-height:1.4}
.hero-actions .btn{padding:11px 12px;font-size:10px}
.scenery-picker{margin-bottom:16px}
.pair-vortex .character-left,.pair-home .character-left,.pair-port .character-left{height:260px;left:-13%}
.pair-vortex .character-right,.pair-home .character-right,.pair-port .character-right{height:275px;right:-13%}
.hero-number{bottom:10px;right:13px;font-size:8px}
}

/* v1.6: portrait-scale cast, cropped naturally at the waist/legs. */
.hero{height:980px;min-height:980px;}
.hero-content{padding:45px 0 0!important;}
.character-stage{top:428px;bottom:0;inset-inline:0;overflow:hidden;z-index:0}
.character-pair{inset:0;overflow:hidden}
.character{top:0!important;bottom:auto!important;height:auto;max-width:none;object-fit:contain;object-position:top center;}
/* Stage crops at bottom rather than shrinking figures to fit. Clyde's face is intentionally higher. */
.pair-vortex .character-left{height:765px;left:max(0%,calc(50% - 650px));}
.pair-vortex .character-right{height:710px;right:max(0%,calc(50% - 620px));top:38px!important;}
.pair-home .character-left{height:745px;left:max(0%,calc(50% - 670px));}
.pair-home .character-right{height:715px;right:max(0%,calc(50% - 650px));top:30px!important;}
.pair-port .character-left{height:710px;left:max(-6%,calc(50% - 710px));}
.pair-port .character-right{height:750px;right:max(-6%,calc(50% - 660px));top:8px!important;}
@media(max-width:900px){
 .hero{height:875px;min-height:875px}
 .character-stage{top:435px;bottom:0}
 .pair-vortex .character-left,.pair-home .character-left{height:600px;left:-16%}
 .pair-vortex .character-right,.pair-home .character-right{height:565px;right:-16%;top:26px!important}
 .pair-port .character-left{height:570px;left:-22%}
 .pair-port .character-right{height:585px;right:-18%;top:25px!important}
}
@media(max-width:540px){
 .hero{height:800px;min-height:800px}
 .hero-content{padding:26px 0 0!important}
 .character-stage{top:480px;bottom:0}
 .pair-vortex .character-left,.pair-home .character-left{height:420px;left:-24%}
 .pair-vortex .character-right,.pair-home .character-right{height:385px;right:-26%;top:22px!important}
 .pair-port .character-left{height:390px;left:-34%}
 .pair-port .character-right{height:405px;right:-25%;top:12px!important}
}

/* v1.7 HOME-only: keep Raleigh proportionately shorter than Clyde. */
.pair-home .character-right{height:585px;top:100px!important;right:max(0%,calc(50% - 650px));}
@media(max-width:900px){.pair-home .character-right{height:465px;top:96px!important;right:-16%;}}
@media(max-width:540px){.pair-home .character-right{height:325px;top:76px!important;right:-26%;}}

/* v1.8: HOME pairing. Restore Raleigh to her full close-up size,
   but move her downward to establish a shorter stature at equal depth.
   Bottom of both figures is intentionally cropped by the shared stage. */
.pair-home .character-right{height:715px;top:93px!important;right:max(0%,calc(50% - 650px));}
@media(max-width:900px){.pair-home .character-right{height:565px;top:83px!important;right:-16%;}}
@media(max-width:540px){.pair-home .character-right{height:385px;top:65px!important;right:-26%;}}

/* v1.9: Floating scenery selection, scene logo and episode gallery. */
.scenery-float{position:fixed;right:22px;top:90px;z-index:30;width:max-content;max-width:calc(100vw - 32px);filter:drop-shadow(0 13px 26px #0009)}
.scenery-launch{border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);background:#081127e9;backdrop-filter:blur(14px);border-radius:10px;color:var(--accent);font-size:12px;letter-spacing:.1em;font-weight:900;cursor:pointer;padding:13px 17px;display:flex;align-items:center;gap:10px}
.scenery-launch:hover{background:#1a3153}.scenery-menu{position:absolute;right:0;top:calc(100% + 10px);width:265px;background:#0b1530f5;padding:16px;border-radius:12px;border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);backdrop-filter:blur(15px)}.scenery-menu[hidden]{display:none}.scenery-menu .picker-label span{display:block;margin:5px 0 10px}.scenery-menu .scenery-options{flex-direction:column}.scenery-menu .scenery-option{text-align:left;width:100%}
.hero-series-mark{position:relative;height:96px;margin:6px auto 4px;display:flex;align-items:center;justify-content:center;pointer-events:none}.series-logo{height:100%;max-width:330px;object-fit:contain;filter:drop-shadow(0 6px 15px #000b);transition:opacity .5s}.logo-tatp{position:absolute;opacity:0}body[data-scenery="port"] .logo-mitm{opacity:0}body[data-scenery="port"] .logo-tatp{opacity:1}
.hero-content h1{margin-top:5px}.hero-content .eyebrow{margin-top:5px}
.media-box{display:block;text-align:left;background:#0d1731;border:1px solid #506d9c;padding:20px}.shelf-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.shelf-heading strong{font-size:19px}.shelf-heading p{margin:8px 0 0}.release-count{color:#9ddfff;font-size:11px;letter-spacing:.09em;font-weight:800;white-space:nowrap}.episode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.episode-card{background:#142142;border:1px solid #48618b;border-radius:10px;overflow:hidden;min-width:0}.episode-art{position:relative;aspect-ratio:16/9;overflow:hidden}.episode-art img{width:100%;height:100%;display:block;object-fit:cover}.episode-status{position:absolute;top:10px;left:10px;background:#b9f1ff;color:#061632;font-size:10px;font-weight:900;padding:6px 9px;border-radius:5px}.upcoming .episode-art img{filter:grayscale(1) brightness(.44)}.episode-shade{position:absolute;inset:0;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;color:white;text-shadow:0 2px 7px #000;font-size:11px;letter-spacing:.07em}.episode-shade span{font-size:29px}.episode-meta{padding:15px}.episode-meta b{font-size:14px}.episode-meta p{font-size:12px;line-height:1.5;min-height:38px;margin:7px 0 12px}.awaiting-link,.coming-tag{display:inline-block;border-radius:4px;padding:7px 9px;font-weight:800;letter-spacing:.05em;font-size:10px}.awaiting-link{color:#a3d4ff;border:1px solid #456b8d}.coming-tag{color:#ffcf9e;border:1px solid #735641}.shelf-footnote{font-size:12px;color:#9daec9;margin:20px 0 0!important}.shelf-empty{text-align:center;min-height:195px;display:grid;align-content:center;justify-items:center;gap:8px}.shelf-empty .empty-icon{font-size:36px;color:#99cbff}.shelf-empty strong{font-size:22px}
@media(max-width:760px){.scenery-float{top:auto;bottom:17px;right:13px}.scenery-launch{padding:12px}.scenery-menu{top:auto;bottom:calc(100% + 9px)}.episode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-heading{flex-direction:column}.media-box{padding:13px}.hero-series-mark{height:70px}.series-logo{max-width:230px}}
@media(max-width:450px){.episode-grid{grid-template-columns:1fr}.hero-series-mark{height:58px}.series-logo{max-width:200px}}

/* Released episode cards are direct video links. */
a.episode-card{display:block;color:inherit;text-decoration:none;cursor:pointer}
a.episode-card:hover{transform:translateY(-3px);filter:brightness(1.08)}
a.episode-card:focus-visible{outline:3px solid var(--accent,#79dfff);outline-offset:4px}

/* In-page episode player */
.episode-card.released{font:inherit;text-align:left;color:inherit;width:100%;cursor:pointer;border:1px solid rgba(147,190,255,.28)}
.episode-card.released:hover{border-color:var(--accent,#92dfff)}
.episode-card.released:focus-visible{outline:3px solid #8ce0ff;outline-offset:4px}
.episode-dialog[hidden]{display:none!important}
.episode-dialog{position:fixed;inset:0;z-index:10000;background:rgba(3,6,17,.91);display:flex;align-items:center;justify-content:center;padding:clamp(12px,3vw,32px);backdrop-filter:blur(12px)}
.episode-dialog-panel{width:min(1100px,100%);max-height:96dvh;overflow:auto;background:#0a1326;border:1px solid rgba(132,205,255,.36);border-radius:18px;box-shadow:0 35px 110px #000b;color:#f6faff}
.episode-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px}
.episode-dialog-top h2{margin:4px 0 0;font-size:clamp(22px,3vw,35px)}
.episode-dialog-kicker{font:700 11px/1.5 sans-serif;letter-spacing:.1em;color:#89cfff}
#episode-close{border:1px solid #7796bf;background:#1a2e50;color:white;padding:11px 16px;border-radius:8px;cursor:pointer;font-weight:700;white-space:nowrap}
#episode-close:focus-visible,.episode-dialog-foot a:focus-visible{outline:3px solid #9cdeff}
.episode-player-frame{width:100%;aspect-ratio:16/9;background:#000}
.episode-player-frame iframe{display:block;width:100%;height:100%;border:0}
.episode-dialog-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 22px;color:#a7b9d3;font-size:13px}
.episode-dialog-foot a{color:#96ddff;font-weight:700}
body.episode-playing{overflow:hidden}
@media(max-width:600px){.episode-dialog{padding:8px}.episode-dialog-top{padding:12px}.episode-dialog-foot{padding:12px}.episode-dialog-kicker{font-size:9px}#episode-close{padding:9px 11px}}

/* v2.2: The scenery control lives directly under body, outside the isolated/clipped hero. */
.scenery-float{position:fixed!important;top:auto!important;bottom:22px!important;right:22px!important;z-index:9999!important;isolation:isolate}
.scenery-menu{top:auto!important;bottom:calc(100% + 11px)!important}
@media(max-width:760px){.scenery-float{bottom:14px!important;right:13px!important}}
/* Five actual MITM thumbnails cycle through the Media entrance. */
.destination:nth-child(2){isolation:isolate;background:#0c1634}
.media-card-slideshow,.media-card-dim{position:absolute;inset:0;pointer-events:none;z-index:-1}
.media-card-slideshow{overflow:hidden}
.destination .media-slide{position:absolute;inset:0;top:0;right:auto;width:100%;height:100%;max-height:none;object-fit:cover;opacity:0;transform:scale(1.055);animation:mediaCrossfade 25s infinite;will-change:opacity,transform}
.destination .media-slide-1{animation-delay:-1s}
.destination .media-slide-2{animation-delay:4s}
.destination .media-slide-3{animation-delay:9s}
.destination .media-slide-4{animation-delay:14s}
.destination .media-slide-5{animation-delay:19s}
.media-card-dim{z-index:0;background:linear-gradient(180deg,rgba(5,9,24,.04) 0%,rgba(5,9,24,.26) 36%,rgba(5,9,24,.94) 85%)}
.destination:nth-child(2):before{z-index:0;opacity:.25}
.destination:nth-child(2) .num,.destination:nth-child(2) h3,.destination:nth-child(2) p,.destination:nth-child(2) strong{z-index:1;text-shadow:0 2px 8px #000}
@keyframes mediaCrossfade{0%{opacity:0;transform:scale(1.055)}5%{opacity:1}18%{opacity:1}24%{opacity:0;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.destination .media-slide{animation:none;opacity:0;transform:none}.destination .media-slide-1{opacity:1}}

/* v2.3 stories expansion */
.story-destination{isolation:isolate;background:radial-gradient(circle at 50% 10%,#325cb8,#131d4c 58%,#080e28)!important}
.story-portal-glow{position:absolute;width:245px;height:245px;left:-65px;top:-65px;border:16px solid #57caff;border-radius:50%;box-shadow:0 0 35px #3788ff,inset 0 0 38px #7218f2;opacity:.5}
.destination .story-card-logo{top:10px;left:-15px;right:auto;width:77%;max-height:138px;object-fit:contain;object-position:left center;filter:drop-shadow(0 3px 8px #001)}
.destination .story-mascot{right:-24px;left:auto;top:5px;width:54%;height:235px;max-height:none;object-fit:contain;object-position:top;opacity:1;z-index:1;filter:drop-shadow(0 8px 15px #0009)}
.story-destination .num,.story-destination h3,.story-destination p,.story-destination strong{z-index:2;text-shadow:0 3px 9px #030720}
.stories-panel{overflow:hidden;background:linear-gradient(145deg,#172450,#10172d 60%,#110f27)}
.story-intro{display:grid;grid-template-columns:minmax(0,1fr) 270px;align-items:center;gap:14px;border-bottom:1px solid #9dc4ff42;padding-bottom:22px}
.story-intro h3{font-size:clamp(30px,4vw,48px);letter-spacing:-.05em;margin:12px 0}.story-intro h3 em{font-style:normal;color:#91dfff}.story-intro p{max-width:720px;margin:10px 0}.story-intro strong{color:#fff}.story-intro img{display:block;object-fit:contain;width:100%;max-height:370px;align-self:end;filter:drop-shadow(0 15px 24px #0009)}.story-signoff{font-style:italic;color:#8ee4ff!important}
.story-warning{margin:24px 0;padding:15px 18px;background:#3b2138;border:1px solid #f7a6a999;color:#ffe1e1;border-radius:9px;line-height:1.6;font-size:13px}.story-warning strong{color:#fff}
.story-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:27px 0 17px}.story-heading h3{font-size:29px}.story-heading>span{font-size:11px;font-weight:900;letter-spacing:.11em;color:#a7c0e4}
.story-book-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.story-book{overflow:hidden;background:#0b1530;border:1px solid #91adf64d;border-radius:12px;display:grid;grid-template-columns:150px minmax(0,1fr);min-height:230px}.story-book-art{position:relative;min-height:100%;padding:18px 12px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;color:#fff;background:radial-gradient(circle at 50% 25%,#3473c7,#0b1e55 65%,#070c20);box-shadow:inset -7px 0 24px #0005}.story-book-art:before{content:'';position:absolute;inset:9px;border:1px solid #ffffff3b;pointer-events:none}.story-book-art span{font-weight:900;font-size:30px;color:#d5eaff}.story-book-art strong{font-size:12px;line-height:1.2;text-shadow:0 2px 6px #001}.story-book-art small{font-weight:900;font-size:10px;letter-spacing:.15em;color:#b5d9ff}.mitm-two .story-book-art{background:radial-gradient(circle at 40% 15%,#7547ae,#1f174f 65%,#0e0a20)}.mitm-three .story-book-art{background:radial-gradient(circle at 40% 15%,#e27dac,#562454 65%,#150b26)}.tatp-one .story-book-art{background:radial-gradient(circle at 50% 25%,#885b22,#2e2015 70%,#131012)}.tatp-one .story-book-art img{width:120%;max-width:none;max-height:125px;position:static;object-fit:contain;opacity:1}.tatp-one .story-book-art span{font-size:15px;letter-spacing:.2em;color:#dcb772}.story-book-body{padding:18px 16px;display:flex;flex-direction:column;justify-content:center}.story-book-type{font-weight:900;font-size:10px;letter-spacing:.12em;color:#8bdcff}.story-book h4{font-size:18px;margin:9px 0 6px}.story-book p{font-size:13px;margin:0 0 18px}.story-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.story-buttons .btn{padding:11px 12px;font-size:10px;letter-spacing:.01em}.wip-panel{margin-top:32px;padding:24px;border:1px solid #f0bf7950;background:linear-gradient(135deg,#33263c,#191b35);border-radius:12px}.wip-panel h3{margin:10px 0;font-size:28px}.wip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.wip-grid>div{display:flex;flex-direction:column;gap:10px;padding:17px;border:1px solid #f7bb7940;border-radius:9px;background:#0b102d99}.wip-grid span{font-size:9px;letter-spacing:.11em;font-weight:900;color:#e5b885}.wip-grid strong{font-size:16px}.wip-grid small{color:#b8c6df}.wip-foot{font-size:12px;font-style:italic}
.book-dialog[hidden]{display:none!important}.book-dialog{position:fixed;inset:0;z-index:100000;background:#02030aeb;display:flex;justify-content:center;align-items:center;padding:12px;backdrop-filter:blur(11px)}.book-dialog-panel{height:min(96vh,1100px);width:min(1250px,100%);display:flex;flex-direction:column;background:#101a33;border:1px solid #9ed9ff88;border-radius:13px;overflow:hidden;box-shadow:0 0 60px #000d}.book-dialog-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px}.book-dialog-bar span{font-size:10px;letter-spacing:.13em;color:#9edaff;font-weight:900}.book-dialog-bar h2{font-size:18px;margin:5px 0}.book-dialog-actions{display:flex;gap:7px;flex-wrap:wrap}.book-dialog-actions .btn{padding:10px;font-size:10px;white-space:nowrap}.book-frame-wrap{flex:1;min-height:0;background:#e4e6e9}.book-frame-wrap iframe{display:block;width:100%;height:100%;border:0}.book-reader-tip{margin:0;padding:10px 18px;font-size:11px;color:#b4c4e1}.book-reading{overflow:hidden}
@media(max-width:940px){.story-book-grid{grid-template-columns:1fr}.story-intro{grid-template-columns:minmax(0,1fr) 190px}.wip-grid{grid-template-columns:1fr}}
@media(max-width:580px){.story-intro{display:flex;flex-direction:column-reverse;align-items:start}.story-intro img{width:140px;max-height:175px;align-self:end;margin-bottom:-5px}.story-book{grid-template-columns:103px minmax(0,1fr)}.story-book-art{padding:16px 8px}.story-book-art strong{font-size:9px}.story-book-art span{font-size:25px}.story-book-body{padding:13px 10px}.story-book h4{font-size:15px}.story-book p{font-size:12px}.story-buttons .btn{font-size:9px;padding:9px}.story-heading>span{display:none}.book-dialog{padding:4px}.book-dialog-bar{padding:10px;align-items:start;flex-direction:column}.book-dialog-bar h2{font-size:15px}.book-dialog-actions .btn{font-size:9px;padding:8px}.book-reader-tip{font-size:9px}}

/* v2.4: Original full-portrait cover art above each novel's PDF actions. */
.story-book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.story-book{display:flex;flex-direction:column;min-width:0;min-height:0}
.story-book-art{display:block;flex:0 0 auto;padding:0!important;min-height:0!important;aspect-ratio:2/3;overflow:hidden;background:#090b17!important;box-shadow:none!important}
.story-book-art:before{display:none!important}
.story-book-art img,.tatp-one .story-book-art img{position:static!important;display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center center;opacity:1!important;transition:transform .4s ease,filter .4s ease}
.story-book:hover .story-book-art img{transform:scale(1.035);filter:saturate(1.09)}
.story-book-body{flex:1;justify-content:flex-start;padding:17px 14px 16px}
.story-book h4{font-size:17px;line-height:1.25}
.story-book p{margin-bottom:18px}
.story-buttons{margin-top:auto}
@media(max-width:1100px){.story-book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-book-art{aspect-ratio:3/4}}
@media(max-width:600px){.story-book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.story-book{grid-template-columns:none}.story-book-art{aspect-ratio:2/3}.story-book-body{padding:12px 10px}.story-book h4{font-size:14px}.story-book-type{font-size:8px}.story-book p{font-size:11px}.story-buttons{gap:6px}.story-buttons .btn{font-size:9px;padding:9px 8px}}
@media(max-width:390px){.story-book-grid{grid-template-columns:1fr}.story-book-art{aspect-ratio:3/4}.story-book h4{font-size:17px}}

/* v2.5: rotating Stories entrance; text is always above the pictures. */
.story-destination{background:#0b1430!important;isolation:isolate}
.story-card-slideshow,.story-card-dim{position:absolute;inset:0;pointer-events:none;z-index:-1}
.story-card-slideshow{overflow:hidden}
.story-destination .story-cover-slide{position:absolute;inset:0;top:0;right:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center 35%;opacity:0;transform:scale(1.08);animation:storyCoverCrossfade 20s infinite;will-change:opacity,transform}
.story-destination .story-cover-slide-1{animation-delay:-1s}
.story-destination .story-cover-slide-2{animation-delay:4s}
.story-destination .story-cover-slide-3{animation-delay:9s}
.story-destination .story-cover-slide-4{animation-delay:14s}
.story-card-dim{z-index:0;background:linear-gradient(180deg,rgba(3,8,27,.2) 0%,rgba(3,8,27,.45) 38%,rgba(3,8,27,.97) 85%)}
.story-destination:before{z-index:0;opacity:.16}
.story-destination .num,.story-destination h3,.story-destination p,.story-destination strong{position:relative;z-index:1;text-shadow:0 2px 10px #000}
@keyframes storyCoverCrossfade{0%{opacity:0;transform:scale(1.08)}5%{opacity:1}18%{opacity:1}24%{opacity:0;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.story-destination .story-cover-slide{animation:none;opacity:0;transform:none}.story-destination .story-cover-slide-1{opacity:1}}
.side-story-area{margin-top:30px;padding:24px;background:linear-gradient(150deg,#171e42,#0c162b);border:1px solid #8cbaff60;border-radius:12px}
.side-story-area h3{font-size:28px;margin:12px 0}.side-story-area>p{max-width:790px;font-size:14px}.side-story-note{font-style:italic;color:#bddaf8!important;font-size:12px!important}
.side-story-trios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.side-story-trio{background:#090e26;border:1px solid #739bce66;border-radius:9px;padding:16px}.side-story-trio .trio-index{font-size:10px;letter-spacing:.13em;color:#9fdcff;font-weight:900}.side-story-trio h4{font-size:21px;margin:11px 0 4px}.side-story-trio p{font-size:12px;margin:0 0 14px}.trio-slots{display:grid;gap:7px}.trio-slots span{display:block;border:1px dashed #64799875;color:#a9b7d1;background:#121d37;border-radius:5px;padding:10px 12px;font-size:12px}
@media(max-width:760px){.side-story-trios{grid-template-columns:1fr}.side-story-area{padding:17px}}

/* v2.6: finished side-story library */
.expansion-collections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;align-items:stretch}
.expansion-volume{overflow:hidden;border:1px solid #779ac78a;border-radius:12px;background:#0b1127;display:flex;flex-direction:column;min-width:0}
.expansion-poster{aspect-ratio:2/3;overflow:hidden;background:#080d1e}
.expansion-poster img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.expansion-volume:hover .expansion-poster img{transform:scale(1.025)}
.expansion-body{padding:17px;flex:1;display:flex;flex-direction:column}
.expansion-body h4{font-size:22px;margin:9px 0 6px;line-height:1.12}
.expansion-blurb{color:#b5c9e9;font-size:12px;margin:0 0 14px}
.expansion-items{display:grid;gap:12px;margin-top:auto}
.expansion-story{border:1px solid #49658c8f;background:#141e38;border-radius:8px;padding:12px}
.expansion-story-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.expansion-count{font-size:12px;font-weight:900;color:#8fd8ff}
.expansion-story-head strong{font-size:14px;color:#fff;display:block}
.expansion-story-head small{font-size:11px;display:block;color:#b1c0da;margin-top:3px}
.expansion-story .story-buttons{display:flex;flex-wrap:wrap;gap:7px}
.expansion-story .btn{font-size:10px;padding:9px 10px;white-space:nowrap}
@media(max-width:1000px){.expansion-collections{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.expansion-collections{grid-template-columns:1fr}.expansion-volume{max-width:510px;margin:0 auto;width:100%}.expansion-poster{aspect-ratio:3/3;}.expansion-poster img{object-position:center 33%}}

/* v2.7 — Full-depth scene art. Artwork never captures clicks or changes navigation. */
body{--scene-page:#07102a;--scene-image:url('assets/vortex.webp');--scene-overlay:linear-gradient(180deg,rgba(3,7,23,.76),rgba(4,9,33,.81));--scene-texture:url('assets/vortex-rifts.svg');--scene-border:#7ccfff70;--scene-panel:rgba(8,17,44,.88);background:var(--scene-page)}
body[data-scenery="home"]{--scene-page:#20142e;--scene-image:url('assets/home-sky.webp');--scene-overlay:linear-gradient(180deg,rgba(33,13,42,.56),rgba(28,13,43,.70));--scene-texture:url('assets/home-islands.svg');--scene-border:#f5c2ea95;--scene-panel:rgba(37,20,54,.88)}
body[data-scenery="port"]{--scene-page:#1b1216;--scene-image:url('assets/porta-nexus-city-detail.webp');--scene-overlay:linear-gradient(180deg,rgba(23,13,18,.64),rgba(17,11,15,.82));--scene-texture:url('assets/port-machinery.svg');--scene-border:#dba9648c;--scene-panel:rgba(28,20,25,.91)}
/* Independent continuous wallpaper through each archive, not repeated hero illustrations. */
#destinations.section{position:relative;isolation:isolate;background:var(--scene-page);transition:background-color .55s ease;overflow:clip}
#destinations.section::before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background-image:var(--scene-overlay),var(--scene-image);background-size:cover,cover;background-position:center,center top;background-attachment:scroll,fixed;opacity:.92}
#destinations.section::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:var(--scene-texture);background-position:center top;background-repeat:repeat-y;background-size:cover;opacity:.55;transition:opacity .4s}
#destinations>.container{position:relative;z-index:1}
#destinations .content-view{position:relative}
#destinations .content-view::before{content:"";display:block;height:16px;margin:15px 0 31px;border-top:1px solid var(--scene-border);border-bottom:1px solid var(--scene-border);background:linear-gradient(90deg,transparent,var(--scene-border),transparent);box-shadow:0 0 22px -7px var(--accent);opacity:.87;pointer-events:none}
#destinations .secondary-panel,#destinations .story-intro,#destinations .side-story-area,#destinations .wip-panel{background:var(--scene-panel);border-color:var(--scene-border);box-shadow:0 14px 50px #02030760;backdrop-filter:blur(8px)}
#destinations .profile,#destinations .story-book,#destinations .expansion-volume,#destinations .expansion-story,#destinations .episode-card{border-color:var(--scene-border)}
#destinations .kicker,#destinations .story-book-type,#destinations .expansion-count{color:var(--accent)}
#destinations .pills .pill[aria-selected="true"]{background:var(--accent);border-color:var(--accent)}
/* Theme-specific archive material language. */
body[data-scenery="vortex"] #destinations .secondary-panel,body[data-scenery="vortex"] #destinations .story-intro{box-shadow:inset 0 1px #b1e9ff38,0 0 36px #3977ff26,0 18px 55px #020513a0}
body[data-scenery="home"] #destinations .secondary-panel,body[data-scenery="home"] #destinations .story-intro,body[data-scenery="home"] #destinations .side-story-area{border-radius:24px;box-shadow:inset 0 2px #fff5,0 18px 50px #1b092d8c}
body[data-scenery="home"] #destinations .destination{border-radius:22px}
body[data-scenery="home"] #destinations .content-view::before{height:27px;border-radius:50%;background:linear-gradient(90deg,transparent,#fce7fa90,transparent);filter:blur(2px)}
body[data-scenery="port"] #destinations .secondary-panel,body[data-scenery="port"] #destinations .story-intro,body[data-scenery="port"] #destinations .side-story-area,body[data-scenery="port"] #destinations .wip-panel{border-radius:4px;box-shadow:inset 0 2px #f6ca8850, inset 0 0 0 5px #160e135e, 0 18px 45px #050206a8}
body[data-scenery="port"] #destinations .destination,body[data-scenery="port"] #destinations .story-book,body[data-scenery="port"] #destinations .expansion-volume{border-radius:3px}
body[data-scenery="port"] #destinations .content-view::before{height:24px;border:3px ridge #b78657;background:repeating-linear-gradient(90deg,#24141e 0 28px,#be8c51 29px 33px,#27151d 34px 120px);box-shadow:0 3px 16px #030106}
/* A visible decorative machine assembly along both sides on wide layouts. */
body[data-scenery="port"] #destinations.section::after{background-image:url('assets/port-machinery.svg'),url('assets/port-machinery.svg');background-size:clamp(155px,18vw,350px) auto,clamp(155px,18vw,350px) auto;background-position:left -95px top 75px,right -95px top 290px;background-repeat:repeat-y,repeat-y;opacity:.82}
body[data-scenery="home"] #destinations.section::after{background-size:min(1250px,110vw) auto;opacity:.68;animation:islandFloat 18s ease-in-out infinite alternate}
body[data-scenery="vortex"] #destinations.section::after{background-size:min(1300px,100vw) auto;opacity:.63;animation:riftFloat 22s ease-in-out infinite alternate}
@keyframes islandFloat{to{background-position:12px 65px}}@keyframes riftFloat{to{background-position:-35px 32px}}
/* Large environment-specific chapter markers for the long story archive. */
body[data-scenery="port"] .side-story-area{background-image:linear-gradient(100deg,rgba(29,18,24,.96),rgba(58,38,28,.88))!important}
body[data-scenery="home"] .side-story-area{background-image:linear-gradient(110deg,rgba(48,29,60,.9),rgba(85,42,81,.8))!important}
body[data-scenery="vortex"] .side-story-area{background-image:linear-gradient(110deg,rgba(14,18,60,.89),rgba(31,29,75,.81))!important}
.footer{position:relative;background:var(--scene-page);border-color:var(--scene-border)}
@media(max-width:950px){body[data-scenery="port"] #destinations.section::after{opacity:.4;background-position:left -120px top 75px,right -120px top 290px}#destinations.section::before{background-attachment:scroll}}
@media(max-width:650px){body[data-scenery="port"] #destinations.section::after{opacity:.22;background-size:175px auto,175px auto;background-position:left -115px top,right -115px top 250px}body[data-scenery="vortex"] #destinations.section::after,body[data-scenery="home"] #destinations.section::after{opacity:.32}#destinations .secondary-panel,#destinations .side-story-area{backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){#destinations.section::after{animation:none!important}}

/* v2.8: Glorb hides deeper down the Porta Nexus archive; never obscures interaction. */
.glorb-easter-egg{display:none;position:absolute;top:1070px;right:clamp(4px,1.2vw,22px);width:clamp(80px,10vw,145px);z-index:2;pointer-events:none;filter:drop-shadow(0 8px 13px rgba(0,0,0,.65));}
body[data-scenery="port"] .glorb-easter-egg{display:block;}
.glorb-easter-egg img{width:100%;height:auto;display:block;}
.glorb-speech{position:absolute;right:48%;bottom:97%;display:block;white-space:nowrap;background:#f7e6b7;color:#3c2716;border:2px solid #99672e;border-radius:14px 14px 4px 14px;padding:8px 13px;font-size:15px;font-weight:900;letter-spacing:.02em;transform:rotate(-7deg);box-shadow:2px 5px 0 #2c1a12a8;}
.glorb-speech::after{content:"";position:absolute;right:12px;top:100%;border:7px solid transparent;border-top-color:#99672e;}
@media(max-width:820px){.glorb-easter-egg{top:1350px;right:1px;width:90px}.glorb-speech{font-size:12px;padding:6px 9px}}
@media(max-width:480px){.glorb-easter-egg{top:1420px;width:64px;opacity:.88}.glorb-speech{font-size:10px;padding:4px 7px;right:35%}}

/* v2.9: Glorb peeks from the extreme bottom-right corner of the Porta Nexus archive. */
.glorb-easter-egg{top:auto!important;bottom:0!important;right:-10px!important;width:clamp(118px,12vw,175px)!important;transform:translateY(57%);z-index:3;}
.glorb-speech{right:56%;bottom:96%;font-size:14px;}
@media(max-width:820px){.glorb-easter-egg{top:auto!important;bottom:0!important;right:-12px!important;width:125px!important;transform:translateY(55%);}}
@media(max-width:480px){.glorb-easter-egg{top:auto!important;bottom:0!important;right:-10px!important;width:100px!important;transform:translateY(55%);opacity:1;}.glorb-speech{font-size:11px;right:53%;padding:5px 8px;}}

/* v3.0 — opening archive */
.opening-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:17px;margin-top:23px}
.opening-card{display:block;width:100%;text-align:left;border:1px solid rgba(166,198,245,.28);background:rgba(10,18,35,.85);border-radius:17px;overflow:hidden;cursor:pointer;color:#f7faff;padding:0;transition:transform .2s,border-color .2s;font:inherit}
.opening-card:hover,.opening-card:focus-visible{transform:translateY(-4px);border-color:#94daff;outline-offset:3px}
.opening-art{position:relative;aspect-ratio:16/9;overflow:hidden;background:radial-gradient(circle at 50% 40%,#2875ad,#181249 56%,#0c1129);display:flex;align-items:center;justify-content:center}
.opening-art img{height:100%;width:100%;object-fit:cover;display:block}.opening-placeholder{font-size:92px;color:#a3bcff;text-shadow:0 0 38px #7b42ff}
.opening-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#081022cc;color:#fff;border-radius:50%;width:53px;height:53px;display:grid;place-items:center;padding-left:3px;font-size:19px;border:1px solid #ffffff80}
.opening-meta{padding:17px;display:grid;gap:6px}.opening-meta span{font-size:11px;color:#9ecfff;letter-spacing:.12em}.opening-meta strong{font-size:20px}.opening-meta small{font-size:12px;color:#b8c5df}

/* v3.2 Behind the Scenes gallery */
.opening-meta p{color:#c9d7ed;font-size:12px;line-height:1.65;margin:13px 0 0;}
.bts-proof-art{background:radial-gradient(circle at 75% 25%,rgba(253,99,129,.46),transparent 50%),linear-gradient(135deg,#171b3f,#382152 65%,#151c39);display:grid;place-items:center;}
.bts-proof-art .opening-placeholder{font-size:74px;color:#f2badc;}

/* v3.4 performance-first in-page player. Avoid full-screen blur and animation
   compositing against high-resolution local video. */
.episode-dialog { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; background:rgba(2,4,12,.97) !important; }
.episode-dialog-panel { overflow:hidden !important; max-height:calc(100dvh - 28px); border-radius:10px; box-shadow:none !important; }
.episode-player-frame { position:relative; overflow:hidden; background:#000; }
.episode-player-frame video { display:block; width:100%; height:100%; object-fit:contain; background:#000; filter:none !important; backdrop-filter:none !important; transform:none !important; animation:none !important; transition:none !important; }
body.episode-playing #destinations.section::before,
body.episode-playing #destinations.section::after,
body.episode-playing .hero::before,
body.episode-playing .hero::after,
body.episode-playing .scene-deco,
body.episode-playing .scene-decor,
body.episode-playing .scene-bg,
body.episode-playing .scene-background { animation-play-state:paused !important; }
body.episode-playing .secondary-panel,
body.episode-playing .story-intro,
body.episode-playing .side-story-area,
body.episode-playing .wip-panel,
body.episode-playing .scenery-launch,
body.episode-playing .top { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
@media (max-width:650px) { .episode-dialog-panel {max-height:calc(100dvh - 12px)} }

body.episode-playing .hero *, body.episode-playing #destinations * { animation-play-state:paused !important; }

/* v3.5: Keep the complete 16:9 picture inside the visible player dialog.
   The previous max-height+overflow:hidden cropped the video when the title
   and frame together exceeded the viewport. Retain the v3.4 performance fix. */
.episode-dialog{overflow-y:auto;overscroll-behavior:contain;align-items:safe center;}
.episode-dialog-panel{
  box-sizing:border-box;
  width:min(1100px,100%,calc((100dvh - 220px) * 16 / 9));
  max-height:calc(100dvh - 24px);
  display:flex;
  flex-direction:column;
  overflow:hidden!important;
}
.episode-dialog-top,.episode-dialog-foot{flex:0 0 auto;}
.episode-dialog-top h2{font-size:clamp(17px,2.2vw,28px);line-height:1.15;overflow-wrap:anywhere;}
.episode-player-frame{
  flex:0 1 auto;
  min-height:0;
  aspect-ratio:16 / 9;
  width:100%;
  overflow:hidden;
  position:relative;
}
.episode-player-frame video,.episode-player-frame iframe{
  position:absolute;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:contain;
}
@media(max-width:650px){
 .episode-dialog-panel{width:min(100%,calc((100dvh - 175px) * 16 / 9));max-height:calc(100dvh - 12px)}
 .episode-dialog-top{padding:10px 12px;gap:9px}
 .episode-dialog-foot{padding:9px 12px}
 .episode-dialog-top h2{font-size:clamp(15px,4.5vw,21px)}
}
@media(max-height:480px){
 .episode-dialog-panel{width:min(100%,calc((100dvh - 135px) * 16 / 9))}
 .episode-dialog-top{padding:6px 12px}
 .episode-dialog-foot{padding:6px 12px}
 .episode-dialog-top h2{font-size:15px}
}

/* v3.6: One little discovery at the very bottom of each scenery. Glorb remains unchanged. */
.scenery-mascot{display:none;position:absolute;bottom:0;z-index:3;pointer-events:none;filter:drop-shadow(0 9px 15px rgba(0,0,0,.65));}
.scenery-mascot img{display:block;width:100%;height:auto;}
body[data-scenery="vortex"] .mascot-vortex{display:block;}
body[data-scenery="home"] .mascot-home{display:block;}
.mascot-vortex{right:-4px;width:clamp(150px,17vw,235px);transform:translateY(12%);}
.mascot-home{left:-8px;width:clamp(140px,17vw,235px);transform:translateY(53%);}
.mascot-speech{position:absolute;bottom:91%;right:53%;white-space:nowrap;padding:7px 12px;border-radius:13px 13px 3px 13px;font-size:13px;font-weight:900;letter-spacing:.01em;box-shadow:0 5px 14px #0008;}
.mascot-vortex .mascot-speech{background:#e5e7ff;color:#15152f;border:2px solid #6258c7;right:53%;bottom:88%;transform:rotate(-5deg);}
.mascot-home .mascot-speech{background:#f5faff;color:#12436c;border:2px solid #51c8ee;right:3%;bottom:88%;transform:rotate(5deg);}
@media(max-width:820px){.mascot-vortex{width:170px;right:-8px}.mascot-home{width:155px;left:-10px}.mascot-speech{font-size:12px;padding:6px 9px}}
@media(max-width:480px){.mascot-vortex{width:125px;right:-7px;transform:translateY(13%)}.mascot-home{width:112px;left:-8px;transform:translateY(53%)}.mascot-speech{font-size:10px;padding:5px 7px}.mascot-vortex .mascot-speech{right:45%}.mascot-home .mascot-speech{right:0}}

/* v3.7: Align corner mascots with the actual section boundary. */
body[data-scenery="vortex"] #destinations.section::selection{background:#7561ed}
/* A dimensional ledge behind Rival's gloved hands, rather than a rule drawn over his fingers. */
body[data-scenery="vortex"] #destinations.section{border-bottom:0}
body[data-scenery="vortex"] #destinations.section .mascot-vortex{bottom:0;transform:none;z-index:5;}
body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{content:"";position:absolute;z-index:-1;bottom:11px;right:-30vw;width:200vw;height:7px;background:linear-gradient(90deg,#325cba,#98dfff,#6d65d9);box-shadow:0 0 12px #6097ff80;pointer-events:none}
/* Fox's face and paws should actually peek above the lower edge, not remain hidden underneath it. */
body[data-scenery="home"] #destinations.section .mascot-home{bottom:0;transform:translateY(3%);z-index:5}
/* Ensure the Stories panel's rounded corners contain its introductory illustration and copy. */
#destinations .stories-panel{border-radius:24px;overflow:hidden}
#destinations .stories-panel .story-intro{border-radius:19px 19px 0 0;padding:22px 22px 25px;align-items:center;position:relative;overflow:hidden}
#destinations .stories-panel .story-intro img{max-height:330px;max-width:100%;object-position:center bottom;align-self:end}
#destinations .stories-panel .story-intro-copy{min-width:0;position:relative;z-index:1}
@media(max-width:820px){body[data-scenery="home"] #destinations.section .mascot-home{transform:translateY(4%)}#destinations .stories-panel .story-intro{padding:17px 14px 23px}}
@media(max-width:480px){body[data-scenery="home"] #destinations.section .mascot-home{transform:translateY(2%)}#destinations .stories-panel .story-intro{border-radius:16px 16px 0 0}}

/* v3.8: Extras thumbnails and download-ready cards */
.extras-note{margin:14px 0 23px;padding:14px 18px;border:1px solid color-mix(in srgb,var(--accent,#7ac8ff) 40%,transparent);border-radius:15px;background:#08112494;line-height:1.6}
.extra-card{overflow:hidden;display:flex;flex-direction:column;cursor:default;text-align:left}
.extra-card .opening-meta{flex:1;display:flex;flex-direction:column}
.extra-card .opening-meta p{line-height:1.5;margin:10px 0 16px}
.extra-preview{padding:0;margin:0;width:100%;background:transparent;border:0;color:inherit;cursor:pointer;text-align:left}
.extra-preview:focus-visible{outline:3px solid #80daff;outline-offset:-3px}
.extra-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:12px}
.extra-actions .btn{font-size:12px;text-decoration:none;cursor:pointer}
.extra-eli-art{height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;background:radial-gradient(ellipse at 50% 40%,#ec64d7,#5c2487 45%,#0b1534 100%);color:white;text-align:center;padding:15px;box-sizing:border-box}
.extra-eli-art span{font-size:15px;letter-spacing:.22em;font-weight:800}.extra-eli-art strong{font-size:clamp(19px,2vw,28px)}.extra-eli-art small{font-size:12px;letter-spacing:.17em}
/* The gloves should meet the lower boundary, not hover over a luminous rail. */
body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(15px)}
body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{bottom:15px;height:4px;box-shadow:0 0 8px #6097ff55}
@media(max-width:480px){body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(9px)}}

/* v3.9: Rival's gloves rest flush on the dimensional sill. */
body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(23px)}
body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{bottom:23px}
@media(max-width:480px){body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(14px)}body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{bottom:14px}}

/* v4.0 Extras: same thumbnail footprint as the OP and episode cards, with compact tools */
.extra-card .opening-meta{padding:12px 13px 13px;gap:5px}
.extra-card .opening-meta>span{font-size:10px;line-height:1.15}
.extra-card .opening-meta>strong{font-size:clamp(15px,1.35vw,19px);line-height:1.22;margin:0}
.extra-card .opening-meta>small{font-size:11px;line-height:1.3}
.extra-card .opening-art{aspect-ratio:16/9;}
.extra-card .opening-art img{height:100%;width:100%;object-fit:cover}
.extra-card .extra-actions{margin-top:auto;padding-top:8px;gap:7px}
.extra-card .extra-actions .btn{font-size:10px;line-height:1.3;padding:8px 9px;min-height:unset}
.extra-card .extra-details{font-size:12px;line-height:1.3;color:#d4dcee}
.extra-card .extra-details summary{cursor:pointer;color:#9ecaff;list-style:revert}
.extra-card .extra-details p{margin:6px 0!important;font-size:12px}
/* Rival: the drawn rail is behind his gloves, not over their fingers. */
body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(18px);isolation:isolate;z-index:9}
body[data-scenery="vortex"] #destinations.section .mascot-vortex img{position:relative;z-index:2}
body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{bottom:18px;z-index:0}
body[data-scenery="vortex"] #destinations.section .mascot-vortex .mascot-speech{z-index:3}
@media(max-width:480px){body[data-scenery="vortex"] #destinations.section .mascot-vortex{transform:translateY(11px)}body[data-scenery="vortex"] #destinations.section .mascot-vortex::before{bottom:11px}}

/* v4.2: The Ancient Manuscripts — self-contained Sora-era exhibit */
.manuscripts-vault{background:linear-gradient(130deg,#201b20 0%,#30242c 45%,#181b24 100%);border:2px solid #a58251;border-radius:22px;padding:clamp(15px,3vw,38px);color:#f2e3c8;box-shadow:inset 0 0 0 5px rgba(190,143,77,.08),0 20px 48px #0005}
.manuscripts-heading{text-align:center;max-width:760px;margin:0 auto 30px;padding:16px 12px 25px;border-bottom:1px solid #806a4a}
.manuscripts-overline{font-size:.7rem;letter-spacing:.21em;color:#d5b98c;font-weight:800}
.manuscripts-icon{font-size:1.65rem;margin:12px auto 3px;color:#dfbd84}
.manuscripts-heading h3{font-family:Georgia,'Times New Roman',serif;font-size:clamp(1.6rem,4vw,3rem);letter-spacing:.035em;color:#f4d6a4;margin:8px auto;text-shadow:0 2px 17px #ac7c353b}
.manuscripts-heading p{color:#e1cfb7;line-height:1.6}.manuscripts-heading .manuscripts-intro{max-width:640px;margin:16px auto;font-size:.95rem}
.manuscripts-rule{color:#e6bd7d;letter-spacing:.17em;font-size:.75rem;margin:16px auto}
.manuscripts-count{display:inline-block;border:1px solid #a48960;color:#edd09e;border-radius:99px;padding:7px 14px;font-size:.69rem;letter-spacing:.1em;font-weight:800}
.manuscripts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:18px}
.manuscript-card{display:flex;flex-direction:column;min-width:0;border:1px solid #917753;background:linear-gradient(155deg,#3a2d2a,#24202a);border-radius:12px;overflow:hidden;box-shadow:0 8px 25px #0004}
.manuscript-preview{position:relative;display:block;width:100%;padding:0;border:0;background:#130f13;cursor:pointer;aspect-ratio:16/9;overflow:hidden}
.manuscript-preview img{width:100%;height:100%;object-fit:cover;display:block;filter:sepia(.14);transition:transform .25s}
.manuscript-preview:hover img{transform:scale(1.05)}.manuscript-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border:1px solid #edd0a5;background:#171219ad;border-radius:50%;height:48px;width:48px;color:#ffddb1}
.manuscript-content{padding:17px;display:flex;flex:1;flex-direction:column;gap:9px}.manuscript-index{font-size:.67rem;font-weight:800;color:#dab784;letter-spacing:.15em}
.manuscript-content h4{font:700 1.25rem/1.2 Georgia,'Times New Roman',serif;color:#f7debd;margin:0}.manuscript-content p{font-size:.82rem;line-height:1.55;color:#dfceb8;margin:0 0 12px;flex:1}
.manuscript-actions{display:flex;flex-wrap:wrap;gap:8px}.manuscript-actions .btn{font-size:.68rem;padding:9px 10px;min-width:0}.manuscript-actions .btn.primary{background:#b9894c;color:#191018;border-color:#b9894c}
.manuscripts-footer{text-align:center;color:#c9af8c;font-size:.78rem;margin:25px 0 0;line-height:1.6;font-style:italic}.manuscript-tab{white-space:normal}

/* v4.6: The Archive uses the Glitchframe artwork, not Glitchframe as its name. */
.destination.archive-destination{isolation:isolate;background:linear-gradient(150deg,#182645,#0b1028 77%)}
.destination.archive-destination .archive-card-art{position:absolute;inset:-37px 0 auto auto;width:100%;height:108%;max-height:none;object-fit:contain;object-position:center 23%;opacity:.84;z-index:-1;filter:drop-shadow(0 0 14px #884cff66);animation:archiveGlitch 9s steps(1,end) infinite}
.destination.archive-destination:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#080c22 2%,#0a0c21bd 32%,#11153825 78%,#12153355)}
.destination.archive-destination .num,.destination.archive-destination h3,.destination.archive-destination p,.destination.archive-destination strong{z-index:1;text-shadow:0 2px 14px #050515}
@keyframes archiveGlitch{0%,88%,91%,96%,100%{transform:translateX(0);filter:drop-shadow(0 0 14px #884cff66)}89%{transform:translateX(5px);filter:drop-shadow(-8px 0 #00e2ee)}90%{transform:translateX(-4px);filter:drop-shadow(8px 0 #f700ad)}97%{transform:translateX(2px)}}
@media(prefers-reduced-motion:reduce){.destination.archive-destination .archive-card-art{animation:none}}

/* NST mobile-only framing: preserve desktop cast composition and Port staging.
   MITM portraits must fit inside their half of the visible mobile stage. */
@media (max-width: 760px) {
  /* Base mobile framing for the MITM pairs. */
  .pair-vortex .character-left,
  .pair-home .character-left {
    left: 0; right: auto; top: 0 !important;
    width: 54%; max-width: 54%; height: 100%;
    object-fit: contain; object-position: left bottom;
  }
  .pair-vortex .character-right,
  .pair-home .character-right {
    right: 0; left: auto; top: 0 !important;
    width: 54%; max-width: 54%; height: 100%;
    object-fit: contain; object-position: right bottom;
  }

  /* Portal to Everywhere / 001: make Clyde slightly larger and a little higher. */
  .pair-vortex .character-left {
    top: -18px !important;
    width: 60%; max-width: 60%; height: calc(100% + 18px);
    z-index: 2; /* Clyde in front of Raleigh, preserving his outstretched hand. */
  }

  /* Pink Skies / 002: modestly enlarge both figures, with Raleigh
     still appearing shorter than Clyde and cropped further toward the knees. */
  .pair-home .character-left {
    width: 57%; max-width: 57%; height: 100%;
  }
  .pair-home .character-right {
    top: 32px !important;
    width: 62%; max-width: 62%; height: calc(100% + 17px);
    object-position: right top;
  }
}
