/* =========================================================================
   Pooja Vaypu for PDFs - styles
   Mobile-first. Palette: deep maroon, brass gold, saffron, cream.
   ========================================================================= */

:root {
  --maroon-950: #24050a;
  --maroon-900: #3b0a10;
  --maroon-800: #5a0f1a;
  --maroon-700: #7a1424;
  --maroon-600: #9b2335;
  --gold-300: #ffe39a;
  --gold-400: #f5c451;
  --gold-500: #e2a72e;
  --gold-600: #b9821c;
  --gold-700: #8a5a12;
  --saffron-400: #ffa53d;
  --saffron-500: #ff8c1a;
  --saffron-600: #e8730c;
  --cream-50: #fffaf0;
  --cream-100: #fff4dc;
  --cream-200: #f8e6c0;
  --ink: #2a0d10;
  --ink-soft: #5b3a32;
  --leaf: #2f6b3a;
  --danger: #b3261e;

  --font-display: "Baloo Chettan 2", "Noto Sans Malayalam", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", sans-serif;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 10px 30px rgba(20, 2, 5, .35);
  --shadow-glow: 0 0 0 1px rgba(245, 196, 81, .25), 0 18px 50px rgba(255, 140, 26, .18);
  --tap: 52px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Make the `hidden` attribute win over display:flex/grid set below. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--cream-100);
  background-color: var(--maroon-900);
  /* Warm lamp glow + a faint kolam dot grid */
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255, 140, 26, .28), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(245, 196, 81, .12), transparent 70%),
    radial-gradient(rgba(245, 196, 81, .10) 1.2px, transparent 1.6px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  background-attachment: fixed, fixed, scroll;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }

a { color: var(--gold-400); }

:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold-400); color: var(--maroon-900);
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Marigold garland (thoranam) ---------- */
.garland {
  height: 30px;
  background:
    radial-gradient(circle at 15px 11px, #ffd04a 0 6px, #ff9a1f 6.5px 10px, transparent 10.5px) 0 0 / 30px 30px repeat-x,
    radial-gradient(ellipse 6px 10px at 15px 24px, #3f8a4a 0 100%, transparent 101%) 15px 0 / 60px 30px repeat-x;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.garland--footer { transform: scaleY(-1); margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap);
  padding: .75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1.05rem/1.1 var(--font-display);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary {
  color: var(--maroon-950);
  background: linear-gradient(180deg, var(--gold-300), var(--saffron-500) 80%);
  box-shadow: 0 6px 0 var(--gold-700), 0 12px 24px rgba(255, 140, 26, .35);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 6px 0 var(--gold-700), 0 14px 34px rgba(255, 140, 26, .5); }
.btn--primary:active { box-shadow: 0 3px 0 var(--gold-700), 0 8px 18px rgba(255, 140, 26, .35); }
.btn--ghost {
  color: var(--gold-300);
  background: rgba(36, 5, 10, .35);
  border-color: rgba(245, 196, 81, .6);
}
.btn--ghost:hover { background: rgba(245, 196, 81, .12); border-color: var(--gold-400); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; filter: grayscale(.4) brightness(.85); }
.btn.is-loading .btn__label::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .5em; vertical-align: -.15em;
  border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}

.link-btn {
  display: block; margin: 1rem auto 0; min-height: 44px; padding: .5rem 1rem;
  background: none; border: 0; color: var(--maroon-700);
  font: 700 1rem var(--font-display); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; border: 2px solid rgba(245, 196, 81, .5);
  background: rgba(36, 5, 10, .4); color: var(--gold-300);
  font-size: 1.35rem; cursor: pointer;
  transition: transform .4s var(--ease), background-color .2s;
}
.icon-btn:hover { background: rgba(245, 196, 81, .12); }
.icon-btn.is-spinning { animation: spin .8s linear infinite; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 1.25rem 1.25rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.diya--hero { width: 112px; margin: .5rem auto .25rem; overflow: visible; }
.hero__eyebrow {
  display: inline-block; margin: .25rem 0 .75rem;
  padding: .3rem .9rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-300); background: rgba(245, 196, 81, .1); border: 1px solid rgba(245, 196, 81, .3);
}
.hero__title {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 800;
  background: linear-gradient(180deg, #fff3c4 10%, var(--gold-400) 55%, var(--saffron-500));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 170, 60, .25);
  padding-top: .1em;
}
.hero__subtitle {
  margin: .4rem 0 .35rem;
  font: 700 clamp(1.15rem, 4.6vw, 1.55rem)/1.3 var(--font-display);
  color: var(--cream-100);
}
.hero__note { margin: 0 auto 1.5rem; max-width: 34ch; color: var(--cream-200); opacity: .85; font-size: .95rem; }
.hero__cta-group { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.hero__cta { margin-top: 0; }

/* ---------- Countdown ---------- */
.countdown {
  margin: 0 auto; max-width: 440px;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(90, 15, 26, .85), rgba(36, 5, 10, .85));
  border: 1px solid rgba(245, 196, 81, .35);
  box-shadow: var(--shadow-glow);
}
.countdown__title { font-size: 1rem; font-weight: 700; color: var(--gold-300); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.countdown__cell {
  display: flex; flex-direction: column; align-items: center;
  padding: .55rem .25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 244, 220, .06);
  border: 1px solid rgba(245, 196, 81, .2);
}
.countdown__num { font: 800 clamp(1.6rem, 8vw, 2.2rem)/1 var(--font-display); color: var(--cream-50); font-variant-numeric: tabular-nums; }
.countdown__lbl { font-size: .75rem; color: var(--gold-300); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.countdown__done { margin: .25rem 0; font: 800 1.35rem/1.3 var(--font-display); color: var(--gold-300); }
.countdown__when { margin: .7rem 0 0; font-size: .85rem; color: var(--cream-200); opacity: .85; }

/* ---------- Sections ---------- */
main { padding: 0 1rem; }
.section { max-width: 720px; margin: 0 auto 2.5rem; scroll-margin-top: 1rem; }
.section:focus { outline: none; }
.section__title { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; color: var(--maroon-800); }
.section__lead { margin: .35rem 0 1.25rem; color: var(--ink-soft); }
.section__lead--light { color: var(--cream-200); }
#wall .section__title { color: var(--gold-300); }

/* ---------- Thaalam (brass tray) ---------- */
.thaalam {
  position: relative;
  padding: 1.6rem 1.15rem 1.5rem;
  border-radius: var(--radius-lg);
  color: var(--ink);
  border: 8px solid transparent;
  background:
    radial-gradient(ellipse at 50% 0%, var(--cream-50), var(--cream-100) 55%, var(--cream-200)) padding-box,
    conic-gradient(from 210deg, #8a5a12, #ffe39a, #d8962a, #fff3c4, #b9821c, #ffe39a, #8a5a12) border-box;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(185, 130, 28, .25), inset 0 -18px 40px rgba(185, 130, 28, .12);
}
/* Engraved inner rim */
.thaalam::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border-radius: calc(var(--radius-lg) - 12px);
  border: 2px dashed rgba(185, 130, 28, .45);
}
/* A tiny kumkum + chandanam dot at the top of the tray */
.thaalam::after {
  content: ""; position: absolute; top: -18px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #d61f3a 0 5px, #fff4dc 5.5px 9px, var(--gold-500) 9.5px 15px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.thaalam > * { position: relative; }

/* ---------- Form ---------- */
.field { margin-bottom: 1.1rem; }
label, .label { display: block; margin-bottom: .4rem; font: 700 1.02rem var(--font-display); color: var(--maroon-800); }
.optional { font-weight: 500; color: var(--ink-soft); font-size: .9em; }
.hint { margin: .35rem 0 0; font-size: .85rem; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
select {
  width: 100%;
  min-height: var(--tap);
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(185, 130, 28, .55);
  background: #fffdf7;
  color: var(--ink);
  font: 500 1rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder { color: #8f746b; }
input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--saffron-600);
  box-shadow: 0 0 0 4px rgba(255, 140, 26, .25);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--maroon-700); border-bottom: 2.5px solid var(--maroon-700);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
select { padding-right: 2.75rem; cursor: pointer; }
select:invalid { color: #8f746b; }
optgroup {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--maroon-800);
  background: #fdf3df;
  padding: .4rem 0;
}
option {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: #fffdf7;
  padding: .35rem;
}
[aria-invalid="true"] { border-color: var(--danger) !important; }

.field-error { margin: .4rem 0 0; min-height: 0; font-size: .9rem; font-weight: 600; color: var(--danger); }
.field-error:empty { display: none; }

/* ---------- Dropzone ---------- */
.dropzone {
  position: relative;
  border-radius: var(--radius-md);
  border: 2.5px dashed var(--gold-600);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 140, 26, .08), transparent 70%),
    #fffdf7;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.dropzone:focus-within { border-color: var(--saffron-600); box-shadow: 0 0 0 4px rgba(255, 140, 26, .25); }
.dropzone.is-dragover { border-color: var(--saffron-600); background-color: #fff1d6; transform: scale(1.01); }
.dropzone.has-error { border-color: var(--danger); }
.dropzone__inner {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  margin: 0; padding: 1.4rem 1rem 1.2rem; min-height: 150px; justify-content: center;
  text-align: center; cursor: pointer;
  font: 500 1rem var(--font-body); color: var(--ink);
}
.dropzone__icon { width: 52px; height: 52px; transition: transform .3s var(--ease); }
.dropzone:hover .dropzone__icon,
.dropzone.is-dragover .dropzone__icon { transform: translateY(-4px) rotate(-4deg); }
.dropzone__cta strong { color: var(--maroon-700); }

.file-chip {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem .85rem .85rem 1rem;
}
.file-chip[hidden] { display: none; }
.file-chip__icon { font-size: 1.8rem; }
.file-chip__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-chip__name { font-weight: 700; color: var(--maroon-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip__size { font-size: .85rem; color: var(--ink-soft); }
.file-chip__remove {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 2px solid rgba(122, 20, 36, .3); background: transparent; color: var(--maroon-700);
  font-size: 1.05rem; cursor: pointer;
}
.file-chip__remove:hover { background: rgba(122, 20, 36, .08); }

/* ---------- Progress ---------- */
.progress { margin: 0 0 1rem; }
.progress[hidden] { display: none; }
.progress__track {
  height: 14px; border-radius: 999px; overflow: hidden;
  background: rgba(185, 130, 28, .2); border: 1px solid rgba(185, 130, 28, .4);
}
.progress__fill {
  height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--saffron-600), var(--gold-400), var(--saffron-500));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: width .25s var(--ease);
}
.progress__label { margin: .4rem 0 0; font-size: .9rem; font-weight: 600; color: var(--maroon-700); text-align: center; }

/* ---------- Result ---------- */
.result { text-align: center; padding-top: .5rem; animation: rise .6s var(--ease) both; }
.result[hidden] { display: none; }
.result:focus { outline: none; }
.diya--offer { width: 130px; margin: 0 auto .25rem; overflow: visible; }
.result__title { font-size: 1.7rem; color: var(--maroon-800); font-weight: 800; }
.result__meta { margin: .25rem 0 .5rem; color: var(--ink-soft); }
.result__email-note {
  margin: 0 0 1rem; padding: .6rem .8rem; border-radius: var(--radius-sm);
  background: rgba(47, 107, 58, .12); border: 1px solid rgba(47, 107, 58, .3);
  color: var(--leaf); font-size: .88rem; font-weight: 600;
}

.blessing-card {
  position: relative; margin: 0 0 1.25rem;
  padding: 1.25rem 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--maroon-700), var(--maroon-900));
  color: var(--cream-50);
  border: 2px solid var(--gold-500);
  box-shadow: 0 12px 30px rgba(59, 10, 16, .35);
  text-align: left;
}
.blessing-card::before {
  content: "“"; position: absolute; top: -.2em; right: .3em;
  font: 800 5rem/1 var(--font-display); color: rgba(245, 196, 81, .25);
}
.blessing-card__label { margin: 0 0 .3rem; font: 700 .8rem var(--font-display); color: var(--gold-300); text-transform: uppercase; letter-spacing: .1em; }
.blessing-card__text { margin: 0; font: 700 1.25rem/1.4 var(--font-display); }
.result__actions { display: grid; gap: .75rem; }
.result__actions .btn--ghost { color: var(--maroon-800); border-color: var(--gold-600); background: rgba(255, 255, 255, .5); }
.result__actions .btn--ghost:hover { background: #fff; }

/* ---------- Diya flame states ---------- */
.diya__flame { transform-origin: 60px 66px; transform-box: view-box; }
.diya__glow { transform-origin: 60px 46px; transform-box: view-box; }
.diya.is-lit .diya__flame { animation: flicker 1.8s ease-in-out infinite alternate; }
.diya.is-lit .diya__glow { animation: glow 2.4s ease-in-out infinite alternate; }

/* Unlit: no flame, no glow. Lighting it scales the flame up from the wick. */
.diya--offer .diya__flame { transform: scale(0); opacity: 0; }
.diya--offer .diya__glow { opacity: 0; }
.diya--offer.is-igniting .diya__flame { animation: ignite .9s var(--ease) forwards; }
.diya--offer.is-igniting .diya__glow { animation: glowIn 1.2s var(--ease) forwards; }
.diya--offer.is-lit .diya__flame { opacity: 1; transform: none; }
.diya--offer.is-lit .diya__glow { opacity: 1; }

/* ---------- Wall ---------- */
.wall__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.stat {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(122, 20, 36, .7), rgba(59, 10, 16, .8));
  border: 1px solid rgba(245, 196, 81, .3);
}
.stat--wide { grid-column: 1 / -1; }
.stat__num { font: 800 1.9rem/1.1 var(--font-display); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.stat__num--text { font-size: 1.45rem; color: var(--cream-50); }
.stat__lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-200); opacity: .85; }
.stat__num.bump { animation: bump .5s var(--ease); }

.wall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.wall-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--cream-50), var(--cream-100));
  color: var(--ink);
  border-left: 6px solid var(--saffron-500);
  box-shadow: 0 6px 18px rgba(20, 2, 5, .25);
}
.wall-card.is-new { animation: rise .5s var(--ease) both; }
.wall-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.wall-card__name { font: 800 1.1rem var(--font-display); color: var(--maroon-800); overflow-wrap: anywhere; }
.wall-card__time { flex: none; font-size: .8rem; color: var(--ink-soft); }
.wall-card__subject {
  display: inline-block; margin: .35rem 0 .45rem;
  padding: .15rem .65rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  color: var(--maroon-800); background: rgba(245, 196, 81, .35); border: 1px solid rgba(185, 130, 28, .45);
}
.wall-card__blessing { margin: 0; color: var(--ink); }

