@charset "UTF-8";

@font-face {
  font-family: "Marquis";
  src: url("/assets/Marquis-QpZuArfP.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-cream: #fffbf7;
  --bg-blush: #fdeff3;
  --rose-light: #f3b6c3;
  --rose-mid: #e5a0ae;
  --rose-deep: #c43360;
  --crimson-dark: #630c0c;
  --ink: #33252a;
  --ink-muted: #5a464e;
  --gold: #c9a35f;
  --gold-soft: #efc667;
  --ivory: #fffbf7;
  --font-script: "Great Vibes", "Alex Brush", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-didot: "Antic Didone", Didot, "Bodoni MT", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", serif;
  --font-urdu: "Noto Nastaliq Urdu", "Noto Naskh Arabic", "Amiri", serif;
}

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

[hidden] {
  display: none !important;
}

/* Global Rule 4.4: Single root scroll container on html, zero nested body scroll trap, natural momentum scroll */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y !important;
  -webkit-text-size-adjust: 100% !important;
  background-color: #12060b;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: var(--bg-cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Hard scroll lockdown ONLY during preloader or closed/playing curtain reveal */
html.is-locked,
html.is-locked body {
  overflow: hidden !important;
  overflow-y: hidden !important;
  touch-action: none !important;
  height: 100% !important;
  max-height: 100dvh !important;
}

/* EXPLICIT USER OVERRIDE FOR CLIENT ARCHIVAL: Allow native mobile long-press Download / Save on video & media */
video,
img {
  -webkit-touch-callout: default !important;
  -webkit-user-drag: element;
}

button, a, input, select, textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ======================== TWO-MODE REAL ASSET PRELOADER ======================== */
#yuvi-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fffdf9 0%, #fff4f6 65%, #fae4ea 100%);
  touch-action: none !important;
  overscroll-behavior: none;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

#yuvi-preloader.is-done {
  opacity: 0;
  pointer-events: none !important;
}

.yuvi-loader-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 51, 96, 0.16);
  border-top-color: #c43360;
  margin-bottom: 14px;
  animation: yuvi-spin 0.9s linear infinite;
}

.yuvi-loader-label {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #630c0c;
  line-height: 1.3;
  margin: 0;
}

.yuvi-loader-bar-bg {
  width: 150px;
  height: 1.5px;
  background: rgba(196, 51, 96, 0.14);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 13px;
}

.yuvi-loader-bar-fill {
  width: 0%;
  height: 100%;
  background: #c43360;
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

#yuvi-loader-pct {
  font-family: "Antic Didone", Didot, "Bodoni MT", Georgia, serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c43360;
  margin-top: 8px;
}

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

/* Hidden GPU rasterization warm-up shelf */
#yuvi-gpu-shelf {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.001;
  pointer-events: none;
  left: -9999px;
  top: 0;
}

/* ======================== FLOATING CONTROLS (STRICTLY HIDDEN BEFORE REVEAL) ======================== */
.floating-ui-hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Top Language Switcher ("Chunne ka Toggle") — Mounted below preloader max z-index */
.lang-toggle-wrap {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(14px, env(safe-area-inset-right, 14px));
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(229, 160, 174, 0.72);
  box-shadow: 0 6px 24px rgba(196, 51, 96, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  touch-action: manipulation;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

.lang-toggle-btn {
  position: relative;
  border: none;
  background: transparent;
  color: #5b2d3b;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-toggle-btn[data-lang="urdu"] {
  font-family: "Noto Naskh Arabic", "Amiri", serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 13px;
}

.lang-toggle-btn.is-active {
  background: linear-gradient(135deg, #de708d 0%, #c43360 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(196, 51, 96, 0.34);
}

/* Single Unified 38px Frosted Audio Controller (#loveinvite-sound-btn) */
#loveinvite-sound-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  z-index: 99990;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 251, 247, 0.72);
  background: rgba(196, 51, 96, 0.36);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(99, 12, 12, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  touch-action: manipulation;
  transition: transform 0.22s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.45s ease;
}

#loveinvite-sound-btn:hover {
  background: rgba(196, 51, 96, 0.56);
  transform: scale(1.06);
}

#loveinvite-sound-btn:active {
  transform: scale(0.94);
}

#loveinvite-sound-btn.is-playing {
  animation: sound-pulse 2.2s ease-in-out infinite;
}

