:root{color-scheme:dark;--ivory:#f0e6cf;--muted:#a4aaa5;--amber:#d8b577;--red:#ab493d;--ink:#0b1114}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--ink);color:var(--ivory);font-family:system-ui,'Malgun Gothic',sans-serif}button,a,input{-webkit-tap-highlight-color:transparent}button,a{color:inherit}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:1px solid var(--amber);outline-offset:5px}[hidden]{display:none!important}#game{position:relative;width:100%;height:100dvh;overflow:hidden;isolation:isolate}#world{position:absolute;inset:-1.5%;background:url('../lobby-flow-preview/clinic.jpg') center 62%/cover no-repeat;transform:scale(1.025);animation:worldDrift 32s ease-in-out infinite alternate;filter:saturate(.63) brightness(.8);z-index:-3}.shade{position:absolute;inset:0;background:linear-gradient(90deg,#080e13c9,transparent 64%),linear-gradient(0deg,#080c11ed,transparent 45%,#080c113d);z-index:-2}.grain{position:absolute;inset:0;z-index:8;pointer-events:none;opacity:.09;background:repeating-linear-gradient(0deg,transparent,transparent 3px,#0008 4px);mix-blend-mode:soft-light}#cinema{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#080b0d;z-index:0}header{position:absolute;top:max(20px,env(safe-area-inset-top));left:max(4.5vw,env(safe-area-inset-left));right:max(4.5vw,env(safe-area-inset-right));z-index:10;display:flex;justify-content:space-between;align-items:center;height:30px}#brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#e4e2d4}#brand b{font-size:24px;color:var(--red);font-weight:700}#brand span{font:600 13px/1 'RageEN',sans-serif;letter-spacing:.35em}.utility{display:flex;gap:16px;align-items:center}.utility button{border:0;background:none;display:flex;align-items:center;gap:7px;padding:7px;color:#d9ddda;font-size:10px;letter-spacing:.08em;min-width:30px;min-height:32px;text-shadow:0 1px 5px #000}.utility svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.prologue{position:absolute;top:93px;left:5%;font:10px/1 system-ui;letter-spacing:.28em;color:#d5d9d5;display:flex;align-items:center;gap:9px;text-shadow:0 2px 5px #000}.prologue i{height:4px;width:4px;background:var(--red);box-shadow:0 0 12px var(--red)}#skip{position:absolute;right:5%;bottom:8%;border:1px solid #e0d7bc55;background:#0a111644;min-height:42px;padding:10px 15px;font:500 12px 'RageEN',sans-serif;letter-spacing:.2em;backdrop-filter:blur(4px)}#skip span{font:25px/10px system-ui;vertical-align:-2px;margin-left:16px}.cinema-line{position:absolute;left:5%;right:5%;bottom:5%;height:1px;background:#fff3}.cinema-line i{height:100%;display:block;background:#ded2b4;width:0;transition:width .2s linear}#videoStatus{position:absolute;bottom:8%;left:5%;margin:0;max-width:65%;font-size:11px;letter-spacing:.07em;text-shadow:0 1px 6px #000;color:#e8e2d4}#resumeVideo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #d6c9a955;padding:14px 28px;background:#10171dcc;color:var(--ivory)}#title{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:60px 20px 70px}.title-lockup{transform:translateY(-7%);animation:titleArrival .7s cubic-bezier(.18,.8,.3,1) both}.title-mark{font:700 clamp(35px,6vh,60px)/1 system-ui;color:var(--red);text-shadow:0 0 35px #8a392238;margin-bottom:16px}.edition{font:500 11px/1 'RageEN',sans-serif;letter-spacing:.8em;margin-left:.8em;color:#c2bba8;margin-bottom:13px}h1{font:400 clamp(64px,10.8vw,160px)/1.15 'RageKR',sans-serif;letter-spacing:-.055em;margin:0;padding:0 .1em .06em;transform:skewX(-7deg);color:var(--ivory);background:linear-gradient(174deg,#fffbed 8%,#eee5cb 42%,#baab8b 89%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 4px 0 #10161bea) drop-shadow(0 9px 22px #0008)}.english{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:15px;font:400 15px/1 'RageEN',sans-serif;letter-spacing:.52em;color:#d3c9b0}.english i{height:1px;width:45px;background:linear-gradient(90deg,transparent,#b5a99180)}.english i:last-child{transform:rotate(180deg)}#pressStart{position:absolute;bottom:18%;border:0;background:none;padding:16px 28px;min-width:240px;min-height:80px;color:#e8dfcb;text-align:center}#pressStart strong{font:600 clamp(16px,2vw,23px)/1 'RageEN',sans-serif;letter-spacing:.38em;display:block;margin-left:.38em;animation:startBlink 1.65s ease-in-out infinite;text-shadow:0 0 22px #e9cb8566}#pressStart span{display:block;font-size:10px;letter-spacing:.18em;margin-top:15px;color:#969d98}.world-line{position:absolute;bottom:7%;font-size:10px;letter-spacing:.22em;color:#a4aaa4;margin:0}.menu-heading{margin-bottom:27px}.menu-heading>span{font:400 10px 'RageEN';letter-spacing:.42em;color:#a3aaa4}.menu-heading h2{font:400 clamp(27px,3vw,45px)/1.15 'RageKR',sans-serif;margin:8px 0 0;color:var(--ivory);letter-spacing:.02em}#menuTitle{font-family:'RageEN',sans-serif;font-weight:500;letter-spacing:.08em}#menu,#battle,#options{position:absolute;left:10%;top:20%;width:350px;max-width:42vw;animation:menuArrival .35s ease-out both}nav{display:flex;flex-direction:column;gap:2px}nav>button,nav>a{position:relative;width:100%;display:flex;align-items:center;gap:16px;padding:14px 18px 14px 0;min-height:65px;border:0;border-bottom:1px solid #b4b5a621;background:none;text-align:left;text-decoration:none;transition:color .16s,background .16s,padding .2s;color:#bbc1b8}nav>button::before,nav>a::before{content:'';position:absolute;left:-18px;top:14px;bottom:14px;width:2px;background:var(--amber);transform:scaleY(0);transition:transform .15s;box-shadow:0 0 14px #d2a76633}nav small{font:400 10px 'RageEN';letter-spacing:.04em;color:#79857f}nav span{display:grid;gap:6px}nav b{font-size:clamp(18px,1.9vw,25px);font-weight:600;letter-spacing:-.03em}nav em{font:400 9px 'RageEN';letter-spacing:.21em;color:#8c9a90;font-style:normal}nav i{margin-left:auto;font:400 21px/1 system-ui;opacity:0;transform:translateX(-6px);transition:.2s}nav .selected{padding-left:9px;color:#fff1d3;background:linear-gradient(90deg,#d5b2761e,transparent)}nav .selected::before{transform:scaleY(1)}nav .selected small{color:var(--amber)}nav .selected em{color:#c4b99e}nav .selected i{opacity:1;transform:translateX(0)}.menu-bottom,.battle-note{margin-top:22px;color:#a0a99f;font-size:11px;line-height:1.8;min-height:40px}.option-row{border:0;border-bottom:1px solid #c2bda52e;padding:20px 0;width:100%;background:none;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--ivory);font-size:14px;text-align:left;min-height:61px}.option-row input{width:42%;accent-color:var(--amber)}.option-row b,.option-row output{font:500 12px 'RageEN';color:var(--amber);min-width:24px}.option-note{font-size:11px;color:#89968f;line-height:1.8;margin-top:22px}#sceneCaption{position:absolute;right:7%;bottom:18%;text-align:right;pointer-events:none}#sceneCaption span{font:500 9px 'RageEN';letter-spacing:.28em;color:#b3b9ad}#sceneCaption i{display:block;width:25px;height:2px;background:var(--red);margin:14px 0 18px auto}#sceneCaption p{font-size:15px;line-height:1.8;letter-spacing:-.03em;color:#dbdfd1;margin:0;font-weight:300}body[data-phase=cinema] #sceneCaption,body[data-phase=title] #sceneCaption{display:none}footer{position:absolute;left:5%;right:5%;bottom:max(22px,env(safe-area-inset-bottom));display:flex;gap:20px;align-items:center;color:#929e95;font-size:10px;z-index:4}#back{border:0;background:none;color:#dbdfd1;font-size:12px;min-height:34px;padding:0 12px 0 0}#inputHint{letter-spacing:.05em;font-size:10px}.footer-brand{margin-left:auto;font:400 9px 'RageEN';letter-spacing:.2em;color:#7a877d}#curtain{position:absolute;inset:0;z-index:20;background:#080d10;opacity:0;pointer-events:none;transition:opacity .22s ease}#curtain.closed{opacity:1;pointer-events:auto}#notice{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);max-width:80%;padding:12px 18px;background:#10191eee;border-left:2px solid var(--amber);font-size:12px;line-height:1.7;z-index:30}.reduce-motion #world{animation:none}.reduce-motion #pressStart strong{animation:none}.reduce-motion .title-lockup,.reduce-motion #menu,.reduce-motion #battle,.reduce-motion #options{animation:none}body[data-phase=title] .shade{background:radial-gradient(ellipse at 50% 43%,#080d1040,#080d10b8 90%),linear-gradient(0deg,#080d10db,transparent 55%)}body:not([data-phase=cinema]) #cinema{display:none}body[data-phase=menu] #world,body[data-phase=battle] #world,body[data-phase=options] #world{background-position:center 64%}body[data-phase=menu] .shade,body[data-phase=battle] .shade,body[data-phase=options] .shade{background:linear-gradient(90deg,#081117f2 0%,#081117ba 37%,#08111725 72%),linear-gradient(0deg,#080d10bf,transparent 65%)}
@keyframes startBlink{0%,100%{opacity:1}50%{opacity:.3}}@keyframes titleArrival{from{opacity:0;filter:blur(8px);transform:translateY(-7%) scale(1.1)}to{opacity:1;filter:blur(0);transform:translateY(-7%) scale(1)}}@keyframes menuArrival{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}@keyframes worldDrift{from{transform:scale(1.025) translateX(-.2%)}to{transform:scale(1.055) translateX(.2%)}}
@media(orientation:portrait){#world{background-position:center 54%}header{top:max(24px,env(safe-area-inset-top));left:7%;right:7%}#brand span{font-size:11px;letter-spacing:.24em}.utility{gap:10px}.utility button span{font-size:9px}#cinema{object-fit:cover;object-position:center}.title-lockup{width:100%;transform:translateY(-22%)}.title-mark{font-size:40px;margin-bottom:24px}h1{font-size:clamp(54px,15.5vw,94px)}.edition{font-size:10px;letter-spacing:.6em}.english{font-size:12px;letter-spacing:.4em;gap:14px}.english i{width:30px}#pressStart{bottom:23%}#pressStart strong{font-size:19px}.world-line{bottom:12%;font-size:10px}#menu,#battle,#options{left:12%;top:24%;width:76%;max-width:none}.menu-heading{margin-bottom:23px}.menu-heading h2{font-size:34px}nav b{font-size:23px}nav>button,nav>a{min-height:74px;padding-top:17px;padding-bottom:17px}nav em{font-size:9px}.menu-bottom,.battle-note{font-size:11px;max-width:280px}#sceneCaption{right:10%;bottom:14%}#sceneCaption p{display:none}#sceneCaption i{margin:10px 0 0 auto}#sceneCaption span{font-size:8px;letter-spacing:.14em}footer{left:8%;right:8%;bottom:max(25px,env(safe-area-inset-bottom))}.footer-brand{font-size:8px}#inputHint{font-size:9px}body:not([data-phase=cinema]):not([data-phase=title]) .shade{background:linear-gradient(90deg,#081117e8,#08111790 75%),linear-gradient(0deg,#080d10cc,transparent 75%)}.prologue{top:92px;left:8%}#skip{right:8%;bottom:9%}#videoStatus{left:8%;bottom:17%;max-width:84%}.cinema-line{left:8%;right:8%;bottom:6%}}
@media(max-height:520px) and (orientation:landscape){header{top:max(13px,env(safe-area-inset-top))}#title{padding-top:42px}.title-mark{font-size:30px;margin-bottom:8px}.edition{font-size:9px;margin-bottom:5px}h1{font-size:clamp(64px,11vw,104px)}.english{margin-top:8px;font-size:12px}#pressStart{bottom:12%;padding:10px 24px;min-height:62px}#pressStart strong{font-size:17px}#pressStart span{margin-top:10px;font-size:9px}.world-line{bottom:5%}#menu,#battle,#options{top:18%;left:10%;width:310px;max-width:48vw}.menu-heading{margin-bottom:9px}.menu-heading h2{font-size:28px}.menu-heading>span{font-size:8px}nav>button,nav>a{min-height:48px;padding-top:8px;padding-bottom:8px}nav b{font-size:19px}nav em{font-size:8px}nav span{gap:4px}.menu-bottom,.battle-note{margin-top:10px;font-size:10px;min-height:22px}footer{bottom:10px}#sceneCaption{bottom:18%;right:7%}#sceneCaption p{font-size:12px}.option-row{padding:13px 0;min-height:48px}.option-note{margin-top:12px;font-size:10px}.prologue{top:65px}}
@media(prefers-reduced-motion:reduce){#world,.title-lockup,#pressStart strong,#menu,#battle,#options{animation:none!important}*{scroll-behavior:auto!important}}
/* Existing Yame Clinic identity and content notice. */
#brand.content-rating{gap:9px;color:#ff4b52;animation:ratingPulse 1.8s ease-in-out infinite}#brand .age-mark{display:grid;place-items:center;width:38px;height:38px;border:2px solid #ff434b;border-radius:50%;font:800 24px/1 system-ui;color:#ff555b;box-shadow:0 0 13px #e72f453b}#brand .rating-copy{display:flex;flex-direction:column;gap:5px;letter-spacing:0;font:11px/1.1 system-ui}#brand .rating-copy strong{font-size:10px;font-weight:700;letter-spacing:.08em}#brand .rating-copy span{font:700 11px/1.1 system-ui;letter-spacing:.03em}#brand .rating-copy i{font-style:normal;opacity:.6;margin:0 3px}.title-lockup{width:min(74vw,760px)}h1.official-title{margin:0;transform:none;filter:none;background:none;-webkit-text-fill-color:initial;font-size:inherit;line-height:1}h1.official-title img{display:block;width:100%;height:auto;mix-blend-mode:screen;filter:drop-shadow(0 6px 16px #0008)}@keyframes ratingPulse{0%,100%{opacity:1;filter:drop-shadow(0 0 5px #ff26364d)}50%{opacity:.58;filter:drop-shadow(0 0 1px #ff263622)}}.reduce-motion #brand.content-rating{animation:none}@media(orientation:portrait){.title-lockup{width:88%;transform:translateY(-22%)}#brand .rating-copy span{font-size:10px}#brand .age-mark{width:34px;height:34px;font-size:22px}}@media(max-height:520px) and (orientation:landscape){.title-lockup{width:min(56vw,490px)}#brand .age-mark{width:30px;height:30px;font-size:20px}#brand .rating-copy{gap:3px}#brand .rating-copy span{font-size:9px}#brand .rating-copy strong{font-size:8px}}@media(prefers-reduced-motion:reduce){#brand.content-rating{animation:none}}
/* Original shared, simple wordmark; smaller console title. */
.title-lockup{width:min(58vw,600px)}h1.official-title img{mix-blend-mode:normal}@media(orientation:portrait){.title-lockup{width:76%}}@media(max-height:520px) and (orientation:landscape){.title-lockup{width:min(44vw,390px)}}
.orientation-icon{width:30px;min-width:30px!important;height:32px;padding:5px!important;justify-content:center;color:#cbd2cb!important}.orientation-icon svg{width:21px;height:21px}.orientation-icon[aria-pressed=true]{color:#fff1d3!important;background:#d5b27617!important;border-radius:4px}.utility{gap:9px}@media(orientation:portrait){.utility{gap:3px}.utility #sound span{display:none}}@media(max-height:520px){.utility{gap:7px}}
/* Korean UI uses the same Black Han Sans face as RAGE. */
html,body{font-family:'RageKR',system-ui,sans-serif}button,input,output{font-family:inherit}.title-subtitle{margin:12px 0 0;font:400 clamp(16px,2.1vw,25px)/1.35 'RageKR',sans-serif;letter-spacing:.2em;color:#e8ddc3;text-shadow:0 2px 10px #0009}#brand .rating-copy,#brand .rating-copy span,#brand .rating-copy strong{font-family:'RageKR',sans-serif;font-weight:400}#skip,#resumeVideo,#videoStatus,#pressStart span,.menu-heading h2,nav b,.menu-bottom,.battle-note,.option-row,.option-note,#back,#inputHint,#notice,.utility button{font-family:'RageKR',sans-serif}#pressStart strong,.menu-heading>span,nav em,nav small,.footer-brand{font-family:'RageEN','RageKR',sans-serif}@media(max-height:520px) and (orientation:landscape){.title-subtitle{font-size:17px;margin-top:8px}}@media(orientation:portrait){.title-subtitle{font-size:19px;margin-top:13px}}
/* Frame the ruined city above the clinic; keep signage outside both viewports. */
#world{background-image:none!important;overflow:hidden}#world::before{content:'';position:absolute;inset:0 0 auto;height:240%;background:url('../lobby-flow-preview/clinic.jpg') center top/cover no-repeat}body[data-phase=menu] #world,body[data-phase=battle] #world,body[data-phase=options] #world{background-position:center top}
.utility #sound span{display:none!important}#orientationToggle{background:none!important}.utility #sound svg{width:19px;height:19px}
/* Separate the existing emblem, Korean wordmark and subtitle. */
.clinic-emblem{display:block;width:clamp(85px,13vw,150px);height:auto;margin:0 auto 16px;filter:drop-shadow(0 3px 8px #0008)}.wordmark-crop{display:block;position:relative;width:100%;aspect-ratio:730/170;overflow:hidden}.wordmark-crop img{position:absolute;max-width:none;width:132.2%!important;height:auto;left:-28.75%;top:-41.2%}.title-subtitle{font:400 13px/1.4 'RageKR',sans-serif;letter-spacing:.1em;color:#d4d4c6;margin:16px 0 0}#brand .age-mark{width:42px;height:42px;font-size:27px}#brand .rating-copy strong{font-size:12px}#brand .rating-copy span{font-size:13px}#brand .rating-copy{gap:5px}@media(orientation:portrait){.clinic-emblem{width:100px;margin-bottom:18px}.title-subtitle{font-size:14px;margin-top:18px}#brand .age-mark{width:38px;height:38px;font-size:25px}#brand .rating-copy strong{font-size:11px}#brand .rating-copy span{font-size:12px}}@media(max-height:520px) and (orientation:landscape){.clinic-emblem{width:92px;margin-bottom:10px}.title-lockup{width:min(42vw,365px)}.title-subtitle{font-size:12px;margin-top:12px}#brand .age-mark{width:35px;height:35px;font-size:24px}#brand .rating-copy strong{font-size:10px}#brand .rating-copy span{font-size:11px}}
/* Thin Korean menu typography; title identity stays unchanged. */
#menu,#battle,#options,#menu button,#battle a,#options button,#options input,#options output,#menu nav b,#battle nav b,.menu-heading h2,.menu-bottom,.battle-note,.option-row,.option-note,#back,#inputHint{font-family:'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif;font-weight:300}#menu nav b,#battle nav b{font-weight:300;letter-spacing:-.035em}.menu-heading h2{font-weight:300}.menu-bottom,.battle-note,.option-note{font-weight:400}

/* Larger identity; subtitle follows START. */
.title-lockup{width:min(68vw,710px);transform:translateY(-12%)}.clinic-emblem{width:clamp(115px,16vw,185px);margin-bottom:18px}#pressStart .title-subtitle{display:block;margin:15px 0 0;font:400 13px/1.4 'RageKR',sans-serif;letter-spacing:.1em;color:#d4d4c6}@media(orientation:portrait){.title-lockup{width:88%;transform:translateY(-24%)}.clinic-emblem{width:125px;margin-bottom:20px}#pressStart .title-subtitle{font-size:14px;margin-top:17px}}@media(max-height:520px) and (orientation:landscape){.title-lockup{width:min(55vw,470px);transform:translateY(-15%)}.clinic-emblem{width:120px;margin-bottom:12px}#pressStart{bottom:10%}#pressStart .title-subtitle{font-size:12px;margin-top:12px}}
/* Keep the enlarged emblem; restore the earlier wordmark size. */
h1.official-title{width:80%;margin:0 auto}@media(orientation:portrait){h1.official-title{width:86%}}@media(max-height:520px) and (orientation:landscape){h1.official-title{width:78%}}
#characterLayer{position:absolute;z-index:1;left:-10%;top:8%;width:59%;height:105%;border:0;background:transparent;pointer-events:none;mask-image:linear-gradient(0deg,transparent 0%,#000 24%),linear-gradient(90deg,#000 70%,transparent 100%);mask-composite:intersect}#title,#menu,#battle,#options{z-index:3}body:not([data-phase=title]) #characterLayer{visibility:hidden}#title .title-lockup{filter:drop-shadow(0 3px 12px #000a)}@media(orientation:portrait){#characterLayer{left:-52%;top:12%;width:132%;height:89%;opacity:.9}}@media(max-height:520px) and (orientation:landscape){#characterLayer{left:-10%;top:4%;width:58%;height:110%}}
#characterLayer{color-scheme:dark}
/* Poster crop: upper face outside the frame, down to thighs. */
#characterLayer{top:-2%;height:112%;left:-8%;width:60%;mask-image:linear-gradient(0deg,transparent 0%,#000 18%),linear-gradient(90deg,#000 74%,transparent 100%);mask-composite:intersect}@media(orientation:portrait){#characterLayer{top:0;left:-50%;width:142%;height:105%}}@media(max-height:520px) and (orientation:landscape){#characterLayer{top:-2%;height:112%;left:-8%;width:60%}}
/* Actual studio actor, on the right, behind the title. */
#characterLayer{left:auto!important;right:-8%;top:-2%;width:63%;height:112%;opacity:1;mask-image:linear-gradient(0deg,transparent 0%,#000 18%),linear-gradient(90deg,transparent 0%,#000 25%);mask-composite:intersect}@media(orientation:portrait){#characterLayer{left:auto!important;right:-48%;top:0;width:140%;height:105%}}@media(max-height:520px) and (orientation:landscape){#characterLayer{right:-8%;top:-2%;width:63%;height:112%}}
#characterLayer{filter:saturate(.72) contrast(.96);opacity:.94}
/* Match the supplied studio reference: head through upper thighs, rear three-quarter. */
#characterLayer{right:-5%;top:0;width:67%;height:108%;filter:saturate(.8) contrast(.98);opacity:.97;mask-image:linear-gradient(0deg,transparent 0%,#000 10%),linear-gradient(90deg,transparent 0%,#000 18%);mask-composite:intersect}@media(orientation:portrait){#characterLayer{right:-39%;top:0;width:139%;height:101%}}@media(max-height:520px) and (orientation:landscape){#characterLayer{right:-5%;top:0;width:67%;height:108%}}

body.studio-framed #characterLayer{right:0;left:0!important;top:0;width:100%;height:100%;mask-image:none;filter:none;opacity:1}

#characterLayer{filter:none;opacity:1}
@media(max-height:520px) and (orientation:landscape){#menu,#battle,#options{top:16%}.menu-heading{margin-bottom:7px}.menu-heading h2{margin:5px 0 0;line-height:1.1}#mainChoices>button,#battleChoices>a{min-height:43px;padding-top:6px;padding-bottom:6px}#mainChoices b,#battleChoices b{font-size:18px;line-height:1.15}#mainChoices em,#battleChoices em{font-size:8px;line-height:1.1}.menu-bottom,.battle-note{margin-top:7px;min-height:18px}#inputHint{display:none}}

/* 2026-11-21: closer title crop, shifted toward the right edge. */
body:not(.studio-framed) #characterLayer{transform:translateX(13%) scale(1.02);transform-origin:50% 8%}


/* Lobby: clear the age mark and align the menu column to the left. */
body:is([data-phase=menu],[data-phase=battle],[data-phase=options]) #brand{display:none}
body:is([data-phase=menu],[data-phase=battle],[data-phase=options]) header{justify-content:flex-end}
#menu,#battle,#options{left:max(4.5%,env(safe-area-inset-left));width:290px;max-width:40vw}
#menu .menu-heading>span,#battle .menu-heading>span{display:none}
#mainChoices>button,#battleChoices>a{gap:12px}
#mainChoices>button.selected,#battleChoices>a.selected{padding-left:10px}


/* Keep the live actor behind lobby captions and show the upper thighs. */
body:is([data-phase=title],[data-phase=menu],[data-phase=battle],[data-phase=options]) #characterLayer{visibility:visible}
#sceneCaption{position:absolute;z-index:4}


/* Intro start control: no rectangular focus frame. */
#pressStart,#pressStart:focus,#pressStart:focus-visible{border:0;outline:none;box-shadow:none}

#hubUpdates{display:none;position:absolute;z-index:3;left:38%;top:22%;width:26%;color:#d9d4c4}body[data-phase=menu] #hubUpdates{display:block}.hub-eyebrow{font:8px system-ui;letter-spacing:.2em;color:#a2ada8}#hubUpdates h2{font-size:25px;font-weight:400;letter-spacing:-.05em;margin:12px 0 5px}#hubUpdates>p{font-size:10px;color:#a1aaa5;margin:0 0 22px}#hubUpdates>button{width:100%;border:0;border-top:1px solid #c1c5b52c;background:linear-gradient(90deg,#101a20b0,#101a2040);text-align:left;padding:12px 10px;margin-bottom:8px}#hubUpdates small{display:block;font:7px system-ui;letter-spacing:.12em;color:#a99675}#hubUpdates strong{display:block;font-size:16px;font-weight:400;margin:7px 0}#hubUpdates button span{display:block;font-size:9px;color:#aab3ae}#hubUpdates i{float:right;font-style:normal}.hub-links{display:flex;gap:12px}.hub-links button{flex:1;border:0;border-bottom:1px solid #c1c5b52c;background:none;font-size:10px;text-align:left;padding:9px 0}.hub-links button span{float:right}#hubRoom{position:absolute;z-index:3;left:5%;top:18%;width:58%}#hubRoom>h2{font-weight:400;font-size:29px;margin:10px 0}#hubRoom>p{font-size:11px;line-height:1.6;color:#aab3ae}#roomCards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}#roomCards article{padding:18px;background:#101b22b8;border-top:1px solid #bda78166}#roomCards small{font:8px system-ui;letter-spacing:.18em;color:#baa47c}#roomCards h3{font-size:19px;font-weight:400;margin:13px 0}#roomCards p{font-size:10px;line-height:1.7;color:#a7b0ac}#roomCards article>span{font-size:9px;color:#8f9b96}body[data-phase=hubRoom] #brand{display:none}body[data-phase=hubRoom] header{justify-content:flex-end}body[data-phase=hubRoom] #characterLayer{visibility:visible}#mainChoices>button{min-height:40px}#menu{width:235px;max-width:29vw}#menu .menu-bottom{max-width:220px;font-size:9px}@media(max-height:520px) and (orientation:landscape){#menu{top:19%}#mainChoices>button{min-height:39px;padding-top:5px;padding-bottom:5px}#mainChoices b{font-size:17px}#hubUpdates{top:23%}#hubUpdates>p{margin-bottom:16px}}@media(orientation:portrait){#hubUpdates{left:8%;top:58%;width:55%}#hubUpdates h2{font-size:21px}#hubUpdates>button{padding:8px}#hubRoom{left:8%;width:84%}#roomCards{grid-template-columns:1fr}#menu{max-width:70vw;width:240px}}

@media(max-height:520px) and (orientation:landscape){#hubUpdates{top:20%}#hubUpdates h2{font-size:22px;margin:8px 0 4px}#hubUpdates>p{margin-bottom:10px}#hubUpdates>button{padding:9px 9px;margin-bottom:5px}#hubUpdates strong{margin:5px 0;font-size:15px}.hub-links button{padding:7px 0}}

#mainChoices>button:last-child{border-bottom:0;box-shadow:none}#characterSelect{position:absolute;inset:0;z-index:4;padding:8% 6%;background:linear-gradient(90deg,#0b141be8,transparent 85%)}.select-copy{width:57%}.select-copy h2{font-size:clamp(25px,4vw,44px);line-height:1.25;font-weight:400;margin:16px 0}.select-copy>p{font-size:11px;color:#aeb8b2}#characterOptions{display:flex;gap:12px;margin:20px 0 10px}#characterOptions button{flex:1;text-align:left;padding:14px;background:#111d25a8;border:1px solid #9caa9c33;color:#ded8c6}#characterOptions button[aria-pressed=true]{border-color:#b9a175;background:#2a302aa8}#characterOptions small,#characterOptions span{display:block;font-size:9px;color:#a6b0aa}#characterOptions strong{display:block;font-size:23px;font-weight:400;margin:10px 0}#enterCharacter{border:0;border-bottom:1px solid #bda78180;padding:10px 0;background:none;font-size:15px;color:#e7dfca;width:100%;text-align:left}#enterCharacter span{float:right}#characterVideoNote{min-height:26px;font-size:9px!important;line-height:1.5}body[data-phase=characterSelect] #brand{display:none}body[data-phase=characterSelect] header{justify-content:flex-end}body[data-phase=characterSelect] #characterLayer{visibility:visible}#activeCharacterName{display:none;position:absolute;right:8%;bottom:7%;z-index:4;font-size:10px;letter-spacing:.1em;color:#c2c5b6}body[data-phase=menu] #activeCharacterName{display:block}body[data-character=demo] #characterLayer{visibility:hidden!important}@media(max-height:520px) and (orientation:landscape){#characterSelect{padding:7% 6%}.select-copy h2{font-size:28px;margin:10px 0}.select-copy>p{margin:5px 0}#characterOptions{margin:13px 0 7px}#characterOptions button{padding:10px}#characterOptions strong{font-size:20px;margin:7px 0}}@media(orientation:portrait){.select-copy{width:100%}#characterSelect{padding-top:22%}}
/* Character lineup shares the city backdrop and ivory typography. */
#characterSelect{padding:0;background:linear-gradient(90deg,#0b141bc9 0%,#0b141b50 45%,transparent 75%)}.lineup-top{position:absolute;left:5%;right:5%;top:8%;display:flex;justify-content:space-between;color:#8f9d97;font:9px system-ui;letter-spacing:.15em}.select-copy{position:absolute;left:6%;top:25%;width:40%}.select-copy h2{font-size:64px;margin:12px 0;letter-spacing:.03em}.select-copy>p{font-size:12px;line-height:1.7;max-width:260px}#lineupSummary{font-size:9px;color:#bca882;margin-top:16px}.lineup-bottom{position:absolute;z-index:5;left:6%;right:6%;bottom:9%;display:flex;gap:32px;align-items:flex-end}#characterOptions{width:43%;margin:0;gap:10px}#characterOptions button{background:#0e1b2399;border:0;border-top:1px solid #a5b3a54d;padding:10px 12px}#characterOptions button[aria-pressed=true]{background:linear-gradient(90deg,#635b3e65,#26312870);border-color:#c6b185}#characterOptions strong{font-size:22px;margin:6px 0}.lineup-action{width:30%;margin-left:auto}#characterVideoNote{font:8px/1.6 system-ui!important;color:#acb5ae;min-height:25px}#enterCharacter{font-size:15px}#seoaPreview{position:absolute;right:8%;top:12%;height:70%;width:31%;overflow:hidden;mask-image:linear-gradient(0deg,transparent,#000 18%,#000 87%,transparent);filter:saturate(.5) contrast(.94)}#seoaPreview img{position:absolute;width:180%;height:100%;max-width:none;object-fit:cover;object-position:left center;left:0}#seoaPreview>span{position:absolute;bottom:10%;left:10%;font-size:9px;color:#dbd6c5}body:not([data-character=demo]) #seoaPreview{display:none}body[data-phase=characterSelect] #characterLayer{right:-6%;top:-4%;width:69%;height:104%;transform:none;mask-image:linear-gradient(0deg,transparent,#000 15%)}@media(max-height:520px) and (orientation:landscape){#characterSelect{padding:0}.select-copy h2{font-size:54px;margin:8px 0}.select-copy{top:24%}.lineup-bottom{bottom:8%}#characterOptions strong{font-size:20px}}@media(orientation:portrait){.select-copy{left:8%;top:15%;width:84%}.select-copy h2{font-size:49px}.lineup-bottom{flex-direction:column;align-items:stretch;gap:8px;bottom:6%}#characterOptions{width:100%}.lineup-action{width:100%}#seoaPreview{top:34%;height:40%;right:12%;width:60%}}

#seoaPreview img{width:100%;height:100%;object-fit:cover;object-position:left top}#seoaPreview{top:12%;height:58%;width:25%;right:13%;mask-image:linear-gradient(0deg,transparent,#000 20%,#000 95%,transparent)}

#settingRoom{position:absolute;z-index:4;left:6%;top:22%;width:36%}#settingRoom h2{font-size:38px;font-weight:400;margin:15px 0}#settingRoom h3{font-size:22px;font-weight:400;color:#d8c8a5}.setting-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #b2bdac30;font-size:12px}.setting-row b{font-weight:400;color:#b6b9aa}#settingRoom p{font-size:10px;color:#aeb9b0}#settingEnter{width:100%;margin-top:15px;padding:12px 0;border:0;border-bottom:1px solid #bda78180;background:none;text-align:left;font-size:17px}#settingEnter span{float:right}body[data-phase=settingRoom] #characterLayer{visibility:visible}body[data-phase=settingRoom] #brand{display:none}body[data-phase=settingRoom] header{justify-content:flex-end}
body[data-phase=settingRoom] #world{inset:0;background:url('dressing-room-v5-worn-door.png') center/cover no-repeat;animation:none;transform:none;filter:brightness(.82) saturate(.8)}body[data-phase=settingRoom] .shade{background:linear-gradient(90deg,#07111699,transparent 38%,transparent 62%,#071116bb)}body[data-phase=settingRoom] #characterLayer{left:21%!important;right:auto;top:1%;width:56%;height:77%;transform:none;pointer-events:auto;mask-image:none;z-index:1}#settingRoom{inset:0;width:100%;pointer-events:none;z-index:3}#settingRoom button{pointer-events:auto}.fitting-header{position:absolute;left:5%;top:8%;right:25%;display:flex;align-items:center;justify-content:space-between}#settingRoom .fitting-header h2{font-size:25px;margin:9px 0}#settingCharacter{font-size:18px;color:#d7c9ac}#fittingCategories{position:absolute;left:5%;top:29%;width:16%;gap:7px}#fittingCategories button{min-height:36px;padding:9px 10px;border:0;background:#0b151a85;font-size:8px;color:#8d9a93;gap:12px}#fittingCategories button span{display:block;font-size:15px;color:#c4ccc3}#fittingCategories button[aria-pressed=true]{background:linear-gradient(90deg,#9b876552,transparent);border-left:2px solid #c1a570}#fittingCategories button:before{display:none}.fitting-details{position:absolute;right:5%;top:29%;width:19%;pointer-events:auto}.fitting-details>small{font-size:8px;letter-spacing:.15em;color:#a49a7f}#settingRoom .fitting-details h3{font-size:20px;margin:9px 0}.fitting-details p{font-size:9px!important;line-height:1.6;color:#aab4ab;min-height:28px}.fitting-details dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:9px;border-top:1px solid #b9baa72e;padding-top:12px}.fitting-details dt{color:#85968d}.fitting-details dd{margin:0;color:#c2c7b6;text-align:right}.fitting-note{display:none}body[data-character=demo] .fitting-note{display:block;font-size:9px;color:#c1aa7a}#settingRoom #settingEnter{font-size:12px;margin-top:10px;padding:10px 0}.fitting-inventory{position:absolute;bottom:5%;left:5%;right:28%;pointer-events:auto}.fitting-inventory>div:first-child{display:flex;justify-content:space-between;margin-bottom:9px;font-size:11px;color:#ded8c4}.fitting-inventory small{font:8px system-ui;letter-spacing:.15em;color:#939d8c}#fittingItems{display:flex;gap:10px;overflow-x:auto}#fittingItems>p{font-size:10px;color:#a9b4a8;padding:15px;background:#0b151a99;width:100%}.fitting-item{min-width:115px;padding:12px;background:#0b151ac9;border:1px solid #8b9b8a40;text-align:left}.fitting-item strong{font-size:13px;font-weight:400;display:block;margin:9px 0}.fitting-item span{font-size:8px;color:#adbaad}.fitting-item.selected{border-color:#bca273;background:#333728d9}.fitting-caption{position:absolute;left:46%;top:73%;font:7px system-ui;letter-spacing:.2em;color:#b0b5a1}@media(orientation:portrait){body[data-phase=settingRoom] #characterLayer{left:0!important;top:8%;width:100%;height:60%}.fitting-header{top:8%;right:8%}#fittingCategories{left:5%;top:18%;width:23%}.fitting-details{top:64%;right:5%;width:90%}.fitting-details dl,.fitting-details>p,.fitting-details>small{display:none}.fitting-inventory{bottom:13%;right:5%}.fitting-caption{display:none}#settingRoom #settingEnter{position:fixed;bottom:4%;left:5%;width:90%}}

body[data-phase=settingRoom] #world::before{height:100%;background:url('dressing-room-v5-worn-door.png') center/cover no-repeat}body[data-phase=settingRoom] #sceneCaption{display:none}body[data-phase=settingRoom] #fittingCategories{top:27%;gap:2px}body[data-phase=settingRoom] #fittingCategories button{min-height:31px;padding:7px 10px}body[data-phase=settingRoom] #characterLayer{height:80%}body[data-phase=settingRoom] .fitting-inventory{left:5%;right:28%;bottom:4%}


.fitting-item.locked{min-width:115px;min-height:94px;opacity:.65;cursor:default;border:1px dashed #a1afa34d;background:#111b20b8}.fitting-item.locked .slot-lock{font-size:16px;display:block;filter:grayscale(1);opacity:.65}.fitting-item.locked strong{color:#acb7ac}.fitting-item.locked>span:last-child{font-size:8px;color:#8d9a91}


body[data-phase=settingRoom] #characterLayer{top:0;height:100%}body[data-phase=settingRoom] #world::after{content:'';position:absolute;left:20%;top:13%;width:11%;height:6%;background:radial-gradient(ellipse,#fff3c64d,transparent 70%);mix-blend-mode:screen;pointer-events:none}body[data-phase=settingRoom].tube-flicker #world{filter:brightness(.72) saturate(.8)}body[data-phase=settingRoom].tube-flicker #world::after{opacity:.05}body[data-phase=settingRoom] .fitting-caption{display:none}


@media(max-height:520px) and (orientation:landscape){#menu{top:15%}#mainChoices>button{min-height:34px;padding-top:4px;padding-bottom:4px}#mainChoices b{font-size:16px}#mainChoices em{font-size:7px}#menu .menu-bottom{margin-top:6px}}


#hubRoom.memory-phone{left:32%;top:8%;width:36%;height:84%;padding:30px 22px 20px;border:5px solid #303b40;border-radius:25px;background:linear-gradient(155deg,#1d3036,#0a141b);box-shadow:0 14px 50px #000b;animation:phoneLift .35s ease-out}#hubRoom.memory-phone:before{content:'';position:absolute;top:9px;left:38%;width:24%;height:5px;border-radius:8px;background:#050b0e}#hubRoom.memory-phone>h2{font-size:25px;margin:10px 0}#hubRoom.memory-phone>p{font-size:9px}#hubRoom.memory-phone #roomCards{gap:10px;margin-top:16px}#hubRoom.memory-phone #roomCards article{padding:12px}#hubRoom.memory-phone #roomCards h3{font-size:14px;margin:9px 0}#hubRoom.memory-phone #roomCards p{font-size:9px}@keyframes phoneLift{from{transform:translateY(45px);opacity:0}to{transform:none;opacity:1}}@media(orientation:portrait){#hubRoom.memory-phone{left:8%;width:84%;top:14%;height:70%}}


#modeSelect{position:absolute;z-index:3;left:4.5%;top:20%;width:290px;max-width:40vw}body[data-phase=modeSelect] #brand{display:none}body[data-phase=modeSelect] header{justify-content:flex-end}#deployChoices button{min-height:58px}#deployChoices b{font-size:20px}#deployChoices em{font-size:9px}@media(max-height:520px) and (orientation:landscape){#modeSelect{top:20%}}


#characterLayer:not(.character-ready){opacity:0!important}#characterLayer.character-ready{opacity:1}

/* Subgroups belong to their own entry screens, never the main lobby. */
body[data-phase=menu] #hubUpdates{display:none!important}


#lobbyLoop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;pointer-events:none}body[data-phase=menu] #characterLayer{display:none!important}

body[data-phase=cinema] #brand{display:none!important}body[data-phase=cinema] header{justify-content:flex-end}body[data-phase=title] #characterLayer{display:block!important;visibility:visible!important}

#footer{z-index:12}#back{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;pointer-events:auto;padding:6px 12px}

#footer{pointer-events:none}#footer #back{pointer-events:auto}body:is([data-phase=characterSelect],[data-phase=settingRoom]) #footer .footer-brand,body:is([data-phase=characterSelect],[data-phase=settingRoom]) #inputHint{display:none}


/* Portrait deployment: retain main navigation and open one adjacent submenu. */
@media(orientation:portrait){
 body:is([data-phase=battle],[data-phase=modeSelect]) #menu[hidden]{display:block!important}
 body:is([data-phase=battle],[data-phase=modeSelect]) #menu{left:5%;top:17%;width:41%;max-width:41%;animation:none}
 body:is([data-phase=battle],[data-phase=modeSelect]) #menu .menu-heading{margin-bottom:18px}
 body:is([data-phase=battle],[data-phase=modeSelect]) #menuTitle{font-size:23px;letter-spacing:.03em}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices>button{min-height:52px;padding:9px 3px;gap:9px}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices b{font-size:17px;line-height:1.2;white-space:nowrap}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices em{font-size:7px;letter-spacing:.08em}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices small{font-size:8px}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices i{font-size:15px}
 body:is([data-phase=battle],[data-phase=modeSelect]) #mainChoices>[data-key=battle]{color:#eee1bb;border-bottom-color:#bba57680}
 body:is([data-phase=battle],[data-phase=modeSelect]) #choiceDescription{display:none}
 body[data-phase=battle] #battle,body[data-phase=modeSelect] #modeSelect{left:52%;top:17%;width:43%;max-width:43%;padding-left:10px;border-left:1px solid #b9b59f40;z-index:5}
 #battle .menu-heading h2,#modeSelect .menu-heading h2{font-size:23px;line-height:1.25;letter-spacing:-.04em}
 #battle .menu-heading,#modeSelect .menu-heading{margin-bottom:18px}
 #battle .menu-heading>span,#modeSelect .menu-heading>span{font-size:6px;letter-spacing:.12em}
 #deployChoices button,#battleChoices a{min-height:64px;padding:10px 0;gap:7px}
 #deployChoices b,#battleChoices b{font-size:17px;line-height:1.25;white-space:nowrap}
 #deployChoices em,#battleChoices em{font-size:6px;letter-spacing:.05em}
 #deployChoices small,#battleChoices small{font-size:8px}
 #deployChoices i,#battleChoices i{display:none}
 #battle .battle-note,#modeSelect .battle-note{font-size:9px;line-height:1.6;margin-top:14px;max-width:100%}
}

/* Platform marks remain directly below the age rating. */
#brand.content-rating{position:relative;padding-bottom:30px}
#brand .platform-marks{position:absolute;left:0;bottom:0;display:flex;align-items:center;gap:13px;color:#d3d0bd}
#brand .platform-marks svg{display:block;width:20px;height:22px;fill:currentColor}
#pressStart .title-subtitle{white-space:nowrap;line-height:1.2}

/* Show only cinema UI over black until an actual video frame is playing. */
body[data-phase=cinema] #world,body[data-phase=cinema] .shade,body[data-phase=cinema] .grain,body[data-phase=cinema] #characterLayer,body[data-phase=cinema] #lobbyLoop,body[data-phase=cinema] #hubUpdates{display:none!important}
body[data-phase=cinema] #game{background:#000}
body[data-cinema-pending=true] #cinema{visibility:hidden}
#cinemaStart{position:absolute;inset:0;z-index:20;width:100%;height:100%;border:0;border-radius:0;background:#000;color:#e4dcc7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;cursor:pointer}
#cinemaStart strong{font-size:20px;font-weight:400;letter-spacing:.12em}
#cinemaStart span{font-size:12px;color:#aaa899;letter-spacing:.05em}
#cinemaStart[hidden]{display:none!important}

/* Keep the rating and utility buttons on one safe, fixed header row. */
#game>header{top:calc(12px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right));height:40px;gap:8px;flex-wrap:nowrap;align-items:center;transform:none}
#brand.content-rating{position:static;padding:0;height:40px;flex:0 0 auto;gap:8px;white-space:nowrap;transform:none}
#brand .age-mark{flex:0 0 30px;width:30px;height:30px;font-size:20px}
#brand .rating-copy{gap:4px;flex:0 0 auto}
#brand .rating-copy strong{font-size:9px}
#brand .rating-copy span{font-size:9px;letter-spacing:0}
#brand .platform-marks{position:static;left:auto;bottom:auto;display:flex;flex:0 0 auto;align-items:center;gap:10px;margin-left:4px;letter-spacing:0}
#brand .platform-marks svg{width:16px;height:18px;flex:none}
#game>header .utility{flex:0 0 auto;gap:6px;flex-wrap:nowrap;height:40px}
#game>header .utility button{width:32px;height:40px;min-width:32px;min-height:40px;padding:6px;justify-content:center;flex:none}


/* Preserve the approved title slots; change typography only. */
.title-top-space{aspect-ratio:992/427;visibility:hidden;pointer-events:none}
.wordmark-crop.plain-title-slot{container-type:inline-size}
h1.official-title .plain-title{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:600 clamp(28px,18cqw,88px)/1.2 'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif;letter-spacing:-.025em;color:#e7e7e2;background:none;-webkit-text-fill-color:initial;filter:none;transform:none;white-space:nowrap}

/* Share the MAIN MENU heading treatment; preserve both layouts. */
#menuTitle,h1.official-title .plain-title{font-family:'RageEN','Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif;font-weight:500;letter-spacing:.08em;color:var(--ivory);font-style:normal;text-shadow:none}

/* English title uses the actual MAIN MENU typeface inside the same title slot. */
h1.official-title .plain-title[lang=en]{font-size:clamp(22px,15cqw,74px);letter-spacing:.08em}

/* Move only the subtitle paint, keeping the approved START geometry intact. */
#pressStart .title-subtitle{position:relative;top:10px}

/* New mark inside the original emblem slot. Title and START are untouched. */
.clinic-emblem.logo-slot{position:relative;aspect-ratio:992/427;overflow:hidden}
.clinic-emblem.logo-slot>img{position:absolute;display:block;left:50%;top:50%;width:140%;height:auto;max-width:none;transform:translate(-50%,-50%)}
/* Roster: title, scrollable 4:5 grid and footer have separate layout space. */
body[data-phase=characterSelect] #characterLayer{display:none!important;visibility:hidden!important}
body[data-character-model=demo] #characterLayer{visibility:hidden!important}
#characterSelect{display:grid;grid-template-rows:54px minmax(0,1fr);gap:16px;padding:64px 6% 76px;background:linear-gradient(90deg,#0a121aeb,#0a121a80 70%,#0a121a4d);font-family:'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif;--roster-card-width:clamp(112px,calc((100dvh - 210px)*.8),180px)}
#characterSelect .roster-heading{position:static;display:flex;justify-content:space-between;align-items:center;min-width:0;gap:16px}
.roster-heading .hub-eyebrow{font:500 8px/1.4 'RageEN',system-ui;letter-spacing:.18em;color:#a6ada7}
#characterSelect .roster-heading h2{font:300 26px/1.25 'Malgun Gothic',system-ui;margin:5px 0 0;letter-spacing:-.035em;white-space:nowrap}
.roster-tools{display:flex;align-items:center;gap:18px;flex:none}
.roster-filters{display:flex;gap:4px}
.roster-filters button{border:0;border-bottom:1px solid transparent;background:none;min-width:42px;min-height:40px;padding:8px 6px;font:400 11px/1.3 'Malgun Gothic',system-ui;color:#8e9b95}
.roster-filters button[aria-pressed=true]{color:#eee4ce;border-bottom-color:#c7b383}
.roster-count{min-width:22px;text-align:right;color:#879a8c;font:500 12px/1 'RageEN',system-ui;letter-spacing:.06em}
#characterSelect #characterOptions{position:static;display:grid;grid-template-columns:repeat(auto-fill,var(--roster-card-width));grid-auto-rows:max-content;align-content:start;justify-content:start;gap:14px;min-height:0;min-width:0;width:100%;height:auto;margin:0;padding:2px 8px 12px 2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ac9a7155 transparent;scroll-snap-type:none}
#characterSelect #characterOptions>.character-card{position:relative;display:block;flex:none;min-width:0;max-width:none;min-height:0;width:100%;height:auto;aspect-ratio:4/5;overflow:hidden;margin:0;padding:0;border:1px solid #b6c4bc3d;border-radius:2px;text-align:left;background:#101a1e;color:#f0e7d3;touch-action:pan-y;transition:border-color .15s,box-shadow .15s;contain:layout paint}
#characterSelect .lineup-selection{display:none!important}
#rosterEmpty{position:absolute;left:6%;top:150px;font:400 12px/1.6 'Malgun Gothic',system-ui;color:#95a59b}
body[data-phase=characterSelect] #footer,body[data-phase=settingRoom] #footer{top:auto}
/* Remove redundant helper text below already-labelled choices. */
.menu-bottom,#modeSelect .battle-note{display:none}
#mainChoices{max-height:calc(100dvh - 150px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#a8987555 transparent}
@media(orientation:portrait){
 #characterSelect{padding:64px 6% 84px;grid-template-rows:56px minmax(0,1fr);gap:16px}
 #characterSelect #characterOptions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-right:4px}
 #characterSelect .roster-heading{gap:8px}#characterSelect .roster-heading h2{font-size:23px}
 .roster-tools{gap:9px}.roster-filters button{min-width:37px;font-size:10px}.roster-count{font-size:11px}
}
@media(max-height:360px) and (orientation:landscape){#characterSelect{padding-top:56px;padding-bottom:68px;grid-template-rows:42px minmax(0,1fr);gap:12px;--roster-card-width:calc((100dvh - 178px)*.8)}#characterSelect .roster-heading h2{font-size:22px}#characterSelect #characterOptions{gap:12px}}
/* The setting room has one name and dedicated bottom actions. */
body[data-phase=settingRoom]{--setting-footer-gap:22px}
#settingRoom .fitting-header{left:5%;right:5%;top:64px;height:42px;display:flex;align-items:center;justify-content:space-between;gap:16px}
#settingRoom .fitting-header h2{font:300 25px/1.2 'Malgun Gothic',system-ui;margin:5px 0 0}
#settingRoom .fitting-header .hub-eyebrow{font-size:7px}
.setting-character-tools{display:flex;align-items:center;gap:12px;pointer-events:auto}
#settingCharacter{font:400 13px/1.3 'Malgun Gothic',system-ui}
#changeSettingCharacter{border:0;border-bottom:1px solid #b0a58255;background:#101b2155;min-height:40px;padding:8px 10px;font:400 11px/1.3 'Malgun Gothic',system-ui;color:#d0d5c7}
body[data-phase=settingRoom] #settingRoom #fittingCategories{left:5%;top:122px;width:18%;gap:5px;display:flex;flex-direction:column}
body[data-phase=settingRoom] #fittingCategories button{min-height:32px;padding:8px 10px}
body[data-phase=settingRoom] #settingRoom .fitting-details{top:122px;right:5%;left:auto;width:23%;max-height:calc(100dvh - 210px);overflow-y:auto;scrollbar-width:thin}
body[data-phase=settingRoom] #settingRoom .fitting-inventory{left:27%;right:32%;bottom:84px;max-height:110px}
#settingRoom .fitting-inventory>div:first-child{font:400 10px/1.3 'Malgun Gothic',system-ui}
#settingRoom #fittingItems{max-height:92px;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}
#settingRoom .fitting-item{min-width:100px;padding:9px}
#settingRoom .fitting-item strong{font-size:12px;margin:6px 0}
#settingRoom #settingEnter{position:fixed;left:auto;right:5%;bottom:max(var(--setting-footer-gap),env(safe-area-inset-bottom));width:140px;min-height:44px;height:44px;margin:0;padding:10px 12px;border:1px solid #ac9a7155;background:#101b21b8;z-index:13;text-align:left;font:400 12px/1.4 'Malgun Gothic',system-ui}
#settingRoom #settingEnter span{float:right}
#settingRoom .fitting-caption{display:none}
@media(orientation:portrait){
 body[data-phase=settingRoom]{--setting-footer-gap:25px}
 #settingRoom .fitting-header{left:6%;right:6%;top:64px}
 #settingRoom .fitting-header h2{font-size:24px}.setting-character-tools{gap:8px}#settingCharacter{font-size:12px}#changeSettingCharacter{font-size:10px;padding:8px}
 body[data-phase=settingRoom] #settingRoom #fittingCategories{left:6%;right:6%;top:122px;width:auto;flex-direction:row;gap:5px}
 body[data-phase=settingRoom] #fittingCategories button{flex:1;display:block;text-align:center;padding:7px 3px;min-height:38px;font-size:7px}
 body[data-phase=settingRoom] #fittingCategories button span{font-size:12px;display:inline;margin-left:4px}
 body[data-phase=settingRoom] #settingRoom .fitting-details{top:auto;bottom:220px;left:6%;right:6%;width:auto;max-height:64px;overflow:auto}
 body[data-phase=settingRoom] #settingRoom .fitting-details h3{font-size:18px;margin:3px 0}
 body[data-phase=settingRoom] #settingRoom .fitting-details dl,body[data-phase=settingRoom] #settingRoom .fitting-details>small,body[data-phase=settingRoom] #settingRoom .fitting-details>p{display:none}
 body[data-phase=settingRoom] #settingRoom .fitting-inventory{left:6%;right:6%;bottom:92px;max-height:112px}
 #settingRoom #settingEnter{right:6%;width:140px}
}
@media(max-height:520px) and (orientation:landscape){body[data-phase=settingRoom]{--setting-footer-gap:10px}}
@media(max-height:360px) and (orientation:landscape){#settingRoom .fitting-header{top:56px;height:40px}#settingRoom .fitting-header h2{font-size:22px}body[data-phase=settingRoom] #settingRoom #fittingCategories{top:110px;gap:3px}body[data-phase=settingRoom] #fittingCategories button{min-height:28px;padding:6px 8px}body[data-phase=settingRoom] #settingRoom .fitting-details{top:110px;max-height:116px}body[data-phase=settingRoom] #settingRoom .fitting-inventory{bottom:76px;max-height:92px}#settingRoom #fittingItems{max-height:74px}}
#characterSelect #characterOptions>.character-card::before{display:none}
#characterSelect #characterOptions>.character-card[aria-pressed=true]{background:#101a1e;border-color:#d8c59b9c;box-shadow:inset 0 0 0 1px #d8c59b26}
#characterSelect #characterOptions>.character-card:focus-visible{outline:2px solid #dfcfaa;outline-offset:-3px}
#characterSelect .card-visual{position:absolute;inset:0;display:block;overflow:hidden}
#characterSelect .seoa-card{background-image:url('seoa-cinema-reference.jpg');background-size:185% auto;background-position:left 12%;background-repeat:no-repeat;background-color:#19201d}
#characterSelect .character-card-video{display:block;width:100%;height:100%;object-fit:cover;object-position:right center;filter:saturate(.78)}
#characterSelect .character-card-shade{position:absolute;inset:0;display:block;background:linear-gradient(0deg,#081115f5,transparent 58%);pointer-events:none}
#characterSelect #characterOptions .card-state{position:absolute;left:11px;top:11px;display:block;font:400 9px/1.3 'Malgun Gothic',system-ui;letter-spacing:0;color:#f0e8d3;background:#0c171bc9;padding:5px 7px;border-radius:2px}
#characterSelect #characterOptions .card-caption{position:absolute;left:13px;right:13px;bottom:12px;display:block}
#characterSelect #characterOptions .card-caption small{font:500 7px/1.3 'RageEN',system-ui;letter-spacing:.12em;color:#b3c2b8}
#characterSelect #characterOptions .card-caption strong{display:block;font:400 25px/1.3 'Malgun Gothic',system-ui;margin:5px 0;color:#eee5cf;letter-spacing:-.02em}
#characterSelect #characterOptions .card-caption>span{display:block;font:400 9px/1.4 'Malgun Gothic',system-ui;letter-spacing:0;color:#ced5cf}
#characterSelect .card-caption i{float:right;font-style:normal}
#characterCheckout{padding:0;border:1px solid #b0b7a947;border-radius:6px;background:#111b20;color:#e8e2d0;width:min(410px,90vw);max-height:calc(100dvh - 36px);overflow:auto;box-shadow:0 22px 80px #0009;font-family:'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif}
#characterCheckout::backdrop{background:#050b10c9;backdrop-filter:blur(5px)}
.checkout-sheet{position:relative;padding:32px 28px 22px}
#checkoutClose{position:absolute;top:8px;right:8px;width:44px;height:44px;background:none;border:0;color:#b6c1b9;font:300 25px/1 system-ui}
.checkout-sheet>.hub-eyebrow{font:500 9px/1.4 'RageEN',system-ui;letter-spacing:.16em;color:#a99b7d}
#checkoutTitle{font:300 28px/1.3 'Malgun Gothic',system-ui;margin:12px 0}
#checkoutDescription{font:400 12px/1.7 'Malgun Gothic',system-ui;color:#b0bdb3;max-width:300px}
.checkout-price{border-top:1px solid #a8b29f33;border-bottom:1px solid #a8b29f33;padding:18px 0;margin-top:24px;display:flex;align-items:center;justify-content:space-between;font:400 12px/1.4 'Malgun Gothic',system-ui}
.checkout-price strong{font-size:15px;font-weight:500}
.checkout-notice{font:400 11px/1.6 'Malgun Gothic',system-ui;color:#c7b898;margin:18px 0}
#checkoutConfirm{display:block;width:100%;min-height:46px;padding:12px;border:1px solid #c5b99188;background:#9d8e6233;color:#eee4ca;font:500 13px/1.4 'Malgun Gothic',system-ui}
#checkoutConfirm:disabled{opacity:.5;cursor:default}
#checkoutCancel{display:block;margin:12px auto 0;min-height:40px;padding:8px 20px;background:none;border:0;color:#b8c1b6;font:400 12px/1.4 'Malgun Gothic',system-ui}

#settingLoading{display:none;position:absolute;left:46.5%;top:44%;transform:translate(-50%,-50%);width:min(270px,70vw);padding:14px;background:#0a151ce6;border:1px solid #94a18926;text-align:center;z-index:5}
body[data-phase=settingRoom][data-character-model=jeoning] #settingLoading[data-state=loading],body[data-phase=settingRoom][data-character-model=jeoning] #settingLoading[data-state=error]{display:grid;gap:8px}
#settingLoadStatus{margin:0;font:400 12px/1.5 'Malgun Gothic',system-ui;color:#d8ddce}
#settingLoadProgress{width:100%;height:5px;accent-color:#b6a178}
#settingLoadDetail{margin:0;color:#96a698;font:400 10px/1.5 'Malgun Gothic',system-ui}
#settingLoadRetry{justify-self:center;min-width:100px;min-height:44px;padding:8px 16px;border:1px solid #a7ac9055;background:#22302d;color:#e5dfcf;font:400 12px 'Malgun Gothic',system-ui}
/* Fitting viewports and reserved equipment categories. */
body[data-phase=settingRoom] #characterLayer{left:24%!important;right:auto;top:110px;width:45%;height:calc(100% - 184px);transform:none;mask-image:none;opacity:1}
body[data-phase=settingRoom] #settingRoom #fittingCategories{max-height:calc(100dvh - 196px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
body[data-phase=settingRoom] #fittingCategories button{flex:none;min-height:31px}
#settingRoom .fitting-details{font-family:'Malgun Gothic',system-ui}
body[data-phase=settingRoom] #settingRoom .fitting-details{top:122px;right:5%;left:auto;width:23%;max-height:none;overflow:visible}
#currentEquipment summary{cursor:pointer;font:400 13px/1.5 'Malgun Gothic',system-ui;list-style-position:inside;color:#d8dccf;min-height:28px}
#currentEquipment dl{display:grid!important;position:absolute;left:0;right:0;top:30px;max-height:180px;overflow:auto;z-index:8;margin:0;padding:12px;background:#101c23f5;border:1px solid #9aab9744;box-shadow:0 10px 26px #0008;font:400 10px/1.6 'Malgun Gothic',system-ui;gap:9px}
#currentEquipment:not([open]) dl{display:none!important}
#settingRoom .fitting-details #fittingItemName{display:block;font:400 11px/1.4 'Malgun Gothic',system-ui;color:#b5bdaf;min-height:0;margin:6px 0 0;max-height:32px;overflow:hidden}
body[data-phase=settingRoom] #settingRoom .fitting-inventory{top:194px;left:auto;right:5%;bottom:78px;width:23%;max-height:none;display:flex;flex-direction:column}
#settingRoom #fittingItems{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px;max-height:none;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding-bottom:4px}
#settingRoom .fitting-item{min-width:0;min-height:66px;margin:0;padding:8px;text-align:left;font-family:'Malgun Gothic',system-ui}
#settingRoom .fitting-item small{font-size:6px;letter-spacing:.04em}
#settingRoom .fitting-item strong{font:400 10px/1.4 'Malgun Gothic',system-ui;white-space:normal;margin:5px 0}
#settingRoom .fitting-item span{font:400 8px/1.4 'Malgun Gothic',system-ui}
#settingRoom .fitting-item.locked{opacity:.45;cursor:default;border-style:dashed}
#settingCameraControls{position:fixed;z-index:14;left:46.5%;bottom:max(var(--setting-footer-gap),env(safe-area-inset-bottom));display:flex;flex-direction:row;gap:4px;transform:translateX(-50%);pointer-events:auto}
#settingCameraControls>button{width:48px;min-width:0;min-height:44px;margin:0;padding:6px 2px;background:#122027a8;border:0;border-bottom:1px solid #8c99812c;color:#9eafa0;text-align:center;font:400 10px/1.4 'Malgun Gothic',system-ui;letter-spacing:0}
#settingCameraControls>button::before{display:none}
#settingCameraControls>button[aria-pressed=true]{border-bottom-color:#d4bc83;color:#f0e4c4;background:#2a342caa}
@media(orientation:portrait){
 body[data-phase=settingRoom] #characterLayer{left:6%!important;top:212px;width:88%;height:calc(100% - 450px)}
 body[data-phase=settingRoom] #settingRoom #fittingCategories{top:122px;height:42px;max-height:none;min-height:40px;flex-wrap:nowrap;overflow-y:hidden;overflow-x:auto;gap:6px;padding-bottom:3px;scrollbar-width:none}
 body[data-phase=settingRoom] #fittingCategories button{flex:0 0 auto;width:auto;min-width:70px;min-height:38px;padding:7px 9px}
 #settingRoom #fittingCategories::-webkit-scrollbar{display:none}
 body[data-phase=settingRoom] #fittingCategories button span{font-size:11px}
 #settingCameraControls{position:absolute;left:50%;top:174px;bottom:auto;width:auto;transform:translateX(-50%)}
 #settingCameraControls>button{width:60px;min-height:32px;font-size:10px}
 body[data-phase=settingRoom] #settingRoom .fitting-details{top:auto;bottom:207px;left:6%;right:6%;width:auto;max-height:56px;overflow:visible}
 #currentEquipment dl{max-height:160px;top:auto;bottom:32px}
 body[data-phase=settingRoom] #settingRoom .fitting-inventory{top:auto;left:6%;right:6%;bottom:92px;width:auto;height:102px;max-height:none}
 #settingRoom #fittingItems{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;min-height:0;max-height:82px}
 #settingRoom .fitting-item{flex:0 0 112px;min-height:68px;max-height:78px;padding:8px}
}

/* Keep all six categories visible; only the inventory itself may scroll. */
body[data-phase=settingRoom] #settingRoom #fittingCategories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:44px;gap:4px;height:auto;max-height:none;overflow:visible}
body[data-phase=settingRoom] #fittingCategories button{display:flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:44px;padding:5px 2px;font-size:0;text-align:center;white-space:nowrap}
body[data-phase=settingRoom] #fittingCategories button span{font-size:11px;margin:0;letter-spacing:-.04em}
@media(orientation:portrait){
 body[data-phase=settingRoom] #settingRoom #fittingCategories{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:44px;top:122px;height:44px;min-height:44px;gap:3px;padding:0}
 body[data-phase=settingRoom] #fittingCategories button{min-width:0;padding:5px 1px}
 body[data-phase=settingRoom] #fittingCategories button span{font-size:10px}
 #settingLoading{left:50%;top:43%}
}
@media(max-height:360px) and (orientation:landscape){
 body[data-phase=settingRoom] #characterLayer{top:104px;height:calc(100% - 170px)}
 body[data-phase=settingRoom] #settingRoom #fittingCategories{max-height:none}
 body[data-phase=settingRoom] #settingRoom .fitting-details{top:110px;max-height:none}
 body[data-phase=settingRoom] #settingRoom .fitting-inventory{top:178px;bottom:68px;max-height:none}
 #settingRoom .fitting-item{min-height:62px;padding:6px}#settingCameraControls>button{width:43px;font-size:9px}
}

/* Keep the portrait main menu above the fixed back button. */
@media(orientation:portrait){
 body[data-phase=menu]{--menu-mobile-top:max(clamp(76px,12dvh,110px),calc(env(safe-area-inset-top) + 56px));--menu-mobile-bottom:calc(max(25px,env(safe-area-inset-bottom)) + 62px)}
 body[data-phase=menu] #menu{top:var(--menu-mobile-top);max-height:calc(100dvh - var(--menu-mobile-top) - var(--menu-mobile-bottom));display:flex;flex-direction:column}
 body[data-phase=menu] #menu .menu-heading{flex:none;margin-bottom:18px}
 body[data-phase=menu] #mainChoices{flex:0 1 auto;min-height:0;max-height:none}
 body[data-phase=menu] #mainChoices>button{flex:none;min-height:clamp(44px,8.7dvh,74px);padding-block:clamp(6px,1.15dvh,14px)}
 body[data-phase=menu] #mainChoices b{font-size:clamp(18px,2.7dvh,23px);line-height:1.2}
 body[data-phase=menu] #mainChoices em{font-size:8px;line-height:1.15}
 body[data-phase=menu] #mainChoices span{gap:5px}
}
