/* El Royale — v2 "Grand Premiere". Loaded after style.css (v1 base). */
:root {
  --velvet-1: #6E0E18; --velvet-2: #A3162A; --velvet-d: #4E0910;
  --trim: #F3E8D6;
}

/* ---------- velvet ---------- */
.velvet {
  background:
    linear-gradient(180deg, rgba(20, 0, 4, .55) 0%, rgba(20, 0, 4, 0) 22%, rgba(20, 0, 4, 0) 62%, rgba(255, 176, 120, .2) 100%),
    repeating-linear-gradient(90deg, var(--velvet-d) 0, var(--velvet-1) 12px, #8C1222 24px, var(--velvet-2) 34px, #BC2A3F 39px, var(--velvet-2) 44px, #82111F 56px, var(--velvet-1) 66px, var(--velvet-d) 76px);
}
.half { position: absolute; top: 0; bottom: 0; width: 51%; will-change: transform; }
.half-l { left: 0; transform-origin: 0 0; }
.half-r { right: 0; transform-origin: 100% 0; }
/* stucco hem with a short fringe */
.half::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
  background: linear-gradient(var(--trim), var(--trim)) top / 100% 7px no-repeat, repeating-linear-gradient(90deg, rgba(243, 232, 214, .85) 0 2px, transparent 2px 6px) bottom / 100% 11px no-repeat; }
