/* ==========================================================================
   Glass Garden Green — wedding invitation
   Rebuilt 1:1 from chungdoi.com glass-garden-green theme
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "DFVN New Eddy";
  src: url("../fonts/DFVN-NewEddy-Regular.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fz Qellia";
  src: url("../fonts/Fz_Qellia_Fix.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alex Brush";
  src: url("../fonts/AlexBrush-Regular.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "UNI Chu truyen thong";
  src: url("../fonts/UNI_Chu_truyen_thong.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Uchen";
  src: url("../fonts/Uchen-Regular.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Regular.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Theme tokens ---------- */
:root {
  --primary: #47613e;
  --secondary: #35452f;
  --text-secondary: rgba(53, 69, 47, 0.8);
  --glass: rgba(255, 255, 255, 0.4);
  --soft-line: rgba(71, 97, 62, 0.35);
  --glass-blur: blur(7px) saturate(1.08);
  --glass-border: 1px solid rgba(255, 255, 255, 0.35);
  --glass-shadow:
    inset 1.5px 1.5px 2px rgba(255, 255, 255, 0.45),
    inset -1.5px -1.5px 3px rgba(120, 140, 110, 0.12),
    0 18px 50px -6px rgba(53, 69, 47, 0.30),
    0 6px 20px 2px rgba(53, 69, 47, 0.14);
  --font-couple: "DFVN New Eddy", "Fz Qellia", cursive;
  --font-heading: "Times New Roman", Times, serif;
  --font-body: "Baskerville", "Libre Baskerville", "Times New Roman", serif;
  --font-accent: "Lora", "Times New Roman", serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--secondary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body.cover-open { overflow: hidden; }
img { max-width: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }

/* ==========================================================================
   Page wrapper (Vy)
   ========================================================================== */
.page-outer {
  display: flex;
  width: 100%;
  justify-content: center;
  overflow-x: clip;
  background: #fff;
  scrollbar-width: none;
}
.page-outer::-webkit-scrollbar { display: none; }

.page-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  isolation: isolate;
  overflow: visible;
  background-color: #eef3e8;
  background-image: url("../images/floral-background.webp");
  background-repeat: repeat;
  background-size: 180% auto;
  background-position: top left;
  color: var(--secondary);
}
@media (min-width: 768px) {
  .page-card {
    max-width: 900px;
    overflow: hidden;
    border: 1px solid #47613e22;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 110px;
}
@media (min-width: 768px) {
  .hero { padding-top: 88px; padding-bottom: 150px; }
}
.hero-holder {
  position: relative;
  width: 62%;
  max-width: 250px;
}
.hero-oval {
  position: relative;
  z-index: 20;
  width: 100%;
  aspect-ratio: 239 / 368;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 500px;
  padding: 0 20px;
  text-align: center;
  background-color: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--primary);
}
@media (min-width: 768px) { .hero-oval { gap: 16px; } }
.hero-name {
  width: 100%;
  line-height: 1;
  font-family: var(--font-couple);
  font-size: clamp(26px, 7.4vw, 38px);
}
.hero-amp {
  line-height: 1;
  font-family: "Alex Brush", cursive;
  font-size: clamp(22px, 6vw, 32px);
  opacity: 0.9;
}
.hero-flower {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 46%);
  width: 135%;
  height: auto;
  object-fit: contain;
  z-index: 30;
}

/* ==========================================================================
   Main glass panel
   ========================================================================== */
.panel-holder {
  position: relative;
  isolation: isolate;
  margin: 0 24px 10px;
}
@media (min-width: 768px) { .panel-holder { margin: 0 26px 10px; } }
.panel-flower2 {
  pointer-events: none;
  position: absolute;
  top: -58px;
  right: -40px;
  width: 44%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
  z-index: 20;
  transform: rotate(-15.78deg);
}
@media (min-width: 768px) {
  .panel-flower2 { top: -78px; right: -64px; max-width: 244px; }
}
.glass-panel {
  position: relative;
  z-index: 10;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 42%;
  background-color: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
@media (min-width: 768px) {
  .glass-panel { gap: 28px; padding-top: 40px; }
}

.section {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 0 16px;
}
@media (min-width: 768px) { .section { padding: 0 32px; } }

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  text-transform: uppercase;
  text-align: center;
}
@media (min-width: 768px) { .section-title { font-size: 26px; } }

/* ---------- Ceremony ---------- */
.flower3 {
  pointer-events: none;
  position: absolute;
  width: 46%;
  max-width: none;
  height: auto;
  object-fit: contain;
  z-index: 20;
  will-change: transform;
}
.flower3-left { left: -12%; bottom: -2%; }
.flower3-right { right: -10%; top: 48%; }

