:root {
  --cream: #fff7ec;
  --cream-deep: #fdeede;
  --pink: #ffd6e7;
  --pink-deep: #ff9bbe;
  --pink-hot: #ff6fa1;
  --mint: #c6f0e0;
  --mint-deep: #5cc9a7;
  --sky: #c5e8f5;
  --sky-deep: #6cb8d6;
  --sun: #ffd28a;
  --ocean: #2d4a5a;
  --ocean-soft: #6e8a9b;
  --shadow-sm: 0 6px 16px rgba(45, 74, 90, 0.08);
  --shadow-md: 0 18px 40px rgba(45, 74, 90, 0.12);
  --shadow-lg: 0 36px 80px rgba(45, 74, 90, 0.18);
  --radius-sm: 14px;
  --radius-md: 26px;
  --radius-lg: 40px;
  --radius-xl: 56px;
  --font-display: 'Caprasimo', 'Fraunces', Georgia, serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Quicksand', 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ocean);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, var(--pink) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 30%, var(--sky) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 70%, var(--mint) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, var(--pink) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.55;
  letter-spacing: 0.005em;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

/* ============== GRAIN OVERLAY ============== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.29 0 0 0 0 0.36 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============== BUBBLES ============== */
.bubbles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25));
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.6);
  animation: rise linear infinite;
  opacity: 0.6;
}
.bubble.b1 { left: 5%; width: 18px; height: 18px; animation-duration: 22s; animation-delay: -2s; }
.bubble.b2 { left: 12%; width: 28px; height: 28px; animation-duration: 30s; animation-delay: -10s; }
.bubble.b3 { left: 22%; width: 12px; height: 12px; animation-duration: 18s; animation-delay: -4s; }
.bubble.b4 { left: 35%; width: 36px; height: 36px; animation-duration: 36s; animation-delay: -14s; }
.bubble.b5 { left: 45%; width: 14px; height: 14px; animation-duration: 20s; animation-delay: -7s; }
.bubble.b6 { left: 55%; width: 22px; height: 22px; animation-duration: 26s; animation-delay: -3s; }
.bubble.b7 { left: 65%; width: 32px; height: 32px; animation-duration: 32s; animation-delay: -16s; }
.bubble.b8 { left: 72%; width: 16px; height: 16px; animation-duration: 22s; animation-delay: -8s; }
.bubble.b9 { left: 80%; width: 24px; height: 24px; animation-duration: 28s; animation-delay: -12s; }
.bubble.b10 { left: 88%; width: 12px; height: 12px; animation-duration: 19s; animation-delay: -5s; }
.bubble.b11 { left: 92%; width: 30px; height: 30px; animation-duration: 34s; animation-delay: -18s; }
.bubble.b12 { left: 28%; width: 20px; height: 20px; animation-duration: 24s; animation-delay: -11s; }

@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.7; }
  50% { transform: translate3d(20px, -50vh, 0) scale(1.05); }
  90% { opacity: 0.6; }
  100% { transform: translate3d(-10px, -110vh, 0) scale(0.9); opacity: 0; }
}

/* ============== SWIMMING FISH ============== */
.swim-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.swimmer {
  position: absolute;
  width: 90px;
  filter: drop-shadow(0 6px 14px rgba(45, 74, 90, 0.12));
}
.swimmer.s1 { top: 18%; width: 95px; animation: swim-right 38s linear -4s infinite; }
.swimmer.s2 { top: 42%; width: 75px; animation: swim-left 52s linear -18s infinite; }
.swimmer.s3 { top: 65%; width: 110px; animation: swim-right 44s linear -8s infinite; }
.swimmer.s4 { top: 30%; width: 65px; animation: swim-left 60s linear -26s infinite; }
.swimmer.s5 { top: 80%; width: 85px; animation: swim-right 48s linear -34s infinite; }

.swimmer img { width: 100%; height: auto; }
.swimmer.s1 img, .swimmer.s3 img, .swimmer.s5 img { transform: scaleX(-1); }

