/* =========================================================
   Bùi Thỏ · Bunny Pastel Pop Design Tokens
   ========================================================= */
:root {
  --ink: #6b3a4f;
  --ink-soft: #8c5a70;
  --paper: #fffdf9;
  --cream: #fff0f5;
  --white: #ffffff;

  --red: #f0608f;
  --orange: #ff9e80;
  --sun: #ffd98a;
  --green: #8fdcb8;
  --teal: #a6e3e9;
  --blue: #8f8cf0;
  --purple: #b58df0;
  --pink: #ff8fb8;

  --rainbow: linear-gradient(90deg, var(--red), var(--pink), var(--purple), var(--blue), var(--teal), var(--sun));
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Patrick Hand', 'Nunito', cursive;

  --line: 3px solid var(--ink);
  --pop: 0 5px 0 var(--ink);
  --pop-sm: 0 3px 0 var(--ink);
  --radius: 22px;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff6f9;
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; height: 100svh; }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

.is-left { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; color: var(--ink);
  background: var(--bg); border: var(--line); border-radius: 999px; box-shadow: var(--pop);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sun { --bg: var(--sun); color: var(--ink); }
.btn-pink { --bg: var(--red); color: var(--white); }
.btn-purple { --bg: var(--blue); color: var(--white); }
.btn-ghost { --bg: var(--white); }
.btn-lg { min-height: 56px; padding: 12px 26px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-link {
  background: none; border: 0; box-shadow: none; text-decoration: underline; text-underline-offset: 4px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem; min-height: 44px;
}
.btn-link:hover, .btn-link:active { transform: none; box-shadow: none; }

.icon-btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  background: var(--white); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* =========================================================
   CẢNH 1 — Spider-Verse Intro (Tươi sáng & Rực rỡ)
   ========================================================= */
.intro {
  --hy: 62vh;
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, .32) 1.8px, transparent 1.9px) 0 0 / 20px 20px,
    radial-gradient(circle at 50% var(--hy), rgba(255, 244, 214, .95) 0%, rgba(255, 179, 204, .55) 38%, transparent 70%),
    linear-gradient(180deg, #f7c6e0 0%, #ffd9ec 35%, #fff0f5 var(--hy), #ffd3e6 100%);
}
.sky { position: absolute; inset: 0; pointer-events: none; }
.intro-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .22; mix-blend-mode: screen; filter: saturate(1.5) brightness(1.15);
}
.sky-rays {
  position: absolute; left: 50%; top: var(--hy); width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .58) 0deg 6deg, rgba(255, 217, 138, 0) 6deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 12%, transparent 56%);
          mask: radial-gradient(circle, #000 0 12%, transparent 56%);
  animation: spin 90s linear infinite;
}
.sky-cloud { position: absolute; color: rgba(255, 255, 255, .94); filter: drop-shadow(0 4px 0 rgba(11, 14, 23, .22)); }
.sky-cloud--a { width: 120px; height: 68px; left: -24px; top: 9vh; animation: drift 26s ease-in-out infinite alternate; }
.sky-cloud--b { width: 96px; height: 54px; right: -14px; top: 30vh; animation: drift 22s ease-in-out infinite alternate-reverse; }
.sky-cloud--c { width: 70px; height: 40px; left: 12%; top: calc(var(--hy) - 22vh); opacity: .9; animation: drift 30s ease-in-out infinite alternate; }

.land { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.land-sun { transform-box: fill-box; transform-origin: center; animation: sunRise 2.2s var(--ease-out) both; }
.land-rainbow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawArc 2.4s var(--ease-out) forwards; }
.land-road-lane { animation: fadeIn 1.4s ease both; }
.entrance-web circle { transform-box: fill-box; transform-origin: center; }

.sparkles { position: absolute; inset: 0; }
.sparkle {
  position: absolute; width: var(--s, 14px); height: var(--s, 14px); color: var(--c, #fff);
  animation: twinkle var(--d, 2.4s) ease-in-out var(--delay, 0s) infinite;
}

.loader {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; z-index: 4;
  padding: var(--gutter); text-align: center; transition: opacity .5s ease, transform .5s ease;
  background: rgba(11, 18, 42, .78); color: var(--white); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.loader.is-done { opacity: 0; transform: scale(.94); pointer-events: none; }
.loader-feet { display: flex; gap: 14px; height: 54px; align-items: flex-end; }
.loader-foot { width: 30px; height: 46px; color: var(--red); opacity: 0; animation: stepIn 1.6s ease-in-out infinite; }
.loader-foot:nth-child(2) { color: var(--blue); animation-delay: .2s; margin-bottom: 10px; }
.loader-foot:nth-child(3) { color: var(--sun); animation-delay: .4s; }
.loader-foot:nth-child(4) { color: var(--pink); animation-delay: .6s; margin-bottom: 10px; }
.loader-foot--l { transform: scaleX(-1); }
.loader-bar {
  width: min(260px, 70vw); height: 16px; padding: 3px; border: 3px solid var(--white); border-radius: 99px; background: var(--ink);
}
.loader-bar span {
  display: block; height: 100%; width: 8%; border-radius: 99px; background: var(--rainbow);
  transition: width .4s var(--ease-out);
}
.loader-text { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--sun); }

/* Tiêu đề: ô chữ dán sticker Comic + dải ruy băng Spider-Man */
.intro-content {
  position: absolute; left: 0; right: 0; top: max(4vh, env(safe-area-inset-top)); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter); text-align: center; pointer-events: none;
}
.intro-eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 16px;
  font-weight: 800; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--sun); border: var(--line); border-radius: 99px; box-shadow: var(--pop-sm);
  animation: popIn .6s var(--ease-bounce) both;
}
.intro-title { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--font-display); }
.intro-tiles { display: flex; flex-wrap: nowrap; justify-content: center; gap: clamp(3px, 1vw, 8px); }
.intro-tile {
  display: grid; place-items: center; width: 1.08em; height: 1.18em; padding-top: .08em;
  font-size: clamp(2.1rem, 10.5vw, 4.1rem); font-weight: 800; line-height: 1; color: var(--white);
  background: var(--c); border: 3px solid var(--ink); border-radius: .22em; box-shadow: 0 5px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  transform: rotate(var(--r)) translateY(var(--ty));
  animation: tileDrop .7s var(--ease-bounce) calc(.15s + var(--i) * .08s) both, tileFloat 3.2s ease-in-out calc(1s + var(--i) * .2s) infinite;
}
.intro-tile--gap { width: .28em; background: none; border: 0; box-shadow: none; animation: none; }
.intro-ribbon {
  position: relative; margin-top: 16px; padding: 0 22px; transform: rotate(-2deg);
  animation: popIn .7s var(--ease-bounce) .8s both;
}
.intro-ribbon > span {
  position: relative; z-index: 1; display: block; padding: 8px 20px 10px;
  font-weight: 800; font-size: clamp(1.1rem, 5vw, 1.65rem); line-height: 1.1; color: var(--white);
  background: var(--red); border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 var(--ink);
  -webkit-text-stroke: 1px rgba(11, 14, 23, .6); white-space: nowrap;
}
.intro-ribbon::before, .intro-ribbon::after {
  content: ''; position: absolute; top: 12px; width: 36px; height: 100%;
  background: #c23c6a; border: 3px solid var(--ink);
}
.intro-ribbon::before { left: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.intro-ribbon::after { right: 0; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.intro-guest {
  margin: 16px 0 0; padding: 4px 18px 6px; max-width: 100%;
  font-family: var(--font-hand); font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.2;
  background: rgba(255, 255, 255, .95); border: var(--line); border-radius: 16px; box-shadow: var(--pop-sm);
  transform: rotate(1.5deg); overflow-wrap: anywhere;
  animation: popIn .6s var(--ease-bounce) .95s both;
}
.intro-guest strong { color: var(--red); font-weight: 400; }
.intro-hint {
  display: inline-flex; align-items: center; gap: 8px; max-width: 320px; margin: 18px auto 0; padding: 8px 14px;
  font-weight: 800; font-size: .95rem; line-height: 1.3; color: var(--ink);
  background: rgba(255, 255, 255, .95); border: var(--line); border-radius: 18px; box-shadow: var(--pop-sm);
  animation: popIn .6s var(--ease-bounce) 1.1s both, bob 2.4s ease-in-out 1.7s infinite;
}
.intro-hint-foot { width: 22px; height: 32px; color: var(--red); flex: none; }

.intro-field { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.foot-btn {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w, 52px); height: calc(var(--w, 52px) * 1.5); margin: calc(var(--w, 52px) * -.75) 0 0 calc(var(--w, 52px) * -.5);
  padding: 0; border: 0; background: none; color: var(--c); pointer-events: auto;
  transform: rotate(var(--r, 0deg)) scaleX(var(--flip, 1));
  -webkit-tap-highlight-color: transparent;
  animation: footDrop .7s var(--ease-bounce) var(--delay, 0s) both;
}
.foot-btn svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 4px 0 rgba(11, 14, 23, .9));
  animation: footBreath 2.6s ease-in-out calc(var(--delay, 0s) + .7s) infinite;
  transition: transform .2s var(--ease-bounce);
}
.foot-btn:hover svg, .foot-btn:focus-visible svg { transform: scale(1.22); }
.foot-btn::after {
  content: ''; position: absolute; inset: -14%; border-radius: 50%;
  border: 3px dashed currentColor; opacity: 0; animation: ripple 2.6s ease-out calc(var(--delay, 0s) + 1s) infinite;
}
.foot-btn.is-chosen svg { animation: stamp .5s var(--ease-bounce) forwards; }
.foot-walk {
  position: absolute; width: 34px; height: 52px; margin: -26px 0 0 -17px; color: var(--c);
  filter: drop-shadow(0 3px 0 rgba(11, 14, 23, .9));
  pointer-events: none; opacity: 0; animation: walkStep .9s ease forwards;
}