#loveinvite-sound-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

@keyframes sound-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(196, 51, 96, 0.32), 0 0 0 0 rgba(229, 160, 174, 0.55); }
  55% { box-shadow: 0 4px 18px rgba(196, 51, 96, 0.32), 0 0 0 11px rgba(229, 160, 174, 0); }
}

/* ======================== SECTION 1: HERO CURTAIN VIDEO ======================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 45%, #2b0f1c 0%, #12060b 100%);
  overflow: hidden;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  overflow: hidden;
  background: #17080e;
  box-shadow: 0 0 55px rgba(0, 0, 0, 0.65);
}

@media (min-width: 640px) {
  .video-container {
    max-width: 560px;
  }
}

.hero-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto;
}

.hero-curtain-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(22, 7, 13, 0.36) 0%, rgba(16, 5, 10, 0.62) 100%);
  cursor: pointer;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
}

.hero-curtain-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}

.curtain-bismillah-top {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  color: rgba(255, 244, 232, 0.92);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.play-ring-btn {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 240, 235, 0.68);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: hero-pulse 2.2s infinite;
  box-shadow: 0 0 28px rgba(229, 160, 174, 0.32);
}

.play-ring-btn svg {
  width: 30px;
  height: 30px;
  color: #fffbf7;
  animation: tap-float 2s ease-in-out infinite;
}

.tap-open-label {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff6f2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.tap-open-sub {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.96rem;
  color: rgba(255, 224, 231, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes hero-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 224, 231, 0.55); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 22px rgba(255, 224, 231, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 224, 231, 0); }
}

@keyframes tap-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Hero Names Revealed Centered Inside Parted Pink Curtains — pointer-events: none so long-press saves video cleanly */
.text-overlay {
  position: absolute;
  top: calc(50% + 58px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  clip-path: inset(0 50%);
  pointer-events: none !important;
  transition: clip-path 2.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.3s ease;
}

.text-overlay.reveal {
  opacity: 1;
  clip-path: inset(0 0%);
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe3ea;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  margin-bottom: 8px;
  max-width: 100%;
  line-height: 1.4;
}

h1.hero-names-cursive {
  font-family: var(--font-script);
  font-size: clamp(2.55rem, 11vw, 3.6rem);
  font-weight: 400;
  line-height: 1.18;
  color: #ffffff;
  margin: 6px 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.82), 0 0 28px rgba(255, 117, 140, 0.65);
}

.hero-ampersand {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2rem, 8.5vw, 2.7rem);
  color: #ffd0da;
  text-shadow: 0 0 18px rgba(255, 117, 140, 0.85);
  margin: 2px 0;
  line-height: 1;
}

.ring-image {
  width: 86px;
  height: auto;
  margin-top: 10px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.hero-date-tag {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff6f3;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Subtle Floral Section Divider (from Fazleen) */
.floral-divider {
  position: relative;
  height: 0;
  z-index: 12;
  pointer-events: none;
}

.floral-divider img {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(560px, 92vw);
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
  filter: drop-shadow(0 6px 16px rgba(51, 37, 42, 0.14));
}

/* ======================== SECTION 2: BISMILLAH, COUPLE & HADITH ======================== */
.details-section {
  position: relative;
  background-color: var(--bg-cream);
  color: var(--ink);
  min-height: 78vh;
  padding: 76px 20px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.details-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  background: url("/assets/watermark-rose.png") center/contain no-repeat;
  opacity: 0.25;
  filter: blur(0.6px);
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.bismillah-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.65rem, 6vw, 2.2rem);
  font-weight: 400;
  color: var(--rose-mid);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.bismillah-meaning {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a686e;
  line-height: 1.7;
  margin-bottom: 26px;
}

.invite-lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.16rem, 4.2vw, 1.32rem);
  font-weight: 500;
  line-height: 1.78;
  color: var(--ink);
  max-width: 500px;
  margin: 0 auto 30px;
}

