:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-tamil: "Noto Serif Tamil", Georgia, serif;

  --ink-950: #14040a;
  --maroon-deep: #1b0308;
  --maroon-dark: #26050e;
  --maroon: #7a1f2b;
  --maroon-glow: #9e2338;
  --gold: #d4af37;
  --gold-rich: #e8c77e;
  --gold-pale: #f7e7bf;
  --gold-soft: #f4e5b8;
  --cream: #fffaf0;
  --ivory: #fcf8f0;
  --card: #ffffff;
  --ink: #321d19;
  --muted: #8c716b;
  --border: #eddcb1;
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink-950);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

body.locked { overflow: hidden; }

.tamil {
  font-family: var(--font-tamil);
  letter-spacing: 0.04em;
}

.pillayar {
  width: 76px; height: 76px; display: block;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-rich);
  background: #fff;
  box-shadow: 0 0 16px rgba(232, 199, 126, 0.5);
}

.hero-pillayar { display: flex; justify-content: center; }

.opener-top {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  margin: 0; color: var(--gold-soft);
  font-family: var(--font-tamil);
}

.blessing {
  color: var(--gold-soft);
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.kolam {
  color: var(--gold-rich);
  margin: 1rem 0;
  letter-spacing: 0.2em;
}

.kolam-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold-rich);
  margin: 0.6rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}
.kolam-rule::before,
.kolam-rule::after {
  content: "";
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(232, 199, 126, 0.8), transparent);
}

.center { text-align: center; }
.note { color: var(--muted); font-size: 0.85rem; }

.cta-row {
  display: flex; gap: 0.65rem; flex-wrap: wrap; justify-content: center; margin: 0.8rem 0;
}

.btn {
  display: inline-block; text-decoration: none; cursor: pointer; font-family: var(--font-body);
  border: 1.5px solid var(--maroon); color: var(--maroon);
  padding: 0.6rem 1.15rem; border-radius: 999px; font-weight: 600; background: #fff; font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.btn.primary {
  background: linear-gradient(135deg, #8a2130 0%, #5c1420 100%);
  color: #fff9ed;
  border-color: rgba(232, 199, 126, 0.6);
  box-shadow: 0 4px 14px rgba(122, 31, 43, 0.4);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #9e2338 0%, #6e1624 100%);
  box-shadow: 0 6px 20px rgba(122, 31, 43, 0.6);
}
.btn.small { font-size: 0.88rem; padding: 0.45rem 0.95rem; }

/* ---------- Continuous story layout ---------- */
#story { position: relative; z-index: 1; }

.ambience {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.ambient-petal {
  position: absolute; top: -8vh; opacity: 0.55;
  animation: drift linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(120vh) rotate(320deg); }
}

.panel {
  position: relative; z-index: 1;
  min-height: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 4.5rem 1.2rem 4rem;
  overflow: visible;
}
.panel-inner { width: 100%; max-width: 620px; margin: 0 auto; position: relative; z-index: 2; }
.panel-inner.wide { max-width: 1080px; }

/* Continuous Fluid Section Transitions */
.panel.maroon {
  background:
    radial-gradient(circle at 50% 18%, rgba(158, 35, 56, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(21, 2, 7, 0.85) 0%, rgba(38, 7, 14, 0.92) 50%, rgba(21, 2, 7, 0.85) 100%);
  color: #fff8eb;
}

.panel.cream {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 245, 220, 0.15) 0%, transparent 70%),
    linear-gradient(180deg, rgba(26, 11, 16, 0.9) 0%, rgba(36, 16, 22, 0.95) 50%, rgba(26, 11, 16, 0.9) 100%);
  color: #fff8eb;
}

/* Scroll reveal */
.rise {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.panel.in .rise { opacity: 1; transform: none; }

/* Traditional Temple Emblems */
.emblem-wrap {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 0.85rem;
}
.temple-emblem {
  width: clamp(100px, 20vw, 128px);
  height: clamp(84px, 16vw, 106px);
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35));
  animation: emblem-bob 4.5s ease-in-out infinite;
}
@keyframes emblem-bob {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 8px 22px rgba(212, 175, 55, 0.55)); }
}

.polaroid {
  position: relative; background: #fff;
  padding: 8px 8px 6px; margin: 0.15rem auto 0.6rem; max-width: 300px;
  transform: rotate(-2deg); border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.polaroid img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 20%;
  display: block; border-radius: 2px; background: #fff;
}
.polaroid-caption {
  display: block; text-align: center; font-style: italic;
  font-family: var(--font-display);
  font-size: 0.92rem; color: var(--maroon); padding: 0.25rem 0 0;
  letter-spacing: 0.04em;
}
.tape {
  position: absolute; top: -11px; width: 62px; height: 22px;
  background: rgba(232, 199, 126, 0.55);
  border-left: 1px dashed rgba(122, 31, 43, 0.4);
  border-right: 1px dashed rgba(122, 31, 43, 0.4);
}
.tape.t1 { left: -12px; transform: rotate(-38deg); }
.tape.t2 { right: -12px; transform: rotate(38deg); }

