/* ==========================================================================
   Template #5 — DOODLE ART · WHIMSICAL ILLUSTRATED WEDDING INVITATION
   Couple: Gabriel Moreau & Amélie Laurent
   Exact Specified Color Palette:
     #A3C6DF (Pastel Sky Blue)
     #A8BC7A (Soft Olive)
     #F3C4CE (Blush / Pastel Pink)
     #C86D98 (Mauve / Berry Pink)
   ========================================================================== */

:root {
  --ks-sky: #A3C6DF;
  --ks-olive: #A8BC7A;
  --ks-olive-dark: #647B36;
  --ks-olive-light: #EBF1DF;
  --ks-blush: #F3C4CE;
  --ks-blush-light: #FDF1F4;
  --ks-berry: #C86D98;
  --ks-berry-deep: #9B3D6B;
  --ks-cream: #FAF6EF;
  --ks-cream-card: #FFFCF7;
  --ks-cream-warm: #F6EFE3;
  --ks-ink: #2C2824;
  --ks-ink-soft: #5E5549;
  --ks-muted: #8E8273;
  --ks-border-light: rgba(168, 188, 122, 0.35);

  --ks-font-hand: 'Caveat', 'Gaegu', cursive, sans-serif;
  --ks-font-title: 'Gaegu', 'Caveat', cursive, sans-serif;
  --ks-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ks-font-kr: 'Gowun Batang', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background-color: #E2DBD0;
  color: var(--ks-ink);
  font-family: var(--ks-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure,
p,
h1,
h2,
h3,
h4,
blockquote {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   OPENING GATE SCREEN
   ========================================================================== */
body.invitation-closed {
  overflow: hidden;
  height: 100vh;
}

body.invitation-closed .ks-invitation-content,
body.invitation-closed .ks-music-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.force-open body.invitation-closed {
  overflow: auto !important;
  height: auto !important;
}

html.force-open .ks-opening-gate {
  display: none !important;
}

html.force-open .ks-invitation-content,
html.force-open .ks-music-toggle {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.ks-opening-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: #E8E2D6;
  transition: opacity 0.75s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.75s;
}

.ks-opening-gate.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ks-gate-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(163, 198, 223, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(243, 196, 206, 0.5) 0%, transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 24px,
      rgba(168, 188, 122, 0.12) 24px,
      rgba(168, 188, 122, 0.12) 36px
    );
}

.ks-gate-card {
  position: relative;
  z-index: 2;
  width: min(440px, 94vw);
  background: var(--ks-cream-card);
  border-radius: 24px;
  border: 4px solid var(--ks-olive);
  box-shadow:
    0 24px 60px rgba(44, 40, 36, 0.22),
    0 4px 18px rgba(44, 40, 36, 0.1),
    inset 0 0 0 4px #FAF6EF;
  overflow: hidden;
  margin: auto;
}

.ks-gate-inner {
  padding: clamp(28px, 5.5vh, 46px) clamp(20px, 5vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ks-gate-script-lead {
  font-family: var(--ks-font-hand);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 600;
  color: var(--ks-berry);
  margin-bottom: 2px;
}

.ks-gate-script-title {
  font-family: var(--ks-font-hand);
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 700;
  color: var(--ks-ink);
  line-height: 1.12;
  margin-bottom: 12px;
}

.ks-gate-script-title em {
  font-style: italic;
  font-size: 0.85em;
  color: var(--ks-berry);
  margin: 0 6px;
}

.ks-gate-script-title small {
  display: block;
  font-family: var(--ks-font-title);
  font-size: 19px;
  font-weight: 400;
  color: var(--ks-olive-dark);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.ks-gate-vinyl-art {
  width: min(320px, 86vw);
  margin: 6px auto 14px;
}

.ks-gate-vinyl-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 40, 36, 0.14);
  background: #FAF7F2;
  border: 2px dashed rgba(168, 188, 122, 0.6);
  padding: 4px;
}

.ks-gate-vinyl-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.ks-gate-vinyl-frame:hover .ks-gate-vinyl-img {
  transform: scale(1.02);
}

.ks-vinyl-label-overlay {
  position: absolute;
  top: 62.3%;
  left: 52.3%;
  transform: translate(-50%, -50%);
  width: 28%;
  height: 21%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ks-vinyl-couple {
  font-family: var(--ks-font-hand);
  font-size: clamp(10px, 2.7vw, 12.5px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.0;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(10, 25, 60, 0.55);
  letter-spacing: 0.02em;
}

.ks-vinyl-date {
  font-family: var(--ks-font-sans);
  font-size: clamp(7px, 1.8vw, 8.5px);
  font-weight: 700;
  color: #FFFFFF;
  opacity: 0.95;
  letter-spacing: 0.1em;
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(10, 25, 60, 0.55);
}

.ks-vinyl-sub {
  font-family: var(--ks-font-sans);
  font-size: clamp(5px, 1.3vw, 6.5px);
  font-weight: 800;
  color: #FFFFFF;
  opacity: 0.92;
  letter-spacing: 0.14em;
  margin-top: 1px;
  text-shadow: 0 1px 2px rgba(10, 25, 60, 0.55);
}

.ks-disco-gleam {
  position: absolute;
  top: 5%;
  left: 30%;
  width: 29%;
  height: 24%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 240, 220, 0.45) 40%, transparent 70%);
  mix-blend-mode: overlay;
  animation: discoGleam 2.8s ease-in-out infinite alternate;
}

.ks-disco-glint {
  position: absolute;
  font-size: 14px;
  color: #FFFFFF;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 14px rgba(243, 196, 206, 0.85);
  pointer-events: none;
  animation: discoTwinkle 1.8s ease-in-out infinite;
}

.ks-disco-glint.g1 {
  top: 6%;
  left: 28%;
  animation-delay: 0.2s;
}

.ks-disco-glint.g2 {
  top: 15%;
  left: 56%;
  font-size: 16px;
  animation-delay: 0.9s;
}

.ks-disco-glint.g3 {
  top: 24%;
  left: 36%;
  font-size: 12px;
  animation-delay: 1.4s;
}

@keyframes discoGleam {
  0% { opacity: 0.3; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1.1) rotate(180deg); }
  100% { opacity: 0.35; transform: scale(0.95) rotate(360deg); }
}

@keyframes discoTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(45deg); }
}