.burst {
  position: fixed; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 60;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle,
    #fff 0 15%, var(--sun) 15% 28%, var(--red) 28% 44%, var(--pink) 44% 58%,
    var(--purple) 58% 72%, var(--blue) 72% 86%, var(--ink) 86% 100%);
}

/* ---------- Music ---------- */
.music-btn {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 40;
  display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 12px;
  background: var(--white); border: var(--line); border-radius: 99px; box-shadow: var(--pop-sm);
}
.music-note { width: 22px; height: 22px; color: var(--red); }
.music-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.music-bars i { width: 3px; height: 4px; border-radius: 2px; background: var(--ink); }
.music-btn[aria-pressed='true'] .music-bars i { animation: eq .9s ease-in-out infinite; background: var(--red); }
.music-btn[aria-pressed='true'] .music-bars i:nth-child(2) { animation-delay: .2s; background: var(--blue); }
.music-btn[aria-pressed='true'] .music-bars i:nth-child(3) { animation-delay: .4s; background: var(--sun); }
.music-btn[aria-pressed='false'] { opacity: .85; }
.music-btn[aria-pressed='false'] .music-note { color: var(--ink-soft); }

/* =========================================================
   Hành trình chính
   ========================================================= */
.journey { position: relative; overflow-x: clip; }
.scene { position: relative; padding: 72px var(--gutter) 56px; overflow-x: clip; }
.scene-head { max-width: 900px; margin: 0 auto 28px; text-align: center; }
.scene-head h2 {
  margin: 8px 0 6px; font-family: var(--font-display); font-weight: 800; line-height: 1.15;
  font-size: clamp(1.35rem, 5vw, 2.6rem); white-space: nowrap;
}
.scene-head p { margin: 0; color: var(--ink-soft); font-weight: 700; }
.scene-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; color: var(--c);
  background: var(--white); border: var(--line); border-radius: 50%; box-shadow: var(--pop-sm);
}
.scene-badge svg { width: 26px; height: 38px; }
.scene-cta { display: flex; justify-content: center; margin-top: 28px; }

