/* Layout: a phone-sized story stage. Each scene is full-bleed; a story bar sits on top.
   The sky moves from midnight to dawn to golden hour as Ira's story unfolds.
   It deliberately keeps one look in every theme, like a printed invitation. */
:root {
  --paper: #fffaf5;
  --paper-2: #fbf1ea;
  --ink: #4a3034;
  --ink-soft: #7d5f61;
  --rose: #a2575f;
  --rose-deep: #7a3843;
  --petal: #eab3ae;
  --blush: #f7dfda;
  --gold: #b48a4a;
  --gold-hi: #f1dcaa;
  --cream: #fff4ec;
  --night: #1b1530;
  --ok: #4f7a5a;
  --foil: linear-gradient(100deg, #7d5c28 0%, #b8914e 22%, #e6c98c 38%, #9c763a 52%, #d9b977 68%, #84612b 100%);
  --foil-light: linear-gradient(100deg, #c9a35c 0%, #f6e3b4 30%, #fff6dc 45%, #e2c07c 60%, #f4dfa8 80%, #c49a52 100%);
  --f-script: "Pinyon Script", "Snell Roundhand", "Apple Chancery", cursive;
  --f-serif: "Playfair Display", "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-sans: "Jost", "Futura", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.3, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; color: var(--ink); font-family: var(--f-serif); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(120% 80% at 50% 0%, #3b2440 0%, #1e1424 60%, #140d18 100%); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }
.notice { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; color: var(--cream); padding-inline: 24px; }
.notice h1 { font-size: 4rem; margin: 0; font-weight: 400; }
.notice p { font-size: 1.15rem; max-width: 30ch; margin: 8px auto 0; }
.script { font-family: var(--f-script); font-weight: 400; line-height: 1.05; }
.foil { background: var(--foil); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s ease-in-out infinite alternate; }
.foil-deep { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes foil { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.caps { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .26em; font-size: .64rem; color: var(--ink-soft); }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; margin: 0 auto; width: min(100vw, 480px); height: 100%; overflow: hidden; isolation: isolate; background: var(--night); }
@media (min-width: 600px) and (min-height: 720px) {
  .stage { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: 440px; height: min(94vh, 900px); border-radius: 30px; box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(241, 220, 170, .2); }
}
.bgs, .scenes { position: absolute; inset: 0; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.scenes { z-index: 3; }
.bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; overflow: hidden; }
.bg.active { opacity: 1; }
.bg > div, .bg > svg { position: absolute; }
.bg-night, .bg-dawn, .bg-blush, .bg-gold, .bg-dinner { inset: 0; }
.bg-night { background: radial-gradient(120% 70% at 75% 10%, #3c2d5e 0%, rgba(60, 45, 94, 0) 60%), linear-gradient(180deg, #161129 0%, #261c40 50%, #4a2f50 100%); }
.bg-dawn { background: radial-gradient(90% 55% at 50% 30%, rgba(255, 236, 214, .95) 0%, rgba(255, 236, 214, 0) 70%), linear-gradient(180deg, #e9b7b9 0%, #f6cdbf 40%, #fbe4d4 75%, #fff2e8 100%); }
.bg-blush { background: radial-gradient(80% 50% at 50% 35%, #fff8f3 0%, rgba(255, 248, 243, 0) 75%), linear-gradient(180deg, #f9e3dd 0%, #f4d0c8 100%); }
.bg-blush.deep { background: radial-gradient(80% 50% at 50% 25%, #fbe7e0 0%, rgba(251, 231, 224, 0) 75%), linear-gradient(180deg, #f1c9c1 0%, #e7aeab 100%); }
.bg-gold { background: radial-gradient(70% 45% at 50% 38%, rgba(255, 244, 214, .95) 0%, rgba(255, 244, 214, 0) 70%), linear-gradient(180deg, #f6d5ac 0%, #f2bba7 50%, #df9298 100%); }
.bg-gold.soft { background: radial-gradient(80% 50% at 50% 20%, #fff1df 0%, rgba(255, 241, 223, 0) 70%), linear-gradient(180deg, #f6d9bb 0%, #efc0b0 100%); }
.bg-dinner { background: radial-gradient(70% 45% at 50% 34%, rgba(255, 220, 170, .35) 0%, rgba(255, 220, 170, 0) 70%), linear-gradient(180deg, #4a2033 0%, #6e2f42 55%, #8c4553 100%); }
.moon { top: 9%; right: 12%; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 38% 36%, #fffaf0 0%, #fbeacb 55%, #e9cf9e 100%); box-shadow: 0 0 40px 10px rgba(255, 236, 196, .35), 0 0 120px 40px rgba(255, 230, 190, .12); animation: moonIn 2.4s var(--ease) both; }
.moon i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 64% 60%, rgba(214, 186, 140, .45) 0 8%, transparent 9%), radial-gradient(circle at 34% 64%, rgba(214, 186, 140, .35) 0 6%, transparent 7%), radial-gradient(circle at 58% 30%, rgba(214, 186, 140, .3) 0 5%, transparent 6%); }
.moon.small { width: 54px; height: 54px; top: 7%; right: 10%; }
@keyframes moonIn { from { transform: translateY(30px); opacity: 0; } }
.hills { left: -10%; right: -10%; bottom: -4%; height: 26%; background: radial-gradient(60% 100% at 20% 100%, #2a1d3a 0 60%, transparent 61%), radial-gradient(70% 100% at 80% 100%, #33223f 0 60%, transparent 61%); }
.rays { left: 50%; top: 32%; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .22) 0deg 4deg, rgba(255, 255, 255, 0) 4deg 14deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%); animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bg .deco { width: 52%; opacity: .95; }
.bg .deco.tr { top: -20px; right: -26px; }
.bg .deco.bl { bottom: -24px; left: -24px; transform: rotate(180deg); }

/* Ken Burns photos */
.kb { inset: -2%; }
.kb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg.on .kb.a img { animation: kbA 7s ease-out both; }
.bg.on .kb.b img { animation: kbB 7s ease-out both; }
@keyframes kbA { from { transform: scale(1.18) translate(-2%, 2%); } to { transform: scale(1.04) translate(1%, -1%); } }
@keyframes kbB { from { transform: scale(1.04) translate(2%, -1%); } to { transform: scale(1.18) translate(-1%, 2%); } }
.shade { inset: 0; background: linear-gradient(180deg, rgba(30, 14, 26, .45) 0%, rgba(30, 14, 26, 0) 22%, rgba(30, 14, 26, 0) 42%, rgba(40, 16, 30, .82) 100%); }
.ph-art { inset: 0; display: grid; place-items: center; }
.ph-art.t0 { background: linear-gradient(160deg, #f6cfc6, #e9a9a8); }
.ph-art.t1 { background: linear-gradient(160deg, #fbe0c8, #efb9a0); }
.ph-art.t2 { background: linear-gradient(160deg, #ecd8ec, #cfa9c8); }
.ph-art.t3 { background: linear-gradient(160deg, #f9e6d6, #e7b8b4); }
.ph-bloom { width: 70%; max-width: 300px; opacity: .9; margin-top: -30%; }
.bg.on .ph-bloom { animation: bloomSpin 9s ease-out both; }
@keyframes bloomSpin { from { transform: scale(.85) rotate(-20deg); } to { transform: scale(1.05) rotate(8deg); } }
.ph-note { position: absolute; top: 18%; left: 0; right: 0; text-align: center; font-family: var(--f-sans); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(90, 40, 50, .55); }

/* ---------- scenes ---------- */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.scene.active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(env(safe-area-inset-top, 0px) + 92px) 26px calc(env(safe-area-inset-bottom, 0px) + 84px); gap: 10px; }
.body.center { justify-content: center; }
.body.end { justify-content: flex-end; }
.rise { opacity: 0; }
.scene.on .rise { animation: rise 1s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.w { display: inline-block; opacity: 0; }
.scene.on .w { animation: word .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes word { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.eyebrow { margin: 0; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .32em; font-size: .68rem; color: rgba(255, 240, 228, .85); }
.eyebrow.dark { color: var(--ink-soft); }
.eyebrow.light { color: rgba(255, 240, 228, .9); }
.tale { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.62rem; line-height: 1.35; color: var(--cream); max-width: 22ch; text-wrap: balance; text-shadow: 0 2px 18px rgba(20, 8, 20, .35); }
.tale.small { font-size: 1.28rem; max-width: 26ch; }
.tale.dark { color: var(--ink); text-shadow: none; }
.tale.light { color: var(--cream); }
.scene[data-key="name"] .tale { color: var(--ink); text-shadow: none; }

/* night: fairy */
.fairy-path { position: absolute; inset: 0; pointer-events: none; }
.fairy { position: absolute; left: 0; top: 0; width: 26px; height: 26px; offset-path: path("M -40 560 C 60 470, 120 520, 190 420 S 300 220, 250 170 S 140 150, 200 300"); offset-rotate: 0deg; opacity: 0; }
.scene.on .fairy { animation: fly 7.2s cubic-bezier(.45, .05, .35, 1) .3s both; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.fairy b { position: absolute; inset: 7px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 10px 4px rgba(255, 230, 160, .9), 0 0 30px 10px rgba(255, 220, 150, .45); }
.fairy .wing { position: absolute; top: 2px; width: 13px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: rgba(255, 240, 250, .55); box-shadow: 0 0 8px rgba(255, 230, 250, .6); transform-origin: 100% 80%; animation: flap .22s ease-in-out infinite alternate; }
.fairy .wing.l { left: -3px; transform: rotate(-25deg); }
.fairy .wing.r { right: -3px; transform-origin: 0% 80%; transform: rotate(25deg); animation-name: flapR; }
@keyframes flap { from { transform: rotate(-25deg) scaleX(1); } to { transform: rotate(-35deg) scaleX(.45); } }
@keyframes flapR { from { transform: rotate(25deg) scaleX(1); } to { transform: rotate(35deg) scaleX(.45); } }

/* name */
.hero { position: relative; width: 56%; max-width: 240px; margin-top: 18px; }
.hero .arch { width: 100%; aspect-ratio: 4/5; border-radius: 999px 999px 14px 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fdeee9, #f3d3cd); display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(180, 138, 74, .7), 0 0 0 7px rgba(255, 250, 245, .9), 0 0 0 8px rgba(180, 138, 74, .4), 0 30px 50px -20px rgba(120, 50, 60, .5); }
.hero .arch img { width: 100%; height: 100%; object-fit: cover; }
.hero .arch .ph svg { width: 70%; }
.tiara { position: absolute; top: -30px; left: 50%; width: 80px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 2px 3px rgba(120, 80, 30, .35)); }
.name-reveal { margin: -46px 0 2px; font-size: clamp(5.4rem, 30vw, 7.6rem); position: relative; z-index: 3; padding-inline: 14px; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(0 100% 0 0); filter: drop-shadow(0 2px 0 rgba(255, 250, 245, .7)); }
.scene.on .name-reveal { animation: write 2s cubic-bezier(.6, .1, .3, 1) 1s forwards; }
@keyframes write { to { clip-path: inset(0 -10% 0 0); } }

/* year ring */
.ring { position: relative; width: min(78vw, 330px); aspect-ratio: 1; display: grid; place-items: center; }
.ring > span { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-family: var(--f-serif); font-size: 1.1rem; font-weight: 600; color: var(--rose);
  background: var(--paper); box-shadow: 0 0 0 1.5px var(--gold), 0 6px 14px -6px rgba(120, 50, 60, .45); transform: rotate(var(--a)) translateY(calc(min(78vw, 330px) / -2 + 26px)) rotate(calc(-1 * var(--a))); opacity: 0; }
.scene.on .ring > span { animation: pop .6s var(--ease) both; animation-delay: var(--d); }
@keyframes pop { from { opacity: 0; scale: .3; } to { opacity: 1; scale: 1; } }
.ring > span img { width: 100%; height: 100%; object-fit: cover; }
.ring-c { display: grid; gap: 8px; justify-items: center; }
.script.big { font-size: 3.6rem; color: var(--rose); margin: 0; }

/* months */
.month { gap: 4px; }
.mnum { font-family: var(--f-serif); font-weight: 500; font-size: 6.2rem; line-height: .9; color: transparent; -webkit-text-stroke: 1.2px rgba(241, 220, 170, .9); letter-spacing: -.02em; }
.mtitle { margin: 0 0 6px; font-size: 3.4rem; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(30, 10, 20, .35)); }

/* firsts */
.firsts { list-style: none; margin: 14px 0 0; padding: 18px 20px; width: 100%; max-width: 360px; display: grid; gap: 2px; background: rgba(255, 250, 245, .72); border-radius: 22px; box-shadow: 0 0 0 1px rgba(180, 138, 74, .35), 0 20px 40px -24px rgba(120, 50, 60, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.firsts li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(180, 138, 74, .4); text-align: left; }
.firsts li:last-child { border-bottom: 0; }
.firsts .tick { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: #fff7f2; }
.firsts .tick svg { width: 14px; height: 14px; }
.firsts .fl { font-family: var(--f-script); font-size: 1.75rem; color: var(--rose); flex: 1; line-height: 1; }
.firsts .fv { font-style: italic; font-size: 1.08rem; color: var(--ink); }

/* turning one */
.big-one { font-family: var(--f-serif); font-weight: 600; font-size: 12rem; line-height: .85; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 18px rgba(160, 100, 40, .35)); opacity: 0; }
.scene.on .big-one { animation: oneIn 1.4s cubic-bezier(.2, 1.4, .3, 1) .4s both, foil 6s ease-in-out 1.8s infinite alternate; background-size: 200% 100%; }
@keyframes oneIn { from { opacity: 0; transform: scale(.2) rotate(-20deg); } to { opacity: 1; transform: none; } }
.script.huge { font-size: 3.4rem; margin: 0; color: var(--rose-deep); text-wrap: balance; }
.script.huge.light { color: var(--cream); text-shadow: 0 4px 24px rgba(20, 5, 15, .45); }
.balloons { inset: 0; pointer-events: none; }
.bl { position: absolute; bottom: -160px; left: var(--x); width: calc(70px * var(--s)); opacity: .95; }
.bg.on .bl { animation: float var(--du) ease-in var(--dl) both; }
@keyframes float { 0% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(14px, -55vh) rotate(5deg); } 100% { transform: translate(-6px, -125vh) rotate(-3deg); } }

/* paper card */
.paper { position: relative; width: 100%; max-width: 380px; max-height: 100%; overflow: hidden; border-radius: 6px 22px 22px 6px; background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(70, 20, 30, .55), 0 2px 0 #efe1d6, 4px 4px 0 #e8d7cb; display: flex; }
.paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .38 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper .frame { position: absolute; inset: 10px; border: 1px solid rgba(180, 138, 74, .55); border-radius: 2px 14px 14px 2px; pointer-events: none; z-index: 2; }
.paper .deco { position: absolute; width: 34%; z-index: 1; pointer-events: none; }
.paper .deco.tr { top: -12px; right: -16px; }
.paper .deco.bl { bottom: -16px; left: -16px; transform: rotate(180deg); }
.paper-in { position: relative; z-index: 3; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 30px 26px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; scrollbar-width: none; }
.paper-in::-webkit-scrollbar { display: none; }
.paper-in > :first-child { margin-top: auto; }
.paper-in > :last-child { margin-bottom: auto; }
.paper.fly { animation: flyAway 1.3s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes flyAway { 30% { transform: scale(.9) rotate(-2deg); } 100% { transform: translateY(-120%) scale(.05) rotate(-20deg); opacity: 0; } }
.dear { font-size: 2.5rem; color: var(--rose); margin: 4px 0 0; }
.ptext { margin: 0; font-size: 1.14rem; line-height: 1.5; color: var(--ink); max-width: 30ch; }
.ptext.small { font-size: 1.04rem; }
.title { font-family: var(--f-serif); font-weight: 500; font-size: 1.85rem; line-height: 1.12; margin: 4px 0 6px; color: var(--ink); text-wrap: balance; }
.cal { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 10px 0 4px; width: 100%; }
.cal .side { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .2em; font-size: .68rem; padding-block: 8px; border-block: 1px solid rgba(180, 138, 74, .55); color: var(--ink); }
.cal .day { font-family: var(--f-serif); font-size: 4rem; font-weight: 500; line-height: 1; }
.venue { font-size: 1.24rem; font-weight: 600; margin: 6px 0 0; }
.addr { font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.dress { font-style: italic; margin: 0; font-size: 1rem; }
.count { display: flex; gap: 8px; justify-content: center; margin: 6px 0 2px; }
.count div { min-width: 58px; padding: 8px 4px 6px; border-radius: 12px; background: var(--blush); }
.count b { display: block; font-family: var(--f-serif); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.count span { font-family: var(--f-sans); font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sign { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 4px; }
.sign > div { display: grid; text-align: left; }
.sign .love { font-style: italic; }
.sign .script { font-size: 2.8rem; color: var(--rose); }
.hand { width: 54px; opacity: .85; transform: rotate(-12deg); }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(255, 255, 255, .5); color: var(--ink); font-family: var(--f-sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn.solid { background: linear-gradient(135deg, #b0636b, #8a4450); border-color: transparent; color: #fff7f2; box-shadow: 0 10px 20px -10px rgba(120, 40, 50, .7); }
.btn.gold { background: linear-gradient(135deg, #f4dfa8, #c9a05a); border-color: transparent; color: #4a2a18; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.btn.ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(241, 220, 170, .6); color: var(--cream); }
.btn.wide { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; width: 100%; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 8px 0 4px; }
.choice button { padding: 16px 10px; border-radius: 16px; border: 1px solid rgba(180, 138, 74, .55); background: rgba(255, 255, 255, .55); cursor: pointer; display: grid; gap: 4px; justify-items: center; transition: all .25s var(--ease); }
.choice .big { font-family: var(--f-script); font-size: 2rem; line-height: 1; color: var(--rose); }
.choice .small { font-family: var(--f-sans); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.choice button[aria-pressed="true"] { background: var(--blush); border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose), 0 10px 20px -12px rgba(120, 40, 50, .5); transform: translateY(-2px); }
.grow { width: 100%; }
.field { width: 100%; display: grid; gap: 8px; margin-top: 10px; text-align: left; }
.field > label, .field > .lab { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .18em; font-size: .6rem; color: var(--ink-soft); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid rgba(180, 138, 74, .45); background: rgba(255, 255, 255, .6); }
.stepper .who { font-size: 1.1rem; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blush); cursor: pointer; display: grid; place-items: center; }
.stepper button svg { width: 16px; height: 16px; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 26px; text-align: center; font-family: var(--f-sans); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(180, 138, 74, .45); background: rgba(255, 255, 255, .6); font-family: var(--f-sans); font-size: .74rem; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff7f2; }
textarea { width: 100%; border-radius: 16px; border: 1px solid rgba(180, 138, 74, .45); background: rgba(255, 255, 255, .7); padding: 12px 14px; font-family: var(--f-serif); font-size: 1.1rem; color: var(--ink); resize: vertical; }
textarea::placeholder { color: #ad9496; font-style: italic; }
textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(162, 87, 95, .15); }
.err { color: #9b2f3c; font-family: var(--f-sans); font-size: .78rem; margin: 6px 0 0; }
.done { display: grid; gap: 8px; justify-items: center; }
.tick-big { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose); box-shadow: 0 0 0 6px rgba(234, 179, 174, .3); }
.tick-big svg { width: 28px; height: 28px; }
.summary { font-size: 1.1rem; line-height: 1.5; margin: 0; }
.year { font-family: var(--f-serif); font-size: 2.6rem; font-weight: 500; line-height: 1; margin: 2px 0 0; }
.rec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: #c0394b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rec audio { width: 100%; height: 36px; }
.sealed-list { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.sealed-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--blush); text-align: left; }
.sealed-item svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.sealed-item p { margin: 0; font-size: .98rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* dinner scene */
.cloche-wrap { width: 62%; max-width: 250px; }
.cloche { width: 100%; overflow: visible; }
.cloche .glow { opacity: 0; transition: opacity 1s; }
.cloche.open .glow { opacity: 1; }
.scene.on .cloche .lid { animation: lidPeek 4s ease-in-out 1s infinite; transform-origin: 18% 85%; }
.scene.on .cloche.open .lid { animation: lidOpen 1.4s cubic-bezier(.3, 1.3, .4, 1) .6s forwards; }
@keyframes lidPeek { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-8px) rotate(-5deg); } 90% { transform: translateY(-3px) rotate(-1deg); } }
@keyframes lidOpen { to { transform: translate(-6px, -34px) rotate(-26deg); } }
.demo-note { margin: 4px 0 0; font-family: var(--f-sans); font-size: .7rem; color: rgba(255, 240, 228, .8); background: rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 999px; }

/* finale */
.sign-off { margin: 8px 0 0; font-size: 1.1rem; color: var(--ink); }
.sign-off .script { font-size: 2.3rem; color: var(--rose); }

/* ---------- HUD ---------- */
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 10; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0; background: linear-gradient(180deg, rgba(20, 8, 18, .35), rgba(20, 8, 18, 0)); transition: opacity .6s; }
.bars { display: flex; gap: 3px; }
.bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.bars i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; }
.av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #f3c3bc, #b0636b); font-family: var(--f-script); font-size: 1.4rem; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 3.5px var(--gold); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.who-t { display: grid; min-width: 0; }
.who-t b { font-family: var(--f-sans); font-weight: 500; font-size: .8rem; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.who-t small { font-family: var(--f-sans); font-size: .68rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hud-btns { display: flex; gap: 6px; }
.hb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.hb svg { width: 18px; height: 18px; }
.hb[aria-pressed="false"] .on, .hb[aria-pressed="true"] .off { display: none; }
.demo-flag { margin: 8px auto 0; width: max-content; max-width: 100%; font-family: var(--f-sans); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .25); padding: 4px 10px; border-radius: 999px; }
.demo-flag a { color: inherit; }
.paused { position: absolute; z-index: 11; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(0, 0, 0, .3); display: flex; gap: 8px; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.paused.show { opacity: 1; }
.paused span { width: 6px; height: 22px; background: #fff; border-radius: 2px; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 14px); pointer-events: none; }
.foot > * { pointer-events: auto; }
.nav { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nav svg { width: 18px; height: 18px; }
.nav:disabled { opacity: 0; pointer-events: none; }
.stage[data-scene="firsts"] .nav, .stage[data-scene="year"] .nav, .stage[data-scene="rsvp"] .nav, .stage[data-scene="invite"] .nav, .stage[data-scene="one"] .nav, .stage[data-scene="name"] .nav, .stage[data-scene="finale"] .nav { background: rgba(90, 40, 50, .18); color: var(--rose-deep); }
.hint { font-family: var(--f-sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .3); animation: breathe 2.4s ease-in-out infinite; }
.stage[data-scene="name"] .hint { color: var(--rose-deep); text-shadow: none; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- envelope ---------- */
.env-stage { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-inline: 16px;
  background: radial-gradient(70% 45% at 50% 42%, #6a3550 0%, #3a1d2e 55%, #1d0f19 100%); transition: opacity 1.1s ease, transform 1.1s var(--ease); }
.env-stage.gone { opacity: 0; transform: scale(1.08); pointer-events: none; }
.env { --w: min(86vw, 380px); width: var(--w); height: calc(var(--w) * .68); position: relative; perspective: 1400px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: envIn 1.2s var(--ease) both; }
@keyframes envIn { from { opacity: 0; transform: translateY(30px) rotate(-3deg); } }
.env-back { position: absolute; inset: 0; border-radius: 6px; background: #eebfb8; }
.env-card { position: absolute; left: 7%; right: 7%; top: 8%; height: 86%; background: var(--paper); border-radius: 4px; display: grid; place-items: center; transition: transform 1.2s var(--ease) .55s; z-index: 2; }
.env-card .mini { text-align: center; }
.env-card .script { font-size: calc(var(--w) * .2); line-height: 1; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.env-card .caps { font-size: .58rem; }
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 6px; background: linear-gradient(180deg, #f8e3de, #f2d3cc); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
.env-front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, transparent 49.6%, rgba(160, 90, 90, .12) 50%, transparent 50.6%), linear-gradient(-155deg, transparent 49.6%, rgba(160, 90, 90, .12) 50%, transparent 50.6%); }
.env-addr { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; z-index: 4; pointer-events: none; }
.env-addr .for { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .3em; font-size: .58rem; color: var(--rose); }
.env-addr .name { font-family: var(--f-script); font-size: clamp(1.5rem, 6.4vw, 2.1rem); line-height: 1.1; color: var(--ink); padding-inline: 10%; text-wrap: balance; }
.env-flap { position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 5; transform-origin: 50% 0; transform-style: preserve-3d; transition: transform .9s var(--ease), z-index 0s .45s; }
.env-flap::before, .env-flap::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; }
.env-flap::before { background: linear-gradient(180deg, #f6dcd6, #eec7c0); }
.env-flap::after { transform: rotateX(180deg); background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, .75) 0 1.8px, transparent 2.3px) 0 0 / 14px 14px, radial-gradient(circle at 75% 75%, rgba(180, 138, 74, .55) 0 1.2px, transparent 1.7px) 0 0 / 14px 14px, linear-gradient(180deg, #e9b3ac, #dc9c98); }
.seal { position: absolute; left: 50%; top: 52%; width: 66px; height: 66px; margin: -33px 0 0 -33px; z-index: 6; border: 0; border-radius: 50%; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 38% 32%, #e8a2a2 0%, #c0636c 45%, #8f3b46 100%); box-shadow: inset 0 0 0 5px rgba(120, 40, 50, .35), inset 0 0 0 9px rgba(255, 210, 210, .18), 0 6px 14px rgba(110, 40, 50, .45);
  display: grid; place-items: center; transition: transform .5s var(--ease), opacity .5s ease; animation: pulse 2.6s ease-in-out infinite; }
.seal span { font-family: var(--f-script); font-size: 2.3rem; line-height: 1; color: #f9d6cf; margin-top: 6px; text-shadow: 0 -1px 0 rgba(90, 20, 30, .5); }
.seal::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(241, 220, 170, .8); animation: spin 18s linear infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: inset 0 0 0 5px rgba(120, 40, 50, .35), 0 6px 14px rgba(110, 40, 50, .45), 0 0 0 0 rgba(241, 220, 170, .5); } 50% { transform: scale(1.06); box-shadow: inset 0 0 0 5px rgba(120, 40, 50, .35), 0 6px 14px rgba(110, 40, 50, .45), 0 0 0 14px rgba(241, 220, 170, 0); } }
.stamp { position: absolute; top: 7%; right: 5%; z-index: 6; width: 52px; height: 62px; padding: 5px; background: #fffaf5; transform: rotate(4deg);
  -webkit-mask: radial-gradient(circle 2.6px at 50% 50%, transparent 96%, #000) -3px -3px / 6px 6px repeat, linear-gradient(#000, #000) 3px 3px / calc(100% - 6px) calc(100% - 6px) no-repeat;
  mask: radial-gradient(circle 2.6px at 50% 50%, transparent 96%, #000) -3px -3px / 6px 6px repeat, linear-gradient(#000, #000) 3px 3px / calc(100% - 6px) calc(100% - 6px) no-repeat; transition: opacity .4s; }
.stamp-in { position: relative; width: 100%; height: 100%; background: linear-gradient(160deg, #fbe3de, #f2c7c0); display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(180, 138, 74, .5); }
.stamp-in svg { position: absolute; width: 120%; left: -10%; top: -18%; opacity: .55; }
.stamp-in .script { position: relative; font-size: 1.2rem; color: #8f3b46; margin-top: 18px; }
.stamp-in .one { position: absolute; top: 3px; right: 5px; font-family: var(--f-serif); font-weight: 600; font-size: .8rem; color: #8c6a33; }
.postmark { position: absolute; top: 10%; right: 13%; width: 108px; z-index: 7; color: rgba(150, 70, 80, .5); transform: rotate(-10deg); pointer-events: none; transition: opacity .4s; }
.env.open .seal { transform: scale(.3) rotate(-40deg); opacity: 0; animation: none; }
.env.open .stamp, .env.open .postmark { opacity: 0; }
.env.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.env.open .env-card { transform: translateY(-46%) scale(1.04); }
.env-hint { margin: 10px 0 0; font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .32em; font-size: .7rem; color: var(--gold-hi); animation: breathe 2.4s ease-in-out infinite; }
.env-sub { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1rem; color: rgba(255, 240, 228, .6); }

/* ---------- pill + chapters sheet ---------- */
.dine-pill { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: translateX(-50%); z-index: 12; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 16px 18px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, #f4dfa8, #c9a05a); color: #4a2a18; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .5); animation: pillIn .7s var(--ease); }
.dine-pill svg { width: 18px; height: 18px; }
.dine-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #a2575f; animation: ping 1.8s infinite; }
.dine-pill.done .dot { animation: none; background: var(--ok); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(162, 87, 95, .6); } 70% { box-shadow: 0 0 0 10px rgba(162, 87, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(162, 87, 95, 0); } }
@keyframes pillIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.sheet-bg { position: absolute; inset: 0; z-index: 20; background: rgba(20, 8, 15, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; transform: translateY(105%); transition: transform .45s var(--ease); background: var(--paper); border-radius: 24px 24px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 20px); max-height: 80%; overflow-y: auto; }
.sheet.open { transform: none; }
.sheet h3 { font-family: var(--f-script); font-weight: 400; font-size: 2.3rem; color: var(--rose); margin: 0 0 6px; text-align: center; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sheet li button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; font-size: 1.15rem; text-align: left; }
.sheet li button[aria-current="true"], .sheet li button:hover { background: var(--blush); }
.sheet .st { font-family: var(--f-sans); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.sheet-cap { padding: 10px 12px 4px; font-family: var(--f-sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.months-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 4px 12px 8px; }
.months-grid button { aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(180, 138, 74, .5); background: transparent; cursor: pointer; font-family: var(--f-sans); font-size: .82rem; }
.months-grid button[aria-current="true"] { background: var(--rose); color: #fff7f2; border-color: var(--rose); }

/* ---------- dinner menu sheet ---------- */
.dine { position: absolute; inset: 0; z-index: 25; display: flex; align-items: flex-end; }
.dine-bg { position: absolute; inset: 0; background: rgba(30, 10, 20, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity .45s; }
.dine-sheet { position: relative; width: 100%; height: 93%; background: var(--paper); border-radius: 26px 26px 0 0; overflow: hidden; display: flex; flex-direction: column; transform: translateY(104%); transition: transform .6s cubic-bezier(.2, .9, .25, 1); box-shadow: 0 -20px 60px rgba(30, 5, 15, .4); }
.dine.open .dine-bg { opacity: 1; }
.dine.open .dine-sheet { transform: none; }
.dine-x { position: absolute; top: 12px; right: 12px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 250, 245, .18); color: #fff4ef; display: grid; place-items: center; }
.dine-x svg { width: 18px; height: 18px; }
.dine-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.dine-head { flex: none; position: relative; text-align: center; padding: 28px 24px 26px; color: #fbeee9; background: radial-gradient(120% 140% at 50% 0%, #a65a63 0%, #7a3843 55%, #5e2a35 100%); }
.dine-head::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(241, 220, 170, .45); border-radius: 18px 18px 6px 6px; pointer-events: none; }
.dine-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 16px; background: radial-gradient(circle at 10px -2px, transparent 10px, var(--paper) 10.5px) -10px 0 / 20px 16px repeat-x; }
.dine-head .caps { color: rgba(251, 238, 233, .8); }
.dine-head h2 { font-size: 3.3rem; margin: 2px 0; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dine-head p { margin: 2px auto 6px; max-width: 30ch; font-size: 1.04rem; line-height: 1.4; font-style: italic; color: #f7e3dd; }
.dine.fresh .dine-head h2 { animation: glowIn 1.4s ease .3s both; }
@keyframes glowIn { from { opacity: 0; letter-spacing: .12em; filter: blur(4px); } to { opacity: 1; letter-spacing: 0; filter: none; } }
.dine-inner { flex: 1 0 auto; padding: 14px 16px 20px; display: grid; gap: 10px; align-content: start; }
.acc { border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(180, 138, 74, .28), 0 8px 20px -16px rgba(90, 40, 45, .5); overflow: hidden; }
.acc.open { box-shadow: 0 0 0 1.5px rgba(162, 87, 95, .55), 0 14px 26px -18px rgba(90, 40, 45, .6); }
.acc-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.acc-t { flex: 1; display: grid; min-width: 0; }
.acc-t b { font-family: var(--f-script); font-weight: 400; font-size: 1.9rem; color: var(--rose); line-height: 1.05; }
.acc-t small { font-family: var(--f-sans); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.acc-badge { min-width: 26px; height: 26px; padding-inline: 8px; border-radius: 999px; display: grid; place-items: center; background: var(--rose); color: #fff7f2; font-family: var(--f-sans); font-size: .78rem; font-variant-numeric: tabular-nums; }
.chev { width: 22px; height: 22px; color: var(--gold); transition: transform .35s var(--ease); flex: none; }
.chev svg { width: 100%; height: 100%; }
.acc.open .acc-h .chev { transform: rotate(180deg); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc.open .acc-b { grid-template-rows: 1fr; }
.acc-in { min-height: 0; overflow: hidden; padding-inline: 14px; }
.acc.open .acc-in { padding-bottom: 8px; }
.cat-note { font-style: italic; color: var(--ink-soft); font-size: .98rem; margin: 0 4px 4px; }
.it { display: flex; align-items: center; gap: 10px; padding: 11px 6px; border-top: 1px dotted rgba(180, 138, 74, .35); border-radius: 12px; transition: background .25s; }
.it.has { background: var(--blush); border-top-color: transparent; }
.it-i { flex: 1; min-width: 0; display: grid; gap: 1px; text-align: left; }
.it-i b { font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.it-i small { font-style: italic; color: var(--ink-soft); font-size: .95rem; line-height: 1.3; }
.tag { width: 13px; height: 13px; flex: none; border: 1.5px solid currentColor; border-radius: 2px; display: inline-grid; place-items: center; }
.tag::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag.veg, .tag.jain { color: #2f8a46; }
.tag.nonveg { color: #9b3a2f; }
.tag.egg { color: #c48a1f; }
.plus { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); background: #fff; color: var(--rose); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .2s; }
.plus:active { transform: scale(.9); }
.plus svg { width: 18px; height: 18px; }
.stp { display: flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--rose); color: #fff7f2; padding: 3px; flex: none; animation: stpIn .3s var(--ease); }
.stp button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.stp button svg { width: 15px; height: 15px; }
.stp output { min-width: 22px; text-align: center; font-family: var(--f-sans); font-variant-numeric: tabular-nums; font-size: .95rem; }
.stp.sm button { width: 28px; height: 28px; }
@keyframes stpIn { from { transform: scale(.6); opacity: 0; } }
.qty-ro { font-family: var(--f-sans); font-size: .85rem; }
.cart { position: sticky; bottom: 0; z-index: 4; background: rgba(255, 250, 245, .97); border-top: 1px solid rgba(180, 138, 74, .35); box-shadow: 0 -12px 30px -18px rgba(90, 40, 45, .5); padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 14px); }
.cart-list { display: none; padding: 16px 4px 4px; max-height: 46vh; overflow-y: auto; }
.cart.open .cart-list { display: grid; gap: 8px; animation: rise .4s var(--ease); }
.cart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cart-h b { font-family: var(--f-script); font-weight: 400; font-size: 1.9rem; color: var(--rose); }
.cart-h span { font-family: var(--f-sans); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.cl-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(180, 138, 74, .35); font-size: 1.08rem; }
.cl-row > span { display: flex; align-items: center; gap: 8px; text-align: left; }
.cart-note-l { font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; color: var(--ink-soft); margin-top: 6px; text-align: left; }
.cart-bar { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.cart-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; text-align: left; padding: 0; }
.cart-ic { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--blush); color: var(--rose); display: grid; place-items: center; }
.cart-ic svg { width: 22px; height: 22px; }
.cart-ic i { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px; background: var(--rose); color: #fff; font-style: normal; font-family: var(--f-sans); font-size: .7rem; display: grid; place-items: center; }
.cart-ic.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.cart-txt { font-family: var(--f-sans); font-size: .78rem; color: var(--ink); line-height: 1.3; }
.chev.up { transform: rotate(180deg); width: 18px; height: 18px; }
.cart.open .chev.up { transform: none; }
.cart .err { margin: 6px 0 0; }
.muted { color: var(--ink-soft); font-style: italic; margin: 0; }
.done-v { justify-items: center; text-align: center; padding-top: 20px; }
.done-v h3 { font-size: 3rem; color: var(--rose); margin: 0; }
.tick-anim svg { width: 76px; height: 76px; }
.tick-anim circle { fill: var(--blush); stroke: var(--rose); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s var(--ease) forwards; }
.tick-anim path { fill: none; stroke: var(--rose); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.receipt { width: 100%; max-width: 380px; margin-top: 6px; padding: 18px 18px 14px; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(180, 138, 74, .3), 0 14px 30px -20px rgba(90, 40, 45, .6); text-align: left;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 96%, #000) 0 100% / 16px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 10px) no-repeat;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 96%, #000) 0 100% / 16px 12px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 10px) no-repeat; }
.rc-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-sans); font-size: .76rem; padding: 2px 0; }
.rc-top span { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; }
.rc-cat { margin-top: 12px; padding-bottom: 4px; border-bottom: 1px dashed rgba(180, 138, 74, .5); font-family: var(--f-sans); text-transform: uppercase; letter-spacing: .18em; font-size: .6rem; color: var(--rose); }
.rc-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 1.06rem; }
.rc-row span { display: flex; align-items: center; gap: 8px; }
.rc-row b { font-family: var(--f-sans); font-size: .85rem; }
.rc-note { margin-top: 10px; font-style: italic; color: var(--ink-soft); }

.toast { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); transform: translate(-50%, 20px); z-index: 40; background: rgba(40, 18, 26, .92); color: #fff3ee; font-family: var(--f-sans); font-size: .8rem; padding: 10px 16px; border-radius: 999px; opacity: 0; transition: all .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.sealed .hud, body.sealed .foot { opacity: 0; }

@media (max-height: 700px) {
  .tale { font-size: 1.4rem; }
  .hero { width: 46%; }
  .name-reveal { font-size: 5rem; margin-top: -36px; }
  .big-one { font-size: 9rem; }
  .mnum { font-size: 5rem; }
}
.scene[data-key="name"] .eyebrow { color: var(--ink-soft); }

/* ===== v6: baby mobile, handwritten note, party cards ===== */
:root { --f-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; }
/* night */
.moon { top: 15%; left: 8%; right: auto; width: 62px; height: 62px; }
.mobile { top: calc(env(safe-area-inset-top, 0px) + 96px); left: 50%; width: min(68%, 280px); transform: translateX(-50%); overflow: visible; animation: mobIn 1.6s var(--ease) both; }
@keyframes mobIn { from { opacity: 0; transform: translate(-50%, -30px); } }
.mobile-in { animation: mobSway 7s ease-in-out infinite; }
@keyframes mobSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hang { animation: sway 3.2s ease-in-out infinite; }
.hang.h2 { animation-duration: 3.8s; animation-delay: -1s; }
.hang.h3 { animation-duration: 4.2s; animation-delay: -2s; }
.hang.h4 { animation-duration: 3.5s; animation-delay: -.5s; }
.hang.h5 { animation-duration: 2.8s; animation-delay: -1.4s; }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.mobile g g { filter: drop-shadow(0 0 6px rgba(255, 230, 170, .45)); }
.clouds { inset: 0; pointer-events: none; }
.clouds i { position: absolute; width: 180px; height: 50px; border-radius: 50%; background: rgba(255, 240, 250, .07); filter: blur(10px); animation: drift 30s linear infinite; }
.clouds i:nth-child(1) { top: 30%; left: -40%; }
.clouds i:nth-child(2) { top: 46%; left: -60%; width: 240px; animation-duration: 42s; animation-delay: -12s; }
.clouds i:nth-child(3) { top: 58%; left: -50%; animation-duration: 36s; animation-delay: -24s; }
@keyframes drift { to { transform: translateX(170vw); } }
.once { margin: 0 0 4px; font-size: 3.4rem; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 14px rgba(255, 220, 160, .35)); }
.scene[data-key="night"] .body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 110px); }
/* ring */
.ring-sub { margin-top: 6px; }
.ring-c .script.big { font-size: 3.1rem; max-width: 7ch; line-height: .95; text-align: center; }
/* envelope screen */
.lights { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 6px); left: -2%; width: 104%; height: 90px; }
.bulb { animation: twinkle 1.8s ease-in-out infinite; animation-delay: var(--d); filter: drop-shadow(0 0 6px currentColor); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.env-top { text-align: center; margin-bottom: 6px; animation: envIn 1.2s var(--ease) .2s both; }
.env-top .caps { color: var(--gold-hi); letter-spacing: .34em; }
.env-top .script { margin: 2px 0 0; font-size: 2.6rem; color: #f7dcd4; }
.env { animation: envIn 1.2s var(--ease) both, bob 4s ease-in-out 1.2s infinite; }
.env.open { animation: none; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.env-stage .deco.env-fl { position: absolute; width: 44%; opacity: .9; pointer-events: none; }
.env-stage .deco.env-fl.l { left: -14%; bottom: -4%; transform: rotate(180deg); }
.env-stage .deco.env-fl.r { right: -14%; bottom: -6%; transform: rotate(180deg) scaleX(-1); }
/* handwritten note */
.doodles { inset: 0; width: 100%; height: 100%; }
.note { position: relative; width: 100%; max-width: 360px; max-height: calc(100% - 70px); background-color: #fffdf8;
  background-image: linear-gradient(90deg, transparent 38px, rgba(234, 150, 160, .45) 38px, rgba(234, 150, 160, .45) 39.5px, transparent 39.5px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(150, 180, 210, .32) 31px 32px);
  background-position: 0 0, 0 18px; border-radius: 6px; box-shadow: 0 24px 50px -26px rgba(90, 40, 50, .6), 0 1px 3px rgba(90, 40, 50, .12); transform: rotate(-1.4deg); overflow: visible; display: flex; }
.scene.on .note.rise { animation: noteIn 1s var(--ease) both; }
@keyframes noteIn { from { opacity: 0; transform: translateY(30px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.4deg); } }
.note .tape { position: absolute; z-index: 3; width: 86px; height: 24px; background: repeating-linear-gradient(45deg, rgba(246, 205, 120, .85) 0 7px, rgba(255, 246, 225, .85) 7px 14px); box-shadow: 0 1px 2px rgba(90, 40, 45, .15); }
.note .tape.t1 { top: -11px; left: 50%; transform: translateX(-50%) rotate(-3deg); }
.note .tape.t2 { top: 26px; right: -22px; width: 62px; transform: rotate(38deg); background: repeating-linear-gradient(45deg, rgba(185, 224, 207, .9) 0 7px, rgba(240, 252, 246, .9) 7px 14px); }
.note-photo { position: absolute; z-index: 2; top: -18px; right: -14px; width: 104px; padding: 7px 7px 26px; background: #fff; box-shadow: 0 8px 18px -8px rgba(60, 20, 30, .5); transform: rotate(7deg); }
.note-photo img, .note-photo .ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: linear-gradient(160deg, #f6cfc6, #e9a9a8); }
.note-photo .ph svg { width: 80%; }
.cap-hand { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font-family: var(--f-hand); font-size: 1.1rem; color: var(--rose); }
.note-in { flex: 1; overflow-y: auto; padding: 22px 20px 20px 52px; text-align: left; scrollbar-width: none; display: grid; align-content: start; gap: 0; }
.note-in::-webkit-scrollbar { display: none; }
.hand-h { margin: 6px 0 0; padding-right: 96px; font-family: var(--f-hand); font-weight: 700; font-size: 2.3rem; line-height: 1.1; color: var(--rose); }
.hand-t { margin: 0; font-family: var(--f-hand); font-weight: 500; font-size: 1.42rem; line-height: 32px; color: #3f3a5a; }
.hand-t:nth-of-type(2) { padding-right: 70px; }
.one-ring { position: relative; font-weight: 700; color: var(--rose); padding: 0 4px; }
.one-ring::after { content: ""; position: absolute; inset: -2px -6px; border: 2px solid rgba(233, 180, 76, .9); border-radius: 50% 45% 55% 40%; transform: rotate(-4deg); }
.hand-sign { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-family: var(--f-hand); color: #3f3a5a; }
.hand-sign span { font-size: 1.42rem; }
.hand-sign b { font-size: 2.2rem; color: var(--rose); }
.hand-sign .hand { width: 44px; }
/* party details */
.party-b { gap: 8px; }
.party-title { margin: 0; display: grid; justify-items: center; line-height: 1; font-weight: 400; }
.party-title .script { font-size: 3rem; color: var(--rose-deep); }
.party-title .first { font-family: var(--f-serif); font-weight: 600; color: transparent; background: var(--foil); -webkit-background-clip: text; background-clip: text; display: flex; align-items: flex-start; margin: -2px 0 -4px; }
.party-title .first i { font-style: normal; font-size: 4.4rem; line-height: .9; }
.party-title .first sup { font-size: 1.5rem; margin-top: 6px; }
.party-title .bday { font-family: var(--f-sans); font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); margin-top: 4px; }
.cards { width: 100%; max-width: 360px; display: grid; gap: 10px; margin-top: 10px; }
.pcard { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 12px; background: #fffdf9; border-radius: 20px; text-align: left; box-shadow: 0 14px 28px -20px rgba(90, 40, 50, .6), 0 0 0 1px rgba(180, 138, 74, .18); }
.scene.on .pcard.c1 { rotate: -1deg; } .scene.on .pcard.c2 { rotate: .8deg; } .scene.on .pcard.c3 { rotate: -.6deg; }
.pcard > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pcard small { font-family: var(--f-sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.pcard b { font-family: var(--f-sans); font-weight: 500; font-size: 1.04rem; color: var(--ink); line-height: 1.3; }
.pcard span:not(.pic) { font-family: var(--f-sans); font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }
.pic { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; }
.pic svg { width: 24px; height: 24px; }
.c1 .pic { background: #fbe0de; color: #b4545f; }
.c2 .pic { background: #dcefe6; color: #3f7a5f; }
.c3 .pic { background: #ece3f6; color: #7457a0; }
.mini-btn { flex: none; align-self: center; padding: 8px 12px; border-radius: 999px; background: #dcefe6; color: #2f6a4f; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.party-b .count { margin-top: 8px; align-items: center; flex-wrap: wrap; }
.party-b .count div { background: #fff4d6; box-shadow: 0 0 0 1px rgba(233, 180, 76, .35); min-width: 54px; }
.party-b .count em { font-family: var(--f-hand); font-size: 1.5rem; color: var(--rose-deep); font-style: normal; margin-left: 4px; }
.stage[data-scene="party"] .nav, .stage[data-scene="letter"] .nav { background: rgba(90, 40, 50, .18); color: var(--rose-deep); }
.scene[data-key="party"] .body { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-height: 760px) { .party-title .script { font-size: 2.4rem; } .party-title .first i { font-size: 3.4rem; } .pcard { padding: 10px 12px; } .pic { width: 40px; height: 40px; } .hand-t { font-size: 1.3rem; line-height: 29px; } }
.scene ~ .x, .moon { top: 24%; left: 5%; width: 50px; height: 50px; } .moon.small { top: 8%; left: auto; right: 10%; }

/* ===== v9: the little fairy (original look) + breathing ===== */
.fairy { width: 96px; height: 104px; offset-path: path("M -70 400 C 30 320, 140 430, 220 360 S 350 250, 290 228 S 120 290, 84 404"); offset-rotate: 0deg; opacity: 0; }
.scene.on .fairy { animation: flyIn 6.4s cubic-bezier(.45, .05, .35, 1) .3s both; }
@keyframes flyIn { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 100% { offset-distance: 100%; opacity: 1; } }
.fairy-svg, .fairy-img { width: 100%; height: 100%; overflow: visible; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 225, 170, .6)); animation: hover 3.4s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
.fairy-svg .breathe { transform-origin: 59px 100px; animation: breathe 2.6s ease-in-out infinite; }
.fairy-img { animation: hover 3.4s ease-in-out infinite, breatheImg 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, 1.045); } }
@keyframes breatheImg { 0%, 100% { scale: 1 1; } 50% { scale: 1.02 1.035; } }
.fairy-svg .wl { transform-origin: 53px 62px; animation: wingL .3s ease-in-out infinite alternate; }
.fairy-svg .wr { transform-origin: 65px 62px; animation: wingR .3s ease-in-out infinite alternate; }
@keyframes wingL { from { transform: scaleX(1) rotate(0); } to { transform: scaleX(.5) rotate(7deg); } }
@keyframes wingR { from { transform: scaleX(1) rotate(0); } to { transform: scaleX(.5) rotate(-7deg); } }
.wand-star { transform-box: fill-box; transform-origin: center; animation: wandGlow 1.3s ease-in-out infinite; }
@keyframes wandGlow { 50% { transform: scale(1.25) rotate(20deg); filter: drop-shadow(0 0 4px #fff3c0); } }
.wand-tip { position: absolute; left: 16%; top: 18%; width: 4px; height: 4px; }
.fairy b, .fairy .wing { display: none; }

/* ===== v10: illustrated fairy ===== */
.fairy { width: 150px; height: 174px; offset-path: path("M -90 410 C 30 330, 140 440, 220 370 S 350 260, 290 236 S 120 290, 100 378"); }
.fairy-img { filter: drop-shadow(0 0 14px rgba(255, 220, 235, .55)) drop-shadow(0 0 30px rgba(255, 230, 180, .25)); transform-origin: 50% 60%; animation: fairyFloat 3.6s ease-in-out infinite, fairyBreathe 2.8s ease-in-out infinite; }
@keyframes fairyFloat { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -10px; rotate: 3deg; } }
@keyframes fairyBreathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.025 1.04; } }
.wand-tip { left: 92%; top: 27%; }
.finale-fairy { width: 120px; margin-bottom: -6px; filter: drop-shadow(0 8px 18px rgba(160, 80, 100, .3)); }
.scene.on .finale-fairy { animation: rise 1s var(--ease) both, fairyFloat 3.6s ease-in-out 1s infinite; }
@media (max-height: 700px) { .fairy { width: 120px; height: 140px; } .finale-fairy { width: 90px; } }

/* ===== v11: visible floating for the fairy (transform-only, works on older phones) ===== */
.fb { display: block; width: 100%; height: 100%; -webkit-animation: drift 5.2s ease-in-out infinite; animation: drift 5.2s ease-in-out infinite; will-change: transform; }
.fairy-img { display: block; width: 100%; height: 100%; object-fit: contain; translate: none; rotate: none; scale: none; transform-origin: 50% 65%;
  -webkit-animation: breath 2.6s ease-in-out infinite; animation: breath 2.6s ease-in-out infinite; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(-5deg); }
  25% { transform: translate(10px, -16px) rotate(2deg); }
  50% { transform: translate(2px, -26px) rotate(5deg); }
  75% { transform: translate(-10px, -12px) rotate(-1deg); }
  100% { transform: translate(0, 0) rotate(-5deg); }
}
@-webkit-keyframes drift {
  0% { -webkit-transform: translate(0, 0) rotate(-5deg); }
  25% { -webkit-transform: translate(10px, -16px) rotate(2deg); }
  50% { -webkit-transform: translate(2px, -26px) rotate(5deg); }
  75% { -webkit-transform: translate(-10px, -12px) rotate(-1deg); }
  100% { -webkit-transform: translate(0, 0) rotate(-5deg); }
}
@keyframes breath { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.035, 1.05); } }
@-webkit-keyframes breath { 0%, 100% { -webkit-transform: scale(1, 1); } 50% { -webkit-transform: scale(1.035, 1.05); } }
.finale-wrap { display: block; width: 120px; height: 134px; }
.finale-fairy { width: 100%; height: 100%; margin: 0; }
.scene.on .finale-fairy { animation: breath 2.6s ease-in-out infinite; }
@media (max-height: 700px) { .finale-wrap { width: 90px; height: 100px; } }
/* the fairy keeps a gentle float even with reduced motion turned on */
@media (prefers-reduced-motion: reduce) {
  .fb { animation: drift 7s ease-in-out infinite !important; }
  .fairy-img { animation: breath 3.4s ease-in-out infinite !important; }
}

/* ===== v13: full-screen steps, no scrolling boxes ===== */
.flow { justify-content: center; }
.step { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } }
.big-q { margin: 0; font-size: 3.2rem; line-height: 1; color: var(--rose-deep); text-wrap: balance; }
.big-q.light { color: var(--cream); }
.step-sub { margin: 0; font-size: 1.2rem; line-height: 1.4; color: var(--ink); max-width: 28ch; }
.step-sub.light { color: rgba(255, 244, 236, .9); font-style: italic; }
.step-quote { margin: 0; font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.step-nav { display: flex; gap: 10px; justify-content: center; width: 100%; margin-top: 8px; }
.step-nav .btn { flex: 1; max-width: 190px; }
.step-nav.col { flex-direction: column; align-items: center; }
.step-nav.col .btn { width: 100%; max-width: 280px; }
.emo { font-size: 2.6rem; line-height: 1; }
.emo.solo { font-size: 3.4rem; }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; margin-top: 6px; }
.big-choice button { display: grid; justify-items: center; gap: 6px; padding: 22px 10px 18px; border-radius: 24px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .78); box-shadow: 0 14px 30px -18px rgba(110, 40, 55, .55), 0 0 0 1px rgba(180, 138, 74, .25); transition: transform .25s var(--ease), box-shadow .25s; }
.big-choice button:active { transform: scale(.97); }
.big-choice button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--rose), 0 14px 30px -18px rgba(110, 40, 55, .6); }
.big-choice b { font-family: var(--f-script); font-weight: 400; font-size: 2.2rem; color: var(--rose); line-height: 1; }
.big-choice small { font-family: var(--f-sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.count-cards { display: grid; gap: 12px; width: 100%; }
.cc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .78); box-shadow: 0 14px 30px -20px rgba(110, 40, 55, .55); }
.cc .emo { font-size: 2.2rem; }
.cc .stepper { flex: 1; border: 0; background: transparent; padding: 0; }
.cc .stepper .who { font-size: 1.2rem; }
.cc .stepper button { width: 44px; height: 44px; }
.cc .stepper output { font-size: 1.4rem; min-width: 32px; font-family: var(--f-serif); font-weight: 600; }
.chips.big { justify-content: center; gap: 8px; }
.chips.big button { padding: 12px 16px; font-size: .86rem; background: rgba(255, 255, 255, .8); }
.line-input { width: 100%; border: 0; border-bottom: 1.5px solid rgba(162, 87, 95, .45); background: transparent; padding: 12px 4px; font-family: var(--f-serif); font-size: 1.2rem; color: var(--ink); text-align: center; }
.line-input::placeholder { color: #ad9496; font-style: italic; }
.line-input:focus { outline: none; border-bottom-color: var(--rose); }
.tick-anim.big svg { width: 92px; height: 92px; }
.scene[data-key="rsvp"] .tick-anim circle { fill: rgba(255, 255, 255, .7); }
/* capsule */
.step.light .eyebrow { color: rgba(255, 240, 228, .85); }
.capsule-jar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.8rem; background: radial-gradient(circle, rgba(255, 240, 200, .35), rgba(255, 240, 200, 0) 70%); animation: hover 3.4s ease-in-out infinite; }
.cap-opens { margin: 0; font-family: var(--f-sans); font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 240, 228, .7); }
.step.light .year { font-size: 2.8rem; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sealed-count { margin: 0; font-family: var(--f-sans); font-size: .8rem; color: var(--gold-hi); }
textarea.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(241, 220, 170, .45); color: var(--cream); font-size: 1.2rem; border-radius: 20px; padding: 16px; resize: none; }
textarea.glass::placeholder { color: rgba(255, 240, 228, .5); }
.rec.light .btn { background: rgba(255, 255, 255, .08); border-color: rgba(241, 220, 170, .5); color: var(--cream); }
.rec.light .caps { color: var(--cream); }
.cap-panel.fly { animation: flyAway 1.3s cubic-bezier(.5, 0, .7, .4) forwards; }
/* menu sheet becomes a full screen with its own review step */
.dine-sheet { height: 100%; border-radius: 0; }
.dine-head { padding-top: calc(env(safe-area-inset-top, 0px) + 22px); }
.dine-head::before { border-radius: 14px 14px 6px 6px; }
.dine-inner.review { gap: 6px; padding-inline: 22px; }
.dine-inner.review .cart-h { margin-bottom: 4px; }
.dine-inner.review .step-nav { margin-top: 18px; }
.dine-inner.review .line-input { text-align: left; }
.cart { padding-top: 0; }
/* the note from Ira should never scroll inside itself */
.note { max-height: none; }
.note-in { overflow: visible; }
@media (max-height: 760px) { .note-in { padding: 16px 16px 14px 48px; } .hand-h { font-size: 1.9rem; } .hand-t { font-size: 1.22rem; line-height: 28px; } .note-photo { width: 84px; } .big-q { font-size: 2.6rem; } }
.cc .stepper .who { color: var(--ink); font-family: var(--f-serif); font-weight: 500; }
.chips.big button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff7f2; }

/* ===== v14: month pages as a photo album ===== */
.album { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(60% 40% at 50% 34%, var(--wash) 0%, rgba(255, 255, 255, 0) 70%), radial-gradient(120% 80% at 50% 0%, #fffaf6 0%, #f8ece6 100%); }
.album.a0 { --wash: #f9d9de; --acc: #b45f6c; } .album.a1 { --wash: #fbe2cf; --acc: #a8643c; } .album.a2 { --wash: #dcebdf; --acc: #4f7a62; }
.album.a3 { --wash: #e7ddf4; --acc: #7458a0; } .album.a4 { --wash: #f8e8c4; --acc: #9a7330; } .album.a5 { --wash: #dbe8f3; --acc: #4b6f8f; }
.album .deco { position: absolute; width: 46%; opacity: .95; }
.album .deco.tr { top: 64px; right: -30px; } .album .deco.tl { top: 64px; left: -30px; transform: scaleX(-1); }
.album .deco.bl { bottom: -26px; left: -30px; transform: rotate(180deg); } .album .deco.br { bottom: -26px; right: -30px; transform: rotate(180deg) scaleX(-1); }
.mpage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: calc(env(safe-area-inset-top, 0px) + 96px) 26px calc(env(safe-area-inset-bottom, 0px) + 80px); text-align: center; }
.fr-wrap { position: relative; width: min(70vw, 280px); max-height: 52vh; display: grid; place-items: center; }
.fr { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 52vh; overflow: hidden; background: #fff; }
.fr-in { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, #fffaf7 0%, var(--wash, #f9d9de) 85%); }
.fr-in img { width: 100%; height: 100%; display: block; }
.fr-in img.full { object-fit: cover; }
.bg.on ~ * .fr-in img.full, .scene.on .fr-in img.full { animation: kbIn 7s ease-out both; }
@keyframes kbIn { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.fr-in img.cut { object-fit: contain; padding: 6% 6% 0; transform-origin: 50% 80%; }
.scene.on .fr-in img.cut { animation: breath 2.8s ease-in-out infinite; }
.fr-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.fr-ic { width: 38%; color: rgba(180, 138, 74, .75); }
.scene.on .fr-ic { animation: hover 4s ease-in-out infinite; }
/* shared gold edge */
.fr-arch .fr, .fr-crown .fr, .fr-bunting .fr { border-radius: 999px 999px 16px 16px; box-shadow: 0 0 0 1px rgba(180, 138, 74, .8), 0 0 0 7px #fffaf5, 0 0 0 8px rgba(180, 138, 74, .45), 0 30px 50px -26px rgba(110, 50, 60, .55); }
.fr-ring .fr { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #fffaf5, 0 0 0 7.5px rgba(180, 138, 74, .8), 0 30px 50px -26px rgba(110, 50, 60, .55); }
.dot-ring { position: absolute; inset: -16px; width: calc(100% + 32px); fill: #c9a05a; animation: spin 60s linear infinite; }
.fr-polaroid .fr { aspect-ratio: auto; padding: 12px 12px 54px; background: #fff; transform: rotate(-3deg); box-shadow: 0 2px 4px rgba(90, 40, 50, .1), 0 30px 50px -24px rgba(110, 50, 60, .55); overflow: visible; }
.fr-polaroid .fr-in { position: relative; inset: auto; aspect-ratio: 1; }
.fr-polaroid .tape { position: absolute; z-index: 3; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(4deg); background: repeating-linear-gradient(45deg, rgba(244, 205, 200, .85) 0 7px, rgba(255, 246, 240, .85) 7px 14px); box-shadow: 0 1px 2px rgba(90, 40, 45, .15); }
.fr-scallop .fr { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 50px -26px rgba(110, 50, 60, .55); }
.scallop-ring { position: absolute; inset: -12px; width: calc(100% + 24px); fill: #fff; filter: drop-shadow(0 0 1px rgba(180, 138, 74, .7)); z-index: -1; }
.fr-oval .fr { aspect-ratio: 3 / 4; border-radius: 50%; box-shadow: 0 0 0 5px #fffaf5, 0 0 0 6.5px rgba(180, 138, 74, .8), 0 0 0 11px #fffaf5, 0 0 0 12px rgba(180, 138, 74, .35), 0 30px 50px -26px rgba(110, 50, 60, .55); }
.bow { position: absolute; z-index: 3; top: -24px; left: 50%; width: 92px; transform: translateX(-50%); filter: drop-shadow(0 4px 6px rgba(150, 70, 80, .25)); }
.fr-stamp .fr { padding: 10px; background: #fff;
  -webkit-mask: radial-gradient(circle 5px at 50% 50%, transparent 96%, #000) -6px -6px / 12px 12px repeat, linear-gradient(#000, #000) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat;
  mask: radial-gradient(circle 5px at 50% 50%, transparent 96%, #000) -6px -6px / 12px 12px repeat, linear-gradient(#000, #000) 6px 6px / calc(100% - 12px) calc(100% - 12px) no-repeat; transform: rotate(2deg); }
.fr-stamp { filter: drop-shadow(0 18px 24px rgba(110, 50, 60, .3)); }
.fr-stamp .fr-in { inset: 10px; box-shadow: inset 0 0 0 1px rgba(180, 138, 74, .5); }
.crown-top { position: absolute; z-index: 3; top: -40px; left: 50%; width: 92px; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 6px 8px rgba(140, 90, 30, .35)); }
.fr-window .fr { border-radius: 28px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 0 0 8px #fffaf5, 0 0 0 9px rgba(180, 138, 74, .6), 0 30px 50px -26px rgba(110, 50, 60, .55); }
.win-fl { position: absolute; z-index: 3; width: 62%; top: -34px; right: -38px; pointer-events: none; }
.fr-heart { filter: drop-shadow(0 22px 26px rgba(110, 50, 60, .3)) drop-shadow(0 0 0 #fff); }
.fr-heart .fr { aspect-ratio: 1 / .92; background: transparent;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C 18 68 0 50 2 28 C 3 10 18 0 32 2 C 41 3 47 9 50 16 C 53 9 59 3 68 2 C 82 0 97 10 98 28 C 100 50 82 68 50 90Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90 C 18 68 0 50 2 28 C 3 10 18 0 32 2 C 41 3 47 9 50 16 C 53 9 59 3 68 2 C 82 0 97 10 98 28 C 100 50 82 68 50 90Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.fr-balloon .fr { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 7px #fffaf5, 0 0 0 8px rgba(180, 138, 74, .7), 0 30px 50px -26px rgba(110, 50, 60, .55); }
.bal-tie { position: absolute; z-index: 3; width: 44%; top: -44%; right: -16%; animation: hover 4.6s ease-in-out infinite; }
.fr-stack .fr { border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 0 0 10px #fff, 0 30px 50px -24px rgba(110, 50, 60, .55); }
.stack-back { position: absolute; inset: 0; border-radius: 14px; background: var(--wash, #f9d9de); transform: rotate(6deg) translate(8px, 6px); box-shadow: 0 0 0 10px #fffaf5, 0 20px 40px -24px rgba(110, 50, 60, .45); }
.bunting-top { position: absolute; z-index: 3; top: -10px; left: -14%; width: 128%; }
/* badge + text */
.m-badge { position: absolute; z-index: 4; bottom: -18px; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #fffaf5; box-shadow: 0 0 0 1.2px rgba(180, 138, 74, .8), 0 8px 18px -8px rgba(110, 50, 60, .45); }
.m-badge b { font-family: var(--f-serif); font-weight: 600; font-size: 1.45rem; line-height: 1; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-badge small { font-family: var(--f-sans); font-size: .48rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.fr-polaroid .m-badge, .fr-stack .m-badge, .fr-stamp .m-badge { bottom: -22px; }
.m-text { display: grid; justify-items: center; gap: 4px; margin-top: 8px; }
.m-ic { width: 26px; height: 26px; color: var(--gold); }
.m-ic svg { width: 100%; height: 100%; }
.m-title { margin: 0; font-size: 3rem; line-height: 1; color: var(--rose-deep); text-wrap: balance; }
.m-range { margin: 0; font-family: var(--f-sans); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.m-cap { margin: 8px 0 0; font-style: italic; font-size: 1.24rem; line-height: 1.38; color: var(--ink); max-width: 25ch; text-wrap: balance; }
.stage[data-scene^="m"] .nav { background: rgba(90, 40, 50, .14); color: var(--rose-deep); }
.stage[data-scene^="m"] .hint { color: var(--rose-deep); text-shadow: none; }
@media (max-height: 740px) { .fr-wrap { width: min(58vw, 230px); } .m-title { font-size: 2.4rem; } .m-cap { font-size: 1.1rem; } .mpage { gap: 16px; } }
.m-ic { display: none; }

/* ===== v15: the twelve moons ===== */
.msky { position: absolute; inset: 0; background:
  radial-gradient(80% 45% at 50% 38%, rgba(255, 236, 205, calc(.10 + var(--t) * .25)) 0%, rgba(255, 236, 205, 0) 70%),
  linear-gradient(180deg, color-mix(in srgb, #161129 calc(100% - var(--t) * 70%), #5a3354) 0%, color-mix(in srgb, #2a1d45 calc(100% - var(--t) * 80%), #b06a78) 60%, color-mix(in srgb, #4a2f50 calc(100% - var(--t) * 85%), #f0b49c) 100%); }
.mhills { position: absolute; left: -10%; right: -10%; bottom: -4%; height: 18%; background: radial-gradient(60% 100% at 20% 100%, rgba(30, 18, 40, .85) 0 60%, transparent 61%), radial-gradient(70% 100% at 80% 100%, rgba(40, 24, 50, .8) 0 60%, transparent 61%); }
.moonpage { justify-content: flex-start; gap: 18px; padding-top: calc(env(safe-area-inset-top, 0px) + 104px); }
.phases { display: flex; gap: 6px; justify-content: center; }
.ph { width: 18px; height: 18px; }
.ph-bg { fill: rgba(255, 240, 210, .9); }
.ph-dk { fill: rgba(25, 16, 45, .85); }
.ph { opacity: .45; } .ph.done { opacity: .85; }
.ph.cur { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 230, 170, .9)); transform: scale(1.25); }
.moon-wrap { position: relative; width: min(66vw, 270px); aspect-ratio: 1; margin-top: 18px; }
.moon-big { position: relative; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 22px rgba(255, 232, 180, .45)); }
.moon-halo { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 190, .35) 0%, rgba(255, 236, 190, .12) 40%, rgba(255, 236, 190, 0) 70%); }
.moon-shadow { fill: rgba(20, 13, 40, .8); }
.moon-wrap.glow .moon-halo { animation: haloPulse 1.6s ease-out; }
@keyframes haloPulse { 0% { transform: scale(.9); opacity: .6; } 40% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.scene.on .moon-big { animation: moonFloat 6s ease-in-out infinite; }
@keyframes moonFloat { 50% { transform: translateY(-6px); } }
.m-fairy { position: absolute; width: 38%; left: -30%; top: 56%; opacity: 0; filter: drop-shadow(0 0 10px rgba(255, 220, 235, .6)); pointer-events: none; }
.scene.on .m-fairy { animation: fairyTo 1.6s cubic-bezier(.3, .7, .3, 1) .2s forwards, fairyHover 3s ease-in-out 1.8s infinite; }
@keyframes fairyTo { 0% { opacity: 0; transform: translate(-90px, 120px) scale(.6) rotate(-14deg); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate(0, 0) scale(1) rotate(-6deg); } }
@keyframes fairyHover { 0%, 100% { opacity: 1; transform: translate(0, 0) rotate(-6deg); } 50% { opacity: 1; transform: translate(4px, -10px) rotate(2deg); } }
.moonpage .m-text { gap: 6px; margin-top: 10px; }
.moonpage .m-range { color: rgba(255, 238, 220, .78); }
.moonpage .m-range b { color: var(--gold-hi); font-family: var(--f-serif); font-size: 1rem; letter-spacing: .1em; }
.moonpage .m-title { font-size: 3.2rem; color: transparent; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 2px 12px rgba(255, 220, 160, .3)); }
.moonpage .m-cap { color: var(--cream); font-size: 1.28rem; text-shadow: 0 2px 14px rgba(20, 8, 20, .45); }
.stage[data-scene^="m"] .nav { background: rgba(255, 255, 255, .16); color: #fff; }
.stage[data-scene^="m"] .hint { color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
@media (max-height: 740px) { .moon-wrap { width: min(54vw, 210px); margin-top: 8px; } .moonpage .m-title { font-size: 2.5rem; } .moonpage .m-cap { font-size: 1.12rem; } .moonpage { gap: 12px; } }
.moonpage { justify-content: center; gap: 14px; }
.moonpage .phases { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 104px); left: 0; right: 0; }
.moon-wrap { width: min(76vw, 310px); margin-top: 30px; }
.moon-shadow { fill: rgba(20, 13, 40, .74); }
.m-fairy { left: -22%; }
.moonpage .m-text { margin-top: 18px; }
@media (max-height: 740px) { .moon-wrap { width: min(60vw, 230px); margin-top: 26px; } }

/* ===== v16: months as full-screen film scenes ===== */
.film { position: absolute; inset: 0; overflow: hidden; background: #1e1418; }
.film-photo, .film-cut { position: absolute; inset: 0; will-change: transform; }
.film-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }
.film-blur { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(28px) saturate(1.15) brightness(.95); transform: scale(1.1); }
.film-cut { display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 80px) 6% 30%; }
.film-cut img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(60, 20, 40, .35)); }
.film-wash { position: absolute; inset: 0; }
.film-wash.w0 { background: radial-gradient(70% 55% at 50% 38%, #fff4f1 0%, #f6cfd2 55%, #d99aa6 100%); }
.film-wash.w1 { background: radial-gradient(70% 55% at 50% 38%, #fff6ec 0%, #f7d6c4 55%, #d9a0a0 100%); }
.film-wash.w2 { background: radial-gradient(70% 55% at 50% 38%, #fbf5ff 0%, #e6d4f0 55%, #b896c4 100%); }
.film-wash.w3 { background: radial-gradient(70% 55% at 50% 38%, #fff9ef 0%, #f3dcc9 55%, #cf9fa4 100%); }
/* slow Ken Burns, a different move each month */
.bg.on .in-l { animation: kbL 8s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .in-r { animation: kbR 8s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .out-c { animation: kbO 8s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .in-u { animation: kbU 8s cubic-bezier(.25, .1, .25, 1) both; }
@keyframes kbL { from { transform: scale(1.04) translate(2%, 0); } to { transform: scale(1.16) translate(-2%, -1%); } }
@keyframes kbR { from { transform: scale(1.04) translate(-2%, 0); } to { transform: scale(1.16) translate(2%, -1%); } }
@keyframes kbO { from { transform: scale(1.2); } to { transform: scale(1.04); } }
@keyframes kbU { from { transform: scale(1.06) translate(0, 2%); } to { transform: scale(1.15) translate(0, -2%); } }
/* gentle cross-dissolve between months */
.bg:has(.film) { transition: opacity 1.4s ease; }
.film-grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 210, 200, .06), rgba(120, 50, 70, .08)); mix-blend-mode: soft-light; }
.film-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 8, 16, .5) 0%, rgba(20, 8, 16, 0) 16%, rgba(20, 8, 16, 0) 50%, rgba(25, 10, 20, .55) 72%, rgba(25, 10, 20, .88) 100%); }
.film-grain { position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.film-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding-bottom: 30%; }
.fe-ic { width: 90px; height: 90px; color: rgba(255, 255, 255, .85); }
.film-empty span { font-family: var(--f-sans); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(90, 40, 55, .7); }
.film-empty .fe-ic { color: rgba(140, 70, 85, .55); }
.bg.on .fe-ic { animation: hover 4s ease-in-out infinite; }
/* text */
.film-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 28px calc(env(safe-area-inset-bottom, 0px) + 84px); display: grid; justify-items: center; text-align: center; gap: 4px; color: #fff; }
.film-count { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: .7rem; letter-spacing: .24em; color: rgba(255, 255, 255, .75); }
.film-count b { font-family: var(--f-serif); font-weight: 500; font-size: 1.05rem; color: #fff; letter-spacing: .08em; }
.film-count span { width: 34px; height: 1px; background: rgba(255, 255, 255, .55); }
.film-title { margin: 0; font-size: 3.6rem; line-height: 1; color: #fff; text-shadow: 0 2px 24px rgba(20, 5, 15, .45); text-wrap: balance; }
.film-range { margin: 2px 0 0; font-family: var(--f-sans); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 236, 225, .78); }
.film-cap { margin: 10px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 1.32rem; line-height: 1.4; color: rgba(255, 248, 244, .95); max-width: 26ch; text-wrap: balance; text-shadow: 0 2px 14px rgba(20, 5, 15, .5); }
.stage[data-scene^="m"] .nav { background: rgba(255, 255, 255, .16); color: #fff; }
.stage[data-scene^="m"] .hint { display: none; }
@media (max-height: 740px) { .film-title { font-size: 2.8rem; } .film-cap { font-size: 1.15rem; } }

/* ===== v17: time-travel — drag to watch Ira grow ===== */
.tt { position: absolute; inset: 0; }
.tt-stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; background: #2a1820; }
.tt-stage:active { cursor: grabbing; }
.tt-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; transform-origin: 50% 40%; }
.tt-layer[data-m="1"] { opacity: 1; }
.tt-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.tt-cut { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 110px) 6% 42%; }
.tt-cut img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(60, 20, 40, .35)); }
.tt .film-scrim { background: linear-gradient(180deg, rgba(20, 8, 16, .55) 0%, rgba(20, 8, 16, 0) 22%, rgba(20, 8, 16, 0) 42%, rgba(25, 10, 20, .6) 62%, rgba(25, 10, 20, .92) 100%); }
.tt .film-empty { padding-bottom: 46%; }
.tt-top { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 92px); left: 0; right: 0; text-align: center; display: grid; gap: 2px; pointer-events: none; color: #fff; }
.tt-top b { font-size: 2rem; font-weight: 400; color: var(--gold-hi); text-shadow: 0 2px 12px rgba(20, 5, 15, .5); }
.tt-top .eyebrow { color: rgba(255, 240, 228, .85); }
.tt-text { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 168px); padding-inline: 28px; display: grid; justify-items: center; text-align: center; gap: 4px; color: #fff; pointer-events: none; }
.tt-text.swap > * { animation: ttSwap .45s var(--ease) both; }
.tt-text.swap > :nth-child(2) { animation-delay: .04s; } .tt-text.swap > :nth-child(3) { animation-delay: .08s; } .tt-text.swap > :nth-child(4) { animation-delay: .12s; }
@keyframes ttSwap { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.tt-text .film-title { font-size: 3.2rem; }
.tt-text .film-cap { min-height: 2.8em; }
.tt-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 34px calc(env(safe-area-inset-bottom, 0px) + 76px); display: grid; justify-items: center; gap: 8px; }
.tt-track { position: relative; width: 100%; height: 44px; touch-action: none; cursor: pointer; outline: none; }
.tt-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255, 240, 220, .3); }
.tt-fill { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: linear-gradient(90deg, #e9c98c, #fff0c4); box-shadow: 0 0 10px rgba(255, 225, 160, .8); }
.tt-bead { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(255, 240, 220, .45); transition: background .2s, transform .2s, box-shadow .2s; }
.tt-bead.on { background: #fff0c4; box-shadow: 0 0 8px rgba(255, 225, 160, .9); transform: scale(1.2); }
.tt-thumb { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #fff7dd, #e7c27c 70%, #b98e44); box-shadow: 0 0 0 4px rgba(255, 240, 200, .25), 0 0 22px rgba(255, 220, 150, .75), 0 6px 14px rgba(0, 0, 0, .35); }
.tt-thumb svg { width: 24px; height: 24px; fill: #fffaf0; filter: drop-shadow(0 1px 1px rgba(120, 80, 30, .5)); }
.tt-track:focus-visible .tt-thumb { outline: 2px solid #fff; outline-offset: 3px; }
.tt-ends { width: 100%; display: flex; justify-content: space-between; font-family: var(--f-sans); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 240, 228, .7); }
.tt-hint { margin: 2px 0 0; font-family: var(--f-sans); font-size: .74rem; letter-spacing: .06em; color: rgba(255, 244, 236, .92); display: flex; align-items: center; gap: 8px; transition: opacity .5s; }
.tt-hint.gone { opacity: 0; }
.tt-hand { display: inline-block; animation: handSlide 1.8s ease-in-out infinite; }
@keyframes handSlide { 0%, 100% { transform: translateX(-6px) rotate(-10deg); } 50% { transform: translateX(10px) rotate(10deg); } }
.tt-next { margin-top: 2px; animation: stepIn .5s var(--ease) both; }
.stage[data-scene="grow"] .nav { background: rgba(255, 255, 255, .16); color: #fff; }
.stage[data-scene="grow"] .hint { display: none; }
@media (max-height: 740px) { .tt-text { bottom: calc(env(safe-area-inset-bottom, 0px) + 150px); } .tt-text .film-title { font-size: 2.5rem; } .tt-text .film-cap { font-size: 1.1rem; } .tt-top b { font-size: 1.6rem; } }
.tt-text { bottom: calc(env(safe-area-inset-bottom, 0px) + 192px); }
.tt-text .film-cap { min-height: 0; }
.tt-top { top: calc(env(safe-area-inset-top, 0px) + 100px); }
@media (max-height: 740px) { .tt-text { bottom: calc(env(safe-area-inset-bottom, 0px) + 176px); } }

/* ===== v18: Ira's picture book ===== */
.pb { position: absolute; inset: 0; overflow: hidden; background: #f6ebe2; }
.pb-art { position: absolute; inset: 0; }
.pb-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.bg.on .pb-art.kb0 img { animation: kbL 9s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .pb-art.kb1 img { animation: kbO 9s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .pb-art.kb2 img { animation: kbR 9s cubic-bezier(.25, .1, .25, 1) both; }
.bg.on .pb-art.kb3 img { animation: kbU 9s cubic-bezier(.25, .1, .25, 1) both; }
.pb-cut { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 90px) 6% 40%; }
.pb-cut img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(60, 20, 40, .3)); }
.bg.on .pb-cut img { animation: breath 2.8s ease-in-out infinite; }
.pb-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 60%, rgba(70, 35, 30, .28) 100%), linear-gradient(180deg, rgba(30, 12, 20, .42) 0%, rgba(30, 12, 20, 0) 16%); }
.pb-gutter { position: absolute; top: 0; bottom: 0; left: 0; width: 26px; pointer-events: none; background: linear-gradient(90deg, rgba(90, 50, 40, .28), rgba(90, 50, 40, 0)); }
.pb-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding-bottom: 36%; }
.pb-paper { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 38%, #fffaf3 0%, #f7e6dc 60%, #ecd2c8 100%);
  -webkit-mask: none; }
.pb-paper::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .85 0 0 0 0 .6 0 0 0 0 .6 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pb-ic { position: relative; width: 84px; height: 84px; color: rgba(162, 87, 95, .55); }
.pb-empty span { position: relative; font-family: var(--f-sans); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(120, 70, 80, .65); }
/* caption card like a picture-book text block */
.pb-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 74px); display: grid; justify-items: center; }
.pb-card { position: relative; width: 100%; max-width: 380px; padding: 18px 22px 20px; text-align: center; border-radius: 22px;
  background: rgba(255, 250, 244, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(180, 138, 74, .35), 0 20px 40px -20px rgba(60, 20, 30, .55); }
.pb-card::before { content: ""; position: absolute; inset: 6px; border-radius: 17px; border: 1px solid rgba(180, 138, 74, .25); pointer-events: none; }
.pb-ch { margin: 0; font-family: var(--f-sans); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.pb-title { margin: 4px 0 2px; font-size: 2.6rem; line-height: 1; color: var(--rose-deep); }
.pb-cap { margin: 6px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 1.18rem; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.pb-page { position: absolute; right: 16px; bottom: 10px; font-family: var(--f-serif); font-size: .8rem; color: var(--gold); }
/* page turn */
.bgs { perspective: 1800px; }
.bg.turn-out { opacity: 1 !important; z-index: 2; transform-origin: 0 50%; animation: pageOut .95s cubic-bezier(.45, .05, .3, 1) forwards; box-shadow: 20px 0 40px rgba(0, 0, 0, .35); }
.bg.turn-back { z-index: 2; transform-origin: 0 50%; animation: pageBack .95s cubic-bezier(.45, .05, .3, 1) both; }
@keyframes pageOut { 0% { transform: rotateY(0); filter: brightness(1); } 100% { transform: rotateY(-105deg); filter: brightness(.6); } }
@keyframes pageBack { 0% { transform: rotateY(-105deg); filter: brightness(.6); } 100% { transform: rotateY(0); filter: brightness(1); } }
.stage[data-scene^="m"] .nav { background: rgba(255, 255, 255, .22); color: #fff; }
.stage[data-scene="menu"] .nav { background: rgba(255, 255, 255, .18); color: #fff; }
@media (max-height: 740px) { .pb-title { font-size: 2.1rem; } .pb-cap { font-size: 1.05rem; } .pb-card { padding: 14px 18px 16px; } }

/* ===== v21: RSVP lives on the party page ===== */
.rsvp-box { width: 100%; max-width: 360px; margin-top: 4px; }
.rsvp-box.pop { animation: rbPop .6s var(--ease); }
@keyframes rbPop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
.rb-ask { display: grid; gap: 10px; padding: 12px 12px 12px; border-radius: 22px; background: linear-gradient(160deg, #fffaf4, #fde8e3); box-shadow: 0 0 0 1px rgba(180, 138, 74, .4), 0 16px 30px -18px rgba(90, 40, 50, .6); }
.rb-q { margin: 0; display: grid; justify-items: center; gap: 2px; padding: 2px 6px 0; }
.rb-q .script { font-size: 2rem; line-height: 1; color: var(--rose-deep); }
.rb-q small { font-family: var(--f-sans); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.rb-btns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.rb-yes, .rb-no { min-height: 50px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-sans); font-size: .82rem; letter-spacing: .04em; cursor: pointer; transition: transform .15s; }
.rb-yes:active, .rb-no:active { transform: scale(.97); }
.rb-yes { border: 0; color: #fff7f2; font-weight: 500; background: linear-gradient(135deg, #b0636b, #8a4450); animation: rbGlow 2.4s ease-in-out infinite; }
@keyframes rbGlow { 0%, 100% { box-shadow: 0 10px 20px -10px rgba(120, 40, 50, .7), 0 0 0 0 rgba(176, 99, 107, .45); } 50% { box-shadow: 0 10px 20px -10px rgba(120, 40, 50, .7), 0 0 0 7px rgba(176, 99, 107, 0); } }
.rb-no { border: 1px solid rgba(180, 138, 74, .6); background: rgba(255, 255, 255, .75); color: var(--ink); }
.rb-done { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 22px; text-align: left; background: #fffdf9; box-shadow: 0 0 0 1px rgba(180, 138, 74, .35), 0 16px 30px -20px rgba(90, 40, 50, .6); }
.rb-done.yes { background: linear-gradient(160deg, #f3fbf6, #e1f2e8); box-shadow: 0 0 0 1px rgba(63, 122, 95, .3), 0 16px 30px -20px rgba(40, 90, 60, .5); }
.rb-tick { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #3f7a5f; color: #fff; font-size: 1.2rem; }
.rb-tick svg { width: 20px; height: 20px; }
.rb-done.no .rb-tick { background: #fbe0de; }
.rb-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.rb-txt b { font-family: var(--f-sans); font-weight: 500; font-size: 1rem; color: var(--ink); }
.rb-txt span { font-family: var(--f-sans); font-size: .82rem; line-height: 1.35; color: var(--ink-soft); }
.rb-change { flex: none; border: 0; border-radius: 999px; padding: 9px 12px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(180, 138, 74, .45); color: var(--rose-deep); font-family: var(--f-sans); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.mini-btn.save { background: #fbe0de; color: #9a3f4b; }
.nav.pulse { animation: navPulse 1.3s ease-in-out infinite; }
@keyframes navPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(176, 99, 107, .55); } 50% { box-shadow: 0 0 0 9px rgba(176, 99, 107, 0); } }
.scene[data-key="party"] .body { gap: 7px; }
.scene[data-key="party"] .cards { margin-top: 6px; }
@media (max-height: 760px) { .rb-q .script { font-size: 1.7rem; } .rb-yes, .rb-no { min-height: 44px; } .scene[data-key="party"] .party-b .count div { padding: 6px 4px 4px; } .party-b .count b { font-size: 1.3rem; } }
/* the RSVP sheet (slides up over the party page, no separate page) */
.rs { position: absolute; inset: 0; z-index: 40; }
.rs-bg { position: absolute; inset: 0; background: rgba(40, 16, 30, .45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s; }
.rs.open .rs-bg { opacity: 1; }
.rs-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(env(safe-area-inset-bottom, 0px) + 22px); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #fffaf5, #fdece6); box-shadow: 0 -20px 50px -20px rgba(40, 16, 30, .55); transform: translateY(105%); transition: transform .45s var(--ease); }
.rs.open .rs-sheet { transform: none; }
.rs-grab { display: block; width: 42px; height: 5px; border-radius: 3px; margin: 0 auto 12px; background: rgba(90, 40, 50, .2); }
.rs .dine-x { width: 34px; height: 34px; background: rgba(162, 87, 95, .1); color: var(--rose-deep); }
.rs-body { color: var(--ink); display: grid; justify-items: center; gap: 10px; text-align: center; }
.rs-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 250px; padding: 4px; border-radius: 999px; background: rgba(162, 87, 95, .1); }
.rs-seg button { min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font-family: var(--f-sans); font-size: .76rem; cursor: pointer; transition: background .25s, color .25s; }
.rs-seg button[aria-checked="true"] { background: #fff; color: var(--rose-deep); font-weight: 500; box-shadow: 0 4px 10px -6px rgba(90, 40, 50, .55); }
.rs-h { margin: 4px 0 0; font-size: 2.4rem; line-height: 1; color: var(--rose-deep); }
.rs-counts { width: 100%; display: grid; gap: 8px; }
.rs-lab { margin: 4px 0 0; font-family: var(--f-sans); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.rs-lab small { letter-spacing: .06em; text-transform: none; opacity: .8; }
.rs-sub { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.12rem; color: var(--ink); }
.rs-body .chips.big { gap: 6px; }
.rs-body .chips.big button { padding: 10px 14px; font-size: .8rem; }
.rs-body .btn.wide { max-width: 320px; margin-top: 4px; }
.rs-body .emo.solo { font-size: 2.6rem; }
.dress-line { margin: 2px 0 0; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; font-family: var(--f-sans); font-size: .84rem; color: var(--ink); }
.dress-line svg { width: 16px; height: 16px; color: #7457a0; }
.dress-line span { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.dress-line b { font-weight: 500; }
@media (max-height: 700px) {
  .scene[data-key="party"] .body { padding-top: calc(env(safe-area-inset-top, 0px) + 74px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); gap: 5px; }
  .scene[data-key="party"] .eyebrow { font-size: .58rem; }
  .party-title .script { font-size: 2rem; } .party-title .first i { font-size: 2.6rem; } .party-title .first sup { font-size: 1rem; margin-top: 2px; } .party-title .bday { font-size: .7rem; margin-top: 2px; }
  .scene[data-key="party"] .pcard { padding: 8px 10px; gap: 10px; } .scene[data-key="party"] .pic { width: 36px; height: 36px; border-radius: 12px; }
  .scene[data-key="party"] .pcard b { font-size: .96rem; }
  .party-b .count { margin-top: 2px; } .party-b .count div { min-width: 46px; padding: 4px 4px 3px; } .party-b .count b { font-size: 1.15rem; } .party-b .count em { font-size: 1.2rem; }
  .rb-ask { padding: 9px; gap: 7px; } .rb-done { padding: 9px 10px; } .rb-txt b { font-size: .92rem; } .rb-txt span { font-size: .76rem; }
}
.stepper .who { color: var(--ink); font-family: var(--f-serif); font-size: 1.15rem; display: block; }

/* ===== v28: "Watch me grow" - night-to-golden-dawn sky, editorial type, no boxes ===== */
/* the sky lives in the scene background so the twinkling stars and sparkles draw over it */
.gw-sky { position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--s1, #1c1030) 0%, var(--s2, #3b1d45) 46%, var(--s3, #2a1224) 100%); }
.gw-sky .glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.gw-sky .g1 { width: 130%; aspect-ratio: 1; left: -40%; top: -10%; background: radial-gradient(circle, var(--l1, rgba(255, 170, 200, .55)) 0%, transparent 62%); animation: skyA 11s ease-in-out infinite alternate; }
.gw-sky .g2 { width: 120%; aspect-ratio: 1; right: -45%; top: 20%; background: radial-gradient(circle, var(--l2, rgba(255, 214, 150, .45)) 0%, transparent 62%); animation: skyB 13s ease-in-out infinite alternate; }
.gw-sky .g3 { width: 110%; aspect-ratio: 1; left: -10%; bottom: -55%; background: radial-gradient(circle, rgba(214, 140, 190, .35) 0%, transparent 60%); animation: skyC 15s ease-in-out infinite alternate; }
.gw-sky .ray { position: absolute; left: 50%; top: 34%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px; opacity: .22;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 200, .5) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 52%); mask: radial-gradient(circle, #000 0%, transparent 52%); animation: spin 90s linear infinite; }
@keyframes skyA { to { transform: translate(34%, 22%) scale(1.1); } }
@keyframes skyB { to { transform: translate(-30%, 18%) scale(.9); } }
@keyframes skyC { to { transform: translate(24%, -20%); } }

.gw { position: absolute; inset: 0; overflow: hidden; }
.gw-pin { position: absolute; inset: 0; }
/* photos: fill the upper part and melt into the sky on every side */
.gw-layers { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 128px); bottom: calc(env(safe-area-inset-bottom, 0px) + 236px);
  -webkit-mask-image: radial-gradient(ellipse 66% 58% at 50% 46%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 66% 58% at 50% 46%, #000 52%, transparent 100%); }
.gw-l { position: absolute; inset: 0; will-change: opacity; }
.gw-wash { display: none; }
.gw-img { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: 50% 28%; display: block; animation: gwDrift 10s ease-in-out infinite alternate; }
@keyframes gwDrift { 0% { transform: translate(-1.5%, 1%); } 100% { transform: translate(1.5%, -1%); } }
.gw-cut { position: absolute; left: 10%; width: 80%; top: 4%; height: 92%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: gwSway 5s ease-in-out infinite; }
.gw-ph { position: absolute; left: 50%; top: 48%; width: 60%; max-width: 250px; translate: -50% -50%; filter: drop-shadow(0 0 30px rgba(255, 200, 220, .35)); animation: gwSway 5s ease-in-out infinite; }
@keyframes gwSway { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.gw-note { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; font-family: var(--f-sans); font-size: .52rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 240, 230, .45); }
.gw-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(55% 40% at 50% 40%, rgba(255, 236, 214, .8) 0%, rgba(255, 210, 220, .3) 50%, transparent 78%); }
/* a soft scrim so the words are always readable, without a box */
.gw-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(24, 6, 18, .55) 45%, rgba(20, 5, 15, .85) 100%); }
.gw-top { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 92px); text-align: center; pointer-events: none; }
.gw-h { margin: 0; font-size: 2.3rem; line-height: 1.05; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }

/* month meter: a fine gold height chart */
.gw-ruler { position: absolute; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 172px); bottom: calc(env(safe-area-inset-bottom, 0px) + 330px); width: 34px; pointer-events: none; }
.gw-rail { position: absolute; right: 6px; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: rgba(255, 240, 225, .22); overflow: hidden; }
.gw-rail i { position: absolute; inset: 0; background: linear-gradient(0deg, #f3b6c0, #f4dfa8); transform-origin: 50% 100%; transform: scaleY(.04); }
.gw-tick { position: absolute; right: 0; width: 15px; height: 0; }
.gw-tick::before { content: ""; position: absolute; right: 3px; top: -.5px; width: 9px; height: 1px; background: rgba(255, 240, 225, .35); }
.gw-tick b { position: absolute; right: 19px; top: 0; translate: 0 -50%; font-family: var(--f-sans); font-weight: 500; font-size: .62rem; color: rgba(255, 240, 225, .45); transition: color .3s, transform .3s; }
.gw-tick.on b { color: rgba(255, 244, 236, .85); }
.gw-tick.now b { color: #f4dfa8; transform: scale(1.3); font-weight: 600; }
.gw-cap-t { position: absolute; right: -2px; top: -24px; font-family: var(--f-sans); font-size: .48rem; letter-spacing: .16em; text-transform: uppercase; color: #e6c98c; white-space: nowrap; }
.gw-star { position: absolute; right: 0; width: 15px; height: 15px; translate: 0 50%; color: #f4dfa8; filter: drop-shadow(0 0 6px rgba(255, 226, 160, .95)); }
.gw-star svg { width: 100%; height: 100%; display: block; }

/* the words: editorial, straight on the sky; layout turns each month (centre / left / right) */
.gw-text { position: absolute; left: 26px; right: 26px; bottom: calc(env(safe-area-inset-bottom, 0px) + 78px); color: #fff4ec; display: grid; gap: 4px; }
.gw-num { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.gw-num b { font-family: var(--f-serif); font-weight: 500; font-size: 3.6rem; line-height: .9; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gw-num small { font-family: var(--f-sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: #e6c98c; }
.gw-text .gw-title { margin: 2px 0 0; font-family: var(--f-script); font-size: 2.5rem; line-height: 1.05; color: #ffe6e0; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.gw-text .gw-cap { margin: 4px 0 0; font-family: var(--f-serif); font-style: italic; font-size: 1.24rem; line-height: 1.4; color: #fff4ec; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.gw-text .gw-date { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-family: var(--f-sans); font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: #e6c98c; }
.gw-text .gw-date::before, .gw-text .gw-date::after { content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, transparent, #e6c98c); }
.gw-text .gw-date::after { background: linear-gradient(90deg, #e6c98c, transparent); }
/* layout 0: centred */
.gw-text.lay-0 { justify-items: center; text-align: center; }
.gw-text.lay-0 .gw-cap { max-width: 28ch; }
/* layout 1: big number on the left, words beside it */
.gw-text.lay-1 { grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; text-align: left; right: 24px; }
.gw-text.lay-1 .gw-num { grid-row: 1 / span 4; flex-direction: column; align-items: center; gap: 2px; padding-right: 16px; border-right: 1px solid rgba(230, 201, 140, .45); align-self: stretch; justify-content: center; }
.gw-text.lay-1 .gw-num b { font-size: 5.4rem; }
.gw-text.lay-1 .gw-date::before { display: none; }
/* layout 2: mirror - words on the left aligned right, number on the right */
.gw-text.lay-2 { grid-template-columns: 1fr auto; column-gap: 16px; align-items: start; text-align: right; }
.gw-text.lay-2 .gw-num { grid-column: 2; grid-row: 1 / span 4; flex-direction: column; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid rgba(230, 201, 140, .45); align-self: stretch; justify-content: center; }
.gw-text.lay-2 .gw-num b { font-size: 5.4rem; }
.gw-text.lay-2 .gw-title, .gw-text.lay-2 .gw-cap, .gw-text.lay-2 .gw-date { grid-column: 1; }
.gw-text.lay-2 .gw-date { justify-content: flex-end; }
.gw-text.lay-2 .gw-date::after { display: none; }
/* entrances: number glides in, title rises, caption appears word by word */
.gw-text.swap .gw-num { animation: gwNumIn .9s var(--ease) both; }
.gw-text.swap.lay-1 .gw-num { animation-name: gwNumL; }
.gw-text.swap.lay-2 .gw-num { animation-name: gwNumR; }
.gw-text.swap .gw-title { animation: gwRise .9s var(--ease) .12s both; }
.gw-text.swap .gw-date { animation: gwRise .8s var(--ease) .5s both; }
.gw-cap .cw { display: inline-block; white-space: pre; }
.gw-text.swap .gw-cap .cw { animation: gwWord .7s var(--ease) both; animation-delay: calc(.25s + var(--i) * 55ms); }
@keyframes gwNumIn { from { opacity: 0; transform: translateY(14px) scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gwNumL { from { opacity: 0; transform: translateX(-24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gwNumR { from { opacity: 0; transform: translateX(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gwRise { from { opacity: 0; transform: translateY(12px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gwWord { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.gw-end { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 0 28px; opacity: 0; pointer-events: none; background: radial-gradient(80% 60% at 50% 50%, rgba(50, 18, 34, .5), rgba(24, 8, 18, .85)); }
.gw-end.live { pointer-events: auto; }
.gw-end-h { margin: 0; font-size: 3.4rem; line-height: 1; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gw-end-t { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--cream); max-width: 26ch; }
.gw-end .step-nav { margin-top: 14px; }
.stage[data-scene="album"] .nav { background: rgba(255, 255, 255, .14); color: #fff; }
.stage[data-scene="album"] .hint { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: rgba(255, 244, 236, .9); font-size: .58rem; letter-spacing: .14em; text-shadow: none; animation: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
@media (max-height: 740px) {
  .gw-layers { top: calc(env(safe-area-inset-top, 0px) + 116px); bottom: calc(env(safe-area-inset-bottom, 0px) + 206px); }
  .gw-ruler { top: calc(env(safe-area-inset-top, 0px) + 156px); bottom: calc(env(safe-area-inset-bottom, 0px) + 290px); }
  .gw-text { bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); }
  .gw-num b { font-size: 3rem; } .gw-text.lay-1 .gw-num b, .gw-text.lay-2 .gw-num b { font-size: 4.4rem; }
  .gw-text .gw-title { font-size: 2.1rem; } .gw-text .gw-cap { font-size: 1.1rem; } .gw-h { font-size: 2rem; }
}

/* ===== v29: stronger, always-on motion; nothing clipped ===== */
.gw-l { will-change: opacity, transform, filter; }
.gw-img { inset: -6%; width: 112%; height: 112%; animation: gwPan 7s ease-in-out infinite alternate; }
@keyframes gwPan { 0% { transform: translate(-3.5%, 2%) rotate(-.8deg); } 100% { transform: translate(3.5%, -2%) rotate(.8deg); } }
.gw-cut, .gw-ph { animation: gwSway2 4.2s ease-in-out infinite; }
@keyframes gwSway2 { 0%, 100% { transform: translate(-6px, 0) rotate(-2deg); } 50% { transform: translate(6px, -14px) rotate(2deg); } }
.gw-sky .g1 { animation-duration: 7s; } .gw-sky .g2 { animation-duration: 8s; } .gw-sky .g3 { animation-duration: 9s; }
.gw-sky .ray { opacity: .3; animation-duration: 45s; }
/* gold-foil text is painted only inside its box, so give script letters room on every side */
.gw-h, .gw-end-h, .gw-num b { padding: .14em .22em .2em; margin: -.14em -.22em -.2em; line-height: 1.15; }
.gw-num b { line-height: 1.05; }
.gw-text .gw-title { padding: .1em .15em .18em; margin-left: -.15em; margin-right: -.15em; line-height: 1.2; overflow: visible; }
.gw-text { overflow: visible; }
.gw-cap .cw { white-space: normal; }
.gw-text.lay-1 .gw-title, .gw-text.lay-2 .gw-title { font-size: 2.2rem; }
@media (max-height: 740px) { .gw-text.lay-1 .gw-title, .gw-text.lay-2 .gw-title { font-size: 1.9rem; } }

/* ===== v30: Gemini-style flowing gradient, a different set of colours every month ===== */
.gw-sky { background: rgb(var(--b, 43, 15, 42)); }
.gw-sky .blob { position: absolute; border-radius: 50%; width: 120%; aspect-ratio: 1; opacity: .95; will-change: transform; }
.gw-sky .a { left: -45%; top: -20%; background: radial-gradient(circle, rgba(var(--c1), .95) 0%, rgba(var(--c1), .45) 35%, rgba(var(--c1), 0) 68%); animation: gemA 9s ease-in-out infinite alternate; }
.gw-sky .b { right: -50%; top: 8%; background: radial-gradient(circle, rgba(var(--c2), .9) 0%, rgba(var(--c2), .4) 35%, rgba(var(--c2), 0) 68%); animation: gemB 11s ease-in-out infinite alternate; }
.gw-sky .c { left: -30%; bottom: -30%; background: radial-gradient(circle, rgba(var(--c3), .9) 0%, rgba(var(--c3), .4) 35%, rgba(var(--c3), 0) 68%); animation: gemC 10s ease-in-out infinite alternate; }
.gw-sky .d { right: -40%; bottom: -40%; width: 100%; background: radial-gradient(circle, rgba(var(--c4), .85) 0%, rgba(var(--c4), .35) 35%, rgba(var(--c4), 0) 68%); animation: gemD 8s ease-in-out infinite alternate; }
.gw-sky .sheen { position: absolute; inset: -30%; background: conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .14) 60deg, rgba(255, 255, 255, 0) 120deg, rgba(255, 255, 255, .1) 220deg, rgba(255, 255, 255, 0) 300deg); animation: spin 18s linear infinite; mix-blend-mode: soft-light; }
@keyframes gemA { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30%, 18%) scale(1.15); } 100% { transform: translate(55%, 40%) scale(.9); } }
@keyframes gemB { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-35%, 25%) scale(.85); } 100% { transform: translate(-20%, 55%) scale(1.1); } }
@keyframes gemC { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40%, -35%) scale(1.2); } 100% { transform: translate(10%, -60%) scale(.95); } }
@keyframes gemD { 0% { transform: translate(0, 0) scale(.9); } 50% { transform: translate(-45%, -30%) scale(1.1); } 100% { transform: translate(-60%, 5%) scale(1); } }
.gw-scrim { height: 50%; background: linear-gradient(180deg, transparent 0%, rgba(10, 4, 12, .45) 45%, rgba(8, 3, 10, .78) 100%); }
/* the stage must never scroll, even when a hidden button keeps focus */
.stage { overflow: hidden; overflow: clip; }
.gw-cap .cw { white-space: nowrap; }

/* ===== v31: text always centred in one place; aurora curtains mixed into the month colours ===== */
.gw-text, .gw-text.lay-0 { left: 22px; right: 22px; justify-items: center; text-align: center; grid-template-columns: none; }
.gw-text .gw-cap { max-width: 30ch; margin-left: auto; margin-right: auto; }
.gw-ruler { bottom: calc(env(safe-area-inset-bottom, 0px) + 340px); }
/* aurora: soft vertical light curtains that ripple and drift, coloured by the month */
.gw-sky .aurora { position: absolute; left: -20%; right: -20%; top: -8%; height: 78%; mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 58%, transparent 100%); }
.gw-sky .au { position: absolute; inset: 0; transform-origin: 50% 0; filter: blur(14px); opacity: .85; }
.gw-sky .a1 { background: repeating-linear-gradient(90deg, rgba(var(--c1), 0) 0px, rgba(var(--c1), .55) 18px, rgba(var(--c3), .25) 34px, rgba(var(--c1), 0) 60px);
  -webkit-mask-image: radial-gradient(70% 60% at 35% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 35% 40%, #000 0%, transparent 75%);
  animation: auWave1 9s ease-in-out infinite alternate, auSlide 14s linear infinite; }
.gw-sky .a2 { background: repeating-linear-gradient(90deg, rgba(var(--c2), 0) 0px, rgba(var(--c2), .5) 22px, rgba(var(--c4), .25) 40px, rgba(var(--c2), 0) 70px);
  -webkit-mask-image: radial-gradient(65% 55% at 70% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(65% 55% at 70% 50%, #000 0%, transparent 75%);
  animation: auWave2 11s ease-in-out infinite alternate, auSlide 18s linear infinite reverse; }
.gw-sky .a3 { background: linear-gradient(100deg, transparent 20%, rgba(var(--c4), .45) 40%, rgba(var(--c3), .35) 55%, transparent 75%);
  filter: blur(24px); animation: auWave3 8s ease-in-out infinite alternate; }
@keyframes auWave1 { 0% { transform: skewX(-14deg) scaleY(.9); } 50% { transform: skewX(8deg) scaleY(1.08); } 100% { transform: skewX(-6deg) scaleY(.95); } }
@keyframes auWave2 { 0% { transform: skewX(12deg) scaleY(1); } 50% { transform: skewX(-10deg) scaleY(.88); } 100% { transform: skewX(6deg) scaleY(1.1); } }
@keyframes auWave3 { 0% { transform: translateX(-18%) skewX(-20deg); } 100% { transform: translateX(18%) skewX(14deg); } }
@keyframes auSlide { from { background-position: 0 0; } to { background-position: 600px 0; } }
/* lighter aurora: no blur filters (keeps slower phones smooth) */
.gw-sky .au { filter: none; opacity: .75; }
.gw-sky .a1 { background: repeating-linear-gradient(90deg, rgba(var(--c1), 0) 0px, rgba(var(--c1), .32) 22px, rgba(var(--c3), .18) 44px, rgba(var(--c1), 0) 70px); }
.gw-sky .a2 { background: repeating-linear-gradient(90deg, rgba(var(--c2), 0) 0px, rgba(var(--c2), .3) 26px, rgba(var(--c4), .16) 50px, rgba(var(--c2), 0) 84px); }
.gw-sky .a3 { filter: none; background: linear-gradient(100deg, transparent 15%, rgba(var(--c4), .28) 38%, rgba(var(--c3), .22) 55%, transparent 80%); }
.gw-l { will-change: opacity, transform; }

/* ===== v32: a clearer, better arranged menu ===== */
.menu-bar { position: sticky; top: 0; z-index: 4; background: rgba(255, 250, 246, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 10px 14px 8px; display: grid; gap: 8px; box-shadow: 0 8px 16px -14px rgba(90, 40, 45, .5); }
.mf-row { display: flex; gap: 6px; }
.mf { flex: 1; min-height: 38px; border-radius: 999px; border: 1px solid rgba(180, 138, 74, .5); background: #fff; color: var(--ink); font-family: var(--f-sans); font-size: .8rem; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.mf.on { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff7f2; }
.mf.on .tag { color: #9fe0b0; border-color: #9fe0b0; }
.mg-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.mg-row::-webkit-scrollbar { display: none; }
.mg { flex: none; padding: 7px 12px; border-radius: 999px; border: 0; background: #f6e7e3; color: var(--rose-deep); font-family: var(--f-sans); font-size: .74rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.m-group { display: flex; align-items: center; gap: 10px; margin: 14px 2px 0; font-family: var(--f-sans); font-weight: 600; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #9a6a3a; scroll-margin-top: 110px; }
.m-group::before, .m-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 138, 74, .6)); }
.m-group::after { background: linear-gradient(90deg, rgba(180, 138, 74, .6), transparent); }
.dine-inner > .m-group:first-child { margin-top: 2px; }
.acc-h { padding: 12px 14px; gap: 12px; }
.acc-ic { width: 42px; height: 42px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: linear-gradient(140deg, #fff6ef, #f8e2dc); box-shadow: inset 0 0 0 1px rgba(180, 138, 74, .25); }
.acc.kids .acc-ic { background: linear-gradient(140deg, #fff8e6, #fde3c8); }
.acc-t b { font-family: var(--f-serif); font-weight: 600; font-size: 1.32rem; line-height: 1.15; color: var(--rose-deep); }
.acc-t small { margin-top: 2px; font-size: .62rem; letter-spacing: .06em; text-transform: none; font-weight: 500; color: #8a6a6e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc.kids { box-shadow: 0 0 0 1.5px rgba(233, 180, 76, .6), 0 10px 22px -16px rgba(160, 110, 40, .55); }
.it { padding: 12px 4px; gap: 12px; }
.it-i b { font-family: var(--f-sans); font-weight: 500; font-size: .98rem; line-height: 1.3; color: var(--ink); }
.it-i small { font-family: var(--f-sans); font-style: normal; font-size: .8rem; line-height: 1.35; color: #8a6f72; }
.it.has { background: #fdf0ed; }
.it.has .it-i b { color: var(--rose-deep); }
/* standard Indian food marks: square with a dot for veg, triangle for non-veg */
.tag { width: 14px; height: 14px; border-width: 1.6px; }
.tag.nonveg::after { width: 0; height: 0; border-radius: 0; background: none; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid currentColor; }
.tag.nonveg { color: #8b3a1e; }
.m-legend { display: flex; justify-content: center; gap: 14px; margin: 10px 0 70px; font-family: var(--f-sans); font-size: .7rem; color: var(--ink-soft); }
.m-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mf-row { padding-right: 46px; }
.acc.solo { margin-top: 8px; scroll-margin-top: 110px; }
.dine-inner > .acc.solo:first-child { margin-top: 0; }
.dine-sheet > .dine-x { background: rgba(94, 42, 53, .88); color: #fff4ef; box-shadow: 0 4px 12px -4px rgba(60, 20, 30, .5), 0 0 0 1px rgba(241, 220, 170, .4); z-index: 8; }

/* the soft vignette is only for full photos; cut-out PNGs keep their own clean edges */
.gw-layers { -webkit-mask-image: none; mask-image: none; }
.gw-img { -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 46%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 62% 56% at 50% 46%, #000 52%, transparent 100%); }
.gw-cut { left: 8%; width: 84%; top: 2%; height: 96%; object-position: 50% 50%; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); }
/* keep feet clear of the month number */
.gw-cut { top: 2%; height: 88%; }
/* Ira peeking over the corner of her letter (cut-out PNG, no frame, no tape on it) */
.note-ira { position: absolute; z-index: 2; top: -46px; right: -18px; width: 118px; transform: rotate(5deg); }
.note-ira img { width: 100%; display: block; filter: drop-shadow(0 10px 14px rgba(60, 20, 30, .35)); animation: gwSway 5s ease-in-out infinite; }
.note-ira .ph { width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #f6cfc6, #e9a9a8); }
.note-ira .cap-hand { position: absolute; left: -30px; right: auto; bottom: 10px; transform: rotate(-10deg); }
@media (max-height: 760px) { .note-ira { width: 96px; top: -36px; } }
/* envelope: the seal sits on the flap tip and the name stays on one line below it, never under the seal */
.seal { top: 45%; width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.seal span { font-size: 2rem; }
.env-addr { bottom: 6%; }
.env-addr .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.9rem; padding-inline: 8%; }
/* envelope: lift "Specially for" and the name up a little, seal nudged up to keep a clear gap */
.seal { top: 41%; }
.env-addr { bottom: 15%; }

/* numbers: digits come from Playfair Display (only 0-9 are loaded), so "1" never looks like "I" */
body { font-variant-numeric: lining-nums; }
.big-one, .party-title .first, .stamp .one, .gw-num b, .count b, .gw-badge b, .pc-stamp b { font-family: "Playfair Display", var(--f-serif); font-variant-numeric: lining-nums; }
/* Ira's letter in Indian languages: a matching handwriting font, a little smaller so the lines still sit on the ruled paper */
.note.lang-hi .hand-h, .note.lang-hi .hand-t, .note.lang-hi .hand-sign { font-family: "Kalam", "Noto Sans Devanagari", var(--f-hand); }
.note.lang-ml .hand-h, .note.lang-ml .hand-t, .note.lang-ml .hand-sign { font-family: "Chilanka", "Noto Sans Malayalam", var(--f-hand); }
.note.lang-te .hand-h, .note.lang-te .hand-t, .note.lang-te .hand-sign { font-family: "Gurajada", "Noto Sans Telugu", var(--f-hand); }
.note.lang-hi .hand-t { font-size: 1.12rem; line-height: 32px; }
.note.lang-ml .hand-t { font-size: 1.02rem; line-height: 32px; }
.note.lang-te .hand-t { font-size: 1.2rem; line-height: 32px; }
.note.lang-hi .hand-h, .note.lang-ml .hand-h, .note.lang-te .hand-h { font-size: 1.7rem; line-height: 1.35; }
.note.lang-ml .hand-h { font-size: 1.45rem; }
.note.lang-hi .hand-sign span, .note.lang-ml .hand-sign span, .note.lang-te .hand-sign span { font-size: 1.15rem; }
.note.lang-hi .hand-sign b, .note.lang-te .hand-sign b { font-size: 1.8rem; }
.note.lang-ml .hand-sign b { font-size: 1.6rem; }
@media (max-height: 760px) { .note.lang-hi .hand-t, .note.lang-te .hand-t { font-size: 1.02rem; line-height: 28px; } .note.lang-ml .hand-t { font-size: .94rem; line-height: 28px; } }
@media (max-height: 700px) {
  .note.lang-ml .hand-t, .note.lang-te .hand-t { font-size: .9rem; line-height: 25px; }
  .note.lang-hi .hand-t { font-size: .98rem; line-height: 27px; }
  .note.lang-ml .hand-h, .note.lang-te .hand-h, .note.lang-hi .hand-h { font-size: 1.3rem; line-height: 1.25; }
  .note.lang-ml .hand-sign b, .note.lang-te .hand-sign b, .note.lang-hi .hand-sign b { font-size: 1.4rem; }
}

/* a long family letter: scroll inside the scene instead of running off the screen */
.scene[data-key="letter"] .body.long { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; padding-top: calc(env(safe-area-inset-top, 0px) + 110px); }
.scene[data-key="letter"] .body.long::-webkit-scrollbar { display: none; }
.scene[data-key="letter"] .body.long .actions { padding-bottom: 8px; }

/* ================= time capsule v3: a crystal snow globe on a gold stand ================= */
.cap-sky { --b: 20, 12, 44; --c1: 120, 92, 230; --c2: 236, 120, 190; --c3: 90, 210, 200; --c4: 255, 200, 140; }
.cap-sky .blob { opacity: .55; }
.cap-sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 46%, rgba(255, 210, 160, .16), transparent 70%), linear-gradient(180deg, rgba(10, 5, 25, .15), rgba(10, 5, 25, .55)); }
#capsuleIn { gap: 10px; --w: clamp(140px, calc((100vh - 500px) * .78), 262px); --w: clamp(140px, calc((100dvh - 500px) * .78), 262px); }
#capsuleIn[data-mode="write"], #capsuleIn[data-mode="sealing"] { --w: clamp(84px, calc((100vh - 560px) * .5), 124px); --w: clamp(84px, calc((100dvh - 560px) * .5), 124px); }
.cap-top { display: grid; gap: 0; }
.cap-top .eyebrow { color: rgba(255, 240, 228, .8); margin: 0; }
.cap-h { margin: 0; font-size: 2.3rem; line-height: 1.05; color: var(--cream); text-shadow: 0 2px 22px rgba(255, 200, 160, .45); }
.scene.on .cap-top { animation: stepIn .9s var(--ease) both; }
#capsuleIn[data-mode="write"] .cap-top, #capsuleIn[data-mode="sealing"] .cap-top { display: none; }

/* globe */
.cg { position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.24); }
.scene.on .cg { animation: cgIn 1.3s cubic-bezier(.2, .9, .25, 1) both; }
#capsuleIn[data-mode="home"] .cg { animation: cgIn .8s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes cgIn { from { opacity: 0; transform: translateY(30px) scale(.8); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.cg-halo { position: absolute; left: -38%; right: -38%; top: -26%; height: 125%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 160, .5), rgba(240, 150, 200, .2) 50%, transparent 100%); animation: cjGlow 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes cjGlow { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
.cg-ball { position: absolute; left: 0; top: 0; width: var(--w); height: var(--w); border-radius: 50%; overflow: hidden; isolation: isolate; z-index: 2;
  background: radial-gradient(circle at 50% 62%, rgba(255, 220, 170, .42) 0%, rgba(240, 160, 205, .2) 38%, rgba(130, 100, 220, .14) 66%, rgba(255, 255, 255, .1) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5), inset -18px -26px 50px rgba(50, 20, 90, .45), inset 14px 18px 40px rgba(255, 255, 255, .16), 0 0 50px rgba(255, 200, 170, .3); }
.cg-inner { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 245, 225, .25), transparent 55%); animation: cjGlow 3.4s ease-in-out infinite; }
.cg-snow { position: absolute; left: 8%; right: 8%; bottom: 6%; height: 26%; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #fff8ec 0%, #f3dcc0 45%, #d8b48a 100%); box-shadow: 0 -6px 20px rgba(255, 230, 190, .55); }
.cg-ira { position: absolute; left: 50%; bottom: 21%; height: 62%; width: auto; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 6px 10px rgba(60, 20, 50, .35)); animation: iraFloat 4.6s ease-in-out infinite; }
@keyframes iraFloat { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-1.5deg); } 50% { transform: translateX(-50%) translateY(-6px) rotate(1.5deg); } }
.cg-orbit { position: absolute; left: 50%; top: 48%; width: 0; height: 0; z-index: 3; }
.cg-orbit .ob { position: absolute; left: 0; top: 0; margin: -11px 0 0 -16px; width: 32px; will-change: transform, opacity; }
.cg-orbit .ob svg { display: block; width: 100%; height: auto; }
.cg-orbit .env svg { filter: drop-shadow(0 2px 4px rgba(40, 10, 30, .35)) drop-shadow(0 0 6px rgba(255, 220, 160, .6)); }
.cg-orbit .star { width: 22px; margin: -11px 0 0 -11px; color: #ffe39c; filter: drop-shadow(0 0 6px rgba(255, 220, 140, 1)); }
.cg-orbit .star.sm { width: 15px; margin: -7px 0 0 -7px; }
.cg-orbit .heart { width: 20px; margin: -10px 0 0 -10px; filter: drop-shadow(0 0 6px rgba(255, 150, 190, .9)); }
.cg-glitter { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.gl { position: absolute; top: -6%; width: var(--s); height: var(--s); border-radius: 50%; background: #ffe7a8; box-shadow: 0 0 6px 1px rgba(255, 220, 140, .9); opacity: 0; animation: glFall var(--t) linear var(--d) infinite; }
@keyframes glFall { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--x), calc(var(--w) * .5)); } 90% { opacity: .9; } 100% { transform: translate(calc(var(--x) * -1), calc(var(--w) * .92)); opacity: 0; } }
.cg-shine { position: absolute; inset: 0; z-index: 6; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 34% 22% at 32% 22%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%), radial-gradient(ellipse 12% 7% at 70% 18%, rgba(255, 255, 255, .45), transparent 70%), radial-gradient(circle at 50% 50%, transparent 62%, rgba(255, 255, 255, .14) 70%, transparent 72%); }
.cg-shine::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 46%, transparent 54%); background-size: 260% 100%; animation: cgSweep 6s ease-in-out infinite; }
@keyframes cgSweep { 0%, 55% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
.cg.shake .cg-ball { animation: cgShake 1.1s cubic-bezier(.36, .07, .19, .97); }
.cg.shake .gl { animation-duration: 1.6s; }
.cg.shake .cg-halo { animation: cgFlash 1.2s ease-out; }
@keyframes cgShake { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-7deg) scale(1.03); } 35% { transform: rotate(6deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } }
@keyframes cgFlash { 0% { opacity: 1; transform: scale(1); } 30% { opacity: 1; transform: scale(1.35); filter: brightness(1.7); } 100% { opacity: .8; transform: scale(1); } }

/* gold stand with an engraved plate */
.cg-stand { position: absolute; left: -9%; right: -9%; top: calc(var(--w) * .8); height: calc(var(--w) * .44); z-index: 3; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.cg-stand svg { display: block; width: 100%; height: 100%; }
.cg-plate { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); display: grid; justify-items: center; line-height: 1.05; color: #4a2c0e; text-shadow: 0 1px 0 rgba(255, 244, 210, .65); white-space: nowrap; }
.cg-plate span { font-family: var(--f-sans); font-size: calc(var(--w) * .028 + 2px); letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.cg-plate b { font-family: var(--f-serif); font-weight: 700; font-size: calc(var(--w) * .056 + 4px); }
#capsuleIn[data-mode="write"] .cg-plate, #capsuleIn[data-mode="sealing"] .cg-plate { display: none; }

/* countdown: little glowing flip tiles */
.cap-home { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 360px; }
.scene.on .cap-home > * { animation: stepIn .7s var(--ease) both; }
.scene.on .cap-home > :nth-child(2) { animation-delay: .2s; } .scene.on .cap-home > :nth-child(3) { animation-delay: .32s; } .scene.on .cap-home > :nth-child(4) { animation-delay: .44s; }
.cap-cd { display: flex; gap: 8px; perspective: 400px; }
.cd-t { position: relative; display: grid; justify-items: center; min-width: 62px; padding: 7px 8px 6px; border-radius: 12px; background: linear-gradient(180deg, rgba(48, 30, 80, .9) 0 50%, rgba(36, 22, 62, .92) 50% 100%); border: 1px solid rgba(241, 220, 170, .4); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.cd-t::after { content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.scene.on .cd-t { animation: flipIn .8s cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: 50% 0; }
.scene.on .cd-t:nth-child(2) { animation-delay: .12s; } .scene.on .cd-t:nth-child(3) { animation-delay: .24s; }
@keyframes flipIn { from { transform: rotateX(-95deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-t b { font-family: "Playfair Display", var(--f-serif); font-size: 1.65rem; font-weight: 600; line-height: 1; background: var(--foil-light); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cd-t small { font-family: var(--f-sans); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 240, 228, .72); margin-top: 4px; }
.cap-sub { margin: 0; font-style: italic; font-size: 1.1rem; line-height: 1.38; color: rgba(255, 244, 236, .92); max-width: 30ch; }
.sealed-count { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(241, 220, 170, .14); border: 1px solid rgba(241, 220, 170, .35); color: var(--gold-hi); font-size: .78rem; margin: 0; }
.sealed-count svg { width: 22px; height: auto; }
.sealed-count.empty { display: none; }
.sealed-count.pop { animation: capPop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes capPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cap-btns { display: grid; justify-items: center; gap: 4px; width: 100%; }
.cap-btns .btn { min-width: 240px; }
.cap-later { background: none; border: 0; padding: 8px 14px; font-family: var(--f-sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 240, 228, .75); cursor: pointer; }

/* writing: a sheet of cream paper under the small globe */
.cap-write { display: none; flex-direction: column; align-items: center; gap: 10px; width: 100%; max-width: 360px; }
#capsuleIn[data-mode="write"] .cap-home, #capsuleIn[data-mode="sealing"] .cap-home { display: none; }
#capsuleIn[data-mode="write"] .cap-write, #capsuleIn[data-mode="sealing"] .cap-write { display: flex; }
#capsuleIn[data-mode="write"] .cap-write { animation: stepIn .5s var(--ease) both; }
.cap-paper { position: relative; width: 100%; padding: 14px 18px 12px 40px; border-radius: 4px; background-color: #fffdf8; background-image: linear-gradient(90deg, transparent 28px, rgba(232, 140, 150, .5) 28px, rgba(232, 140, 150, .5) 29.5px, transparent 29.5px), repeating-linear-gradient(180deg, transparent 0 29px, rgba(120, 150, 200, .22) 29px 30px); box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .55); transform: rotate(-1deg); text-align: left; transition: transform .5s var(--ease), opacity .45s ease; }
.cap-paper.fold { transform: scale(.25, .1) rotate(-6deg); opacity: 0; }
.cp-h { margin: 0; font-family: var(--f-hand); font-size: 1.7rem; line-height: 30px; color: #a2575f; }
#capsuleIn .cap-paper textarea, #capsuleIn .cap-paper textarea:focus { display: block; width: 100%; height: clamp(110px, 22vh, 200px); border: 0; box-shadow: none; border-radius: 0; outline: none; background: transparent; resize: none; padding: 0; font-family: var(--f-hand); font-size: 1.35rem; line-height: 30px; color: #3f3a5a; }
.cap-paper textarea::placeholder { color: #b6a9b8; }
.cp-from { margin: 0; text-align: right; font-family: var(--f-hand); font-size: 1.2rem; line-height: 30px; color: #a2575f; }
.cap-nav { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; width: 100%; }
#capsuleIn[data-mode="sealing"] .rec, #capsuleIn[data-mode="sealing"] .cap-nav, #capsuleIn[data-mode="sealing"] .err { visibility: hidden; }
.cap-fly { position: absolute; left: 0; top: 0; width: 72px; z-index: 60; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(20, 0, 30, .45)); }
.cap-fly.glow { filter: drop-shadow(0 0 10px rgba(255, 220, 150, .95)) drop-shadow(0 0 24px rgba(255, 190, 200, .7)); }
.cap-fly svg { display: block; width: 100%; height: auto; }

@media (max-height: 700px) {
  #capsuleIn { gap: 7px; }
  .cap-h { font-size: 1.8rem; }
  .cap-sub { font-size: .95rem; }
  .cd-t { min-width: 50px; padding: 5px 6px 4px; } .cd-t b { font-size: 1.3rem; }
  .cap-home { gap: 7px; }
  #capsuleIn .cap-paper textarea { height: 96px; }
}
.cg-plate .pl-short { display: none; }
@media (max-height: 700px), (max-width: 340px) { .cg-plate .pl-long { display: none; } .cg-plate .pl-short { display: block; } }
/* inside the globe: a glowing bundle of letters tied with a ribbon (no photo) */
.cg-bundle { position: absolute; left: 50%; bottom: 23%; width: 52%; z-index: 2; transform: translateX(-50%); animation: bundleFloat 4.8s ease-in-out infinite; filter: drop-shadow(0 8px 12px rgba(60, 20, 50, .35)) drop-shadow(0 0 18px rgba(255, 215, 160, .55)); }
.cg-bundle svg { display: block; width: 100%; height: auto; }
.cg-bundle::before { content: ""; position: absolute; left: -30%; right: -30%; top: -40%; bottom: -30%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 230, 180, .65), transparent 100%); animation: cjGlow 3.2s ease-in-out infinite; }
@keyframes bundleFloat { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); } 50% { transform: translateX(-50%) translateY(-8px) rotate(2deg); } }
.cg.shake .cg-bundle { animation: bundleFloat 4.8s ease-in-out infinite, bundleHop .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bundleHop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -14px; } }
.cg-orbit { top: 44%; }
