/* ==========================================================================
   이거 맞을까?! — Rom-Com Pop variant
   Tokens from Figma frame "Mobile KO · Rom-Com Pop" (161:93).
   Same DOM contract as the classic site — only the skin changes.
   ========================================================================== */
:root {
  --sky: #A8D8F0;
  --blush: #FFD7E0;
  --hot: #FF4D8D;
  --burg: #5C1A2E;
  --paper: #FFFFFF;
  --ink-soft: #99737F;
  --kakao: #FAE100;

  --r-sm: 10px;
  --r-md: 16px;
  --r-full: 9999px;

  --font-display: 'Black Han Sans', sans-serif;
  --font-round: 'Jua', sans-serif;
  --font-hand: 'Gaegu', cursive;
  --font-body: 'IBM Plex Sans KR', -apple-system, sans-serif;

  --pop-shadow: 0 6px 14px rgba(92, 26, 46, 0.22);
  --ease-pop: cubic-bezier(0.34, 1.3, 0.64, 1);

  --space-sm: 12px;
  --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(--paper);
  color: var(--burg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

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

button {
  font-family: inherit;
}

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

/* Classic stage rules don't exist in pop */
.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;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hot);
  text-align: center;
  margin: 0 0 6px;
}

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

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

.btn-primary {
  min-height: 50px;
  padding: 0 24px;
  background: var(--hot);
  color: #FFFFFF;
  border: 2px solid var(--burg);
  font-family: var(--font-display);
  font-size: 17px;
  box-shadow: var(--pop-shadow);
}

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

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

.btn-secondary {
  min-height: 42px;
  padding: 0 16px;
  background: var(--sky);
  color: var(--burg);
  border: 2px solid var(--burg);
  font-size: 13px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

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

/* ==========================================================================
   Language toggle
   ========================================================================== */
.site-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
}

.toggle-pill {
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 2px solid var(--burg);
  border-radius: var(--r-full);
  padding: 2px;
}

.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(--burg);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.toggle-pill__option.active {
  background: var(--hot);
  color: #FFFFFF;
}

/* ==========================================================================
   S1 Hero — split poster
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--sky) 0%, var(--sky) 50%, var(--blush) 50%, var(--blush) 100%);
}

/* The hero is the flattened Figma poster (user-composited artwork with the
   couple's photos, title, and doodles baked in); only the language toggle
   floats live above it. */
/* Full poster always visible: width-scaled, natural height (no cropping) */
.hero__poster {
  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.8;
  text-align: center;
  color: var(--burg);
}

.prologue__hoju {
  display: flex;
  gap: 12px;
}

.prologue__hoju p {
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--burg);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--burg);
}

.prologue__hoju p:first-child {
  background: rgba(168, 216, 240, 0.55);
  transform: rotate(-1.5deg);
}

.prologue__hoju p:last-child {
  background: rgba(255, 215, 224, 0.65);
  transform: rotate(1.5deg);
}

/* ==========================================================================
   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: 14px;
}

.cast-card {
  width: 156px;
  margin: 0;
  padding: 12px;
  border: 2px solid var(--burg);
  border-radius: var(--r-md);
  box-shadow: var(--pop-shadow);
  text-align: center;
}

.cast-card:first-child {
  background: rgba(168, 216, 240, 0.5);
  transform: rotate(-2deg);
}

.cast-card:last-child {
  background: rgba(255, 215, 224, 0.55);
  transform: rotate(2deg);
}

.cast-card img {
  width: 132px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 5px solid #FFFFFF;
  margin: 0 auto;
}

.cast-card__name {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--burg);
}

.cast-card__role {
  margin: 6px 0 0;
  display: inline-block;
  padding: 2px 12px;
  border-radius: var(--r-full);
  background: var(--hot);
  color: #FFFFFF;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 13px;
}

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

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

.cast__story::before {
  content: '“';
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.6;
  color: var(--hot);
}

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

.cast__story-body {
  margin: 0;
  max-width: 327px;
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
  color: var(--burg);
}

/* ==========================================================================
   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-md);
  border: 3px solid var(--burg);
  background: var(--burg);
  margin: 0;
  overflow: hidden;
}

.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: var(--hot);
  border: 3px solid #FFFFFF;
}

.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 #FFFFFF;
}

.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: 2px solid var(--burg);
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--burg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.trailer__unmute[hidden] {
  display: none;
}

.trailer__caption {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 15px;
  color: var(--burg);
}

/* ==========================================================================
   S4 Scenes — tilted sticker prints
   ========================================================================== */
.scene-row {
  display: flex;
  gap: 14px;
  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 230px;
  width: 230px;
  height: 306px;
  margin: 0;
  padding: 9px;
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--pop-shadow);
  overflow: visible;
}

.scene-card:nth-child(odd) {
  transform: rotate(-1.6deg);
}

.scene-card:nth-child(even) {
  transform: rotate(1.6deg);
}

.scene-card img {
  width: 100%;
  height: 258px;
  object-fit: cover;
  border-radius: 6px;
}

.scene-card__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--hot);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.gallery__swipe {
  margin: var(--space-md) 0 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  color: var(--hot);
}

