/* ── base ─────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Sans', system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  background: #F4EFEA;
  color: #2a2a2a;
}

#root { min-height: 100dvh; }

.birthday-page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 214, 107, 0.48), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(156, 201, 255, 0.48), transparent 30%),
    linear-gradient(160deg, var(--bg1), var(--bg2) 60%, var(--bg3));
}

.birthday-start {
  position: relative;
  z-index: 3;
  width: min(440px, 100%);
}

.birthday-start-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 34px 24px 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 32px 90px -42px rgba(91, 74, 87, 0.52);
  text-align: center;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.birthday-start-card::before {
  content: "";
  position: absolute;
  inset: -30% 42% 52% -20%;
  border-radius: 999px;
  background: rgba(255, 156, 182, 0.34);
  filter: blur(24px);
}

.start-kicker {
  position: relative;
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.birthday-start h1 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 42px);
  line-height: 1.12;
}

.start-copy {
  position: relative;
  max-width: 17rem;
  margin: -4px 0 4px;
  color: rgba(91, 74, 87, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.card-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(91, 74, 87, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(91, 74, 87, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 34px -24px rgba(91, 74, 87, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.locked-page {
  min-height: 100dvh;
  width: min(420px, calc(100vw - 32px));
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.locked-card {
  width: 100%;
  padding: 28px;
  border: 1px solid rgba(255, 156, 182, 0.4);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 214, 107, 0.5), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(156, 201, 255, 0.55), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 229, 236, 0.9));
  box-shadow: 0 22px 70px -36px rgba(91, 74, 87, 0.45);
  text-align: center;
}

.locked-kicker {
  margin: 0 0 10px;
  color: #ff7fa3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locked-card h1 {
  margin: 0 0 12px;
  color: #5b4a57;
  font-size: 28px;
  line-height: 1.2;
}

.locked-card p {
  margin: 0;
  color: rgba(91, 74, 87, 0.74);
  line-height: 1.8;
}

.locked-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  border-radius: 999px;
  background: #5b4a57;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

/* The app screen fills the iOS frame's content area */
.screen {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 60%, var(--bg3));
}

/* ── Host app mock ─────────────────────────────────── */
.host {
  position: relative;
  width: 100%; height: 100%;
  padding: 18px 18px 32px;
  display: flex; flex-direction: column;
  gap: 16px;
  color: var(--ink);
}
.host-top {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 4px 0;
}
.host-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.host-sub { font-size: 13px; opacity: 0.6; }

.host-card {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: 0 10px 30px -18px rgba(80, 60, 70, 0.25);
}
.host-card-label {
  font-size: 12px; letter-spacing: 0.08em;
  opacity: 0.55; text-transform: uppercase;
  margin-bottom: 8px;
}
.host-compass {
  position: relative;
  width: 200px; height: 200px;
  margin: 8px auto 12px;
}
.compass-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(91,74,87,0.25);
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.6), rgba(255,255,255,0));
}
.compass-tick {
  position: absolute; font-size: 11px; font-weight: 700;
  opacity: 0.5;
}
.compass-tick.n { top: 6px; left: 50%; transform: translateX(-50%); }
.compass-tick.s { bottom: 6px; left: 50%; transform: translateX(-50%); }
.compass-tick.e { right: 8px; top: 50%; transform: translateY(-50%); }
.compass-tick.w { left: 8px; top: 50%; transform: translateY(-50%); }
.compass-needle {
  position: absolute; left: 50%; top: 50%;
  width: 4px; height: 80px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent) 50%, rgba(91,74,87,0.4) 50%, rgba(91,74,87,0.4) 100%);
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) rotate(150deg);
  border-radius: 4px;
}
.compass-sun {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  background: rgba(255,255,255,0.9);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.5);
}
.host-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; padding: 0 4px;
}
.host-stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 8px 6px;
  background: rgba(255,255,255,0.45);
  border-radius: 12px;
}
.hs-k { font-size: 10px; opacity: 0.55; letter-spacing: 0.08em; }
.hs-v { font-size: 14px; font-weight: 700; }

.host-slot {
  margin-top: 6px;
  display: flex; justify-content: center; align-items: center;
  min-height: 96px;
}

.host-foot {
  text-align: center; font-size: 11px; opacity: 0.45;
  margin-top: auto;
}

/* ── Triggers ─────────────────────────────────────── */
.trigger {
  position: relative;
  border: none; padding: 0;
  background: none; cursor: pointer;
  font-family: inherit;
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.trigger:active { transform: scale(0.97); }

.trigger-glow {
  position: absolute; inset: -22px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.45;
  filter: blur(10px);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50%      { transform: scale(1.08); opacity: 0.6; }
}

.trigger-label {
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.9);
  white-space: nowrap;
}

