/* Act-boundary curtain (js/host/curtain.js). Clipped to the stage opening (P04 frame diet: x 76–1844, y 56–940); ribbon, strip and HUD stay above/outside. */
.curtain {
  position: absolute;
  left: 76px;
  top: 56px;
  width: 1768px;
  height: 884px;
  overflow: hidden;
  pointer-events: none;
  z-index: 50; /* above every game layer (machine cards use z 5+); the clip keeps it off the strip (y < 62) and the ribbon (y > 940) */
}
.curtain[hidden] { display: none; }
.curtain__panel {
  position: absolute;
  top: 0;
  width: 956px;
  height: 884px;
  transform-origin: 50% 0;
  will-change: transform;
}
.curtain__panel--l { left: -60px; }
.curtain__panel--r { left: 872px; }
.curtain__panel img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* fallback cloth: oxblood pleats, 56 px pitch, 3 px ink leading edge (when the art is missing) */
.curtain__panel.is-fb {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 28px, rgba(0, 0, 0, 0.12) 28px 56px),
    #7a2b33;
}
.curtain__panel--l.is-fb { border-right: 3px solid #14161f; }
.curtain__panel--r.is-fb { border-left: 3px solid #14161f; }
.curtain__panel.is-fb img { display: none; }
.curtain__seam { position: absolute; left: 881px; top: 0; width: 6px; height: 884px; background: rgba(12, 10, 16, 0.55); box-shadow: -11px 0 12px -3px rgba(8, 4, 8, 0.42); } /* the leading edge casts onto the other panel */
/* light on the cloth (not in the art): warm key upper-left, falloff to hem and outer edge, hem line */
.curtain__panel::before, .curtain__panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.curtain__panel::before { mix-blend-mode: screen; background: radial-gradient(ellipse 85% 70% at 18% 0%, rgba(255, 214, 150, 0.28), transparent 72%); }
.curtain__panel::after { mix-blend-mode: multiply; }
.curtain__panel--l::after { background-image: linear-gradient(to right, rgba(40, 14, 20, 0.35), rgba(40, 14, 20, 0) 26%), linear-gradient(to top, rgba(10, 4, 8, 0.55) 0 5px, rgba(10, 4, 8, 0) 40px), linear-gradient(to bottom, rgba(40, 14, 20, 0) 45%, rgba(40, 14, 20, 0.35) 100%); }
.curtain__panel--r::after { background-image: linear-gradient(to left, rgba(40, 14, 20, 0.35), rgba(40, 14, 20, 0) 26%), linear-gradient(to top, rgba(10, 4, 8, 0.55) 0 5px, rgba(10, 4, 8, 0) 40px), linear-gradient(to bottom, rgba(40, 14, 20, 0) 45%, rgba(40, 14, 20, 0.35) 100%); }
/* off the studio the proscenium arrives with the curtain: full frame, under the strip/ribbon (z 5), under the cloth (z 50) */
.curtain__frame { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 4; opacity: 0; display: block; }
.curtain__frame[hidden] { display: none; }
.curtain__tassel {
  position: absolute;
  left: 849px;
  top: 380px;
  width: 70px;
  height: 160px;
  transform-origin: 50% 0;
}
.curtain__tassel img { width: 100%; height: 100%; display: block; }
.curtain__tassel.is-fb {
  background:
    radial-gradient(circle at 50% 12px, #e0b24a 0 11px, transparent 12px),
    linear-gradient(#c8963a, #c8963a) 50% 20px / 6px 40px no-repeat,
    linear-gradient(#c8963a, #a97a28) 50% 60px / 34px 90px no-repeat;
}
.curtain__tassel.is-fb img { display: none; }
.curtain__fade { position: absolute; inset: 0; background: #7a2b33; opacity: 0; display: none; }
.curtain.is-rm .curtain__panel, .curtain.is-rm .curtain__seam, .curtain.is-rm .curtain__tassel { display: none; }
.curtain.is-rm .curtain__fade { display: block; }
/* the status strip stays readable over the cloth: off the studio the atlas pills reach y 90, below the opening's top edge (62) */
#stage .topbar { z-index: 55; }
/* CD sign-off: less specular pleats (about half the band contrast), base toward #6f2a33, faint paper grain */
.curtain__panel img { filter: contrast(0.74) saturate(1.05) brightness(1.04); }
.curtain__panel--l::after, .curtain__panel--r::after { background-color: rgba(111, 42, 51, 0.18); }
.curtain__panel > .curtain__grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; mix-blend-mode: multiply; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 1.2 -0.1'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* P04 (ops rule 3): a closed curtain is never empty. The title card is pinned to the cloth at the seam:
   Kit card, Ink edge, foil split pins, a cast shadow on the velvet; kicker 46 · island 128 · subtitle 46 · part 46 + cell. */
.curtain__card { position: absolute; left: 50%; top: 50%; width: 1100px; min-height: 420px; margin: -250px 0 0 -550px; box-sizing: border-box; padding: 40px 64px 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; background: #f3e7cf; color: #2b2118; border: 4px solid #2b2118; border-radius: 6px; box-shadow: 0 10px 0 #8a6238, 0 10px 0 4px #2b2118, 0 40px 60px rgba(8, 4, 8, 0.6); transform: rotate(-1deg); opacity: 0; visibility: hidden; }
.curtain__card.is-on { visibility: visible; }
.curtain__card { justify-content: center; } /* D-NQA112: a short card (title + sub) sits in the middle of its plate, not on top of an empty half */
.curtain__card::before, .curtain__card::after { content: ""; position: absolute; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #f4ecc8, #d9cfa8 45%, #9c8a52); border: 3px solid #2b2118; }
.curtain__card::before { left: 22px; }
.curtain__card::after { right: 22px; }
.curtain__kicker { font: 400 46px/1 var(--font-display); letter-spacing: 0.04em; color: #9e2c1d; }
.curtain__title { margin: 0; font: 400 128px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }
.curtain__sub { font: 800 46px/1.15 var(--font-body); color: #5e4225; }
.curtain__part { display: flex; align-items: center; gap: 18px; margin-top: 8px; padding: 6px 26px 6px 10px; border: 3px solid #2b2118; border-radius: 8px; background: #c49a6c; font: 400 46px/1 var(--font-display); }
.curtain__part img { width: 96px; height: 96px; object-fit: contain; }
.curtain__card { justify-content: center; } /* D-FT1E: no part row any more; title and sub sit in the middle of the plate (same declaration as the D-NQA112 WIP line above, drop one when both land) */

/* MAPFINISH1 (D-MAPFIN2, owner Q5 C): the arena layer over the opening curtain — every table on a paper podium along
   the stage floor (above the ribbon, y <= 916) under the IGRA POČINJE! banner; js/host/arena.js, 2.7 s, then gone */
.arena { position: absolute; inset: 0; z-index: 45; pointer-events: none; }
.arena__stage { position: absolute; inset: 0; background: #8e2a2e url("/game/art/kit/atlas-v5/arena-stage.webp") center / cover no-repeat; }
.arena__banner { position: absolute; left: 50%; top: 236px; transform: translateX(-50%); padding: 10px 44px 16px; background: #e63946; border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 9px 0 #8f1d28, 0 9px 0 4px var(--ink), 0 22px 30px rgba(20, 12, 4, 0.4); }
.arena__banner::before, .arena__banner::after { content: ""; position: absolute; top: -78px; width: 4px; height: 80px; background: var(--ink); }
.arena__banner::before { left: 40px; } .arena__banner::after { right: 40px; }
.arena__banner b { display: block; font: 400 76px/1 var(--font-display); color: #fff4dc; white-space: nowrap; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); letter-spacing: 0.02em; }
.arena__row { position: absolute; left: 140px; right: 140px; bottom: 296px; display: flex; justify-content: center; align-items: flex-end; gap: 12px;
  /* GAMEPOLISH1 (Argon: the mascots "slide straight down through the solid stage floor"): the floor line is a trapdoor —
     the row rises out of it and sinks into it, never through the painted boards below */
  clip-path: inset(-700px -60px -8px -60px); }
.arena__seat { width: var(--w); display: flex; flex-direction: column; align-items: center; }
.arena__seat img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; margin-bottom: -6px; filter: drop-shadow(4px 6px 0 rgba(43, 29, 18, 0.35)); }
.arena__podium { display: grid; place-items: center; width: 100%; height: calc(var(--w) * 0.36); min-height: 18px; background: #f6ebd2; border: 3px solid var(--ink); border-top: 9px solid var(--c); border-radius: 6px 6px 3px 3px; box-shadow: 5px 6px 0 #b98a57, 5px 6px 0 3px var(--ink); }
.arena__podium b { font: 400 36px/1 var(--font-display); color: var(--ink); }