/* Thanh điều hướng Huy hiệu Nhện */
.trail-nav {
  position: fixed; right: 8px; top: 50%; z-index: 30; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; padding: 8px 5px;
  background: rgba(255, 255, 255, .9); border: 2px solid var(--ink); border-radius: 99px;
  box-shadow: var(--pop-sm);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.trail-nav a { display: grid; place-items: center; width: 26px; height: 32px; color: #e3c3d1; transition: color .3s, transform .3s var(--ease-bounce); }
.trail-nav a:nth-child(even) svg { transform: scaleX(-1); }
.trail-nav svg { width: 16px; height: 24px; }
.trail-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.trail-nav a.is-active { color: var(--c, var(--red)); transform: scale(1.28); }
.trail-nav a.is-done { color: var(--ink-soft); }
.trail-nav a[data-nav='invite'] { --c: var(--red); }
.trail-nav a[data-nav='letter'] { --c: var(--pink); }
.trail-nav a[data-nav='wishes'] { --c: var(--blue); }
.trail-nav a[data-nav='rsvp'] { --c: var(--purple); }

/* Dải Huy hiệu Nhện nối giữa các cảnh */
.trail { position: relative; height: 210px; margin: -30px auto; max-width: 420px; pointer-events: none; z-index: 1; }
.trail-step {
  position: absolute; width: 26px; height: 40px; margin: -20px 0 0 -13px; color: var(--c);
  opacity: 0; transform: translateY(8px) rotate(var(--r)) scale(.6);
}
.trail-step svg { width: 100%; height: 100%; }
.trail.is-walking .trail-step { animation: trailIn .5s var(--ease-bounce) calc(var(--i) * .16s) forwards; }

/* =========================================================
   CẢNH 2 — Thiệp mời Spider-Verse
   ========================================================= */
.scene-invite {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 92px; overflow: hidden;
  background:
    radial-gradient(rgba(255, 42, 133, .16) 1.8px, transparent 1.9px) 0 0 / 22px 22px,
    radial-gradient(95% 60% at 50% 0%, rgba(255, 215, 0, .65), rgba(255, 208, 0, 0) 72%),
    radial-gradient(60% 50% at 95% 30%, rgba(0, 229, 255, .38), transparent 70%),
    radial-gradient(60% 50% at 5% 65%, rgba(255, 90, 160, .32), transparent 70%),
    linear-gradient(180deg, #f5a9c8 0%, #ffcfe1 32%, #fff0f6 68%, #fff3e0 100%);
}
.invite-sky { position: absolute; inset: 0; pointer-events: none; }
.invite-glow {
  position: absolute; left: 50%; top: -260px; width: 620px; height: 620px; margin-left: -310px;
  background: repeating-conic-gradient(rgba(255, 255, 255, .65) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 64%); mask: radial-gradient(circle, #000 0 18%, transparent 64%);
  animation: spin 70s linear infinite;
}
.invite-sun {
  position: absolute; right: 7%; top: 70px; width: 84px; height: 84px; color: var(--sun);
  filter: drop-shadow(0 0 18px rgba(230, 36, 41, .45)); animation: spin 26s linear infinite;
}
.invite-cloud { position: absolute; color: #fff; }
.invite-cloud--a { width: 120px; height: 68px; left: 4%; top: 120px; animation: drift 24s ease-in-out infinite alternate; }
.invite-cloud--b { width: 90px; height: 50px; right: 10%; bottom: 18%; animation: drift 20s ease-in-out infinite alternate-reverse; }

.invite-card {
  position: relative; z-index: 2; width: min(100%, 460px); margin-top: 40px;
  padding: 64px 26px 30px; text-align: center;
  background:
    radial-gradient(circle at 12% 88%, rgba(230, 36, 41, .12) 0 64px, transparent 65px),
    radial-gradient(circle at 92% 78%, rgba(0, 102, 204, .12) 0 50px, transparent 51px),
    var(--paper);
  border: var(--line); border-radius: 30px; box-shadow: 0 8px 0 var(--ink), 0 24px 50px rgba(11, 14, 23, .22);
  transform-origin: 50% 100%;
  transition: transform .25s ease-out;
}
.invite-card.is-tilting {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .08s linear;
}
.invite-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 27px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(255, 255, 255, .55), rgba(0, 229, 255, .15) 38%, rgba(255, 42, 133, .12) 65%, transparent 80%);
  transition: opacity .3s ease;
}
.invite-card.is-tilting::after { opacity: 1; }
.invite-card::before {
  content: ''; position: absolute; inset: 10px; border: 2px dashed rgba(11, 14, 23, .28); border-radius: 22px; pointer-events: none;
}
.invite-card-rainbow {
  position: absolute; left: 50%; top: -58px; width: 210px; height: 112px; transform: translateX(-50%);
  filter: drop-shadow(0 4px 0 rgba(11, 14, 23, .25));
}
.invite-eyebrow {
  display: inline-block; margin: 0 0 8px; padding: 4px 14px;
  font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--red); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 2px 0 var(--ink);
}
/* Ảnh chính: khung vòm Spider-Verse + Hiệu ứng Spider-Sense */
.invite-hero { position: relative; width: min(86%, 330px); margin: 18px auto 12px; cursor: pointer; }
.spider-sense-rays {
  position: absolute; inset: -16px -22px; width: calc(100% + 44px); height: calc(100% + 32px);
  pointer-events: none; z-index: 3; overflow: visible;
}
.sense-bolt {
  fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 2px 0 var(--ink));
  opacity: .55; animation: sensePulse 2.2s ease-in-out infinite;
}
.sense-bolt--2, .sense-bolt--5 { stroke: var(--red); animation-delay: .4s; }
.sense-bolt--3, .sense-bolt--6 { stroke: var(--teal); animation-delay: .8s; }
.comic-pop {
  position: absolute; z-index: 4; padding: 3px 10px;
  font-family: var(--font-display); font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  color: var(--fg, var(--ink)); background: var(--bg, var(--sun));
  border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink);
  pointer-events: none; opacity: 0; transform: scale(.4);
  transition: opacity .25s ease, transform .35s var(--ease-bounce);
}
.comic-pop--tl { left: -18px; top: 8%; --rot-p: -12deg; }
.comic-pop--tr { right: -20px; top: -4%; --rot-p: 10deg; }
.comic-pop--br { right: -14px; bottom: 6%; --rot-p: -8deg; }
.invite-hero:hover .comic-pop,
.invite-hero.is-tingling .comic-pop {
  opacity: 1; transform: scale(1) rotate(var(--rot-p, -8deg));
}
.invite-hero.is-tingling .invite-hero-frame {
  animation: senseShake .45s ease-in-out;
}
.invite-hero.is-tingling .sense-bolt {
  opacity: 1; stroke-width: 5.2;
}
.invite-hero-frame {
  position: relative; aspect-ratio: 4 / 5; padding: 9px;
  background: conic-gradient(from 200deg, var(--red), var(--sun), var(--blue), var(--teal), var(--purple), var(--pink), var(--red));
  border: 3px solid var(--ink); border-radius: 999px 999px 26px 26px;
  box-shadow: 0 7px 0 var(--ink), 0 18px 36px rgba(11, 14, 23, .24);
  transform: rotate(-1.5deg);
}
.invite-hero-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  background: #ffe9f1; border: 3px solid var(--ink); border-radius: 999px 999px 18px 18px;
}
.invite-hero-sun {
  position: absolute; right: -16px; top: 10%; width: 64px; height: 64px; color: var(--sun);
  filter: drop-shadow(0 3px 0 var(--ink)); animation: spin 22s linear infinite;
}
.invite-hero-star { position: absolute; left: -14px; top: 28%; width: 42px; height: 42px; color: var(--red); animation: bob 2.8s ease-in-out infinite; }
.invite-hero-spark { position: absolute; color: var(--sun); animation: twinkle 2.6s ease-in-out infinite; }
.invite-hero-spark--a { left: 4%; top: -4px; width: 22px; height: 22px; }
.invite-hero-spark--b { right: 6%; bottom: 16%; width: 18px; height: 18px; color: var(--teal); filter: drop-shadow(0 0 2px var(--ink)); animation-delay: 1.2s; }
.invite-hero-feet {
  position: absolute; left: -10px; bottom: -14px; display: flex; gap: 4px; padding: 6px 9px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 99px; transform: rotate(-8deg); box-shadow: var(--pop-sm);
}
.invite-hero-feet svg { width: 15px; height: 23px; color: var(--c); }
.invite-hero-feet svg:first-child { margin-top: 4px; }
.invite-hero-empty {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  background:
    radial-gradient(circle at 50% 108%, #fff 0 22%, transparent 22.5%),
    repeating-radial-gradient(circle at 50% 108%, #f0608f 0 8%, #8f8cf0 8% 16%, #ffd98a 16% 24%, #ff8fb8 24% 32%, #b58df0 32% 40%, #fff0f5 40% 100%);
  border: 3px solid var(--ink); border-radius: 999px 999px 18px 18px;
}
.invite-hero-empty-cap {
  width: 46%; aspect-ratio: 1; margin-top: -8%; padding: 6%; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink);
}
.invite-hero-empty-feet { position: absolute; bottom: 9%; display: flex; gap: 6px; }
.invite-hero-empty-feet svg { width: 18px; height: 28px; color: var(--c); }
.invite-hero-empty-feet svg:first-child { margin-top: 8px; }

.invite-guest { margin: 4px 0 0; font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink-soft); }
.invite-guest strong { color: var(--red); font-weight: 400; }
.invite-host { margin: 6px 0 0; font-family: var(--font-display); line-height: 1.05; }
.invite-host-prefix {
  display: inline-block; margin-bottom: 4px; padding: 2px 12px; font-size: 1rem; font-weight: 800; letter-spacing: .1em;
  color: var(--white); background: var(--blue); border: 2px solid var(--ink); border-radius: 10px; transform: rotate(-4deg);
}
.invite-host-name {
  display: block; font-weight: 800; font-size: clamp(1.38rem, 5.8vw, 2.15rem); letter-spacing: -.01em;
  white-space: nowrap;
  background: linear-gradient(90deg, #f0608f, #ff8fb8, #b58df0, #8f8cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 4px 0 2px;
}
.invite-event {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
}
.invite-event svg { width: 30px; height: 30px; color: var(--red); }

.invite-info { display: grid; gap: 12px; margin: 0 0 22px; text-align: left; }
.invite-info-row {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px;
}
.invite-info dt { display: grid; place-items: center; }
.invite-info dt svg { width: 44px; height: 44px; padding: 10px; border: 2px solid var(--ink); border-radius: 14px; }
.invite-info-row--time dt svg { background: var(--sun); color: var(--ink); }
.invite-info-row--place dt svg { background: #f9c4da; color: var(--ink); }
.invite-info dt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.invite-info dd { margin: 0; display: grid; line-height: 1.35; }
.invite-info dd strong { font-family: var(--font-display); font-size: 1.25rem; }
.invite-info dd > span { color: var(--ink-soft); font-size: .95rem; font-weight: 600; }

.invite-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.invite-card-feet { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.invite-card-feet svg { width: 18px; height: 28px; color: var(--c); }
.invite-card-feet svg:nth-child(odd) { margin-top: 8px; }

[data-reveal] { opacity: 0; transform: translateY(14px); }
.is-revealed [data-reveal] { animation: rise .6s var(--ease-out) calc(var(--ri, 0) * 90ms + .35s) forwards; }

.next-step {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 30px;
  text-decoration: none; font-weight: 800;
}
.next-step-feet { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.next-step-feet svg { width: 18px; height: 28px; color: var(--red); animation: stepDown 1.6s ease-in-out infinite; }
.next-step-feet svg:last-child { color: var(--blue); margin-left: 18px; animation-delay: .4s; }

/* =========================================================
   CẢNH 3 — Nhật ký Người Nhện
   ========================================================= */
.scene-letter {
  background:
    radial-gradient(45% 35% at 0% 12%, rgba(255, 64, 129, .24), transparent 70%),
    radial-gradient(45% 35% at 100% 42%, rgba(0, 200, 255, .28), transparent 70%),
    radial-gradient(45% 35% at 8% 82%, rgba(255, 212, 0, .35), transparent 70%),
    linear-gradient(180deg, #fff3e0 0%, #ffeaf2 48%, #ffe6f2 100%);
}
.paper {
  position: relative; max-width: 680px; margin: 0 auto; padding: 56px 26px 34px;
  background: radial-gradient(rgba(0, 102, 204, .15) 1.5px, transparent 1.6px) 0 0 / 22px 22px, var(--paper);
  border: var(--line); border-radius: 10px 26px 10px 26px; box-shadow: 0 8px 0 var(--ink), 0 22px 40px rgba(11, 14, 23, .14);
}
.paper::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 8px 23px 0 0; background: var(--rainbow);
  border-bottom: 2px solid var(--ink);
}
.paper-rainbow { position: absolute; right: -14px; top: -40px; width: 120px; height: 64px; transform: rotate(12deg); }
.paper-sun { position: absolute; left: -22px; top: -26px; width: 64px; height: 64px; color: var(--sun); animation: spin 30s linear infinite; }
.paper-flower { position: absolute; width: 46px; height: 46px; }
.paper-flower--a { right: 14px; bottom: -20px; color: var(--red); }
.paper-flower--b { left: -14px; top: 30%; color: var(--pink); }
.paper-leaf { position: absolute; width: 34px; height: 34px; color: var(--teal); }
.paper-leaf--a { right: 52px; bottom: -14px; transform: rotate(40deg); }
.paper-leaf--b { left: 6px; top: calc(30% + 40px); transform: rotate(-80deg); }
.paper-star { position: absolute; right: -12px; top: -16px; width: 40px; height: 40px; color: var(--sun); stroke: var(--ink); stroke-width: 1.4; animation: twinkle 3s ease-in-out infinite; }
.paper--end { margin-top: 36px; padding-top: 40px; }
.paper-title {
  margin: 0 0 16px; font-family: var(--font-display); font-weight: 800; line-height: 1.2;
  font-size: clamp(.95rem, 3.2vw, 1.48rem); color: var(--ink); white-space: nowrap;
}
.paper-title::after { content: ''; display: block; width: 96px; height: 6px; margin-top: 8px; border-radius: 6px; background: var(--rainbow); }
.paper-body { font-family: var(--font-hand); font-size: 1.32rem; line-height: 1.6; }
.paper-body > * { margin: 0 0 1em; opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.paper-body > .is-in { opacity: 1; transform: none; }
.paper-body > :last-child { margin-bottom: 0; }

.letter-memory {
  position: relative; padding: 14px 18px 14px 22px; font-size: 1.38rem;
  background: rgba(255, 255, 255, .82); border-radius: 4px 18px 18px 4px;
}
.letter-memory::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 4px; background: linear-gradient(180deg, var(--red), var(--pink), var(--purple), var(--blue), var(--teal));
}
.letter-callout {
  position: relative; margin-top: 1.6em !important; padding: 26px 20px 18px; text-align: center; font-size: 1.42rem; line-height: 1.5;
  background: #ffeed6; border: 3px solid var(--ink); border-radius: 22px; box-shadow: var(--pop);
}
.letter-callout-sun {
  position: absolute; left: 50%; top: -26px; width: 50px; height: 50px; margin-left: -25px; color: var(--sun);
  filter: drop-shadow(0 2px 0 var(--ink)); animation: spin 24s linear infinite;
}
.letter-info {
  display: grid; gap: 10px; margin-top: 1.4em !important; padding: 14px;
  background: var(--white); border: 3px dashed rgba(11, 14, 23, .35); border-radius: 22px;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.45;
}
.letter-info-row {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; margin: 0;
  padding: 8px 10px; border-radius: 14px; background: #fff3f7;
}
.letter-info-icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); }
.letter-info-label { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.letter-info-value { font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.paper-body .letter-info a {
  display: inline-block; margin: 2px 0; padding: 1px 10px; text-decoration: none; word-break: break-all;
  color: var(--ink); background: #fbdcea; border: 2px solid var(--ink); border-radius: 99px;
}
.paper-body .letter-info a[href^='tel:'] { background: #ffd3e6; word-break: normal; white-space: nowrap; }
.letter-closing {
  margin-top: 1.6em !important; padding-top: 18px; text-align: center; font-size: 1.55rem; line-height: 1.45; color: var(--red);
  border-top: 3px dotted rgba(11, 14, 23, .28);
}
.letter-closing-heart { display: block; width: 30px; height: 30px; margin: 10px auto 0; color: var(--red); animation: bob 2.4s ease-in-out infinite; }
.paper--end .paper-feet { justify-content: center; }
.paper-body a { color: var(--blue); font-weight: 700; word-break: break-all; text-decoration-thickness: 2px; }
.paper-body a[href^='tel:'] { color: var(--red); word-break: normal; }
.gallery-lead {
  margin: 26px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 6vw, 1.9rem);
  text-align: center; color: var(--red);
}
.paper-feet { display: flex; justify-content: flex-end; gap: 6px; margin-top: 14px; }
.paper-feet svg { width: 20px; height: 30px; color: var(--c); }
.paper-feet svg:first-child { margin-top: 10px; }

/* Bộ sưu tập ảnh scrapbook */
.scrapbook { max-width: 1080px; margin: 34px auto 0; display: flex; align-items: flex-start; gap: 14px; }
.scrapbook-col { flex: 1 1 0; min-width: 0; }
.scrapbook-col:nth-child(even) { padding-top: 26px; }
@media (min-width: 720px) { .scrapbook { gap: 24px; } }

.polaroid {
  --rot: 0deg;
  position: relative; display: block; width: var(--w, 100%); margin: 18px 0 18px var(--mx, 0);
  padding: 8px 8px 34px; break-inside: avoid;
  background: var(--white); border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 0 5px 0 rgba(11, 14, 23, .95), 0 14px 26px rgba(11, 14, 23, .16);
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
  transform-origin: 50% -10px;
  opacity: 0; transform: translateY(30px) rotate(0deg) scale(.9);
  transition: opacity .6s ease var(--delay, 0s), transform .45s var(--ease-bounce) var(--delay, 0s);
}
.polaroid.is-in { opacity: 1; transform: rotate(calc(var(--rot) + var(--polaroid-swing, 0deg))); }
.polaroid.is-in:hover { transform: rotate(0deg) scale(1.04) translateY(-3px); z-index: 2; transition-delay: 0s; }
.polaroid img { width: 100%; height: auto; background: #fff0f5; border-radius: 2px; }
.polaroid-caption {
  position: absolute; left: 8px; right: 54px; bottom: 5px;
  font-family: var(--font-hand); font-weight: 700; font-size: .98rem; line-height: 22px;
  color: var(--ink); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.polaroid::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 74px; height: 22px; margin-left: -37px;
  background: var(--tape, rgba(230, 36, 41, .78)); transform: rotate(var(--tape-r, -3deg));
  border-left: 2px dashed rgba(255, 255, 255, .7); border-right: 2px dashed rgba(255, 255, 255, .7);
}
.polaroid--empty { aspect-ratio: 4 / 5; cursor: default; display: grid; place-items: center; }
.polaroid--empty .empty-fill {
  width: 100%; height: 100%; border-radius: 2px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd9e4, #ffe9f1 60%, #ffeed6);
}
.polaroid--empty svg { width: 30px; height: 46px; color: rgba(11, 14, 23, .3); }

.sticker {
  display: grid; place-items: center; break-inside: avoid; margin: 10px 0; height: 70px; pointer-events: none;
}
.sticker svg { width: 56px; height: 56px; color: var(--c); filter: drop-shadow(0 3px 0 rgba(11, 14, 23, .85)); animation: bob 3.2s ease-in-out infinite; }
.sticker--rainbow svg { width: 96px; height: 52px; filter: none; }
.sticker--foot svg { width: 34px; height: 52px; }

/* =========================================================
   CẢNH 4 — Hộp thư bí mật NGL (Spider-Sense Secret Drop)
   ========================================================= */
.scene-wishes {
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 212, 0, .34), transparent 70%),
    radial-gradient(50% 40% at 95% 60%, rgba(0, 210, 255, .26), transparent 70%),
    linear-gradient(180deg, #ffe6f2 0%, #ffe4ee 48%, #ffefd2 100%);
}
.ngl-box {
  max-width: 580px; margin: 0 auto; position: relative;
}
.ngl-card, .ngl-success {
  position: relative; padding: 32px 24px 28px;
  background: var(--paper); border: var(--line); border-radius: 28px;
  box-shadow: 0 8px 0 var(--ink), 0 20px 42px rgba(11, 14, 23, .18);
}
.ngl-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.ngl-avatar {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center;
  background: var(--red); border: 2px solid var(--ink); border-radius: 18px;
  box-shadow: var(--pop-sm); color: var(--white);
}
.ngl-avatar svg { width: 28px; height: 28px; transform: rotate(180deg); }
.ngl-badge {
  display: inline-block; padding: 2px 10px; font-size: .74rem; font-weight: 800; letter-spacing: .08em;
  color: var(--white); background: var(--ink); border-radius: 99px; margin-bottom: 4px;
}
.ngl-prompt {
  margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; line-height: 1.2;
}
.ngl-field {
  position: relative; margin-bottom: 18px;
}
.ngl-field textarea {
  width: 100%; min-height: 120px; padding: 14px 16px 28px;
  font-family: var(--font-hand); font-size: 1.28rem; line-height: 1.5;
  color: var(--ink); background: var(--white);
  border: var(--line); border-radius: 18px; outline: none;
  box-shadow: inset 0 2px 4px rgba(11, 14, 23, .06);
  transition: box-shadow .2s;
}
.ngl-field textarea:focus {
  box-shadow: 0 0 0 4px rgba(230, 36, 41, .28);
}
.ngl-counter {
  position: absolute; right: 14px; bottom: 10px; font-size: .8rem; font-weight: 800; color: var(--ink-soft);
}
.ngl-clue-row {
  margin-bottom: 14px; display: grid; gap: 6px;
}
.ngl-clue-label {
  font-weight: 800; font-size: .92rem; color: var(--ink);
}
.ngl-select, .ngl-custom-name input {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .96rem; font-weight: 700;
  color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 14px;
  outline: none; box-shadow: var(--pop-sm);
}
.ngl-custom-name { margin-bottom: 18px; }
.ngl-submit {
  box-shadow: var(--pop);
}
.ngl-success {
  text-align: center; padding: 36px 20px; animation: popIn .5s var(--ease-bounce);
}
.ngl-success-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 50%;
  color: var(--red); box-shadow: var(--pop-sm); animation: bob 2.6s ease-in-out infinite;
}
.ngl-success-icon svg { width: 36px; height: 36px; }
.ngl-success-title {
  margin: 0 0 10px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--red);
}
.ngl-success-desc {
  margin: 0 auto 22px; max-width: 440px; font-weight: 700; font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft);
}

/* =========================================================
   Hộp thoại
   ========================================================= */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(11, 14, 23, .68); backdrop-filter: blur(4px); }
