:root {
  --ink: #2f2923;
  --muted: #7b6b5b;
  --paper: #f4ece2;
  --paper-deep: #eadfce;
  --gold: #aa7f43;
  --brown: #4b3022;
  --black: #0c0b09;
  --line: rgba(85, 61, 39, 0.22);
  --shadow: 0 22px 60px rgba(26, 18, 12, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #17120e;
  font-family: "Apple SD Gothic Neo", "Noto Serif KR", "Malgun Gothic", serif;
  line-height: 1.75;
}

body.gallery-open {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.bgm-toggle {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid rgba(221, 179, 116, 0.42);
  border-radius: 50%;
  color: #f7dfb9;
  background: rgba(20, 15, 11, 0.86);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.bgm-toggle::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(247, 223, 185, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.bgm-toggle[aria-pressed="true"] {
  color: #2f2923;
  background: rgba(244, 225, 190, 0.88);
  border-color: rgba(170, 127, 67, 0.72);
}

.bgm-toggle[aria-pressed="false"] .bgm-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 22px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-42deg);
  transform-origin: center;
}

.bgm-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
}

.invitation {
  width: min(100%, 430px);
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), transparent 34rem),
    linear-gradient(180deg, #f8f0e7 0%, #efe2d0 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

section {
  position: relative;
  padding: 72px 30px;
  text-align: center;
}

.chapter-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.chapter-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.chapter-reveal.reveal-complete {
  will-change: auto;
}

.chapter-reveal .section-heading,
.chapter-reveal .cinema-screen,
.chapter-reveal .ticket,
.chapter-reveal .gallery-grid,
.chapter-reveal form {
  transform: translateY(14px);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-reveal.is-visible .section-heading,
.chapter-reveal.is-visible .cinema-screen,
.chapter-reveal.is-visible .ticket,
.chapter-reveal.is-visible .gallery-grid,
.chapter-reveal.is-visible form {
  transform: translateY(0);
}

.section-dark {
  color: #f4d7a5;
  background: var(--black);
}

.hero {
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4svh, 42px) 28px clamp(12px, 3svh, 34px);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.045) 42px 43px),
    radial-gradient(ellipse at center bottom, rgba(120, 43, 25, 0.62), transparent 43%),
    #050403;
}

.stage-light {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 18% 38%, rgba(255, 185, 91, 0.45), transparent 7%),
    radial-gradient(ellipse at 82% 38%, rgba(255, 185, 91, 0.45), transparent 7%),
    linear-gradient(75deg, transparent 0 24%, rgba(128, 25, 19, 0.42) 27% 32%, transparent 35%),
    linear-gradient(105deg, transparent 0 68%, rgba(128, 25, 19, 0.42) 71% 76%, transparent 79%);
  filter: blur(2px);
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 74px;
  z-index: -2;
  opacity: 0.88;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent),
    repeating-linear-gradient(90deg, #210807 0 10px, #5a1813 10px 21px, #110403 21px 28px);
}

.curtain-left {
  left: 0;
}

.curtain-right {
  right: 0;
  transform: scaleX(-1);
}

.hero-inner {
  width: 100%;
  max-height: 100%;
  animation: rise-in 900ms ease both;
}