.ks-vinyl-float-note {
  position: absolute;
  font-size: 16px;
  color: var(--ks-berry);
  pointer-events: none;
  opacity: 0.75;
  animation: floatNote 3.2s ease-in-out infinite;
}

.ks-vinyl-float-note.n1 {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}

.ks-vinyl-float-note.n2 {
  top: 12%;
  right: 14%;
  color: var(--ks-sky);
  font-size: 19px;
  animation-delay: 1.1s;
}

.ks-vinyl-float-note.n3 {
  top: 48%;
  right: 8%;
  color: var(--ks-olive-dark);
  font-size: 15px;
  animation-delay: 2.2s;
}

@keyframes floatNote {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-8px) rotate(12deg) scale(1.15);
    opacity: 0.95;
  }
}

.ks-gate-venue-line {
  font-family: var(--ks-font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ks-ink);
  margin-bottom: 2px;
}

.ks-gate-date-line {
  font-family: var(--ks-font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ks-berry);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.ks-gate-rsvp-deadline {
  font-family: var(--ks-font-hand);
  font-size: 16px;
  font-weight: 600;
  color: var(--ks-muted);
  margin-bottom: 22px;
}

.ks-gate-open-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 36px;
  border: 2.5px dashed var(--ks-berry);
  border-radius: 999px;
  background: var(--ks-blush-light);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  box-shadow: 0 4px 14px rgba(200, 109, 152, 0.2);
}

.ks-gate-open-btn:hover {
  background: var(--ks-berry);
  border-color: var(--ks-berry);
  transform: translateY(-2px) scale(1.02);
}

.ks-gate-open-btn:hover .ks-btn-label,
.ks-gate-open-btn:hover .ks-btn-sparkle,
.ks-gate-open-btn:hover small {
  color: #fff;
}

.ks-btn-label {
  font-family: var(--ks-font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ks-berry);
  transition: color 0.2s;
}

.ks-btn-sparkle {
  color: var(--ks-olive-dark);
  font-size: 14px;
}