@keyframes swim-left {
  0% { transform: translate3d(110vw, 0, 0); }
  25% { transform: translate3d(75vw, -22px, 0); }
  50% { transform: translate3d(45vw, 10px, 0); }
  75% { transform: translate3d(20vw, -14px, 0); }
  100% { transform: translate3d(-18vw, 0, 0); }
}
@keyframes swim-right {
  0% { transform: translate3d(-18vw, 0, 0); }
  25% { transform: translate3d(20vw, 14px, 0); }
  50% { transform: translate3d(45vw, -10px, 0); }
  75% { transform: translate3d(75vw, 22px, 0); }
  100% { transform: translate3d(110vw, 0, 0); }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 70px 6vw 200px;
  display: flex;
  align-items: center;
  z-index: 3;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ray {
  position: absolute;
  width: 280px;
  height: 140vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  transform-origin: top left;
  filter: blur(20px);
}
.ray.r1 { top: -20%; left: 10%; transform: rotate(8deg); }
.ray.r2 { top: -30%; left: 45%; transform: rotate(-6deg); width: 200px; }
.ray.r3 { top: -10%; left: 75%; transform: rotate(12deg); width: 240px; }

.kelp {
  position: absolute;
  bottom: 100px;
  width: 120px;
  pointer-events: none;
  animation: sway 6s ease-in-out infinite;
}
.kelp.left { left: 1%; height: 70vh; }
.kelp.right { right: 1%; height: 60vh; animation-delay: -3s; transform: scaleX(-1); }
.kelp svg { height: 100%; width: auto; }

@keyframes sway {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(8px) rotate(2deg); }
}
.kelp.right { animation-name: sway-r; }
@keyframes sway-r {
  0%, 100% { transform: scaleX(-1) translateX(0) rotate(0); }
  50% { transform: scaleX(-1) translateX(8px) rotate(2deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-text { position: relative; z-index: 2; }

.kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--pink-deep);
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  opacity: 0.95;
}

.display-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 13vw, 12rem);
  line-height: 0.85;
  color: var(--ocean);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
}
.display-name .char {
  display: inline-block;
  animation: bobble 4s ease-in-out infinite;
}
.display-name .char:nth-child(1) { animation-delay: 0s; color: var(--ocean); }
.display-name .char:nth-child(2) { animation-delay: 0.2s; color: var(--pink-hot); }
.display-name .char:nth-child(3) { animation-delay: 0.4s; color: var(--ocean); }
.display-name .char:nth-child(4) { animation-delay: 0.6s; color: var(--mint-deep); }
.display-name .char:nth-child(5) { animation-delay: 0.8s; color: var(--ocean); }
.display-name .char:nth-child(6) { animation-delay: 1.0s; color: var(--sky-deep); }

@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

.surname {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--ocean-soft);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  margin-left: 6px;
}

.age-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
}

.age-badge {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, var(--pink) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -10px 20px rgba(255, 111, 161, 0.2),
    0 14px 30px rgba(255, 111, 161, 0.25),
    0 0 0 8px rgba(255, 214, 231, 0.55);
  animation: float-slow 5s ease-in-out infinite;
}
.age-badge::before {
  content: '';
  position: absolute;
  top: -16px; right: -8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 4px 10px rgba(92, 201, 167, 0.3);
}
.age-badge::after {
  content: '';
  position: absolute;
  bottom: -10px; left: -14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 4px 8px rgba(245, 181, 107, 0.4);
}

.age-num {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--pink-hot);
  margin-bottom: 2px;
}
.age-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ocean);
  letter-spacing: 0.08em;
}

.age-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 0.9;
  color: var(--mint-deep);
}
.age-line .cumple { transform: rotate(-3deg); }
.age-line .añitos { transform: rotate(2deg) translateX(20px); color: var(--sky-deep); }

.hero-date {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ocean);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  margin-bottom: 28px;
  padding: 10px 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  border: 1.5px dashed rgba(45, 74, 90, 0.2);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--ocean);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(45, 74, 90, 0.25), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--pink-hot);
  box-shadow: 0 18px 36px rgba(255, 111, 161, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.btn-primary:active { transform: translateY(0); }

.hero-cta { margin-top: 8px; }

.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.seahorse {
  width: clamp(280px, 36vw, 440px);
  filter: drop-shadow(0 30px 50px rgba(255, 111, 161, 0.25));
  animation: float-seahorse 6s ease-in-out infinite;
}

@keyframes float-seahorse {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

.float-starfish {
  position: absolute;
  width: 80px;
  bottom: 5%;
  left: -2%;
  animation: spin-slow 18s linear infinite;
  filter: drop-shadow(0 8px 16px rgba(245, 181, 107, 0.3));
}
@keyframes spin-slow {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.wave-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  height: 140px;
  z-index: 1;
}

/* ============== COUNTDOWN ============== */
.countdown-section {
  position: relative;
  padding: 100px 6vw;
  background: linear-gradient(180deg, var(--sky) 0%, rgba(197, 232, 245, 0.4) 100%);
  z-index: 3;
}
.countdown-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 60px 40px 50px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cd-decor {
  position: absolute;
  width: 110px;
  height: 110px;
  animation: float-slow 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(45, 74, 90, 0.18));
}
.cd-decor img { width: 100%; height: 100%; object-fit: contain; }
.cd-decor-l { top: -55px; left: 8%; transform: rotate(-12deg); }
.cd-decor-r { top: -45px; right: 8%; animation-delay: -2s; transform: rotate(8deg); }

.cd-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--sky-deep);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 18px);
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}
.cd-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--ocean);
  letter-spacing: -0.02em;
}
.cd-lbl {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sky-deep);
  text-transform: lowercase;
  letter-spacing: 0.15em;
  margin-top: 6px;
}
.cd-dot {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--pink-hot);
  line-height: 1;
  align-self: flex-start;
  margin-top: 14px;
}
.cd-when {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  margin-top: 8px;
}