.couple-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--rose-light);
  border-radius: 18px;
  padding: 24px 20px;
  margin: 0 auto;
  max-width: 440px;
  box-shadow: 0 10px 32px rgba(229, 160, 174, 0.16);
}

.couple-role-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}

.couple-script-name {
  font-family: var(--font-script);
  font-size: clamp(2.7rem, 11vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}

.couple-card-line {
  width: 44px;
  height: 1px;
  background: var(--rose-light);
  margin: 12px auto 10px;
}

.couple-blessing-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: #6b555d;
  margin: 0;
}

.couple-join-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto;
}

.couple-join-amp span.line {
  width: 52px;
  height: 1px;
  background: var(--rose-light);
}

.couple-join-amp span.amp {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--rose-mid);
  line-height: 1;
}

.hadith-box {
  margin: 34px auto 0;
  max-width: 500px;
  padding: 22px 18px;
  background: rgba(229, 160, 174, 0.1);
  border-radius: 16px;
  border-inline-start: 4px solid var(--rose-mid);
  border-inline-end: 1px solid rgba(229, 160, 174, 0.24);
  box-shadow: 0 6px 20px rgba(229, 160, 174, 0.09);
}

.hadith-arabic {
  font-family: var(--font-arabic);
  font-size: 1.48rem;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 12px;
  direction: rtl;
}

.hadith-text {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: #46373c;
  line-height: 1.65;
  margin: 0 auto 8px;
}

.hadith-quote {
  display: block;
  margin-top: 6px;
  font-style: italic;
  font-size: 1.24rem;
  font-weight: 600;
  color: var(--ink);
}

.hadith-ref {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #846f76;
  margin-top: 10px;
}

/* ======================== SECTION 3: FUSED SCRATCH & COUNTDOWN OVER WEDS2 SKETCH VIDEO ======================== */
.scratch-section {
  position: relative;
  min-height: 100vh;
  padding: 82px 16px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #f6efe4;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: auto;
}

.scratch-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 245, 0.72) 0%,
    rgba(248, 238, 230, 0.6) 50%,
    rgba(255, 250, 245, 0.8) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.scratch-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.scratch-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 9.5vw, 3.5rem);
  font-weight: 400;
  color: var(--crimson-dark);
  line-height: 1.08;
  margin-bottom: 14px;
}

.scratch-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
}

.scratch-ornament::before,
.scratch-ornament::after {
  content: "";
  width: 44px;
  height: 1px;
  background: rgba(201, 163, 95, 0.78);
}

.scratch-ornament i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}

.reveal-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 18px;
}

.premium-reveal-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 999px;
  border: 2px solid #fffbf7;
  background: linear-gradient(135deg, #e5a0ae 0%, #c43360 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(196, 51, 96, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.35s ease;
}

.premium-reveal-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: rotate(25deg);
  animation: shimmer-pill 3.2s linear infinite;
  pointer-events: none;
}

.premium-reveal-btn:disabled {
  opacity: 0.88;
  cursor: default;
}

.premium-reveal-btn:disabled::after {
  animation: none;
}

@keyframes shimmer-pill {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Fazleen Ornate Baroque Scratch Frame + Inner Scratch Window */
.scratch-frame-shell {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1585 / 992;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
}

.scratch-frame-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none !important;
  user-select: none;
  z-index: 6;
  filter: drop-shadow(0 16px 38px rgba(51, 20, 32, 0.26));
}

