/* Independent alpha layers. Keep other members opaque when selecting one. */
[data-character="minpopo"]{--member-color:#c6a26f;--cast-x:14%;--cast-order:0}[data-character="coffee-myong"]{--member-color:#cd9cac;--cast-x:32%;--cast-order:1}[data-character="kimhayoi"]{--member-color:#8d78a5;--cast-x:50%;--cast-order:2}[data-character="naebinae"]{--member-color:#83c8e6;--cast-x:68%;--cast-order:3}[data-character="recruit"]{--member-color:#a29aa9;--cast-x:86%;--cast-order:4}
.hero{height:clamp(740px,100svh,980px);position:relative;overflow:hidden;background:#e5d9ed;isolation:isolate}.hero-base{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}.hero-shade{position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(180deg,#f4ecff25,transparent 36%,transparent 55%,#37234135 75%,#302036c7)}.hero-copy{position:absolute;top:130px;left:5%;z-index:4;pointer-events:none}.hero-copy .eyebrow{font-size:12px;letter-spacing:.15em;text-shadow:0 1px 15px white}.hero-copy h1{font-size:clamp(29px,2.8vw,43px);line-height:1.4;font-weight:400;letter-spacing:-.04em;margin:0;text-shadow:0 0 24px #fff}.mobile-break{display:none}.fine-line{display:block;width:40px;height:1px;background:#82658c;margin-top:20px}
.cast-stage{position:absolute;inset:0;z-index:2;isolation:isolate}.member-sprite{position:absolute;left:var(--cast-x);bottom:-2%;width:29%;height:79%;transform:translateX(-50%);transform-origin:50% 95%;z-index:calc(2 + var(--cast-order));transition:transform .26s cubic-bezier(.2,.7,.2,1);outline:none!important;cursor:default}.member-sprite>img{width:100%;height:100%;object-fit:contain;object-position:center bottom;pointer-events:none;user-select:none;display:block}.member-sprite.is-active{z-index:20;transform:translateX(-50%) translateY(-7px) scale(1.045)}.member-sprite.is-active>img,.member-sprite:focus-visible>img{filter:drop-shadow(0 0 2px #fff)}.member-sprite:focus-visible:after{content:'';position:absolute;inset:12% 16% 5%;border:2px solid #fff9;border-radius:80px;pointer-events:none}.cast-stage.over-character,.cast-stage.over-character a{cursor:pointer}
.hero-selection{position:absolute;z-index:5;left:50%;bottom:114px;transform:translateX(-50%);display:flex;align-items:center;gap:19px;width:min(580px,90%);min-height:108px;padding:18px 23px;background:#fffbfff2;border:1px solid #fff;border-radius:18px;box-shadow:0 9px 35px #30203913}.selection-mark{font:30px Georgia,serif;color:#9e78aa}.selection-kicker{font-size:12px;letter-spacing:.08em;color:#8b7194;margin:0 0 4px}.hero-selection strong{font-size:25px;font-weight:400;line-height:1.4}.hero-selection p:last-child{font-size:14px;color:#7f6b88;margin:5px 0 0;line-height:1.5}.profile-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-left:auto;border-left:1px solid #dfd2e4;padding:6px 0 6px 19px;white-space:nowrap;font-size:15px;color:#644770}.profile-link:hover{text-decoration:underline;text-underline-offset:5px}
.hero-bottom{position:absolute;z-index:5;bottom:18px;width:100%;display:flex;flex-direction:column;align-items:center;gap:13px}.member-names{display:flex;justify-content:center;gap:10px;max-width:calc(100% - 32px)}.member-names button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 15px;border:1px solid #ffffff35;border-radius:25px;background:#39264155;color:#fff;font-size:16px;line-height:1.4;white-space:nowrap;transition:background .15s,border-color .15s}.member-names button.active,.member-names button:hover{background:#fff;color:#523b61;border-color:#fff}.member-names button>span:not(.member-live-badge){width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--member-color)}.member-names .member-live-badge{font-size:10px;padding:3px 6px;background:#b84466;color:#fff}.scroll-hint{font-size:12px;letter-spacing:.09em;color:#fffffff2;display:flex;flex-direction:column;align-items:center;gap:0;min-height:32px}.scroll-hint span{font-size:21px;line-height:15px}.card-art,.profile-portrait{background:radial-gradient(ellipse at 50% 25%,#fff,color-mix(in srgb,var(--member-color),#f0e9f6 72%))}
@media(min-width:1800px){.member-sprite{width:27%;height:83%}}
@media(min-width:801px) and (max-width:1100px){.hero{height:780px}.member-sprite{width:34%;height:80%}.hero-copy{top:120px}.hero-selection{bottom:114px}}
@media(max-width:800px){.hero{height:clamp(660px,84svh,720px);background:#e5d8ed}.hero-base{object-fit:cover;object-position:center;opacity:.8}.hero-copy{top:98px;left:6%}.hero-copy .eyebrow{font-size:12px;letter-spacing:.1em;margin-bottom:10px}.hero-copy h1{font-size:29px;line-height:1.35}.mobile-break{display:block}.fine-line{margin-top:14px;width:28px}.cast-stage{top:175px;bottom:220px}.member-sprite{width:38%;height:100%;bottom:0}.member-sprite:nth-child(1){left:14%}.member-sprite:nth-child(2){left:32%}.member-sprite:nth-child(3){left:50%}.member-sprite:nth-child(4){left:68%}.member-sprite:nth-child(5){left:86%}.member-sprite.is-active{transform:translateX(-50%) translateY(-5px) scale(1.06)}.hero-shade{background:linear-gradient(#f2eafa0a,transparent 35%,transparent 52%,#594368b3 72%,#392640 100%)}.hero-selection{bottom:107px;width:calc(100% - 32px);gap:12px;padding:15px 16px;min-height:112px;border-radius:15px}.selection-mark{font-size:25px}.selection-kicker{font-size:12px;letter-spacing:.025em}.hero-selection strong{font-size:23px}.hero-selection p:last-child{font-size:14px;max-width:230px}.profile-link{font-size:14px;padding-left:13px}.hero-bottom{bottom:15px;gap:12px}.member-names{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:calc(100% - 32px);max-width:600px}.member-names button{font-size:14px;min-width:0;gap:0;padding:9px 2px;border-radius:13px}.member-names button>span:not(.member-live-badge){display:none}.member-names .member-live-badge{display:none}.scroll-hint{font-size:12px}.recruit-label{font-size:14px;padding:7px 12px}}
@media(max-width:360px){.hero-copy h1{font-size:27px}.hero-selection{padding:14px 12px;gap:9px}.selection-mark{display:none}.hero-selection strong{font-size:22px}.hero-selection p:last-child{font-size:13px}.profile-link{font-size:14px;padding-left:10px}.member-names button{font-size:13px}.member-names{gap:3px}}
@media(prefers-reduced-motion:reduce){.member-sprite{transition:none}.member-sprite.is-active{transform:translateX(-50%) scale(1.025)}}

/* Four members on the hero; the test profile remains in the member directory. */
.cast-stage [data-character="minpopo"]{--cast-x:17%}.cast-stage [data-character="coffee-myong"]{--cast-x:39%}.cast-stage [data-character="kimhayoi"]{--cast-x:61%}.cast-stage [data-character="naebinae"]{--cast-x:83%}
@media(max-width:800px){.member-sprite{width:44%}.member-sprite:nth-child(1){left:17%}.member-sprite:nth-child(2){left:39%}.member-sprite:nth-child(3){left:61%}.member-sprite:nth-child(4){left:83%}.member-names{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:800px){.member-sprite{width:40%}.member-sprite:nth-child(1){left:14%}.member-sprite:nth-child(2){left:38%}.member-sprite:nth-child(3){left:62%}.member-sprite:nth-child(4){left:86%}.member-names button{flex-wrap:wrap;column-gap:4px;row-gap:3px;align-content:center}.member-names .member-live-badge:not([hidden]){display:inline-flex;font-size:9px;padding:2px 4px;line-height:1.2}.member-names .member-live-badge[hidden]{display:none}}

/* Optical spacing accounts for the different poses and transparent margins. */
.cast-stage [data-character="coffee-myong"]{--cast-x:40.5%}.cast-stage [data-character="kimhayoi"]{--cast-x:59.5%}
@media(max-width:800px){.member-sprite:nth-child(2){left:39.5%}.member-sprite:nth-child(3){left:60.5%}}

.member-names button.is-hovered,.member-names button:focus-visible{
 outline:2px solid var(--member-color);
 outline-offset:2px;
}
.member-names button.is-hovered{background:#fff;color:#392641;border-color:#fff}
@media(max-width:800px){
 .member-names button{
  display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;
  align-content:center;gap:3px;min-height:48px;padding:5px 2px;
  font-size:clamp(11px,3.5vw,14px);
 }
 .member-names .member-live-badge:not([hidden]){margin:0}
}
@media(max-width:800px) and (max-height:720px){
 .hero{height:clamp(490px,100svh,660px)}
 .hero-copy{top:74px}
 .cast-stage{top:150px;bottom:168px}
 .hero-selection{bottom:81px;min-height:74px;padding-block:8px}
 .hero-selection strong{font-size:19px}
 .hero-bottom{bottom:7px;gap:5px}
}

/* Keep the space between the profile panel and the name row above the cast. */
@media (hover:hover) and (min-width:801px){
 .hero-selection::after{
  content:"";
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:48px;
 }
}

/* Direct member links on the original terrace artwork. */
.direct-hero{height:clamp(520px,87svh,920px)}
.direct-hero .hero-shade{background:linear-gradient(180deg,transparent 61%,#241a303f 79%,#241a30d9)}
.direct-hero .member-sprite{cursor:pointer}
.direct-names{position:absolute;z-index:5;inset:auto 0 12px;height:48px;pointer-events:none}
.direct-names a{
 position:absolute;left:var(--cast-x);transform:translateX(-50%);
 display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;
 color:#fff;font-weight:700;line-height:1.2;font-size:clamp(16px,1.65vw,24px);
 text-shadow:0 1px 5px #22172f;background:#241a301f;padding:4px 10px;
 border-radius:6px;white-space:nowrap;pointer-events:auto;
}
.direct-names a[data-character="minpopo"]{--cast-x:17%}
.direct-names a[data-character="coffee-myong"]{--cast-x:40.5%}
.direct-names a[data-character="kimhayoi"]{--cast-x:59.5%}
.direct-names a[data-character="naebinae"]{--cast-x:83%}
.direct-names a:hover,.direct-names a.is-hovered,.direct-names a:focus-visible{
 background:#241a306e;box-shadow:inset 0 -2px var(--member-color)
}
.direct-names .member-live-badge{margin:0;font-size:10px;text-shadow:none}
.direct-names .member-live-badge[hidden]{display:none}
.direct-arrow{font-size:1.15em;font-weight:400}
@media(max-width:800px){
 .direct-hero{height:clamp(340px,66svh,560px)}
 .direct-hero .cast-stage{top:74px;bottom:32px}
 .direct-hero .member-sprite{width:40%}
 .direct-names{bottom:6px}
 .direct-names a{gap:3px;font-size:clamp(12px,3.3vw,16px);padding-inline:4px}
 .direct-names a[data-character="minpopo"]{--cast-x:14%}
 .direct-names a[data-character="coffee-myong"]{--cast-x:39.5%}
 .direct-names a[data-character="kimhayoi"]{--cast-x:60.5%}
 .direct-names a[data-character="naebinae"]{--cast-x:86%}
 .direct-names .member-live-badge{font-size:8px;padding:1px 3px}
 .direct-arrow{display:none}
}

.direct-hero .direct-intro{
 bottom:72px;min-height:0;width:max-content;max-width:calc(100% - 24px);
 gap:9px;padding:8px 13px;border-radius:10px;pointer-events:none;transition:opacity .18s;
}
.direct-hero .direct-intro .selection-mark{font-size:19px}
.direct-hero .direct-intro .selection-kicker{display:none}
.direct-hero .direct-intro strong{font-size:17px}
.direct-hero .direct-intro p:last-child{font-size:12px;margin-top:2px}
.direct-hero .direct-intro::after{content:none}
.direct-hero:has(.member-sprite.is-active) .direct-intro{opacity:0}
@media(max-width:800px){
 .direct-hero .hero-copy{top:78px}
 .direct-hero .cast-stage{top:126px}
 .direct-hero .direct-intro{bottom:55px;min-height:0;width:max-content;max-width:calc(100% - 24px);padding:8px 14px;gap:8px}
 .direct-hero .direct-intro strong{font-size:17px}
 .direct-hero .direct-intro p:last-child{font-size:12px;margin-top:2px}
 .direct-hero .direct-intro .selection-kicker{display:none}
}
@media(prefers-reduced-motion:reduce){.direct-hero .direct-intro{transition:none}}

@media(max-width:800px){
 body:has(.direct-hero) .header{
  position:relative;height:auto;grid-template-rows:auto auto;
  padding-block:6px 8px;background:#fcf8ff;
 }
 body:has(.direct-hero) .header .brand{min-height:44px}
 body:has(.direct-hero) .header #primary-nav{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 8px;
  width:100%;align-items:start;
 }
 body:has(.direct-hero) .header #primary-nav>a,
 body:has(.direct-hero) .header #primary-nav>.nav-group>button{
  min-height:44px;width:100%;font-size:clamp(11px,3.2vw,14px);
  line-height:1.25;text-align:left;
 }
 body:has(.direct-hero) .header #primary-nav>.nav-group:nth-child(3n) .nav-submenu{
  left:auto;right:0;
 }
 .direct-hero{height:clamp(320px,51svh,465px)}
 .direct-hero .hero-copy{top:14px}
 .direct-hero .hero-copy h1{font-size:clamp(19px,5.4vw,28px)}
 .direct-hero .hero-copy .eyebrow{margin:0 0 4px}
 .direct-hero .hero-copy .fine-line{display:none}
 .direct-hero .cast-stage{top:63px}
}

.direct-hero .hero-copy h1{white-space:nowrap}
@media(max-width:800px){.direct-hero .hero-copy h1{font-size:clamp(16px,5.2vw,26px)}}