.date-sticker {
  position: absolute; top: -18px; right: -8px; z-index: 5;
  width: 86px; height: 86px; border-radius: 50%;
  background: linear-gradient(135deg, #8a2130 0%, #4a0d1a 100%);
  color: #ffeec2;
  border: 2px dashed var(--gold-rich);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.05em;
  transform: rotate(10deg);
  animation: sticker-bob 4s ease-in-out infinite;
}
@keyframes sticker-bob {
  0%, 100% { transform: rotate(10deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.06); }
}

.ceremony-photo {
  width: 100%; max-width: 480px; aspect-ratio: 16 / 9; display: block; margin: 0 auto;
  object-fit: cover; object-position: center 25%;
  border-radius: 8px; border: 1.5px solid var(--gold-rich);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ---------- Realistic & Artistic Tiruchendur Temple Scene (Cover) ---------- */
#cover { display: block; padding: 0; }
.hero-inner {
  padding: 4.5rem 1rem 3.5rem;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.hero-inner .hero-card { width: 100%; }
#cover .panel-inner { position: relative; z-index: 5; }

.scene {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink-950);
}

.temple-vista {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

.temple-artwork {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  transform-origin: center center;
  animation: temple-kenburns 26s ease-in-out infinite alternate;
}
@keyframes temple-kenburns {
  0% { transform: scale(1.0) translateY(0); }
  50% { transform: scale(1.04) translateY(-1%); }
  100% { transform: scale(1.02) translateY(0.5%); }
}

.sun-radiance {
  position: absolute;
  left: 82%; top: 54%;
  width: min(480px, 60vw); height: min(480px, 60vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 238, 180, 0.45) 0%, rgba(250, 195, 85, 0.22) 35%, rgba(250, 195, 85, 0.05) 58%, transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: sun-radiance-pulse 5.5s ease-in-out infinite alternate;
}
@keyframes sun-radiance-pulse {
  0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1.0; transform: translate(-50%, -50%) scale(1.1); }
}

.wave-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background:
    radial-gradient(ellipse at 75% 85%, rgba(255, 225, 140, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(240, 195, 90, 0.1) 40%, rgba(18, 4, 9, 0.45) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: wave-shimmer 6s ease-in-out infinite alternate;
}
@keyframes wave-shimmer {
  0% { opacity: 0.6; }
  100% { opacity: 0.95; }
}

.temple-sea-mist {
  position: absolute; left: 0; right: 0; bottom: 0; height: 36%;
  background: linear-gradient(180deg, transparent 0%, rgba(26, 4, 11, 0.35) 40%, rgba(26, 4, 11, 0.82) 80%, var(--maroon-dark) 100%);
  pointer-events: none;
}

.vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 40%, rgba(20, 4, 10, 0.42) 74%, rgba(14, 2, 7, 0.8) 100%),
    linear-gradient(180deg, rgba(14, 2, 7, 0.65) 0%, transparent 22%, transparent 65%, rgba(14, 2, 7, 0.78) 100%);
}

.spark {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  z-index: 3;
  background: radial-gradient(circle, #fff7db 0%, #f4c86e 70%, transparent 100%);
  box-shadow: 0 0 8px rgba(255, 230, 150, 0.9);
  pointer-events: none;
  animation: spark-twinkle 3.2s ease-in-out infinite;
}
.spark.s1 { left: 82%; top: 54%; animation-delay: -0.4s; }
.spark.s2 { left: 74%; top: 62%; animation-delay: -1.2s; }
.spark.s3 { left: 88%; top: 72%; animation-delay: -2.1s; }
.spark.s4 { left: 68%; top: 76%; animation-delay: -0.7s; }
.spark.s5 { left: 92%; top: 66%; animation-delay: -1.8s; }
.spark.s6 { left: 58%; top: 82%; animation-delay: -2.7s; }
@keyframes spark-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 0.95; transform: scale(1.3); }
}

/* Royal Invitation Card on Cover (inspired by yesh-weds-kee) */
#cover .card.hero-card {
  position: relative;
  background: rgba(28, 5, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 199, 126, 0.85);
  box-shadow:
    inset 0 0 0 4.5px #24040d,
    inset 0 0 0 6px rgba(232, 199, 126, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: clamp(1.4rem, 4svh, 2.2rem) clamp(1.1rem, 3vw, 2rem);
  text-align: center;
}

#cover .card.hero-card::before,
#cover .card.hero-card::after {
  display: block;
  content: "❋";
  position: absolute; left: 50%; transform: translateX(-50%);
  background: #24040d;
  color: var(--gold-rich);
  border: 1px solid rgba(232, 199, 126, 0.6);
  border-radius: 50%;
  width: 22px; height: 22px;
  line-height: 20px;
  text-align: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 4;
}
#cover .card.hero-card::before { top: -11px; }
#cover .card.hero-card::after { bottom: -11px; }

/* Corner Auspicious Bindi Dots (Gold & Kumkum) */
.corner-dots {
  position: absolute;
  display: flex;
  gap: 4px;
  z-index: 4;
}
.corner-dots i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.corner-dots i:first-child {
  background: var(--gold-rich);
  box-shadow: 0 0 4px rgba(232, 199, 126, 0.8);
}
.corner-dots i:last-child {
  background: #c8102e;
  box-shadow: 0 0 4px rgba(200, 16, 46, 0.8);
}
.corner-dots.top-left { top: 12px; left: 12px; }
.corner-dots.top-right { top: 12px; right: 12px; }
.corner-dots.bottom-left { bottom: 12px; left: 12px; }
.corner-dots.bottom-right { bottom: 12px; right: 12px; }

