:root {
  --ivory: #FFFAF4;
  --paper: #FFFDF9;
  --blush: #681E21;
  --blush-deep: #5F282E;
  --sage: #8A9A7E;
  --ink: #4A3F35;
  --ink-soft: #7A6D5E;
  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;
  --font-script-alt: 'Pinyon Script', cursive;
}


* { box-sizing: border-box; }

html { margin: 0; padding: 0; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-display);
  padding-bottom: 70px; /* keep content above the fixed bottom navbar */
}


img { max-width: 100%; display: block; }

/* ---------- COVER PAGE ---------- */
.cover-page {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  background: #2a0f14;
}

/* ---------- INVITE CONTENT (hidden until envelope opened) ---------- */
.invite-content {
  display: none;
  opacity: 0;
}
.invite-content.revealed {
  display: block;
  animation: inviteReveal 0.8s ease forwards;
}
@keyframes inviteReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


.envelope-full {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  display: block;
}
.envelope-full:focus-visible {
  outline: 3px solid #FFFAF4;
  outline-offset: -6px;
}
.envelope-bg-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.envelope-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.envelope-eyebrow {
  position: absolute;
  top: 9%;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  color: #FFFAF4;
  font-family: var(--font-display);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  animation: shiftIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}
.envelope-names {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  color: #FBF3E7;
  font-family: var(--font-script-alt);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  text-shadow: 0 2px 14px rgba(0,0,0,0.3);
  animation: shiftIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s backwards;
}
.envelope-names .amp {
  margin: 0 0.25em;
  color: #E7C9BE;
}
.envelope-open-label {
  position: absolute;
  top: 89%;
  left: 0;
  right: 0;
  text-align: center;
  color: #FFFAF4;
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: clamp(0.75rem, 1.6vw, 1.05rem);
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  animation: fadeIn 1.1s ease 0.9s backwards;
}

@keyframes shiftIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cover-hint {
  position: absolute;
  bottom: 1.75rem;
  bottom: max(1.75rem, env(safe-area-inset-bottom) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  color: #FFFAF4;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  pointer-events: none;
  margin: 0;
  width: 90%;
  text-align: center;
}

@media (max-width: 480px) {
  .envelope-eyebrow {
    top: 22%;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
  }
  .envelope-names {
    top: 28%;
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }
  .envelope-open-label {
    top: 82%;
    letter-spacing: 0.22em;
    font-size: clamp(1rem, 5vw, 1.3rem);
  }
  .cover-hint { font-size: 0.75rem; }
}

.corner { position: absolute; width: 110px; height: 110px; opacity: 0.85; }
.corner-tl { top: 0; left: 0; }
.corner-br { bottom: 0; right: 0; }
.vine { fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; }
.bud { fill: var(--blush); }

.eyebrow {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--blush);
  margin: 0 0 1.2rem;
}
.eyebrow.light { color: #f0e4d8; }
.eyebrow.arabic { direction: rtl; font-size: 1rem; letter-spacing: 0; }

.couple-names {
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
.couple-names span { display: block; }
.couple-names .amp {
  font-family: var(--font-script-alt);
  font-size: 0.55em;
  color: var(--blush-deep);
  margin: 0.1em 0;
}
.couple-names.small { font-size: clamp(2rem, 6vw, 2.6rem); }
.couple-names.light { color: #fff; }

.cover-date {
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
}
.cover-date.light { color: #f0e4d8; }

.open-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  background: var(--blush-deep);
  color: #fff;
  border: none;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(185, 127, 115, 0.35);
}
.open-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(185, 127, 115, 0.45); }
.open-btn:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; }

.cover-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

body.opening .envelope-full { animation: fadeOut 0.7s ease forwards; }
@keyframes fadeOut {
  to { opacity: 0; transform: scale(0.97); }
}

/* ---------- INVITATION PAGE ---------- */
.hero-envelope-header {
  background: linear-gradient(180deg, #F3ECE1 0%, var(--ivory) 100%);
  padding: 3.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: center;
}
.hero-envelope-img {
  width: 100%;
  max-width: 620px;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(74,63,53,0.18));
}
@media (max-width: 600px) {
  .hero-envelope-img {
    max-width: calc(100% + 2.5rem);
    width: calc(100% + 2.5rem);
    margin-left: -1.25rem;
  }
}

.hero-photo {
  position: relative;
  min-height: 60vh;
  background: linear-gradient(180deg, rgba(74,63,53,0.15), rgba(74,63,53,0.55)),
              url('assets/hero.jpg') center/cover no-repeat, var(--ink);
  display: flex;
  align-items: flex-end;
}
.hero-overlay { padding: 3rem 1.5rem; text-align: center; width: 100%; }

.mute-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--blush-deep);
  font-size: 1.1rem;
  cursor: pointer;
}
.mute-btn.muted { opacity: 0.5; }

main { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 3.5rem 0; text-align: center; }
.section-eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--blush);
  margin-bottom: 1.5rem;
}

