/* Large, readable chapters. Native scrolling is never hijacked. */
:root{--rail-gap:24px;--rail-radius:24px}
html{scroll-behavior:smooth}
.swipe-gallery{min-width:0;width:100%;margin-top:24px}
.swipe-hint{display:flex;align-items:center;gap:12px;font-size:13px;color:#526581;margin:0 0 18px}
.swipe-hint span{font-size:22px}
.swipe-track{display:flex;gap:var(--rail-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:0;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#a9bcd7 transparent;padding:0 0 16px;cursor:grab;position:relative;-webkit-overflow-scrolling:touch}
.swipe-track:focus-visible{outline:3px solid #1754d6;outline-offset:5px;border-radius:8px}
.swipe-track.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.swipe-card{flex:0 0 90%;min-width:0;scroll-snap-align:start;scroll-snap-stop:normal;border-radius:var(--rail-radius);overflow:hidden;margin:0;background:#f0f5fd}
.swipe-track:after{content:"";flex:0 0 calc(10% - var(--rail-gap))}
.swipe-track img{user-select:none;-webkit-user-drag:none}
.swipe-footer{display:flex;align-items:center;gap:20px;margin-top:10px;color:#526581}
.swipe-count{font-size:12px;font-variant-numeric:tabular-nums;min-width:42px}
.swipe-progress{height:3px;background:#dce5f2;flex:1;max-width:180px;border-radius:4px;overflow:hidden}
.swipe-progress i{display:block;height:100%;width:0;background:#1754d6;transition:width .18s}
.swipe-arrows{display:flex;gap:8px;margin-left:auto}
.swipe-arrows button{border:0;border-radius:50%;background:#e8eef7;width:44px;height:44px;font-size:20px;color:#24436f}
.swipe-arrows button:disabled{opacity:.3;cursor:default}
/* Character image, name and expressions travel as one card. */
.trainees .section-heading{display:block;margin-bottom:32px}
.idol-card{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:32px 44px;height:560px;background:linear-gradient(130deg,#e4efff,#f6f9ff)}
.idol-portrait{height:100%;min-height:0;display:flex;justify-content:center;align-items:center}
.idol-portrait img{display:block;width:100%;height:100%;object-fit:contain}
.idol-copy{align-self:center;min-width:0}
.idol-copy h3{font-size:clamp(30px,3.5vw,48px);line-height:1.3;letter-spacing:-.05em;margin:0 0 20px}
.idol-hook{font-size:20px;line-height:1.6;max-width:350px}
.idol-faces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:32px 0 22px;max-width:380px}
.idol-faces img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:50%;background:#fff}
.idol-note{font-size:14px;line-height:1.8;color:#59708f}
/* Shared places remain beside the Han River introduction. */
.world-layout .world-spaces{padding:24px;overflow:hidden}
.place-gallery{margin-top:0}
.place-gallery .swipe-hint{margin:0 0 12px}
.place-card{background:#f0f5fc;border-radius:14px}
.place-picture{height:260px;background:#e5edf7}
.place-picture img{display:block;width:100%;height:100%;object-fit:contain}
.space-blank{width:100%;height:100%;background:#e5edf7}
.place-card figcaption{padding:20px;min-height:170px}
.place-card .place-name{font-size:12px;color:#1754d6;font-weight:700;margin:0 0 10px}
.place-card h4{font-size:20px;line-height:1.4;margin:0 0 10px}
.place-card figcaption>p:last-child{font-size:14px;line-height:1.8;color:#526581}
.world-story{max-width:none;padding:64px 0;text-align:left}
.world-story>h3,.world-story>p{max-width:780px;margin-left:auto!important;margin-right:auto!important;text-align:center}
.world-narrative{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 36px;padding:36px 0 0;max-width:1160px;margin:auto}
.world-narrative h4{margin:0 0 16px;font-size:22px;grid-row:1}
.world-narrative p{margin:0;font-size:15px;line-height:1.9;grid-row:2}
.world-narrative h4:nth-of-type(1),.world-narrative p:nth-of-type(1){grid-column:1}
.world-narrative h4:nth-of-type(2),.world-narrative p:nth-of-type(2){grid-column:2}
.world-narrative h4:nth-of-type(3),.world-narrative p:nth-of-type(3){grid-column:3}
/* Five complete concepts, no nested image scrollers. */
.style-gallery{padding:0 6%}
.style-card{background:#fff}
.style-card>img{display:block;width:100%;height:auto;aspect-ratio:2.62;object-fit:contain}
.style-card figcaption{padding:24px 32px 32px}
.style-card h3{font-size:30px;margin:0 0 12px;line-height:1.3;letter-spacing:-.04em}
.style-card figcaption>p:last-child{font-size:16px;line-height:1.8;color:#526581}
@media(max-width:800px){
 :root{--rail-gap:14px;--rail-radius:20px}
 .section{padding-top:70px;padding-bottom:70px}
 .world{padding-bottom:0}
 .swipe-gallery{margin-top:18px}
 .swipe-hint{font-size:12px;margin-bottom:12px}
 .swipe-card{flex-basis:92%}
 .swipe-track:after{flex-basis:calc(8% - var(--rail-gap))}
 .idol-card{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;height:590px;max-height:none;gap:14px;padding:22px}
 .idol-copy{align-self:end}
 .idol-copy .small-label{display:none}
 .idol-copy h3{font-size:28px;margin:0 0 7px}
 .idol-hook{font-size:14px;line-height:1.6}
 .idol-faces{gap:10px;margin:15px 0 0;max-width:270px}
 .idol-note{display:none}
 .world-layout{gap:24px;padding:32px 24px}
 .world-layout .world-spaces{padding:18px;min-width:0}
 .world-layout .space-heading h3{font-size:22px}
 .place-picture{height:230px}
 .place-card figcaption{padding:16px;min-height:176px}
 .place-card h4{font-size:18px}
 .place-card figcaption>p:last-child{font-size:13px}
 .world-story{padding:44px 0}
 .world-story>h3,.world-story>p{text-align:left}
 .world-narrative{display:block;padding:24px 0 0}
 .world-narrative h4{font-size:20px;margin:0 0 12px}
 .world-narrative p{font-size:14px;margin:0 0 28px}
 .style-gallery{padding:0 24px}
 .style-card>img{min-height:190px;aspect-ratio:2.1;object-fit:contain}
 .style-card figcaption{padding:20px}
 .style-card h3{font-size:25px}
 .style-card figcaption>p:last-child{font-size:14px}
 .swipe-arrows button{width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.swipe-progress i{transition:none}}
.trainees .section-heading h2{font-size:clamp(32px,3.5vw,48px);line-height:1.3}
.trainees .section-heading .section-intro{font-size:16px;line-height:1.8;margin-top:20px}
@media(max-width:800px){.trainees .section-heading h2{font-size:32px}.trainees .section-heading .section-intro{font-size:14px}}
/* Image-led chapters: fewer frames, generous images, a continuous story. */
.header{height:84px}.header .wordmark img{width:60px;height:60px}.header .wordmark span{display:none}
.section{padding-top:96px;padding-bottom:96px}
.section .section-heading{margin-bottom:36px}
.section .eyebrow{margin-bottom:16px}
.hero{min-height:720px;height:calc(100svh - 84px);padding:64px 5%;max-height:1000px}
.hero-art{width:61%}.hero-copy{width:43%}.hero h1{font-size:clamp(38px,4.2vw,66px)}
.hero .lead{font-size:18px;line-height:1.85;max-width:430px}.hero-photo-caption{display:none}
.world{padding-bottom:0}.world-layout{min-height:660px}.world-layout .world-spaces{background:#ffffffd9;border:0;border-radius:0}
.world-story{padding:72px 0 88px}.world-narrative{gap:48px}.world-narrative h4{font-size:23px}.world-narrative p{font-size:16px;line-height:1.9}
.trainees{padding:80px 4%;background:#f4f7fc}.trainees .section-heading{padding:0 2%}
.idol-card{position:relative;height:620px;padding:34px 4%;grid-template-columns:1fr 1fr;gap:4%;border-radius:4px;background:linear-gradient(120deg,#e7effb,#fdfefe)}
.idol-copy{display:grid;grid-template-columns:1fr 140px;align-items:center;column-gap:12px}
.idol-copy>.small-label,.idol-copy>h3,.idol-copy>.idol-hook{grid-column:1/-1}
.idol-copy h3{font-size:clamp(34px,4vw,56px);margin:0 0 12px}.idol-hook{font-size:18px}
.idol-faces{grid-column:1/-1;max-width:440px;margin:24px 0 12px;gap:14px}
.idol-faces img{border-radius:0;background:transparent}
.idol-sd{grid-column:1/-1;display:flex;align-items:center;gap:14px;margin:0}
.idol-sd img{width:150px;height:150px;object-fit:contain;mix-blend-mode:multiply}
.idol-sd figcaption{font-size:13px;color:#526581}
.style-gallery{padding:0 3%}.style-card{border-radius:0}.style-card>img{aspect-ratio:2.3;max-height:620px}.style-card figcaption{padding:24px 3%}
.style-card figcaption .small-label{margin-bottom:6px}.style-card h3{font-size:36px}
.album-layout{margin-top:96px}.producer-process{margin-bottom:64px}.music-copy>p{max-width:560px}
@media(max-width:800px){
 .header{height:auto;min-height:72px}.header .wordmark img{width:48px;height:48px}
 .section{padding-top:64px;padding-bottom:64px}.hero{display:flex;flex-direction:column;min-height:0;height:auto;padding:38px 24px 48px;gap:20px}.hero-copy{width:100%}.hero h1{font-size:37px}.hero .eyebrow{margin-bottom:16px}.hero .lead{font-size:15px;margin-top:20px}.hero .actions{margin-top:24px}.hero-art{position:relative;inset:auto;width:100%;height:auto;order:2}.hero-art>img{width:100%;height:auto;max-height:520px;object-fit:contain}.hero .scroll-hint{position:static;width:100%;order:3;margin:0}
 .world{padding-bottom:0}.world-layout{min-height:0}.world-story{padding:48px 0}.world-narrative p{font-size:15px}.world-narrative h4{font-size:21px}
 .trainees{padding:60px 20px}.trainees .section-heading{padding:0}.trainees .section-heading h2{font-size:32px}
 .idol-card{height:620px;padding:18px;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:10px}
 .idol-copy{display:grid;grid-template-columns:minmax(0,1fr) 90px;column-gap:8px;align-items:center}.idol-copy h3{grid-column:1;font-size:27px;margin:0 0 6px}.idol-copy>.idol-hook{grid-column:1;font-size:13px}.idol-faces{grid-column:1;grid-row:3;gap:5px;margin:10px 0 0}.idol-sd{grid-column:2;grid-row:1/4;display:block;align-self:end}.idol-sd img{width:90px;height:120px}.idol-sd figcaption{display:none}
 .style-gallery{padding:0 20px}.style-card>img{min-height:0;aspect-ratio:1.65}.style-card figcaption{padding:20px 4px}.style-card h3{font-size:28px}.album-layout{margin-top:64px}
}
/* One monochrome treatment and identical logo boxes in both locations. */
.hero-art .top-social button,.social-links button{width:44px;height:44px;padding:6px}
.top-social .social-mark,.social-links .social-mark{width:32px;height:32px;min-width:32px;transform:scale(.9)}
.top-social .social-logo,.social-links .social-logo{filter:none;width:32px;height:32px;object-fit:contain}
.top-social img[src$="youtube.png"],.social-links img[src$="youtube.png"]{width:48.56px;height:41.6px;left:-8.28px;top:-4.8px}

.top-social img[src$="instagram.svg"],.social-links img[src$="instagram.svg"],.top-social img[src$="x.png"],.social-links img[src$="x.png"]{filter:brightness(0)}

/* Portrait companions and circular expression portraits. */
.idol-portrait{display:grid;grid-template-columns:25% minmax(0,1fr);align-items:center;gap:0}
.idol-portrait>img{width:100%;height:100%;min-height:0;object-fit:contain}
.idol-portrait .idol-sd{display:block;grid-column:1;grid-row:1;align-self:end;margin:0 0 30px;width:100%}
.idol-portrait .idol-sd img{width:100%;height:auto;max-height:150px;object-fit:contain;mix-blend-mode:multiply}
.idol-copy{display:block}
.idol-faces img{border-radius:50%;aspect-ratio:1;width:100%;height:auto;object-fit:contain;padding:8%;background:#fff}
@media(max-width:800px){
 .idol-portrait{grid-template-columns:23% minmax(0,1fr)}
 .idol-portrait .idol-sd{grid-column:1;grid-row:1;margin-bottom:16px;align-self:end}
 .idol-portrait .idol-sd img{width:100%;height:auto;max-height:100px}
 .idol-copy{display:block}.idol-faces{max-width:260px;margin:12px 0 0;gap:10px}
}
/* SD companions stand close to the full portrait, at knee height. */
.idol-portrait{display:block;position:relative}
.idol-portrait>img{width:65%;height:100%;margin-left:auto;object-fit:contain;object-position:center bottom}
.idol-portrait .idol-sd{position:absolute;right:36%;bottom:1%;width:52%;height:37%;margin:0;display:flex;align-items:flex-end;justify-content:center}
.idol-portrait .idol-sd img{width:100%;height:100%;max-height:none;object-fit:contain;object-position:center bottom}
/* A readable seven-floor overview beside full room photographs. */
.world-layout{display:flex;align-items:center;min-height:420px;padding:64px 6%}
.world-layout .world-copy{max-width:620px}
.agency-spaces{padding:64px 0 16px}
.agency-spaces .space-heading h3{font-size:clamp(28px,3vw,40px);margin:10px 0 32px}
.agency-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px;align-items:start}
.building-overview{background:#e4ebf5;padding:14px;border-radius:12px}
.building-overview h4{font-size:15px;margin:0 0 12px;color:#294b76}
.building-overview ol{list-style:none;padding:0;margin:0;display:grid;gap:4px}
.building-overview li{position:relative;height:58px;overflow:hidden;border-radius:3px;background:#bccada}
.building-overview li img{width:100%;height:100%;object-fit:cover;object-position:center 50%}
.building-overview li:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#09182999,transparent)}
.building-overview li span{position:absolute;bottom:7px;left:10px;z-index:1;color:white;font-size:12px;text-shadow:0 1px 3px #000}
.building-overview li b{margin-right:8px;font-variant-numeric:tabular-nums}
.agency-layout .place-gallery{margin:0;min-width:0}
.agency-layout .place-card{border-radius:8px;background:#f1f5fa}
.agency-layout .place-picture{height:380px;background:#e9eff6}
.agency-layout .place-picture img{object-fit:contain;width:100%;height:100%}
.agency-layout .place-card[data-floor="7"] .place-picture>img{object-fit:cover;object-position:center}
.agency-layout .place-card figcaption{min-height:104px;padding:20px 24px}
.agency-layout .place-card h4{font-size:22px;margin:0;line-height:1.5}
@media(max-width:800px){
 .world-layout{min-height:380px;padding:40px 24px}
 .agency-spaces{padding:40px 0 0}.agency-layout{grid-template-columns:1fr;gap:28px}
 .building-overview{padding:12px}.building-overview li{height:48px}
 .agency-layout .place-picture{height:270px}.agency-layout .place-card figcaption{padding:18px;min-height:104px}
 .agency-layout .place-card h4{font-size:19px}
}
/* Floor buttons follow the visible room and provide direct navigation. */
.building-overview li{overflow:visible}
.building-overview li:after{display:none}
.building-overview button{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:3px;overflow:hidden;background:#bccada;text-align:left;cursor:pointer}
.building-overview button:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#09182999,transparent);pointer-events:none}
.building-overview button img{transition:filter .2s}
.building-overview button[aria-pressed="true"]{outline:3px solid #145cf0;outline-offset:0;z-index:2}
.building-overview button[aria-pressed="true"] span{background:#145cf0;padding:2px 7px;left:4px;bottom:5px;border-radius:3px}
.building-overview button[aria-pressed="true"] span:after{content:" · 현재 공간";font-size:10px}
.building-overview button:focus-visible{outline:3px solid #13264a;outline-offset:3px;z-index:3}
@media(prefers-reduced-motion:reduce){.building-overview button img{transition:none}}
/* Room art fills the stage; trainees stand over the scene. */
.agency-layout .place-picture.has-trainees{position:relative;display:block;padding:0;isolation:isolate}
.agency-layout .has-trainees>img{width:100%;height:100%;object-fit:cover;object-position:center}
.room-trainee{position:absolute;bottom:12px;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:22%;height:90%;gap:5px;pointer-events:none}
.room-trainee-left{left:3%}.room-trainee-right{right:3%}
.agency-layout .room-trainee img{width:100%;height:calc(100% - 25px);min-height:0;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 5px #0005)}
.room-trainee span{font-size:12px;line-height:20px;color:#fff;background:#152235dd;padding:1px 9px;border-radius:12px;font-weight:600;white-space:nowrap}
@media(max-width:800px){.room-trainee{width:26%;height:83%;bottom:10px}.room-trainee-left{left:2%}.room-trainee-right{right:2%}.room-trainee span{font-size:10px;padding:0 7px}}

/* A final, unrevealed member awaits at the end of the trainee gallery. */
.hidden-member{background:linear-gradient(135deg,#e6ecf7,#f6f8fc)}
.hidden-portrait{height:100%;min-height:0;display:grid;place-items:center;border:1px solid #c4d1e5;border-radius:50% 50% 8px 8px;background:linear-gradient(160deg,#d4deef88,#ffffff66)}
.hidden-portrait>span{font-size:clamp(110px,16vw,210px);font-weight:300;line-height:1;color:#8094b5}
.hidden-details{display:flex;gap:14px;margin-top:28px}
.hidden-details span{width:72px;aspect-ratio:1;display:grid;place-items:center;border:1px solid #c4d1e5;border-radius:50%;font-size:28px;color:#8094b5;background:#ffffff66}
@media(max-width:800px){.hidden-member .small-label{display:block}.hidden-details{margin-top:16px;gap:10px}.hidden-details span{width:56px}.hidden-portrait>span{font-size:140px}}

footer{flex-wrap:wrap}
footer .company-home{flex:0 0 100%;display:flex;justify-content:flex-end;align-items:center;border-top:1px solid #dce3ee;margin-top:20px;padding-top:24px}
footer .company-home img{display:block;width:140px;height:auto;object-fit:contain;filter:brightness(0);opacity:1}
footer .company-home:focus-visible{outline:2px solid #145cf0;outline-offset:4px}

footer .footer-right{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:20px}
footer .footer-right .company-home{flex:none;border:0;margin:0;padding:0}
@media(max-width:800px){footer .footer-right{align-self:flex-start}}

/* Monochrome vector marks retain smooth edges at every display density. */
.top-social .social-logo,.social-links .social-logo{inset:0;width:32px;height:32px;filter:none;object-fit:contain;image-rendering:auto}

/* One viewport-sized stage: full portrait, SD and expressions move together. */
.trainees{position:relative;isolation:isolate;overflow:hidden;padding:28px 4% 24px;background:#f4f7fc;scroll-margin-top:0}
.trainees:before{content:none}
.trainees .section-heading{margin:0 auto 8px;padding:0}
.trainees .section-heading .eyebrow{margin-bottom:4px;font-size:10px}
.trainees .section-heading h2{font-size:clamp(23px,2.2vw,34px);line-height:1.25}
.trainees .swipe-gallery{margin-top:0}
.trainees .swipe-hint{margin:0;font-size:11px;justify-content:flex-end;height:22px}
.trainees .swipe-track{gap:0;padding:0;scroll-snap-type:x mandatory;scrollbar-width:none}
.trainees .swipe-track::-webkit-scrollbar{display:none}
.trainees .swipe-track:after{display:none}
.trainees .swipe-track.is-dragging{scroll-snap-type:none}
.trainees .idol-card{flex-basis:100%;height:clamp(350px,calc(100svh - 285px),650px);padding:8px 6%;gap:6%;grid-template-columns:54% 40%;background:transparent;border:0;border-radius:0}
.trainees .idol-copy{align-self:center}
.trainees .idol-copy h3{font-size:clamp(32px,4vw,58px)}
.trainees .idol-hook{font-size:16px;line-height:1.5;margin:0}
.trainees .idol-faces{max-width:390px;margin:24px 0 0;gap:12px}
.trainees .idol-faces img{padding:3%;box-shadow:0 4px 20px #294b7610}
.trainees .idol-portrait>img{width:72%}
.trainees .idol-portrait .idol-sd{right:44%;width:44%;height:38%;bottom:0}
.member-roster{display:flex;justify-content:center;gap:12px;overflow-x:auto;padding:8px 3px;scrollbar-width:thin}
.member-roster button{flex:0 0 58px;display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:0;padding:2px;color:#596b84;cursor:pointer;font-size:10px}
.member-roster img,.member-mystery{display:block;width:44px;height:44px;object-fit:contain;border-radius:50%;background:#fff;outline:2px solid transparent;outline-offset:2px}
.member-mystery{display:grid;place-items:center;font-size:26px}
.member-roster button[aria-pressed="true"]{color:#145cf0;font-weight:700}
.member-roster button[aria-pressed="true"] img,.member-roster button[aria-pressed="true"] .member-mystery{outline-color:#145cf0}
.member-roster button:focus-visible{outline:2px solid #145cf0;border-radius:4px}
.trainees .swipe-footer{margin-top:2px}.trainees .swipe-arrows button{width:30px;height:30px;font-size:17px}
.trainees .hidden-portrait{max-width:340px;width:80%;justify-self:center;background:#e4ebf580}
@media(max-width:800px){
 .trainees{padding:16px 20px;scroll-margin-top:0}
 .trainees .section-heading h2{font-size:22px}.trainees .section-heading .eyebrow{display:none}
 .trainees .idol-card{height:clamp(340px,calc(100svh - 295px),550px);grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:4px 0;gap:12px}
 .trainees .idol-portrait{width:100%;max-width:360px;justify-self:center}
 .trainees .idol-copy{display:grid;grid-template-columns:1fr;align-self:end;text-align:center}
 .trainees .idol-copy>.small-label{display:none}.trainees .idol-copy h3{font-size:25px;margin:0 0 3px}
 .trainees .idol-hook{font-size:12px}.trainees .idol-faces{width:228px;max-width:100%;justify-self:center;margin:8px 0 0;gap:12px}
 .member-roster{justify-content:flex-start;gap:7px;padding:8px 3px}.member-roster button{flex-basis:44px;font-size:9px}.member-roster img,.member-mystery{width:34px;height:34px}
 .trainees .hidden-details{justify-content:center;margin:8px 0 0}.trainees .hidden-details span{width:60px}
 .trainees .hidden-portrait{height:100%;width:65%}
}

html:has(#trainees:target){scroll-padding-top:84px}@media(max-width:800px){html:has(#trainees:target){scroll-padding-top:110px}}

.trainees .kangwoo-silhouette{position:relative;width:100%;max-width:none;height:100%;border:0;border-radius:0;background:transparent;overflow:hidden}
.kangwoo-silhouette img{width:100%;height:100%;min-height:0;object-fit:contain;filter:brightness(0) invert(.58)}
.kangwoo-silhouette>span{position:absolute;left:55%;top:48%;transform:translate(-50%,-50%);font-size:clamp(58px,7vw,100px);color:#fff;line-height:1}

.archive{background:#f4f7fc;max-width:none;scroll-margin-top:84px}
.archive .section-heading,.archive-tabs,.archive [role="tabpanel"]{max-width:1200px;margin-left:auto;margin-right:auto}
.archive-tabs{display:flex;gap:12px;margin-bottom:28px}.archive-tabs button{border:1px solid #cbd6e6;border-radius:30px;padding:12px 30px;background:transparent;color:#13264a;cursor:pointer;font:inherit}
.archive-tabs button[aria-selected="true"]{background:#13264a;color:#fff;border-color:#13264a}
.archive [hidden]{display:none}.archive [role="tabpanel"]{min-height:180px}
.archive-video-entry{display:flex;align-items:center;gap:28px;width:100%;padding:36px;text-align:left;border:1px solid #dde5ef;border-radius:8px;background:#fff;color:#13264a;cursor:pointer}
.archive-video-entry>span:nth-child(2){display:grid;gap:8px}.archive-video-entry small{font-size:10px;letter-spacing:.15em}.archive-video-entry strong{font-size:24px}.archive-video-entry>span:last-child{margin-left:auto}.archive-play{display:grid;place-items:center;border:1px solid #cbd6e6;width:64px;height:64px;border-radius:50%;flex-shrink:0}
.archive-empty{padding:60px 24px;text-align:center;border-top:1px solid #dce3ee;color:#657591}
.archive-dialog{width:min(1000px,94vw);max-height:92svh;border:0;padding:24px;border-radius:12px;background:#101724;color:#fff}.archive-dialog::backdrop{background:#000b}.archive-dialog video{display:block;width:100%;max-height:70svh;background:#000}.archive-dialog h3{font-size:18px;margin:0 90px 20px 0}.archive-close{float:right;background:none;color:white;border:0;padding:4px;cursor:pointer}
@media(max-width:800px){.archive{scroll-margin-top:110px}.archive-tabs button{padding:10px 24px}.archive-video-entry{padding:24px 18px;gap:14px}.archive-video-entry strong{font-size:18px}.archive-play{width:44px;height:44px}.archive-dialog{padding:16px}}

/* Large, uncropped archive previews with native swipe. */
.archive .archive-card{flex-basis:78%;background:transparent;border-radius:0}
.archive .archive-thumb{position:relative;height:clamp(300px,56vh,560px);background:#e5eaf2;border-radius:12px;overflow:hidden}
.archive .archive-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.archive-thumb button{position:absolute;right:20px;bottom:20px;border:1px solid #fff8;background:#101c36e8;color:white;width:64px;height:64px;border-radius:50%;font-size:22px;cursor:pointer}
.archive-card h3{margin:18px 0 4px;font-size:24px}.archive-card p{margin:0;color:#536078}
.archive .swipe-track:after{flex-basis:calc(22% - var(--rail-gap))}
.archive [hidden]{display:none!important}
.agency-layout .room-trainee{width:38%;height:94%;bottom:0;overflow:hidden;display:block}
.agency-layout .room-trainee img{position:absolute;top:0;left:0;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center top}
.agency-layout .room-trainee span{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2}
.room-trainee-left{left:2%}.room-trainee-right{right:2%}
@media(max-width:800px){.archive .archive-card{flex-basis:90%}.archive .swipe-track:after{flex-basis:calc(10% - var(--rail-gap))}.archive .archive-thumb{height:420px}.archive-card h3{font-size:21px}.agency-layout .room-trainee{width:43%;height:90%}.room-trainee-left{left:0}.room-trainee-right{right:0}}

.archive{scroll-margin-top:0}html:has(#archive:target){scroll-padding-top:84px}@media(max-width:800px){html:has(#archive:target){scroll-padding-top:110px}}
/* Keep the mystery glyph centered independently of body line height. */
.member-roster .member-mystery{display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:1;font-family:Arial,sans-serif;font-weight:600;font-size:26px;aspect-ratio:1}
@media(max-width:800px){.member-roster .member-mystery{font-size:22px}}

/* Face-led archive cards: fill each preview without letterboxing. */
.archive .archive-card{flex:0 0 clamp(260px,30vw,360px)}
.archive .archive-thumb{height:auto;aspect-ratio:3/4;background:transparent}
.archive .archive-thumb img{object-fit:cover;object-position:center top}
.archive .swipe-track{gap:18px}
.archive .swipe-track:after{display:none}
.archive-card h3{font-size:21px;margin-top:12px}
@media(max-width:800px){
 .archive .archive-card{flex:0 0 86%}
 .archive .archive-thumb{height:auto;aspect-ratio:3/4}
 .archive .swipe-track{gap:12px}
 .trainees .idol-copy>.idol-hook{width:100%;max-width:none;justify-self:center;text-align:center;margin-inline:auto}
}
.archive{padding-top:48px;padding-bottom:48px}
.archive .section-heading{margin-bottom:24px}
.archive .archive-thumb img[src*="archive/04.jpg"]{object-position:72% top}
.archive .archive-thumb img[src*="archive/05.jpg"]{object-position:center bottom}

.music-genres li.playable-genre{padding:0;border:0;background:none}
.genre-preview{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #2459df;border-radius:24px;background:#fff;color:#1d4ec9;font:inherit;font-size:14px;line-height:1.5;cursor:pointer}
.genre-preview[aria-pressed="true"]{background:#2459df;color:white}.genre-preview:focus-visible{outline:3px solid #90b7ff;outline-offset:3px}
.music-preview-options{display:flex;gap:10px;flex-wrap:wrap}.music-preview-hint{font-size:13px;color:#526581;margin:16px 0}
.music-player{max-width:650px;margin-top:20px;padding:18px 20px;border:1px solid #d3ddef;border-radius:14px;background:white}
.music-player[hidden]{display:none}.music-now{font-size:16px;font-weight:600;margin:0 0 12px}.music-player audio{width:100%;display:block}.music-feedback{font-size:13px;color:#526581;margin:8px 0 0}.music-feedback:empty{display:none}
@media(max-width:800px){.genre-preview{font-size:12px;padding:8px 12px}.music-player{padding:14px}.music-now{font-size:14px}}

/* Snapshot cards share a frame while preserving every face and four-photo panel. */
.producer-steps .small-media.snapshot-filled,.story-grid .story-art.snapshot-filled{width:100%;height:auto;aspect-ratio:3/4;min-height:0;overflow:hidden;background:#edf2f8}
.producer-steps .snapshot-filled img,.story-grid .snapshot-filled img{width:100%;height:100%;object-fit:cover;object-position:center top}
.producer-steps .four-photo img,.story-grid .four-photo img,.archive-thumb.four-photo img{object-fit:contain;background:#fff}
.music-screen.snapshot-filled{display:flex;align-items:center;justify-content:center;min-height:0;padding:0;border:0;background:#fff;overflow:hidden}
.music-screen.snapshot-filled img{width:100%;height:auto;object-fit:contain}

.music-screen.snapshot-filled.song-group{aspect-ratio:1206/2145;align-self:start}
.music-screen.snapshot-filled.song-group img{width:100%;height:100%;object-fit:cover;object-position:center}
.producer-steps .small-media.photo-pair{position:relative;background:#f3f6fc}
.producer-steps .photo-pair img{position:absolute;width:68%;height:auto;object-fit:contain;box-shadow:0 8px 24px #13264a14}
.producer-steps .photo-pair img:first-child{left:0;top:0;width:68%}
.producer-steps .photo-pair img:last-child{right:0;bottom:0;width:68%}

/* A direct preview, a short visual story, and real moments from the game. */
.hero-teaser{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;padding:10px 0;font-size:14px;font-weight:650;color:#1a3663}
.hero-teaser>span{display:grid;place-items:center;width:38px;height:38px;border:1px solid #9eafc9;border-radius:50%;font-size:13px;padding-left:2px}
.hero-teaser small{font-size:11px;color:#536981;font-weight:400}
.narrative-scenes{padding:48px 6% 80px}
.narrative-scenes>h3{font-size:clamp(26px,3vw,38px);line-height:1.45}
.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:36px}
.story-chapter{min-width:0;margin:0;background:#f3f6fb;border-radius:12px;overflow:hidden}
.chapter-art{width:100%;aspect-ratio:1.15;background:#e9eef7}
.chapter-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.chapter-art.empty-room img{object-position:center 32%}
.chapter-art.first-day{background:#111620}.chapter-art.first-day img{object-fit:contain}
.chapter-copy{padding:24px}.chapter-copy .small-label{font-size:10px;margin:0 0 12px}.chapter-copy h4{font-size:21px;line-height:1.4;margin:0 0 12px}.chapter-copy>p:last-child{font-size:14px;line-height:1.8;color:#526581}
.idol-portrait .idol-sd .sd-save{position:absolute;right:0;bottom:0;width:30px;height:30px;border:1px solid #d8e0ed;border-radius:50%;display:grid;place-items:center;background:#fff;color:#315273;font-size:17px;line-height:1;z-index:2}
.idol-hook{max-width:460px;line-height:1.65}
.gameplay-preview{margin:48px 0 64px}.gameplay-heading h3{font-size:clamp(26px,3vw,36px);line-height:1.4}.capture-caption{font-size:12px;color:#61738d;margin-top:12px}
.gameplay-card{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;padding:42px 6%;background:#edf3fd;border-radius:18px}
.gameplay-copy{max-width:380px}.gameplay-copy h4{font-size:clamp(28px,3vw,42px);line-height:1.35;letter-spacing:-.045em;margin:0 0 22px}.gameplay-copy>p:last-child{color:#526581;font-size:16px;line-height:1.8}
.game-screen{margin:0;justify-self:center;width:min(100%,310px);background:#fff;border:1px solid #d4deec;border-radius:18px;overflow:hidden;box-shadow:0 18px 38px #2238581a}
.game-screen img{display:block;width:100%;height:auto;object-fit:contain}
.archive-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#eaf1fc;border-radius:16px;overflow:hidden;margin:8px 0 40px;min-height:440px}
.featured-art{position:relative;min-width:0;background:#d5e6f6;display:flex;align-items:center;justify-content:center}
.featured-art>img{display:block;width:100%;height:440px;object-fit:contain}
.featured-art>button{position:absolute;right:24px;bottom:24px;width:64px;height:64px;border:1px solid #ffffffaa;border-radius:50%;background:#122446e8;color:white;font-size:21px}
.featured-copy{padding:48px;align-self:center}.featured-copy h3{font-size:clamp(38px,5vw,64px);line-height:1.2;letter-spacing:-.05em;margin:14px 0 24px}.featured-copy>p:not(.small-label){font-size:20px;line-height:1.7;color:#435c7d}.feature-type{display:block;font-size:11px;letter-spacing:.15em;color:#56708e;margin-top:36px}
.archive-thumb .image-expand{width:42px;height:42px;right:12px;bottom:12px;font-size:26px;line-height:1}
.image-dialog{width:min(900px,94vw);max-height:94svh;border:0;border-radius:14px;padding:20px;background:#f6f8fc;color:#1b304f;overflow:auto}
.image-dialog::backdrop{background:#09172ce6}.image-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.image-dialog-bar h3{font-size:18px;line-height:1.4}.image-close{flex-shrink:0;padding:8px 12px;background:white;border:1px solid #ccd8e7;border-radius:6px}
.image-full{display:block;width:100%;height:65svh;object-fit:contain}.image-download{display:flex;width:max-content;margin:18px auto 0}
@media(max-width:800px){
 .hero-teaser{font-size:13px}.hero .actions{gap:12px 20px}
 .narrative-scenes{padding:30px 20px 48px}.chapter-grid{grid-template-columns:1fr;gap:24px;margin-top:28px}.chapter-art{aspect-ratio:1.6}.chapter-copy{padding:22px}.chapter-copy h4{font-size:22px}.chapter-copy>p:last-child{font-size:14px}
 .gameplay-preview{margin:32px 0 48px}.gameplay-card{grid-template-columns:1fr;gap:24px;padding:28px 22px;align-items:start}.gameplay-copy h4{font-size:27px;margin-bottom:12px}.gameplay-copy>p:last-child{font-size:14px}.game-screen{width:min(100%,260px);border-radius:12px}.gameplay-copy{min-height:160px}.capture-caption{font-size:11px}
 .archive-feature{grid-template-columns:1fr;min-height:0;margin-bottom:28px}.featured-art>img{height:360px}.featured-copy{padding:28px}.featured-copy h3{font-size:40px;margin:10px 0 16px}.featured-copy>p:not(.small-label){font-size:17px}.feature-type{margin-top:20px}
 .idol-hook{font-size:14px!important}.idol-portrait .idol-sd .sd-save{width:28px;height:28px;right:-4px;bottom:-3px}
 .image-dialog{padding:14px}.image-dialog-bar h3{font-size:15px}.image-full{height:62svh}
}
.hero-copy button{pointer-events:auto}
.game-screen{width:min(100%,280px)}
.game-screen img{width:100%;height:520px;object-fit:contain;background:#fff}
@media(max-width:800px){.game-screen{width:min(100%,245px)}.game-screen img{height:490px}}
.chapter-art:has(img[src="assets/rooftop.jpg"]){background:#cbdce9}
.chapter-art img[src="assets/rooftop.jpg"]{object-fit:contain}
/* Consistent exploration feedback; images retain their full brightness. */
.swipe-track{cursor:grab}.swipe-track.is-dragging{cursor:grabbing}
.swipe-arrows button{transition:background .2s,transform .2s}.swipe-arrows button:not(:disabled):hover{background:#dce7ff;transform:translateY(-2px)}
.swipe-progress i{transition:width .25s ease}
.building-overview [data-floor]{transition:background .25s,box-shadow .25s}
.building-overview [data-floor][aria-pressed="true"]{box-shadow:inset 4px 0 #2858db}
.image-navigation{display:flex;align-items:center;justify-content:center;gap:24px;margin-top:12px}
.image-navigation button{width:44px;height:44px;border:1px solid #ced9ea;background:white;border-radius:50%;font-size:20px;color:#1c3c68}
.image-navigation button:disabled{opacity:.3}.image-navigation span{font-size:13px;min-width:42px;text-align:center}
.image-full{touch-action:pan-y;user-select:none;cursor:grab;height:58svh}
.music-player.music-docked{position:fixed;z-index:80;left:50%;bottom:16px;transform:translateX(-50%);width:min(620px,calc(100% - 32px));max-width:none;box-sizing:border-box;margin:0;padding:16px 48px 12px 20px;box-shadow:0 8px 40px #122a4933;background:#fff}
.music-dismiss{position:absolute;top:8px;right:8px;width:32px;height:32px;border:0;background:#edf2fa;border-radius:50%;font-size:24px;color:#20395d}
.music-remaining{font-size:12px;color:#526581}.music-docked .music-now{font-size:14px;margin-bottom:8px}.music-docked .music-feedback{margin:4px 0}.has-music-dock{padding-bottom:160px}
.story-enter{opacity:0;transform:translateY(20px);transition:opacity .55s ease,transform .55s ease}.story-enter.story-visible{opacity:1;transform:none}
@media(max-width:800px){.music-player.music-docked{bottom:8px;width:calc(100% - 16px);padding:12px 42px 10px 14px}.music-docked .music-now{font-size:12px}.image-full{height:54svh}}
@media(prefers-reduced-motion:reduce){.story-enter{opacity:1;transform:none;transition:none}.swipe-progress i,.swipe-arrows button,.building-overview [data-floor]{transition:none}}
.archive-card .archive-thumb{transition:box-shadow .25s ease}
.archive-card.is-current .archive-thumb{box-shadow:0 0 0 2px #c4d4f5}
.swipe-count{font-variant-numeric:tabular-nums}