#cover .hero-card h1 { margin: 0.2rem 0; line-height: 1.15; }

#cover .hero-card .name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.5vw, 3.1rem);
  font-weight: 600;
  color: var(--gold-pale);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

#cover .hero-card .weds {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3.6vw, 1.6rem);
  font-weight: 500;
  color: var(--gold-rich);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0.2rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

#cover .hero-card .date {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff9ed;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

#cover .hero-card .venue-short {
  margin: 0.15rem 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

#cover .hero-card .tamil {
  color: var(--gold-rich);
  font-size: 1.1rem;
  margin: 0.2rem 0 0;
}

#cover .hero-card .pillayar { width: 48px; height: 48px; margin: 0 auto; }
#cover .hero-text { padding: 0.4rem 0.2rem; }

#cover .cover-modes {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin: 0.5rem 0 0;
}

#cover .btn.primary {
  background: linear-gradient(135deg, #e8be48 0%, #c49526 100%);
  border-color: rgba(255, 238, 180, 0.8);
  color: #2b060f;
  font-weight: 700;
}
#cover .btn.primary:hover {
  background: linear-gradient(135deg, #f7ce5a 0%, #d4a230 100%);
}
#cover .btn {
  background: rgba(24, 4, 10, 0.65);
  border-color: rgba(232, 199, 126, 0.7);
  color: #fff9ed;
}

.scroll-cue {
  margin: 0.9rem 0 0; color: var(--gold-soft); font-size: 0.85rem; letter-spacing: 0.12em;
  animation: cue-bounce 1.8s ease-in-out infinite;
}
.scroll-cue span { display: inline-block; animation: cue-drop 1.8s ease-in-out infinite; }
@keyframes cue-bounce { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes cue-drop { 50% { transform: translateY(5px); } }

/* Section Cards */
.card {
  position: relative;
  border-radius: 6px;
  padding: clamp(1.4rem, 4vw, 2.2rem) clamp(1.2rem, 3.5vw, 2rem);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

.card::before, .card::after {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem; line-height: 18px; width: 20px; height: 20px;
  text-align: center; border-radius: 50%;
}
.card::before { top: -10px; }
.card::after { bottom: -10px; }

.panel.maroon .card {
  background: rgba(36, 6, 14, 0.92);
  color: #fff8eb;
  border: 1px solid rgba(232, 199, 126, 0.75);
  box-shadow:
    inset 0 0 0 4px #26050e,
    inset 0 0 0 5.5px rgba(232, 199, 126, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.65);
}
.panel.maroon .card::before, .panel.maroon .card::after {
  content: "❋"; background: #26050e; color: var(--gold-rich);
  border: 1px solid rgba(232, 199, 126, 0.5);
}
.panel.maroon .card h2 {
  color: var(--gold-pale);
  border-bottom: 1.5px solid rgba(232, 199, 126, 0.4);
}

.panel.cream .card {
  background: radial-gradient(circle at 50% 0, #ffffff 0%, #fffdf8 70%);
  color: var(--ink);
  border: 1px solid rgba(201, 162, 39, 0.8);
  box-shadow:
    inset 0 0 0 4px #fffcf5,
    inset 0 0 0 5.5px rgba(201, 162, 39, 0.4),
    0 16px 40px rgba(70, 15, 25, 0.12);
}
.panel.cream .card::before, .panel.cream .card::after {
  content: "❋"; background: #fffcf5; color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.5);
}
.panel.cream .card h2 {
  color: var(--maroon);
  border-bottom: 1.5px solid rgba(201, 162, 39, 0.4);
}

.card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 0.45rem;
}

/* Widgets */
.timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; text-align: center; }
.timer div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 199, 126, 0.35);
  border-radius: 12px;
  padding: 0.75rem 0.2rem;
}
.panel.cream .timer div {
  background: #fff;
  border-color: var(--border);
}
.timer span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-pale);
  font-variant-numeric: tabular-nums;
}
.panel.cream .timer span { color: var(--maroon); }
.timer small {
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}
.panel.cream .timer small { color: var(--muted); }

