:root {
  --bg: #f7f3ec;
  --card: #ffffff;
  --ink: #1f2a2e;
  --muted: #6a7478;
  --line: #ebe5da;
  --accent: #0e8a7e;
  --accent-soft: #e2f3f0;
  --sun: #f2994a;
  --done: #a3abae;
  --shadow: 0 1px 2px rgba(31, 42, 46, .05), 0 6px 18px rgba(31, 42, 46, .06);
  --hero: linear-gradient(135deg, #f7b733 0%, #f28b50 40%, #d9486b 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181a;
    --card: #1b2326;
    --ink: #eef3f3;
    --muted: #9aa6a9;
    --line: #2a3438;
    --accent: #3fc6b6;
    --accent-soft: #173a37;
    --sun: #f5ac64;
    --done: #64706f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --hero: linear-gradient(135deg, #a8741d 0%, #a65232 40%, #8e2b45 100%);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* Hero */
.hero {
  background: var(--hero);
  color: #fff;
  padding: 34px 16px 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: -10%; right: -10%; bottom: -1px;
  height: 46px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 4px 10px; border-radius: 999px;
}
.hero h1 { font-size: 30px; line-height: 1.15; margin: 12px 0 6px; font-weight: 800; letter-spacing: -.01em; }
.hero p { margin: 0; opacity: .92; font-size: 15px; }
.hero .pill-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 9px 14px; border-radius: 999px;
  background: #fff; color: #1f2a2e; font-weight: 700; font-size: 14px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}

main { max-width: 760px; margin: -34px auto 0; padding: 0 16px 64px; position: relative; z-index: 2; }

/* Sticky progress */
.progress {
  position: sticky; top: 10px; z-index: 5;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.progress .meter { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress .meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--accent)); border-radius: 999px; transition: width .35s ease; }
.progress .count { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Cards */
section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 8px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}
section h2 {
  font-size: 17px; font-weight: 800; margin: 0 0 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
section h2 small {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
section.complete { border-color: var(--accent); }
section.complete h2 small { background: var(--accent); color: #fff; }

/* ---- venue shortlist additions ---- */
.note { font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.legend span { font-size: 12px; font-weight: 600; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); padding: 3px 9px; border-radius: 999px; }
.rules { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 14px; }
.rules b { color: var(--accent); }
h3.group { margin: 28px 4px 4px; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }

.slist { display: grid; gap: 6px; margin: 6px 0 10px; }
.srow { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.srow .sname { font-weight: 700; flex: 1; }
.srow .sinfo { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-right: 6px; }
.b-ok { background: #dff3e6; color: #1d7a45; } .dot.b-ok { background: #2fa463; }
.b-mid { background: #fff1d6; color: #8a5a00; } .dot.b-mid { background: #e0a020; }
.b-wait { background: #eceae6; color: #6a6460; } .dot.b-wait { background: #b3aca5; }
.b-flag { background: #ffe4e4; color: #a32424; }
@media (prefers-color-scheme: dark) {
  .b-ok { background: #173a28; color: #7fd7a3; } .b-mid { background: #3a2e14; color: #f2c66b; }
  .b-wait { background: #2b2b2b; color: #bdb6ae; } .b-flag { background: #3d1c1c; color: #f3a0a0; }
}

.venue h2 { display: block; font-size: 20px; margin: 8px 0 2px; }
.kind { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.facts { display: grid; gap: 8px; margin: 8px 0; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 14.5px; }
.fact .ic { font-size: 18px; line-height: 1.3; }
.fact b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.fact small { display: block; color: var(--muted); font-size: 13px; }
.said { margin: 10px 0; }
.said .lbl { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--sun); }
.said ul { margin: 4px 0 0; padding-left: 18px; font-size: 14.5px; }
.said li { margin: 3px 0; }
.tip { margin: 8px 0; padding: 9px 12px; border-radius: 12px; background: #fff4e8; color: #8a4b12; font-size: 13.5px; }
@media (prefers-color-scheme: dark) { .tip { background: #3a2a1b; color: #f3c79b; } }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.btn:hover { background: var(--accent); color: #fff; }
.mapnote { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }

details.gal { border-top: 1px solid var(--line); margin: 6px -16px 0; padding: 10px 16px 6px; }
details.gal summary { cursor: pointer; font-weight: 800; font-size: 14.5px; list-style: none; }
details.gal summary::-webkit-details-marker { display: none; }
details.gal summary::after { content: " ▾"; color: var(--muted); }
details.gal[open] summary::after { content: " ▴"; }
.pnote { font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.pnote.flag { color: #a32424; background: #ffecec; padding: 8px 10px; border-radius: 10px; }
@media (prefers-color-scheme: dark) { .pnote.flag { color: #f3a0a0; background: #3d1c1c; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding-bottom: 8px; }
.grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--line); }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.grid a:hover img { transform: scale(1.04); }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 26px; } }

/* ===== Haldi & Mehndi animated header ===== */
.hero.haldi {
  padding: 92px 16px 86px;
  color: #4a1f06;
  background:
    radial-gradient(120% 80% at 15% 0%, #fff6c2 0%, rgba(255,246,194,0) 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(122,46,18,.18) 0%, rgba(122,46,18,0) 60%),
    linear-gradient(165deg, #ffe066 0%, #ffc53d 38%, #f9a124 70%, #ee7d16 100%);
  min-height: 330px;
  isolation: isolate;
}
.hero.haldi::before { /* soft turmeric texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.6px);
  background-size: 18px 18px;
}
.toran { position: absolute; top: 0; left: 0; width: 100%; height: 96px; z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(120,50,0,.25)); }
.toran .hang { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.6s ease-in-out infinite alternate; }
.toran .leafy { transform-origin: 50% 0; }
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }

.petals { position: absolute; inset: 0; overflow: hidden; z-index: 1; pointer-events: none; }
.petal { position: absolute; top: -30px; opacity: 0; animation: fall linear infinite; will-change: transform; }
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .95; }
  85%  { opacity: .9; }
  100% { transform: translate3d(var(--drift), 430px, 0) rotate(540deg); opacity: 0; }
}

.mandala { position: absolute; z-index: 0; right: -60px; top: 64px; width: 320px; height: 320px; opacity: .62; pointer-events: none; }
.mandala .spin { transform-origin: 0 0; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mandala .draw { fill: none; stroke: #6b2410; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 440; stroke-dashoffset: 440; animation: draw 2.4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mandala .dot { fill: #7a2e12; opacity: 0; animation: pop .5s ease forwards; }
@keyframes pop { to { opacity: 1; } }

.hero.haldi .hero-inner { z-index: 3; }
.hero.haldi .eyebrow { background: rgba(255,255,255,.5); border-color: rgba(122,46,18,.25); color: #7a2e12; }
.hero h1.title { font-family: "Rozha One", Georgia, serif; font-weight: 400; font-size: 52px; line-height: 1.02; margin: 14px 0 2px; letter-spacing: .5px; }
.title .w-haldi { color: #8a4a00; text-shadow: 0 2px 0 rgba(255,255,255,.55), 0 0 22px rgba(255,214,64,.9); }
.title .w-mehndi { color: #2f6b2a; text-shadow: 0 2px 0 rgba(255,255,255,.55); }
.title .amp { font-family: "Yatra One", Georgia, serif; color: #b4380f; font-size: .8em; display: inline-block; animation: beat 2.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.15) rotate(4deg); } }
.hindi { font-family: "Yatra One", "Rozha One", serif; font-size: 22px; color: #7a2e12; opacity: .9; }
.hindi span { color: #c2410c; margin: 0 4px; }
.swash { display: block; width: 220px; height: 16px; margin: 4px 0 8px; }
.swash path { fill: none; stroke: #2f6b2a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.8s .6s ease forwards; }
.hero.haldi p { color: #5a2a0b; opacity: 1; font-weight: 600; }
.hero.haldi .legend span { background: rgba(255,255,255,.45); border-color: rgba(122,46,18,.2); color: #5a2a0b; }
.hero.haldi::after { z-index: 4; }

@media (max-width: 420px) {
  .hero.haldi { padding-top: 84px; }
  .hero h1.title { font-size: 44px; }
  .hindi { font-size: 19px; }
  .mandala { width: 250px; height: 250px; right: -70px; top: 96px; opacity: .42; }
}
@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .toran .hang, .mandala .spin, .title .amp { animation: none; }
  .mandala .draw, .swash path { animation: none; stroke-dashoffset: 0; }
  .mandala .dot { animation: none; opacity: 1; }
}

/* ===== Accept / Reject ===== */
.mini { display: inline-block; font-weight: 800; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.mini.yes { background: #dff3e6; color: #1d7a45; } .mini.no { background: #ffe4e4; color: #a32424; }
.tally {
  position: sticky; top: 8px; z-index: 20; margin: 12px 0;
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 700;
}
.tally b { font-size: 16px; }
.tally .t-yes b { color: #1d9a52; } .tally .t-no b { color: #d23b3b; }
.tally .sync { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tally .sync.warn { color: #b45309; }
.srow[data-state="yes"] { background: #dff3e6; } .srow[data-state="yes"] .sname::after { content: " 💚"; }
.srow[data-state="no"] { opacity: .55; } .srow[data-state="no"] .sname { text-decoration: line-through; }
@media (prefers-color-scheme: dark) { .srow[data-state="yes"] { background: #173a28; } .mini.yes { background: #173a28; color: #7fd7a3; } .mini.no { background: #3d1c1c; color: #f3a0a0; } }

.venue { scroll-margin-top: 96px; position: relative; transition: opacity .5s, filter .5s, border-color .5s, box-shadow .5s; }
.decide { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.decide.bottom { margin: 12px 0 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dbtn {
  position: relative; overflow: hidden; margin: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 10px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: .01em; cursor: pointer;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .25s, background .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.dbtn .ico { font-size: 18px; display: inline-block; transition: transform .35s cubic-bezier(.3,1.8,.5,1); }
.dbtn:active { transform: scale(.93); }
.dbtn.yes { color: #17693b; background: linear-gradient(135deg, #eafaf0, #d3f2de); border-color: #8fd8ab; animation: breathe 2.8s ease-in-out infinite; }
.dbtn.no { color: #a32424; background: linear-gradient(135deg, #fff1f1, #ffe0e0); border-color: #f2b1b1; }
.dbtn.yes:hover { box-shadow: 0 8px 22px rgba(29,154,82,.28); transform: translateY(-2px); }
.dbtn.no:hover { box-shadow: 0 8px 22px rgba(210,59,59,.22); transform: translateY(-2px); }
.dbtn.yes:hover .ico { transform: scale(1.3) rotate(-10deg); }
.dbtn.no:hover .ico { animation: wiggle .5s ease; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,164,99,.0); } 50% { box-shadow: 0 0 0 6px rgba(47,164,99,.16); } }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
.dbtn .shine { position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
/* selected */
.dbtn.yes[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #2fb36a, #1d8f4f); border-color: #1d8f4f; animation: none; box-shadow: 0 6px 18px rgba(29,143,79,.35); }
.dbtn.no[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #e25555, #b92f2f); border-color: #b92f2f; box-shadow: 0 6px 18px rgba(185,47,47,.3); }
.dbtn[aria-pressed="true"] .ico { transform: scale(1.15); }
.dbtn.yes[aria-pressed="true"] .lab::after { content: "ed ✓"; }
.dbtn.no[aria-pressed="true"] .lab::after { content: "ed"; }
.is-yes .dbtn.no, .is-no .dbtn.yes { opacity: .55; animation: none; }
@media (prefers-color-scheme: dark) {
  .dbtn.yes { color: #9de8bb; background: linear-gradient(135deg, #12301f, #173a28); border-color: #2f7a50; }
  .dbtn.no { color: #f3a0a0; background: linear-gradient(135deg, #2e1717, #3d1c1c); border-color: #7a3434; }
  .dbtn .shine { background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); }
}

/* card states */
.venue.is-yes { border-color: #2fb36a; box-shadow: 0 0 0 2px rgba(47,179,106,.25), var(--shadow); }
.venue.is-no { opacity: .62; filter: grayscale(.55); }
.venue.is-no:hover { opacity: .9; filter: none; }
.stamp {
  position: absolute; top: 84px; right: 14px; z-index: 3; pointer-events: none;
  font-family: "Yatra One", serif; font-size: 17px; padding: 4px 12px; border-radius: 10px;
  border: 2.5px solid currentColor; transform: rotate(8deg) scale(0); opacity: 0;
  transition: transform .5s cubic-bezier(.3,1.8,.5,1), opacity .3s;
}
.is-yes .stamp { color: #1d8f4f; background: rgba(223,243,230,.92); transform: rotate(8deg) scale(1); opacity: 1; }
.is-no .stamp { color: #b92f2f; background: rgba(255,228,228,.92); transform: rotate(-8deg) scale(1); opacity: 1; }
@media (prefers-color-scheme: dark) { .is-yes .stamp { background: rgba(23,58,40,.92); color: #7fd7a3; } .is-no .stamp { background: rgba(61,28,28,.92); color: #f3a0a0; } }
.venue.pop-yes { animation: popyes .9s ease; }
.venue.pop-no { animation: popno .6s ease; }
@keyframes popyes { 0% { box-shadow: 0 0 0 0 rgba(47,179,106,.55); } 40% { transform: scale(1.015); box-shadow: 0 0 0 14px rgba(47,179,106,.0); } 100% { transform: none; } }
@keyframes popno { 0%,100% { transform: none; } 20% { transform: translateX(-10px) rotate(-.6deg); } 40% { transform: translateX(9px) rotate(.5deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

h3.group.g-yes { color: #1d8f4f; }
h3.group.g-no { color: #b92f2f; }

/* burst particles */
.spark { position: fixed; z-index: 999; pointer-events: none; font-size: 18px; transform: translate(-50%, -50%); animation: spark 1.2s cubic-bezier(.15,.7,.3,1) forwards; }
.spark.no { color: #d23b3b; font-size: 34px; line-height: 0; }
@keyframes spark {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) rotate(var(--rot)) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dbtn.yes, .dbtn .shine { animation: none; }
}

/* Rejected: closed history dropdown at the bottom */
.rejbox { margin: 26px 0 8px; border: 1px dashed var(--line); border-radius: 18px; background: transparent; }
.rejbox > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  padding: 14px 16px; border-radius: 18px; color: var(--muted); font-weight: 800; font-size: 14px;
  text-transform: uppercase; letter-spacing: .03em;
}
.rejbox > summary::-webkit-details-marker { display: none; }
.rejbox > summary::after { content: "▾"; margin-left: auto; transition: transform .3s; }
.rejbox[open] > summary::after { transform: rotate(180deg); }
.rejbox > summary small { background: #ffe4e4; color: #a32424; border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.rejbox > summary em { flex: 1; min-width: 0; font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 12.5px; opacity: .8; }
.rejbox .rejlist { padding: 0 10px 6px; }
.rejbox[open] .rejlist { animation: unfold .35s ease; }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { .rejbox > summary small { background: #3d1c1c; color: #f3a0a0; } }
.tally .t-no { cursor: pointer; }
.venue.leaving { transition: transform .35s ease, opacity .35s ease; transform: scale(.96); opacity: 0; }

.rejbox .ruled { margin: 6px 12px 14px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
