.theatre {
  --gold: #d8b877;
  --gold-soft: #a98c54;
  --gold-dim: rgba(216, 184, 119, .34);
  --ink: #0a0908;
  --paper: #e7dcc6;
  --muted: #9b8f7a;
  --curtain: #6b1119;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
}

.theatre * { box-sizing: border-box; }

.theatre::before,
.theatre::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 8px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, #2c0508, #7d1821 46%, #3d070c);
  opacity: .6;
}
.theatre::before { left: 0; }
.theatre::after { right: 0; transform: scaleX(-1); }

.theatre-curtain {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 3px, transparent 3px 26px, rgba(0,0,0,.22) 26px 30px, transparent 30px 54px),
    linear-gradient(90deg, #3d070c 0%, #7d1821 42%, #5a0e16 72%, #2c0508 100%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.65);
}
.curtain-left {
  left: 0;
  transform-origin: left center;
  animation: curtain-left 1.25s cubic-bezier(.65, 0, .25, 1) .25s forwards;
}
.curtain-right {
  right: 0;
  transform: scaleX(-1);
  transform-origin: right center;
  animation: curtain-right 1.25s cubic-bezier(.65, 0, .25, 1) .25s forwards;
}
.curtain-valance {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 74px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.3) 0 6px, transparent 6px 34px),
    linear-gradient(180deg, #4a0a10, #76151e 70%, #35060a);
  border-bottom: 2px solid var(--gold-soft);
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  animation: valance-up 1.1s ease .75s forwards;
}
.curtain-valance::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -9px;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--gold-soft) 0 8px, transparent 8px 20px);
  opacity: .8;
}
@keyframes curtain-left { to { transform: translateX(-103%); } }
@keyframes curtain-right { to { transform: scaleX(-1) translateX(-103%); } }
@keyframes valance-up { to { transform: translateY(-105%); opacity: 0; } }

.theatre-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.spot {
  position: absolute;
  top: -12%;
  width: 78%;
  height: 115%;
  background: linear-gradient(180deg, rgba(216,184,119,.20) 0%, rgba(216,184,119,.07) 45%, transparent 82%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0;
  animation: spotlight-in 1.6s ease 1.05s forwards;
}
.spot-a { left: -26%; transform: rotate(13deg); }
.spot-b { right: -26%; transform: rotate(-13deg); }
.stage-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 28% at 50% 16%, rgba(122,20,28,.16), transparent 72%),
    radial-gradient(ellipse 90% 55% at 50% 32%, rgba(216,184,119,.13), transparent 70%);
  opacity: 0;
  animation: spotlight-in 1.7s ease 1s forwards;
}
@keyframes spotlight-in { to { opacity: 1; } }

.theatre-stage {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 58px 22px 64px;
}
.theatre-inner {
  opacity: 0;
  animation: fade-up .9s ease 1.15s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.theatre-crest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 6px;
}
.theatre-crest::before,
.theatre-crest::after {
  content: '';
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.theatre-crest::after { transform: scaleX(-1); }

.theatre-title {
  margin: 26px 0 10px;
  text-align: center;
  font-size: clamp(27px, 7.2vw, 38px);
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1.5;
  color: #e8cf95;
  text-shadow: 0 0 26px rgba(216,184,119,.22);
}
.theatre-theme {
  text-align: center;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold-soft);
  line-height: 2;
}
.theatre-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px auto 30px;
  width: 78%;
}
.theatre-rule::before,
.theatre-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.theatre-rule span {
  width: 6px; height: 6px;
  border: 1px solid var(--gold-soft);
  transform: rotate(45deg);
}

.theatre-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.theatre-message {
  text-align: center;
  font-size: 16px;
  line-height: 2.15;
  letter-spacing: 2px;
  color: #ded2b9;
  margin: 0 auto;
  max-width: 420px;
}