.families { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.8rem; }
.families h3 {
  margin: 0 0 0.3rem; font-size: 1.05rem; font-family: var(--font-display); color: var(--maroon); font-weight: 600;
}
.families p { margin: 0; font-size: 0.92rem; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-left: 2px solid var(--gold-rich); padding: 0 0 1rem 1rem; margin-left: 0.4rem; position: relative; }
.timeline li::before {
  content: "◆"; position: absolute; left: -0.58rem; top: 0;
  color: var(--gold-rich); background: #26050e; font-size: 0.8rem;
}
.timeline strong { display: block; color: var(--gold-pale); font-family: var(--font-display); font-size: 1.15rem; }
.timeline span { font-size: 0.92rem; font-weight: 600; color: var(--gold-soft); }
.timeline em { display: block; font-style: normal; color: #eedbc2; font-size: 0.9rem; }

.travel { margin: 0; padding-left: 1.1rem; }
.travel li { margin-bottom: 0.65rem; }

.map-wrap { margin-top: 0.8rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 210px; border: 0; display: block; }

.finale { text-align: center; margin-top: 1.4rem; color: var(--gold-soft); }
.finale p { margin: 0.4rem 0; font-family: var(--font-display); font-size: 1.1rem; }
.finale .small { font-size: 0.85rem; opacity: 0.8; font-family: var(--font-body); }

/* Chrome Navigation & Audio */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold-rich); z-index: 40; box-shadow: 0 0 8px rgba(232, 199, 126, 0.8); }
.music-btn {
  position: fixed; top: 12px; right: 12px; z-index: 40;
  background: rgba(38, 5, 14, 0.92); color: #ffeec2;
  border: 1px solid var(--gold-rich); border-radius: 999px;
  padding: 0.5rem 0.85rem; font-size: 0.9rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.music-btn svg { width: 20px; height: 20px; display: block; }
.music-btn .icon-flute { display: none; }
.music-btn.is-playing .icon-flute { display: block; }
.music-btn.is-playing .icon-mute { display: none; }

/* Sealed-Envelope Opener */
.opener {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.1rem; padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, #701323 0%, #35040f 55%, var(--ink-950) 100%);
  transition: opacity 0.75s ease, visibility 0.75s;
  overflow: hidden;
}
.opener.open { opacity: 0; visibility: hidden; pointer-events: none; }
.opener-hint {
  color: var(--gold-soft); margin: 0; font-size: 0.92rem; opacity: 0.95;
  font-family: var(--font-display); letter-spacing: 0.05em;
}

.envelope {
  position: relative;
  width: min(340px, 84vw); aspect-ratio: 3 / 2.1;
  perspective: 1200px;
  transition: transform 0.9s ease, opacity 0.9s ease;
}
.env-back {
  position: absolute; inset: 0; border-radius: 10px;
  background: #3f0917;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(232, 199, 126, 0.35);
}
.letter {
  position: absolute; left: 5%; right: 5%; top: 7%; bottom: 13%;
  background: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: 6px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0.9rem 0.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.25, 1), border-radius 0.9s ease;
}
.letter h2 {
  margin: 0.3rem 0; color: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1.3;
}
.letter h2 span {
  display: block; font-size: 0.75rem; font-style: italic;
  letter-spacing: 0.35em; text-transform: uppercase; color: #a07c1f;
}
.letter .gold-dark { color: #a07c1f; margin: 0; font-size: 0.85rem; font-family: var(--font-display); font-style: italic; }
.letter .open-sub { color: var(--muted); margin: 0.2rem 0 0; font-size: 0.85rem; }
.kolam.small { font-size: 0.8rem; margin: 0.4rem 0 0; }

.env-front {
  position: absolute; inset: 0; z-index: 3; border-radius: 10px;
  background: linear-gradient(180deg, #6b1424 0%, #460916 100%);
  clip-path: polygon(0 32%, 50% 58%, 100% 32%, 100% 100%, 0 100%);
  border-bottom: 1.5px solid var(--gold-rich);
}
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 56%; z-index: 4;
  background: linear-gradient(180deg, #7c1a2c 0%, #520d1c 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.65s ease, z-index 0s 0.3s;
  border-bottom: 1.5px solid var(--gold-rich);
}
.seal-btn {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  width: 112px; height: 112px; border-radius: 50%;
  border: 2.5px solid var(--gold-rich);
  background: radial-gradient(circle at 50% 35%, #fffdf6, #f3e2b6 78%);
  cursor: pointer; padding: 7px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation: sealGlow 2.2s ease-in-out infinite;
}
.seal-btn img {
  width: 100%; height: 100%; display: block;
  border-radius: 50%; object-fit: contain; background: #fff;
}
.envelope.unsealed .seal-btn { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.envelope.flap-open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.letter-out .letter { transform: translateY(-62%); z-index: 5; }
.envelope.expand .letter { transform: translateY(-62%) scale(1.02); border-radius: 10px; }
.envelope.expand { transform: scale(2.6); opacity: 0; }

.petal {
  position: absolute; top: 42%; font-size: 1.15rem; z-index: 6;
  animation: petalFall 1.8s ease-in forwards; pointer-events: none;
}
@keyframes petalFall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), 46vh) rotate(320deg); opacity: 0; }
}
@keyframes sealGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(201, 162, 39, 0)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 230, 150, 0.95)); }
}