/* ---------- COUNTDOWN ---------- */
.countdown-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
  text-transform: uppercase;
}
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.count-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 600;
  color: var(--blush-deep);
  line-height: 1;
  letter-spacing: -0.01em;
}
.count-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.count-sep {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4.2rem);
  font-weight: 300;
  color: var(--blush-deep);
  line-height: 1;
  padding: 0 clamp(4px, 1.5vw, 14px);
  /* Align the colon vertically with the numbers */
  margin-top: 0.05em;
  opacity: 0.7;
}


.letter-card {
  background: var(--paper);
  border: 1px solid #ECE2D2;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(74,63,53,0.06);
}
.flower-divider { width: 160px; margin: 0 auto 1.5rem; }
.letter-kicker { font-family: var(--font-script); font-size: 1.8rem; color: var(--blush-deep); margin: 0 0 1.2rem; }
.letter-family { font-size: 1.15rem; line-height: 1.8; color: var(--blush); margin: 0 0 1.5rem; }
.letter-body { font-size: 1.15rem; line-height: 1.8; color: var(--ink); margin: 0 0 1.5rem; }
.letter-signoff { color: var(--ink-soft); }
.script { font-family: var(--font-script-alt); font-size: 1.6rem; color: var(--blush-deep); }
.script.large { font-size: 2.2rem; }

.details-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.detail-item { border-top: 1px solid #ECE2D2; padding-top: 1rem; }
.detail-label { font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blush); margin: 0 0 0.3rem; }
.detail-value { font-size: 1.2rem; margin: 0; }
.map-link { color: var(--blush-deep); text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid var(--blush-deep); padding-bottom: 2px; }

