/* Sashay delight: the same moments as the iPhone app (confetti, sparkles, big gifts, live dot, tilt, cash-out). */

/* confetti canvas over everything */
.dl-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 300; }

/* sparkle bursts */
.dl-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.dl-glint { position: absolute; left: 0; top: 0; width: var(--sz, 14px); height: var(--sz, 14px); margin: calc(var(--sz, 14px) / -2) 0 0 calc(var(--sz, 14px) / -2);
  color: var(--glint, #fff); opacity: 0; animation: dl-pop var(--dur, .8s) ease-out var(--delay, 0s) forwards; }
.dl-glint svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes dl-pop {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s, 1)) rotate(var(--rot, 45deg)); }
}

/* shine sliding across the balance: the light runs through the numbers themselves (text-clipped), never a box */
.dl-shine { background-image: linear-gradient(100deg, #2E2B7C 0%, #2E2B7C 42%, #9C97E8 50%, #2E2B7C 58%, #2E2B7C 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #2E2B7C; animation: dl-sweep 4.5s ease-in-out infinite; }
@keyframes dl-sweep { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }

/* emoji floating up off the card */
.dl-float { position: absolute; bottom: 24px; left: 50%; font-size: 34px; pointer-events: none; z-index: 6;
  animation: dl-float 2.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes dl-float {
  0% { opacity: 0; transform: translate(calc(-50% + var(--x)), 0) scale(.4); }
  12% { opacity: 1; transform: translate(calc(-50% + var(--x)), -20px) scale(1.3); }
  45% { transform: translate(calc(-50% + var(--x) * 1.3), -80px) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * .6), -170px) scale(1); }
}

/* "live" breathing dot */
.dl-live { display: inline-flex; align-items: center; gap: 6px; }
.dl-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hot, #EC4FA6); flex: none; }
.dl-dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--hot, #EC4FA6); opacity: .35; animation: dl-breathe 1.4s ease-out infinite; }
@keyframes dl-breathe { from { transform: scale(.5); opacity: .6; } to { transform: scale(1.25); opacity: 0; } }

/* gradient titles */
.dl-grad { background: linear-gradient(90deg, #2E2B7C, #7A3FA8 55%, #EC4FA6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* fresh gift row and glowing band */
.feed li.new, .ifeed li.new { background: rgba(236,79,166,.07); border-radius: 16px; animation: dl-drop .55s cubic-bezier(.2,.9,.3,1.25); }
.feed li.new .amt, .ifeed li.new .amt { color: var(--hot, #EC4FA6); }
@keyframes dl-drop { from { opacity: 0; transform: translateY(-14px) scale(.92); } to { opacity: 1; transform: none; } }
.ring.dl-glow { animation: dl-bounce 1.2s ease 2; box-shadow: 0 0 14px 3px var(--tz-color, #EC4FA6); }
@keyframes dl-bounce { 0%, 100% { transform: none; } 30% { transform: translateY(-3px) scale(1.2); } 60% { transform: scale(1.08); } }

/* leaderboard bars grow in */
.lb .bar, .ilb .bar { transition: width .7s cubic-bezier(.3,1.3,.4,1); }

/* rotating playful line */
.dl-rotate { display: inline-block; animation: dl-in .4s ease; }
@keyframes dl-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* big gift takes the stage */
.dl-stage { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(46,43,124,.35); animation: dl-fade .25s ease; padding: 20px; }
.dl-stage.out { animation: dl-fadeout .25s ease forwards; }
.dl-bigcard { position: relative; width: min(320px, 100%); padding: 28px; border-radius: 32px; text-align: center; color: #2E2B7C; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #6DCFBE, #EC4FA6 55%, #F4A04E); box-shadow: 0 30px 60px -20px rgba(236,79,166,.6);
  animation: dl-popin .5s cubic-bezier(.2,.9,.3,1.35); }
.dl-bigcard::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: linear-gradient(120deg, #6DCFBE, #EC4FA6, #F4A04E, #B98CEB, #6DCFBE); background-size: 300% 300%; animation: dl-flow 9s ease-in-out infinite alternate; }
@keyframes dl-flow { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.dl-bigcard .e { position: relative; font-size: 64px; line-height: 1.1; }
.dl-bigcard .who { font-weight: 800; font-size: 18px; opacity: .85; margin-top: 8px; }
.dl-bigcard .amt { font-weight: 900; font-size: 64px; letter-spacing: -0.04em; line-height: 1.05; }
.dl-bigcard .for { font-weight: 800; font-size: 18px; margin-top: 4px; }
.dl-bigcard .note { font-style: italic; margin-top: 8px; opacity: .9; }
@keyframes dl-popin { from { opacity: 0; transform: scale(.6) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes dl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dl-fadeout { to { opacity: 0; } }

/* cash-out celebration */
.dl-cash { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; text-align: center; background: rgba(246,244,251,.97); animation: dl-fade .25s ease; padding: 30px; color: #2E2B7C; }
.dl-cash .dest { position: relative; height: 120px; display: grid; place-items: center; font-size: 70px; }
.dl-cash .dest.landed { animation: dl-bounce .5s ease; }
.dl-cash .bill { position: absolute; font-size: 40px; opacity: 0; animation: dl-fly .75s ease-in both; } /* "both": waits up high, ends hidden; never parked on the bank */
@keyframes dl-fly { from { transform: translate(var(--fx), -230px) scale(1); opacity: 1; } to { transform: translate(0, 0) scale(.3); opacity: 0; } }
.dl-cash .big { font-weight: 900; font-size: 56px; letter-spacing: -0.04em; margin-top: 18px; }
.dl-cash .line { font-weight: 800; font-size: 22px; margin-top: 6px; }
.dl-cash .sub { font-weight: 600; color: #6B6896; margin-top: 6px; }
.dl-cash button { margin-top: 22px; min-width: 200px; opacity: 0; transition: opacity .3s; }
.dl-cash.done button { opacity: 1; }

/* tilt (desktop: follows the pointer; phones: follows the phone) */
.dl-tilt { transition: transform .35s cubic-bezier(.2,.8,.3,1); transform-style: preserve-3d; will-change: transform; }

/* tap waves on buttons */
.dl-waves { display: inline-block; width: 12px; height: 18px; margin-left: 8px; vertical-align: -3px; }
.dl-waves path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; animation: dl-wave 1.8s ease-in-out infinite; }
.dl-waves path:nth-child(2) { animation-delay: .3s; } .dl-waves path:nth-child(3) { animation-delay: .6s; }
@keyframes dl-wave { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* party list (test site home) */
.parties li { position: relative; transition: transform .2s, opacity .3s; -webkit-user-select: none; user-select: none; }
.parties li.pressing { transform: scale(.97); }
.parties li.gone { opacity: 0; transform: scale(.85); }
.dl-tile { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(120deg, #6DCFBE, #EC4FA6, #F4A04E, #B98CEB, #6DCFBE); background-size: 300% 300%; animation: dl-flow 9s ease-in-out infinite alternate; }
.dl-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #6B6896; font-weight: 600; flex-basis: 100%; padding-left: 48px; margin-top: -6px; }
.dl-sound { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .dl-shine, .dl-dot::before, .dl-waves path, .dl-tile, .dl-bigcard::before { animation: none; }
  .feed li.new, .ifeed li.new, .ring.dl-glow, .dl-bigcard, .dl-float { animation: none; }
  .dl-tilt { transform: none !important; }
}

/* leaderboard: name on top, a slim bar in the band's color below */
.lb li.dl-lrow, .ilb li.dl-lrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.dl-lmain { min-width: 0; }
.dl-ltop { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; line-height: 1.2; }
.dl-lname { color: #2E2B7C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-bride { font-size: 15px; }
.dl-frozen { font-size: 11px; font-weight: 800; color: #6B6896; }
.dl-lbar { height: 10px; border-radius: 999px; background: #F1EEF9; margin-top: 6px; overflow: hidden; }
.dl-lbar i { display: block; height: 100%; border-radius: 999px; transition: width .7s cubic-bezier(.3,1.3,.4,1), box-shadow .4s; }
.dl-lglow .dl-lbar { overflow: visible; }
.dl-lglow .dl-lbar i { box-shadow: 0 0 10px 2px var(--c); }
.dl-lglow .total { color: #EC4FA6; }
.lb .rank, .ilb .rank { font-size: 15px; }
/* the bride's name glistens */
.dl-glisten { font-weight: 800; background-image: linear-gradient(100deg, #2E2B7C 0%, #2E2B7C 38%, #FFB8DF 46%, #FFF4C2 50%, #FFB8DF 54%, #2E2B7C 62%, #2E2B7C 100%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: dl-glisten 2.6s ease-in-out infinite; }
@keyframes dl-glisten { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
/* notification icon = the giver's emoji */
.push .icon.dl-eicon { background: #FDE7F3; font-family: system-ui, "Apple Color Emoji", sans-serif; font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .dl-glisten { animation: none; } }

/* "+$x tonight" tag: room below the balance; green with money, grey at $0 */
.balance-card .tonight { display: inline-block; margin-top: 16px; transition: background .3s, color .3s; }
.tonight.dl-up { background: #DDF6E7 !important; color: #14804A !important; }
.tonight.dl-zero { background: rgba(255,255,255,.7) !important; color: #8A87A6 !important; }

/* ---- big gift: make it rain (and the spotlight at $250+) ---- */
.dl-rain-stage { background: rgba(0,0,0,.66); transition: background .5s; place-items: center; }
.dl-rain-stage.dark { background: rgba(0,0,0,.84); }
.dl-rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dl-spot { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; }
.dl-spot-light { position: absolute; top: 45%; left: 50%; width: 380px; height: 380px; margin: -190px 0 0 -190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,194,.55), rgba(236,79,166,.18) 45%, transparent 70%); transform: translateX(-90vw); transition: transform 1.1s cubic-bezier(.6,.05,.3,1); }
.dl-spot.on .dl-spot-light { transform: none; }
.dl-spot-name { position: relative; top: -5%; display: grid; justify-items: center; gap: 6px; opacity: 0; transform: scale(.85); transition: opacity .5s .95s, transform .5s .95s cubic-bezier(.3,1.5,.5,1); }
.dl-spot.on .dl-spot-name { opacity: 1; transform: none; }
.dl-spot-script { font-family: Yellowtail, cursive; font-size: clamp(48px, 18vw, 76px); line-height: 1.25; padding: 0 .3em 0 .12em; white-space: nowrap; max-width: 92vw; color: #fff; text-shadow: 0 0 18px rgba(255,209,102,.7);
  background: linear-gradient(100deg, #fff 0%, #fff 38%, #FFB8DF 46%, #FFF4C2 50%, #FFB8DF 54%, #fff 62%, #fff 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: dl-glisten 2.6s ease-in-out infinite; }
.dl-spot-sub { font-weight: 800; font-size: 20px; color: rgba(255,255,255,.9); }
.dl-make-it-rain { position: relative; display: grid; justify-items: center; gap: 0; text-align: center; color: #fff; width: min(340px, calc(100vw - 48px)); box-sizing: border-box;
  padding: 28px 26px; border-radius: 30px; background: rgba(31,27,69,.9); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 40px rgba(0,0,0,.35);
  transition: transform .45s ease-in, opacity .45s ease-in; }
.dl-make-it-rain .e { position: relative; font-size: 80px; line-height: 1; margin-bottom: 14px; animation: dl-dropin .7s cubic-bezier(.3,1.4,.5,1); }
.dl-make-it-rain .amt { font-weight: 900; font-size: clamp(44px, 15vw, 60px); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 12px; }
.dl-make-it-rain .amt.punch { animation: dl-punch .45s cubic-bezier(.3,1.6,.5,1); }
.dl-make-it-rain .who { font-weight: 800; font-size: 19px; line-height: 1.3; }
.dl-make-it-rain .note { font-style: italic; font-size: 16px; opacity: .85; margin-top: 8px; line-height: 1.35; }
.dl-make-it-rain.away { transform: translateY(-32vh) scale(.2); opacity: 0; }
@keyframes dl-dropin { from { transform: translateY(-60vh) rotate(-25deg); } to { transform: none; } }
@keyframes dl-punch { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* twinkling stars in the page background, behind the cards: each lit for a quarter of its cycle, so a couple glow at a time */
.dl-twinkles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dl-twinkles i { position: absolute; opacity: 0; transform: translate(-50%, -50%) scale(.55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0Q9.9 8.1 18 9Q9.9 9.9 9 18Q8.1 9.9 0 9Q8.1 8.1 9 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0Q9.9 8.1 18 9Q9.9 9.9 9 18Q8.1 9.9 0 9Q8.1 8.1 9 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: dl-twinkle 5s ease-in-out infinite; }
@keyframes dl-twinkle { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.55); } 12.5% { opacity: .45; transform: translate(-50%, -50%) scale(1); } 25%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.55); } }
@media (prefers-reduced-motion: reduce) { .dl-twinkles { display: none; } }