.ks-gate-open-btn small {
  font-family: var(--ks-font-kr);
  font-size: 11px;
  color: var(--ks-muted);
  transition: color 0.2s;
}

.ks-gate-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0%, rgba(243, 196, 206, 0.5) 60%, transparent 90%);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.ks-gate-flash.is-flashing {
  animation: ks-gate-flash-anim 0.75s ease-out forwards;
}

@keyframes ks-gate-flash-anim {
  0% { opacity: 0; }
  35% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* ==========================================================================
   MUSIC TOGGLE
   ========================================================================== */
.ks-music-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 2px dashed var(--ks-olive-dark);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(8px);
  color: var(--ks-olive-dark);
  box-shadow: 0 6px 20px rgba(50, 40, 30, 0.16);
  font-family: var(--ks-font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ks-music-toggle[aria-pressed="true"] {
  background: var(--ks-olive);
  border-color: var(--ks-olive);
  color: #fff;
}

.ks-music-icon {
  font-size: 16px;
  line-height: 1;
}

/* ==========================================================================
   CONFETTI / PETAL SPARKS
   ========================================================================== */
.ks-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 88;
  pointer-events: none;
  overflow: hidden;
}

.ks-confetti-particle {
  position: absolute;
  width: 9px;
  height: 12px;
  border-radius: 50% 50% 50% 10%;
  animation: ks-confetti-drop 2.4s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes ks-confetti-drop {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--cf-dx, 30px), var(--cf-dy, 180px), 0) rotate(320deg);
  }
}

/* ==========================================================================
   MAIN INVITATION CONTAINER & DESKTOP 2-COLUMN LAYOUT
   ========================================================================== */
.ks-invitation-content {
  position: relative;
  min-height: 100vh;
  padding: clamp(16px, 3.5vw, 42px) 12px clamp(48px, 6vw, 84px);
  transition: opacity 0.8s ease;
}