.trigger-sparkle {
  position: absolute;
  font-size: 14px;
  color: var(--accent3);
  animation: sparkle-twinkle 1.8s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 4px var(--accent3));
}
.trigger-sparkle.s1 { top: -6px; left: -10px; animation-delay: 0s; }
.trigger-sparkle.s2 { top: 8px; right: -14px; animation-delay: 0.6s; color: var(--accent); }
.trigger-sparkle.s3 { bottom: 22px; right: -4px; animation-delay: 1.2s; color: var(--accent2); }
@keyframes sparkle-twinkle {
  0%, 100% { transform: scale(0.4) rotate(0deg); opacity: 0; }
  50%      { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* gift trigger */
.gift-box {
  position: relative;
  width: 64px; height: 64px;
  animation: gift-bob 2.2s ease-in-out infinite;
  transform-origin: bottom center;
}
@keyframes gift-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}
.gift-body {
  position: absolute; bottom: 0; left: 4px;
  width: 56px; height: 44px;
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 75%, #000 8%) 100%);
  border-radius: 6px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.08);
}
.gift-lid {
  position: absolute; top: 10px; left: 0;
  width: 64px; height: 16px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 80%, #fff 20%) 0%, var(--accent) 100%);
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
.gift-ribbon-v {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 54px;
  background: var(--accent3);
}
.gift-ribbon-h {
  position: absolute; top: 18px; left: 0;
  width: 100%; height: 8px;
  background: var(--accent3);
}
.gift-bow {
  position: absolute; top: 0; width: 16px; height: 16px;
  background: var(--accent3);
  border-radius: 50% 50% 0 50%;
}
.gift-bow-l { left: 14px; transform: rotate(-30deg); }
.gift-bow-r { right: 14px; transform: rotate(30deg) scaleX(-1); }
.gift-bow-knot {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px;
  background: color-mix(in oklab, var(--accent3) 70%, #000 15%);
  border-radius: 50%;
}
.gift-shine {
  position: absolute; top: 14px; left: 12px;
  width: 8px; height: 24px;
  background: rgba(255,255,255,0.5);
  border-radius: 6px;
  transform: rotate(-15deg);
}

/* envelope trigger */
.env-mini {
  position: relative;
  width: 64px; height: 44px;
  animation: gift-bob 2.4s ease-in-out infinite;
}
.env-mini-body {
  position: absolute; inset: 0;
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.15);
}
.env-mini-flap {
  position: absolute; top: 0; left: 0;
  width: 0; height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-top: 22px solid color-mix(in oklab, var(--accent) 80%, #fff 20%);
  z-index: 2;
}
.env-mini-seal {
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

/* pill trigger */
.trigger-pill {
  flex-direction: row;
  background: var(--card);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.2);
  gap: 10px;
}
.trigger-pill .trigger-label {
  background: none; border: none; padding: 0;
  font-size: 14px;
}
.pill-emoji { font-size: 22px; animation: gift-bob 1.6s ease-in-out infinite; }

/* icon trigger */
.trigger-icon { padding: 8px; }
.icon-cake {
  font-size: 56px;
  animation: gift-bob 2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.15));
}

/* ── Opening animations ───────────────────────────── */
.opening-wrap {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 60%, var(--bg3));
}

/* envelope opening */
.envelope-stage {
  position: relative; width: 240px; height: 160px;
  animation: env-rise 1.8s cubic-bezier(.4,0,.2,1) forwards;
  perspective: 800px;
}
@keyframes env-rise {
  0%   { transform: translateY(40px) scale(0.7); opacity: 0; }
  20%  { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-12px) scale(1); opacity: 1; }
}
.envelope { position: absolute; inset: 0; }
.env-back {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--accent) 75%, #fff 25%);
  border-radius: 8px;
}
.env-letter {
  position: absolute;
  left: 12px; right: 12px; top: 12px; bottom: 12px;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.2);
  z-index: 2;
  animation: env-letter-out 1.8s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 0.4s;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
