:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff0ce;
  background: #150b2b;
  line-height: 1.4;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(0deg, #150b2b, transparent 80%), url("tv-stage.webp") center top / cover no-repeat;
}

.show {
  width: min(100%, 1120px);
  margin: auto;
  padding: 0 clamp(16px, 4vw, 44px) 42px;
}

.marquee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  isolation: isolate;
  padding-top: 12px;
}

.logo {
  grid-column: 2;
  width: clamp(170px, 32vw, 340px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 12px 20px #170724b3);
}

.cast {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
}

.cast img {
  width: 38%;
  max-width: 134px;
  height: auto;
  margin-inline: -2%;
  filter: drop-shadow(0 7px 7px #14051caa);
}

.cast img:nth-child(2) { width: 45%; z-index: 1; }
.cast img:nth-child(1) { transform: translateY(-12%); }
.cast img:nth-child(3) { transform: translateY(-6%); }

.ticket {
  position: relative;
  width: min(100%, 640px);
  margin: -3px auto 0;
  padding: clamp(18px, 4vw, 34px);
  text-align: center;
  background: linear-gradient(165deg, #44205c, #230e3c 75%);
  border: 2px solid #e8ab55;
  border-radius: 26px;
  box-shadow: inset 0 0 0 4px #f1bb6924, 0 14px 48px #10051dba;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}

fieldset { min-inline-size: 0; padding: 0; border: 0; margin: 0 0 16px; }
legend { margin: 0 auto 9px; color: #ffe1a9; font-weight: 650; }

.levels, .actions {
  display: grid;
  gap: 8px;
}
.levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.levels label { position: relative; display: grid; cursor: pointer; }
.levels input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }

.button, .levels span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px clamp(5px, 1.8vw, 14px);
  border: 2px solid #ac74c8;
  border-radius: 14px;
  background: linear-gradient(#5c307a, #402054);
  color: #fff0ce;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.button { cursor: pointer; }
button.button { width: 100%; }
.gold, .levels input:checked + span {
  background: linear-gradient(#ffe6a0, #f2a73f);
  border-color: #ffe0a0;
  color: #351535;
}

.button:hover, .levels label:hover span { border-color: #ffe3a8; }
.button:focus-visible, .levels input:focus-visible + span, summary:focus-visible {
  outline: 2px solid #fff0ce;
  outline-offset: 3px;
}
.button:disabled { opacity: .65; cursor: wait; }

.code-label { margin: 0; color: #ffe1a9; }
.code { display: block; margin: 1px 0 14px; color: #ffda84; font-size: clamp(29px, 7vw, 48px); letter-spacing: .12em; }
.room-qr { display: block; width: min(100%, 176px, 30svh); height: auto; margin: 0 auto 16px; background: #fff; border-radius: 10px; }
.invitation .logo { width: clamp(144px, 23vw, 240px); }
.invitation .ticket { max-width: 540px; }

.hint, .status { margin: 12px 0 0; font-size: .9rem; }
.status:empty { display: none; }
details { margin: 16px 0 0; color: #f0d4eb; font-size: .88rem; }
summary { cursor: pointer; }
details p { margin-bottom: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  body { background-image: linear-gradient(0deg, #150b2b, transparent 82%), url("mobile-curtains.webp"); }
  .cast img:nth-child(1) { display: none; }
  .cast img { width: 58%; max-width: 90px; margin-inline: -6%; }
  .cast img:nth-child(2) { width: 64%; }
  .levels span { font-size: clamp(.73rem, 3.3vw, 1rem); }
}

@media (max-width: 380px) {
  .cast img:nth-child(3) { display: none; }
  .cast img:nth-child(2) { width: 100%; }
  .actions { grid-template-columns: 1fr; }
}