/* Exact portal aligned inside Fazleen scratch-frame.webp (left=13.2%, right=13.2%, top=29.5%, bottom=19.9%) */
.scratch-wrap {
  position: absolute;
  left: 11.5%;
  right: 11.5%;
  top: 26%;
  bottom: 17%;
  z-index: 3;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at center, #fffdf9 0%, #fceef2 100%);
  box-shadow: inset 0 0 24px rgba(196, 51, 96, 0.14);
  user-select: none;
  -webkit-user-select: none;
}

.date-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  text-align: center;
  color: var(--ink);
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
}

.date-kicker {
  font-family: var(--font-sans);
  font-size: clamp(0.56rem, 2vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 4px;
}

.date-main {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 5.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--crimson-dark);
  margin-bottom: 4px;
}

.date-sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 2.8vw, 1.08rem);
  font-weight: 600;
  color: var(--ink-muted);
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  cursor: crosshair;
  touch-action: none !important;
  overscroll-behavior: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.scratch-canvas.is-revealed {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none !important;
}

.scratch-wrap.is-revealed {
  animation: date-celebrate 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes date-celebrate {
  40% {
    box-shadow: 0 0 38px rgba(196, 51, 96, 0.34), inset 0 0 24px rgba(201, 163, 95, 0.3);
    transform: scale(1.02);
  }
}

/* ======================== TEMPLATE 3 EXACT SPARKLES & CONFETTI BURST ======================== */
.scratch-glint-host {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.scratch-glint {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fffef8 22%, #efc667 62%, rgba(165, 118, 32, 0.25) 100%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 4px rgba(195, 150, 55, 0.95)) drop-shadow(0 1px 1.5px rgba(80, 55, 15, 0.48));
  animation: scratch-glint-fade 750ms ease-out forwards;
}

@keyframes scratch-glint-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.55) rotate(0deg);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-7px) scale(1.25) rotate(35deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-18px) scale(0.2) rotate(75deg);
  }
}

.scratch-confetti {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: visible;
  pointer-events: none;
  --burst-radius: clamp(130px, 40vw, 340px);
}

.scratch-confetti span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: calc(var(--size) * 1.5);
  border-radius: 1px;
  background: linear-gradient(145deg, #fffef6 10%, #e6bd64 48%, #9c7222 92%);
  box-shadow: 0 0 6px rgba(196, 152, 58, 0.9), 0 0 2px rgba(95, 70, 25, 0.6);
  animation: scratch-silver-burst var(--duration) cubic-bezier(0.15, 0.65, 0.25, 1) var(--delay) both;
}

.scratch-confetti span:nth-child(2n) {
  width: calc(var(--size) * 2.4);
  height: calc(var(--size) * 2.4);
  background: radial-gradient(circle, #fffef8 18%, #f0c96e 56%, #9e7320 96%);
  box-shadow: none;
  filter: drop-shadow(0 0 4px rgba(195, 150, 55, 0.9)) drop-shadow(0 1px 1.5px rgba(85, 58, 15, 0.5));
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

@keyframes scratch-silver-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(0) rotate(var(--angle)) translate(18px) rotate(0) scale(0.4);
  }
  15%, 62% {
    opacity: 1;
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(28px) rotate(var(--angle)) translate(calc(var(--burst-radius) * var(--distance))) rotate(var(--spin)) scale(0.55);
  }
}

.scratch-hint-note {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--rose-deep);
}

/* Countdown revealed directly below scratch card */
.hidden-countdown {
  margin-top: 28px;
  opacity: 0.95;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hidden-countdown.is-highlighted {
  transform: translateY(0);
}

.save-date-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 6px;
}

.save-date-numeral {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 6.5vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: 0.08em;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(66px, 88px));
  justify-content: center;
  gap: 10px;
}

.time-block {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(243, 182, 195, 0.65);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(196, 51, 96, 0.08);
}

.time-block strong {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--rose-deep);
}

.time-block span {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-top: 6px;
}

/* ======================== SECTION 4: EVENTS & VENUES (4 REAL EVENTS) ======================== */
.venue-section {
  background-color: var(--bg-cream);
  padding: 74px 18px 56px;
  text-align: center;
}

