/* ==========================================================================
   이거, 맞을까 — K-Drama Dream variant
   Tokens from Figma frame "Mobile KO · K-Drama Dream" (156:93).
   Same DOM contract as the other sites — only the skin changes.
   ========================================================================== */
:root {
  --mauve: #5D4560;
  --mauve-soft: #A8879E;
  --peach: #F5CBA8;
  --pink: #E3BFC7;
  --lav: #C9B6D9;
  --bg: #FBF4F6;
  --glass: rgba(255, 255, 255, 0.75);

  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-full: 9999px;

  --font-title: 'Jua', sans-serif;
  --font-brush: 'Nanum Brush Script', cursive;
  --font-body: 'Gowun Dodum', sans-serif;
  --font-label: 'IBM Plex Sans KR', -apple-system, sans-serif;

  --dream-shadow: 0 8px 24px rgba(168, 135, 158, 0.25);
  --ease-dream: cubic-bezier(0.05, 0.7, 0.1, 1);

  --space-md: 20px;
  --space-lg: 24px;
  --section-pad: 26px;

  --content-max: 480px;
  --touch-min: 44px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  max-width: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--mauve);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.stage-rule {
  display: none;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin: 0;
}

.caption-en {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  text-align: center;
  margin: 0 0 6px;
}

.heading-20 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--mauve);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: box-shadow 200ms var(--ease-dream), transform 200ms var(--ease-dream);
}

.btn-primary {
  min-height: 50px;
  padding: 0 24px;
  background: linear-gradient(90deg, var(--mauve-soft), var(--pink));
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 16px;
  box-shadow: var(--dream-shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(201, 182, 217, 0.45);
  color: var(--mauve);
  font-size: 13px;
}

.btn-secondary:hover {
  box-shadow: var(--dream-shadow);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--mauve-soft);
  outline-offset: 2px;
}

/* ==========================================================================
   Language toggle
   ========================================================================== */
/* Offset scales with viewport width so the pill sits in the clear band
   between the poster's baked tagline and title. */
.site-toggle {
  position: fixed;
  top: clamp(40px, 13.5vw, 60px);
  right: 14px;
  z-index: 50;
}

.toggle-pill {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  border-radius: var(--r-full);
  padding: 2px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(93, 69, 96, 0.18);
}

.toggle-pill__option {
  appearance: none;
  min-width: var(--touch-min);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--mauve);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.toggle-pill__option.active {
  background: linear-gradient(90deg, var(--lav), var(--peach));
  color: #FFFFFF;
}

/* ==========================================================================
   S1 Hero — flattened dream poster (title, brush line, names, and date are
   baked into the artwork); only the language toggle floats live above it.
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__poster {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   S2 Prologue
   ========================================================================== */
.section.prologue {
  padding-top: 44px;
}

.prologue__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.prologue__inner .section-header {
  margin-bottom: 0;
}

.prologue__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
  color: var(--mauve);
}

.prologue__hoju {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--r-md);
  background: var(--glass);
  box-shadow: var(--dream-shadow);
  text-align: center;
}

.prologue__hoju p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mauve);
}

/* ==========================================================================
   S2.5 Cast
   ========================================================================== */
.cast__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cast__inner .section-header {
  margin-bottom: 0;
}

.cast__cards {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cast-card {
  width: 156px;
  margin: 0;
  padding: 10px 10px 14px;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--dream-shadow);
  text-align: center;
}

.cast-card img {
  width: 136px;
  height: 160px;
  object-fit: cover;
  border-radius: 68px 68px 12px 12px;
  margin: 0 auto;
}

.cast-card__name {
  margin: 10px 0 0;
  font-family: var(--font-title);
  font-size: 17px;
  color: var(--mauve);
}

.cast-card__role {
  margin: 6px 0 0;
  display: inline-block;
  padding: 3px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 11px;
  color: var(--mauve);
}

.cast-card:first-child .cast-card__role {
  background: rgba(201, 182, 217, 0.5);
}

.cast-card:last-child .cast-card__role {
  background: rgba(227, 191, 199, 0.55);
}

.cast-card__bio {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--mauve-soft);
}

/* Story card */
.cast__story {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cast__story-header {
  margin-bottom: 0;
}

.cast__story-body {
  margin: 0;
  width: 100%;
  max-width: 327px;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(201, 182, 217, 0.35), rgba(245, 203, 168, 0.35));
  font-size: 14px;
  line-height: 1.95;
  text-align: center;
  color: var(--mauve);
}

