/* ===== Confetti overlay (works as in-card layer or fixed full-screen) ===== */
.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
}
.confetti-layer--fixed {
  position: fixed;
  z-index: 9999;
  border-radius: 0;
}
.confetti-piece {
  position: absolute;
  top: -24px;
  pointer-events: none;
  animation: confettiFall linear infinite;
  will-change: transform;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); }
}

/* ===== BIRTHDAY THEME ===== */
.birthday {
  background: #FFF6E5;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}
.birthday .b-stage {
  padding: 0;
  text-align: center;
  position: relative;
  min-height: 100%;
}

/* Hero */
.birthday .b-hero {
  background: radial-gradient(circle at 30% 20%, #FFE8B5 0%, #FFF6E5 55%, #FFE3A8 100%);
  padding: 0 20px 28px;
  position: relative;
  overflow: visible;
}
.birthday .b-balloons {
  position: relative;
  height: 110px;
  margin-bottom: 24px;
}
.birthday .b-balloon {
  position: absolute;
  top: 8px;
  width: 44px;
  animation: bdayFloat 3.5s ease-in-out infinite;
}
.birthday .b-balloon::before {
  content: '';
  display: block;
  width: 44px;
  height: 56px;
  background: var(--c, #FF5A36);
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  box-shadow: inset -6px -8px 14px rgba(0,0,0,0.18);
}
.birthday .b-balloon::after {
  content: '';
  display: block;
  width: 1px;
  height: 38px;
  background: #1a1a1a;
  opacity: 0.45;
  margin: 0 auto;
}
@keyframes bdayFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.birthday .b-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FF5A36;
  font-weight: 700;
  margin-bottom: 14px;
}
.birthday .b-eyebrow::before {
  content: '●';
  font-size: 7px;
  margin-right: 8px;
  vertical-align: middle;
}
.birthday .b-name {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 78px;        /* default; overridden inline based on name length */
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #1a1a1a;
  word-break: keep-all;
}
/* Each word is its own visual line — cleanly separates multi-word names */
.birthday .b-name__word {
  display: block;
  white-space: nowrap;
}
.birthday .b-name__word + .b-name__word {
  margin-top: 2px;
}
.birthday .b-name__word > span {
  display: inline-block;
  animation: bdayWiggle 2.5s ease-in-out infinite;
}
@keyframes bdayWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
.birthday .b-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #FF5A36;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.birthday .b-date {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: #1a1a1a;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 0.005em;
}
.birthday .b-date::before {
  content: '— ';
  opacity: 0.45;
}
.birthday .b-date::after {
  content: ' —';
  opacity: 0.45;
}

/* Cake */
.birthday .b-cake {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 32px auto 56px;
  cursor: pointer;
  user-select: none;
}
.birthday .b-candle {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 40px;
}
.birthday .b-stick {
  width: 8px;
  height: 32px;
  background: linear-gradient(180deg, #FFD23F 0%, #FF8C42 100%);
  margin: 0 auto;
  border-radius: 2px;
}
.birthday .b-flame {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 18px;
  background: radial-gradient(ellipse, #FFE74C 0%, #FF8C42 70%, transparent 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  transition: opacity 0.3s;
  animation: bdayFlicker 0.4s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}
.birthday .b-cake.is-out .b-flame {
  opacity: 0;
  animation: none;
}
@keyframes bdayFlicker {
  0%   { transform: translateX(-50%) scale(1)   rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}
.birthday .b-cake-top {
  position: absolute; top: 68px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; background: #FFF6E5;
  border: 4px solid #1a1a1a; border-radius: 4px;
  box-shadow: 0 0 0 4px #FF5A36;
}
.birthday .b-cake-mid {
  position: absolute; top: 100px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 32px; background: #FFD23F;
  border: 4px solid #1a1a1a; border-radius: 4px;
}
.birthday .b-cake-bot {
  position: absolute; top: 140px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 40px; background: #06D6A0;
  border: 4px solid #1a1a1a; border-radius: 4px;
}
.birthday .b-cake-hint {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #1a1a1a;
  opacity: 0.55;
  white-space: nowrap;
  font-weight: 500;
}

/* Body sections (post-hero) */
.birthday .b-body {
  padding: 40px 24px 0;
}
.birthday .b-photo-hero {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto 36px;
  box-shadow: 6px 8px 0 rgba(26,26,26,0.9);
  transform: rotate(-2deg);
  border: 8px solid #fff;
  position: relative;
}
.birthday .b-photo-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.birthday .b-msg {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  max-width: 320px;
  margin: 0 auto 8px;
  color: #1a1a1a;
}
.birthday .b-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 36px 0 12px;
}
.birthday .b-photo-strip figure {
  margin: 0;
  border: 5px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 3px 4px 0 rgba(26,26,26,0.9);
}
.birthday .b-photo-strip figure:nth-child(odd)  { transform: rotate(-2deg); }
.birthday .b-photo-strip figure:nth-child(even) { transform: rotate(2.5deg); }
.birthday .b-photo-strip img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.birthday .b-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 40px 0 16px;
  color: #FF5A36;
  font-weight: 700;
  text-align: center;
}
.birthday .b-spotify {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 6px 0 rgba(26,26,26,0.9);
  background: #1a1a1a;
  margin-bottom: 16px;
}
.birthday .b-spotify iframe {
  display: block;
  border: 0;
  width: 100%;
  min-height: 152px;
}
.birthday .b-mural { margin-top: 8px; }
.birthday .b-card {
  background: #fff;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: left;
  border: 3px solid #1a1a1a;
  box-shadow: 4px 4px 0 #1a1a1a;
}
.birthday .b-card:nth-child(2n) { transform: rotate(1.5deg);  background: #FFF4D6; }
.birthday .b-card:nth-child(3n) { transform: rotate(-1.5deg); background: #D6F5E8; }
.birthday .b-card:nth-child(4n) { transform: rotate(2deg);    background: #E0E5FF; }
.birthday .b-card:nth-child(5n) { transform: rotate(-1deg);   background: #F5E0FF; }
.birthday .b-card-from {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #FF5A36;
}
.birthday .b-card-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: #1a1a1a;
}
.birthday .b-countdown {
  margin: 36px 0 0;
  padding: 18px;
  background: #1a1a1a;
  color: #FFD23F;
  border-radius: 4px;
  border: 3px solid #1a1a1a;
  box-shadow: 4px 4px 0 #FF5A36;
}
.birthday .b-countdown-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 6px;
  font-weight: 600;
}
.birthday .b-countdown-val {
  font-family: 'Courier Prime', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Final flourish */
.birthday .b-final {
  margin-top: 56px;
  padding: 70px 28px 80px;
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}
.birthday .b-final-text {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-style: italic;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.birthday .b-highlight {
  background: linear-gradient(180deg, transparent 60%, #FFD23F 60%);
  padding: 0 6px;
  color: #fff;
}
.birthday .b-kissoff {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin-top: 28px;
  opacity: 0.55;
  letter-spacing: 0.1em;
  font-weight: 500;
}
