/* A title sequence with its own stage, not the playable lot beneath a menu. */
.title-screen{--title-ink:#0b2031;--apricot:#ffd39a;--coral:#ff657a;--mint:#35d6c5;position:fixed;inset:0;z-index:10;min-height:0;height:100vh;height:100dvh;overflow:auto;background:#102b37;color:#fff1d3;isolation:isolate}
.title-screen #title-scene{position:absolute;inset:0;z-index:-2;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.title-print{position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 3px,#071c2210 3px 4px)}
.title-topline{position:absolute;top:max(28px,env(safe-area-inset-top));left:38px;right:38px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-family:var(--pixel);font-size:8px;letter-spacing:1px;color:#c2ddd1;z-index:1}
.title-topline>span{display:flex;gap:10px;align-items:center}.title-topline i{width:7px;height:7px;background:#ff657a;box-shadow:2px 2px 0 #09202c}
.title-screen .title-content{width:min(1080px,90%);margin:0 auto;min-height:600px;height:100%;padding:70px 12px 110px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.title-kicker{display:flex;align-items:center;gap:12px;margin-bottom:22px;font-family:var(--pixel);font-size:8px;line-height:1.6;letter-spacing:2px;color:#bad3c5;white-space:nowrap}.title-kicker span{display:block;width:21px;height:2px;background:#35d6c5;box-shadow:2px 2px 0 #0a1c30}
.title-screen .title-content h1.title-logo{width:100%;max-width:920px;position:relative;display:flex;flex-direction:column;align-items:center;gap:0;font-family:var(--pixel);font-size:inherit;letter-spacing:0;line-height:1.15;margin:0 0 0 -8px;font-weight:normal;text-shadow:none;filter:drop-shadow(0 9px 0 #071c2b66)}
.title-screen .title-logo .title-word{--title-size:clamp(40px,min(11.5vw,18vh),170px);display:flex;align-items:baseline;justify-content:center;white-space:pre;width:max-content;max-width:none;font-size:calc(var(--title-size) * var(--fit,1));line-height:1.08;letter-spacing:-.02em;margin:0;transform:rotate(-3deg);position:relative;z-index:1}
.title-screen .title-logo .title-word:last-child{--title-size:clamp(66px,min(17vw,22vh),240px);margin-top:6px;transform:rotate(-3deg);letter-spacing:.03em;line-height:1.1;z-index:0}
.title-screen .title-logo .title-word:before{content:none}
.title-word i{font:inherit;display:inline-block;color:var(--letter-color,#ffd39a);font-style:normal;transform:rotate(var(--tilt));-webkit-text-stroke:1.2px #102137;paint-order:stroke fill;text-shadow:2px 0 #102137,-2px 0 #102137,0 2px #102137,0 -2px #102137,3px 4px #102137,4px 5px #7841b0,5px 6px #7841b0,6px 7px #7841b0,7px 8px #7841b0,8px 9px #102137,9px 10px #102137}
.title-word i:nth-child(3n+1){text-shadow:2px 0 #102137,-2px 0 #102137,0 2px #102137,0 -2px #102137,3px 4px #102137,4px 5px #b6436d,5px 6px #b6436d,6px 7px #b6436d,7px 8px #b6436d,8px 9px #102137,9px 10px #102137}
.title-screen .title-role{font-family:var(--pixel);font-size:clamp(8px,1.15vw,13px);line-height:1.8;letter-spacing:2px;color:#ffe4b5;text-shadow:2px 2px 0 #102137;margin:25px 0 0;padding:0 14px;position:relative}
.title-menu{margin-top:25px;display:flex;flex-direction:column;align-items:center}
.title-screen .start-button{position:relative;display:flex;align-items:center;justify-content:center;gap:18px;min-height:54px;padding:14px 20px 12px;font-family:var(--pixel);font-size:14px;line-height:1.5;letter-spacing:0;background:#ffd39a;color:#102b37;text-shadow:none;border:2px solid #102137;box-shadow:5px 5px 0 #ff657a,7px 7px 0 #102137;transform:rotate(-1deg);transition:transform .14s,box-shadow .14s,background .14s}
.title-screen .start-button:hover{color:#102137;background:#ffe5bd;transform:translate(-1px,-2px) rotate(-1deg);box-shadow:6px 7px 0 #ff657a,8px 9px 0 #102137}
.title-screen .start-button:active{transform:translate(3px,3px) rotate(-1deg);box-shadow:2px 2px 0 #ff657a,4px 4px 0 #102137}
.title-screen .start-button>span{position:static;font-size:12px;line-height:1;animation:none;color:inherit}.title-screen .start-button>span:last-child{font-family:var(--mono);font-size:20px}
.title-screen button:focus-visible{outline:3px solid #35d6c5;outline-offset:7px}
.title-screen .title-instruction{font-family:var(--pixel);font-size:6px;letter-spacing:1px;color:#b7d1c9;margin:17px 0 9px;line-height:1.7}
.title-screen .title-work{font-family:var(--mono);font-size:16px;line-height:1.8;letter-spacing:0;color:#bed5d0;min-height:44px;padding:8px 16px;text-shadow:1px 1px 0 #102137}
.title-work span{font-family:var(--pixel);font-size:10px;margin-left:12px;color:#ffe4b5;white-space:nowrap}.title-screen .title-work:hover,.title-screen .title-work:hover span{color:#35d6c5}
.title-screen.is-loading .title-menu{display:none}
.title-screen .title-loading{margin-top:12px;font-family:var(--pixel);font-size:8px;line-height:1.8;color:#ffe4b5;max-width:340px;text-shadow:2px 2px #102137}.title-screen .title-loading:not([hidden]){background:#102b37e8;border:1px solid #5b7982;padding:12px 18px}.title-loading a{display:inline-block;margin-top:10px}
.title-screen .title-footer{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:38px;right:38px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#b9d0c8;font-family:var(--pixel);font-size:7px;letter-spacing:.2px;text-shadow:2px 2px 0 #102137}
.title-screen .title-footer button{border:1px solid #789b9a66;padding:8px 12px;min-height:44px;min-width:100px;background:#102b37cc;font-size:7px;letter-spacing:1px;color:#ffe4b5;text-shadow:none}
.title-screen .title-footer button[aria-pressed=true]{color:#35d6c5;border-color:#35d6c5}
.title-screen .crew-seal{position:absolute;right:5%;bottom:120px;display:block;padding:12px 15px;border:2px solid #35d6c5;color:#35d6c5;box-shadow:inset 0 0 0 3px #102b37,0 0 0 2px #102b37;font-family:var(--pixel);font-size:8px;letter-spacing:.4px;line-height:1.7;transform:rotate(7deg);background:#102b37e8;text-align:center}.title-screen .crew-seal span{display:block;color:#ff657a;margin:3px 0 0}
.app[inert]{visibility:hidden}.app[inert].revealing{visibility:visible}
.scene-transition{position:fixed;inset:0;z-index:20;pointer-events:auto;display:flex;overflow:hidden}
.scene-transition>span{position:absolute;top:0;bottom:0;width:51%;background:repeating-linear-gradient(90deg,#102b37 0 30px,#123747 30px 58px,#102b37 58px 62px);transition:transform .26s cubic-bezier(.65,0,.35,1);will-change:transform}
.scene-transition>span:first-child{left:0;transform:translateX(-103%);border-right:6px solid #ff657a;box-shadow:6px 0 0 #081c29}
.scene-transition>span:last-child{right:0;transform:translateX(103%);border-left:6px solid #35d6c5;box-shadow:-6px 0 0 #081c29}
.scene-transition.closed>span{transform:translateX(0)}
@media(min-width:1450px){.title-screen .title-content{padding-bottom:130px}.title-kicker{margin-bottom:36px}.title-menu{margin-top:40px}}
@media(max-width:700px){.title-topline{left:20px;right:20px;top:max(22px,env(safe-area-inset-top));font-size:6px;letter-spacing:0}.title-topline>span{gap:6px}.title-topline i{width:5px;height:5px}.title-screen .title-content{width:92%;min-height:540px;padding:75px 0 135px}.title-kicker{font-size:6px;letter-spacing:1px;margin-bottom:26px;gap:8px}.title-kicker span{width:15px}.title-screen .title-logo .title-word{--title-size:clamp(46px,18vw,108px)}.title-screen .title-logo .title-word:last-child{--title-size:clamp(70px,28vw,164px);margin-top:13px}.title-word i{-webkit-text-stroke:.8px #102137}.title-screen .title-role{font-size:8px;letter-spacing:1px;margin-top:27px;max-width:310px}.title-menu{margin-top:29px}.title-screen .start-button{font-size:11px;min-height:51px;padding:13px 15px 11px;gap:14px}.title-screen .start-button>span{font-size:10px}.title-screen .title-instruction{font-size:5px;letter-spacing:.6px;margin:16px 0 7px}.title-screen .title-work{font-size:14px;padding:6px 8px}.title-work span{font-size:8px;margin-left:8px}.title-screen .title-footer{left:20px;right:20px;bottom:max(17px,env(safe-area-inset-bottom));font-size:5px;letter-spacing:0}.title-screen .title-footer button{font-size:6px;min-width:87px;padding:8px}.title-screen .crew-seal{right:20px;bottom:92px;font-size:6px;padding:8px 10px}.title-screen .title-loading{font-size:6px;max-width:260px}}
@media(max-height:700px){.title-screen .title-content{min-height:100%;padding-top:65px;padding-bottom:90px}.title-kicker{margin-bottom:18px}.title-screen .title-logo .title-word{--title-size:clamp(35px,min(18vw,12vh),100px)}.title-screen .title-logo .title-word:last-child{--title-size:clamp(55px,min(28vw,17vh),140px);margin-top:7px}.title-screen .title-role{margin-top:22px}.title-menu{margin-top:22px}.title-screen .title-instruction{margin-top:15px}.title-screen .crew-seal{bottom:90px}}
@media(max-height:540px) and (min-width:600px){.title-topline{top:18px;font-size:6px}.title-screen .title-content{width:85%;padding:48px 10px 54px;min-height:390px}.title-kicker{display:none;font-size:6px;margin-bottom:13px}.title-screen .title-content h1.title-logo{flex-direction:row;justify-content:center;gap:22px;max-width:900px}.title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(40px,10vw,90px);line-height:1.15;margin:0;letter-spacing:0;transform:rotate(-3deg)}.title-screen .title-role{font-size:8px;margin-top:22px}.title-menu{margin-top:18px}.title-screen .start-button{font-size:10px;min-height:44px;padding:9px 13px}.title-screen .title-instruction{font-size:5px;margin:13px 0 1px}.title-screen .title-work{font-size:13px;min-height:44px;padding:6px 12px}.title-work span{font-size:8px}.title-screen .title-footer{bottom:10px;font-size:5px}.title-screen .title-footer button{font-size:6px;min-height:44px}.title-screen .crew-seal{right:25px;bottom:65px;font-size:6px;padding:7px 9px}}
@media(max-width:360px){.title-screen .title-role{font-size:7px;letter-spacing:.5px}.title-screen .title-work{font-size:13px}.title-work span{display:block;margin-left:0}.title-screen .title-footer{left:13px;right:13px}.title-screen .title-content{width:90%}}
@media(prefers-reduced-motion:reduce){.scene-transition>span{transition:none}.title-screen .start-button{transition:none}}
body.calm .scene-transition>span{transition:none}

/* Cinematic lettering only: the live soundstage, props and controls stay intact. */
@font-face{font-family:BacklotTitle;src:url('assets/title-pixel.woff2') format('woff2');font-display:swap;font-style:normal;font-weight:900}
.title-screen .title-content h1.title-logo{max-width:1120px;flex-direction:row;justify-content:center;gap:26px;margin:0;font-family:BacklotTitle,Impact,'Arial Black',sans-serif;font-weight:900;filter:none}
.title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(70px,min(15vw,27vh),220px);display:block;font-size:calc(var(--title-size) * var(--fit,1));font-weight:900;line-height:.95;letter-spacing:0;margin:0;transform:none;z-index:auto}
.title-screen .title-logo .title-word i,.title-screen .title-logo .title-word i:nth-child(3n+1){font:inherit;color:#f02725;font-style:normal;transform:none;-webkit-text-stroke:0;text-shadow:.02em .02em 0 #8b1b22,.055em .065em 0 #061722}
.title-screen .title-role{margin-top:20px}
@media(max-width:700px){
 .title-screen .title-content h1.title-logo{flex-direction:column;gap:1px;max-width:560px}
 .title-screen .title-logo .title-word{--title-size:clamp(65px,24vw,150px);line-height:1.02}
 .title-screen .title-logo .title-word:last-child{--title-size:clamp(100px,35vw,220px);line-height:1.02;letter-spacing:0}
 .title-screen .title-role{margin-top:24px}
}
@media(max-height:700px){
 .title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(58px,min(22vw,24vh),160px)}
}
@media(max-height:540px) and (min-width:600px){
 .title-screen .title-content h1.title-logo{flex-direction:row;gap:22px;max-width:900px}
 .title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(60px,min(16vw,23vh),120px);line-height:.95;margin:0;letter-spacing:0;transform:none}
 .title-screen .title-role{margin-top:18px}
}

/* Actual builds on the original soundstage. The approved red type/shadow is
   unchanged; only its vertical composition makes room for the scenic plates. */
.title-screen .title-content{justify-content:flex-start;padding-top:clamp(100px,12vh,125px);padding-bottom:0;min-height:600px}
.title-screen .title-kicker{display:none}
.title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(70px,min(15vw,18vh),180px)}
.title-screen .title-role{margin-top:19px}
.title-screen .title-menu{position:absolute;top:77%;margin:0;left:0;right:0}
.title-screen .title-instruction{margin-top:14px;margin-bottom:4px}
.title-screen .title-work{padding-top:6px;padding-bottom:6px}
.title-showcase{position:absolute;top:69%;left:50%;transform:translateX(-50%);width:min(580px,80%);display:flex;align-items:center;justify-content:center;gap:22px;min-height:46px;color:#E1DCC2}
.title-set-label{display:flex;flex-direction:column;gap:5px;text-align:left;font-family:var(--pixel);line-height:1.5}
.title-set-label>span:first-child{font-size:7px;letter-spacing:1px;color:#89A9A7}
.title-set-label strong{font-size:12px;letter-spacing:.5px;font-weight:normal;text-shadow:2px 2px #102137}
.title-set-label>span:last-child{font-size:7px;letter-spacing:.7px;color:#ADC1B5}
.title-set-buttons{display:flex;align-items:center;gap:3px}
.title-screen .title-set-buttons button{min-width:40px;min-height:44px;padding:8px;background:#102B378C;border:1px solid #6E999340;color:#B8D0BD;font-family:var(--mono);font-size:17px;line-height:1}
.title-screen .title-set-buttons button:hover{color:#FFD39A;border-color:#99BDA0;background:#183E49}
.title-screen .title-set-buttons button[aria-pressed=true]{color:#35D6C5;border-color:#35D6C580}
.title-screen .title-loading{position:absolute;top:78%;left:50%;transform:translateX(-50%);margin:0}
@media(max-width:700px){
 .title-screen .title-content{padding-top:clamp(96px,12vh,112px);min-height:590px}
 .title-screen .title-kicker{margin-bottom:11px;font-size:5px}
 .title-screen .title-logo .title-word{--title-size:clamp(61px,min(23vw,11vh),104px)}
 .title-screen .title-logo .title-word:last-child{--title-size:clamp(84px,min(32vw,15vh),145px)}
 .title-screen .title-content h1.title-logo{gap:0}
 .title-screen .title-role{font-size:7px;margin-top:15px;letter-spacing:.7px}
 .title-screen .title-menu{top:77%}
 .title-screen .start-button{min-height:48px;font-size:10px;padding:11px 14px 10px;gap:12px}
 .title-screen .title-instruction{margin-top:11px;margin-bottom:1px;font-size:4px}
 .title-screen .title-work{font-size:14px;min-height:44px;padding:6px 8px}
 .title-work span{font-size:8px}
 .title-showcase{top:69%;width:88%;gap:13px;min-height:47px}
 .title-set-label{gap:3px}.title-set-label strong{font-size:9px;letter-spacing:0}.title-set-label>span:first-child,.title-set-label>span:last-child{font-size:6px;letter-spacing:.5px}
 .title-screen .title-set-buttons button{min-width:34px;min-height:44px;padding:7px;font-size:15px}
 .title-screen .crew-seal{right:14px;bottom:155px;font-size:4px;padding:5px 7px}
}
@media(max-height:740px){
 .title-screen .title-content{padding-top:92px}
 .title-screen .title-kicker{margin-bottom:8px}
 .title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(56px,min(15vw,17vh),120px)}
 .title-screen .title-role{font-size:7px;margin-top:12px}
 .title-screen .title-menu{top:76%}
 .title-screen .start-button{font-size:10px;min-height:44px;padding:9px 13px}
 .title-screen .title-instruction{margin-top:10px;font-size:4px}
 .title-screen .title-work{font-size:14px;min-height:44px;padding:5px 8px}.title-work span{font-size:8px}
 .title-screen .title-footer{bottom:10px}.title-screen .title-footer button{min-height:36px}
 .title-showcase{top:68.5%;min-height:42px}
}
@media(max-height:540px) and (min-width:600px){
 .title-screen .title-content{min-height:420px;padding-top:47px}
 .title-screen .title-logo .title-word,.title-screen .title-logo .title-word:last-child{--title-size:clamp(50px,min(12vw,18vh),86px)}
 .title-screen .title-role{margin-top:8px;font-size:6px}
 .title-screen .title-menu{top:77%;align-items:center}
 .title-screen .title-instruction{display:none}.title-screen .title-work{position:absolute;top:0;left:calc(50% + 120px);max-width:calc(50% - 132px);white-space:normal;font-size:12px;line-height:1.4}
 .title-work span{display:block;font-size:8px;margin-left:0}
 .title-showcase{top:65%;gap:18px}
 .title-set-label strong{font-size:6px}.title-set-label>span:first-child,.title-set-label>span:last-child{font-size:4px}
 .title-screen .title-footer{bottom:6px;font-size:4px}.title-screen .title-footer button{min-height:30px}
}

/* Keep short viewports scrollable within the screen, not taller than it. */
@media(max-height:620px) and (max-width:599px){
 .title-screen .title-showcase{top:65%}
 .title-screen .title-menu{top:74%}
 .title-screen .title-work{min-height:44px;font-size:13px}
}

@media(max-width:360px){
 .title-screen .title-work{font-size:13px;line-height:1.5}
 .title-work span{display:block;font-size:8px;margin:2px 0 0;line-height:1.5}
}
