:root {
  /* a letter on notebook paper: maroon type, red marker, blue ballpoint */
  --paper: #fbe9ec;       /* blush notebook paper */
  --paper-2: #f2d3d9;
  --card: #fffefb;        /* stamp + letter paper */
  --ink: #2b0d10;         /* near-black, warm */
  --ink-soft: #5f4547;
  --maroon: #7a1418;      /* display type */
  --sindoor: #d3222a;     /* red marker (fills) */
  --sindoor-ink: #b3141c; /* red for text */
  --sindoor-dark: #9c1218;
  --lodhi: #22409a;       /* blue ballpoint: handwritten notes */
  --rule: #f1cdd5;        /* rose notebook lines */
  --margin: #e79aa6;      /* notebook margin line */
  --marigold: #f4a623;
  --kraft: #d8b088;
  --display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
  --body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 63px, var(--margin) 63px 65px, transparent 65px),
    repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sindoor); outline-offset: 3px; border-radius: 6px; }
.hand { font-family: var(--hand); }
[hidden] { display: none !important; }

/* ---------- pages + transitions ---------- */
.page { display: none; min-height: 100vh; min-height: 100svh; position: relative; }
.page.is-active { display: block; }
.page-inner { max-width: 1120px; margin: 0 auto; padding: 5.2rem var(--gutter) 8rem; }
.page-inner.narrow { max-width: 620px; text-align: center; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: cubic-bezier(.65,0,.25,1); }
html[data-dir="fwd"]::view-transition-old(root) { animation-name: outLeft; }
html[data-dir="fwd"]::view-transition-new(root) { animation-name: inRight; }
html[data-dir="back"]::view-transition-old(root) { animation-name: outRight; }
html[data-dir="back"]::view-transition-new(root) { animation-name: inLeft; }
html[data-dir="yes"]::view-transition-old(root) { animation: burstOut .7s cubic-bezier(.5,0,.75,0) both; }
html[data-dir="yes"]::view-transition-new(root) { animation: dropIn .8s .15s cubic-bezier(.2,1.25,.4,1) both; }
@keyframes outLeft  { to   { transform: translateX(-35%) rotate(-7deg) scale(.88); opacity: 0; } }
@keyframes inRight  { from { transform: translateX(45%) rotate(7deg) scale(.92); opacity: 0; } }
@keyframes outRight { to   { transform: translateX(35%) rotate(7deg) scale(.88); opacity: 0; } }
@keyframes inLeft   { from { transform: translateX(-45%) rotate(-7deg) scale(.92); opacity: 0; } }
@keyframes burstOut { to   { transform: scale(1.15); opacity: 0; filter: blur(6px); } }
@keyframes dropIn   { from { transform: translateY(-30%) rotate(-4deg) scale(.9); opacity: 0; } }
/* fallback when View Transitions aren't supported */
.page.enter-fwd  { animation: inRight .55s cubic-bezier(.2,1,.3,1); }
.page.enter-back { animation: inLeft .55s cubic-bezier(.2,1,.3,1); }
.page.enter-yes  { animation: dropIn .7s cubic-bezier(.2,1.25,.4,1); }

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; text-align: center;
  font: 700 1.05rem/1.15 var(--body);
  padding: 1em 1.8em; border-radius: 999px;
  transition: transform .18s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn-yes { background: var(--sindoor); color: #fff; box-shadow: 0 8px 18px -8px rgba(185,31,56,.65), inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-yes:hover { background: #c0233c; }
.btn-yes:active { transform: translateY(2px) scale(.98); box-shadow: 0 3px 8px -4px rgba(185,31,56,.6); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: rgba(59,20,56,.06); }

/* ---------- shayari ---------- */
.sher { margin: 2rem auto 0; max-width: 32rem; text-align: center; }

/* ---------- 1. ask ---------- */
.page-ask { display: none; place-items: center; padding: 3rem var(--gutter) 4rem; text-align: center; overflow: hidden; }
.page-ask.is-active { display: grid; }
.ask-card { max-width: 640px; width: 100%; position: relative; z-index: 2; }
.from { margin: 0 0 1rem; font-size: 1.15rem; color: var(--ink-soft); transform: rotate(-2deg); }
.ask-stamp { width: 104px; margin: 0 auto 1.3rem; filter: drop-shadow(0 6px 10px rgba(59,20,56,.18)); animation: wobble 4s ease-in-out infinite; }
.ask-stamp svg { width: 100%; height: auto; display: block; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
.ask-title { font: 400 clamp(2.4rem, 8vw, 4.6rem)/1.02 var(--display); letter-spacing: -.01em; margin: 0 0 .9rem; text-wrap: balance; }
.ask-sub { font-size: clamp(1.2rem, 3.6vw, 1.5rem); margin: 0 0 2rem; color: var(--lodhi); }
.ask-buttons { display: flex; justify-content: center; align-items: center; gap: 1.2rem; min-height: 74px; }
#yesBtn { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s; }
.btn-no, .chip-none { background: var(--card); color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--paper-2), 0 6px 14px -8px rgba(59,20,56,.35); white-space: nowrap; }
.loose { position: fixed !important; z-index: 60; margin: 0 !important; transition: left .3s cubic-bezier(.3,1.4,.5,1), top .3s cubic-bezier(.3,1.4,.5,1) !important; }
.ask-hint { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 1.05rem; min-height: 1.6em; }
.page-ask .sher { margin-top: 2.2rem; }

/* scattered photo stamps around the question */
.scatter { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mini { position: absolute; width: clamp(92px, 13vw, 168px); animation: floaty 7s ease-in-out infinite; }
.mini .stamp { padding: 9px; --hole: 4px; --pitch: 13px; }
.mini img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.mini figcaption { font: 400 .8rem/1.2 var(--hand); color: var(--ink-soft); text-align: center; padding-top: 5px; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.mini:nth-child(1) { left: 3%;  top: 7%;  rotate: -9deg; }
.mini:nth-child(2) { right: 4%; top: 6%;  rotate: 8deg; animation-delay: -2s; }
.mini:nth-child(3) { left: 6%;  bottom: 9%; rotate: 6deg; animation-delay: -4s; }
.mini:nth-child(4) { right: 6%; bottom: 8%; rotate: -7deg; animation-delay: -1s; }
.mini:nth-child(5) { left: 15%; top: 42%; rotate: 3deg; animation-delay: -3s; }
.mini:nth-child(6) { right: 14%; top: 40%; rotate: -4deg; animation-delay: -5s; }
@media (max-width: 1500px) { .mini:nth-child(n+5) { display: none; } }
@media (max-width: 760px) {
  .page-ask { align-content: center; padding-top: 7.5rem; padding-bottom: 7rem; }
  .mini { width: 84px; }
  .mini figcaption { display: none; }
  .mini:nth-child(1) { left: 2%; top: 1.5%; }
  .mini:nth-child(2) { right: 3%; top: 2%; }
  .mini:nth-child(3) { left: 4%; bottom: 1.5%; }
  .mini:nth-child(4) { right: 3%; bottom: 2%; }
}

/* ---------- 2. yay ---------- */
.postmark { color: var(--sindoor); }
.postmark svg { width: 100%; height: auto; display: block; }
.postmark.big { width: 150px; margin: 0 auto -1rem; transform: rotate(-12deg); opacity: .9; }
.page-yay.is-active .postmark.big { animation: thump .55s .35s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes thump { from { transform: scale(2.4) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(-12deg); opacity: .9; } }
.yay-title { font: 400 clamp(2.6rem, 9vw, 5rem)/1 var(--display); margin: 1.2rem 0 .3rem; }
.yay-sub { font-size: 1.6rem; margin: 0; color: var(--sindoor-ink); }
.letter {
  text-align: left; margin: 2.4rem auto 2.2rem; background: var(--card);
  padding: 1.8rem 1.8rem 1.4rem; border-radius: 4px; position: relative;
  box-shadow: 0 1px 0 var(--paper-2), 0 18px 40px -22px rgba(59,20,56,.35);
  transform: rotate(-.6deg); font-size: 1.05rem;
  background-image: repeating-linear-gradient(transparent 0 30px, rgba(47,107,79,.12) 30px 31px);
  background-position: 0 1.1rem;
}
.letter::before { content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: 3deg; background: rgba(244,166,35,.55); }
.letter p { margin: 0 0 .9rem; }
.letter .sign { font-size: 1.3rem; text-align: right; margin: 0; color: var(--sindoor-ink); }

/* ---------- journey (progress) ---------- */
.journey {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; z-index: 30;
  display: flex; gap: 6px; padding: 7px 10px; border-radius: 999px;
  background: rgba(255,253,249,.82); backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -10px rgba(59,20,56,.4);
}
.journey button {
  all: unset; cursor: pointer; width: 14px; height: 17px; border-radius: 2px;
  background: var(--paper-2); transition: background-color .3s, transform .3s;
}
.journey button[aria-current="step"] { background: var(--sindoor); transform: scale(1.25) rotate(-6deg); }
.journey button.done { background: #e996a4; }
.journey button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- route pages ---------- */
.page-head { max-width: 44rem; margin-bottom: .4rem; }
.page-title { font: 400 clamp(2.2rem, 7vw, 3.6rem)/1.05 var(--display); margin: .1rem 0 .6rem; text-wrap: balance; }
.page-blurb { margin: 0; color: var(--ink-soft); font-size: 1.05rem; max-width: 38rem; }
.page-route .sher, .page-flowers .sher { text-align: left; margin: 1.4rem 0 2.2rem; }
.stamps { display: grid; gap: clamp(16px, 3vw, 30px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* the stamp: perforated edges via mask */
.stamp-wrap { filter: drop-shadow(0 10px 14px rgba(59,20,56,.16)); transition: transform .25s ease; }
.page.is-active .stamp-wrap { animation: deal .6s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
@keyframes deal { from { opacity: 0; transform: translateY(30px) rotate(var(--r, 0deg)) scale(.92); } }
.stamp-wrap { transform: rotate(var(--r, 0deg)); }
.stamp-wrap:hover { transform: rotate(0deg) translateY(-4px); }
.stamp {
  --hole: 5px; --pitch: 17px;
  position: relative; background: var(--card); padding: 13px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle var(--hole) at 0 0, #0000 98%, #000) 0 0 / var(--pitch) var(--pitch) round;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle var(--hole) at 0 0, #0000 98%, #000) 0 0 / var(--pitch) var(--pitch) round;
  display: flex; flex-direction: column; height: 100%;
}
.stamp-btn { all: unset; cursor: pointer; display: flex; flex-direction: column; flex: 1; border: 1.5px solid rgba(59,20,56,.14); }
.stamp-btn:focus-visible { outline: 3px solid var(--sindoor); outline-offset: -4px; }
.stamp-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.stamp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stamp-btn:hover .stamp-photo img { transform: scale(1.05); }
.stamp-dist { position: absolute; left: 8px; bottom: 8px; background: rgba(255,253,249,.94); color: var(--ink); font: 600 .78rem/1 var(--body); padding: .45em .65em; border-radius: 999px; }
.stamp-text { padding: .8rem .85rem .3rem; flex: 1; }
.stamp-name { font: 400 1.35rem/1.15 var(--display); margin: 0 0 .25rem; }
.stamp-what { margin: 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--lodhi); background: rgba(47,107,79,.09); padding: .25em .6em; border-radius: 999px; }
.stamp-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .85rem .8rem; }
.stamp-more { font-family: var(--hand); color: var(--ink-soft); font-size: 1rem; }
.pick {
  appearance: none; border: 2px solid var(--sindoor); background: transparent; color: var(--sindoor-ink);
  font: 700 .9rem/1 var(--body); padding: .65em 1.05em; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.pick:hover { background: rgba(226,56,78,.08); }
.pick[aria-pressed="true"] { background: var(--sindoor); color: #fff; }
.pick:active { transform: scale(.94); }
.stamp .pm { position: absolute; width: 58%; right: -6%; top: 6%; color: var(--sindoor); pointer-events: none; opacity: 0; transform: scale(1.8) rotate(-40deg); }
.stamp .pm svg { width: 100%; height: auto; display: block; filter: url(#rough); }
.stamp.picked .pm { opacity: .9; transform: scale(1) rotate(-14deg); transition: transform .4s cubic-bezier(.2,1.7,.4,1), opacity .12s; }
.stamp-wrap.bump { animation: bump .4s ease !important; }
@keyframes bump { 40% { scale: .96; } }

/* ---------- flowers ---------- */
.bouquet-wrap { position: sticky; top: 5rem; text-align: center; }
@keyframes popIn { from { transform: scale(0) rotate(-40deg); } }
@keyframes popOut { to { transform: scale(0); opacity: 0; } }
.bouquet-says { margin: .8rem auto 0; max-width: 18rem; font-size: 1.2rem; color: var(--sindoor-ink); min-height: 3.6em; }
.chip { appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: .85em 1.4em; font-weight: 700; font-size: 1rem; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.chip-all { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); transition: background-color .2s, color .2s; }
.chip-all[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- sealed ---------- */
.ticket {
  background: var(--card); padding: 2.2rem 1.6rem 1.6rem; border-radius: 6px; position: relative; text-align: center;
  box-shadow: 0 24px 50px -24px rgba(59,20,56,.45);
}
.postmark.small { width: 92px; position: absolute; right: 14px; top: 14px; transform: rotate(14deg); opacity: .85; }
.page-sealed.is-active .postmark.small { animation: thump2 .5s .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes thump2 { from { transform: scale(2.4) rotate(-30deg); opacity: 0; } }
.ticket-title { font: 400 clamp(1.9rem, 6vw, 2.6rem)/1.08 var(--display); margin: .2rem auto 1.4rem; max-width: 14ch; }
.ticket-h { font: 400 1.25rem/1.2 var(--hand); color: var(--sindoor-ink); margin: 1.2rem 0 .3rem; }
.ticket-list { text-align: left; margin: 0 auto; padding: .2rem 0 0 1.4em; max-width: 26rem; }
.ticket-list li { padding: .2rem 0; }
.ticket-list li::marker { color: var(--sindoor-ink); font-family: var(--display); }
.ticket-flowers { margin: 0 auto; max-width: 26rem; }
.ticket-actions { display: grid; gap: .7rem; margin-top: 2rem; }

/* ---------- bottom bar ---------- */
.bar {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40;
  translate: -50% 0; width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--ink); color: #fff; padding: 6px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(59,20,56,.55);
}
.bar-btn { appearance: none; border: 0; cursor: pointer; background: transparent; color: #fff; font-weight: 700; padding: .8em 1.2em; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.bar-btn:hover { background: rgba(255,255,255,.1); }
.bar-next { background: var(--sindoor); }
.bar-next:hover { background: #c0233c; }
.bar-mid { margin: 0; font-size: .92rem; font-weight: 600; text-align: center; color: #f3d6de; }
.bar-mid b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: #fff; }

/* ---------- detail dialog ---------- */
.detail { border: 0; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 32px); border-radius: 8px; background: var(--card); color: var(--ink); overflow: auto; box-shadow: 0 30px 60px -20px rgba(59,20,56,.5); }
.detail::backdrop { background: rgba(59,20,56,.45); backdrop-filter: blur(3px); }
.detail[open] { animation: rise .32s cubic-bezier(.2,1.2,.4,1); }
@keyframes rise { from { transform: translateY(30px) scale(.97); opacity: 0; } }
.detail-close { position: sticky; top: 10px; float: right; margin: 10px 10px -52px 0; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,253,249,.94); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.detail-body { padding: 1.3rem 1.4rem 1.2rem; }
.detail-what { margin: 0; color: var(--lodhi); font-weight: 600; font-size: .95rem; }
.detail-title { font: 400 2rem/1.1 var(--display); margin: .2rem 0 .7rem; }
.detail-note { background: rgba(244,166,35,.2); font-size: 1.12rem; line-height: 1.45; padding: .7rem .9rem; border-radius: 4px; margin: 0 0 .9rem; rotate: -.5deg; }
.detail-desc { margin: 0 0 1rem; }
.facts { margin: 0 0 1.2rem; display: grid; gap: .55rem; border-top: 1.5px dashed rgba(59,20,56,.2); padding-top: 1rem; }
.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; }
.facts dt { font-family: var(--hand); color: var(--sindoor-ink); font-size: 1.05rem; }
.facts dd { margin: 0; font-size: .95rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.detail-actions .btn { flex: 1 1 180px; }
.credit { font-size: .72rem; color: #9a8197; margin: 1rem 0 0; }
.credit a { color: inherit; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; top: 58px; translate: -50% -220%; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: translate .35s cubic-bezier(.2,1.4,.4,1), opacity .2s; opacity: 0; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { translate: -50% 0; opacity: 1; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

@media (max-width: 760px) {
  body { font-size: 16px; }
}
@media (max-width: 520px) {
  .stamps { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 5.6rem 1fr; }
  .bar-btn { padding: .8em 1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ---------- flower stall ---------- */
.stall-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; max-width: none; }
.polaroid { margin: 0; background: var(--card); padding: 10px 10px 8px; width: 230px; rotate: 4deg; box-shadow: 0 16px 30px -16px rgba(59,20,56,.5); position: relative; }
.polaroid::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; translate: -50% 0; rotate: -4deg; background: rgba(244,166,35,.55); }
.polaroid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: saturate(1.05) contrast(1.02); }
.polaroid figcaption { text-align: center; font-size: 1.05rem; color: var(--ink-soft); padding-top: 6px; }
.page.is-active .polaroid { animation: tossIn .7s .25s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes tossIn { from { opacity: 0; transform: translateY(-40px) rotate(-18deg) scale(.8); } }
.ticket-photo { margin: 0 auto -2rem; rotate: -5deg; position: relative; z-index: 2; width: 200px; }


@media (max-width: 760px) {
  .stall-head { grid-template-columns: 1fr; }
  .polaroid { width: 180px; margin: .5rem auto 0; }
}

/* phone polish */
@media (max-width: 520px) {
  .page-ask { padding-top: 8.2rem; padding-bottom: 8.5rem; }
  .mini { width: 72px; }
  .mini:nth-child(1) { top: 1rem; left: 4%; }
  .mini:nth-child(2) { top: 1rem; right: 4%; }
  .sher .verse { font-size: 1.1rem; }
  .ask-title { font-size: 2.35rem; }
}

/* browser surfaces */
::selection { background: rgba(212,42,68,.22); color: var(--ink); }
html { scrollbar-color: #d9a7b4 var(--paper); accent-color: var(--sindoor); caret-color: var(--sindoor); }
a { text-underline-offset: 3px; }
/* last page: bar shrinks to just Back */
.bar.only-back { width: auto; padding-right: 6px; }
.bar.only-back .bar-mid { display: none; }
/* route distance now sits under the heading */
.route-meta { margin: -.2rem 0 .7rem; color: var(--lodhi); font-size: 1.2rem; }

/* ---------- flower stall v2 ---------- */
.bouquet { position: relative; width: 300px; height: 350px; margin: 0 auto; }
.wrap-back { /* paper fan behind the flowers */
  position: absolute; left: 50%; top: 40px; width: 270px; height: 230px; translate: -50% 0;
  background: linear-gradient(160deg, #f3e3cf, #e6cdb0);
  clip-path: polygon(8% 10%, 50% 0, 92% 10%, 62% 100%, 38% 100%);
  filter: drop-shadow(0 4px 6px rgba(59,20,56,.12));
}
.blooms { position: absolute; inset: 0 0 auto 0; height: 230px; z-index: 2; }
.ghost { position: absolute; width: 74px; height: 74px; border-radius: 50%; translate: -50% 0; border: 2px dashed rgba(110,69,105,.35); background: rgba(255,253,249,.45); transition: opacity .3s; }
.bouquet.has .ghost { opacity: 0; }
.bloom {
  position: absolute; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; translate: -50% 0;
  border: 3px solid var(--card); box-shadow: 0 8px 16px -8px rgba(59,20,56,.5);
  animation: popIn .55s cubic-bezier(.2,1.6,.4,1) both;
}
.bloom img { width: 100%; height: 100%; object-fit: cover; scale: 1.25; }
.bloom.leaving { animation: popOut .25s ease both; }
.leaf { position: absolute; width: 26px; height: 58px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(#5f9e70, #3f7d55); translate: -50% 0; transform-origin: 50% 100%; opacity: 0; transition: opacity .4s; }
.bouquet.has .leaf { opacity: 1; }
.cone { /* folded front paper */
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 230px; height: 190px; z-index: 3;
  background:
    linear-gradient(100deg, transparent 49.6%, rgba(120,80,40,.18) 50%, transparent 50.6%),
    linear-gradient(170deg, #e2bf98, #c99a6c);
  clip-path: polygon(0 0, 50% 14%, 100% 0, 58% 100%, 42% 100%);
  filter: drop-shadow(0 10px 10px rgba(59,20,56,.22));
}
.bow { position: absolute; left: 50%; top: 255px; width: 120px; translate: -50% 0; z-index: 4; color: var(--sindoor); filter: drop-shadow(0 3px 3px rgba(59,20,56,.25)); }
.bouquet-says { margin: .6rem auto 0; max-width: 18rem; font-size: 1.2rem; color: var(--sindoor-ink); min-height: 3.6em; }

.flowers { display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.flower {
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer; position: relative;
  display: grid; justify-items: center; gap: 8px; -webkit-tap-highlight-color: transparent;
  transition: transform .3s cubic-bezier(.2,1.4,.4,1);
}
.flower .ph {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--paper-2);
  box-shadow: 0 10px 20px -14px rgba(59,20,56,.6); outline: 3px solid transparent; outline-offset: 3px;
  transition: outline-color .2s, box-shadow .3s;
}
.flower .ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.15; transition: scale .5s cubic-bezier(.2,1,.3,1); }
.flower:hover .ph img { scale: 1.25; }
.flower .tag {
  font: 400 1.05rem/1.15 var(--hand); color: var(--ink); background: var(--card);
  padding: .2em .75em .25em; border-radius: 999px; box-shadow: 0 3px 8px -5px rgba(59,20,56,.5);
  transition: background-color .2s, color .2s;
}
.flower:nth-child(odd) { rotate: -1.2deg; }
.flower:nth-child(even) { rotate: 1deg; }
.flower:hover { transform: translateY(-4px); }
.flower[aria-pressed="true"] { transform: translateY(-6px); }
.flower[aria-pressed="true"] .ph { outline-color: var(--sindoor); box-shadow: 0 16px 26px -14px rgba(212,42,68,.7); }
.flower[aria-pressed="true"] .tag { background: var(--sindoor); color: #fff; }
.flower::after {
  content: "♥"; position: absolute; top: -8px; right: -6px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--sindoor); color: #fff; font-size: .9rem;
  box-shadow: 0 4px 10px -4px rgba(212,42,68,.8); transform: scale(0); transition: transform .35s cubic-bezier(.2,1.8,.4,1);
}
.flower[aria-pressed="true"]::after { transform: scale(1); }
@media (max-width: 760px) {
  .flowers { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .flower .tag { font-size: .92rem; }
  .bouquet { transform: scale(.8); margin: -30px auto -50px; }
}
.flower-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(280px, 340px) 1fr; align-items: start; }
.flower-extras { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; min-height: 56px; }
@media (max-width: 760px) {
  .flower-layout { grid-template-columns: 1fr; gap: 1rem; }
  .bouquet-wrap { position: relative; top: 0; }
}

/* ---------- framed Delhi paintings ---------- */
.route-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center; max-width: none; }
.painting { margin: 0; width: 300px; rotate: 1.5deg; }
.gilt {
  padding: 12px; border-radius: 3px;
  background: linear-gradient(135deg, #b8893a, #f1d58a 30%, #a87a2c 55%, #e9c977 80%, #9c6f24);
  box-shadow: 0 18px 30px -18px rgba(59,20,56,.6), inset 0 0 0 1px rgba(255,255,255,.35);
}
.gilt .canvas { display: block; overflow: hidden; border: 8px solid #f6eedd; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.gilt img { aspect-ratio: 4/3; width: 100%; object-fit: cover; scale: 1.14; }
.painting figcaption { display: grid; gap: 1px; margin: .7rem auto 0; width: fit-content; max-width: 100%; background: var(--card); padding: .45rem .8rem; border-radius: 2px; box-shadow: 0 4px 10px -6px rgba(59,20,56,.4); font-size: .78rem; color: var(--ink-soft); rotate: -1.5deg; }
.painting figcaption b { font: 400 .95rem/1.2 var(--display); color: var(--ink); }
.page.is-active .painting { animation: hang .8s .2s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes hang { from { opacity: 0; transform: translateY(-24px) rotate(-6deg); } }
@media (max-width: 860px) {
  .route-head { grid-template-columns: 1fr; }
  .painting { width: min(280px, 80%); margin: .4rem auto 0; }
}

/* ---------- detail carousel ---------- */
.carousel { position: relative; background: var(--paper-2); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16/10; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -4px; }
.car-slide { flex: 0 0 100%; scroll-snap-align: center; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,253,249,.92); color: var(--ink); font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(59,20,56,.5); transition: background-color .2s, scale .2s;
}
.car-btn:hover { background: #fff; scale: 1.06; }
.car-btn.prev { left: 10px; }
.car-btn.next { right: 10px; }
.car-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.car-dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,253,249,.7); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: width .25s, background-color .25s; }
.car-dots button[aria-current] { width: 22px; background: #fff; }
.carousel.single .car-btn { display: none; }

/* ---------- yay extras: taarif marquee + Delhi film strip ---------- */
.taarif { margin: 1.6rem calc(50% - 50vw) 0; overflow: hidden; padding: .5rem 0; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.taarif-track { display: flex; gap: 2.2rem; width: max-content; animation: marquee 32s linear infinite; }
.taarif-track span { font: 400 1.25rem/1 var(--hand); color: var(--ink); white-space: nowrap; }
.taarif-track span::before { content: "✿"; color: var(--sindoor); margin-right: 2.2rem; font-size: .85em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.filmstrip {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(50% - 50vw) 2.4rem; padding: 1rem max(16px, calc(50vw - 300px)) 1.4rem;
}
.filmstrip::-webkit-scrollbar { display: none; }
.frame { margin: 0; flex: 0 0 200px; scroll-snap-align: center; background: var(--card); padding: 9px 9px 6px; rotate: var(--r); box-shadow: 0 14px 24px -16px rgba(59,20,56,.55); transition: rotate .3s, translate .3s; }
.frame:hover { rotate: 0deg; translate: 0 -4px; }
.frame img { aspect-ratio: 4/5; width: 100%; object-fit: cover; }
.frame figcaption { font-size: 1rem; color: var(--ink-soft); text-align: center; padding-top: 5px; }
.ps { margin: 1.6rem 0 -1.2rem; color: var(--sindoor-ink); font-size: 1.2rem; }
@media (max-width: 520px) { .frame { flex-basis: 160px; } }
.detail:focus { outline: none; }

.send-status { margin: 0; font-size: 1.2rem; color: var(--lodhi); }
.postmark.small { width: 84px; top: -30px; right: -10px; }
@media (max-width: 520px) { .ticket { padding-top: 2.6rem; } .postmark.small { width: 72px; top: -26px; right: -4px; } }

/* English verses */
.sher .verse { font: 400 clamp(1.15rem, 3.2vw, 1.35rem)/1.55 var(--hand); color: var(--ink); margin: 0; text-wrap: balance; }

/* ---------- retheme: letter on notebook paper ---------- */
@media (max-width: 760px) { body { background-image: repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); } }
.ask-title, .yay-title, .page-title, .ticket-title, .detail-title, .stamp-name, .painting figcaption b {
  font-weight: 600; color: var(--maroon); letter-spacing: -.012em;
}
/* the question, set like a justified block of maroon type */
.ask-title {
  font-size: clamp(2.6rem, 9.5vw, 5.4rem); line-height: 1; text-transform: lowercase;
  text-align: justify; text-align-last: justify; max-width: 8.2em; margin-inline: auto; text-wrap: wrap;
}
.yay-title { font-size: clamp(3rem, 11vw, 5.6rem); text-transform: lowercase; }
.page-title { font-size: clamp(2.4rem, 7.5vw, 4rem); line-height: 1; }
.ticket-title { line-height: 1.02; }
.stamp-name { font-size: 1.45rem; line-height: 1.1; }
.from, .ask-sub, .ask-hint, .yay-sub, .route-meta, .bouquet-says, .stamp-more, .legend { color: var(--lodhi); }
.ask-sub { font-size: clamp(1.35rem, 3.8vw, 1.65rem); }
.yay-sub { color: var(--sindoor-ink); font-size: 1.7rem; }
.tags li { color: var(--lodhi); background: rgba(34,64,154,.08); }
/* the letter reads like your handwriting, in blue pen */
.letter { background-image: repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); background-position: 0 1.25rem; box-shadow: 0 18px 40px -24px rgba(43,13,16,.45); }
.letter p { font: 400 1.32rem/34px var(--hand); color: var(--lodhi); margin: 0 0 34px; }
.letter .sign { color: var(--sindoor-ink); font-size: 1.5rem; }
.sher .verse { font-family: var(--hand); color: var(--sindoor-ink); font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.35; }
.taarif-track span { color: var(--maroon); font-size: 1.4rem; }
.facts dt { color: var(--sindoor-ink); font-size: 1.15rem; }
.frame figcaption, .mini figcaption, .polaroid figcaption { color: var(--lodhi); }
.bar, .toast { background: var(--maroon); }
.bar-mid { color: #f3d3d3; }
.chip-all[aria-pressed="true"] { background: var(--maroon); }
.journey { background: rgba(255,254,251,.9); }
.journey button { background: var(--paper-2); }
.journey button.done { background: #e9a3a6; }
::selection { background: rgba(211,34,42,.18); }
html { scrollbar-color: #d9b9b9 var(--paper); }

@media (max-width: 520px) {
  .ask-title { font-size: clamp(2.9rem, 14vw, 3.6rem); max-width: none; text-align: left; text-align-last: left; }
  .ask-buttons, .ask-sub, .ask-hint, .from { text-align: left; justify-content: flex-start; }
  .ask-stamp { margin-left: 0; }
  .page-ask .sher { text-align: left; }
}

.sher .verse:lang(hi), .verse[lang="hi"] { font-family: "Tiro Devanagari Hindi", serif; }