/* ==========================================================================
   S3 Trailer
   ========================================================================== */
.trailer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.trailer__inner .section-header {
  margin-bottom: 0;
}

.trailer__frame {
  position: relative;
  width: 100%;
}

.trailer__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #47334C;
  margin: 0;
  overflow: hidden;
  box-shadow: var(--dream-shadow);
}

.trailer__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.trailer__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--mauve);
}

.trailer__unmute {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.85);
  color: var(--mauve);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.trailer__unmute[hidden] {
  display: none;
}

.trailer__caption {
  margin: 0;
  font-size: 12px;
  color: var(--mauve-soft);
}

/* ==========================================================================
   S4 Scenes — dreamy bubble prints
   ========================================================================== */
.scene-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 24px;
  scrollbar-width: none;
}

.scene-row::-webkit-scrollbar {
  display: none;
}

.scene-card {
  position: relative;
  flex: 0 0 225px;
  width: 225px;
  height: 300px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: var(--r-xl);
  background: var(--pink);
  overflow: hidden;
  box-shadow: var(--dream-shadow);
}

.scene-card:nth-child(odd) {
  border-radius: 112px 112px 24px 24px;
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-card__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: rgba(93, 69, 96, 0.55);
  color: #FFFFFF;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  backdrop-filter: blur(3px);
}

.gallery__swipe {
  margin: var(--space-md) 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--mauve-soft);
}

/* ==========================================================================
   S5 Our Stage — glass info card + pastel act pills + D-day
   ========================================================================== */
.performance__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.performance__inner .section-header {
  margin-bottom: 0;
}

.act-list {
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.act-row {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-title);
  font-size: 14px;
  text-align: center;
  color: var(--mauve);
  white-space: nowrap;
}

.act-row:nth-child(1) {
  background: rgba(201, 182, 217, 0.45);
}

.act-row:nth-child(2) {
  background: rgba(227, 191, 199, 0.5);
}

.act-row:nth-child(3) {
  background: rgba(245, 203, 168, 0.5);
}

.performance__info {
  margin: 0;
  width: calc(100% - 48px);
  max-width: 327px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--dream-shadow);
  text-align: center;
}

.performance__datetime {
  margin: 0;
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 400;
  color: var(--mauve);
}

.performance__venue {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mauve-soft);
}

.dday {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 28px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--lav), var(--peach));
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 22px;
  box-shadow: var(--dream-shadow);
}

.dday::before {
  content: '♥';
  font-size: 15px;
}

/* ==========================================================================
   S6 Directions
   ========================================================================== */
.directions__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.directions__inner .section-header {
  margin-bottom: 0;
}

.map-placeholder {
  width: 100%;
  height: 200px;
  border-radius: var(--r-lg);
  background: #E8E3EC;
  overflow: hidden;
  box-shadow: var(--dream-shadow);
}

.directions__address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--mauve);
}

.copy-mini {
  min-height: var(--touch-min);
  padding: 0 16px;
  background: rgba(227, 191, 199, 0.5);
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--mauve);
  cursor: pointer;
}

.directions__buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.directions__buttons .btn-secondary {
  flex: 1;
}

.directions__buttons .btn-secondary:nth-child(2) {
  background: rgba(227, 191, 199, 0.5);
}

.directions__buttons .btn-secondary:nth-child(3) {
  background: rgba(245, 203, 168, 0.5);
}

.directions__info {
  text-align: center;
}

.directions__info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mauve-soft);
}

/* ==========================================================================
   S7 Reservation — glass card, underline fields
   ========================================================================== */
.rsvp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.rsvp__inner .section-header {
  margin-bottom: 0;
}

.rsvp__sub {
  margin: 0;
  font-family: var(--font-brush);
  font-size: 22px;
  color: var(--mauve-soft);
}

.ticket {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: none;
  box-shadow: var(--dream-shadow);
  padding: 26px 22px;
}

.ticket__notch,
.ticket__perforation,
.ticket::before,
.ticket::after {
  display: none !important;
}

.ticket__stub {
  display: none !important;
}

.ticket__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  border: none;
  margin: 0;
}

.ticket__form[hidden] {
  display: none;
}

.field {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
}

.field[hidden] {
  display: none;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--mauve);
}

.field__input {
  width: 100%;
  min-height: 46px;
  padding: 10px 4px;
  border: none;
  border-bottom: 1.5px solid var(--pink);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--mauve);
}