/* Responsive Media Queries */
@media (max-width: 480px) {
  .families { grid-template-columns: 1fr; }
  .timer span { font-size: 1.45rem; }
  .panel { padding: 4rem 0.75rem 3.5rem; }
  .card { padding: 1.2rem 1rem; }
  .polaroid { max-width: 270px; }
  .date-sticker { right: 0; }
  .hero-inner { padding: 3.8rem 0.75rem 2.8rem; }
  .chapter-title { font-size: 1.65rem; }
  .cinema-topbar { padding: 0.6rem 0.8rem; }
  .cinema-chapter-label { font-size: 0.82rem; }
  .cinema-bottombar { padding: 0.8rem 0.9rem 1.2rem; }
  .sub-tamil { font-size: 1.02rem; }
  .sub-english { font-size: 0.88rem; }
  .comic-caption-strip { padding: 0.6rem 0.9rem; gap: 8px; }
  .comic-caption-strip p { font-size: 0.88rem; }
  .engagement-strip { flex-direction: column; text-align: center; gap: 0.5rem; }
  .blessing-trigger-btn { font-size: 0.92rem !important; padding: 0.8rem 1.4rem !important; }
}

@media (min-width: 768px) {
  .panel-inner { max-width: 660px; }
  .panel-inner.wide { max-width: 840px; }
  .card { padding: 2.2rem 2.4rem; }
  .card h2 { font-size: 1.65rem; }
  .timer { gap: 1rem; }
  .timer span { font-size: 2.3rem; }
  .hero-inner { padding-top: 5.5rem; }
  .hero-card {
    display: grid; grid-template-columns: 0.95fr 1.05fr;
    gap: 1.6rem; align-items: center; text-align: left;
  }
  #cover .card.hero-card {
    text-align: left;
  }
  .hero-card .polaroid { margin: 0; max-width: none; }
  .hero-card .hero-pillayar { justify-content: flex-start; }
  .hero-card h1 { margin: 0.3rem 0; }
  .hero-card .cta-row, .hero-card .cover-modes { justify-content: flex-start; }
  .hero-card .name { font-size: 2.3rem; }
  .hero-card .scroll-cue { text-align: left; }
  .polaroid { max-width: 420px; }
  .date-sticker { width: 98px; height: 98px; font-size: 0.85rem; }
  .envelope { width: min(420px, 60vw); }
  .map-wrap iframe { height: 260px; }
  #venue .card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 1.4rem; align-items: center; }
  #venue .card h2 { grid-column: 1 / -1; }
  #venue .card p { grid-column: 1; }
  #venue .card .cta-row { grid-column: 1; justify-content: flex-start; }
  #venue .map-wrap { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .comic-showcase { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 2rem; align-items: center; }
  .ceremonies-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   CINEMA / VIDEO WALKTHROUGH MODE HUD
   ========================================================================== */
.cinema-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.cinema-active .cinema-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.cinema-active {
  user-select: none;
}

/* 2.39:1 Letterbox Bars */
.cinema-topbar {
  background: linear-gradient(180deg, rgba(8, 2, 5, 0.96) 0%, rgba(14, 3, 7, 0.88) 75%, transparent 100%);
  border-bottom: 1px solid rgba(232, 199, 126, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-out);
}

body.cinema-active .cinema-topbar {
  transform: translateY(0);
}

.cinema-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cinema-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e8384f;
  box-shadow: 0 0 10px #e8384f;
  animation: recPulse 1.4s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.cinema-film-title {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-pale);
  text-transform: uppercase;
}

.cinema-chapter-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--gold-rich);
  font-style: italic;
  text-shadow: 0 0 12px rgba(232, 199, 126, 0.4);
}

.cinema-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 199, 126, 0.4);
  color: var(--gold-pale);
  font-size: 0.82rem;
  font-family: var(--font-body);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.cinema-close-btn:hover {
  background: rgba(232, 199, 126, 0.2);
  border-color: var(--gold-rich);
  color: #fff;
  transform: scale(1.04);
}

.cinema-bottombar {
  background: linear-gradient(0deg, rgba(8, 2, 5, 0.97) 0%, rgba(14, 3, 7, 0.9) 70%, transparent 100%);
  border-top: 1px solid rgba(232, 199, 126, 0.35);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.8);
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

body.cinema-active .cinema-bottombar {
  transform: translateY(0);
}

.cinema-subtitles {
  text-align: center;
  max-width: 680px;
  min-height: 4.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.35s ease;
}

.sub-tamil {
  margin: 0;
  font-family: var(--font-tamil);
  color: #ffe6a3;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 230, 163, 0.35);
}

.sub-english {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: #fff9eb;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.cinema-hud-controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 580px;
}

.cinema-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 199, 126, 0.4);
  color: var(--gold-pale);
  font-size: 0.9rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.cinema-ctrl-btn:hover {
  background: rgba(232, 199, 126, 0.25);
  border-color: var(--gold-rich);
  color: #fff;
  transform: scale(1.1);
}

.cinema-ctrl-btn.play-pause {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--gold-rich), #b3851e);
  color: var(--ink-950);
  border: none;
  font-weight: bold;
}

.cinema-progress-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.cinema-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-rich));
  box-shadow: 0 0 10px rgba(232, 199, 126, 0.8);
  transition: width 0.3s ease;
}

/* Audio waves animation */
.cinema-audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 3.5px;
  height: 20px;
  padding: 0 4px;
}