.sheet {
  width: min(100% - 24px, 480px); max-height: calc(100svh - 24px); overflow: auto;
  padding: 30px 22px 24px; background: var(--paper); border: var(--line); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
}
.sheet[open] { animation: sheetIn .45s var(--ease-bounce); }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.sheet-title { margin: 0 44px 4px 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.sheet-sub { margin: 0 0 18px; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }

.wish-view { text-align: center; padding-top: 0; overflow: hidden; }
.wish-view-head {
  margin: 0 -22px 20px; padding: 22px 0 16px; background: var(--c, var(--red)); border-bottom: var(--line);
}
.wish-view-foot { width: 44px; height: 68px; color: var(--white); filter: drop-shadow(0 3px 0 var(--ink)); }
.wish-view-message {
  margin: 0 0 14px; font-family: var(--font-hand); font-size: 1.4rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.wish-view-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--blue); }
.wish-view-name::before { content: '— '; }
.wish-view-note { margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }
.wish-view-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; font-weight: 800; }
.wish-view .sheet-close { background: var(--white); }

.wish-sent { text-align: center; padding: 10px 0; }
.wish-sent-foot { width: 52px; height: 82px; color: var(--red); margin: 0 auto 10px; animation: stamp .7s var(--ease-bounce) both; filter: drop-shadow(0 4px 0 var(--ink)); }
.wish-sent .sheet-title { margin-right: 0; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; overflow: hidden;
  background: rgba(11, 14, 23, .95); display: none;
}
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .25s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox-figure {
  margin: 0; padding: 70px 12px 104px; width: 100%; height: 100%; overflow: hidden;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
}
.lightbox-figure img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border: 8px solid var(--white); border-bottom-width: 30px; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  animation: popIn .35s var(--ease-bounce);
  cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1); will-change: transform;
}
.lightbox-figure.is-zoomed img { cursor: grab; }
.lightbox-figure.is-dragging img { transition: none; }
.lightbox-figure.is-zoomed.is-dragging img { cursor: grabbing; }
.lightbox-count {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; padding: 4px 12px;
  border-radius: 999px; background: rgba(11, 14, 23, .75); color: var(--white); font-weight: 800;
}
.lightbox-caption {
  position: absolute; bottom: max(74px, calc(env(safe-area-inset-bottom) + 64px)); left: 50%; transform: translateX(-50%);
  z-index: 2; margin: 0; padding: 4px 16px; max-width: calc(100vw - 32px);
  font-family: var(--font-hand); font-weight: 700; font-size: 1.25rem; color: var(--ink);
  background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.lightbox-caption:empty { display: none; }
.lightbox-web-corner {
  position: absolute; width: 76px; height: 76px; color: rgba(255, 255, 255, .42);
  pointer-events: none; z-index: 0; transform-origin: top left;
}
.lightbox-web-corner svg { width: 100%; height: 100%; }
.lightbox-web-corner--tl { top: 0; left: 0; }
.lightbox-web-corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.lightbox-web-corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.lightbox-web-corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.lightbox-web-corner.is-shot svg { animation: webCornerShoot .45s var(--ease-bounce) both; }
.lightbox-close, .lightbox-zoom { position: absolute; top: 12px; z-index: 1; }
.lightbox-close { right: 12px; }
.lightbox-zoom { left: 12px; }
.lightbox-zoom[aria-pressed="true"] { background: var(--sun); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; margin-top: -23px; z-index: 1; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.is-zoomed ~ .lightbox-prev, .is-zoomed ~ .lightbox-next { opacity: .35; }
@media (min-width: 760px) {
  .lightbox-prev { left: 20px; }
  .lightbox-next { right: 20px; }
}

/* Thả cảm xúc cho ảnh */
.reaction-bar {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1;
  display: flex; gap: 4px; padding: 6px; max-width: calc(100vw - 24px);
  background: var(--white); border: var(--line); border-radius: 999px; box-shadow: var(--pop-sm);
}
.reaction-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 3px;
  min-width: 46px; height: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-weight: 800; font-size: .85rem; color: var(--ink); cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-bounce); -webkit-tap-highlight-color: transparent;
}
.reaction-btn:hover { transform: translateY(-3px); }
.reaction-btn.is-mine { background: #ffe3e6; box-shadow: inset 0 0 0 2px var(--red); }
.reaction-emoji { font-size: 1.35rem; line-height: 1; }
.reaction-count:empty { display: none; }
.reaction-btn.is-pop .reaction-emoji { animation: stamp .45s var(--ease-bounce); }
.reaction-fly {
  position: absolute; left: 50%; top: 0; font-size: 1.6rem; pointer-events: none;
  animation: reactionFly .9s ease-out both;
}
.reaction-error {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 700;
}
@media (max-width: 420px) {
  .reaction-bar { gap: 0; padding: 4px; }
  .reaction-btn { min-width: 40px; padding: 0 5px; }
  .reaction-emoji { font-size: 1.2rem; }
}
@keyframes reactionFly {
  from { opacity: 1; transform: translate(-50%, 0) scale(.6); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -120px) scale(1.3); }
}