/* Desktop Ambient Backdrop (Tulip & Meadow mood from Image 2) */
.ks-desktop-ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(243, 196, 206, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(168, 188, 122, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(163, 198, 223, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 90% 85%, rgba(200, 109, 152, 0.3) 0%, transparent 40%),
    #DFD7CB;
}

.ks-layout-container {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Base Card Style (Whimsical Paper Ticket / Card) */
.ks-card {
  position: relative;
  background: var(--ks-cream-card);
  border-radius: 20px;
  box-shadow: 0 16px 42px rgba(50, 42, 32, 0.14);
  overflow: hidden;
  border: 1px solid rgba(168, 188, 122, 0.28);
}

/* ==========================================================================
   1. MAIN INVITATION CARD (Green-Striped Border + Pink Wavy Inner Frame)
   (Exact replication of Reference Images 1 & 2)
   ========================================================================== */
.ks-main-invite-card {
  padding: 0;
}

.ks-striped-outer-frame {
  position: relative;
  padding: 24px 16px;
  background-color: var(--ks-cream-card);
  background-image:
    repeating-linear-gradient(
      90deg,
      var(--ks-olive) 0,
      var(--ks-olive) 8px,
      transparent 8px,
      transparent 18px
    );
  background-size: 100% 100%;
}

.ks-wavy-inner-frame {
  position: relative;
  background: #FFFDF9;
  border-radius: 14px;
  border: 3.5px dashed var(--ks-berry);
  padding: clamp(24px, 5vw, 36px) clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 18px rgba(200, 109, 152, 0.12);
}

.ks-invite-eyebrow {
  font-family: var(--ks-font-title);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ks-berry);
  margin-bottom: 2px;
}

.ks-invite-kr-sub {
  font-family: var(--ks-font-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ks-muted);
  margin-bottom: 6px;
}

.ks-invite-subnews {
  font-family: var(--ks-font-hand);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 600;
  color: var(--ks-ink-soft);
  margin-bottom: 6px;
}

.ks-invite-big-announcement {
  font-family: var(--ks-font-title);
  font-size: clamp(26px, 6.8vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ks-olive-dark);
  margin-bottom: 14px;
}

.ks-invite-couple-names {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ks-name-bride,
.ks-name-groom {
  font-family: var(--ks-font-title);
  font-size: clamp(22px, 5.5vw, 30px);
  font-weight: 700;
  color: var(--ks-berry);
  letter-spacing: 0.05em;
}

.ks-name-amp {
  font-family: var(--ks-font-hand);
  font-size: clamp(20px, 5vw, 26px);
  color: var(--ks-olive-dark);
}

.ks-invite-kr-names {
  font-family: var(--ks-font-sans);
  font-size: 13.5px;
  letter-spacing: 0.15em;
  color: var(--ks-muted);
  margin-bottom: 16px;
}

.ks-invite-couple-illustration {
  width: clamp(170px, 46vw, 240px);
  margin: 0 auto;
}

.ks-invite-couple-illustration img {
  width: 100%;
  border-radius: 12px;
}

.ks-striped-bottom-fringe {
  width: 100%;
  height: 14px;
  margin-top: 16px;
  background: repeating-linear-gradient(
    90deg,
    var(--ks-olive) 0,
    var(--ks-olive) 6px,
    transparent 6px,
    transparent 14px
  );
  opacity: 0.7;
}

/* ==========================================================================
   2. CALENDAR CARD (Date + Month grid + Doodles + WHERE Venue)
   ========================================================================== */
.ks-calendar-card {
  padding: clamp(24px, 5vw, 36px) clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--ks-cream-card);
}

.ks-cal-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.ks-cal-star {
  color: var(--ks-olive);
  font-size: 16px;
}

.ks-cal-big-date {
  font-family: var(--ks-font-title);
  font-size: clamp(26px, 6.5vw, 34px);
  font-weight: 700;
  color: var(--ks-olive-dark);
  letter-spacing: 0.05em;
}

.ks-cal-kr-date {
  font-family: var(--ks-font-sans);
  font-size: 13px;
  color: var(--ks-muted);
  margin-bottom: 16px;
}

.ks-cal-invitation-message {
  font-family: var(--ks-font-hand);
  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 500;
  color: var(--ks-ink-soft);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 380px;
}

.ks-calendar-wrapper {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 16px;
  background: #FFFDF9;
  border: 1.5px dashed rgba(168, 188, 122, 0.6);
  border-radius: 14px;
  padding: 12px 10px;
}

.ks-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--ks-font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--ks-muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(168, 188, 122, 0.4);
  margin-bottom: 8px;
}

.ks-cal-days-header .ks-sat { color: var(--ks-sky); }
.ks-cal-days-header .ks-sun { color: var(--ks-berry); }

.ks-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-family: var(--ks-font-title);
  font-size: 16px;
  font-weight: 600;
}

.ks-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ks-ink);
}

.ks-cal-cell.is-empty {
  visibility: hidden;
}

.ks-cal-cell.is-wedding-date {
  position: relative;
  background: var(--ks-berry);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(200, 109, 152, 0.45);
}

.ks-cal-cell.is-wedding-date::after {
  content: '♥';
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 12px;
  color: var(--ks-berry);
}

.ks-cal-doodles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  margin: 6px auto 14px;
}

.ks-doodle-ribbon {
  width: 100px;
  height: 36px;
}

.ks-doodle-flower {
  width: 44px;
  height: 44px;
}

/* Oval Badge (WHERE / GUEST SURVEY) */
.ks-oval-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 26px;
  border: 2px solid var(--ks-olive-dark);
  border-radius: 999px;
  font-family: var(--ks-font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--ks-olive-dark);
  background: var(--ks-olive-light);
  margin-bottom: 10px;
}

.ks-badge-pink {
  border-color: var(--ks-berry);
  color: var(--ks-berry);
  background: var(--ks-blush-light);
}

.ks-badge-double-ring {
  flex-direction: column;
  padding: 10px 28px;
  border: 3px double var(--ks-olive-dark);
  background: transparent;
  color: var(--ks-olive-dark);
}

.ks-badge-double-ring small {
  font-family: var(--ks-font-sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--ks-muted);
  margin-top: 2px;
}

.ks-venue-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}

.ks-venue-hotel-name {
  font-family: var(--ks-font-title);
  font-size: clamp(20px, 5vw, 25px);
  font-weight: 700;
  color: var(--ks-ink);
  margin-bottom: 2px;
}