.skeleton span {
  display: block; height: 14px; margin: .4rem 0; border-radius: 8px;
  background: linear-gradient(90deg, #f1dfb8 25%, #fbefd5 50%, #f1dfb8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeleton span:nth-child(1) { width: 40%; height: 18px; }
.skeleton span:nth-child(2) { width: 25%; }
.skeleton span:nth-child(3) { width: 85%; }

.wall-empty {
  text-align: center; padding: 2rem 1rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(245, 196, 81, .45);
  color: var(--cream-100); font: 700 1.2rem var(--font-display);
}
.wall-empty[hidden] { display: none; }
.wall-empty__emoji { font-size: 2.6rem; margin: 0; }
.wall-empty p { margin: .25rem 0 1rem; }
.wall-error { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgba(179, 38, 30, .2); border: 1px solid rgba(255, 140, 120, .5); color: #ffd9d3; }
.wall-updated { margin: .9rem 0 0; font-size: .8rem; text-align: center; color: var(--cream-200); opacity: .75; }

/* ---------- Wall Pagination ---------- */
.wall-pagination {
  margin: 1.5rem auto .5rem;
  text-align: center;
}
.wall-pagination[hidden] { display: none; }
.btn--load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 244, 220, .12);
  border: 1.5px solid var(--gold-400);
  color: var(--cream-50);
  font: 700 .95rem var(--font-display);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.btn--load-more:hover:not(:disabled) {
  background: rgba(255, 244, 220, .22);
  border-color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 2, 5, .3);
}
.btn--load-more:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.wall-end {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--gold-300);
  opacity: .9;
  font-style: italic;
}
.wall-end[hidden] { display: none; }