.ceremony-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 768px) { .ceremony-inner { gap: 28px; } }

.announcement {
  position: relative;
  text-align: center;
  font-size: 15px;
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body);
  color: var(--primary);
}
@media (min-width: 768px) { .announcement { font-size: 17px; } }

.couple {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
@media (min-width: 768px) { .couple { gap: 16px; } }
.couple-name {
  width: 80%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 48px;
  font-family: "Fz Qellia", serif;
  font-weight: normal;
  color: var(--primary);
  font-size: clamp(40px, 11vw, 43px);
}
@media (min-width: 768px) {
  .couple-name { line-height: 64px; font-size: 58px; }
}
.couple-birthorder {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  font-family: "Uchen", serif;
}
.couple-amp {
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
  font-family: "UNI Chu truyen thong", "Times New Roman", serif;
}
@media (min-width: 768px) { .couple-amp { font-size: 40px; } }

/* ---------- Reception / party ---------- */
.party-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.party-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-family: var(--font-body);
  color: var(--secondary);
  width: 100%;
}
@media (min-width: 768px) { .party-info { gap: 20px; } }
.party-at {
  margin-top: 16px;
  font-size: 15px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 600;
}
@media (min-width: 768px) { .party-at { font-size: 18px; } }
.party-time {
  font-size: 20px;
  color: var(--primary);
}
@media (min-width: 768px) { .party-time { font-size: 30px; } }
.party-daterow {
  display: flex;
  align-items: center;
  gap: 24px;
}
.party-datepart {
  font-size: 12px;
  text-transform: uppercase;
}
.party-datepart.right { text-align: right; }
.party-datepart.left { text-align: left; }
@media (min-width: 768px) { .party-datepart { font-size: 16px; } }
.party-day {
  font-size: 30px;
  color: var(--primary);
}
@media (min-width: 768px) { .party-day { font-size: 40px; } }
.party-datediv {
  width: 1px;
  height: 24px;
  background-color: var(--secondary);
  opacity: 0.6;
}
@media (min-width: 768px) { .party-datediv { height: 32px; } }
.party-year { font-size: 18px; color: var(--secondary); }
@media (min-width: 768px) { .party-year { font-size: 24px; } }

.party-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.party-countdown-title {
  font-size: 15px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.04em;
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 600;
}
@media (min-width: 768px) { .party-countdown-title { font-size: 18px; } }
.party-countdown-value {
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: var(--secondary);
}
@media (min-width: 768px) { .party-countdown-value { font-size: 18px; } }

/* mini calendar */
.calendar-frame {
  position: relative;
  margin: 32px auto 0;
  width: 100%;
  max-width: 330px;
  border-radius: 28px;
  border: 1px solid var(--secondary);
  padding: 20px;
}
@media (min-width: 768px) {
  .calendar-frame { margin-top: 40px; max-width: 400px; padding: 28px; }
}
.mini-calendar {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  color: var(--primary);
}
.mini-calendar .cal-header {
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 27%, transparent);
}
@media (min-width: 768px) { .mini-calendar .cal-header { font-size: 14px; } }
.mini-calendar .cal-daynames {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--primary);
}
.mini-calendar .cal-dayname {
  text-align: center;
  padding: 6px 0;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.6;
}
@media (min-width: 768px) { .mini-calendar .cal-dayname { font-size: 11px; } }
.mini-calendar .cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  padding: 8px 4px;
}
.mini-calendar .cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  font-size: 12px;
}
@media (min-width: 768px) {
  .mini-calendar .cal-cell { height: 34px; font-size: 13px; }
}
.mini-calendar .cal-highlight {
  position: relative;
  width: 26px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .mini-calendar .cal-highlight { width: 30px; height: 28px; }
}
.mini-calendar .cal-highlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mini-calendar .cal-highlight span {
  position: relative;
  z-index: 10;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 768px) { .mini-calendar .cal-highlight span { font-size: 12px; } }

.calendar-link-row {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.calendar-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--secondary);
  font-family: var(--font-heading);
  transition: opacity 0.2s;
}
.calendar-link-row a:hover { opacity: 0.7; }

.rsvp-row {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
}
@media (min-width: 768px) { .rsvp-row { margin-top: 32px; } }
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  transition: transform 0.15s;
}
@media (min-width: 768px) { .rsvp-btn { font-size: 16px; } }
.rsvp-btn:hover { transform: scale(1.03); }