.ks-venue-korean {
  font-family: var(--ks-font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ks-berry);
  margin-bottom: 4px;
}

.ks-venue-street {
  font-family: var(--ks-font-sans);
  font-size: 13px;
  color: var(--ks-ink-soft);
  margin-bottom: 4px;
}

.ks-venue-start-time {
  font-family: var(--ks-font-hand);
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-olive-dark);
  margin-bottom: 14px;
}

.ks-venue-map-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border: 1.5px solid var(--ks-olive-dark);
  border-radius: 999px;
  font-family: var(--ks-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ks-olive-dark);
  background: #fff;
  transition: all 0.25s ease;
}

.ks-venue-map-action:hover {
  background: var(--ks-olive-dark);
  color: #fff;
}

/* ==========================================================================
   3. RECEPTION MENU CARD (Pink Ribbon Dinner Table Stage)
   ========================================================================== */
.ks-menu-card {
  padding: 0;
  background: var(--ks-cream-card);
}

.ks-menu-table-stage {
  position: relative;
  width: 100%;
}

.ks-menu-frame-img {
  width: 100%;
  height: auto;
  display: block;
}

.ks-menu-inner-overlay {
  position: absolute;
  top: clamp(38px, 9vw, 68px);
  left: clamp(20px, 6vw, 42px);
  right: clamp(20px, 6vw, 42px);
  bottom: clamp(140px, 30vw, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.ks-menu-top-tag {
  font-family: var(--ks-font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ks-berry);
  margin-bottom: 2px;
}

.ks-menu-title {
  font-family: var(--ks-font-title);
  font-size: clamp(26px, 6.5vw, 34px);
  font-weight: 700;
  color: var(--ks-ink);
  line-height: 1.1;
  margin-bottom: 2px;
}

.ks-menu-kr-title {
  font-family: var(--ks-font-sans);
  font-size: 12px;
  color: var(--ks-muted);
  margin-bottom: 16px;
}

.ks-menu-course-list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2.2vw, 14px);
  width: 100%;
}

.ks-menu-course {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ks-course-type {
  font-family: var(--ks-font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ks-olive-dark);
  margin-bottom: 1px;
}

.ks-course-name {
  font-family: var(--ks-font-title);
  font-size: clamp(16px, 3.8vw, 19px);
  font-weight: 700;
  color: var(--ks-ink);
  line-height: 1.25;
}

.ks-course-sub {
  font-family: var(--ks-font-hand);
  font-size: clamp(13px, 3.2vw, 15px);
  color: var(--ks-ink-soft);
}

/* ==========================================================================
   4. WELCOME OUTFITS CARD (Right Column Item 1)
   ========================================================================== */
.ks-welcome-card {
  padding: clamp(20px, 4vw, 32px);
  background: #FFFDF9;
}

.ks-welcome-art-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ks-welcome-outfits-img {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
}

.ks-welcome-caption-box {
  position: absolute;
  right: 12px;
  bottom: 8px;
  text-align: right;
  background: rgba(255, 253, 249, 0.92);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px dashed var(--ks-olive);
}

.ks-welcome-script-text {
  font-family: var(--ks-font-hand);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--ks-berry);
  line-height: 1;
}

.ks-welcome-names-text {
  font-family: var(--ks-font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-olive-dark);
}

/* ==========================================================================
   5. DRESS CODE CARD (Dancers + Wavy Frame + 4 Swatches)
   (Exact replication of Reference Images 1 & 2)
   ========================================================================== */
