/* themes.css — four complete presets. Apply with ONE line in index.html: <script> var THEME = "A"; ... (or preview with ?theme=A).
   No data-theme attribute = the original blush look. Each preset overrides the tokens defined in styles.css :root. */

/* ============ A · Royal Maroon & Gold ============ */
html[data-theme="A"] {
  --maroon: #6B0F1A; --maroon-rgb: 107, 15, 26; --rose: #8E1B2C; --rose-rgb: 142, 27, 44; --heart: #A8233A; --heart-rgb: 168, 35, 58;
  --gold: #B38B3B; --gold-rgb: 179, 139, 59; --gold-d: #85651F; --gold-d-rgb: 133, 101, 31; --gold-l: #E9D5A1; --gold-hi: #D6B464; --gold-lo: #86651F; --gold-dd: #6E5214;
  --blush: #EBD9C3; --blush-rgb: 235, 217, 195; --lavender: #E6D6C4; --lav-rgb: 230, 214, 196; --peach: #EDD9BE; --peach-rgb: 237, 217, 190; --beige: #EFE3CF; --beige-rgb: 239, 227, 207;
  --page: #FBF6EC; --page-rgb: 251, 246, 236; --ink: #3A1D21; --ink-soft: #6A4B4C;
  --hero-bg: radial-gradient(ellipse at 72% 42%, rgba(214, 180, 100, .28), transparent 50%), radial-gradient(ellipse at 50% 40%, #8C1F2D 0%, #6B0F1A 45%, #3D0810 100%);
  --names-color: #F1DDAE; --hero-ink: #F6E9CF; --hero-soft: #E8D2A8; --hero-accent: #E2C27A;
  --f-names: "Cinzel", "Cormorant Garamond", serif; --names-fw: 600; --names-size: clamp(2.6rem, 6.2vw, 5rem); --names-ls: .08em; --names-lh: 1.12;
  --f-amp: "Cormorant Garamond", serif; --amp-style: italic;
  --f-script: "Cormorant Garamond", Georgia, serif; --h-style: italic; --h-weight: 600; --h-scale: .95;
  --f-serif: "Cormorant Garamond", Georgia, serif; --f-sans: "Poppins", system-ui, sans-serif;
  --foil: linear-gradient(100deg, #6E5214 0%, #B38B3B 22%, #EBD3A0 38%, #9C7A2E 55%, #D6B464 72%, #6E5214 100%);
  --floral-filter: sepia(.85) saturate(1.25) hue-rotate(-18deg) brightness(.92) contrast(1.05);
  --orn-filter: sepia(.3) saturate(.95) brightness(.9);
  --footer-bg: radial-gradient(ellipse at 50% 0%, #8C1F2D, #6B0F1A 60%, #3D0810);
  --intro-door: linear-gradient(160deg, #7A1422, #4E0A13);
  --petals: #E9D5A1 #B38B3B #F6E9CF #A8233A #D6B464;
}
/* ============ B · Soft Blush & Gold ============ */
html[data-theme="B"] {
  --maroon: #8A3A55; --maroon-rgb: 138, 58, 85; --rose: #B0607A; --rose-rgb: 176, 96, 122; --heart: #E39AAE; --heart-rgb: 227, 154, 174;
  --gold: #C4A36A; --gold-rgb: 196, 163, 106; --gold-d: #8E7240; --gold-d-rgb: 142, 114, 64; --gold-l: #EEDDB8; --gold-hi: #D9BF8C; --gold-lo: #A88A52; --gold-dd: #7E6435;
  --blush: #F6D7DE; --blush-rgb: 246, 215, 222; --lavender: #EEDFEA; --lav-rgb: 238, 223, 234; --peach: #F8E3D6; --peach-rgb: 248, 227, 214; --beige: #F5EADF; --beige-rgb: 245, 234, 223;
  --page: #FFF9F7; --page-rgb: 255, 249, 247; --ink: #4A383E; --ink-soft: #7A6268;
  --hero-bg: radial-gradient(ellipse at 70% 45%, rgba(255, 255, 255, .95), transparent 55%), linear-gradient(160deg, #FBE3E8 0%, #FDF1F1 45%, #F8EADF 100%);
  --names-color: #8A3A55; --hero-ink: #4A383E; --hero-soft: #7A6268; --hero-accent: #8E7240;
  --f-names: "Italianno", "Allura", cursive; --names-size: clamp(4.4rem, 11vw, 9rem); --names-lh: .95;
  --f-amp: "Italianno", cursive; --f-script: "Italianno", cursive; --h-scale: 1.3;
  --f-serif: "Cormorant Garamond", Georgia, serif; --f-sans: "EB Garamond", Georgia, serif;
  --foil: linear-gradient(100deg, #8E7240 0%, #C4A36A 25%, #F3E4C4 40%, #B8975C 58%, #E3CC9C 75%, #8E7240 100%);
  --orn-filter: saturate(.62) brightness(1.06);
  --footer-bg: radial-gradient(ellipse at 50% 0%, #B0607A, #8A3A55 60%, #62263B);
  --petals: #F6D7DE #F3C1CD #EEDDB8 #FBEFF1 #E39AAE;
}
html[data-theme="B"] body { font-size: 17.5px; }
/* ============ C · Emerald & Gold ============ */
html[data-theme="C"] {
  --maroon: #0E4B39; --maroon-rgb: 14, 75, 57; --rose: #1C6B53; --rose-rgb: 28, 107, 83; --heart: #C9A24A; --heart-rgb: 201, 162, 74;
  --gold: #C29A3F; --gold-rgb: 194, 154, 63; --gold-d: #8A6A1F; --gold-d-rgb: 138, 106, 31; --gold-l: #EFD9A0; --gold-hi: #DDBB66; --gold-lo: #8F6E22; --gold-dd: #715517;
  --blush: #DCEBDF; --blush-rgb: 220, 235, 223; --lavender: #E6E9D6; --lav-rgb: 230, 233, 214; --peach: #F1E7CC; --peach-rgb: 241, 231, 204; --beige: #EFE8D4; --beige-rgb: 239, 232, 212;
  --page: #FAF7EE; --page-rgb: 250, 247, 238; --ink: #1D2A24; --ink-soft: #4C5D55;
  --hero-bg: radial-gradient(ellipse at 72% 42%, rgba(221, 187, 102, .25), transparent 50%), radial-gradient(ellipse at 50% 40%, #14684F 0%, #0C4535 50%, #05241B 100%);
  --names-color: #EFD9A0; --hero-ink: #F4ECD6; --hero-soft: #DCE8DC; --hero-accent: #E5C67A;
  --f-names: "Cinzel Decorative", "Cinzel", serif; --names-fw: 700; --names-size: clamp(2.4rem, 5.6vw, 4.6rem); --names-ls: .03em; --names-lh: 1.15;
  --f-amp: "Playfair Display", serif; --amp-style: italic;
  --f-script: "Cinzel Decorative", "Cinzel", serif; --h-weight: 700; --h-scale: .7;
  --f-serif: "Playfair Display", Georgia, serif; --f-sans: "Poppins", system-ui, sans-serif;
  --foil: linear-gradient(100deg, #715517 0%, #C29A3F 22%, #F2DC9E 38%, #A7832F 55%, #DDBB66 72%, #715517 100%);
  --floral-filter: sepia(.9) saturate(1.3) hue-rotate(-10deg) brightness(.95);
  --footer-bg: radial-gradient(ellipse at 50% 0%, #14684F, #0C4535 60%, #05241B);
  --intro-door: linear-gradient(160deg, #10543F, #062B20);
  --petals: #EFD9A0 #C29A3F #F4ECD6 #7FB39A #DDBB66;
}
/* ============ D · Ivory & Gold Minimal ============ */
html[data-theme="D"] {
  --maroon: #2B2520; --maroon-rgb: 43, 37, 32; --rose: #6F5E4C; --rose-rgb: 111, 94, 76; --heart: #B89B5E; --heart-rgb: 184, 155, 94;
  --gold: #B3955A; --gold-rgb: 179, 149, 90; --gold-d: #85703F; --gold-d-rgb: 133, 112, 63; --gold-l: #E8DDC2; --gold-hi: #CDB27A; --gold-lo: #957A45; --gold-dd: #6E5C32;
  --blush: #F4EFE6; --blush-rgb: 244, 239, 230; --lavender: #F1EEE8; --lav-rgb: 241, 238, 232; --peach: #F5EFE4; --peach-rgb: 245, 239, 228; --beige: #F2ECE0; --beige-rgb: 242, 236, 224;
  --page: #FFFEFA; --page-rgb: 255, 254, 250; --ink: #2B2520; --ink-soft: #6B625A;
  --glass: rgba(255, 255, 255, .8); --glass-b: rgba(179, 149, 90, .35);
  --shadow: 0 8px 26px rgba(43, 37, 32, .06); --shadow-lg: 0 18px 44px rgba(43, 37, 32, .1);
  --hero-bg: radial-gradient(ellipse at 70% 40%, #FFFFFF, transparent 60%), linear-gradient(180deg, #FFFEFA, #F8F4EC);
  --names-color: #2B2520; --hero-ink: #2B2520; --hero-soft: #6B625A; --hero-accent: #85703F;
  --f-names: "Bodoni Moda", "Didot", serif; --names-fw: 400; --names-size: clamp(3rem, 7vw, 6rem); --names-ls: .04em; --names-lh: 1.08;
  --f-amp: "Bodoni Moda", serif; --amp-style: italic;
  --f-script: "Bodoni Moda", serif; --h-style: italic; --h-weight: 400; --h-scale: .82;
  --f-serif: "Bodoni Moda", Georgia, serif; --f-sans: "Jost", system-ui, sans-serif;
  --foil: linear-gradient(100deg, #85703F 0%, #B3955A 30%, #E8DDC2 45%, #B3955A 60%, #85703F 100%);
  --floral-filter: grayscale(1) sepia(.55) brightness(1.08) opacity(.7);
  --orn-filter: saturate(.7) opacity(.85);
  --footer-bg: linear-gradient(180deg, #FBF8F1, #F2ECE0);
  --petals: #E8DDC2 #F4EFE6 #CDB27A;
}

/* ---------- shared adaptations for every preset ---------- */
html[data-theme] .corner, html[data-theme] .section--story::before, html[data-theme] .section--story::after, html[data-theme] .section--thanks::before, html[data-theme] .section--thanks::after,
html[data-theme] .section--booth::before, html[data-theme] .section--booth::after, html[data-theme] .section--faq::before, html[data-theme] .section--faq::after,
html[data-theme] .soon-card::before, html[data-theme] .soon-card::after, html[data-theme] .rsvp::before, html[data-theme] .rsvp::after,
html[data-theme] .rsvp-thanks::before, html[data-theme] .rsvp-thanks::after, html[data-theme] .arch__garland { filter: var(--floral-filter); }
html[data-theme] .orn-div, html[data-theme] .hero__photo::before, html[data-theme] .section--scratch::before, html[data-theme] .section--countdown::before,
html[data-theme] .section--guests::before, html[data-theme] .section--guestbook::before, html[data-theme] .section--venues::before, html[data-theme] .hang,
html[data-theme] .footer__ele, html[data-theme] .footer__div, html[data-theme] .section--events::before, html[data-theme] .section--events::after { filter: var(--orn-filter); }
html[data-theme] .hero__names { text-shadow: none; }
html[data-theme] .magic .hero__names, html[data-theme].magic .hero__names { filter: none; }
html[data-theme] .script-title, html[data-theme] .t-card__title, html[data-theme] .soon-card__title, html[data-theme] .signoff span, html[data-theme] .hashtag { font-family: var(--f-script); font-style: var(--h-style); font-weight: var(--h-weight); }
html[data-theme] .t-card__title { font-size: calc(2.6rem * var(--h-scale)); }
html[data-theme] .soon-card__title { font-size: calc(clamp(2.3rem, 6vw, 3.2rem) * var(--h-scale)); }
html[data-theme] .hashtag { font-size: calc(clamp(2.4rem, 9vw, 6rem) * var(--h-scale)); }
html[data-theme] .nav__word { font-family: var(--f-names); }
html[data-theme] .section--countdown { background: linear-gradient(180deg, transparent, rgba(var(--blush-rgb), .45) 25%, rgba(var(--gold-rgb), .12) 75%, transparent); }
html[data-theme] .section--hashtag { background: linear-gradient(135deg, rgba(var(--blush-rgb), .7), rgba(var(--lav-rgb), .7) 50%, rgba(var(--peach-rgb), .7)); }
html[data-theme] .just-married, html[data-theme] .scratch__day { font-family: var(--f-script); font-style: var(--h-style); }

/* dark-hero presets (A, C): hero text on dark, nav always solid */
html[data-theme="A"] .nav, html[data-theme="C"] .nav { background: rgba(var(--page-rgb), .92); box-shadow: 0 4px 24px rgba(var(--maroon-rgb), .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="A"] .hero .btn--ghost, html[data-theme="C"] .hero .btn--ghost { background: transparent; color: var(--hero-ink); border-color: var(--gold-l); }
html[data-theme="A"] .hero .btn--ghost:hover, html[data-theme="C"] .hero .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
html[data-theme="A"] .scroll-cue, html[data-theme="C"] .scroll-cue { color: var(--hero-soft); }
html[data-theme="A"] .hero__bg::after, html[data-theme="C"] .hero__bg::after { opacity: .35; }
html[data-theme="A"] .hero__bg::before, html[data-theme="C"] .hero__bg::before { opacity: .35; mix-blend-mode: screen; }
html[data-theme="A"] .arch__img, html[data-theme="C"] .arch__img { border-color: var(--gold-l); }
html[data-theme="A"] .hero__photo::before, html[data-theme="C"] .hero__photo::before { opacity: .38; filter: brightness(1.35) saturate(1.1); }
html[data-theme="A"] .hero .divider, html[data-theme="C"] .hero .divider { filter: brightness(1.4) saturate(.9); }
html[data-theme="A"] .corner, html[data-theme="C"] .corner { opacity: .85; }
html[data-theme="A"] .toran, html[data-theme="C"] .toran { filter: saturate(.9); }

/* Royal maroon: engraved caps names with shimmer suited to dark background */
html[data-theme="A"].magic .hero__names span:not(.amp), html[data-theme="C"].magic .hero__names span:not(.amp) { background-image: linear-gradient(100deg, var(--names-color) 0 42%, #FFF6D6 50%, var(--names-color) 58% 100%); }

/* Minimal: fewer ornaments, finer lines, more air */
html[data-theme="D"] .toran, html[data-theme="D"] .hero-hang, html[data-theme="D"] .hero-fx .rose, html[data-theme="D"] .hero__bg::before, html[data-theme="D"] .hero__bg::after,
html[data-theme="D"] .section--events::before, html[data-theme="D"] .section--events::after, html[data-theme="D"] .section--rsvp::before, html[data-theme="D"] .section--rsvp::after,
html[data-theme="D"] .section--travel::before, html[data-theme="D"] .section--travel::after, html[data-theme="D"] .section--scratch::after, html[data-theme="D"] .corner--bl, html[data-theme="D"] .corner--br,
html[data-theme="D"] .float-heart, html[data-theme="D"] .section--hashtag::before, html[data-theme="D"] .section--hashtag::after { display: none; }
html[data-theme="D"] .section { padding: clamp(80px, 10vw, 130px) 0; }
html[data-theme="D"] .glass { box-shadow: var(--shadow), inset 0 0 0 1px rgba(var(--gold-rgb), .35); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-theme="D"] .story-card, html[data-theme="D"] .info-card, html[data-theme="D"] .cd, html[data-theme="D"] .t-card__body { background-image: none; }
html[data-theme="D"] .arch__glow { opacity: .35; }
html[data-theme="D"] .arch__garland { display: none; }
html[data-theme="D"] .hero__photo::before { opacity: .22; }
html[data-theme="D"] .eyebrow { letter-spacing: .4em; font-weight: 500; }
html[data-theme="D"] .eyebrow::before, html[data-theme="D"] .eyebrow::after { content: ""; width: 34px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 .9em; }
html[data-theme="D"] .btn--gold { background: var(--ink); color: #FFFEFA; text-shadow: none; box-shadow: 0 8px 20px rgba(43, 37, 32, .15); }
html[data-theme="D"] .btn--ghost { background: transparent; }
html[data-theme="D"] .footer { color: var(--ink-soft); }
html[data-theme="D"] .footer__date { color: var(--ink); } html[data-theme="D"] .footer__place, html[data-theme="D"] .footer__tag { color: var(--gold-d); }
html[data-theme="D"] .footer .credit { color: var(--ink-soft); }
html[data-theme="D"] .footer__names { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); }
html[data-theme="D"] .hero__date { background: none; color: var(--ink); -webkit-text-fill-color: var(--ink); font-weight: 400; }
html[data-theme="D"] .footer::before { display: none; }
html[data-theme="D"] .footer { border-top: 1px solid rgba(var(--gold-rgb), .5); }
html[data-theme="D"] .t-card::before { height: 2px; }
html[data-theme="D"] #petals { opacity: .45; }
html[data-theme="A"] .hero__bg::before, html[data-theme="C"] .hero__bg::before { opacity: .14 !important; animation: none; }
html[data-theme] .hero .divider { filter: var(--floral-filter); }
html[data-theme="A"] .hero .divider, html[data-theme="C"] .hero .divider { filter: var(--floral-filter) brightness(1.35); }
html[data-theme] .pill input:checked + span { background: linear-gradient(135deg, var(--blush), rgba(var(--gold-rgb), .35)); }
html[data-theme="D"] .pill input:checked + span { background: var(--ink); color: #FFFEFA; border-color: var(--ink); }
html[data-theme] .scratch__reveal { background: radial-gradient(circle at 50% 40%, #fff, var(--page) 60%, var(--blush)); }
html[data-theme] .venue__map { background: linear-gradient(135deg, var(--beige), var(--page)); }

/* ---------- B live polish ---------- */
html[data-theme="B"] body { font-variant-numeric: lining-nums; }
html[data-theme="B"] { --intro-door: linear-gradient(160deg, #FBE3E8, #FDF1F1 55%, #F8EADF); }
/* readable eyebrows: solid deep champagne instead of faint foil */
html[data-theme="B"] .eyebrow { background: none; color: var(--gold-dd); -webkit-text-fill-color: var(--gold-dd); font-weight: 600; letter-spacing: .3em; }
html[data-theme="B"] .eyebrow::before, html[data-theme="B"] .eyebrow::after { color: var(--gold); -webkit-text-fill-color: var(--gold); }
/* Italianno is small-bodied: only use it large; bump every script size, fall back to serif where small */
html[data-theme="B"] .hashtag { font-size: clamp(2.8rem, 8.4vw, 5.8rem); word-break: normal; overflow-wrap: anywhere; line-height: 1.05; }
html[data-theme="B"] .hashtag--sm { font-size: clamp(2.6rem, 6.4vw, 3.8rem); }
html[data-theme="B"] .signoff span { font-size: 3.2rem; line-height: 1; }
html[data-theme="B"] .scratch__day { font-size: 3.1rem; }
html[data-theme="B"] .m-item--featured figcaption { font-size: 2.4rem; }
html[data-theme="B"] .gb-card cite { font-size: 2.1rem; }
html[data-theme="B"] .nav__brand .nav__word { font-size: 2.1rem; }
html[data-theme="B"] .intro__seal span { font-size: clamp(3.3rem, 7.5vw, 4.2rem); }
html[data-theme="B"] .intro__names { font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1; }
html[data-theme="B"] .intro__date { color: var(--gold-d); }
html[data-theme="B"] .intro__seal { background: radial-gradient(circle at 35% 30%, #FFF6E4, #EEDDB8 35%, var(--gold) 62%, var(--gold-d) 100%); box-shadow: 0 10px 30px rgba(142, 114, 64, .35), inset 0 -6px 14px rgba(110, 85, 40, .3), inset 0 6px 12px rgba(255, 255, 255, .6); }
html[data-theme="B"] .intro__seal span { text-shadow: 0 2px 0 rgba(110, 85, 40, .45); }
html[data-theme="B"] .footer__names { font-size: clamp(3rem, 8vw, 4.2rem); line-height: 1.05; background: linear-gradient(100deg, #E3CC9C, #FFF6E4 45%, #EEDDB8 60%, #D9BF8C); -webkit-background-clip: text; background-clip: text; }
html[data-theme="B"] .footer__tag { font-size: 2.3rem; line-height: 1.1; color: #F6EAD0; }
html[data-theme="B"] .footer__place, html[data-theme="B"] .footer .credit { color: #F6E2E8; }
html[data-theme="B"] .t-card__title { line-height: 1; }
html[data-theme="B"] .soon-card__title { line-height: 1.05; }
html[data-theme="B"] .timeline__line span { background: linear-gradient(var(--blush), var(--gold), var(--gold-l)); }
html[data-theme="B"] .just-married { font-size: clamp(4.4rem, 12vw, 7.4rem); }
html[data-theme="B"] .intro__date { color: var(--gold-dd); font-weight: 600; }
html[data-theme="B"] .nf__code { color: var(--gold-dd); font-weight: 600; }
html[data-theme="B"] .soon-card__title, html[data-theme="B"] .script-title { text-wrap: balance; }

/* ---------- scratch card: premium reveal (all themes; tuned for B) ---------- */
.scratch-stage { position: relative; width: min(440px, 100%); margin: 0 auto; }
.scratch__fx { position: absolute; left: 50%; top: -90px; bottom: -170px; width: min(100vw, 640px); transform: translateX(-50%); pointer-events: none; z-index: 5; }
.scratch__ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none; z-index: 4; opacity: 0;
  border: 2px solid rgba(var(--gold-rgb), .9); box-shadow: 0 0 22px rgba(255, 236, 190, .8), inset 0 0 14px rgba(255, 236, 190, .6); }
.scratch__ring::before, .scratch__ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle at 50% 0, #FFF4D6 0 2px, transparent 3px), radial-gradient(circle at 100% 50%, #FFF4D6 0 2px, transparent 3px), radial-gradient(circle at 50% 100%, #FFF4D6 0 2px, transparent 3px), radial-gradient(circle at 0 50%, #FFF4D6 0 2px, transparent 3px); }
.scratch__ring::after { transform: rotate(45deg); opacity: .7; }
.scratch-stage.ring-go .scratch__ring { animation: sRing 1.5s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes sRing { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(4.2); } }

/* the gold layer melts: blur + brighten + fade while JS dissolves it from the centre */
.scratch__canvas.melt { transition: opacity 1s ease .2s, filter 1.1s ease, transform 1.2s ease; opacity: 0; filter: blur(7px) brightness(1.18) saturate(1.1); transform: scale(1.04); }
.scratch__canvas.instant { transition: none; }
.scratch__sheen { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 222, .0) 38%, rgba(255, 244, 214, .95) 48%, rgba(255, 255, 255, .9) 50%, rgba(255, 238, 200, .7) 54%, transparent 64%); background-size: 260% 100%; background-position: 130% 0; }
.scratch.is-revealing .scratch__sheen { animation: sSheen 1.15s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes sSheen { 0% { opacity: 0; background-position: 130% 0; } 12% { opacity: 1; } 80% { opacity: .9; } 100% { opacity: 0; background-position: -30% 0; } }

/* date glows in */
.scratch__reveal > * { position: relative; z-index: 1; }
.scratch__halo { position: absolute !important; z-index: 0 !important; left: 50%; top: 50%; width: 78%; aspect-ratio: 1.6; transform: translate(-50%, -50%) scale(.6); border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 250, 238, 1), rgba(255, 236, 205, .7) 40%, rgba(var(--gold-rgb), .12) 60%, transparent 72%); filter: blur(6px); }
.scratch__heart { display: inline-grid; margin-top: 8px; color: var(--heart, #E39AAE); opacity: 0; transform: scale(.4); }
.scratch__heart svg { fill: currentColor; filter: drop-shadow(0 2px 6px rgba(var(--gold-rgb), .45)); }
.scratch.is-revealed .scratch__reveal img, .scratch.is-revealed .scratch__day, .scratch.is-revealed .scratch__date, .scratch.is-revealed .scratch__time { animation: sGlowIn 1s cubic-bezier(.2, .8, .3, 1) both; }
.scratch.is-revealed .scratch__day { animation-delay: .08s; } .scratch.is-revealed .scratch__date { animation-delay: .18s; } .scratch.is-revealed .scratch__time { animation-delay: .3s; }
.scratch.is-revealed .scratch__date { animation-name: sGlowIn, sGlowText; animation-duration: 1s, 2.6s; animation-delay: .18s, .18s; animation-fill-mode: both, both; }
.scratch.is-revealed .scratch__halo { animation: sHalo 2.4s ease-out forwards; }
.scratch.is-revealed .scratch__heart { animation: sHeartIn .6s cubic-bezier(.2, 1.5, .4, 1) .75s forwards, sBeat 1.3s ease-in-out 1.4s 2; }
@keyframes sGlowIn { from { opacity: .25; transform: scale(.94); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sGlowText { 0% { text-shadow: 0 0 0 rgba(var(--gold-rgb), 0); } 35% { text-shadow: 0 0 18px rgba(255, 226, 160, .95), 0 0 2px rgba(var(--gold-rgb), .6); } 100% { text-shadow: 0 0 10px rgba(255, 232, 180, .55); } }
@keyframes sHalo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); } }
@keyframes sHeartIn { to { opacity: 1; transform: scale(1); } }
@keyframes sBeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.28); } 28% { transform: scale(1); } 42% { transform: scale(1.18); } 60% { transform: scale(1); } }
.scratch.no-anim .scratch__heart, .scratch.no-anim .scratch__halo { opacity: 1; transform: none; } .scratch.no-anim .scratch__halo { opacity: .55; transform: translate(-50%, -50%); }

/* after: calendar button + small line */
.scratch__foot { display: grid; margin-top: 18px; } .scratch__foot > * { grid-area: 1 / 1; }
.scratch__after { visibility: hidden; padding-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .3, 1); position: relative; z-index: 6; }
.scratch__after.in { opacity: 1; transform: none; visibility: visible; }
.scratch__foot .scratch__hint { margin-top: 0; align-self: start; }
.scratch__cal { display: inline-flex; align-items: center; gap: 8px; }
.scratch__std { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; letter-spacing: .06em; color: var(--gold-dd, var(--gold-d)); }
.scratch__std span { color: var(--heart, #E39AAE); font-style: normal; }
.scratch__hint { transition: opacity .6s ease; } .scratch__hint.gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .scratch__after { transition: none; } .scratch__fx, .scratch__ring, .scratch__sheen { display: none; } }

/* reveal icon options (config.js scratchIcon) — sized to sit in the rings' spot */
.scratch__iconwrap { display: inline-grid; place-items: center; height: 56px; margin-bottom: 2px; }
.scratch__reveal img.scratch__icon { width: 74px; height: auto; margin: 0; }
.scratch__icon[data-icon="rings"] { width: 70px !important; }
.scratch__icon[data-icon="lotus"], .scratch__icon[data-icon="diya"] { width: 75px !important; }
.scratch__icon[data-icon="kalash"] { width: 74px !important; }
.scratch__icon[data-icon="ganesha"] { width: 75px !important; }
.scratch__icon[data-icon="monogram"] { width: 54px !important; filter: drop-shadow(0 3px 8px rgba(138, 58, 85, .25)); }
.scratch.is-revealed .scratch__iconwrap { animation: sIconGlow 2.8s ease .25s both; }
@keyframes sIconGlow { 0% { filter: drop-shadow(0 0 0 rgba(255, 226, 160, 0)); } 40% { filter: drop-shadow(0 0 12px rgba(255, 226, 160, .95)); } 100% { filter: drop-shadow(0 0 5px rgba(255, 232, 180, .6)); } }
.scratch.no-anim .scratch__iconwrap { filter: drop-shadow(0 0 5px rgba(255, 232, 180, .6)); }
@media (min-width: 600px) { .scratch__iconwrap { height: 64px; } .scratch__icon[data-icon="lotus"], .scratch__icon[data-icon="diya"], .scratch__icon[data-icon="kalash"], .scratch__icon[data-icon="ganesha"] { width: 85px !important; } .scratch__icon[data-icon="monogram"] { width: 60px !important; } }

/* ================= COUNTDOWN designs (config.js countdown.design) ================= */
.countdown .dg { display: inline-grid; position: relative; height: 1.08em; clip-path: inset(0 -30%); vertical-align: top; } /* clip vertically only; width = the glyph's own (tabular) advance */
.countdown .dg__c { grid-area: 1 / 1; display: grid; place-items: center; }
.countdown--A .dg + .dg { margin-left: .04em; }
.countdown[class*="countdown--"] { margin-top: 26px; }
.countdown[class*="countdown--"] .cd__num { font-variant-numeric: lining-nums tabular-nums; line-height: 1; display: inline-flex; }
/* rolling digits (A) */
.countdown--A .dg__c--out { animation: dgUp .6s cubic-bezier(.5, 0, .3, 1) forwards; }
.countdown--A .dg__c--in { animation: dgIn .6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes dgUp { to { transform: translateY(-100%); opacity: 0; filter: blur(1px); } }
@keyframes dgIn { from { transform: translateY(100%); opacity: 0; filter: blur(1px); } to { transform: none; opacity: 1; filter: none; } }
/* crossfade digits (B) and soft fade (C) */
.countdown--B .dg__c--out, .countdown--C .dg__c--out { animation: dgOut .6s ease forwards; }
.countdown--B .dg__c--in { animation: dgFade .7s ease forwards; }
.countdown--C .dg__c--in { animation: dgFadeC .6s ease forwards; }
@keyframes dgOut { to { opacity: 0; transform: scale(.9); filter: blur(2px); } }
@keyframes dgFade { from { opacity: 0; transform: scale(1.08); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes dgFadeC { from { opacity: 0; transform: translateY(8%); } to { opacity: 1; transform: none; } }

/* ---- A · temple-arch tiles (Marcellus numerals) ---- */
.countdown--A { grid-template-columns: repeat(4, minmax(0, 150px)); gap: clamp(8px, 2.6vw, 30px); }
.cdA__unit { position: relative; aspect-ratio: 100 / 162; display: flex; flex-direction: column; align-items: center; filter: drop-shadow(0 10px 18px rgba(var(--maroon-rgb), .08)); }
.cdA__arch { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.countdown--A .cd__num { position: absolute; left: 0; right: 0; top: 43%; justify-content: center; font-family: "Marcellus", var(--f-serif); font-weight: 400; font-size: clamp(1.75rem, 5.2vw, 3.1rem); color: var(--maroon); letter-spacing: .02em; }
.countdown--A .cd__lbl { position: absolute; left: 0; right: 0; top: 76%; margin: 0; text-align: center; font-family: var(--f-serif); font-weight: 600; font-size: clamp(.56rem, 1.7vw, .74rem); letter-spacing: .24em; color: var(--gold-dd, var(--gold-d)); }
.countdown--A .cd__lbl::before { content: ""; display: block; width: 26%; height: 1px; margin: 0 auto 7px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---- B · circular progress rings (Cormorant Garamond numerals) ---- */
.countdown--B { grid-template-columns: repeat(4, minmax(0, 158px)); gap: clamp(12px, 3vw, 36px); }
.cdB__unit { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.cdB__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 16px rgba(var(--maroon-rgb), .08)); }
.cdB__prog { transition: stroke-dashoffset .95s linear; filter: drop-shadow(0 0 3px rgba(255, 226, 160, .8)); }
.cdB__mandala { transform-origin: 60px 60px; animation: spin 90s linear infinite; }
.countdown--B .cd__num { position: relative; margin-top: -10%; font-family: "Cormorant Garamond", var(--f-serif); font-weight: 500; font-size: clamp(2.2rem, 5.4vw, 3.4rem); color: var(--maroon); }
.countdown--B .cd__lbl { position: absolute; left: 0; right: 0; top: 64%; margin: 0; text-align: center; font-family: var(--f-serif); font-weight: 600; font-size: clamp(.58rem, 1.6vw, .72rem); letter-spacing: .26em; color: var(--gold-dd, var(--gold-d)); }

/* ---- C · single ornate panel (Bodoni Moda numerals) ---- */
.countdown--C { display: block; }
.cdC { position: relative; width: min(780px, 100%); margin: 0 auto; padding: clamp(26px, 4vw, 44px) clamp(14px, 4vw, 48px) clamp(22px, 3.4vw, 36px); border-radius: 22px;
  border: 1px solid rgba(var(--gold-rgb), .7); box-shadow: var(--shadow-lg), 0 0 0 5px rgba(255, 255, 255, .75), 0 0 0 6px rgba(var(--gold-rgb), .45), inset 0 0 0 7px rgba(255, 255, 255, .5), inset 0 0 0 8px rgba(var(--gold-rgb), .35);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .95), rgba(255, 249, 247, .85) 60%, rgba(var(--blush-rgb), .6)); }
.cdC::before { content: ""; position: absolute; inset: 12px; pointer-events: none;
  background-image: url(../assets/ornaments/corner-orn.svg), url(../assets/ornaments/corner-orn-tr.svg), url(../assets/ornaments/corner-orn-bl.svg), url(../assets/ornaments/corner-orn-br.svg);
  background-position: top left, top right, bottom left, bottom right; background-size: clamp(30px, 6vw, 52px); background-repeat: no-repeat; opacity: .9; }
.cdC::after { content: ""; position: absolute; top: -15px; left: 50%; width: 120px; height: 30px; translate: -50% 0; background: url(../assets/ornaments/divider-lotus.svg) center / contain no-repeat, radial-gradient(closest-side, var(--page) 70%, transparent); }
.cdC__row { display: flex; align-items: flex-start; justify-content: center; gap: clamp(2px, 1.2vw, 14px); }
.cdC__unit { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; max-width: 150px; }
.countdown--C .cd__num { font-family: "Bodoni Moda", var(--f-serif); font-weight: 400; font-size: clamp(2.1rem, 7vw, 4.4rem); color: var(--maroon); font-optical-sizing: auto; }
.countdown--C .cd__lbl { margin-top: 10px; font-family: var(--f-serif); font-weight: 600; font-size: clamp(.56rem, 1.6vw, .74rem); letter-spacing: .34em; color: var(--gold-dd, var(--gold-d)); }
.cdC__sep { flex: 0 0 auto; width: clamp(12px, 2.4vw, 24px); margin-top: clamp(8px, 1.8vw, 20px); }
.cdC__sep svg { width: 100%; height: auto; display: block; }
.cdC__unit.pulse .cd__num { animation: cdGlow 1s ease-out; }
@keyframes cdGlow { 0% { text-shadow: 0 0 0 rgba(255, 220, 150, 0); } 30% { text-shadow: 0 0 16px rgba(255, 214, 140, .95), 0 0 2px rgba(var(--gold-rgb), .7); } 100% { text-shadow: 0 0 0 rgba(255, 220, 150, 0); } }

/* mobile: B goes 2x2; A and C stay as one scaled row */
@media (max-width: 600px) {
  .countdown--B { grid-template-columns: repeat(2, minmax(0, 150px)); gap: 18px 26px; }
  .countdown--B .cd__num { font-size: 2.6rem; }
  .countdown--A { gap: 7px; }
}

/* Shubh Vivah state styled per design */
.just-married.jm { position: relative; display: grid; place-items: center; margin: 26px auto 0; }
.jm__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jm__txt { position: relative; font-family: var(--f-script); color: var(--maroon); line-height: 1; }
.jm--A { width: min(300px, 70vw); aspect-ratio: 100 / 162; } .jm--A .jm__txt { font-size: clamp(2.4rem, 7.4vw, 3.3rem); margin-top: 18%; }
.jm--B { width: min(330px, 78vw); aspect-ratio: 1; } .jm--B .jm__txt { font-size: clamp(2.6rem, 8vw, 3.5rem); }
.jm--C { width: min(640px, 100%); padding: 40px 20px; border-radius: 22px; border: 1px solid rgba(var(--gold-rgb), .7); box-shadow: var(--shadow-lg), 0 0 0 5px rgba(255, 255, 255, .75), 0 0 0 6px rgba(var(--gold-rgb), .45); background: radial-gradient(ellipse at 50% 0%, #fff, rgba(var(--blush-rgb), .55)); }
.jm--C .jm__txt { font-size: clamp(4rem, 12vw, 6.4rem); }

@media (prefers-reduced-motion: reduce) { .cdB__mandala { animation: none; } .cdB__prog { transition: none; } .countdown .dg__c--in, .countdown .dg__c--out, .cdC__unit.pulse .cd__num { animation: none !important; } }

/* FAQ contact: tappable phone + WhatsApp pill */
.faq__a a[href^="tel:"] { font-weight: 600; white-space: nowrap; }
.faq__wa { display: inline-flex; align-items: center; gap: .35em; margin-left: .6em; padding: .15em .75em .2em; border-radius: 999px; font-size: .88em; font-weight: 600; white-space: nowrap; text-decoration: none !important;
  color: #fff !important; background: linear-gradient(135deg, #3FBF6F, #1E9E57); box-shadow: 0 3px 10px rgba(30, 158, 87, .25); vertical-align: 1px; }
.faq__wa::before { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.1.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.2 13.9c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.3-.7-2.8-1.1-4.5-3.9-4.7-4.1-.1-.2-1.1-1.5-1.1-2.9s.7-2 1-2.3c.2-.3.5-.3.7-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.1.1.3 0 .5l-.3.5-.4.4c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.8-1c.2-.3.4-.2.6-.1l1.9.9c.3.1.5.2.5.3.1.2.1.7-.1 1.2z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- Add to Calendar chooser (bottom sheet on phones, centred card on desktop) ---- */
.calsheet { position: fixed; inset: 0; z-index: 400; display: grid; align-items: end; justify-items: center; }
.calsheet[hidden] { display: none; }
.calsheet__backdrop { position: absolute; inset: 0; background: rgba(60, 30, 40, .38); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s ease; }
.calsheet__panel { position: relative; width: min(440px, 100%); margin: 0; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; text-align: center;
  background: linear-gradient(180deg, #FFFDFB, #FFF4F2); border: 1px solid rgba(var(--gold-rgb), .45); box-shadow: 0 -12px 40px rgba(var(--maroon-rgb), .18); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.calsheet.in .calsheet__backdrop { opacity: 1; } .calsheet.in .calsheet__panel { transform: none; }
.calsheet__panel::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(var(--gold-rgb), .45); }
.calsheet__x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(var(--blush-rgb), .6); color: var(--maroon); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.calsheet .eyebrow { margin: 4px 0 2px; }
.calsheet__title { margin: 0; font-family: var(--f-script); font-weight: 400; font-size: 2.6rem; line-height: 1.05; color: var(--maroon); }
.calsheet__when { margin: 4px 0 16px; font-size: .92rem; color: var(--ink-soft); }
.calsheet__opts { display: grid; gap: 10px; text-align: left; }
.calopt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; background: #fff; border: 1px solid rgba(var(--gold-rgb), .35); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.calopt:hover, .calopt:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(var(--maroon-rgb), .12); outline: none; }
.calopt--best { border: 1.5px solid var(--gold); background: linear-gradient(135deg, #FFFFFF, #FBEFE4); box-shadow: 0 6px 18px rgba(184, 150, 79, .22); }
.calopt__ic { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(var(--blush-rgb), .45); font-size: 1.25rem; }
.calopt__txt { flex: 1; min-width: 0; } .calopt__txt b { display: block; font-weight: 600; font-size: 1.02rem; } .calopt__txt small { color: var(--ink-soft); font-size: .8rem; }
.calopt__tag { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, #D8B978, #B8964F); }
.calsheet__note { margin: 14px 0 0; font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 700px) { .calsheet { align-items: center; } .calsheet__panel { border-radius: 26px; padding-bottom: 22px; transform: translateY(24px) scale(.97); opacity: 0; transition: transform .22s, opacity .22s; } .calsheet.in .calsheet__panel { opacity: 1; } .calsheet__panel::before { display: none; } }
html.calsheet-open, html.calsheet-open body { overflow: hidden; }
.cal-all { text-align: center; margin: 30px 0 0; }
@media (prefers-reduced-motion: reduce) { .calsheet__panel, .calsheet__backdrop { transition: none; } }