.venue-container {
  max-width: 440px;
  margin: 0 auto;
}

.section-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose-mid);
  margin-bottom: 6px;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 8vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
}

.event-card {
  background: #ffffff;
  border: 1px solid var(--rose-light);
  border-radius: 18px;
  padding: 26px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 26px rgba(229, 160, 174, 0.12);
  text-align: center;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.event-pill.primary {
  background: linear-gradient(135deg, #e5a0ae 0%, #c43360 100%);
  color: #ffffff;
}

.event-pill.soft {
  background: #faf2e6;
  color: var(--ink);
  border: 1px solid var(--rose-light);
}

.event-icon-img {
  width: 78%;
  max-width: 215px;
  max-height: 175px;
  object-fit: contain;
  margin: 6px auto 16px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(229, 160, 174, 0.35));
  transition: transform 0.3s ease;
}

.event-icon-img:hover {
  transform: scale(1.04);
}

.event-date-heading {
  font-family: var(--font-serif);
  font-size: 1.58rem;
  font-weight: 600;
  color: var(--ink);
  margin: 4px 0;
}

.event-time-badge {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rose-deep);
  margin: 6px 0 12px;
}

.event-card-divider {
  width: 60px;
  height: 1px;
  background: var(--rose-light);
  margin: 10px auto 12px;
}

.event-venue-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0;
}

.event-venue-sub {
  font-size: 0.9rem;
  color: #5c4b52;
  margin: 0 0 16px;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5a0ae 0%, #c43360 100%);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(196, 51, 96, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.map-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(196, 51, 96, 0.36);
}

/* ======================== SECTION 5: DUA, RSVP & THANK YOU OVER FLORAL BACKDROP ======================== */
.floral-closing-band {
  position: relative;
  background-image: linear-gradient(
      to bottom,
      var(--bg-cream) 0%,
      rgba(255, 255, 255, 0.7) 120px,
      rgba(255, 255, 255, 0.68) 100%
    ),
    url("/assets/bg-rose.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 50px 20px 36px;
  text-align: center;
}

.dua-banner {
  max-width: 500px;
  margin: 0 auto 46px;
  padding: 26px 20px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.88);
  border: 1px solid rgba(229, 160, 174, 0.55);
  box-shadow: 0 10px 28px rgba(196, 51, 96, 0.09);
}

.dua-arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.38rem, 4.8vw, 1.72rem);
  color: var(--crimson-dark);
  line-height: 1.7;
  direction: rtl;
  margin-bottom: 10px;
}

.dua-translit {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.dua-meaning {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  color: #46373c;
  line-height: 1.65;
}

.rsvp-section {
  max-width: 410px;
  margin: 0 auto 42px;
}

.rsvp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 6.5vw, 2.15rem);
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 8px;
}

.rsvp-sub {
  font-size: 0.92rem;
  color: #7c3b50;
  margin-bottom: 20px;
}

.rsvp-name-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--rose-light);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 0.92rem;
  text-align: center;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-name-input:focus {
  border-color: var(--rose-deep);
  box-shadow: 0 0 0 3px rgba(196, 51, 96, 0.14);
}