.ks-dresscode-card {
  padding: clamp(20px, 4vw, 32px) clamp(16px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ks-dresscode-dancers-art {
  width: 100%;
  max-width: 360px;
  margin-bottom: 16px;
}

.ks-dresscode-dancers-art img {
  width: 100%;
  border-radius: 12px;
}

.ks-wavy-dresscode-frame {
  width: 100%;
  border: 3.5px dashed var(--ks-berry);
  border-radius: 16px;
  padding: clamp(20px, 4.5vw, 30px) clamp(14px, 3.5vw, 22px);
  background: var(--ks-blush-light);
}

.ks-dc-title {
  font-family: var(--ks-font-title);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  color: var(--ks-berry);
  margin-bottom: 2px;
}

.ks-dc-kr-sub {
  font-family: var(--ks-font-sans);
  font-size: 12px;
  color: var(--ks-muted);
  margin-bottom: 12px;
}

.ks-dc-description {
  font-family: var(--ks-font-hand);
  font-size: clamp(15px, 3.6vw, 18px);
  font-weight: 500;
  color: var(--ks-ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}

.ks-dc-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ks-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ks-swatch-circle {
  width: clamp(40px, 9vw, 56px);
  height: clamp(40px, 9vw, 56px);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(50, 40, 30, 0.15);
  transition: transform 0.25s ease;
}

.ks-swatch-item:hover .ks-swatch-circle {
  transform: scale(1.1);
}

.ks-swatch-name {
  font-family: var(--ks-font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ks-ink);
  line-height: 1.2;
}

.ks-swatch-hex {
  font-family: var(--ks-font-sans);
  font-size: 9.5px;
  color: var(--ks-muted);
}

/* Wavy Ribbon Separator */
.ks-wavy-ribbon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 28px;
  margin-top: 20px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(246, 239, 227, 0.8) 0%, transparent 70%),
    repeating-linear-gradient(
      90deg,
      var(--ks-blush) 0,
      var(--ks-blush) 12px,
      transparent 12px,
      transparent 24px
    );
  border-radius: 999px;
  opacity: 0.85;
}

.ks-ribbon-sparkle { color: var(--ks-berry); font-size: 14px; }
.ks-ribbon-flower { color: var(--ks-olive-dark); font-size: 16px; }

/* ==========================================================================
   6. PARTY SCENE & COUNTDOWN CARD
   ========================================================================== */
.ks-party-card {
  padding: 0;
  background: var(--ks-cream-card);
}

.ks-party-stage {
  position: relative;
  width: 100%;
}

.ks-party-bg-img {
  width: 100%;
  height: auto;
  display: block;
}

.ks-party-inner-overlay {
  position: absolute;
  top: clamp(80px, 18vw, 130px);
  left: 20px;
  right: 20px;
  bottom: clamp(110px, 24vw, 170px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.ks-party-title {
  font-family: var(--ks-font-title);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  color: var(--ks-berry);
  line-height: 1.1;
  margin-bottom: 2px;
}

.ks-party-kr-sub {
  font-family: var(--ks-font-sans);
  font-size: 12px;
  color: var(--ks-muted);
  margin-bottom: 12px;
}

.ks-timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 290px;
  margin-bottom: 14px;
}

.ks-tl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  background: rgba(255, 253, 249, 0.88);
  padding: 3px 10px;
  border-radius: 6px;
  border-left: 3px solid var(--ks-olive);
}

.ks-tl-time {
  font-weight: 700;
  color: var(--ks-olive-dark);
}

.ks-tl-desc {
  font-family: var(--ks-font-sans);
  color: var(--ks-ink);
  font-size: 11.5px;
}

.ks-countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ks-countdown-label {
  font-family: var(--ks-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ks-olive-dark);
  margin-bottom: 6px;
}

.ks-countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ks-cd-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--ks-olive);
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 44px;
  box-shadow: 0 2px 8px rgba(70, 60, 48, 0.1);
}

.ks-cd-digit {
  font-family: var(--ks-font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--ks-berry);
  line-height: 1;
}

.ks-cd-tag {
  font-family: var(--ks-font-sans);
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ks-muted);
}

.ks-cd-colon {
  font-family: var(--ks-font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ks-olive-dark);
}

/* ==========================================================================
   7. GUEST SURVEY (RSVP) CARD
   (Exact replication of Reference Images 1 & 2)
   ========================================================================== */
.ks-rsvp-card {
  padding: clamp(24px, 5vw, 36px) clamp(16px, 4vw, 24px);
}

.ks-rsvp-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ks-rsvp-prompt-text {
  font-family: var(--ks-font-hand);
  font-size: clamp(15px, 3.6vw, 18px);
  color: var(--ks-ink-soft);
  line-height: 1.5;
  margin-bottom: 20px;
}

