@property --lit { syntax: '<number>'; inherits: true; initial-value: 1; }
:root {
  --bg: #f9f6f1; --card: #fff; --sec: #f0ebe4; --ink: #17120e; --muted: #6f655c;
  --pri: #ef6a22; --pri-d: #d9560f; --acc: #ffb938; --line: rgb(23 18 14 / .11);
  --wa: #1fa855; --r: 1.25rem; --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 14px 34px -18px rgb(0 0 0 / .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 Manrope, system-ui, sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 2rem; }
.wrap { max-width: 72rem; margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 99px; padding: .8rem 1.4rem; font: 700 .95rem/1 Manrope, sans-serif; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.02rem; }
.btn-sm { padding: .6rem 1rem; font-size: .82rem; }
.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 10px 24px -10px var(--pri); }
.btn-primary:hover { background: var(--pri-d); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -12px rgb(0 0 0 / .4); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-glass { background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .2); }
.btn-wa { background: var(--wa); color: #fff; }
.glass { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 1.75rem; box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.6rem); }
.chip { display: inline-block; border: 1px solid rgb(255 255 255 / .45); border-radius: 99px; padding: .3rem .8rem; font-size: .78rem; font-weight: 700; }
.chip-line { border-color: var(--line); }

/* Ribbon + floating UI */
.ribbon { display: flex; justify-content: center; align-items: center; gap: .9rem; flex-wrap: wrap; background: var(--ink); color: #fff; text-decoration: none; font-size: .78rem; padding: .55rem 1rem; text-align: center; }
.ribbon b { color: var(--acc); }
.ribbon u { text-decoration-color: var(--pri); text-underline-offset: 3px; }
.ribbon-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--pri); }
.music { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: .6rem; border-radius: 99px; padding: .75rem 1.1rem; font: 700 .85rem Manrope, sans-serif; cursor: pointer; color: var(--ink); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 30%; background: var(--pri); border-radius: 2px; }
.music.on .eq i { animation: eq .9s ease-in-out infinite alternate; }
.music.on .eq i:nth-child(2) { animation-delay: .15s; } .music.on .eq i:nth-child(3) { animation-delay: .3s; } .music.on .eq i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.wa-float { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgb(31 168 85 / .8); animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(31 168 85 / .5), 0 10px 26px -8px rgb(31 168 85 / .8); } 70%, 100% { box-shadow: 0 0 0 16px rgb(31 168 85 / 0), 0 10px 26px -8px rgb(31 168 85 / .8); } }

/* Splash */
.splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 60%, #ffa62e, #e5571a 50%, #3a160a); color: #fff; text-align: center; padding: 1.5rem; transition: opacity .7s, visibility .7s; }
.splash.gone { opacity: 0; visibility: hidden; }
.splash-in { display: grid; gap: 1rem; justify-items: center; }
.splash-cake { font-size: 4.5rem; animation: bob 2.4s ease-in-out infinite; }
.splash-sub { font-weight: 700; opacity: .85; }
.splash-h { font-size: clamp(2rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; max-width: 14ch; }
.link-quiet { background: none; border: 0; color: rgb(255 255 255 / .8); text-decoration: underline; cursor: pointer; font: 600 .85rem Manrope, sans-serif; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(4deg); } }