@keyframes env-letter-out {
  0%   { transform: translateY(0); }
  60%  { transform: translateY(-90px) scale(1); }
  100% { transform: translateY(-90px) scale(1.1); opacity: 0; }
}
.env-letter-inner { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.letter-line {
  height: 6px; border-radius: 3px;
  background: color-mix(in oklab, var(--ink) 12%, transparent);
}
.letter-line.l1 { width: 60%; }
.letter-line.l2 { width: 80%; }
.letter-line.l3 { width: 40%; }

.env-front {
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--accent) 65%, #fff 35%);
  border-radius: 8px;
  z-index: 3;
  clip-path: polygon(0 50%, 50% 100%, 100% 50%, 100% 100%, 0 100%);
}
.env-flap {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, 50% 55%, 100% 0);
  transform-origin: top center;
  z-index: 4;
  animation: env-flap-open 0.8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes env-flap-open {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(170deg); }
}
.env-seal {
  position: absolute; left: 50%; top: 38%;
  transform: translate(-50%, -50%);
  width: 26px; height: 26px;
  background: var(--accent3);
  border-radius: 50%;
  z-index: 5;
  display: grid; place-items: center;
  font-size: 14px; color: #fff;
  animation: env-seal-pop 0.4s ease-out forwards;
}
@keyframes env-seal-pop {
  0%   { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

/* gift opening */
.gift-stage {
  position: relative;
  width: 200px; height: 200px;
  animation: stage-bob 1.6s ease-out forwards;
}
@keyframes stage-bob {
  0%   { transform: scale(0.6); opacity: 0; }
  20%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 1; }
}
.big-gift { position: absolute; inset: 0; }
.big-gift-body {
  position: absolute; bottom: 0; left: 10%;
  width: 80%; height: 70%;
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 70%, #000 12%) 100%);
  border-radius: 10px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.08);
}
.big-gift-body .big-ribbon-v {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 18px;
  background: var(--accent3);
  transform: translateX(-50%);
}
.big-gift-lid {
  position: absolute; top: 22%; left: 4%;
  width: 92%; height: 22%;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 80%, #fff 20%) 0%, var(--accent) 100%);
  border-radius: 8px;
  z-index: 3;
  transform-origin: center;
  animation: big-lid-fly 1.6s cubic-bezier(.5,-0.2,.4,1.5) forwards;
}
@keyframes big-lid-fly {
  0%   { transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(-30px) rotate(-8deg); }
  100% { transform: translateY(-200px) rotate(-25deg); opacity: 0; }
}
.big-gift-lid .big-ribbon-v {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 18px;
  background: var(--accent3);
  transform: translateX(-50%);
}
.big-bow {
  position: absolute; left: 50%; top: -16px; transform: translateX(-50%);
  width: 56px; height: 24px;
}
.big-bow-l, .big-bow-r {
  position: absolute; top: 0; width: 24px; height: 24px;
  background: var(--accent3);
  border-radius: 50% 50% 0 50%;
}
.big-bow-l { left: 0; transform: rotate(-30deg); }
.big-bow-r { right: 0; transform: rotate(30deg) scaleX(-1); }
.big-bow-knot {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px;
  background: color-mix(in oklab, var(--accent3) 70%, #000 18%);
  border-radius: 50%;
}
.big-gift-burst {
  position: absolute; top: 22%; left: 0; width: 100%;
  display: flex; justify-content: space-around;
  font-size: 28px;
  pointer-events: none;
  z-index: 2;
}
.big-gift-burst span {
  display: inline-block;
  color: var(--accent3);
  filter: drop-shadow(0 0 8px var(--accent3));
  animation: burst-out 1.2s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
.big-gift-burst span:nth-child(1) { --bx: -90px; --by: -60px; animation-delay: 0.4s; color: var(--accent); }
.big-gift-burst span:nth-child(2) { --bx: -40px; --by: -120px; animation-delay: 0.5s; color: var(--accent2); }
.big-gift-burst span:nth-child(3) { --bx: 0px;   --by: -150px; animation-delay: 0.55s; color: var(--accent3); }
.big-gift-burst span:nth-child(4) { --bx: 50px;  --by: -120px; animation-delay: 0.6s; color: var(--accent); }
.big-gift-burst span:nth-child(5) { --bx: 100px; --by: -60px; animation-delay: 0.7s; color: var(--accent2); }
@keyframes burst-out {
  0%   { transform: translate(0,0) scale(0.4) rotate(0deg); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(1.3) rotate(180deg); opacity: 0; }
}

/* card flip opening */
.fold-stage {
  position: relative; width: 200px; height: 260px;
  perspective: 1000px;
  animation: stage-bob 1.6s ease-out forwards;
}
.fold-card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  animation: fold-flip 1.5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fold-flip {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(-160deg); }
}
.fold-front, .fold-back {
  position: absolute; inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.25);
}
.fold-front {
  background: var(--accent);
  color: #fff;
  transform-origin: left center;
}
.fold-front-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-weight: 700;
}
.fold-front-mark { font-size: 22px; color: var(--accent3); }
.fold-front-text { font-size: 18px; letter-spacing: 0.1em; }
.fold-back {
  background: var(--card);
  transform: rotateY(180deg);
  transform-origin: left center;
}
.fold-content {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fold-cake { font-size: 48px; }
.fold-hbd {
  font-size: 22px; font-weight: 800;
  color: var(--accent);
  text-align: center; line-height: 1.05;
}

/* ── Reveal screen ────────────────────────────────── */
.reveal {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
  overflow: hidden;
  animation: reveal-in 0.6s ease-out;
}
@keyframes reveal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal-card {
  position: relative; z-index: 5;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  padding: 28px 24px 22px;
  width: 100%;
  max-width: 420px;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  box-shadow: 0 30px 60px -25px rgba(80, 40, 60, 0.3);
  animation: card-pop 0.8s cubic-bezier(.5,-0.2,.3,1.4) backwards;
  animation-delay: 0.2s;
}
@keyframes card-pop {
  0%   { transform: scale(0.4) translateY(40px); opacity: 0; }
  60%  { transform: scale(1.05) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.reveal-cake {
  position: relative;
  width: 110px; height: 110px;
  margin-top: 4px;
}
.cake-plate {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 12px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
}
.cake-tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 8px; }
.cake-bottom {
  bottom: 8px; width: 96px; height: 38px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,0.08);
}
.cake-drip {
  position: absolute; top: -6px; left: 0; right: 0;
  height: 14px;
  background: var(--card);
  border-radius: 6px 6px 18px 18px / 6px 6px 18px 18px;
  clip-path: polygon(0 50%, 8% 100%, 16% 50%, 24% 90%, 32% 50%, 40% 95%, 48% 50%, 56% 90%, 64% 50%, 72% 95%, 80% 50%, 88% 90%, 96% 50%, 100% 90%, 100% 0, 0 0);
}
.cake-top {
  bottom: 46px; width: 70px; height: 28px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
}
.cake-candle {
  position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 18px; border-radius: 2px;
}
.cake-flame {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 12px;
  background: linear-gradient(180deg, #FFE066 0%, #FF8A33 70%, #FF5A33 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flame-flicker 0.6s ease-in-out infinite alternate;
}
.cake-flame-glow {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px;
  background: radial-gradient(circle, rgba(255,200,80,0.7) 0%, transparent 70%);
  filter: blur(2px);
  animation: flame-flicker 0.6s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  0%   { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

.reveal-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; font-weight: 800;
  margin-top: 4px;
}
.reveal-title {
  display: flex; flex-direction: column; align-items: center;
  font-size: 36px; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
}
.rt-line {
  display: inline-block;
  animation: title-pop 0.7s cubic-bezier(.5,-0.2,.3,1.4) backwards;
}
.rt-line:nth-child(1) { animation-delay: 0.5s; }
.rt-line:nth-child(2) { animation-delay: 0.7s; color: var(--accent); }
@keyframes title-pop {
  0%   { transform: translateY(20px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.reveal-sub {
  font-size: 14px; opacity: 0.65;
  animation: title-pop 0.7s cubic-bezier(.5,-0.2,.3,1.4) backwards;
  animation-delay: 0.9s;
}
.reveal-replay {
  margin-top: 10px;
  background: rgba(255,255,255,0.6);
  border: 1.5px solid;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  animation: title-pop 0.7s cubic-bezier(.5,-0.2,.3,1.4) backwards;
  animation-delay: 1.1s;
}
.reveal-replay:active { transform: scale(0.96); }

/* ── Confetti ─────────────────────────────────────── */
.confetti-layer, .balloon-layer, .sparkle-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.confetti {
  position: absolute; top: -20px;
  display: block;
  animation-name: confetti-fall;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.confetti-rect { border-radius: 2px; }
.confetti-circle { border-radius: 50%; }
.confetti-strip { border-radius: 4px; }
@keyframes confetti-fall {
  0%   { transform: translate(0, -10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(var(--drift), 110vh) rotate(calc(var(--rot) + 720deg)); opacity: 1; }
}

/* ── Balloons ─────────────────────────────────────── */
.balloon {
  position: absolute; bottom: -120px;
  display: flex; flex-direction: column; align-items: center;
  animation-name: balloon-rise;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
@keyframes balloon-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-130vh) translateX(20px); opacity: 0; }
}
.balloon-body {
  border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  position: relative;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,0.06);
  animation: balloon-sway var(--sway) ease-in-out infinite alternate;
}
.balloon-shine {
  position: absolute; top: 14%; left: 22%;
  width: 18%; height: 24%;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  filter: blur(1px);
}
@keyframes balloon-sway {
  0%   { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}
.balloon-knot {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid;
  margin-top: -2px;
}
.balloon-string {
  width: 1px; height: 60px;
  background: rgba(0,0,0,0.25);
}

/* ── Sparkles ─────────────────────────────────────── */
.sparkle {
  position: absolute;
  animation: sparkle-twinkle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

/* ── Tweaks panel polish (override defaults if needed) ── */
.twk-panel { font-family: inherit; }