/* ---------- Venue ---------- */
.venue { padding: 0; }
.venue-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0 24px 8px;
}
@media (min-width: 768px) { .venue-inner { gap: 16px; padding: 0 40px 8px; } }
.venue-address {
  margin: 0 auto;
  max-width: 24rem;
  text-align: center;
  font-size: 12px;
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--secondary);
  font-family: var(--font-body);
}
@media (min-width: 768px) { .venue-address { max-width: 420px; font-size: 14px; } }
.venue-map {
  width: 100%;
  max-width: 340px;
  margin-top: 8px;
  border-radius: 15px;
  height: 240px;
  overflow: hidden;
  border: 1px solid rgba(71, 97, 62, 0.35);
}
@media (min-width: 768px) { .venue-map { max-width: 480px; height: 300px; } }
.venue-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Guestbook ---------- */
.guestbook { padding: 0; }
.guestbook-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 8px 24px;
  color: var(--secondary);
  font-family: var(--font-body);
}
@media (min-width: 768px) { .guestbook-inner { padding: 8px 40px; } }
.guestbook-inner .section-title { text-align: center; }
.wish-form {
  margin: 24px auto 0;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) { .wish-form { max-width: 600px; } }
.wish-form-card {
  border-radius: 16px;
  border: 1px solid var(--soft-line);
  background-color: #ffffffcc;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wish-name-row { margin-bottom: 16px; }
.wish-form-card input[type="text"],
.wish-form-card textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #47613e88;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--primary);
  background-color: #fff;
  outline: none;
  font-family: var(--font-body);
}
.wish-form-card textarea { resize: none; display: block; }
.wish-toolbar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 12px;
}
.wish-submit {
  border-radius: 9999px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background-color: var(--primary);
  transition: transform 0.15s;
  font-family: var(--font-body);
}
.wish-submit:hover { transform: scale(1.05); }
.wish-submit:disabled { cursor: not-allowed; opacity: 0.6; }
.wish-success {
  margin: 24px auto 0;
  max-width: 600px;
  border-radius: 8px;
  border: 1px solid rgba(71, 97, 62, 0.6);
  background-color: #eef0e7;
  color: var(--primary);
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wish-list {
  margin: 32px auto 0;
  width: 100%;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
}
@media (min-width: 768px) { .wish-list { max-width: 600px; } }
.wish-card {
  border-radius: 12px;
  border: 1px solid var(--soft-line);
  background-color: #ffffffcc;
  padding: 16px;
  font-size: 14px;
}
.wish-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.wish-card-name { font-weight: 600; color: var(--primary); }
.wish-card-time { font-size: 12px; opacity: 0.7; }
.wish-card p { margin-top: 8px; line-height: 1.6; }
.wish-empty {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Footer ---------- */
.page-footer {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
}
.thankyou {
  white-space: pre-line;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--primary);
  font-family: var(--font-body);
}
@media (min-width: 768px) { .thankyou { font-size: 16px; } }
.footer-mark {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}
@media (min-width: 768px) { .footer-mark { margin-top: 24px; } }

.panel-flower5 {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: 150%;
  max-width: none;
  height: auto;
  object-fit: contain;
  z-index: 5;
}

/* ==========================================================================
   Cover / envelope
   ========================================================================== */
.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef3e8 url("../images/floral-background.webp") center / 180% auto repeat;
}
@media (min-width: 768px) {
  .cover { background-size: 60% auto; }
}
.cover.done { display: none; }
.cover-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  background: rgba(255, 255, 255, 0.12);
}
.cover-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cover-ambient .particle { position: absolute; top: -30px; }
.cover-burst {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.cover-burst .particle {
  position: absolute;
  left: 50%;
  top: 50%;
}

.cover-envelope { position: relative; z-index: 10; }
.cover-envelope.away {
  animation: envelope-away 0.8s ease-in forwards;
}
.cover-card-holder {
  position: relative;
  width: 310px;
}
@media (min-width: 640px)  { .cover-card-holder { width: 340px; } }
@media (min-width: 768px)  { .cover-card-holder { width: 520px; } }
@media (min-width: 1024px) { .cover-card-holder { width: 600px; } }

.cover-seal {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  background: radial-gradient(circle at 30% 30%, #47613e, rgb(41, 67, 32));
  --shadow-color: rgba(71, 97, 62, 0.5);
  box-shadow: 0 4px 20px rgba(71, 97, 62, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: seal-pulse 2s ease-in-out infinite;
}
.cover-seal.break {
  animation: seal-break 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.cover-seal-heart { width: 28px; height: 28px; fill: #fff; }
.cover-seal-ring {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  border: 3px solid #47613e;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 29;
  animation: seal-ring 0.6s ease-out forwards;
}

.cover-card {
  position: relative;
  border-radius: 8px;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.45),
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(71, 97, 62, 0.15);
}
.cover-card-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(6px) saturate(1.08);
  backdrop-filter: blur(6px) saturate(1.08);
  border: 1px solid rgba(71, 97, 62, 0.15);
  clip-path: inset(0 round 8px);
}
.cover-card-bg.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(71, 97, 62, 0.2) 0%, transparent 70%);
}
.cover-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 112px 24px 56px;
}
@media (min-width: 768px) {
  .cover-content { padding-top: 96px; padding-bottom: 32px; }
}
.cover-names {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  color: var(--primary);
  font-family: var(--font-couple);
  font-weight: normal;
}
.cover-name {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 30px;
}
@media (min-width: 640px) { .cover-name { font-size: 36px; } }
.cover-amp {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-family: var(--font-body);
}
@media (min-width: 640px) { .cover-amp { font-size: 20px; } }
.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cover-divider-line { width: 40px; height: 1px; }
.cover-divider-line.left { background: linear-gradient(to right, transparent, var(--primary)); }
.cover-divider-line.right { background: linear-gradient(to left, transparent, var(--primary)); }
.cover-divider-mark { color: var(--primary); opacity: 0.7; font-size: 14px; }
.cover-date {
  color: var(--text-secondary);
  font-family: var(--font-accent);
  font-size: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-invite { margin-bottom: 24px; }
.cover-greeting {
  color: var(--text-secondary);
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 8px;
}
.cover-guest-box {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  margin-bottom: 8px;
  background-color: rgba(71, 97, 62, 0.08);
}
.cover-guest-box[hidden] { display: none; }
.cover-guest-box h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-accent);
}
@media (min-width: 640px) {
  .cover-guest-box h2 { font-size: 20px; font-weight: 500; }
}
.cover-invite-msg {
  color: var(--text-secondary);
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 300;
}
.cover-open-btn {
  position: relative;
  padding: 10px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(71, 97, 62, 0.35);
  font-family: var(--font-accent);
}
.cover-open-btn:disabled { cursor: not-allowed; }
.cover-open-shine {
  position: absolute;
  top: 0;
  height: 100%;
  width: 32px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s ease-in-out infinite;
}