/* ---------- Reclaim Section ---------- */
.thaalam--reclaim {
  margin-top: 1rem;
}
.reclaim-results { margin-top: 1.5rem; display: grid; gap: 1rem; }
.reclaim-banner {
  padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; line-height: 1.45;
}
.reclaim-banner--waiting {
  background: rgba(226, 167, 46, .15); border: 1.5px solid var(--gold-500);
  color: var(--maroon-900);
}
.reclaim-banner--ready {
  background: rgba(47, 107, 58, .15); border: 1.5px solid var(--leaf);
  color: var(--leaf);
}
.reclaim-banner--empty {
  background: rgba(90, 15, 26, .08); border: 1.5px dashed var(--gold-600);
  color: var(--maroon-800);
}
.reclaim-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.reclaim-card {
  padding: 1.1rem; border-radius: var(--radius-md);
  background: #fffdf7; border: 1.5px solid rgba(185, 130, 28, .35);
  box-shadow: 0 4px 14px rgba(20, 2, 5, .08);
  display: grid; gap: .6rem;
}
.reclaim-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.reclaim-card__subject { font: 800 1.2rem var(--font-display); color: var(--maroon-800); }
.reclaim-card__date { font-size: .8rem; color: var(--ink-soft); }
.reclaim-card__blessing { margin: 0; font-style: italic; color: var(--ink); font-size: .92rem; }
.reclaim-card__download {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.2rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-400), var(--saffron-500));
  color: var(--maroon-950); font: 700 .95rem var(--font-display);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s var(--ease), filter .2s;
  box-shadow: 0 4px 10px rgba(255, 140, 26, .3);
}
.reclaim-card__download:hover { filter: brightness(1.08); }
.reclaim-card__download:active { transform: scale(.98); }
.reclaim-card__locked {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 700; color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.footer { padding: 0 1.25rem 2.5rem; text-align: center; }
.footer__disclaimer {
  max-width: 640px; margin: 0 auto .75rem;
  padding: 1rem 1.1rem; border-radius: var(--radius-md);
  background: rgba(36, 5, 10, .55); border: 1px solid rgba(245, 196, 81, .3);
  color: var(--cream-100); font-size: .92rem;
}
.footer__disclaimer strong { color: var(--gold-300); }
.footer__small { max-width: 52ch; margin: 0 auto; font-size: .82rem; color: var(--cream-200); opacity: .8; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; z-index: 50; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 440px);
  display: grid; gap: .5rem; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: var(--cream-50); color: var(--ink);
  border-left: 6px solid var(--gold-500);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  font-weight: 600;
  animation: toastIn .35s var(--ease) both;
}
.toast--error { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--leaf); }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
.toast__msg { flex: 1; }
.toast__close { background: none; border: 0; font-size: 1rem; cursor: pointer; color: var(--ink-soft); min-width: 32px; min-height: 32px; }