.wave-bar {
  width: 3px;
  background: var(--gold-rich);
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}
.wave-bar.w1 { height: 7px; animation-delay: 0.1s; }
.wave-bar.w2 { height: 16px; animation-delay: 0.35s; }
.wave-bar.w3 { height: 11px; animation-delay: 0.2s; }
.wave-bar.w4 { height: 18px; animation-delay: 0.45s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Cinema CTA Button on Hero */
.cinema-cta {
  background: linear-gradient(135deg, #a82338 0%, #63121f 100%) !important;
  border: 1.5px solid var(--gold-rich) !important;
  box-shadow: 0 6px 20px rgba(168, 35, 56, 0.4), 0 0 16px rgba(232, 199, 126, 0.35) !important;
  font-weight: 600;
  gap: 8px;
  animation: cinemaBtnPulse 3s ease-in-out infinite;
}

@keyframes cinemaBtnPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(168, 35, 56, 0.4), 0 0 14px rgba(232, 199, 126, 0.3); }
  50% { box-shadow: 0 8px 26px rgba(168, 35, 56, 0.65), 0 0 24px rgba(255, 230, 163, 0.65); transform: translateY(-1px); }
}

.play-icon-glow {
  color: var(--gold-rich);
  font-size: 0.95rem;
  display: inline-block;
  transform: translateX(1px);
}

.cinema-cta-sec {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--gold-soft) !important;
  color: var(--gold-pale) !important;
}

/* ==========================================================================
   COMIC STORY & GRAPHIC NOVEL CHAPTER STYLING
   ========================================================================== */