/* decorative flowers on the cover card */
.cover-flower {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
}
.cover-flower img {
  pointer-events: none;
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.cover-flower.fly-tr {
  width: 52%;
  max-width: 260px;
  top: 0;
  right: 0;
  transform: translate(14%, -14%) rotate(-15deg);
}
.cover-flower.fly-tl {
  width: 52%;
  max-width: 260px;
  top: 0;
  left: 0;
  transform: translate(-14%, -14%) rotate(15deg);
}
.cover-flower.fly-tl img { transform: scaleX(-1); }
.cover-flower.fly-bottom {
  width: 96%;
  max-width: 440px;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 45%);
}
@media (min-width: 768px) {
  .cover-flower.fly-tr, .cover-flower.fly-tl { max-width: 300px; }
  .cover-flower.fly-bottom { max-width: 500px; }
}
.cover-flower.flying img {
  animation: dragon-fly-forward 1.2s ease-in forwards;
}
.cover-flower.fly-tl.flying img { --fly-scale-x: -1; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.rsvp-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(6px) saturate(1.5);
  backdrop-filter: blur(6px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 24px;
}
@media (min-width: 640px) { .rsvp-modal { padding: 32px; } }
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 26px;
  line-height: 1;
  color: #6b7280;
  z-index: 5;
}
.rsvp-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.rsvp-modal-sub {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}
.rsvp-form { display: flex; flex-direction: column; gap: 16px; }
.rsvp-field { display: flex; flex-direction: column; gap: 6px; }
.rsvp-field > label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.rsvp-field input[type="text"],
.rsvp-field input[type="number"],
.rsvp-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: box-shadow 0.15s;
  background: #fff;
}
.rsvp-field input:focus, .rsvp-field textarea:focus {
  box-shadow: 0 0 0 2px var(--primary);
  border-color: transparent;
}
.rsvp-options { display: flex; flex-direction: column; gap: 8px; }
.rsvp-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
}
.rsvp-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rsvp-option.selected { border-color: var(--primary); background: rgba(71, 97, 62, 0.06); }
.rsvp-option-circle {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9ca3af;
  transition: all 0.2s;
  flex-shrink: 0;
}
.rsvp-option-circle svg { width: 16px; height: 16px; }
.rsvp-option.selected .rsvp-option-circle { background: var(--primary); color: #fff; }
.rsvp-option-label { font-size: 14px; font-weight: 500; color: #374151; }
.rsvp-submit {
  margin-top: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  transition: all 0.2s;
}
.rsvp-submit:hover { transform: scale(1.02); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15); }
.rsvp-submit:active { transform: scale(0.98); }
.rsvp-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.rsvp-success { text-align: center; }
.rsvp-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 9999px;
  background: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rsvp-success-icon svg { width: 32px; height: 32px; }
.rsvp-success h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}
.rsvp-success-text {
  color: #4b5563;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rsvp-close-btn {
  margin-top: 24px;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  transition: all 0.2s;
}
.rsvp-close-btn:hover { transform: scale(1.02); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.15); }