/* ---------- VENUE POLAROID ---------- */
.venue-polaroid {
  margin: 2.5rem auto 0;
  max-width: 340px;
  background: var(--paper);
  padding: 0.9rem 0.9rem 1.4rem;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(74,63,53,0.14);
  transform: rotate(-1.2deg);
}
.venue-photo-slot {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ECE2D2;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.venue-photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.venue-pill {
  display: inline-block;
  background: var(--blush-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
}

/* ---------- POLAROID GALLERY GRID ---------- */
.polaroid-grid {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 1.6rem;
  padding: 1rem 0;
}
.polaroid {
  display: block;
  margin: 0 auto;
  flex: 0 1 380px;
  width: 380px;
  max-width: 90%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(74,63,53,0.22));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.polaroid:hover {
  transform: scale(1.05) rotate(0deg) !important;
  filter: drop-shadow(0 16px 26px rgba(74,63,53,0.3));
  z-index: 5;
  position: relative;
}
.p1 { transform: rotate(-2deg); }
.p2 { transform: rotate(3deg); }
.p3 { transform: rotate(-4deg); }
.p4 { transform: rotate(2deg); }
.p5 { transform: rotate(-1.5deg); }
.p6 { transform: rotate(4deg); }
.p7 { transform: rotate(-3deg); }
.p8 { transform: rotate(1.5deg); }

@media (max-width: 600px) {
  .polaroid-grid { gap: 1.4rem 1rem; }
  .polaroid { flex-basis: 100%; width: 100%; max-width: 100%; }
}

/* ===== Bigger polaroid for laptop & desktop ===== */
@media (min-width: 992px) {

  .polaroid-grid{
      max-width: 900px;
  }

  .polaroid{
      width: 620px;
      max-width: 100%;
      flex-basis: 620px;
  }

}

/* ---------- THANK YOU SECTION (curtain photo + monogram) ---------- */
.thankyou-section {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  background: url('assets/footer-background.png') center/cover no-repeat;
}
.thankyou-overlay { max-width: 520px; margin: 0 auto; }
.section-eyebrow.light { color: #FFFAF4; }

.monogram {
  position: relative;
  width: 150px;
  height: 178px;
  margin: 1rem auto 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dua-arabic {
  font-size: 1.3rem;
  line-height: 2;
  color: #FFFAF4;
  margin: 0 0 1.5rem;
  direction: rtl;
}
.thankyou-message {
  color: #FFFAF4;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 2.2rem;
}
.thankyou-heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFAF4;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}
.script.large.light { color: #FFFAF4; }

.rsvp-intro { color: var(--ink-soft); margin-bottom: 2rem; }
.rsvp-form { display: grid; gap: 1.2rem; text-align: left; }
.rsvp-form label { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #DCD0BC;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.rsvp-form input:focus, .rsvp-form select:focus, .rsvp-form textarea:focus {
  outline: 2px solid var(--blush);
  outline-offset: 1px;
}
.submit-btn {
  font-family: var(--font-display);
  font-size: 1.05rem;
  background: var(--blush);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.submit-btn:hover { filter: brightness(1.05); }
.form-status { min-height: 1.2em; font-size: 0.9rem; color: var(--blush-deep); text-align: center; }

.footer { text-align: center; padding: 3rem 1rem 4rem; color: var(--ink-soft); }

@media (min-width: 560px) {
  .details-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.opening .cover-wrap { animation: none; }
  .envelope-eyebrow, .envelope-names, .envelope-open-label { animation: none; opacity: 1; transform: none; }
}

/* --- Added Features --- */
.hero-envelope-header {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}
.hero-envelope-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.letter-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease, transform 1.5s ease;
}
.letter-card.animate-in {
    opacity: 1;
    transform: scale(1);
}

.letter-body {
    opacity: 0;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ALWAYS-VISIBLE BOTTOM NAVBAR ===== */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 400;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -1px 0 rgba(104,30,33,0.12), 0 -4px 20px rgba(0,0,0,0.08);
  border-top: 1px solid rgba(104,30,33,0.1);
}

.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blush);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 24px;
  border-radius: 12px;
  transition: background 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nav-icon-btn:active {
  transform: scale(0.92);
  background: rgba(104,30,33,0.07);
}
.nav-icon-btn svg {
  flex-shrink: 0;
}

/* ===== UNIFIED MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74, 63, 53, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 500;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-card {
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  animation: modalSlideUp 0.3s cubic-bezier(.22,.68,0,1.2);
}
@keyframes modalSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blush-deep);
}
.modal-title--spaced { margin-bottom: 1.4rem; }
.modal-address {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 20px;
}
.modal-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 80px;
  padding: 14px 8px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.modal-action-btn:active {
  transform: scale(0.94);
}
.btn-whatsapp { background: #25D366; box-shadow: 0 4px 14px rgba(37,211,102,0.35); }
.btn-phone    { background: var(--sage); box-shadow: 0 4px 14px rgba(138,154,126,0.35); }
.btn-waze     { background: #05C8F7; box-shadow: 0 4px 14px rgba(5,200,247,0.35); color: #1a1a2e; }
.btn-gmaps    { background: #EA4335; box-shadow: 0 4px 14px rgba(234,67,53,0.35); }

.modal-close-btn {
  background: none;
  border: 1px solid rgba(104,30,33,0.25);
  color: var(--blush);
  padding: 8px 28px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: background 0.18s;
}
.modal-close-btn:hover {
  background: rgba(104,30,33,0.06);
}

/* ===== CONTACT LIST (multi-person) ===== */
.contact-modal-card {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  overflow-y: auto;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(104,30,33,0.08);
}
.contact-row:last-child { border-bottom: none; }
.contact-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1 1 0;
  min-width: 0;
}
.contact-role {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.contact-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blush-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.contact-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.contact-icon-btn:active { transform: scale(0.9); opacity: 0.85; }
.contact-icon-btn.btn-whatsapp { background: #25D366; }
.contact-icon-btn.btn-phone    { background: var(--sage); }



/* ---------- MUTE BUTTON ---------- */
.mute-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  background: rgba(255,250,244,0.85);
  border: 1px solid var(--blush);
  color: var(--blush);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, opacity 0.2s;
}
.mute-btn.muted {
  opacity: 0.45;
}
.mute-btn.muted::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 22px;
  background: var(--blush);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* ---------- TAP-TO-PLAY BANNER ---------- */
.tap-to-play {
  position: fixed;
  bottom: 80px;          /* sit above the mobile nav bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(104, 30, 33, 0.88);
  color: #fffaf4;
  border-radius: 30px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 20px rgba(104,30,33,0.35);
  animation: slideUpFade 0.5s ease both;
  white-space: nowrap;
}
.tap-to-play .tap-icon {
  font-size: 1.1rem;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes slideUpFade {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ========= WISHES / UCAPAN TICKER ========= */
.wishes-subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: -0.8rem;
  margin-bottom: 1.8rem;
}

.wishes-wrapper {
  position: relative;
  overflow: hidden;
  /* bleed past the main padding so cards touch the screen edge */
  margin-left: -1.25rem;
  margin-right: -1.25rem;
}

/* Fade masks on left and right edges */
.wishes-wrapper::before,
.wishes-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.wishes-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--ivory) 20%, transparent);
}
.wishes-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--ivory) 20%, transparent);
}

.wishes-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 1rem 1.25rem;
  animation: wishesScroll 35s linear infinite;
  will-change: transform;
  cursor: grab;
}
.wishes-track:hover  { animation-play-state: paused; }
.wishes-track:active { cursor: grabbing; }

@keyframes wishesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wish-card {
  flex-shrink: 0;
  width: 220px;
  background: var(--paper);
  border: 1px solid #EDE3D3;
  border-radius: 14px;
  padding: 1.3rem 1.4rem 1.1rem;
  box-shadow: 0 4px 18px rgba(74,63,53,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wishes-track:hover .wish-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(74,63,53,0.13);
}

.wish-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
  flex: 1;
  margin: 0 0 0.9rem;
  /* clamp long messages */
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wish-name {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blush-deep);
}

.wish-placeholder-card {
  opacity: 0.5;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---------- CALENDAR MODAL BUTTON COLOURS ---------- */
.btn-gcal   { background: #1a73e8; color: #fff; }
.btn-gcal:hover { background: #1557b0; }

.btn-apple  { background: #1c1c1e; color: #fff; border: none; }
.btn-apple:hover { background: #3a3a3c; }

.btn-outlook { background: #0078d4; color: #fff; }
.btn-outlook:hover { background: #005fa3; }