.rsvp-buttons {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.rsvp-btn {
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-btn.yes {
  background: linear-gradient(135deg, #d84b76 0%, #c43360 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(196, 51, 96, 0.28);
}

.rsvp-btn.no {
  background: #ffe4ec;
  color: #c43360;
  border: 1px solid #f3b6c3;
}

.rsvp-btn:active {
  transform: scale(0.97);
}

.rsvp-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--rose-light);
  display: none;
}

.rsvp-feedback.is-shown {
  display: block;
  animation: fade-up-sm 0.45s ease both;
}

.rsvp-feedback p {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.rsvp-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #1f8a4c;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(31, 138, 76, 0.25);
}

@keyframes fade-up-sm {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Thank You Envelope Card */
.thankyou-section {
  max-width: 310px;
  margin: 0 auto 10px;
}

.thankyou-card-wrapper {
  position: relative;
  width: 100%;
}

.thankyou-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.thankyou-card-text {
  position: absolute;
  top: 67%;
  left: 10%;
  width: 72%;
  transform: translateY(-50%) rotate(-7.5deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ty-main {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 7.5vw, 2.35rem);
  color: var(--rose-deep);
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.95);
  line-height: 1.1;
}

.ty-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.82rem;
  color: #8f2245;
  margin-top: 3px;
}

/* ======================== CLEAN LOVE INVITE STUDIO FOOTER ======================== */
.loveinvite-footer {
  background-color: #11080c;
  padding: 24px 62px 26px;
  text-align: center;
  border-top: 1px solid rgba(229, 160, 174, 0.22);
}

.loveinvite-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--rose-mid);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.loveinvite-heart {
  color: #ff6b8b;
  font-size: 0.88rem;
}

/* ======================== SCROLL REVEAL & URDU RTL REFINEMENTS ======================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating-heart {
  position: fixed;
  width: 12px;
  height: 12px;
  background-color: #ff6d89;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 99995;
  animation: float-heart 1s ease-out forwards;
}

.floating-heart::before,
.floating-heart::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ff6d89;
}

.floating-heart::before { top: -6px; left: 0; }
.floating-heart::after { top: 0; left: -6px; }

@keyframes float-heart {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(45deg); }
  100% { opacity: 0; transform: translateY(-48px) scale(1.5) rotate(45deg); }
}

/* Confetti global canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none !important;
  z-index: 99985;
}

/* Urdu mode Nastaliq/Naskh line-height & legibility adjustments */
html[data-lang="urdu"] .bismillah-meaning,
html[data-lang="urdu"] .invite-lead,
html[data-lang="urdu"] .couple-role-tag,
html[data-lang="urdu"] .couple-blessing-sub,
html[data-lang="urdu"] .hadith-text,
html[data-lang="urdu"] .hadith-quote,
html[data-lang="urdu"] .hadith-ref,
html[data-lang="urdu"] .scratch-eyebrow,
html[data-lang="urdu"] .scratch-title,
html[data-lang="urdu"] .scratch-hint-note,
html[data-lang="urdu"] .save-date-eyebrow,
html[data-lang="urdu"] .date-kicker,
html[data-lang="urdu"] .date-main,
html[data-lang="urdu"] .date-sub-row,
html[data-lang="urdu"] .time-block span,
html[data-lang="urdu"] .section-kicker,
html[data-lang="urdu"] .venue-title,
html[data-lang="urdu"] .event-pill,
html[data-lang="urdu"] .event-date-heading,
html[data-lang="urdu"] .event-time-badge,
html[data-lang="urdu"] .event-venue-name,
html[data-lang="urdu"] .event-venue-sub,
html[data-lang="urdu"] .map-btn,
html[data-lang="urdu"] .dua-meaning,
html[data-lang="urdu"] .rsvp-title,
html[data-lang="urdu"] .rsvp-sub,
html[data-lang="urdu"] .rsvp-btn,
html[data-lang="urdu"] .rsvp-name-input,
html[data-lang="urdu"] .rsvp-feedback p,
html[data-lang="urdu"] .rsvp-wa-btn,
html[data-lang="urdu"] .ty-sub,
html[data-lang="urdu"] .hero-kicker,
html[data-lang="urdu"] .hero-date-tag,
html[data-lang="urdu"] .tap-open-label {
  font-family: var(--font-urdu);
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 2.05;
}

html[data-lang="urdu"] .scratch-title {
  font-size: clamp(1.75rem, 6.5vw, 2.35rem);
  line-height: 1.9;
}

html[data-lang="urdu"] .ty-main {
  font-family: var(--font-urdu);
  font-size: 1.9rem;
  line-height: 1.75;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-animate { opacity: 1; transform: none; }
}