.eyebrow,
.section-heading h2,
.section-heading p,
.ticket dt,
.ticket-info dt,
.cast article p,
.detail-block h3,
.ticket-office h2,
.reservation h2,
.ending h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 clamp(1px, 0.5svh, 3px);
  font-size: clamp(10px, 1.7svh, 13px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 0 0 clamp(12px, 3.2svh, 34px);
  color: #ddb374;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 4.6svh, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.ticket {
  position: relative;
  width: min(100%, 290px, 47svh);
  margin: 0 auto;
  padding: clamp(18px, 4.1svh, 36px) clamp(18px, 3.2svh, 28px) clamp(16px, 3.2svh, 28px);
  color: #2e2923;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 18%),
    linear-gradient(145deg, #fff7e9, #ead8bd);
  border: 1px solid #d0ae78;
  box-shadow: var(--shadow);
  clip-path: polygon(
    0 9%, 7% 9%, 7% 0, 93% 0, 93% 9%, 100% 9%,
    100% 91%, 93% 91%, 93% 100%, 7% 100%, 7% 91%, 0 91%
  );
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(170, 127, 67, 0.45);
  pointer-events: none;
}

.admit {
  margin-bottom: clamp(8px, 2svh, 18px);
  color: #704d28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 1.8svh, 14px);
  letter-spacing: 0.07em;
}

.ticket h2 {
  margin-bottom: clamp(8px, 1.8svh, 16px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3.8svh, 29px);
  line-height: 1.25;
}

.divider,
.thin-line {
  width: 18px;
  height: 1px;
  margin: clamp(8px, 1.8svh, 18px) auto;
  background: var(--gold);
}

.ticket-names {
  margin: 0 0 clamp(8px, 1.8svh, 18px);
}

.ticket dt {
  color: var(--muted);
  font-size: clamp(9px, 1.45svh, 11px);
}

.ticket dd {
  margin: 0 0 clamp(3px, 0.8svh, 8px);
  font-size: clamp(14px, 2.3svh, 18px);
  font-weight: 700;
}

.ticket-info {
  margin: clamp(8px, 1.8svh, 18px) 0 clamp(8px, 2svh, 20px);
  text-align: left;
  border-top: 1px dashed rgba(96, 73, 49, 0.36);
}

.ticket-info div {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 8px;
  padding: clamp(4px, 1svh, 8px) 0;
  border-bottom: 1px dashed rgba(96, 73, 49, 0.36);
}

.ticket-info dt,
.ticket-info dd {
  margin: 0;
  font-size: clamp(10px, 1.6svh, 13px);
}

.barcode {
  height: clamp(22px, 4svh, 38px);
  margin: 0 auto;
  background: repeating-linear-gradient(90deg, #211a14 0 2px, transparent 2px 5px, #211a14 5px 7px, transparent 7px 10px);
}

.enter-link {
  display: inline-grid;
  gap: clamp(2px, 0.8svh, 8px);
  margin-top: clamp(12px, 3.8svh, 44px);
  color: #d8b276;
  font-size: clamp(11px, 1.9svh, 14px);
  line-height: 1.3;
}

.enter-link span {
  font-size: clamp(22px, 4.2svh, 32px);
  line-height: 1;
  animation: float-up 1.4s ease-in-out infinite;
}

.screen-poster {
  min-height: 610px;
  height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: clamp(64px, 10svh, 92px) 18px 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(218, 177, 112, 0.2), transparent 31%),
    radial-gradient(ellipse at 50% 100%, rgba(80, 20, 17, 0.58), transparent 48%),
    linear-gradient(180deg, #050403 0%, #0c0705 48%, #030202 100%);
}

.screen-poster::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.screen-poster::before {
  left: 50%;
  top: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 22% 78%, rgba(0, 0, 0, 0.78)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px),
    linear-gradient(76deg, transparent 0 18%, rgba(115, 20, 16, 0.28) 27%, transparent 39%),
    linear-gradient(104deg, transparent 0 61%, rgba(115, 20, 16, 0.26) 73%, transparent 86%);
}

.theater-stage {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.theater-stage::before,
.theater-stage::after {
  content: "";
  position: absolute;
  top: 0;
  width: 52px;
  height: 100%;
  opacity: 0.74;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent),
    repeating-linear-gradient(90deg, #160504 0 8px, #44120f 8px 17px, #0b0302 17px 24px);
}

.theater-stage::before {
  left: 0;
}

.theater-stage::after {
  right: 0;
  transform: scaleX(-1);
}

.wall-sconce {
  position: absolute;
  top: 33%;
  width: 6px;
  height: 48px;
  border-radius: 999px;
  background: #f7cf8d;
  box-shadow:
    0 0 18px 7px rgba(246, 178, 91, 0.58),
    0 0 52px 24px rgba(155, 68, 31, 0.28);
}

.wall-sconce.left {
  left: 31px;
}

.wall-sconce.right {
  right: 31px;
}

.light-beam {
  position: absolute;
  top: 15%;
  width: 54%;
  height: 54%;
  opacity: 0.36;
  mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(245, 203, 144, 0.24), transparent 72%);
  clip-path: polygon(48% 0, 100% 100%, 0 100%);
}

.light-beam.left {
  left: -20%;
  transform: rotate(16deg);
}

.light-beam.right {
  right: -20%;
  transform: rotate(-16deg);
}

.cinema-screen-wrap {
  position: relative;
  z-index: 3;
  align-self: start;
  width: min(100%, 372px);
  margin: 0 auto;
  padding-top: clamp(18px, 4svh, 36px);
}

.screen-glow {
  position: absolute;
  left: 50%;
  top: calc(100% - 20px);
  width: 76%;
  height: 120px;
  transform: translateX(-50%) perspective(260px) rotateX(62deg);
  transform-origin: top center;
  border-radius: 50%;
  background: radial-gradient(ellipse at center top, rgba(236, 201, 150, 0.32), transparent 68%);
  pointer-events: none;
}

.theater-floor {
  position: relative;
  z-index: 2;
  width: calc(100% + 36px);
  height: clamp(285px, 39svh, 360px);
  margin: 0 -18px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 14px;
  padding: 0 9px clamp(18px, 2.5svh, 28px);
  transform: perspective(520px) rotateX(18deg);
  transform-origin: bottom center;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(217, 149, 76, 0.13) 49% 51%, transparent 58%),
    radial-gradient(ellipse at 50% 90%, rgba(10, 4, 3, 0.98) 0 24%, transparent 25%),
    linear-gradient(180deg, rgba(18, 7, 5, 0.12), rgba(3, 2, 2, 0.96) 64%);
}