.polaroid-reactions {
  position: absolute; right: 10px; bottom: 5px; font-size: .78rem; font-weight: 800; line-height: 20px; color: var(--ink);
}
.polaroid-reactions:empty { display: none; }
.polaroid-reactions.is-mine { color: var(--red); }

/* =========================================================
   Form
   ========================================================= */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 800; font-size: .98rem; display: flex; justify-content: space-between; gap: 8px; }
.field small { font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: var(--line); border-radius: 16px; outline: none;
  transition: box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(230, 36, 41, .28); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0 0 14px; padding: 10px 14px; font-weight: 700; font-size: .95rem;
  background: #ffe1e3; border: 2px solid var(--red); border-radius: 14px;
}

/* =========================================================
   CẢNH 5 — Lời hẹn & Spider-Pass
   ========================================================= */
.scene-rsvp {
  padding-bottom: 40px;
  background:
    radial-gradient(50% 45% at 100% 12%, rgba(255, 56, 120, .28), transparent 70%),
    radial-gradient(50% 45% at 0% 62%, rgba(0, 195, 255, .28), transparent 70%),
    linear-gradient(180deg, #ffefd2 0%, #ffd9ec 48%, #ffe3ee 100%);
}
.rsvp-card, .rsvp-done {
  position: relative; max-width: 520px; margin: 0 auto; padding: 46px 22px 26px;
  background: var(--paper); border: var(--line); border-radius: 28px; box-shadow: 0 8px 0 var(--ink), 0 22px 44px rgba(11, 14, 23, .16);
}
.rsvp-card-rainbow { position: absolute; left: 50%; top: -40px; width: 150px; height: 80px; transform: translateX(-50%); }

.rsvp-when {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin: 0 0 18px;
}
.rsvp-when > span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px;
  font-weight: 800; font-size: .88rem; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px;
}
.rsvp-when svg { width: 16px; height: 16px; color: var(--red); }