/* ============== DETAILS ============== */
.details {
  position: relative;
  padding: 120px 6vw;
  z-index: 3;
}
.section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 70px;
}
.overline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ocean);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ocean-soft);
  max-width: 520px;
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
}
.detail-card {
  position: relative;
  padding: 50px 30px 36px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
  border-radius: var(--radius-lg);
  border: 2px solid #fff;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  overflow: hidden;
}
.detail-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(0px);
}
.detail-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: var(--shadow-md);
}
.detail-card:nth-child(2):hover { transform: translateY(-8px) rotate(1deg); }

.card-art {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  z-index: 1;
  animation: float-slow 5s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(45, 74, 90, 0.18));
}
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.detail-card:nth-child(2) .card-art { animation-delay: -1.5s; }
.detail-card:nth-child(3) .card-art { animation-delay: -3s; }

.card-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ocean-soft);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 0.95;
  color: var(--ocean);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.card-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean-soft);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ============== MAP ============== */
.map-section {
  position: relative;
  padding: 80px 6vw 120px;
  text-align: center;
  z-index: 3;
}
.map-head { max-width: 720px; margin: 0 auto 50px; }
.address-line {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--ocean-soft);
  margin-top: 14px;
  line-height: 1.5;
}

.map-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--sky);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: none;
}
.treasure-map {
  display: block;
  width: 100%;
  height: 460px;
  background:
    radial-gradient(circle at 30% 25%, #d6f1ff 0%, transparent 60%),
    radial-gradient(circle at 75% 75%, #ffe7f1 0%, transparent 60%),
    var(--sky);
  position: relative;
  z-index: 1;
}
.treasure-map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  color: var(--ocean-soft);
  padding: 2px 8px;
  border-radius: 8px 0 0 0;
}
.treasure-map .leaflet-control-attribution a { color: var(--pink-hot); }
.treasure-map .leaflet-control-zoom a {
  background: #fff;
  color: var(--pink-hot);
  border: 2px solid var(--pink);
  font-weight: 700;
  width: 34px;
  height: 34px;
  line-height: 30px;
  font-size: 18px;
}
.treasure-map .leaflet-control-zoom a:hover { background: var(--pink); color: #fff; }
.treasure-map .leaflet-control-zoom {
  border-radius: 12px;
  overflow: hidden;
  margin: 14px !important;
  box-shadow: var(--shadow-sm);
  border: none;
}

/* ============== PARTY PIN ============== */
.party-pin {
  position: relative;
  width: 180px;
  height: 220px;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(45, 74, 90, 0.28));
}
.party-pin .pin-bubble {
  position: absolute;
  left: 50%;
  top: 36px;
  transform: translateX(-50%);
  background: #fff;
  color: var(--pink-hot);
  font-family: var(--font-display);
  text-align: center;
  padding: 10px 16px 8px;
  border-radius: 18px;
  border: 3px solid var(--pink);
  white-space: nowrap;
  animation: pin-bob 2.4s ease-in-out infinite;
  box-shadow: 0 6px 14px rgba(45, 74, 90, 0.18);
}
.party-pin .pin-bubble-text {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.party-pin .pin-bubble-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ocean-soft);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.party-pin .pin-bubble-tail {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 3px solid var(--pink);
  border-bottom: 3px solid var(--pink);
}
.party-pin .pin-stack {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 90px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.party-pin .pin-ripple,
.party-pin .pin-ripple-2,
.party-pin .pin-ripple-3 {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translate(-50%, 0);
  width: 30px;
  height: 12px;
  border: 2px solid var(--pink-hot);
  border-radius: 50%;
  opacity: 0;
  animation: pin-pulse 2.4s ease-out infinite;
}
.party-pin .pin-ripple-2 { animation-delay: 0.8s; border-color: var(--pink-deep); }
.party-pin .pin-ripple-3 { animation-delay: 1.6s; border-color: var(--sky-deep); }
.party-pin .pin-mascot {
  position: relative;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 14px;
  transform-origin: 50% 90%;
  animation: pin-bob-mascot 2.4s ease-in-out infinite, pin-tilt 5s ease-in-out infinite;
}
.party-pin .pin-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.party-pin .pin-bubbles span {
  position: absolute;
  bottom: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--sky-deep);
  opacity: 0;
  animation: pin-bubble-rise 3.2s ease-in infinite;
}
.party-pin .pin-bubbles span:nth-child(1) { left: 18%; animation-delay: 0s; }
.party-pin .pin-bubbles span:nth-child(2) { left: 70%; width: 6px; height: 6px; animation-delay: 0.7s; }
.party-pin .pin-bubbles span:nth-child(3) { left: 35%; width: 10px; height: 10px; animation-delay: 1.5s; }
.party-pin .pin-bubbles span:nth-child(4) { left: 78%; width: 5px; height: 5px; animation-delay: 2.2s; }
.party-pin .pin-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 56px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(45, 74, 90, 0.4), transparent 70%);
  filter: blur(2px);
  animation: pin-shadow 2.4s ease-in-out infinite;
}
@keyframes pin-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pin-bob-mascot {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes pin-tilt {
  0%, 100% { filter: drop-shadow(0 4px 8px rgba(45, 74, 90, 0.2)); }
  50% { filter: drop-shadow(0 8px 14px rgba(45, 74, 90, 0.25)); }
}
@keyframes pin-pulse {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, 0) scale(3.2); opacity: 0; }
}
@keyframes pin-bubble-rise {
  0% { transform: translateY(0) scale(0.4); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(-90px) scale(1); opacity: 0; }
}
@keyframes pin-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(0.8); opacity: 0.35; }
}
.map-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 22px rgba(45, 74, 90, 0.22));
  animation: float-slow 5s ease-in-out infinite;
}
.map-decor img { width: 100%; height: 100%; object-fit: contain; }
.map-decor-tl { top: -40px; left: -25px; transform: rotate(-15deg); }
.map-decor-br { bottom: -40px; right: -25px; animation-delay: -2.5s; transform: rotate(10deg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #fff;
  color: var(--ocean);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--ocean);
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  background: var(--ocean);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ============== RSVP ============== */
.rsvp {
  position: relative;
  padding: 80px 6vw 100px;
  z-index: 3;
}
.rsvp-card {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 70px 50px 50px;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-radius: var(--radius-xl);
  border: 2px solid #fff;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.rsvp-mascots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mascot {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: float-slow 5s ease-in-out infinite;
}
.mascot-l { top: -55px; left: -30px; transform: rotate(-10deg); }
.mascot-r { top: -50px; right: -30px; animation-delay: -2s; transform: rotate(10deg); }

.rsvp-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--ocean);
  letter-spacing: -0.015em;
  margin: 14px 0 14px;
}
.rsvp-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ocean-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 36px;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto 12px;
}
.field {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.field span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ocean-soft);
  margin-bottom: 8px;
  margin-left: 4px;
}
.field input {
  width: 100%;
  padding: 16px 22px;
  background: #fff;
  border: 2px solid var(--pink);
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ocean);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.field input::placeholder { color: var(--ocean-soft); opacity: 0.5; font-weight: 500; }
.field input:focus {
  outline: none;
  border-color: var(--pink-hot);
  box-shadow: 0 0 0 6px rgba(255, 111, 161, 0.15);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: #f5a3a3;
}