/* ---------- Animations ---------- */
@keyframes flicker {
  0%   { transform: scale(1, 1) rotate(-1deg); opacity: .95; }
  25%  { transform: scale(.96, 1.05) rotate(1.5deg); opacity: 1; }
  50%  { transform: scale(1.03, .96) rotate(-2deg); opacity: .9; }
  75%  { transform: scale(.98, 1.07) rotate(1deg); opacity: 1; }
  100% { transform: scale(1.02, .98) rotate(-1deg); opacity: .96; }
}
@keyframes glow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
@keyframes ignite {
  0%   { transform: scale(0); opacity: 0; }
  40%  { transform: scale(.4, .9); opacity: 1; }
  70%  { transform: scale(1.12, 1.15); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes glowIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px); } }

/* =========================================================================
   Festive layer: petals, embers, halo, bells, blessings, reveals.
   Purely decorative; everything is pointer-events: none or aria-hidden.
   ========================================================================= */

/* Keep real content above the ambient layer. */
.garland, .hero, main, .footer { position: relative; z-index: 1; }

/* ---------- Ambient petals + embers ---------- */
.ambient {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.petal {
  position: absolute; top: 0; left: var(--x);
  width: 14px; height: 10px;
  border-radius: 70% 0 70% 0;
  background: radial-gradient(circle at 30% 30%, #ffe08a, var(--c, #ff9a1f) 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: petalFall var(--d, 18s) linear var(--delay, 0s) infinite;
}
.petal--red { --c: #d61f3a; }
.petal--gold { --c: #f5c451; }
.petal--saffron { --c: #ff8c1a; }
.ember {
  position: absolute; bottom: -10px; left: var(--x);
  width: var(--sz, 4px); height: var(--sz, 4px); border-radius: 50%;
  background: #ffd36b;
  box-shadow: 0 0 8px 2px rgba(255, 170, 60, .7);
  opacity: 0;
  will-change: transform, opacity;
  animation: emberRise var(--d, 10s) ease-in var(--delay, 0s) infinite;
}

/* ---------- Hero: halo, bells, shloka, shimmer ---------- */
.hero__halo {
  position: relative; width: 170px; margin: .25rem auto 0;
  display: grid; place-items: center;
}
.hero__halo::before,
.hero__halo::after {
  content: ""; position: absolute; left: 50%; top: 42%;
  border-radius: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
}
/* Rotating sun-ray mandala */
.hero__halo::before {
  width: 200px; height: 200px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 110, .22) 0 6deg, transparent 6deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 28%, #000 32%, #000 58%, transparent 70%);
          mask: radial-gradient(circle, transparent 28%, #000 32%, #000 58%, transparent 70%);
  animation: haloSpin 40s linear infinite;
}
/* Dotted outer ring, counter-rotating */
.hero__halo::after {
  width: 176px; height: 176px;
  border: 2px dotted rgba(245, 196, 81, .45);
  animation: haloSpinRev 60s linear infinite;
}
.hero__halo .diya--hero { position: relative; margin: .5rem auto .25rem; filter: drop-shadow(0 8px 18px rgba(255, 140, 26, .35)); }

.bell {
  position: absolute; top: -6px; width: 30px; height: 60px;
  transform-origin: 50% 0;
  animation: bellSwing 3.2s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.bell--left { left: 6px; }
.bell--right { right: 6px; animation-delay: -1.6s; }

.hero__shloka {
  margin: 0 auto .6rem; max-width: 36ch;
  font: 600 clamp(.82rem, 3.4vw, .98rem)/1.6 var(--font-display);
  color: var(--gold-300); opacity: .85;
  letter-spacing: .01em;
}

.hero__title {
  background:
    linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) 0 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #fff3c4 10%, var(--gold-400) 55%, var(--saffron-500));
  -webkit-background-clip: text; background-clip: text;
}

.hero__eyebrow { animation: enter .6s var(--ease) both; }
.hero__title { animation: titleShine 6s ease-in-out 1.2s infinite, enter .7s var(--ease) .1s both; }
.hero__subtitle { animation: enter .7s var(--ease) .2s both; }
.hero__note { animation: enter .7s var(--ease) .3s both; }
.hero__cta-group { animation: enter .7s var(--ease) .45s both; }

/* ---------- Buttons: shine sweep ---------- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after { transform: translateX(120%); }
.hero__cta.btn--primary { animation: ctaPulse 2.8s ease-in-out 2s infinite; }
.btn--ghost:hover { transform: translateY(-2px); }

/* ---------- Countdown ticks ---------- */
.countdown { position: relative; overflow: hidden; }
.countdown::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 80%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 160, 50, .18), transparent 70%);
  animation: glow 3s ease-in-out infinite alternate;
  pointer-events: none;
}
.countdown > * { position: relative; }
.countdown__num { display: inline-block; }
.countdown__num.tick { animation: tick .45s var(--ease); }

/* ---------- Blessing of the moment ---------- */
.oracle {
  margin: 1.6rem auto 0; max-width: 440px;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 160, 50, .18), transparent 70%),
    rgba(36, 5, 10, .55);
  border: 1px solid rgba(245, 196, 81, .35);
  box-shadow: var(--shadow-glow);
}
.oracle__label {
  margin: 0 0 .4rem;
  font: 700 .78rem var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-400);
}
.oracle__text {
  margin: 0 auto .8rem; min-height: 2.9em; max-width: 32ch;
  font: 700 clamp(1.02rem, 4vw, 1.18rem)/1.45 var(--font-display);
  color: var(--cream-50);
  transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s;
}
.oracle__text.is-swapping { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.oracle__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .45rem 1rem;
  border-radius: 999px; border: 1.5px solid rgba(245, 196, 81, .55);
  background: rgba(245, 196, 81, .1); color: var(--gold-300);
  font: 700 .95rem var(--font-display); cursor: pointer;
  transition: background-color .2s, transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.oracle__btn:hover { background: rgba(245, 196, 81, .2); }
.oracle__btn:active { transform: scale(.97); }
.oracle__bell { display: inline-block; transform-origin: 50% 10%; }
.oracle__btn.is-ringing .oracle__bell { animation: bellRing .8s ease-in-out; }

/* ---------- Thaalam: slowly turning brass rim + glowing kumkum ---------- */
@property --rim {
  syntax: "<angle>";
  inherits: false;
  initial-value: 210deg;
}
.thaalam {
  background:
    radial-gradient(ellipse at 50% 0%, var(--cream-50), var(--cream-100) 55%, var(--cream-200)) padding-box,
    conic-gradient(from var(--rim), #8a5a12, #ffe39a, #d8962a, #fff3c4, #b9821c, #ffe39a, #8a5a12) border-box;
  animation: rimTurn 14s linear infinite;
}
.thaalam::after { animation: kumkumGlow 2.6s ease-in-out infinite alternate; }

/* Lotus divider between sections */
.section + .section::before {
  content: "❁  ✦  ❁";
  display: block; margin: 0 auto 1.6rem; text-align: center;
  font-size: 1rem; letter-spacing: .5em; color: var(--gold-400); opacity: .65;
}

.file-chip:not([hidden]) { animation: rise .35s var(--ease) both; }

/* ---------- Result celebration ---------- */
.diya--offer { position: relative; }
.result .result__title { animation: rise .6s var(--ease) .5s both; }
.result .result__meta { animation: rise .6s var(--ease) .6s both; }
.result .blessing-card { animation: blessIn .8s var(--ease) .75s both; overflow: hidden; }
.result .blessing-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 227, 154, .28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sweep 2.4s var(--ease) 1.5s;
}
.result .result__actions { animation: rise .6s var(--ease) .95s both; }

.shower {
  position: fixed; inset: 0; z-index: 40;
  overflow: hidden; pointer-events: none;
}
.shower .petal {
  top: -20px;
  width: var(--w, 14px); height: calc(var(--w, 14px) * .72);
  animation: showerFall var(--d, 3s) cubic-bezier(.3, .4, .6, 1) var(--delay, 0s) forwards;
}

/* ---------- Wall + reclaim polish ---------- */
.wall-card {
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wall-card:not(.skeleton):hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 2, 5, .35); }
.wall-card.is-new,
.reclaim-card { animation: rise .5s var(--ease) calc(var(--i, 0) * 70ms) both; }
.wall-card:not(.skeleton)::after {
  content: "🪔"; position: absolute; right: .9rem; bottom: .7rem;
  font-size: 1rem; opacity: .18; pointer-events: none;
}
.wall-card__blessing { padding-right: 1.4rem; }
.stat { transition: transform .25s var(--ease), border-color .25s; }
.stat:hover { transform: translateY(-2px); border-color: rgba(245, 196, 81, .6); }
.wall-empty__emoji { animation: floatY 3s ease-in-out infinite; }

