:root {
  --black: #11100f;
  --black-soft: #1b1917;
  --ivory: #f4efe6;
  --paper: #e8dfd2;
  --burgundy: #721f32;
  --burgundy-light: #a34c5d;
  --gold: #b89558;
  --text-dark: #171412;
  --text-light: #f7f2ea;
  --muted-dark: #756d65;
  --muted-light: #b9afa4;
  --line-dark: rgba(23, 20, 18, 0.18);
  --line-light: rgba(244, 239, 230, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text-dark);
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  min-height: 50px;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

main {
  width: 100%;
  overflow: hidden;
}

section {
  position: relative;
  width: 100%;
  padding: 74px 20px;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(36px + env(safe-area-inset-top));
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}

.finale {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(72px + env(safe-area-inset-top));
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
}

.dark-stage {
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(184, 149, 88, 0.22), transparent 26%),
    linear-gradient(180deg, #171412 0%, var(--black) 50%, #0b0a09 100%);
  color: var(--text-light);
}

.curtain,
.curtain::before,
.curtain::after,
.spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.curtain {
  z-index: -2;
  opacity: 0.92;
}

.curtain::before,
.curtain::after {
  content: "";
  width: 31%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 22%, rgba(0, 0, 0, 0.2) 48%, transparent 72%),
    repeating-linear-gradient(90deg, #3a111b 0 18px, #5f1a2a 18px 36px, #2a0d15 36px 54px);
}

.curtain::before {
  right: auto;
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.45);
}

.curtain::after {
  left: auto;
  transform: scaleX(-1);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.45);
}

.spotlight {
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(244, 239, 230, 0.24), rgba(244, 239, 230, 0.06) 28%, transparent 57%),
    linear-gradient(100deg, transparent 24%, rgba(244, 239, 230, 0.08) 49%, transparent 72%);
  mix-blend-mode: screen;
  animation: spotlightDrift 7s ease-in-out infinite alternate;
}

.stage-inner,
.content-narrow,
.content-wide {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  margin: 0 auto;
}

.content-narrow {
  max-width: 560px;
}

.content-wide {
  max-width: 680px;
}

.paper-section {
  background:
    linear-gradient(90deg, rgba(114, 31, 50, 0.04), transparent 16%, transparent 84%, rgba(114, 31, 50, 0.04)),
    radial-gradient(circle at 18% 12%, rgba(184, 149, 88, 0.11), transparent 26%),
    var(--ivory);
}

.paper-section:nth-of-type(3),
.paper-section:nth-of-type(7) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%),
    repeating-linear-gradient(0deg, rgba(23, 20, 18, 0.025) 0 1px, transparent 1px 8px),
    var(--paper);
}

.kicker {
  margin: 0 0 18px;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.paper-section .kicker {
  color: var(--burgundy);
}

.hero-title,
.section-title,
.intermission-title,
.final-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: 58px;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.15;
}

.hero-deck {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--text-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.32;
}

.hero-note {
  max-width: 360px;
  margin: 24px 0 34px;
  color: var(--muted-light);
  font-size: 15px;
}

.section-title {
  color: var(--text-dark);
  font-size: 34px;
}

.copy {
  margin-top: 28px;
  color: var(--text-dark);
}

.copy p {
  margin: 0 0 18px;
}

.copy p:last-child {
  margin-bottom: 0;
}

.large-line {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.28;
}

.ticket-wrap {
  width: min(100%, 360px);
}

.ticket {
  position: relative;
  color: var(--text-dark);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.42));
}

.ticket-part {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent 34%),
    var(--paper);
  border: 1px solid rgba(232, 223, 210, 0.5);
  transition:
    transform 0.75s ease,
    opacity 0.45s ease;
}

.ticket-part::before,
.ticket-part::after {
  content: "";
  position: absolute;
  top: calc(100% - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--black);
}