.btn-submit {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 12px;
  padding: 18px 36px;
  background: linear-gradient(135deg, var(--pink-hot) 0%, var(--pink-deep) 100%);
  font-size: 1.05rem;
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--pink-hot) 100%);
  transform: translateY(-3px);
}

.form-msg {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  min-height: 24px;
  color: var(--mint-deep);
  font-weight: 500;
  margin-top: 4px;
}
.form-msg.error { color: #d77; }

.rsvp-list-block {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 2px dashed rgba(45, 74, 90, 0.15);
  text-align: left;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.list-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ocean);
  line-height: 1;
  margin-bottom: 4px;
}
.list-meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ocean-soft);
}
.list-meta span {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--pink-hot);
  font-style: normal;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--mint);
  color: var(--ocean);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: var(--mint-deep);
  color: #fff;
  transform: translateY(-2px);
}

.guest-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.guest-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--mint);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
  position: relative;
}
.guest-list li .gname { color: var(--ocean); flex: 1; }
.guest-list li .gcount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pink-hot);
  background: var(--pink);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 1;
}
.guest-list li .gdel {
  width: 24px; height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ocean-soft);
  opacity: 0.5;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.guest-list li .gdel:hover {
  opacity: 1;
  background: var(--pink);
  color: var(--pink-hot);
}
@keyframes pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.empty-list {
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
  color: var(--ocean-soft);
  padding: 24px;
  background: rgba(255, 214, 231, 0.3);
  border-radius: 18px;
  border: 2px dashed var(--pink);
}