.js .stage .half, .js .finale .half { animation: fabric 7s ease-in-out infinite alternate; }
.js .stage .half-r, .js .finale .half-r { animation-duration: 8s; animation-delay: -3s; }
@keyframes fabric { from { translate: -1px 0; } to { translate: 1.5px 0; } }
.valance { position: absolute; left: 0; right: 0; top: 0; height: clamp(40px, 7vh, 72px); z-index: 2;
  background: linear-gradient(180deg, rgba(20, 0, 4, .55), rgba(20, 0, 4, .05)),
    repeating-linear-gradient(90deg, var(--velvet-d) 0, var(--velvet-1) 20px, var(--velvet-2) 40px, var(--velvet-1) 60px, var(--velvet-d) 80px);
  border-bottom: 3px solid var(--trim); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.valance::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px;
  background: radial-gradient(circle at 50% 0, #7A101E 0 15px, rgba(243, 232, 214, .85) 15.5px 17px, transparent 17.5px) 0 0 / 40px 20px repeat-x;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }

/* ---------- ACT 0/1 · stage ---------- */
.stage { position: relative; display: block; min-height: 0; padding: 0; height: calc(100svh + 80vh); background: #0A1C16; overflow: visible; }
@media (max-width: 719px) { .stage { height: calc(100svh + 60vh); } }
.stage-view { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 50% 40%, #173A2F 0%, #0D231C 55%, #08160F 100%); }
.proj-beam { position: absolute; inset: 0; z-index: 0; opacity: var(--beam, 0); pointer-events: none; }
.proj-beam::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 74%;
  background: linear-gradient(180deg, rgba(243, 232, 214, .26), rgba(243, 232, 214, .06) 85%, transparent);
  clip-path: polygon(46% 0, 54% 0, 86% 100%, 14% 100%); filter: blur(10px); animation: projector 1.7s steps(6) infinite; }
@keyframes projector { 0% { opacity: 1; } 20% { opacity: .96; } 35% { opacity: .99; } 50% { opacity: .95; } 70% { opacity: 1; } 85% { opacity: .97; } }
.screen-layer { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 3vh); bottom: 170px; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 0 var(--gutter); text-align: center; }
@media (max-width: 959px) { .screen-layer { bottom: 200px; } }
.screen { margin: 0; width: min(100%, 580px, calc((100svh - 470px) * 1.4)); min-width: min(100%, 300px); border-radius: 6px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(243, 232, 214, .18), 0 0 70px rgba(243, 232, 214, var(--screen-glow, 0)); }
.screen img { width: 100%; height: auto; filter: brightness(var(--lit, .2)) saturate(var(--sat, .6)); }
.screen-copy { opacity: var(--copy, 0); transform: translateY(calc((1 - var(--copy, 0)) * 14px)); max-width: 40em; }
.screen-t { font: 400 clamp(1.5rem, 4.6vw, 2.4rem)/1.12 var(--f-title); color: var(--cream); text-wrap: balance; text-shadow: 0 0 18px rgba(70, 245, 154, .22); }
.screen-b { margin-top: 8px; color: var(--cream-soft); font-size: clamp(.98rem, 2.2vw, 1.1rem); }
.screen-copy .badges { margin-top: 12px; font-size: .875rem; }
@media (max-width: 719px) { .screen-copy .badges { display: none; } .screen-b { font-size: .95rem; } }
.curtain { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.footlights { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 1; opacity: var(--foot, 1);
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 196, 130, .36), rgba(255, 150, 90, .1) 55%, transparent 75%); }
.act0 { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 2vh); bottom: 190px; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--gutter); text-align: center; pointer-events: none; }
@media (max-width: 959px) { .act0 { bottom: 210px; } }
.stage .hero-sign { width: min(84vw, 470px, calc((100svh - 400px) * 1.36)); min-width: 240px; transform-origin: 0 0; will-change: transform; }
.act0-copy { padding: 14px 22px; border-radius: 20px; background: rgba(8, 14, 11, .62); box-shadow: 0 0 40px 20px rgba(8, 14, 11, .45); max-width: 34em; opacity: var(--a0, 1); }
.feature { font: 400 clamp(1rem, 2.6vw, 1.3rem)/1.3 var(--f-title); text-transform: uppercase; letter-spacing: .16em; color: var(--cream); }
.act0-copy .hero-sub { margin: 6px 0 0; font-size: clamp(.98rem, 2.4vw, 1.15rem); }
.stage-cta { position: absolute; left: 0; right: 0; bottom: max(26px, 4vh); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 var(--gutter); }
@media (max-width: 959px) { .stage-cta { bottom: calc(92px + env(safe-area-inset-bottom)); } }
.hint { display: flex; align-items: center; gap: 8px; font-size: .875rem; letter-spacing: .06em; color: var(--cream); padding: 4px 12px; border-radius: 999px; background: rgba(8, 14, 11, .55); opacity: var(--a0, 1); }
.cord { width: 12px; height: 28px; fill: none; stroke: var(--trim); stroke-width: 2; stroke-linecap: round; transform-origin: 50% 0; animation: cord 2.6s ease-in-out infinite; }
.cord .tassel { fill: var(--trim); stroke: none; }
@keyframes cord { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
html.js:not(.v2-open):not(.logo-in) .top-logo .logo-mini { opacity: 0; }
.top-logo .logo-mini { transition: opacity .2s ease; }
/* while the curtain is down, the header floats over the velvet so the sign can land in its place */
html.js:not(.v2-open):not(.logo-in) .top { background: linear-gradient(180deg, rgba(8, 14, 11, .7), rgba(8, 14, 11, 0)); border-bottom-color: transparent; }
.top { transition: background-color .3s ease; }

/* opened (revisit / reduced motion): no curtain, the screen is lit */
.v2-open .stage { height: auto; }
.v2-open .stage-view { position: relative; height: auto; min-height: 100svh; padding: calc(var(--header-h) + 28px) 0 40px; display: flex; flex-direction: column; justify-content: center; gap: 26px; --beam: .8; --lit: 1; --sat: 1; --copy: 1; --screen-glow: .12; }
.v2-open .screen-layer { position: relative; inset: auto; }
.v2-open .stage-cta { position: relative; inset: auto; }
.v2-open .curtain, .v2-open .hint { display: none; }
.v2-open .act0 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 959px) { .v2-open .stage-view { padding-bottom: 110px; } }