.chapter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.chapter-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-rich);
  background: rgba(232, 199, 126, 0.12);
  border: 1px solid rgba(232, 199, 126, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.chapter-title {
  margin: 0;
  font-size: 2.1rem;
  color: var(--gold-pale);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.chapter-sub {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.gold-tint {
  background: radial-gradient(circle at 50% 20%, #2b0b14 0%, #150308 100%);
  color: var(--cream);
}

.comic-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.comic-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0205;
  border: 3px solid rgba(232, 199, 126, 0.75);
  box-shadow: 0 0 0 4px #1b0409, 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.comic-frame:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 0 0 4px #1b0409, 0 22px 50px rgba(232, 199, 126, 0.25);
}

.comic-art {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

body.cinema-active .comic-art {
  transform: scale(1.06);
}

.comic-tape {
  position: absolute;
  top: -6px;
  width: 60px;
  height: 22px;
  background: rgba(255, 248, 225, 0.5);
  border: 1px dashed rgba(200, 160, 80, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.comic-tape.t-left { left: 30px; transform: rotate(-4deg); }
.comic-tape.t-right { right: 30px; transform: rotate(5deg); }

.comic-caption-strip {
  background: linear-gradient(180deg, rgba(14, 3, 7, 0.85) 0%, rgba(8, 1, 4, 0.98) 100%);
  border-top: 1px solid rgba(232, 199, 126, 0.4);
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.caption-marker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-950);
  background: linear-gradient(135deg, var(--gold-rich), #d4af37);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.comic-caption-strip p {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #fff9eb;
}

/* Comic Speech Bubbles */
.comic-dialogues {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.speech-bubble {
  position: relative;
  background: rgba(255, 252, 242, 0.96);
  color: var(--ink);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--gold-rich);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.speech-bubble:hover {
  transform: translateY(-2px);
}

.speech-bubble .avatar-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.speech-bubble.groom .avatar-tag {
  background: #1e3a5f;
  color: #fff;
}

.speech-bubble.bride .avatar-tag {
  background: #871828;
  color: #fff;
}

.speech-bubble p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
  color: #241411;
  font-style: italic;
}

.comic-narrator {
  background: rgba(22, 5, 10, 0.75);
  border: 1px solid rgba(232, 199, 126, 0.5);
  border-radius: 14px;
  padding: 1.2rem 1.6rem;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.narrator-icon {
  color: var(--gold-rich);
  font-size: 1.1rem;
}

.comic-narrator p.tamil {
  margin: 0.4rem 0 0.2rem;
  font-size: 1.15rem;
  color: var(--gold-pale);
  font-weight: 600;
}

.comic-narrator p.narrator-en {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: #fff3db;
}

/* ==========================================================================
   CEREMONIES GRID & RECEPTION COMIC
   ========================================================================= */
.ceremonies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
}

.ceremony-comic-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ceremony-comic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.comic-frame-sm {
  position: relative;
  overflow: hidden;
  max-height: 240px;
  background: #0d0205;
}

.comic-frame-sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.ceremony-comic-card:hover .comic-frame-sm img {
  transform: scale(1.04);
}

.comic-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 3, 7, 0.88);
  border: 1px solid var(--gold-rich);
  color: var(--gold-pale);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.ceremony-details {
  padding: 1.4rem 1.6rem;
  color: var(--ink);
  background: #ffffff;
}

.ceremony-details h3 {
  margin: 0 0 0.4rem;
  color: var(--maroon);
  font-size: 1.35rem;
}

.ceremony-time {
  margin: 0;
  font-weight: 600;
  color: #7a1f2b;
  font-size: 0.96rem;
}

.ceremony-venue {
  margin: 0.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.ceremony-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #3b2823;
}

.engagement-strip {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: linear-gradient(135deg, #fffdf8, #fdf5e0);
  border: 1.5px solid var(--gold-rich);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  margin-top: 0.8rem;
}

.eng-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.eng-content h4 {
  margin: 0 0 0.2rem;
  color: var(--maroon);
  font-size: 1.1rem;
}

.eng-content p {
  margin: 0;
  font-size: 0.92rem;
  color: #3d2720;
}

/* ==========================================================================
   INTERACTIVE SHOWER BLESSINGS SHRINE & PARTICLES
   ========================================================================== */
.blessing-shrine {
  background: linear-gradient(135deg, #2b0b14 0%, #170409 100%);
  border: 2px solid var(--gold-rich);
  box-shadow: 0 0 24px rgba(232, 199, 126, 0.35);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.blessing-shrine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 199, 126, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.blessing-emoji {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 0 8px rgba(232, 199, 126, 0.6));
}

.blessing-header h3 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--gold-pale);
  letter-spacing: 0.04em;
}

.blessing-sub {
  margin: 0.35rem 0 1.2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.blessing-counter-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 199, 126, 0.4);
  border-radius: 12px;
  padding: 0.6rem 1.6rem;
  margin-bottom: 1.3rem;
}

.blessing-count-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffe6a3;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
  line-height: 1.1;
  text-shadow: 0 0 16px rgba(255, 230, 163, 0.6);
  transition: transform 0.2s ease;
}

.blessing-count-number.bump {
  transform: scale(1.15);
}

.blessing-count-label {
  font-size: 0.78rem;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blessing-trigger-btn {
  background: linear-gradient(135deg, #d4af37 0%, #b5861a 100%) !important;
  color: var(--ink-950) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: 999px !important;
  border: 2px solid #fff5cc !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.5), 0 0 18px rgba(255, 245, 204, 0.4) !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blessing-trigger-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.7), 0 0 24px rgba(255, 245, 204, 0.6) !important;
}

.blessing-trigger-btn:active {
  transform: scale(0.96);
}

.blessing-toast {
  min-height: 1.6rem;
  margin-top: 0.8rem;
  font-family: var(--font-tamil);
  color: #ffe6a3;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  transform: translateY(6px);
}

.blessing-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Akshadhai & Rose Petals Physics */
.akshadhai-grain {
  position: fixed;
  z-index: 1500;
  pointer-events: none;
  width: 7px;
  height: 9px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #fffde6, #f5c842 60%, #c49514 100%);
  box-shadow: 0 0 8px rgba(245, 200, 66, 0.8);
  animation: akshadhaiFly var(--anim-dur, 2.2s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes akshadhaiFly {
  0% {
    transform: translate(0, 0) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  30% {
    transform: translate(var(--dx), var(--dy-peak, -320px)) scale(1.1) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--dx) * 1.3), 105vh) scale(0.8) rotate(540deg);
    opacity: 0;
  }
}

.blessing-rose-petal {
  position: fixed;
  z-index: 1500;
  pointer-events: none;
  font-size: 1.45rem;
  animation: rosePetalShower var(--anim-dur, 2.5s) ease-in-out forwards;
}

@keyframes rosePetalShower {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.6);
    opacity: 1;
  }
  25% {
    transform: translate(var(--dx), var(--dy-peak, -260px)) rotate(90deg) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(calc(var(--dx) * 1.4), 105vh) rotate(420deg) scale(0.85);
    opacity: 0;
  }
}

/* WhatsApp CTA Button */
.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  border: 1.5px solid #70e69d !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4) !important;
  font-weight: 600;
}

.whatsapp-btn:hover {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   COMIC LAYOUTS FOR ALL PAGES
   ========================================================================== */

/* 1. Invitation Comic Layout */
.invitation-comic-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.inv-emblem-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0.8rem;
}

.temple-emblem.small {
  width: 44px;
  height: 44px;
}

.inv-lead {
  margin: 0;
  font-family: var(--font-tamil);
  color: var(--maroon);
  font-size: 1.35rem;
  font-weight: 700;
}

.inv-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  text-align: center;
  margin: 0.4rem 0 1.2rem;
}

.families-comic-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.2rem 0;
}

.family-scroll {
  background: linear-gradient(135deg, #fffdfa 0%, #faf3e1 100%);
  border: 1.5px solid var(--gold-rich);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  position: relative;
}

.family-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-950);
  background: linear-gradient(135deg, var(--gold-rich), #d4af37);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.family-scroll h4 {
  margin: 0 0 0.4rem;
  color: var(--maroon);
  font-size: 1.15rem;
}

.family-scroll p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a342e;
}