.theatre-details {
  margin-top: 34px;
  border: 1px solid var(--gold-dim);
  background: rgba(18, 15, 12, .72);
  padding: 8px 20px;
}
.theatre-detail {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  font-size: 15px;
  letter-spacing: 1px;
}
.theatre-detail + .theatre-detail { border-top: 1px solid rgba(216,184,119,.14); }
.theatre-detail-key {
  flex: 0 0 42px;
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 3px;
}
.theatre-detail-val { color: #ece2cd; line-height: 1.7; }

.theatre-ticket {
  position: relative;
  margin-top: 34px;
  padding: 26px 22px 22px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(32,25,18,.86), rgba(14,12,10,.9));
  text-align: center;
}
.theatre-ticket::before,
.theatre-ticket::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}
.theatre-ticket::before { left: -8px; }
.theatre-ticket::after { right: -8px; }
.theatre-ticket-label {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold-soft);
}
.theatre-name {
  margin: 14px 0 4px;
  font-size: 34px;
  letter-spacing: 6px;
  color: #f0dba6;
  text-shadow: 0 0 24px rgba(216,184,119,.2);
}
.theatre-name small {
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--paper);
  margin-left: 8px;
}
.theatre-ticket-line {
  width: 60%;
  height: 1px;
  margin: 20px auto;
  border-top: 1px dashed rgba(216,184,119,.3);
}
.theatre-seat-label { font-size: 12px; letter-spacing: 4px; color: var(--gold-soft); }
.theatre-seat {
  margin-top: 8px;
  font-size: 30px;
  letter-spacing: 5px;
  color: #e8cf95;
}

.theatre-rsvp { margin-top: 34px; }
.theatre-rsvp-title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 5px;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.theatre-actions { display: flex; gap: 12px; }
.theatre-btn {
  flex: 1;
  min-height: 50px;
  border-radius: 0;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 3px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.theatre-btn:active { transform: scale(.98); }
.theatre-btn:disabled { opacity: .5; cursor: not-allowed; }
.theatre-btn-accept {
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #e3c789, #b8934f);
  color: #17110a;
}
.theatre-btn-decline {
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: #c6b28a;
}
.theatre-btn-decline:hover { background: rgba(216,184,119,.08); }

.theatre-footer {
  margin-top: 34px;
  text-align: center;
  font-size: 12px;
  line-height: 2.1;
  letter-spacing: 2px;
  color: var(--muted);
}
.theatre-footer .gold { color: var(--gold-soft); }

.theatre-center {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 3px;
}
.theatre-center h2 { color: #e8cf95; font-size: 20px; font-weight: 400; letter-spacing: 4px; margin: 0; }

.theatre-receipt { text-align: center; }
.theatre-stamp {
  width: 88px; height: 88px;
  margin: 0 auto 28px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e8cf95;
  font-size: 22px;
  letter-spacing: 3px;
  transform: rotate(-12deg);
  box-shadow: inset 0 0 0 4px rgba(216,184,119,.14), 0 0 30px rgba(216,184,119,.12);
  animation: stamp-in .55s cubic-bezier(.2, 1.5, .4, 1) .2s both;
}
.theatre-stamp.declined { border-color: #9c8870; color: #b9a98f; box-shadow: inset 0 0 0 4px rgba(185,169,143,.12); }
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(-24deg) scale(1.7); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}
.theatre-receipt-title { font-size: 22px; letter-spacing: 5px; color: #ecd7a4; margin: 0 0 12px; font-weight: 400; }
.theatre-receipt-sub { font-size: 14px; color: var(--muted); letter-spacing: 2px; line-height: 2; margin: 0 auto 30px; max-width: 380px; }
.theatre-receipt-card {
  border: 1px solid var(--gold-dim);
  background: rgba(18,15,12,.78);
  padding: 22px 18px;
  text-align: left;
}
.theatre-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  padding: 9px 0;
}
.theatre-receipt-row + .theatre-receipt-row { border-top: 1px solid rgba(216,184,119,.12); }
.theatre-receipt-row span:first-child { color: var(--gold-soft); letter-spacing: 2px; }
.theatre-receipt-row span:last-child { color: #e8dfcf; text-align: right; }
.theatre-change {
  margin-top: 26px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: #c6b28a;
  min-height: 44px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 3px;
}
.theatre-notice {
  border: 1px solid rgba(216,184,119,.35);
  background: rgba(216,184,119,.07);
  color: #e2d0a8;
  padding: 12px 14px;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
}
.theatre-preview-mark {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 60;
  border: 1px solid var(--gold-dim);
  background: rgba(10,9,8,.85);
  color: var(--gold);
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 1px;
}

@media (max-width: 420px) {
  .theatre-stage { padding: 44px 16px 54px; }
  .theatre-title { letter-spacing: 3px; }
  .theatre-name { font-size: 30px; }
  .theatre-seat { font-size: 26px; }
  .theatre-btn { letter-spacing: 1px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .theatre *, .theatre *::before, .theatre *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .curtain-panel, .curtain-valance { display: none; }
  .theatre-inner, .spot, .stage-glow, .theatre-stamp { opacity: 1; }
}