.rsvp-choices { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.rsvp-choices legend { padding: 0; margin-bottom: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-align: center; width: 100%; }
.rsvp-choice-grid { display: grid; gap: 10px; }
.choice { position: relative; display: block; --tint: var(--white); --deep: var(--ink); }
.choice--yes { --tint: #ffe2e4; --deep: var(--red); }
.choice--maybe { --tint: #ffeef4; --deep: var(--blue); }
.choice--no { --tint: #f6ecff; --deep: var(--purple); }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.choice-face {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 44px 10px 12px;
  font-weight: 800; font-size: 1.02rem; line-height: 1.25;
  background: var(--white); border: var(--line); border-radius: 18px; box-shadow: var(--pop-sm);
  transition: background .2s, transform .25s var(--ease-bounce), box-shadow .2s;
}
.choice-art {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: var(--tint); border: 2px solid var(--ink); border-radius: 14px;
  transition: transform .35s var(--ease-bounce);
}
.choice-icon { width: 30px; height: 30px; }
.choice--yes .choice-icon { color: var(--red); }
.choice--no .choice-icon { width: 32px; height: 20px; color: #b58a9e; }
.choice--maybe .choice-icon { width: 34px; height: 20px; }
.choice-check {
  position: absolute; right: 12px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  padding: 4px; color: var(--white); background: var(--deep); border: 2px solid var(--ink); border-radius: 50%;
  transform: scale(0); transition: transform .3s var(--ease-bounce);
}
.choice:hover .choice-face { transform: translateY(-1px); }
.choice input:checked + .choice-face { background: var(--tint); transform: translateY(-3px); box-shadow: var(--pop); }
.choice input:checked + .choice-face .choice-art { transform: rotate(-8deg) scale(1.08); background: var(--white); }
.choice input:checked + .choice-face .choice-check { transform: scale(1); }
.choice input:focus-visible + .choice-face { outline: 3px dashed var(--red); outline-offset: 3px; }
.rsvp-choice-grid:has(input:checked) .choice input:not(:checked) + .choice-face { opacity: .62; box-shadow: none; }

@media (min-width: 520px) {
  .rsvp-choice-grid { grid-template-columns: repeat(3, 1fr); }
  .choice, .choice-face { height: 100%; }
  .choice-face { flex-direction: column; justify-content: flex-start; text-align: center; gap: 10px; padding: 16px 10px 14px; }
  .choice-art { width: 58px; height: 58px; border-radius: 18px; }
  .choice-icon { width: 38px; height: 38px; }
  .choice--no .choice-icon { width: 42px; height: 26px; }
  .choice--maybe .choice-icon { width: 44px; height: 26px; }
  .choice-check { top: 8px; right: 8px; margin-top: 0; }
}

.rsvp-note {
  position: relative; margin: 0 0 18px; padding: 18px 16px 4px;
  background: var(--white); border: 2px dashed rgba(11, 14, 23, .35); border-radius: 20px;
}
.rsvp-note::before {
  content: ''; position: absolute; left: 50%; top: -9px; width: 64px; height: 18px; margin-left: -32px;
  background: rgba(230, 36, 41, .8); border-radius: 4px; transform: rotate(-3deg);
}
.rsvp-note textarea {
  font-family: var(--font-hand); font-size: 1.2rem; line-height: 32px; padding-top: 2px; padding-bottom: 2px;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(0, 102, 204, .18) 31px 32px) var(--white);
  background-attachment: local;
}

.rsvp-done { text-align: center; padding-top: 34px; animation: popIn .6s var(--ease-bounce); }
.rsvp-done:focus { outline: none; }
.rsvp-done-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3.8vw, 1.55rem); line-height: 1.2; white-space: nowrap; }
.rsvp-done-text { margin: 0 0 20px; font-weight: 600; color: var(--ink-soft); }
.rsvp-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }

.ticket {
  display: grid; grid-template-columns: 1fr 74px; text-align: left;
  background: var(--white); border: var(--line); border-radius: 20px; box-shadow: var(--pop); overflow: hidden;
}
.ticket-main { padding: 16px 16px 14px; border-right: 3px dashed var(--ink); position: relative; }
.ticket-main::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--rainbow); }
.ticket-kicker { margin: 6px 0 2px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ticket-host { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0; }
.ticket-grid dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-grid-wide { grid-column: 1 / -1; }
.ticket-grid dd { margin: 0; font-weight: 800; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.ticket-status {
  display: inline-block; margin: 12px 0 0; padding: 2px 12px; font-weight: 800; font-size: .85rem;
  background: var(--sun); border: 2px solid var(--ink); border-radius: 99px;
}
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: repeating-linear-gradient(135deg, #ffd98a 0 10px, #ffc66b 10px 20px);
}
.ticket-stub svg { width: 28px; height: 44px; color: var(--red); filter: drop-shadow(0 2px 0 var(--ink)); }
.ticket-no { writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 800; letter-spacing: .1em; }

/* Kết */
.finale {
  position: relative; padding: 30px var(--gutter) 70px; text-align: center;
  background: linear-gradient(180deg, #ffe3ee 0%, #ffe3f0 50%, #ffeab8 100%);
}
.finale-feet { display: flex; justify-content: center; gap: 12px; }
.finale-feet svg { width: 20px; height: 30px; color: var(--c); }
.finale-feet svg:nth-child(odd) { margin-top: 10px; }
.finale-sun { width: 90px; height: 90px; margin: 12px auto 4px; color: var(--sun); filter: drop-shadow(0 0 20px rgba(230, 36, 41, .5)); animation: spin 24s linear infinite; }
.finale-line { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5.4vw, 1.8rem); line-height: 1.25; }
.finale-contact { margin: 14px 0 0; font-weight: 700; color: var(--ink-soft); }
.finale-zalo-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  font-family: var(--font-body); font-weight: 800; font-size: .98rem;
  color: var(--white) !important; background: #b36bd6; text-decoration: none;
  border: 2px solid var(--ink); border-radius: 99px; box-shadow: var(--pop-sm);
  transition: transform .2s var(--ease-bounce), box-shadow .2s ease;
}
.finale-zalo-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--pop);
}
.finale-zalo-link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--ink);
}

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }

/* Nhện leo dọc theo mép trái màn hình khi cuộn trang (Scroll Progress Spider) */
.scroll-spider {
  position: fixed; left: 14px; top: 0; z-index: 35; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
}
.scroll-spider-thread {
  width: 2.5px; height: var(--len, 8vh);
  background: linear-gradient(180deg, rgba(11, 14, 23, .3), rgba(11, 14, 23, .92));
  box-shadow: 0 0 2px rgba(255, 255, 255, .9);
  transition: height .12s ease-out;
}
.scroll-spider-body {
  width: 44px; height: 64px; margin-top: -10px; color: var(--red);
  filter: drop-shadow(0 3px 0 var(--ink));
  transform-origin: top center;
  transition: transform .25s var(--ease-bounce);
}
.scroll-spider-body svg {
  width: 100%; height: 100%; transform: rotate(180deg);
}
.scroll-spider.is-climbing .scroll-spider-body {
  animation: spiderClimbSway .28s ease-in-out infinite alternate;
}
@keyframes spiderClimbSway {
  from { transform: rotate(-14deg) scale(1.06); }
  to { transform: rotate(14deg) scale(1.06); }
}
@keyframes sensePulse {
  0%, 100% { opacity: .35; transform: scale(.96); }
  50% { opacity: .95; transform: scale(1.04); }
}
@keyframes senseShake {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  25% { transform: rotate(-4deg) scale(1.03); }
  50% { transform: rotate(2deg) scale(1.04); }
  75% { transform: rotate(-3deg) scale(1.02); }
}
@keyframes webCornerShoot {
  from { opacity: 0; transform: scale(.2); }
  to { opacity: 1; transform: scale(1); }
}

/* Hiệu ứng chạm/click & lướt: mạng tơ nhện màu trắng tự nhiên bung ra ngay tại điểm chạm */
.touch-spider-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 85; overflow: hidden;
}
.touch-spider {
  position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  color: #ffffff; pointer-events: none; will-change: transform, opacity;
  animation: webBloom var(--dur, 700ms) cubic-bezier(.16, 1, .3, 1) forwards;
}
.touch-spider svg {
  width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, .28)) drop-shadow(0 0 4px rgba(255, 255, 255, .9));
}
@keyframes webBloom {
  0% {
    opacity: 0;
    transform: scale(.12) rotate(calc(var(--rot, 0deg) - 18deg));
  }
  26% {
    opacity: .96;
    transform: scale(var(--s, 1)) rotate(var(--rot, 0deg));
  }
  68% {
    opacity: .82;
    transform: scale(calc(var(--s, 1) * 1.08)) rotate(calc(var(--rot, 0deg) + 5deg));
  }
  100% {
    opacity: 0;
    transform: scale(calc(var(--s, 1) * 1.16)) rotate(calc(var(--rot, 0deg) + 9deg));
  }
}

/* =========================================================
   Responsive (Desktop, Tablet & Mobile)
   ========================================================= */
@media (min-width: 760px) {
  .invite-card { padding: 84px 36px 36px; }
  .paper { padding: 64px 52px 44px; }
  .rsvp-card, .rsvp-done { padding: 52px 36px 32px; }
  .sky-sun { width: 150px; height: 150px; margin-left: -75px; }
  .trail-nav { right: 18px; }
}
@media (max-width: 640px) {
  .trail-nav { display: none; }
  .scene { padding: 56px var(--gutter) 44px; }
  .scene-invite { padding-top: 78px; }
  .invite-card { padding: 56px 20px 26px; }
  .invite-card-rainbow { width: 180px; height: 96px; top: -48px; }
  .invite-eyebrow { font-size: .74rem; letter-spacing: .07em; padding: 4px 12px; }
  .invite-info-row { padding: 10px 12px; gap: 10px; }
  .invite-info dd strong { font-size: 1.12rem; }
  .invite-actions .btn { flex: 1 1 160px; }
  .paper { padding: 48px 18px 28px; }
  .paper-body { font-size: 1.22rem; }
  .letter-memory { font-size: 1.24rem; padding: 12px 14px 12px 18px; }
  .letter-callout { font-size: 1.26rem; padding: 22px 16px 16px; }
  .letter-closing { font-size: 1.35rem; }
  .ticket-host { font-size: 1.22rem; }
  .ticket-grid { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 400px) {
  :root { --gutter: 14px; }
  body { font-size: 16px; }
  .intro-eyebrow { font-size: .78rem; padding: 4px 12px; }
  .intro-ribbon { padding: 0 14px; }
  .intro-ribbon > span { font-size: clamp(.95rem, 4.5vw, 1.2rem); padding: 7px 14px 8px; }
  .intro-hint { font-size: .86rem; padding: 7px 12px; max-width: 290px; }
  .invite-card { padding-left: 14px; padding-right: 14px; }
  .invite-host-name { font-size: clamp(1.28rem, 5.6vw, 1.65rem); }
  .paper-body { font-size: 1.15rem; }
  .ticket { grid-template-columns: 1fr 52px; }
}
@media (max-height: 660px) and (orientation: landscape) {
  .intro-content { top: 2vh; }
  .intro-tile { font-size: clamp(1.6rem, 6vh, 2.4rem); }
  .intro-ribbon { margin-top: 8px; }
  .intro-hint { margin-top: 8px; padding: 5px 12px; font-size: .82rem; }
}

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(-20px); } to { transform: translateX(30px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes intro-pop { from { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes stepIn { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 25%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes stepDown { 0%, 100% { opacity: .35; transform: translateY(-3px); } 50% { opacity: 1; transform: translateY(3px); } }
@keyframes footDrop { from { opacity: 0; transform: translateY(-30px) rotate(var(--r, 0deg)) scaleX(var(--flip, 1)) scale(.4); } }
@keyframes footBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ripple { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes stamp { 0% { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes walkStep { 0% { opacity: 0; transform: rotate(var(--r)) scaleX(var(--flip, 1)) scale(1.6); } 30% { opacity: 1; transform: rotate(var(--r)) scaleX(var(--flip, 1)) scale(1); } 100% { opacity: .9; transform: rotate(var(--r)) scaleX(var(--flip, 1)) scale(1); } }
@keyframes trailIn { to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px) scale(.95); } }
@keyframes sunRise { from { transform: translateY(45%); } }
@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes tileDrop { from { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * -3)) scale(.6); } }
@keyframes tileFloat { 0%, 100% { transform: rotate(var(--r)) translateY(var(--ty)); } 50% { transform: rotate(calc(var(--r) * -1)) translateY(calc(var(--ty) - 5px)); } }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* =========================================================
   BUNNY LAYER — thỏ nhảy ở intro + họa tiết thỏ ở giao diện chính
   ========================================================= */

/* ---- Intro: thỏ thay cho dấu chân ---- */
.foot-btn {
  --bw: calc(var(--w, 52px) * 1.6);
  width: var(--bw); height: calc(var(--bw) * 1.2);
  margin: calc(var(--bw) * -.6) 0 0 calc(var(--bw) * -.5);
  transform: none; scale: var(--flip, 1) 1;
  animation: bunnyDrop .7s var(--ease-bounce) var(--delay, 0s) both;
}
.foot-btn svg {
  transform-origin: 50% 100%;
  animation: bunnyHop 1.5s ease-in-out calc(var(--delay, 0s) + .7s) infinite;
}
.foot-btn svg { filter: drop-shadow(0 3px 3px rgba(107, 58, 79, .35)); }
.foot-btn:hover svg, .foot-btn:focus-visible svg { animation-play-state: paused; transform: scale(1.2) translateY(-6%); }
.foot-btn.is-chosen svg { animation: stamp .5s var(--ease-bounce) forwards; }
.foot-walk {
  width: 42px; height: 50px; margin: -25px 0 0 -21px;
  scale: var(--flip, 1) 1; transform-origin: 50% 100%;
  animation: bunnyIn .6s ease forwards, bunnyHop 1s ease-in-out .6s infinite;
}
.intro-hint-foot { width: 28px; height: 34px; }
@keyframes bunnyDrop { from { opacity: 0; transform: translateY(-40px) scale(.4); } }
@keyframes bunnyHop {
  0%, 100% { transform: translateY(0) scale(1.06, .92); }
  25% { transform: translateY(-14%) scale(.95, 1.08); }
  50% { transform: translateY(0) scale(1.06, .92); }
}
@keyframes bunnyIn {
  0% { opacity: 0; transform: translateY(-26px) scale(.5); }
  60% { opacity: 1; transform: translateY(4px) scale(1.1, .88); }
  100% { opacity: 1; transform: none; }
}

/* ---- Giao diện chính: tai thỏ trên thiệp ---- */
.invite-card, .paper, .ngl-card, .rsvp-card { position: relative; }
.card-ears {
  position: absolute; left: 50%; top: -33px; width: 112px; height: 41px; margin-left: -56px;
  z-index: 3; pointer-events: none; filter: drop-shadow(0 2px 0 rgba(107, 58, 79, .25));
  transform-origin: 50% 100%; animation: earWiggle 5s ease-in-out infinite;
}
.card-ears--hero { top: -30px; width: 130px; height: 48px; margin-left: -65px; z-index: 4; }
.paper .card-ears, .ngl-card .card-ears, .rsvp-card .card-ears { left: 18%; }
@keyframes earWiggle { 0%, 82%, 100% { transform: rotate(0); } 88% { transform: rotate(-4deg); } 94% { transform: rotate(3deg); } }

/* ---- Họa tiết nổi hai bên màn hình ---- */
.bunny-decor { position: fixed; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.bunny-decor-item {
  position: absolute; width: var(--s); height: calc(var(--s) * 1.15); color: var(--c); opacity: .55;
  filter: drop-shadow(0 2px 0 rgba(107, 58, 79, .35));
  animation: decorFloat var(--d) ease-in-out var(--delay) infinite;
}
.bunny-decor-item svg { width: 100%; height: 100%; }
@keyframes decorFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-16px) rotate(calc(var(--rot) * -1)); }
}
@media (max-width: 640px) { .bunny-decor-item { opacity: .38; } }

/* ---- Chú thỏ nhỏ ngồi ở góc từng cảnh (chạm để thả tim) ---- */
.scene { position: relative; }
.peek-bunny {
  position: absolute; bottom: 10px; z-index: 7; width: 58px; height: 68px; padding: 0; border: 0; background: none;
  color: var(--c, var(--pink)); cursor: pointer; filter: drop-shadow(0 3px 0 rgba(107, 58, 79, .55));
  -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%;
  animation: bunnyHop 3.4s ease-in-out infinite;
}
.peek-bunny--left { left: 2%; }
.peek-bunny--right { right: 2%; scale: -1 1; }
.peek-bunny svg { width: 100%; height: 100%; }
.peek-bunny.is-hop { animation: bunnyBigHop .7s var(--ease-bounce), bunnyHop 3.4s ease-in-out .7s infinite; }
@keyframes bunnyBigHop { 0% { transform: none; } 40% { transform: translateY(-46px) scale(.92, 1.14); } 100% { transform: none; } }
.bunny-heart {
  position: fixed; z-index: 90; pointer-events: none; font-size: 22px; transform: translate(-50%, -50%);
  animation: heartFly 1s ease-out forwards;
}
@keyframes heartFly { to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3); } }

