/* Layered closing poster ("参加拜年祭").
   The art box keeps the original section layout from home-v9 / home-continuity;
   only its contents changed from four clipped copies of one image to seven
   transparent cut-outs that are composed like a GTA VI style poster intro. */
.gala-poster--layered .gala-poster-art{container-type:size;transform:none}
.gala-poster-stage{position:absolute;left:50%;top:50%;width:max(100cqw,166.667cqh);height:max(100cqh,60cqw);translate:-50% -50%;transform-origin:50% 50%;will-change:auto}
.gala-poster-layer{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;pointer-events:none;user-select:none;-webkit-user-drag:none;transform-origin:50% 50%;
  --layer-depth:calc((var(--layer-scale,1) - 1) * 2.4);
  translate:calc(var(--poster-x,0px) * var(--layer-depth)) calc(var(--poster-y,0px) * var(--layer-depth));
  transition:translate .8s var(--v9-ease,cubic-bezier(.16,1,.3,1))}
/* Before the intro plays the poster stays dark, so the first thing a visitor
   sees is the entrance, not a finished frame that then restarts. */
.gala-poster--layered.is-waiting .gala-poster-stage{opacity:0}
.gala-poster--layered.is-revealing .gala-poster-layer{will-change:scale,opacity}
.gala-poster--layered.is-revealing .gala-poster-layer--banner{will-change:scale,opacity,clip-path,filter}
.gala-poster--layered.is-revealing .gala-poster-stage{will-change:scale,opacity}
/* Original art used a dim backdrop; this one is the actual festive scene, so
   it only needs a little calming behind the white headline. */
.gala-poster--layered .gala-poster-stage{filter:saturate(.94) brightness(.94)}

.gala-poster-replay{position:absolute;z-index:3;right:var(--gutter,24px);bottom:clamp(70px,9svh,110px);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid oklch(1 0 0 / .18);border-radius:999px;background:oklch(.16 .01 255 / .46);color:oklch(.97 .006 95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;opacity:.82;transition:opacity .25s,background .25s,transform .35s var(--v9-ease,cubic-bezier(.16,1,.3,1))}
.gala-poster-replay[hidden]{display:none}
.gala-poster-replay svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gala-poster-replay:hover{opacity:1;background:oklch(.22 .01 255 / .62)}
.gala-poster-replay:active{transform:scale(.94)}
.gala-poster-replay:focus-visible{outline:2px solid var(--gold,#f4c542);outline-offset:3px;opacity:1}
@media(prefers-reduced-motion:reduce){
 .gala-poster-layer{transition:none;translate:none}
 .gala-poster-replay{display:none}
}

/* ---- Framed stage: the whole poster stays visible, the invitation sits
   underneath it instead of on top of the characters. ---- */
main>section.section.join-poster:not(.hero):has(.gala-poster--layered){overflow:clip}
.gala-poster.gala-poster--layered{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(16px,2.6svh,30px);height:auto;min-height:0;padding:clamp(24px,4.5svh,56px) 0 clamp(28px,5svh,64px);overflow:visible;
  background:radial-gradient(ellipse 70% 60% at 50% 42%,oklch(.3 .1 25 / .55),transparent 70%),var(--bg)}
.gala-poster--layered::after,.gala-poster--layered .gala-poster-vignette{display:none!important}
.gala-poster--layered .gala-poster-art{position:relative;inset:auto;flex:none;width:min(calc(100% - 2 * var(--gutter,24px)),calc((100svh - var(--header-height,64px) - 270px) * 5 / 3),1280px);min-width:min(100%,560px);height:auto;aspect-ratio:5 / 3;overflow:visible;mask-image:none;-webkit-mask-image:none;transform:none;opacity:1}
.gala-poster--layered .gala-poster-art::after{display:none}
.gala-poster--layered .gala-poster-stage{border-radius:clamp(6px,.8vw,14px);overflow:hidden;box-shadow:0 40px 90px -30px rgb(0 0 0 / .75),0 0 0 1px oklch(.82 .12 85 / .22)}
.gala-poster--layered.is-revealing .gala-poster-stage{overflow:visible}
.gala-poster--layered .gala-poster-copy{position:relative;inset:auto;z-index:2;flex:none;width:100%;margin:0;padding:0 var(--gutter,24px);pointer-events:none}
.gala-poster--layered .gala-poster-copy .section-heading{margin:0 0 clamp(12px,2svh,22px)!important}
.gala-poster--layered .gala-poster-copy .section-heading h2{font-size:clamp(40px,min(7vw,8svh),104px)!important;line-height:1.05}
.gala-poster--layered .gala-poster-copy .application-entry .button.primary{width:min(320px,100%);height:clamp(52px,7svh,64px);min-height:52px}
.gala-poster--layered .gala-poster-replay{top:auto;right:max(var(--gutter,24px),calc(50% - 640px));bottom:clamp(28px,5svh,64px)}
@media(max-width:759px){
 .gala-poster.gala-poster--layered{padding:20px 0 max(32px,env(safe-area-inset-bottom));gap:22px}
 .gala-poster--layered .gala-poster-art{width:calc(100% - 24px);min-width:0}
 .gala-poster--layered .gala-poster-replay{top:28px;bottom:auto;right:20px;width:38px;height:38px}
}