.inv-footnote {
  margin: 0.6rem 0 0;
  color: var(--maroon);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

/* 2. Venue Comic Layout */
.venue-comic-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.venue-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.venue-info {
  text-align: left;
}

.venue-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(122, 31, 43, 0.1);
  color: var(--maroon);
  border: 1px solid var(--maroon);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.venue-name {
  margin: 0;
  font-size: 1.85rem;
  color: var(--maroon);
  font-family: var(--font-display);
  font-weight: 700;
}

.venue-addr {
  margin: 0.2rem 0 0.4rem;
  font-weight: 600;
  color: #3b2823;
  font-size: 0.98rem;
}

.venue-landmark {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

.venue-cta-row {
  margin-top: 0.4rem;
  justify-content: flex-start !important;
}

/* 3. Travel Scrapbook */
.travel-scrapbook {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.travel-comic-card {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
  border-radius: 16px;
  border: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.travel-comic-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  border-color: var(--gold-rich);
}

.travel-comic-card.stay-card {
  background: linear-gradient(135deg, #fffdf6 0%, #fef8e6 100%);
  border-color: var(--gold-rich);
}

.travel-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold-rich);
  background: rgba(232, 199, 126, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.transit-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--maroon);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.travel-comic-card h4 {
  margin: 0 0 0.5rem;
  color: var(--maroon);
  font-size: 1.22rem;
  font-family: var(--font-tamil);
}

.travel-comic-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3b2823;
}

/* 4. RSVP Comic Layout */
.rsvp-comic-card {
  text-align: center;
  padding: 2.2rem 1.8rem;
}

.rsvp-bubble {
  max-width: 580px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fffcf5 0%, #fff7e4 100%);
  border-color: var(--gold-rich);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.avatar-tag.couple-tag {
  background: linear-gradient(135deg, #7a1f2b, #4a0d17);
  color: #ffe6a3;
  border: 1px solid var(--gold-rich);
  font-size: 0.82rem;
}

.rsvp-help-text {
  font-size: 0.95rem;
  color: #5a443e;
  margin-bottom: 0.8rem;
}

/* Desktop Grid Enhancements for Comic Layouts */
@media (min-width: 768px) {
  .invitation-comic-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr;
    gap: 2.2rem;
    align-items: center;
  }
  .families-comic-box {
    grid-template-columns: 1fr 1fr;
  }
  .venue-comic-grid {
    display: grid;
    grid-template-columns: 1.15fr 1.05fr;
    gap: 2.2rem;
    align-items: center;
  }
  .video-scene-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2.4rem;
    align-items: center;
  }
  .video-scene-grid.reverse {
    grid-template-columns: 0.95fr 1.15fr;
  }
  .video-scene-grid.reverse .video-frame-wrap {
    order: 2;
  }
  .video-scene-grid.reverse .scene-card {
    order: 1;
  }
}

/* ==========================================================================
   DYNAMIC DAY & NIGHT LIGHTING THEMES (Matching Event Times)
   ========================================================================== */
/* Twilight: Engagement on 12.12.2026, 6:30 PM (Dusk) */
.panel.twilight {
  background: radial-gradient(circle at 60% 30%, #36171b 0%, #1f0b12 60%, #12050b 100%);
  color: var(--cream);
  position: relative;
}
.panel.twilight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(235, 140, 50, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Sunrise: Sacred Muhurtham on 13.12.2026, 6:30 AM (Dawn over Bay of Bengal) */
.panel.sunrise {
  background: radial-gradient(circle at 50% 20%, #4a191f 0%, #2e0e14 50%, #150509 100%);
  color: var(--cream);
  position: relative;
}
.panel.sunrise::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 200, 80, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Night: Reception on 13.12.2026, 6:30 PM (Starlit Coastal Night in Thoothukudi) */
.panel.night {
  background: radial-gradient(circle at 50% 10%, #0c152e 0%, #070c1d 50%, #03060f 100%);
  color: #f7f9fc;
  position: relative;
}
.panel.night::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(130, 180, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 230, 150, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ==========================================================================
   CONTINUOUS VIDEO FORMAT & MOTION COMIC STYLING
   ========================================================================== */
.video-scene-grid {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.2rem;
}

.video-frame-wrap {
  width: 100%;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 199, 126, 0.35);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-pan-slow {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  animation: kenBurnsSlow 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenBurnsSlow {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-1.2%, -0.6%); }
  100% { transform: scale(1.03) translate(0.8%, -1%); }
}

.scene-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 199, 126, 0.4);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff334b;
  box-shadow: 0 0 8px #ff334b;
  animation: recBlink 1.4s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.85); }
}

.scene-overlay-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border-left: 2px solid var(--gold-rich);
  pointer-events: none;
}

.scene-card {
  padding: 2rem 1.8rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(254, 250, 240, 0.95) 100%);
  color: #261611;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.night .scene-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 252, 0.96) 100%);
}

.scene-lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(147, 104, 20, 0.2);
  padding-bottom: 0.8rem;
}

.scene-icon {
  font-size: 2rem;
  line-height: 1;
}

.scene-lead h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #5c1420;
}

.scene-meta {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #8c5828;
}

.scene-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #3b2823;
  margin: 0 0 1.2rem;
}

.scene-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2b1712;
  background: rgba(232, 191, 74, 0.12);
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  border-left: 3px solid var(--gold-rich);
}

.hi-icon {
  font-size: 1.1rem;
}

/* Venue Duo Layout */
.venue-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

@media (min-width: 600px) {
  .venue-duo {
    grid-template-columns: 1fr 1fr;
  }
}

.venue-loc-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 191, 74, 0.35);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.loc-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a82338;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opener, .envelope, .letter, .env-flap, .seal-btn,
  .ambient-petal, .scroll-cue, .scroll-cue span,
  .temple-artwork, .sun-radiance, .wave-glow, .spark,
  .temple-emblem, .date-sticker, .video-pan-slow { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; transition: none; }
}