/* ---------- Scroll reveal (only when JS opted in) ---------- */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Festive keyframes ---------- */
@keyframes petalFall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg) scale(var(--s, 1)); opacity: 0; }
  10%  { opacity: var(--o, .7); }
  50%  { transform: translate3d(calc(var(--drift, 40px) * -.6), 50vh, 0) rotate(260deg) scale(var(--s, 1)); }
  90%  { opacity: var(--o, .7); }
  100% { transform: translate3d(var(--drift, 40px), 108vh, 0) rotate(540deg) scale(var(--s, 1)); opacity: 0; }
}
@keyframes showerFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate3d(var(--drift, 30px), 105vh, 0) rotate(var(--rot, 540deg)); opacity: 0; }
}
@keyframes emberRise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translate3d(var(--drift, 20px), -70vh, 0) scale(.3); opacity: 0; }
}
@keyframes haloSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes haloSpinRev { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes bellSwing {
  0%, 100% { transform: rotate(6deg); }
  50%      { transform: rotate(-6deg); }
}
@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(22deg); }
  35% { transform: rotate(-18deg); }
  55% { transform: rotate(12deg); }
  75% { transform: rotate(-6deg); }
}
@keyframes titleShine {
  0%, 60% { background-position: 150% 0, 0 0; }
  100%    { background-position: -60% 0, 0 0; }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 0 var(--gold-700), 0 12px 24px rgba(255, 140, 26, .35); }
  50%      { box-shadow: 0 6px 0 var(--gold-700), 0 12px 38px rgba(255, 170, 60, .7); }
}
@keyframes tick {
  0%   { transform: translateY(-35%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes rimTurn { to { --rim: 570deg; } }
@keyframes kumkumGlow {
  from { box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 160, 50, 0); }
  to   { box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 18px 4px rgba(255, 160, 50, .55); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
@keyframes blessIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } }
@keyframes sweep { to { transform: translateX(120%); } }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .hero { padding-top: 2rem; }
  .diya--hero { width: 132px; }
  .thaalam { padding: 2.2rem 2.2rem 2rem; }
  .stats { grid-template-columns: 1fr 1fr 1.6fr; }
  .stat--wide { grid-column: auto; }
  .result__actions { grid-template-columns: 1fr 1fr; }
  .hero__halo { width: 200px; }
  .hero__halo::before { width: 240px; height: 240px; }
  .hero__halo::after { width: 210px; height: 210px; }
  .bell { width: 40px; height: 80px; }
  .bell--left { left: 24px; }
  .bell--right { right: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* Keep the flame visible but still */
  .diya.is-lit .diya__flame,
  .diya.is-lit .diya__glow { animation: none !important; }
  .ambient, .shower { display: none !important; }
  .hero__halo::before, .hero__halo::after, .bell, .thaalam { animation: none !important; }
}