/* Hero */
.hero-wrap { padding: .75rem; }
.hero { max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 4.5rem); min-height: calc(100svh - 4.5rem); display: grid; border-radius: 1.75rem; overflow: hidden; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.55fr 1fr; } .hero-wrap { padding: 1.25rem; } }
.stage { position: relative; overflow: hidden; color: #fff; min-height: 34rem; }
.hero-glow { background: radial-gradient(120% 90% at 30% 60%, #ffa62e, #ef6a22 45%, #5a230d 100%); }
.ring { position: absolute; border-radius: 50%; }
.r1 { left: -6rem; top: -6rem; width: 24rem; height: 24rem; border: 48px solid rgb(255 255 255 / .1); animation: spin 60s linear infinite; }
.r2 { right: 2.5rem; bottom: -8rem; width: 28rem; height: 28rem; background: rgb(255 255 255 / .06); animation: breathe 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); } }
.stage-in { position: relative; z-index: 2; height: 100%; min-height: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); }
.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.logo span { opacity: .6; }
.stage-copy { max-width: 28rem; display: grid; gap: 1.5rem; justify-items: start; }
.hero-h { font-size: clamp(3.6rem, 9vw, 7rem); font-weight: 800; line-height: .93; letter-spacing: -.045em; }
.hero-h .w { display: inline-block; animation: drop .9s cubic-bezier(.2, .9, .25, 1.15) both; animation-delay: calc(var(--i) * .14s + .2s); }
@keyframes drop { from { opacity: 0; transform: translateY(-60px) rotate(-6deg); } }
.mini-stats { display: flex; gap: .75rem; }
.mini { width: 8rem; background: #fff; color: var(--ink); border-radius: 1.1rem; padding: 1rem; }
.mini p { font-size: .75rem; font-weight: 700; color: var(--muted); }
.mini b { display: block; margin-top: .8rem; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; }
.portrait { position: absolute; z-index: 1; right: -6%; bottom: 0; width: 82%; height: auto; mix-blend-mode: multiply; pointer-events: none; animation: rise 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 899px) {
  .hero { min-height: 0; }
  .stage { min-height: 48rem; }
  .stage-in { min-height: 48rem; justify-content: flex-start; gap: 1.5rem; }
  .hero-h { font-size: clamp(3.2rem, 17vw, 5rem); }
  /* the portrait sits on the bottom edge of the orange block, centred and large, behind the stat cards */
  .portrait { right: auto; left: 50%; bottom: 0; width: min(135%, 38rem); max-width: none; transform: translateX(-50%); animation: riseM 1.1s .3s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-fallback { right: 50%; transform: translateX(50%); bottom: -6%; font-size: 15rem; }
  .mini-stats { position: absolute; left: clamp(1.5rem, 4vw, 3rem); right: clamp(1.5rem, 4vw, 3rem); bottom: 1.2rem; }
  .mini { flex: 1; width: auto; padding: .8rem .9rem; }
  .mini b { margin-top: .4rem; font-size: 1.5rem; }
}
@keyframes riseM { from { opacity: 0; transform: translate(-50%, 40px); } }
.hero-fallback { position: absolute; z-index: 1; right: -2%; bottom: -12%; font-weight: 800; font-size: clamp(14rem, 34vw, 30rem); line-height: .8; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 3px rgb(255 255 255 / .28); pointer-events: none; }
.panel { background: var(--card); display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: clamp(1.5rem, 4vw, 3rem); }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.2rem; font-size: .9rem; font-weight: 600; }
.nav a { text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav a:hover { border-color: var(--pri); }
.panel-mid { display: grid; gap: 1.2rem; justify-items: start; }
.lede { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.lede em { font-style: normal; color: var(--pri); }
.small { font-size: .88rem; color: var(--muted); }
.quote-card { background: var(--sec); border-radius: 1.2rem; padding: 1.3rem; }
.qc-head { display: flex; gap: .8rem; align-items: center; }
.qc-head small { display: block; color: var(--muted); font-size: .75rem; }
.avatar { width: 3rem; height: 3rem; border-radius: .8rem; background: var(--pri); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; }
.qc-quote { margin-top: 1rem; font: italic 700 1.3rem/1.3 'Playfair Display', Georgia, serif; }
.qc-actions { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; }

/* Stats */
.stats { max-width: 72rem; margin: 1rem auto 0; padding: 2.5rem 1.25rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { border-left: 3px solid var(--pri); padding-left: 1rem; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #22c55e; margin-right: .4rem; animation: ping 2s ease-out infinite; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); }

/* Cake room */
.room { --lit: 1; margin-top: 4.5rem; padding: 5rem 1.25rem 4rem; color: #fff; text-align: center; transition: --lit 1s ease; background: radial-gradient(70% 55% at 50% 52%, rgb(255 140 40 / calc(var(--lit) * .34)), transparent 70%), #17120e; }
.sect-head { max-width: 40rem; margin: 0 auto; display: grid; gap: .6rem; text-align: center; }
.sect-head p { color: var(--muted); }
.sect-head.light p { color: rgb(255 255 255 / .65); }
.cake-stage { max-width: 25rem; margin: 2.5rem auto 0; }
#cake-svg { width: 100%; height: auto; overflow: visible; display: block; }
.cd { cursor: pointer; }
.cd:hover .stick { filter: brightness(1.1); }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flick 1.1s ease-in-out infinite alternate; transition: transform .35s, opacity .35s; }
.cd.out .flame { transform: scale(.1); opacity: 0; animation: none; }
.glowc { transition: opacity .5s; animation: pulse 1.6s ease-in-out infinite alternate; }
.cd.out .glowc { opacity: 0; animation: none; }
@keyframes flick { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(.93, 1.07) rotate(1.5deg); } 100% { transform: scale(1.04, .96) rotate(-1deg); } }
@keyframes pulse { from { opacity: .75; } to { opacity: 1; } }
.smoke { fill: none; stroke: rgb(255 255 255 / .55); stroke-width: 3; stroke-linecap: round; animation: smoke 2.6s ease-out forwards; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes smoke { to { opacity: 0; transform: translateY(-50px) scaleX(1.8); } }
.cake-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2rem; }
.cake-msg { margin-top: 1.1rem; color: rgb(255 255 255 / .7); font-weight: 600; min-height: 1.5em; }
.blowers { max-width: 46rem; margin: 3rem auto 0; }
.blowers h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.muted-d { color: rgb(255 255 255 / .55); }
.bchip { display: inline-flex; align-items: center; gap: .55rem; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); border-radius: 99px; padding: .35rem .9rem .35rem .4rem; font-size: .85rem; font-weight: 600; animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.bchip i { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: linear-gradient(135deg, var(--acc), var(--pri)); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }

/* Sections */
.sec { padding: 5rem 1.25rem 0; }
.sec.slim { padding-top: 3rem; }
.two { max-width: 72rem; margin: 0 auto; display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .two { grid-template-columns: 1fr 1fr; } }
.story p, .orange p { margin-top: 1.2rem; line-height: 1.75; }
.story p { color: var(--muted); }
.orange { background: var(--pri); color: #fff; border: 0; }

/* Gallery */
.deck { position: relative; max-width: 24rem; height: 26rem; margin: 3rem auto 0; touch-action: pan-y; }
.slide { position: absolute; inset: 0; border: 0; padding: 0; overflow: hidden; border-radius: 1.75rem; background: var(--sec); box-shadow: 0 30px 50px -25px rgb(0 0 0 / .45); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s; cursor: pointer; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide span { position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1.1rem; text-align: left; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(0 0 0 / .65)); }
.deck-nav { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 4rem; font-weight: 700; font-size: .85rem; color: var(--muted); }
.grid { max-width: 72rem; margin: 3rem auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
.grid button { padding: 0; border: 0; border-radius: 1rem; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--sec); }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.grid button:hover img { transform: scale(1.08); }

/* Wishes */
.form { max-width: 36rem; margin: 2.5rem auto 0; display: grid; gap: .9rem; }
.form input, .form textarea, .field, .modal-box input { width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid rgb(23 18 14 / .16); border-radius: .9rem; padding: .85rem 1rem; }
.form input:focus, .form textarea:focus, .field:focus, .modal-box input:focus { border-color: var(--pri); outline: 3px solid rgb(239 106 34 / .18); }
.hp { position: absolute !important; left: -9999px; opacity: 0; height: 0; }
.form-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.emojis { display: flex; gap: .2rem; flex-wrap: wrap; }
.emojis button { border: 0; background: none; font-size: 1.4rem; border-radius: 50%; padding: .35rem; cursor: pointer; transition: transform .2s, background .2s; }
.emojis button[aria-checked="true"] { background: rgb(239 106 34 / .2); transform: scale(1.2); }
.err { color: #c0361a; font-size: .85rem; font-weight: 600; min-height: 1.2em; }
.wish-list { margin-top: 3rem; columns: 1; column-gap: 1.2rem; }
@media (min-width: 640px) { .wish-list { columns: 2; } } @media (min-width: 1000px) { .wish-list { columns: 3; } }
.wish { break-inside: avoid; margin-bottom: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.3rem; box-shadow: var(--shadow); animation: pop .6s cubic-bezier(.2, 1.2, .4, 1) both; }
.wish-e { font-size: 2rem; line-height: 1; }
.wish-m { margin-top: .8rem; overflow-wrap: anywhere; }
.wish-by { margin-top: .8rem; font-size: .85rem; font-weight: 700; color: var(--pri); }
.wish-by small { color: var(--muted); font-weight: 500; }
.wish-bar { display: flex; gap: .5rem; margin-top: .9rem; }
.pill { border: 1px solid var(--line); background: none; border-radius: 99px; padding: .35rem .8rem; font: 700 .8rem Manrope, sans-serif; cursor: pointer; color: var(--ink); }
.pill.on { background: rgb(239 106 34 / .12); border-color: var(--pri); color: var(--pri-d); }
.pill.on .h { animation: beat .5s; display: inline-block; }
@keyframes beat { 40% { transform: scale(1.6); } }
.replies { margin-top: .9rem; display: grid; gap: .5rem; }
.reply { background: var(--sec); border-radius: .9rem; padding: .6rem .8rem; font-size: .88rem; overflow-wrap: anywhere; }
.reply b { color: var(--pri-d); }
.rform { display: flex; gap: .4rem; margin-top: .6rem; }
.rform input { flex: 1; min-width: 0; font: inherit; font-size: .88rem; border: 1px solid var(--line); border-radius: 99px; padding: .5rem .8rem; background: none; color: inherit; }

/* Gift */
.gift { max-width: 40rem; margin: 0 auto; display: grid; gap: 1.2rem; }
.num-box { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--sec); border-radius: 1.1rem; padding: 1.1rem 1.2rem; }
.num-box b { display: block; font-size: 1.1rem; }
.num-box span { color: var(--muted); font-size: .9rem; }
.amounts { display: flex; flex-wrap: wrap; gap: .5rem; }
.amounts button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: .6rem 1.1rem; font: 700 .9rem Manrope, sans-serif; cursor: pointer; color: var(--ink); transition: .2s; }
.amounts button[aria-checked="true"] { background: var(--pri); border-color: var(--pri); color: #fff; }
.amounts input { width: 9rem; border: 1px solid var(--line); border-radius: 99px; padding: .6rem 1rem; font: 700 .9rem Manrope, sans-serif; background: none; color: inherit; }
.steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--muted); }
.steps b, .steps a { color: var(--ink); }

/* Ad, footer */
.ad { max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; text-decoration: none; color: #fff; background: radial-gradient(90% 140% at 0 0, #3a2418, var(--ink)); border-radius: 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; }
.ad::after { content: ''; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; border-radius: 50%; border: 36px solid rgb(239 106 34 / .35); }
.ad > * { position: relative; z-index: 1; }
.ad > div { max-width: 36rem; display: grid; gap: .6rem; }
.ad p:last-child { color: rgb(255 255 255 / .7); }
.ad-k { color: var(--acc); font-weight: 700; font-size: .85rem; }
.foot { margin-top: 5rem; border-top: 1px solid var(--line); padding: 3rem 1.25rem 6rem; text-align: center; display: grid; gap: .7rem; justify-items: center; }
.foot-name { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.foot-links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.foot-credit { margin-top: 1.2rem; font-weight: 700; }
.foot-credit a { color: var(--pri-d); }
.foot-small { max-width: 38rem; font-size: .78rem; color: var(--muted); }

/* Modal, lightbox, toast */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgb(23 18 14 / .7); backdrop-filter: blur(6px); padding: 1rem; }
.modal-box { background: var(--card); border-radius: 1.75rem; padding: 2rem; width: min(26rem, 100%); display: grid; gap: .9rem; text-align: center; animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
.modal-emoji { font-size: 3rem; }
.modal-box h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.lb { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; background: rgb(15 10 6 / .94); padding: 1rem; }
.lb figure { margin: 0; text-align: center; max-width: 100%; }
.lb img { max-width: 100%; max-height: 78vh; border-radius: 1.2rem; animation: pop .4s both; }
.lb figcaption { color: #fff; margin-top: .9rem; font-weight: 700; }
.lb-x, .lb-n { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.5rem; cursor: pointer; }
.lb-x { top: 1rem; right: 1rem; } .lb-p { left: .8rem; top: 50%; } .lb-nx { right: .8rem; top: 50%; }
.toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 170; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 99px; font-weight: 700; font-size: .9rem; opacity: 0; pointer-events: none; transition: .3s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Balloons */
.balloons { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.b { position: absolute; bottom: -120px; width: 52px; height: 66px; border-radius: 50% 50% 48% 48%; background: radial-gradient(circle at 30% 26%, rgb(255 255 255 / .6), transparent 34%), var(--c); box-shadow: inset -6px -8px 14px rgb(0 0 0 / .14); pointer-events: auto; cursor: pointer; animation: float var(--d) linear var(--dl) infinite; }
.b::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 46px; background: rgb(23 18 14 / .35); }
.b.pop { animation: burst .25s forwards; pointer-events: none; }
@keyframes float { 0% { transform: translate(0, 0) rotate(-4deg); } 25% { transform: translate(22px, -30vh) rotate(4deg); } 50% { transform: translate(-18px, -65vh) rotate(-4deg); } 75% { transform: translate(18px, -95vh) rotate(4deg); } 100% { transform: translate(0, -135vh) rotate(0); } }
@keyframes burst { to { transform: scale(1.7); opacity: 0; } }

/* Scroll reveal: one calm entrance per block */
[data-r] { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); }
[data-r].in { opacity: 1; transform: none; }

@media (max-width: 560px) { .ribbon span:nth-child(3), .ribbon-sep { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; } [data-r] { opacity: 1; transform: none; } .balloons { display: none; }
}

/* Balloons step back while someone is typing */
body.typing .balloons { opacity: .12; pointer-events: none; transition: opacity .3s; }
.balloons { transition: opacity .3s; }

/* Fireworks canvas */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 155; pointer-events: none; }


/* ---------- v4: downloads, mobile polish ---------- */
.deck-actions { display: flex; justify-content: center; margin-top: 1.2rem; }
.grid .gcell { position: relative; aspect-ratio: 1; border-radius: 1rem; overflow: hidden; background: var(--sec); }
.grid .gcell button { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.gdl { position: absolute; right: .45rem; bottom: .45rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); color: var(--ink); text-decoration: none; font: 800 1.15rem/1 Manrope, sans-serif; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .5); transition: transform .2s, background .2s; }
.gdl:hover { transform: scale(1.1); background: var(--pri); color: #fff; }
.lb figure { display: grid; justify-items: center; gap: .2rem; }
.lb-dl { margin-top: .9rem; }
.lb-p, .lb-nx { transform: translateY(-50%); }
.lb img { max-height: 72vh; max-height: 72svh; }
@media (max-width: 560px) {
  .lb-n { width: 2.6rem; height: 2.6rem; top: auto; bottom: 1.1rem; transform: none; }
  .lb-p { left: 1rem; } .lb-nx { right: 1rem; }
  .stat:last-child { grid-column: 1 / -1; }
  .rform input, .amounts input, .form input, .form textarea, .field, .modal-box input { font-size: 16px; } /* stops iOS zooming into fields */
  .rform { flex-wrap: wrap; } .rform input:nth-child(2) { flex-basis: 100%; order: 3; } .rform button { margin-left: auto; }
  .num-box .btn { width: 100%; }
  .cake-actions .btn { flex: 1 1 100%; }
  .music { padding: .65rem .9rem; }
  .qc-actions .btn { flex: 1; }
}
