/* =========================================================
   Gaurav & Priya — "Raat ki Roshni" theme
   night indigo · rani pink · marigold · gold foil
   ========================================================= */
:root {
  --night: #140a2a;
  --night-2: #241046;
  --plum: #3a0d3f;
  --rani: #d81b60;
  --rani-2: #ff4f8b;
  --mari: #ffa51f;
  --mari-2: #ffcd4a;
  --gold: #e8c372;
  --gold-2: #fff0c2;
  --ivory: #fff7ea;
  --ivory-2: #f6ead4;
  --ink: #2a0f2f;
  --muted: #7a5c74;
  --foil: linear-gradient(120deg, #b8862b, #fff0c2 28%, #d9a845 50%, #fff3cf 70%, #a87923);
  --display: "Rozha One", serif;
  --script: "Pinyon Script", cursive;
  --caps: "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; overflow-x: hidden;
  font-family: var(--serif); font-size: 18px; color: var(--ivory);
  background: radial-gradient(120% 80% at 50% 0%, #3b1360 0%, var(--night-2) 35%, var(--night) 75%) fixed, var(--night);
}
body.locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: inherit; }
.center { text-align: center; }
#sky, #petals { position: fixed; inset: 0; pointer-events: none; }
#sky { z-index: 0; }
#petals { z-index: 60; }
main { position: relative; z-index: 1; }

/* ---------------- ENVELOPE GATE ---------------- */
#gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 26px; padding: 24px;
  background: radial-gradient(70% 50% at 50% 45%, rgba(216,27,96,.35), transparent 70%), rgba(20,10,42,.96);
  transition: opacity 1s ease, transform 1.2s ease;
}
#gate.fade { opacity: 0; transform: scale(1.08); pointer-events: none; }
#gate.gone { display: none; }
.gate-for { margin: 0; font-family: var(--caps); letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: var(--gold); text-align: center; }
.gate-hint { margin: 0; font-size: 15px; color: rgba(255,247,234,.7); font-style: italic; text-align: center; }
.gate-hint span { white-space: nowrap; }
.envelope { position: relative; width: min(86vw, 400px); aspect-ratio: 4 / 3; perspective: 1200px; animation: hover 4s ease-in-out infinite; }
.env-back, .env-pocket, .env-flap { position: absolute; inset: 0; border-radius: 10px; }
.env-back { background: linear-gradient(160deg, #a3124a, #6d0b34); box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 0 0 2px rgba(232,195,114,.5); }
.letter {
  position: absolute; left: 6%; right: 6%; top: 6%; height: 88%; z-index: 2; border-radius: 6px;
  background: linear-gradient(170deg, #fffaf0, var(--ivory-2)); color: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
  box-shadow: inset 0 0 0 1.5px rgba(184,134,43,.6), inset 0 0 0 6px var(--ivory), inset 0 0 0 7px rgba(184,134,43,.4);
  transition: transform 1.1s .65s cubic-bezier(.3,.8,.2,1);
}
.l-small { font-family: var(--caps); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.l-names { font-family: var(--script); font-size: clamp(34px, 10vw, 46px); color: var(--rani); line-height: 1.1; }
.l-names i { font-style: normal; color: #b8862b; }
.l-date { font-family: var(--caps); font-size: 12px; letter-spacing: .2em; color: var(--ink); }
.env-pocket { z-index: 3; background: linear-gradient(200deg, #c2185b, #8a0e40); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.env-pocket::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,240,194,.06) 0 2px, transparent 2px 10px); }
.env-flap { z-index: 4; transform-origin: top center; background: linear-gradient(180deg, #e0256c, #a3124a); clip-path: polygon(0 0, 100% 0, 50% 60%);
  transition: transform .9s cubic-bezier(.5,0,.3,1), z-index 0s .45s; }
.seal { position: absolute; z-index: 5; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 86px; height: 86px; border: 0; border-radius: 50%; padding: 0;
  background: radial-gradient(circle at 35% 30%, #ffd77a, #c8932c 55%, #8a5d12); box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 4px rgba(255,240,194,.25);
  transition: transform .5s ease, opacity .5s ease; animation: sealPulse 2.2s ease-in-out infinite; }
.seal::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px dashed rgba(255,205,74,.55); animation: spin 14s linear infinite; }
.seal-in { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-family: var(--caps); font-weight: 700; font-size: 22px; color: #5a3a06;
  box-shadow: inset 0 0 0 5px rgba(90,58,6,.25); }
.seal-in b { font-size: 12px; margin: 0 3px; color: #7a1030; }
#gate.open .seal { transform: translate(-50%, -50%) scale(1.6) rotate(25deg); opacity: 0; animation: none; }
#gate.open .env-flap { transform: rotateX(180deg); z-index: 1; }
#gate.open .letter { transform: translateY(-58%); }
#gate.open .envelope { animation: none; }

/* ---------------- REVEAL ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 20px 90px; overflow: hidden; }
.toran { position: absolute; top: 0; left: 0; right: 0; height: 160px; display: flex; justify-content: space-between; padding: 0 2%; z-index: 3; pointer-events: none; }
.toran::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: linear-gradient(90deg, #0f7a5f, #2fa37f, #0f7a5f); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.strand { display: flex; flex-direction: column; align-items: center; transform-origin: top center; animation: sway 4s ease-in-out infinite; }
.strand i { width: 18px; height: 18px; margin-top: -5px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 35%, var(--mari-2), var(--mari) 45%, #e06d00 80%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), 0 2px 3px rgba(0,0,0,.35); }
.strand i:nth-child(3n) { background: radial-gradient(circle at 40% 35%, #fff3b0, #ffd23a 45%, #e0a000 80%); }
.strand i:nth-child(5n) { width: 14px; height: 14px; background: radial-gradient(circle at 40% 35%, #ff8db7, var(--rani) 60%); }
.strand em { width: 12px; height: 16px; margin-top: -2px; background: #1f9c5a; border-radius: 0 50% 50% 50%; transform: rotate(45deg); }

.hero-grid { display: grid; gap: 8px; justify-items: center; text-align: center; position: relative; z-index: 2; }
.hero-text { display: grid; gap: 4px; justify-items: inherit; }
.shri { font-family: var(--display); color: var(--gold); font-size: 17px; letter-spacing: .06em; margin: 0; }
.shubh { font-family: var(--display); font-weight: 400; margin: 0; font-size: clamp(64px, 20vw, 118px); line-height: 1.15;
  background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255,165,31,.25)); animation: foil 6s linear infinite; }
.names-script { font-family: var(--script); font-size: clamp(42px, 12vw, 70px); margin: 0; line-height: 1.15; color: var(--ivory); }
.names-script i { font-family: var(--serif); font-style: italic; font-size: .7em; color: var(--rani-2); margin: 0 .1em; }
.hero-date { font-family: var(--caps); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin: 6px 0 0; }
.hero-date span { color: var(--mari); margin: 0 4px; }
.hero-cta { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.hero-art { position: relative; width: min(84vw, 400px); aspect-ratio: 1 / 1.12; margin-top: 18px; display: grid; place-items: end center; }
.mandala { position: absolute; left: -6%; top: -6%; width: 112%; aspect-ratio: 1; animation: spin 90s linear infinite; opacity: .9; }
.glow { position: absolute; left: 15%; right: 15%; top: 14%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,165,31,.55), rgba(216,27,96,.25) 45%, transparent 70%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
.hero-photo { position: relative; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5));
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent); mask-image: linear-gradient(to bottom, #000 86%, transparent); }
.scroll-cue { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,240,194,.6); border-radius: 14px; z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s infinite; }

/* ---------------- SECTIONS ---------------- */
.sec { padding: 70px 16px; position: relative; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto; }
.eyebrow { font-family: var(--caps); letter-spacing: .28em; text-transform: uppercase; font-size: 12px; color: var(--mari); margin: 0 0 8px; }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 10vw, 60px); line-height: 1.1; margin: 0;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-sub { margin: 10px 0 0; font-style: italic; color: rgba(255,247,234,.75); font-size: 18px; }
.tiny { font-size: 14px; color: rgba(255,247,234,.65); margin: 8px 0 0; }

/* ---------------- INVITATION CARD ---------------- */
.card-ivory {
  position: relative; max-width: 620px; margin: 0 auto; padding: 46px 22px 34px; text-align: center; color: var(--ink); border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,205,74,.18), transparent 50%),
    repeating-linear-gradient(135deg, rgba(184,134,43,.04) 0 2px, transparent 2px 12px),
    linear-gradient(175deg, #fffbf3, var(--ivory-2));
  box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 1.5px rgba(184,134,43,.55), inset 0 0 0 8px #fffaf0, inset 0 0 0 9px rgba(184,134,43,.35);
}
.corner { position: absolute; width: 46px; height: 46px; border: 3px solid #c9973a; }
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.mantra { font-family: var(--display); font-size: clamp(14px, 3.9vw, 18px); line-height: 1.8; color: #8a1240; margin: 0; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px auto; max-width: 260px; color: #b8862b; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b8862b, transparent); }
.blessing { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.blessing b { font-family: var(--script); font-weight: 400; font-size: 1.5em; color: var(--rani); }
.name { font-family: var(--script); font-weight: 400; font-size: clamp(48px, 13vw, 72px); line-height: 1.1; margin: 0; color: #7a1030; }
.parents { font-style: italic; color: var(--muted); margin: 2px 0 0; font-size: 16px; }
.amp { font-family: var(--display); font-size: 40px; margin: 6px 0; color: #c9973a; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 30px auto 26px; max-width: 400px; }
.countdown div { border-radius: 16px; padding: 12px 0 9px; color: var(--ivory); background: linear-gradient(160deg, var(--night-2), var(--plum)); box-shadow: inset 0 0 0 1px rgba(232,195,114,.5), 0 8px 18px rgba(36,16,70,.3); }
.countdown b { display: block; font-family: var(--caps); font-size: 26px; font-weight: 700; color: var(--gold-2); }
.countdown span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.card-ivory .eyebrow { color: #a3124a; }
.scratch { position: relative; width: min(100%, 330px); height: 132px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 26px rgba(122,16,48,.25); touch-action: none; }
.scratch-under { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; background: radial-gradient(circle at 50% 30%, #fff, #ffe4ee); }
.sd-day { font-family: var(--caps); letter-spacing: .25em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.sd-date { font-family: var(--display); font-size: 38px; color: var(--rani); line-height: 1.1; }
.sd-sub { font-style: italic; color: #7a1030; font-size: 15px; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; transition: opacity .8s; }
.scratch.done #scratchCanvas { opacity: 0; pointer-events: none; }

/* ---------------- EVENTS ---------------- */
.events-sec { padding-left: 0; padding-right: 0; overflow: hidden; transition: background .8s; }
.timeline { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 24px 16px 4px; }
.timeline button { border: 1px solid rgba(232,195,114,.4); background: rgba(255,255,255,.05); border-radius: 999px; padding: 7px 13px; font-family: var(--caps); font-size: 12.5px; letter-spacing: .06em; color: var(--gold-2); transition: .3s; }
.timeline button.active { background: var(--foil); color: var(--ink); border-color: transparent; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,165,31,.3); }
.carousel-wrap { position: relative; }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 70px calc(50% - min(39vw, 160px)) 30px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.nav-arrow { display: none; }
.card { flex: 0 0 min(78vw, 320px); height: min(130vw, 540px); scroll-snap-align: center; perspective: 1400px; transition: transform .5s, opacity .5s, filter .5s; opacity: .5; transform: scale(.9); filter: saturate(.6); cursor: pointer; }
.card.current { opacity: 1; transform: none; filter: none; }
.card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,.7,.2,1); }
.card.flipped .card-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 200px 200px 28px 28px; }
.face.front {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(rgba(255,240,194,.18) 1.2px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(170deg, var(--c), var(--c2, #12051f));
  box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,240,194,.35);
}
.face.front::before { content: ""; position: absolute; inset: 12px; border-radius: 190px 190px 18px 18px; border: 1.5px solid rgba(255,240,194,.6); pointer-events: none; }
.face.front::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 32%; height: 28px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.5), transparent 70%); }
.art { position: absolute; left: 50%; bottom: 33%; height: 76%; width: auto; max-width: none; transform: translateX(-50%); z-index: 2;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); transition: transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.art.wide { height: 62%; }
.card.current .art { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.info { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 3; border-radius: 0 0 28px 28px; padding: 14px 16px 18px; text-align: center;
  background: linear-gradient(180deg, rgba(18,5,31,0), rgba(18,5,31,.82) 24%, rgba(18,5,31,.94)); display: grid; align-content: end; gap: 5px; }
.info h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 7vw, 29px); line-height: 1.1; margin: 0; color: var(--gold-2); }
.chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--caps); font-size: 11px; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: rgba(255,240,194,.12); border: 1px solid rgba(255,240,194,.3); color: var(--ivory); }
.chip.date { background: var(--foil); color: var(--ink); border: 0; font-weight: 700; }
.venue-line { font-size: 15px; color: rgba(255,247,234,.85); }
.flip-hint { font-family: var(--caps); font-size: 10.5px; letter-spacing: .12em; color: var(--mari-2); }
.face.back { transform: rotateY(180deg); background: linear-gradient(175deg, #fffbf3, var(--ivory-2)); color: var(--ink); display: flex; flex-direction: column; padding: 50px 22px 22px; box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 0 0 3px var(--c); }
.back .emoji { font-size: 38px; text-align: center; }
.back h3 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 2px 0 8px; text-align: center; color: var(--c); line-height: 1.1; }
.back .row { display: flex; gap: 10px; align-items: flex-start; margin: 5px 0; font-size: 16.5px; }
.back .row i { font-style: normal; width: 24px; flex: none; }
.back .btns { margin-top: auto; display: grid; gap: 9px; }
.mini-map { margin: 8px 0; border-radius: 16px; height: 84px; display: grid; place-items: center; text-decoration: none; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px) 0 0 / 18px 18px, #f3e6cf; }
.mini-map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 55%; height: 10px; background: #fff; transform: rotate(-8deg); box-shadow: 0 0 0 2px #e8d6b6; }
.mini-map .pin { font-size: 30px; position: relative; animation: bobPin 1.6s infinite; }
.mini-map .lbl { position: absolute; bottom: 5px; font-family: var(--caps); font-size: 10.5px; letter-spacing: .1em; color: var(--ink); }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,240,194,.3); transition: .3s; }
.dots button.active { width: 28px; border-radius: 6px; background: var(--mari); }

/* ---------------- BUTTONS ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; text-decoration: none;
  background: linear-gradient(135deg, var(--rani), #a3124a); color: #fff; font-family: var(--caps); font-weight: 700; letter-spacing: .08em; font-size: 13px; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(216,27,96,.35); transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--foil); background-size: 200% 100%; color: var(--ink); box-shadow: 0 8px 24px rgba(255,165,31,.35); animation: foil 6s linear infinite; }
.btn.ghost { background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,240,194,.5); color: var(--gold-2); box-shadow: none; }
.btn.line { background: transparent; color: var(--ink); border: 1.5px solid currentColor; box-shadow: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------- PARADE ---------------- */
.parade-sec { text-align: center; padding-bottom: 40px; overflow: hidden; }
.parade { margin: 34px -16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.parade-track { display: flex; align-items: flex-end; gap: 26px; width: max-content; animation: march 38s linear infinite; padding: 12px 0 18px; }
.parade-track img { height: 260px; width: auto; max-width: none; filter: drop-shadow(0 14px 12px rgba(0,0,0,.45)); animation: bounce 1.2s ease-in-out infinite; }
.parade-track img:nth-child(even) { animation-delay: .6s; }
.parade-sec .sec-sub { max-width: 420px; margin-left: auto; margin-right: auto; }
.love { margin-top: 18px; }
.heart-tap { border: 0; background: radial-gradient(circle, #ff6fa1, var(--rani)); width: 74px; height: 74px; border-radius: 50%; font-size: 34px; box-shadow: 0 0 0 8px rgba(216,27,96,.18), 0 12px 30px rgba(216,27,96,.45); animation: beat 1.2s infinite; }

/* ---------------- RSVP QUEST ---------------- */
.quest { max-width: 580px; margin: 28px auto 0; background: linear-gradient(175deg, #fffbf3, var(--ivory-2)); color: var(--ink); border-radius: 28px; padding: 22px 18px 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(184,134,43,.55); position: relative; overflow: hidden; }
.quest::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--rani), var(--mari), #0f7a5f, #3a2a8c); }
.q-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--caps); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.q-bar { height: 10px; border-radius: 6px; background: #efe1c8; margin: 10px 0 18px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mari), var(--rani)); border-radius: 6px; transition: width .6s cubic-bezier(.2,.8,.2,1); position: relative; }
.q-bar i::after { content: "🪔"; position: absolute; right: -8px; top: -9px; font-size: 17px; }
.q-step { animation: stepIn .5s cubic-bezier(.2,.8,.2,1); }
.q-step h3 { font-family: var(--display); font-weight: 400; color: #7a1030; font-size: 28px; margin: 0 0 2px; line-height: 1.15; }
.q-step p.hint { margin: 0 0 14px; color: var(--muted); font-style: italic; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field label { font-family: var(--caps); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; border: 1.5px solid #e3d0ae; background: #fff; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--ink); outline: none; transition: border .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { border-color: var(--rani); box-shadow: 0 0 0 4px rgba(216,27,96,.14); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.two-col { grid-template-columns: repeat(2, 1fr); }
.tile { border: 2px solid #ead9bb; background: #fff; border-radius: 18px; padding: 14px 6px 10px; display: grid; justify-items: center; gap: 4px; font-family: var(--caps); font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--ink); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; position: relative; }
.tile small { font-family: var(--serif); font-weight: 500; color: var(--muted); letter-spacing: 0; font-size: 13px; }
.tile .ic { font-size: 32px; transition: transform .3s; }
.tile:hover .ic { transform: scale(1.15) rotate(-6deg); }
.tile.on { border-color: var(--rani); background: #fff0f5; box-shadow: 0 10px 22px rgba(216,27,96,.18); transform: translateY(-3px); }
.tile.on::after { content: "✓"; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--rani); color: #fff; font-size: 12px; display: grid; place-items: center; }
.tile.big { padding: 20px 10px; font-size: 13px; }
.tile.big .ic { font-size: 42px; }
.counter { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid #ead9bb; border-radius: 18px; padding: 10px 12px; background: #fff; margin: 10px 0; }
.counter .lbl { display: flex; gap: 10px; align-items: center; font-size: 17px; font-weight: 600; }
.counter .lbl .ic { font-size: 28px; }
.counter .lbl small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.counter .ctl { display: flex; align-items: center; gap: 12px; }
.counter button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--night-2); color: var(--gold-2); font-size: 22px; line-height: 1; }
.counter button:disabled { opacity: .3; }
.counter output { min-width: 26px; text-align: center; font-family: var(--caps); font-weight: 700; font-size: 22px; color: #7a1030; }
.q-nav { display: flex; gap: 10px; margin-top: 20px; }
.q-nav .btn { flex: 1; }
.upload { display: grid; place-items: center; gap: 4px; border: 2px dashed #dcc39a; border-radius: 18px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; background: #fffdf8; margin-top: 12px; }
.upload.has { border-style: solid; border-color: var(--rani); color: var(--ink); }
.upload input { display: none; }
.chk { display: flex; gap: 10px; align-items: center; margin: 12px 0; font-size: 17px; }
.chk input { width: 22px; height: 22px; accent-color: var(--rani); }
.food-bar { height: 14px; border-radius: 8px; overflow: hidden; display: flex; margin: 8px 0 0; background: #eee; }
.food-bar .v { background: #2e9a4a; transition: width .4s; }
.food-bar .n { background: #c62828; transition: width .4s; }
.done-card { text-align: center; padding: 10px 0; }
.done-card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0; color: #7a1030; }
.badge { width: 130px; height: 130px; margin: 8px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 60px;
  background: radial-gradient(circle, #fff7df, var(--mari-2)); box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--rani), 0 14px 30px rgba(122,16,48,.3); animation: pop .8s cubic-bezier(.2,1.6,.4,1); }
.summary { text-align: left; background: #fff; border-radius: 16px; padding: 12px 16px; margin: 14px 0; font-size: 16px; line-height: 1.65; border: 1px solid #eadcc4; }
.err { color: #b3261e; font-size: 14px; min-height: 18px; margin: 6px 0 0; }

/* ---------------- WISHES (lanterns) ---------------- */
.wishes { margin: 40px auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.wish { position: relative; padding: 22px 14px 16px; border-radius: 40px 40px 14px 14px; text-align: center; color: var(--ink);
  background: radial-gradient(circle at 50% 35%, #fff4c8, #ffbf47 60%, #f08a1a); box-shadow: 0 0 30px rgba(255,165,31,.45), inset 0 -8px 14px rgba(180,60,0,.25);
  animation: lantern 6s ease-in-out infinite; }
.wish:nth-child(3n+2) { animation-delay: -2s; } .wish:nth-child(3n) { animation-delay: -4s; }
.wish::before { content: ""; position: absolute; top: -8px; left: 50%; width: 36%; height: 10px; transform: translateX(-50%); border-radius: 4px; background: #7a1030; }
.wish::after { content: ""; position: absolute; bottom: -10px; left: 50%; width: 3px; height: 12px; margin-left: -1.5px; background: #7a1030; }
.wish p { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 600; word-break: break-word; }
.wish b { display: block; font-family: var(--script); font-weight: 400; color: #7a1030; font-size: 24px; margin-top: 6px; }

/* ---------------- FOOTER ---------------- */
.footer { text-align: center; padding: 60px 20px calc(120px + var(--safe-b)); position: relative; z-index: 1; }
.monogram { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--caps); font-weight: 700; font-size: 22px; color: var(--ink); background: var(--foil); box-shadow: 0 0 0 6px rgba(232,195,114,.18); }
.monogram b { font-size: 12px; margin: 0 3px; color: var(--rani); }
.foot-names { font-family: var(--script); font-size: 46px; margin: 0; color: var(--ivory); }
.foot-date { font-family: var(--caps); letter-spacing: .3em; font-size: 12px; color: var(--gold); }
.hashtag { font-size: 20px; color: var(--mari-2); }
.foot-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }

/* ---------------- DOCK ---------------- */
.dock { position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translate(-50%, 160%); z-index: 50; display: flex; gap: 2px; padding: 6px; border-radius: 24px;
  background: rgba(20,10,42,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 12px 34px rgba(0,0,0,.5), inset 0 0 0 1px rgba(232,195,114,.25); transition: transform .7s cubic-bezier(.2,.9,.3,1.2); }
body.opened .dock { transform: translate(-50%, 0); }
.dock a, .dock button { display: grid; justify-items: center; gap: 1px; min-width: 58px; padding: 6px 6px 5px; border: 0; background: none; color: var(--gold-2); font-family: var(--caps); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-decoration: none; border-radius: 18px; }
.dock span { font-size: 20px; }
.dock .dock-main { background: linear-gradient(135deg, var(--rani), #a3124a); color: #fff; }
.dock button.playing span { animation: spin 3s linear infinite; display: inline-block; }

.toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -150%); opacity: 0; z-index: 120; background: var(--rani); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .4s, opacity .4s; max-width: 90vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.float-heart { position: fixed; z-index: 70; pointer-events: none; font-size: 26px; animation: floatUp 1.6s ease-out forwards; }

/* ---------------- TABLET ---------------- */
@media (min-width: 640px) {
  .wishes { grid-template-columns: repeat(3, 1fr); }
  .card-ivory { padding: 56px 48px 40px; }
  .quest { padding: 26px 30px 30px; }
  .parade-track img { height: 320px; }
}

/* ---------------- DESKTOP ---------------- */
@media (min-width: 960px) {
  body { font-size: 19px; }
  .hero { padding: 150px 6vw 100px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; align-items: center; text-align: left; justify-items: start; gap: 40px; max-width: 1240px; margin: 0 auto; width: 100%; }
  .hero-text { justify-items: start; }
  .hero-cta { justify-content: flex-start; }
  .hero-art { width: min(34vw, 440px, 62vh); justify-self: center; margin-top: 0; }
  .shubh { font-size: clamp(96px, 9vw, 150px); }
  .names-script { font-size: clamp(64px, 5.5vw, 88px); }
  .toran { height: 200px; }
  .sec { padding: 100px 40px; }
  .carousel { padding: 80px max(70px, calc(50% - 560px)) 40px; gap: 28px; }
  .card { flex-basis: 300px; height: 520px; opacity: 1; transform: none; filter: none; }
  .card:hover { transform: translateY(-10px); }
  .card:hover .art { transform: translateX(-50%) translateY(-14px) scale(1.06); }
  .nav-arrow { display: grid; place-items: center; position: absolute; top: 55%; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(232,195,114,.5); background: rgba(20,10,42,.7); color: var(--gold-2); font-size: 30px; line-height: 1; backdrop-filter: blur(8px); }
  .nav-arrow.prev { left: 18px; } .nav-arrow.next { right: 18px; }
  .wishes { grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
  .dock { bottom: 22px; }
  .dock a, .dock button { min-width: 74px; font-size: 10.5px; }
}
@media (min-width: 1700px) { .carousel { justify-content: center; } .nav-arrow { display: none; } }

/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .envelope { width: min(75vh, 360px); }
  .hero-art { width: 44vh; }
}

/* ---------------- KEYFRAMES ---------------- */
@keyframes hover { 50% { transform: translateY(-10px) rotate(-.6deg); } }
@keyframes sealPulse { 50% { box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 0 12px rgba(255,205,74,.18); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }
@keyframes foil { to { background-position: -200% 0; } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes bobPin { 50% { transform: translateY(-6px); } }
@keyframes march { to { transform: translateX(-50%); } }
@keyframes bounce { 50% { transform: translateY(-8px); } }
@keyframes beat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes floatUp { to { transform: translateY(-140px) scale(1.4); opacity: 0; } }
@keyframes lantern { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