/* ==========================================================================
   Music player
   ========================================================================== */
.music-player {
  position: fixed;
  bottom: 56px;
  right: 16px;
  z-index: 40;
}
.music-tooltip {
  position: absolute;
  bottom: 56px;
  right: 0;
  animation: bounce-gentle 2s ease-in-out infinite;
}
.music-tooltip[hidden] { display: none; }
.music-tooltip span {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  background-color: var(--primary);
  font-family: var(--font-accent);
}
.music-tooltip-arrow {
  position: absolute;
  bottom: -8px;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--primary);
}
.music-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--primary);
  opacity: 0.6;
  animation: ping-slow 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.music-ping[hidden] { display: none; }
.music-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}
.music-btn:hover { transform: scale(1.1); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.25); }
.music-btn:active { transform: scale(0.95); }
.music-disc {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #47613ecc, #47613e, #47613edd);
}
.music-disc.spinning { animation: spin-cd 3s linear infinite; }
.music-disc-ring {
  position: absolute;
  inset: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.music-disc-gloss {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(to top right, rgba(255,255,255,0.3), transparent, transparent);
}
.music-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.music-icon svg { width: 20px; height: 20px; }
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.music-bars[hidden] { display: none; }
.music-bars .bar {
  width: 4px;
  background: #fff;
  border-radius: 9999px;
}
.music-bars .b1 { animation: dance 0.4s ease-in-out infinite; }
.music-bars .b2 { animation: dance 0.4s ease-in-out infinite 0.1s; }
.music-bars .b3 { animation: dance 0.4s ease-in-out infinite 0.2s; }
.music-bars .b4 { animation: dance 0.4s ease-in-out infinite 0.3s; }

/* ==========================================================================
   Keyframes (extracted verbatim from the original)
   ========================================================================== */
@keyframes envelope-away {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  15%  { transform: translateY(10px) rotate(0.5deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(-2deg); opacity: 0; }
}
@keyframes particle-burst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(0deg); }
  15%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3) rotate(var(--rot-start, 15deg)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.6) rotate(var(--rot-end, 180deg)); }
}
@keyframes seal-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 4px 20px var(--shadow-color); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 6px 35px var(--shadow-color); }
}
@keyframes seal-break {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; filter: brightness(1); }
  30%  { transform: translate(-50%, -50%) scale(1.15) rotate(5deg); opacity: 0.9; filter: brightness(1.3); }
  60%  { transform: translate(-50%, -50%) scale(1.05) rotate(-3deg); opacity: 0.5; filter: brightness(1.5); }
  100% { transform: translate(-50%, -50%) scale(0) rotate(15deg); opacity: 0; filter: brightness(2); }
}
@keyframes seal-ring {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}
@keyframes shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
@keyframes dragon-fly-forward {
  0%   { transform: scale(var(--fly-scale-x, 1), 1); filter: blur(0px); opacity: 0.7; }
  40%  { transform: scale(calc(var(--fly-scale-x, 1) * 1.6), 1.6); filter: blur(2px); opacity: 0.5; }
  100% { transform: scale(calc(var(--fly-scale-x, 1) * 3), 3); filter: blur(10px); opacity: 0; }
}
@keyframes ambient-fall {
  0%   { transform: translateY(-8vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(48vh) translateX(var(--sway, 20px)) rotate(180deg); opacity: 0.6; }
  92%  { opacity: 0.45; }
  100% { transform: translateY(105vh) translateX(0) rotate(360deg); opacity: 0; }
}
@keyframes spin-cd {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dance {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}
@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.6; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-ambient, .cover-open-shine { display: none; }
  .cover-seal { animation: none; }
}