/* ============== FOOTER ============== */
.footer {
  position: relative;
  text-align: center;
  padding: 80px 6vw 60px;
  z-index: 3;
}
.footer-art { max-width: 240px; margin: 0 auto 24px; opacity: 0.7; }
.footer-text {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ocean-soft);
  font-size: 1rem;
}
.footer-sign {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pink-hot);
  line-height: 1;
  margin: 4px 0 12px;
}
.footer-sign .sign-geno { color: var(--pink-hot); }
.footer-sign .sign-jesus { color: var(--sky-deep); }
.footer-sign .sign-amp { color: var(--ocean-soft); }
.footer-mini {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--ocean-soft);
}

/* ============== CONFETTI CANVAS ============== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 880px) {
  .hero { padding: 50px 6vw 160px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-text { text-align: center; }
  .display-name { justify-content: center; }
  .age-row { justify-content: center; flex-wrap: wrap; }
  .surname { margin-left: 0; }
  .hero-figure { order: -1; }
  .seahorse { width: 170px; }
  .float-starfish { width: 60px; }
  .kelp { display: none; }

  .countdown-frame { padding: 50px 24px 36px; }
  .cd-decor { width: 80px; height: 80px; }
  .cd-decor-l { top: -40px; left: 4%; }
  .cd-decor-r { top: -35px; right: 4%; }
  .cd-block { min-width: 64px; }
  .cd-dot { display: none; }
  .countdown-grid { gap: 18px; }

  .rsvp-card { padding: 60px 26px 36px; }
  .rsvp-form { grid-template-columns: 1fr; }
  .mascot { width: 90px; height: 90px; }
  .mascot-l { top: -42px; left: -10px; }
  .mascot-r { top: -42px; right: -10px; }

  .map-frame { border-width: 4px; }
  .map-frame iframe { height: 280px; }
  .treasure-map { height: 280px; }
  .map-decor { width: 80px; height: 80px; }
  .map-decor-tl { top: -28px; left: -16px; }
  .map-decor-br { bottom: -28px; right: -16px; }
  .party-pin { width: 130px; height: 170px; }
  .party-pin .pin-bubble { top: 96px; padding: 8px 12px 6px; border-radius: 14px; }
  .party-pin .pin-bubble-text { font-size: 0.78rem; }
  .party-pin .pin-bubble-sub { font-size: 0.62rem; }
  .party-pin .pin-mascot { width: 78px; height: 78px; margin-bottom: 8px; }
  .party-pin .pin-stack { width: 70px; height: 100px; bottom: 12px; }
  .list-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .display-name { font-size: 4.2rem; }
  .age-badge { width: 100px; height: 100px; }
  .age-num { font-size: 3.4rem; }
  .age-line { font-size: 1.4rem; }
  .seahorse { width: 140px; }
  .float-starfish { width: 50px; }
  .swimmer { transform: scale(0.7); }
  .map-frame iframe { height: 240px; }
  .treasure-map { height: 240px; }
  .map-decor { width: 64px; height: 64px; }
  .map-decor-tl { top: -22px; left: -12px; }
  .map-decor-br { bottom: -22px; right: -12px; }
  .party-pin { width: 110px; height: 150px; }
  .party-pin .pin-bubble { top: 90px; }
  .party-pin .pin-mascot { width: 64px; height: 64px; margin-bottom: 6px; }
  .party-pin .pin-stack { width: 60px; height: 86px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