.theater-floor::before {
  content: "";
  position: absolute;
  inset: 10% 0 -6%;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(0, 0, 0, 0.74) 45% 55%, transparent 62%),
    repeating-linear-gradient(0deg, rgba(92, 24, 19, 0.1) 0 18px, rgba(0, 0, 0, 0.28) 18px 24px);
}

.seat-row {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.7));
}

.seat-row span {
  position: relative;
  display: block;
  width: var(--seat-width);
  height: var(--seat-height);
  margin-inline: var(--seat-gap);
  border: 1px solid rgba(174, 63, 47, 0.24);
  border-radius: 16px 16px 6px 6px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(209, 73, 54, 0.32), transparent 42%),
    linear-gradient(180deg, #41100d 0%, #1c0706 62%, #090303 100%);
  box-shadow:
    inset 0 5px 8px rgba(227, 103, 72, 0.17),
    inset 0 -10px 12px rgba(0, 0, 0, 0.58);
}

.seat-row span::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: -18%;
  height: 38%;
  border-radius: 6px 6px 14px 14px;
  background: linear-gradient(180deg, #3a0d0b, #070202);
  box-shadow: inset 0 4px 8px rgba(185, 54, 38, 0.14);
}

.row-back {
  --seat-width: 34px;
  --seat-height: 28px;
  --seat-gap: 4px;
  opacity: 0.7;
}

.row-mid {
  --seat-width: 48px;
  --seat-height: 39px;
  --seat-gap: 5px;
  opacity: 0.86;
}

.row-front {
  --seat-width: 68px;
  --seat-height: 55px;
  --seat-gap: 7px;
  opacity: 1;
}

.aisle-light {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26%;
  height: 76%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(224, 146, 67, 0.16), rgba(0, 0, 0, 0.92));
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  opacity: 0.54;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cinema-screen {
  position: relative;
  z-index: 2;
  width: min(100%, 340px);
  min-height: clamp(154px, 24svh, 200px);
  margin: 0 auto;
  display: grid;
  place-content: center;
  padding: 30px 28px;
  color: #fff5df;
  background:
    radial-gradient(ellipse at center, rgba(247, 218, 168, 0.6), transparent 61%),
    linear-gradient(145deg, #88785d 0%, #5b4c3c 55%, #2a2119 100%);
  border: 1px solid rgba(239, 207, 154, 0.24);
  border-radius: 2px;
  box-shadow:
    inset 0 0 52px rgba(255, 235, 197, 0.18),
    0 24px 48px rgba(0, 0, 0, 0.72),
    0 0 90px rgba(196, 137, 72, 0.18);
}

.cinema-screen::before {
  content: "";
  position: absolute;
  inset: -14px -18px;
  z-index: -1;
  border: 1px solid rgba(245, 216, 169, 0.1);
  background:
    linear-gradient(180deg, rgba(10, 7, 5, 0.28), rgba(0, 0, 0, 0.62)),
    radial-gradient(ellipse at center, rgba(255, 231, 187, 0.08), transparent 70%);
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.05),
    0 18px 34px rgba(0, 0, 0, 0.64);
}