/* ==========================================================================
   S5 Performance — info rows + tilted act boxes + D-day badge
   ========================================================================== */
.performance__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

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

.act-list {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.act-row {
  margin: 0;
  padding: 12px 10px;
  border: 2px solid var(--burg);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  text-align: center;
  color: var(--burg);
  white-space: nowrap;
}

.act-row:nth-child(1) {
  background: var(--sky);
  transform: rotate(-2deg);
}

.act-row:nth-child(2) {
  background: var(--blush);
  transform: rotate(2deg);
}

.act-row:nth-child(3) {
  background: var(--hot);
  color: #FFFFFF;
  transform: rotate(-2deg);
}

.performance__info {
  margin: 0;
  width: calc(100% - 48px);
  max-width: 327px;
  border: 2px solid var(--burg);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
}

.performance__datetime {
  margin: 0;
  padding: 12px;
  background: var(--sky);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--burg);
}

.performance__venue {
  margin: 0;
  padding: 10px;
  background: var(--paper);
  border-top: 2px solid var(--burg);
  font-size: 14px;
  font-weight: 600;
  color: var(--burg);
}

.dday {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 26px;
  border-radius: var(--r-full);
  background: var(--hot);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 22px;
  transform: rotate(-2deg);
  box-shadow: var(--pop-shadow);
}

/* ==========================================================================
   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: 2px solid var(--burg);
  border-radius: var(--r-md);
  background: rgba(168, 216, 240, 0.4);
  overflow: hidden;
}

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

.copy-mini {
  min-height: var(--touch-min);
  padding: 0 16px;
  background: var(--blush);
  border: 2px solid var(--burg);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--burg);
  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: var(--blush);
}

.directions__buttons .btn-secondary:nth-child(3) {
  background: var(--hot);
  color: #FFFFFF;
}

.directions__info {
  text-align: center;
}

.directions__info p {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
  color: var(--burg);
}

/* ==========================================================================
   S7 RSVP
   ========================================================================== */
.section.rsvp {
  background: rgba(168, 216, 240, 0.3);
}

.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-hand);
  font-weight: 700;
  font-size: 17px;
  color: var(--burg);
}

.ticket {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2px solid var(--burg);
  box-shadow: var(--pop-shadow);
  padding: 22px 18px;
}

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

.ticket__stub {
  display: none !important;
}

.ticket__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  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-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hot);
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid rgba(92, 26, 46, 0.25);
  border-radius: var(--r-sm);
  background: #FBFAFB;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--burg);
}

.field__input::placeholder {
  color: var(--ink-soft);
}

.field__input:focus {
  outline: none;
  border-color: var(--hot);
  background: #FFFFFF;
}

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

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

fieldset.field legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--hot);
}

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

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

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

.radio-row__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-min);
  padding: 0 18px;
  border: 2px solid rgba(92, 26, 46, 0.25);
  border-radius: var(--r-full);
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: var(--burg);
  cursor: pointer;
  transition: transform 120ms var(--ease-pop);
}

.radio-row__input:checked + .radio-row__pill {
  background: var(--blush);
  border-color: var(--hot);
}

.radio-row__input:focus-visible + .radio-row__pill {
  outline: 3px solid var(--hot);
  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: pop-spin 800ms linear infinite;
}

.spinner[hidden] {
  display: none;
}

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

.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #D5232E;
}

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

.ticket__success[hidden] {
  display: none;
}

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

.ticket__check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--hot);
  border: 3px solid #FFFFFF;
  box-shadow: var(--pop-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.ticket__success-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--burg);
}

.ticket__success-body {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 17px;
  color: var(--hot);
}

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

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

.accordion {
  border: 2px solid var(--burg);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
}

.accordion:first-of-type .accordion__header {
  background: rgba(168, 216, 240, 0.45);
}

.accordion:last-of-type .accordion__header {
  background: rgba(255, 215, 224, 0.55);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--burg);
  cursor: pointer;
  list-style: none;
}

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

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

.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 18px;
  border-top: 2px solid rgba(92, 26, 46, 0.15);
}

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

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

.btn-copy {
  flex: none;
  min-height: var(--touch-min);
  padding: 6px 16px;
  border: none;
  border-radius: var(--r-full);
  background: var(--hot);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   S9 Curtain call
   ========================================================================== */
.section.curtain-call {
  padding-bottom: 44px;
}

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

.curtain-call__thanks {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 20px;
  color: var(--burg);
}

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

#share-btn {
  width: 100%;
  min-height: 48px;
  background: var(--kakao);
  border: 2px solid var(--burg);
  color: var(--burg);
  font-family: var(--font-display);
  font-size: 15px;
}

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

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

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

/* Success stub + sign-off (from the Figma RSVP Success frame) */
.success-stub {
  margin-top: 4px;
  padding: 12px 20px;
  background: var(--blush);
  border: 2px solid var(--burg);
  border-radius: 12px;
  transform: rotate(2deg);
}

.success-stub p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--burg);
}

.success-stub__line1 {
  letter-spacing: 0.12em;
}

.ticket__success-ps {
  margin: 6px 0 0;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 15px;
  color: var(--burg);
}