/* ---- Hàng thỏ thay cho hàng dấu chân ---- */
.invite-card-feet svg { width: 32px; height: 38px; margin-top: 0 !important; animation: bunnyHop 1.8s ease-in-out infinite; }
.invite-card-feet svg:nth-child(2n) { animation-delay: .25s; }
.invite-card-feet svg:nth-child(3n) { animation-delay: .5s; }
.paper-feet svg { width: 34px; height: 40px; margin-top: 0 !important; animation: bunnyHop 2s ease-in-out infinite; }
.paper-feet svg + svg { animation-delay: .4s; }
.finale-feet svg { width: 40px; height: 48px; margin-top: 0 !important; animation: bunnyHop 1.6s ease-in-out infinite; }
.finale-feet svg:nth-child(2n) { animation-delay: .3s; }
.finale-feet svg:nth-child(3n) { animation-delay: .6s; }
.invite-hero-feet svg { width: 24px; height: 29px; margin-top: 0 !important; }
.scene-badge svg { width: 30px; height: 36px; }
.trail-nav svg { width: 22px; height: 26px; }
.ngl-avatar svg { width: 62%; height: 74%; }

/* ---- Scroll: thỏ đu dây theo độ cuộn trang ---- */
.scroll-spider-body { width: 44px; height: 52px; }
.scroll-spider-body svg { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .foot-btn svg, .foot-walk, .peek-bunny, .bunny-decor-item, .card-ears,
  .invite-card-feet svg, .paper-feet svg, .finale-feet svg { animation: none !important; }
}


#inviteCard > .card-ears { left: 15%; margin-left: 0; transform-origin: 20% 100%; }

/* ---- Thỏ nhảy tới cổng hoa sau khi chạm ---- */
.hop-bunny {
  position: absolute; z-index: 5; color: var(--c, #f0608f); overflow: visible; pointer-events: none;
  transform-origin: 50% 100%; will-change: transform;
  filter: drop-shadow(0 3px 2px rgba(107, 58, 79, .35));
}
.hop-shadow {
  position: absolute; z-index: 4; width: 46px; height: 12px; border-radius: 50%; pointer-events: none;
  background: rgba(107, 58, 79, .45); filter: blur(2px);
}
.hop-print {
  position: absolute; z-index: 3; width: 18px; height: 28px; margin: -14px 0 0 -9px; color: var(--c); pointer-events: none;
  scale: var(--s, 1); rotate: var(--tilt, 0deg); opacity: 0;
  filter: drop-shadow(0 2px 0 rgba(107, 58, 79, .55)); animation: printPop .45s var(--ease-bounce) forwards;
}
.hop-puff {
  position: absolute; z-index: 6; width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--c); pointer-events: none;
  animation: puffOut .65s ease-out forwards;
}
@keyframes printPop { from { opacity: 0; transform: scale(.2); } to { opacity: .95; transform: scale(1); } }
@keyframes puffOut { from { opacity: 1; transform: scale(.3) rotate(0); } to { opacity: 0; transform: scale(1.8) rotate(80deg); } }

/* ---- Thỏ nhảy từ từ xuống theo độ cuộn trang (không còn dây tơ) ---- */
.scroll-spider { top: var(--len, 8vh); transition: top .9s cubic-bezier(.22, 1, .36, 1); transform: translateY(-100%); }
.scroll-spider-thread { display: none; }
.scroll-spider-body { margin-top: 0; filter: drop-shadow(0 3px 2px rgba(107, 58, 79, .4)); transform-origin: 50% 100%; }
.scroll-spider.is-climbing .scroll-spider-body { animation: scrollBunnyHop .42s ease-in-out infinite; }
@keyframes scrollBunnyHop {
  0%, 100% { transform: translateY(0) scale(1.08, .9); }
  45% { transform: translateY(-16px) scale(.94, 1.1) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) { .scroll-spider-body { animation: none !important; } }