.cinema-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -64px;
  width: 72%;
  height: 54px;
  transform: translateX(-50%) perspective(180px) rotateX(58deg);
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(85, 24, 19, 0.36), rgba(5, 3, 2, 0));
  filter: blur(2px);
}

.cinema-screen p,
.cinema-screen span {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.screen-poster .cinema-screen p,
.screen-poster .cinema-screen h2,
.screen-poster .cinema-screen span {
  opacity: 1;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.cinema-screen h2 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 17px;
}

.section-heading h2,
.cast > h2 {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 500;
}

.section-heading span {
  color: var(--gold);
  font-size: 16px;
}

.opening {
  padding-bottom: 24px;
}

.opening-copy,
.plot p,
.ending p {
  margin-bottom: 22px;
  font-size: 16px;
}

.opening-copy.small {
  font-size: 15px;
}

.script-title {
  margin: 38px 0 28px;
  color: #b68145;
  font-family: "Snell Roundhand", "Brush Script MT", cursive;
  font-size: 32px;
  line-height: 1.2;
  transform: rotate(-7deg);
}

.film-strip {
  width: calc(100% + 60px);
  height: 216px;
  margin: 20px -30px -10px;
  padding: 18px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background:
    repeating-linear-gradient(90deg, #221911 0 12px, #f7eadb 12px 20px, #221911 20px 34px),
    #221911;
  transform: rotate(7deg) translateY(12px);
}

.frame {
  display: block;
  min-height: 78px;
  border: 2px solid #0f0c0a;
  background-size: cover;
  background-position: center;
}

.plot {
  background:
    radial-gradient(circle at 50% 100%, rgba(116, 88, 55, 0.24), transparent 32%),
    var(--paper);
}

.still-life {
  margin: 52px 0 0;
  min-height: 430px;
  position: relative;
  border-radius: 2px;
  background: url("assets/photos/NT0513_7091.jpg") center / cover no-repeat;
  box-shadow: inset 0 -110px 90px rgba(35, 24, 16, 0.26);
}

.still-life::before {
  content: none;
}

.photo-stack {
  display: none;
}

.polaroid {
  position: absolute;
  padding: 10px 10px 36px;
  background: #fbf4e8;
  box-shadow: 0 18px 36px rgba(56, 38, 22, 0.25);
}

.polaroid-main {
  left: 55px;
  top: 28px;
  width: 172px;
  transform: rotate(-14deg);
}

.polaroid-small {
  right: 34px;
  top: 4px;
  width: 126px;
  transform: rotate(13deg);
}

.photo-art {
  aspect-ratio: 1 / 1.1;
}

.still-life figcaption {
  display: none;
  margin-top: 10px;
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.07em;
}

.cast {
  background: linear-gradient(180deg, #f7efe5, #efe0cf);
}

.cast-cards {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: end;
  gap: 8px;
  margin-bottom: 58px;
}

.cast-cards article {
  min-width: 0;
}

.portrait {
  aspect-ratio: 0.82;
  border-radius: 26px 26px 8px 8px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(60, 43, 27, 0.2);
}

.cast article p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cast article h3 {
  margin: 0;
  font-size: 18px;
}

.cast-cards strong {
  color: var(--gold);
  padding-bottom: 34px;
}

.parents {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 22px;
  font-size: 13px;
}

.parents dl,
.parents dd {
  margin: 0;
}

.parents dt {
  margin-bottom: 12px;
  font-weight: 700;
}

.details {
  background: #f4eadf;
}

.date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.countdown-panel {
  margin-top: 22px;
  padding: 18px 12px 16px;
  border-block: 1px solid rgba(96, 73, 49, 0.16);
}

.countdown-caption {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-item {
  display: grid;
  gap: 6px;
  place-items: center;
  min-width: 0;
}

.countdown-item strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 7vw, 30px);
  line-height: 1;
}

.countdown-item span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-block {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.detail-block p,
.detail-block h3 {
  margin: 0;
}

.detail-block h3 {
  color: var(--muted);
  font-size: 13px;
}

.detail-block strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.detail-block span {
  display: block;
  font-size: 14px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.quick-actions a {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.quick-actions span {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 18px;
}

.quick-actions img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
}

.map-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  margin-top: 24px;
  border: 1px solid rgba(96, 73, 49, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #eee5d8;
}

.map-canvas,
.map-fallback {
  width: 100%;
  height: 100%;
}

.map-fallback {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.75;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.82), rgba(246, 237, 224, 0.92)),
    linear-gradient(35deg, transparent 0 43%, rgba(138, 119, 96, 0.18) 43% 47%, transparent 47%),
    linear-gradient(120deg, transparent 0 35%, rgba(138, 119, 96, 0.14) 35% 39%, transparent 39%),
    repeating-linear-gradient(0deg, #eee5d8 0 16px, #e6ddcf 16px 17px);
}

.map-fallback strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.map-fallback a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 18px;
  color: #fffaf2;
  background: #2f2923;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 41, 35, 0.16);
}

.map-canvas.is-hidden,
.map-fallback.is-hidden {
  display: none;
}

address {
  margin-top: 18px;
  font-style: normal;
  font-size: 13px;
}

.transport {
  margin: 26px 0 0;
  padding: 0;
  text-align: left;
  list-style: none;
  font-size: 13px;
}

.transport li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding: 10px 0;
}

.transport span {
  line-height: 1.65;
}

.gallery {
  background: linear-gradient(180deg, #f3e8dc, #eadbc9);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 28px;
}

.gallery-item {
  min-height: 118px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background-color: #d8c6b3;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.outline-button {
  width: min(100%, 280px);
  min-height: 52px;
  border: 1px solid rgba(103, 72, 43, 0.42);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.ticket-office,
.reservation {
  background: #f4eadf;
}

.account-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.account-ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 14px;
  align-items: center;
  padding: 24px 18px;
  text-align: left;
  background: #fff4e3;
  border: 1px solid #d4b586;
  clip-path: polygon(
    0 12%, 7% 12%, 7% 0, 93% 0, 93% 12%, 100% 12%,
    100% 88%, 93% 88%, 93% 100%, 7% 100%, 7% 88%, 0 88%
  );
}

.account-ticket::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  right: 82px;
  border-left: 1px dashed #d4b586;
}

.account-ticket span,
.account-ticket em {
  display: block;
  font-style: normal;
  font-size: 13px;
}

.account-ticket strong {
  display: block;
  margin: 5px 0;
  font-size: 15px;
}

.account-ticket button {
  position: relative;
  z-index: 1;
  border: 0;
  color: var(--brown);
  background: transparent;
  cursor: pointer;
}

.notice {
  margin: 28px 0 0;
  font-size: 14px;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.hidden {
  display: none;
}

.attendance-toggle {
  display: grid;
  gap: 12px;
}

.attendance-toggle input {
  position: absolute;
  opacity: 0;
}

.attendance-toggle span,
.submit-button {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(63, 48, 36, 0.16);
  border-radius: 5px;
  cursor: pointer;
}

.attendance-toggle input:checked + span,
.submit-button {
  color: #fffaf1;
  background: #2d2924;
  box-shadow: 0 10px 18px rgba(35, 27, 21, 0.14);
}

.field-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-size: 13px;
}

.field-row input,
.field-row select {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(88, 66, 46, 0.28);
  color: var(--ink);
  background: transparent;
  outline: none;
}

.field-row input:focus,
.field-row select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.submit-button {
  margin-top: 14px;
  border: 0;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ending {
  min-height: 610px;
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(246, 235, 222, 1), rgba(246, 235, 222, 0.65) 68%, rgba(50, 38, 28, 0.14)),
    #f4eadf;
}

.ending .script-title {
  transform: rotate(-5deg);
}

.ending-photo {
  height: 191px;
  margin: 42px -30px 0;
  background-position: center bottom;
  background-size: cover;
}

.ending strong {
  display: block;
  margin-top: -30px;
  padding-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.15em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translateX(-50%) translateY(24px);
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(35, 31, 27, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: 240ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.thanks-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(173, 126, 68, 0.18), transparent 40%),
    var(--paper);
}

.thanks-card {
  width: min(100%, 360px);
  padding: 54px 28px;
  border: 1px solid rgba(109, 83, 55, 0.18);
  border-radius: 8px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 18px 40px rgba(61, 45, 31, 0.12);
}

.thanks-card h1 {
  margin: 12px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.thanks-card p:last-of-type {
  margin-bottom: 30px;
  line-height: 1.9;
}

.gallery-dialog {
  width: min(92vw, 410px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #f8efe3;
  background: #15110d;
  overscroll-behavior: contain;
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
}

.dialog-photo {
  position: relative;
  aspect-ratio: 0.76;
  cursor: grab;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
}

.dialog-photo.is-dragging {
  cursor: grabbing;
}

.dialog-track {
  height: 100%;
  display: flex;
  transform: translateX(calc(-1 * var(--gallery-index, 0) * 100% + var(--drag-x, 0px)));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.dialog-photo.is-dragging .dialog-track {
  transition: none;
}

.dialog-slide {
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #15110d;
}

.dialog-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.dialog-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.dialog-controls button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: transparent;
}

.couple-standing {
  background-image: url("assets/photos/NT0513_5579.jpg");
  background-position: center 38%;
}

.hands {
  background-image: url("assets/photos/NT0513_7363.jpg");
  background-position: center 36%;
}

.bride-groom {
  background-image: url("assets/photos/NT0513_7208.jpg");
  background-position: center 48%;
}

.bouquet {
  background-image: url("assets/photos/NT0513_6657.jpg");
  background-position: center 42%;
}

.couple-back {
  background-image: url("assets/photos/NT0513_7547.jpg");
  background-position: center 45%;
}

.couple-seated {
  background-image: url("assets/photos/NT0513_6187.jpg");
  background-position: center 42%;
}

.table-scene {
  background-image: url("assets/photos/NT0513_7965.jpg");
}

.silhouette {
  background-image: url("assets/photos/NT0513_7942.jpg");
}

.groom {
  background-image: url("assets/photos/NT0513_7743.jpg");
  background-position: center 26%;
  background-size: cover;
}

.bride {
  background-image: url("assets/photos/NT0513_7168.jpg");
  background-position: center 28%;
  background-size: cover;
}

.ending-photo.couple-back {
  background-image: url("assets/photos/NT0513_8235.jpg");
  background-position: center 36%;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-up {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 360px) {
  section {
    padding-inline: 22px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .ticket {
    padding-inline: 22px;
  }

  .quick-actions {
    gap: 6px;
  }

  .quick-actions span {
    width: 42px;
  }

  .field-row {
    grid-template-columns: 82px 1fr;
  }

  .screen-poster {
    padding-inline: 14px;
  }

  .theater-floor {
    width: calc(100% + 28px);
    margin-inline: -14px;
  }

  .row-front {
    --seat-width: 60px;
    --seat-gap: 5px;
  }
}

@media (max-height: 560px) {
  .hero {
    padding: 8px 22px;
  }

  .hero h1 {
    margin-bottom: 7px;
    font-size: 22px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .ticket {
    width: min(100%, 230px, 48svh);
    padding: 14px 16px 13px;
  }

  .ticket::before {
    inset: 7px;
  }

  .admit {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .ticket h2 {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 1.14;
  }

  .divider,
  .thin-line {
    margin: 5px auto;
  }

  .ticket-names {
    margin-bottom: 5px;
  }

  .ticket dt {
    font-size: 8px;
  }

  .ticket dd {
    margin-bottom: 1px;
    font-size: 12px;
    line-height: 1.25;
  }

  .ticket-info {
    margin: 5px 0 7px;
  }

  .ticket-info div {
    grid-template-columns: 52px 1fr;
    padding: 2px 0;
  }

  .ticket-info dt,
  .ticket-info dd {
    font-size: 9px;
  }

  .barcode {
    height: 16px;
  }

  .enter-link {
    gap: 0;
    margin-top: 8px;
    font-size: 10px;
  }

  .enter-link span {
    font-size: 18px;
  }

  .screen-poster {
    min-height: 540px;
    padding-top: 42px;
  }

  .cinema-screen {
    min-height: 132px;
  }

  .cinema-screen h2 {
    font-size: 28px;
  }

  .theater-floor {
    height: 250px;
    gap: 10px;
  }

  .row-back {
    --seat-width: 30px;
    --seat-height: 23px;
  }

  .row-mid {
    --seat-width: 42px;
    --seat-height: 33px;
  }

  .row-front {
    --seat-width: 58px;
    --seat-height: 46px;
  }
}

@media (max-height: 430px) {
  .hero-inner {
    animation: none;
    transform: scale(0.78);
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-inner,
  .enter-link span {
    animation: none;
  }

  .chapter-reveal,
  .chapter-reveal .section-heading,
  .chapter-reveal .cinema-screen,
  .chapter-reveal .ticket,
  .chapter-reveal .gallery-grid,
  .chapter-reveal form {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