/* ---------- marquee bulbs ---------- */
.bulbs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.bulbs .b { opacity: .28; transition: opacity .3s ease; }
.bulbs .b .halo { opacity: .35; }
.bulbs .b.r { fill: #FF5A64; } .bulbs .b.c { fill: #FFF2DC; }
.chase .bulbs .b { animation: bulb 2.4s linear infinite; }
@keyframes bulb { 0%, 100% { opacity: .3; } 8% { opacity: 1; } 30% { opacity: .55; } }
.steady.on .bulbs .b { opacity: 1; }

/* ---------- ACT 2 · now showing ---------- */
.films2 { position: relative; height: calc(100svh + 80vh); padding: 0; background: radial-gradient(70% 60% at 50% 30%, #12302A, #0A1C16 70%); }
@media (max-width: 719px) { .films2 { height: calc(100svh + 60vh); } }
.films-view { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: calc(var(--header-h) + 12px) var(--gutter) 110px; text-align: center; }
@media (min-width: 960px) { .films-view { padding-bottom: 40px; } }
.films-kicker { margin: 0; font: 400 clamp(1.1rem, 3vw, 1.5rem)/1 var(--f-title); letter-spacing: .3em; color: var(--cream); }
.marquee-frame { position: relative; width: min(100%, 760px); padding: 22px; border-radius: 18px; background: linear-gradient(180deg, #4A0A12, #2E060B); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(243, 232, 214, .14); }
.proj-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 45%, #2D4A3F 0%, #17332A 55%, #0E231C 100%); box-shadow: inset 0 0 60px rgba(0, 0, 0, .5); }
@media (max-width: 719px) { .proj-screen { aspect-ratio: 4 / 5; } .marquee-frame { padding: 18px; } }
.pcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: var(--cream); opacity: 0; }
.pcard.on { opacity: 1; }
.pcard .tc-t { font: 400 clamp(1.6rem, 6vw, 3rem)/1.08 var(--f-title); text-transform: uppercase; letter-spacing: .04em; text-wrap: balance; text-shadow: 0 0 24px rgba(243, 232, 214, .25); }
.pcard .tc-y { margin-top: 12px; font: 500 .875rem/1 var(--f-body); letter-spacing: .4em; color: var(--cream-soft); display: flex; align-items: center; gap: 14px; }
.pcard .tc-y::before, .pcard .tc-y::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.pcard .tc-d { margin-top: 16px; max-width: 26em; color: var(--cream-soft); }
.flash { position: absolute; inset: 0; background: #FFF6E6; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .12s ease-out; }
@keyframes flash { 0% { opacity: .75; } 100% { opacity: 0; } }
.films2 .films-note { max-width: 40em; margin: 0; }
html:not(.js) .films2 { height: auto; }
html:not(.js) .films-view { position: relative; height: auto; }
html:not(.js) .pcard { position: relative; opacity: 1; }
html:not(.js) .proj-screen { aspect-ratio: auto; }

/* ---------- intermission curtain ---------- */
.intermission { position: relative; height: 40vh; overflow: hidden; background: #0A1C16; }
.intermission .half-l { transform: translateX(-101%); } .intermission .half-r { transform: translateX(101%); }
html:not(.js) .intermission { display: none; }

/* ---------- ACT 3 · cottages on stage ---------- */
.stage-floor { background: radial-gradient(80% 50% at 50% 0, #163A2F, #0D231C 70%); color: var(--cream); --line: var(--line-night); }
.stage-floor .kicker { color: var(--cream-soft); }
.stage-floor .arg-copy p { color: var(--cream-soft); }
.stage-floor .arg-t { color: var(--cream); }
.bulb-frame { position: relative; margin: 0; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, #4A0A12, #2E060B); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.bulb-frame img { border-radius: 6px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.arg .bulb-frame { width: min(100%, 500px); margin: 0 auto; }
.bulb-sm { width: min(100%, 400px); margin: 0 auto; }
.bulb-sm img { aspect-ratio: 16 / 10; }
.stage-floor .amen-list { border-color: var(--line-night); }
.stage-floor .amen-list li { border-color: var(--line-night); }
.stage-floor .amen-list .ic { color: #E39A84; }
/* playbills */
.stage-floor .sets-track { padding-top: 34px; }
.stage-floor .set { background: #F6EBD8; color: var(--ink); border-radius: 10px; box-shadow: inset 0 0 0 7px #F6EBD8, inset 0 0 0 8px #B5573F, inset 0 0 0 11px #F6EBD8, inset 0 0 0 12px rgba(181, 87, 63, .6); padding: 16px; opacity: .72; transition: opacity .4s ease, box-shadow .4s ease, transform .4s ease; position: relative; }
.stage-floor .set.active { opacity: 1; transform: translateY(-4px); box-shadow: inset 0 0 0 7px #F6EBD8, inset 0 0 0 8px #B5573F, inset 0 0 0 11px #F6EBD8, inset 0 0 0 12px rgba(181, 87, 63, .6), 0 0 0 1px rgba(255, 236, 196, .4), 0 -20px 60px rgba(255, 230, 180, .22); }
.stage-floor .set::before { content: "★ ★ ★"; display: block; text-align: center; font-size: .7rem; letter-spacing: .6em; color: #A3162A; margin: 2px 0 10px; }
.stage-floor .set::after { content: ""; position: absolute; inset: -40px 0 auto; height: 70%; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(50% 60% at 50% 0, rgba(255, 240, 205, .38), transparent 75%); }
.stage-floor .set.active::after { opacity: 1; }
.stage-floor .set-photos { border-radius: 4px; overflow: hidden; }
.stage-floor .set-copy { padding: 16px 6px 6px; align-items: center; text-align: center; }
.stage-floor .set-name { font-size: 1.5rem; }
.stage-floor .set-copy .btn { align-self: center; }

/* ---------- ACT 4 · red carpet ---------- */
.carpet .cp { fill: none; stroke-linecap: butt; stroke-linejoin: round; }
.cp-shadow { stroke: rgba(0, 0, 0, .45); stroke-width: 20; }
.cp-edge { stroke: var(--trim); stroke-width: 18; }
.cp-red { stroke: var(--velvet-2); stroke-width: 12; }
.cp-nap { stroke: rgba(255, 140, 150, .22); stroke-width: 3; }
.cp-roll rect { fill: var(--velvet-1); stroke: var(--trim); stroke-width: 2; }
.cp-roll ellipse { fill: #4E0910; }
.js .cp-roll { opacity: 0; }
.cp-spot { opacity: 0; transition: opacity .6s ease; }
.cp-spot path { fill: rgba(243, 232, 214, .14); }
.cp-spot ellipse { fill: rgba(255, 232, 190, .3); }
.map-wrap.arrived .cp-spot { opacity: 1; }
.js .map-wrap:not(.arrived) .map-stats { opacity: 0; transform: translateY(8px); }
.map-stats { transition: opacity .5s ease, transform .5s ease; }

/* ---------- ACT 5 · the critics ---------- */
.v2 .ratings { border: 0; gap: 22px; margin-top: 40px; }
.v2 .rating { display: flex; flex-direction: column; align-items: center; padding: 18px 20px 22px; background: #FBF4E8; border-radius: 4px; box-shadow: 0 1px 0 rgba(30, 42, 36, .12), 0 14px 30px rgba(30, 42, 36, .14); transform: rotate(var(--rot, -1.5deg)); }
.v2 .rating:nth-child(2) { --rot: 1.2deg; } .v2 .rating:nth-child(3) { --rot: -.8deg; }
.v2 .rating + .rating { border: 0; }
.v2 .r-src { order: -1; width: 100%; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 3px double var(--ink); text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; }
.v2 .r-src b { font: 400 1.25rem/1.2 var(--f-title); letter-spacing: .06em; display: block; }
.v2 .r-label { color: #A3162A; }
.v2 .marquee .quote { background: #FBF4E8; border-radius: 3px; box-shadow: 0 1px 0 rgba(30, 42, 36, .1), 0 10px 22px rgba(30, 42, 36, .12); transform: rotate(-.8deg); }
.v2 .marquee .quote:nth-child(even) { transform: rotate(.9deg); }
.v2 .marquee .quote blockquote { font-family: var(--f-body); }
.v2 .marquee-group { padding-top: 10px; padding-bottom: 14px; }

/* ---------- intermission + ACT 6 · the ticket ---------- */
.booking.ticket { padding: 0; background: transparent; box-shadow: none; --notch: var(--night); border-radius: 20px; position: relative; }
.ticket .stub, .ticket .tbody { background: var(--paper); }
.ticket .stub { position: relative; padding: 18px 22px 20px; border-radius: 20px 20px 0 0; text-align: center; border-bottom: 2px dashed rgba(30, 42, 36, .35); background: #F7EBD6; }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; bottom: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--notch); z-index: 1; }
.ticket .stub::before { left: -12px; } .ticket .stub::after { right: -12px; }
.ticket .tbody { padding: 24px 18px; border-radius: 0 0 20px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
@media (min-width: 420px) { .ticket .tbody { padding: 26px 24px; } }
.admit { font: 400 clamp(1.7rem, 6vw, 2.1rem)/1 var(--f-title); text-transform: uppercase; letter-spacing: .14em; color: #A3162A; }
.admit-sub { margin-top: 6px; font: 500 .75rem/1.2 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); }
.stub-no { position: absolute; right: 16px; top: 12px; font: 500 .7rem/1 var(--f-body); letter-spacing: .12em; color: rgba(30, 42, 36, .45); }
.stub-spot { position: absolute; inset: -60px 0 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; background: radial-gradient(55% 70% at 50% 0, rgba(255, 238, 200, .7), transparent 75%); mix-blend-mode: soft-light; }
.ticket.lit .stub-spot { opacity: 1; }
.ticket.lit .stub { box-shadow: 0 0 0 1px rgba(255, 236, 196, .5), 0 0 70px rgba(255, 226, 170, .4); }
.ticket .stub .done { padding: 18px 0 6px; }
.ticket .done-sign { width: 150px; }
.ticket.torn .stub { border-bottom: 0; border-radius: 20px; }
.ticket.torn .stub::before, .ticket.torn .stub::after { display: none; }
.sheet .booking.ticket { --notch: var(--paper); padding: 0; }
.sheet .ticket .stub { background: #EFE0C6; }
.sheet .ticket .tbody { background: #FBF4E8; box-shadow: inset 0 0 0 1px var(--line-paper); }

/* ---------- ACT 7 · the end ---------- */
.v2 .credits { padding-bottom: 0; }
.finale { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; margin-top: clamp(40px, 8vh, 80px); --gap: min(480px, 66vw); }
.finale-curtain .half { width: calc(50% - var(--gap) / 2 + 1px); }
.finale-spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: linear-gradient(180deg, rgba(243, 232, 214, .22), rgba(243, 232, 214, .05) 80%, transparent); clip-path: polygon(44% 0, 56% 0, 70% 100%, 30% 100%); filter: blur(8px); }
.credits.lit .finale-spot { opacity: 1; }
.v2 .cr-finale { position: relative; z-index: 3; margin: 0; padding: 0 var(--gutter); gap: 18px; text-align: center; }
.finale-t { font: 400 clamp(1.25rem, 4vw, 1.7rem)/1.25 var(--f-title); color: var(--cream); max-width: 16em; text-wrap: balance; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bulbs .b { opacity: 1 !important; animation: none !important; }
  .films2 { height: auto; }
  .films-view { position: relative; height: auto; padding-top: 80px; padding-bottom: 80px; }
  .proj-screen { aspect-ratio: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
  .pcard { position: relative; inset: auto; opacity: 1; padding: 22px; }
  .pcard + .pcard { border-top: 1px solid rgba(243, 232, 214, .15); }
  .intermission { display: none; }
  .finale-curtain .half-l, .finale-curtain .half-r { transform: none !important; }
  .finale-spot { opacity: 1; }
  .cp-roll { display: none; }
  .map-wrap .cp-spot { opacity: 1; }
  .js .map-wrap .map-stats { opacity: 1; transform: none; }
}
@media (max-width: 959px) { .finale { padding-bottom: 96px; } }