.field__input::placeholder {
  color: rgba(168, 135, 158, 0.7);
}

.field__input:focus {
  outline: none;
  border-bottom: 2px solid var(--mauve-soft);
}

.field__input.is-invalid {
  border-bottom-color: #C4485C;
}

fieldset.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

fieldset.field legend {
  padding: 0;
  margin-bottom: 6px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--mauve);
}

fieldset.field.is-invalid legend {
  color: #C4485C;
}

.radio-row {
  display: flex;
  gap: 24px;
}

.radio-row__input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.radio-row__pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch-min);
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--mauve);
  cursor: pointer;
}

.radio-row__pill::before {
  content: '';
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid var(--mauve-soft);
  transition: border-color 180ms var(--ease-dream), box-shadow 180ms var(--ease-dream);
}

.radio-row__input:checked + .radio-row__pill::before {
  border-color: var(--mauve-soft);
  box-shadow: inset 0 0 0 5px var(--mauve-soft);
}

.radio-row__input:focus-visible + .radio-row__pill {
  outline: 2px solid var(--mauve-soft);
  outline-offset: 2px;
}

#rsvp-submit {
  width: 100%;
}

.spinner {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: dream-spin 800ms linear infinite;
}

.spinner[hidden] {
  display: none;
}

@keyframes dream-spin {
  to { transform: rotate(360deg); }
}

.field-error {
  margin: 6px 0 0;
  font-family: var(--font-label);
  font-size: 12px;
  color: #C4485C;
}

.field-error[hidden] {
  display: none;
}

/* Success — moonlit glass card */
.ticket__success[hidden] {
  display: none;
}

.ticket__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 14px 0;
}

.ticket__check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mauve-soft), var(--peach));
  box-shadow: 0 0 28px rgba(227, 191, 199, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.ticket__success-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: 28px;
  color: var(--mauve);
}

.ticket__success-body {
  margin: 0;
  font-family: var(--font-brush);
  font-size: 24px;
  color: var(--mauve-soft);
}

.success-stub {
  margin-top: 4px;
  padding: 12px 26px;
  background: linear-gradient(90deg, rgba(201, 182, 217, 0.4), rgba(245, 203, 168, 0.4));
  border: none;
  border-radius: var(--r-full);
}

.success-stub p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mauve);
}

.success-stub__line1 {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mauve-soft);
}

.success-stub__line2 {
  font-family: var(--font-title);
  font-size: 14px;
}

.ticket__success-ps {
  margin: 6px 0 0;
  font-family: var(--font-brush);
  font-size: 22px;
  color: var(--mauve);
}

/* ==========================================================================
   S8 Accounts — floating pill rows
   ========================================================================== */
.accounts__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.accounts__inner .section-header {
  margin-bottom: 4px;
}

.accordion {
  border: none;
  border-radius: var(--r-lg);
  background: var(--glass);
  box-shadow: var(--dream-shadow);
  overflow: hidden;
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--mauve);
  cursor: pointer;
  list-style: none;
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__chevron {
  width: 10px;
  height: 6px;
  background: var(--mauve-soft);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transition: transform 220ms var(--ease-dream);
}

.accordion[open] .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 20px;
  border-top: 1px solid rgba(168, 135, 158, 0.2);
}

.accordion:not([open]) .accordion__detail {
  display: none;
}

.accordion__account {
  margin: 0;
  font-size: 13px;
  color: var(--mauve);
}

.btn-copy {
  flex: none;
  min-height: var(--touch-min);
  padding: 6px 16px;
  border: none;
  border-radius: var(--r-full);
  background: rgba(227, 191, 199, 0.55);
  color: var(--mauve);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   S9 Curtain call — moon + brush
   ========================================================================== */
.section.curtain-call {
  padding-bottom: 48px;
}

.curtain-call__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.curtain-call__inner::before {
  content: '';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 22px rgba(245, 203, 168, 0.95);
  order: 1;
}

.curtain-call__thanks {
  margin: 0;
  font-family: var(--font-brush);
  font-size: 26px;
  color: var(--mauve);
  order: 2;
}

.curtain-call__inner .caption-en {
  margin: 0;
  order: 3;
}

#share-btn {
  order: 0;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(90deg, rgba(201, 182, 217, 0.55), rgba(227, 191, 199, 0.55));
  border: none;
  color: var(--mauve);
  font-family: var(--font-title);
  font-size: 15px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 450ms var(--ease-dream), transform 450ms var(--ease-dream);
}

.reveal-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