.ticket-top {
  padding: 24px 24px 18px;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.ticket-bottom {
  padding: 20px 24px 24px;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.ticket-bottom::before,
.ticket-bottom::after {
  top: -10px;
}

.ticket-part::before {
  left: -11px;
}

.ticket-part::after {
  right: -11px;
}

.ticket-label {
  margin: 0 0 18px;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ticket-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.ticket-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 8px;
}

.ticket-list dt,
.ticket-list dd {
  margin: 0;
}

.ticket-list dt {
  color: var(--muted-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ticket-list dd {
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.ticket-perforation {
  height: 14px;
  background:
    radial-gradient(circle, rgba(17, 16, 15, 0.72) 0 2px, transparent 3px) 0 50% / 14px 8px repeat-x,
    var(--paper);
}

.ticket-button,
.down-link,
.interaction button,
.director-note button {
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.ticket-button {
  width: 100%;
  margin-top: 22px;
  background: var(--burgundy);
  color: var(--text-light);
  border-color: var(--burgundy);
}

.ticket-button:hover,
.interaction button:hover,
.director-note button:hover,
.down-link:hover {
  transform: translateY(-2px);
}

.ticket.is-open .ticket-top {
  transform: translateY(-8px) rotate(-1.3deg);
}

.ticket.is-open .ticket-bottom {
  transform: translateY(30px) rotate(1deg);
}

.ticket.is-open .ticket-button {
  opacity: 0.45;
}

.ticket-message {
  min-height: 28px;
  margin: 46px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.ticket-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.down-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 174px;
  margin-top: 36px;
  padding: 0 20px;
  color: var(--burgundy);
}

.down-link span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}

.editorial-grid {
  display: grid;
  gap: 18px;
}

.fact-mark {
  width: 100%;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(114, 31, 50, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ruled-copy {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 20px 0 2px;
}

.burgundy-quote,
.quiet-quote {
  margin: 28px 0 0;
  padding: 22px;
  border-left: 4px solid var(--burgundy);
  background: rgba(114, 31, 50, 0.07);
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.36;
}

.interaction {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.interaction h3,
.interaction-title {
  margin: 0 0 16px;
  color: var(--text-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.choice-helper {
  margin: 0 0 14px;
  color: var(--muted-dark);
}

.choice-helper .crossed {
  color: var(--text-dark);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--burgundy);
}

.line-buttons {
  display: grid;
  gap: 8px;
}

.line-buttons button,
.final-buttons button,
.monologue-box button,
.director-note button {
  width: 100%;
  padding: 0 18px;
  text-align: left;
}

.line-buttons button {
  justify-content: flex-start;
  border-width: 0 0 1px;
  border-radius: 0;
  color: var(--text-dark);
}

.line-buttons button[aria-pressed="true"] {
  color: var(--burgundy);
  background: rgba(114, 31, 50, 0.07);
}

.reaction {
  min-height: 0;
  margin-top: 18px;
  color: var(--text-dark);
}

.reaction.is-visible {
  min-height: 92px;
}

.reaction strong {
  display: block;
  margin-bottom: 6px;
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.reaction .mini-stamp {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 32px 0;
  padding: 8px 0 8px 30px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: var(--burgundy);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -27px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  background: var(--paper);
}

.timeline time {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.timeline span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.25;
}

.aside-note,
.legal-joke,
.signature-note {
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-size: 15px;
}

.intermission {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.18)),
    var(--burgundy);
  color: var(--text-light);
}

.intermission .kicker {
  color: var(--gold);
}

.intermission-title {
  color: var(--text-light);
  font-size: 37px;
}

.slider-panel {
  margin-top: 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-light);
}

.slider-panel label {
  display: block;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}

.range-captions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.35;
}

.range-captions span:last-child {
  text-align: right;
}

#seriousnessValue {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.light-link {
  color: var(--text-light);
}

.light-reaction,
.dark-reaction {
  color: var(--text-light);
}

.light-reaction strong,
.dark-reaction strong {
  color: var(--gold);
}

.script-block {
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.script-block p {
  margin: 0 0 16px;
}

.script-block p:last-child {
  margin-bottom: 0;
}

.script-block strong {
  display: inline-block;
  color: var(--burgundy);
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quiet-quote {
  border-left-color: var(--gold);
  background: rgba(184, 149, 88, 0.12);
  color: var(--text-dark);
}

.monologue-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.monologue-lines li {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.monologue-lines li.visible {
  opacity: 1;
  transform: translateY(0);
}

.document-frame {
  margin-top: 30px;
  padding: 24px;
  border: 2px solid var(--text-dark);
  outline: 1px solid var(--line-dark);
  outline-offset: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.document-frame > p {
  margin: 0 0 18px;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.document-frame dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.document-frame div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 8px;
}

.document-frame dt,
.document-frame dd {
  margin: 0;
}

.document-frame dt {
  color: var(--muted-dark);
}

.document-frame dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin: 28px 0 0;
  border: 2px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

.big-quote {
  height: 60px;
  color: rgba(114, 31, 50, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 110px;
  line-height: 0.8;
}

.review-copy {
  border-left: 1px solid var(--line-dark);
  padding-left: 18px;
}

.signature {
  margin: 28px 0 0;
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1.2;
}

.final-title {
  color: var(--text-light);
  font-size: 44px;
}

.final-title #endedWordFinal {
  position: relative;
  display: inline-block;
}

.final-title #endedWordFinal::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s ease;
}

.final-title #continuationFinal {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease 0.15s,
    transform 0.55s ease 0.15s;
}

.finale.title-changed #endedWordFinal::after {
  transform: scaleX(1);
}

.finale.title-changed #continuationFinal {
  opacity: 1;
  transform: translateY(0);
}

.final-copy {
  color: var(--text-light);
}

.final-reactions {
  border-color: var(--line-light);
}

.final-reactions h3 {
  color: var(--text-light);
}

.final-buttons {
  display: grid;
  gap: 10px;
}

.final-buttons button {
  color: var(--text-light);
}

.final-buttons button[aria-pressed="true"] {
  background: var(--text-light);
  color: var(--black);
}

.seat-area {
  margin-top: 54px;
  text-align: center;
}

.seat-number {
  min-height: 50px;
  padding: 0 12px;
  border: 1px solid rgba(184, 149, 88, 0.42);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.director-note {
  display: none;
  margin-top: 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-light);
  text-align: left;
}

.director-note.visible {
  display: block;
}

.director-note h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.director-note p {
  margin: 0 0 16px;
  color: var(--text-light);
}

.director-note button {
  color: var(--text-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spotlightDrift {
  from {
    transform: translateX(-1.5%);
  }

  to {
    transform: translateX(1.5%);
  }
}

@media (min-width: 700px) {
  section {
    padding: 96px 32px;
  }

  .hero,
  .finale {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-title {
    font-size: 78px;
  }

  .hero-subtitle {
    font-size: 31px;
  }

  .section-title {
    font-size: 43px;
  }

  .final-title {
    font-size: 57px;
  }

  .editorial-grid {
    grid-template-columns: 170px 1fr;
    gap: 28px;
    align-items: start;
  }

  .fact-mark {
    border-right: 1px solid var(--line-dark);
    border-bottom: 0;
    padding: 8px 20px 0 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }
}

@media (max-width: 380px) {
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: 47px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .hero-deck {
    margin-top: 12px;
    font-size: 18px;
  }

  .hero-note {
    margin: 16px 0 22px;
    font-size: 14px;
  }

  .section-title,
  .intermission-title {
    font-size: 30px;
  }

  .final-title {
    font-size: 38px;
  }

  .ticket-part {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ticket-top {
    padding-top: 17px;
    padding-bottom: 12px;
  }

  .ticket-bottom {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .ticket-label {
    margin-bottom: 12px;
  }

  .ticket-list {
    gap: 6px;
  }

  .ticket-list div {
    padding-bottom: 6px;
  }

  .ticket-list dd {
    font-size: 16px;
  }

  .ticket-button {
    margin-top: 16px;
  }

  .timeline li {
    grid-template-columns: 66px 1fr;
    gap: 12px;
  }

  .document-frame {
    padding: 20px 16px;
  }

  .document-frame div {
    grid-template-columns: 78px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ticket.is-open .ticket-top,
  .ticket.is-open .ticket-bottom {
    transform: none;
  }
}