.ks-rsvp-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.ks-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ks-form-field label,
.ks-field-legend {
  font-family: var(--ks-font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-ink);
}

.ks-form-field input[type="text"],
.ks-form-field select,
.ks-form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(168, 188, 122, 0.7);
  border-radius: 10px;
  background: #FFFDF9;
  font-family: var(--ks-font-sans);
  font-size: 14px;
  color: var(--ks-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ks-form-field input[type="text"]:focus,
.ks-form-field select:focus,
.ks-form-field textarea:focus {
  outline: none;
  border-color: var(--ks-berry);
  box-shadow: 0 0 0 3px rgba(200, 109, 152, 0.2);
}

.ks-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--ks-font-hand);
  font-size: 16px;
  font-weight: 600;
  color: var(--ks-ink-soft);
}

.ks-radio-option input[type="radio"] {
  accent-color: var(--ks-olive-dark);
  width: 18px;
  height: 18px;
}

.ks-rsvp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  margin-top: 6px;
  border: 2px solid var(--ks-olive-dark);
  border-radius: 999px;
  background: var(--ks-olive-dark);
  color: #fff;
  font-family: var(--ks-font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(100, 123, 54, 0.25);
}

.ks-rsvp-submit-btn:hover {
  background: #fff;
  color: var(--ks-olive-dark);
}

.ks-submit-arrow {
  font-size: 18px;
}

.ks-rsvp-status-msg {
  font-family: var(--ks-font-sans);
  font-size: 13px;
  color: var(--ks-berry);
  text-align: center;
  min-height: 1.4em;
  margin-top: 4px;
}

/* Zig-zag Doodle */
.ks-zigzag-doodle {
  width: 100%;
  height: 12px;
  margin: 18px 0 14px;
  background: repeating-linear-gradient(
    45deg,
    var(--ks-berry) 0,
    var(--ks-berry) 2px,
    transparent 2px,
    transparent 8px
  );
  opacity: 0.55;
}

/* ==========================================================================
   8. CLOSING CARD (Just Married Retro Car)
   ========================================================================== */
.ks-closing-card {
  padding: 0;
  background: var(--ks-cream-card);
}

.ks-closing-stage {
  position: relative;
  width: 100%;
}

.ks-closing-car-img {
  width: 100%;
  height: auto;
  display: block;
}

.ks-closing-inner-overlay {
  position: absolute;
  top: clamp(85px, 18vw, 130px);
  left: 28px;
  right: 28px;
  bottom: clamp(150px, 30vw, 210px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.ks-closing-tag {
  font-family: var(--ks-font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ks-olive-dark);
  margin-bottom: 4px;
}

.ks-closing-heading {
  font-family: var(--ks-font-title);
  font-size: clamp(22px, 5.5vw, 29px);
  font-weight: 700;
  color: var(--ks-berry);
  line-height: 1.18;
  margin-bottom: 8px;
}

.ks-closing-poem {
  font-family: var(--ks-font-sans);
  font-size: 12.5px;
  color: var(--ks-ink-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ks-closing-signatures {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ks-font-hand);
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  color: var(--ks-ink);
}

.ks-sig-heart {
  color: var(--ks-berry);
  font-size: 0.7em;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.ks-global-footer {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 24px 16px;
  color: var(--ks-muted);
}

.ks-footer-monogram {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ks-olive);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ks-font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--ks-olive-dark);
  margin-bottom: 4px;
}

.ks-footer-couple {
  font-family: var(--ks-font-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ks-ink-soft);
}

.ks-footer-hall,
.ks-footer-brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   DESKTOP 2-COLUMN LAYOUT (≥860px)
   (Exact Match to Reference Image 2: Two Side-by-Side Cards on Meadow/Tulip Background)
   ========================================================================== */
@media (min-width: 860px) {
  .ks-invitation-content {
    padding: 48px 24px 80px;
  }

  .ks-layout-container {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
  }

  .ks-global-footer {
    max-width: 960px;
  }

  .ks-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ks-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .ks-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(50, 42, 32, 0.18);
  }
}

@media (min-width: 1200px) {
  .ks-layout-container {
    max-width: 1020px;
    gap: 36px;
  }
}
