/* ===================================================================
   Birthday page for Rida — cute / playful, gradual reveal
   =================================================================== */

:root {
  --pink:        #ff9ec4;
  --pink-deep:   #ff6fa5;
  --lavender:    #c9a7ff;
  --cream:       #fff6fb;
  --ink:         #5a3d52;
  --shadow:      0 10px 30px rgba(180, 90, 140, 0.25);
  --font-head:   "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body:   "Quicksand", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fde7f2;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.6-9.3-9C1 8.5 2.8 5 6.2 5c2 0 3.2 1.1 3.8 2 .6-.9 1.8-2 3.8-2 3.4 0 5.2 3.5 3.5 7-2.3 4.4-9.3 9-9.3 9z' fill='%23ff6fa5' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 6 4, auto;
}

/* cute heart cursor on anything clickable */
a, button, .heart, .cake-btn, input[type="range"],
[role="button"], label, .vs-card, .alias-card, .gift-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.6-9.3-9C1 8.5 2.8 5 6.2 5c2 0 3.2 1.1 3.8 2 .6-.9 1.8-2 3.8-2 3.4 0 5.2 3.5 3.5 7-2.3 4.4-9.3 9-9.3 9z' fill='%23ff3d8a' stroke='%23fff' stroke-width='1.5'/%3E%3Ccircle cx='19' cy='5' r='2' fill='%23ffd166'/%3E%3C/svg%3E") 8 6, pointer;
}

/* When the gate is up, lock scrolling */
body.locked { overflow: hidden; height: 100vh; }

/* ============================ GATE ============================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  background:
    linear-gradient(rgba(40, 10, 50, 0.45), rgba(40, 10, 50, 0.55)),
    url("05ECE53A-D862-4FCB-B7BA-CFAF6D375487.jpg") center / cover no-repeat;
  color: #fff;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.gate.hidden {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.heart-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.gate-content {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  pointer-events: none; /* let clicks pass to hearts behind text area */
}
.gate-content > * { pointer-events: auto; }

.gate-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.6rem;
}
.gate-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.4rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.8rem;
}
.gate-instructions {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 1.6rem;
  opacity: 0.95;
}
.counter {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.counter-track {
  width: min(20rem, 80vw);
  height: 12px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}
.counter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* falling hearts */
.heart {
  position: absolute;
  top: -3rem;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 2px 6px rgba(255, 120, 170, 0.6));
  animation-name: fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  transition: transform 0.15s ease, opacity 0.3s ease;
  will-change: transform, top;
}
.heart:hover { transform: scale(1.2); }
.heart.pop {
  animation: none;
  transform: scale(2);
  opacity: 0;
  pointer-events: none;
}
@keyframes fall {
  from { top: -3rem; }
  to   { top: 110vh; }
}

/* ============================ HERO ============================ */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(circle at 50% 20%, #ffd9ec, #fbb6d6 60%, #e79ec8);
}
.hero-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease 0.2s, transform 1s ease 0.2s;
}
.hero.show .hero-inner { opacity: 1; transform: none; }

.hero-sticker {
  width: min(320px, 70vw);
  height: auto;
  mix-blend-mode: multiply;
  animation: bob 3.5s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 9vw, 5rem);
  line-height: 1.05;
  color: var(--pink-deep);
  text-shadow: 0 4px 0 #fff, 0 6px 16px rgba(255, 110, 165, 0.4);
  margin-top: 0.5rem;
}
.hero-title .name {
  background: linear-gradient(90deg, var(--pink-deep), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scroll-cue {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.8;
}
.scroll-cue .arrow {
  font-size: 1.6rem;
  animation: bounce 1.6s ease-in-out infinite;
}

/* ========================== SECTIONS ========================== */
section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  position: relative;
}
/* shared flowers background for the image sections */
.section-tulips,
.section-plain,
.section-fireworks {
  background: linear-gradient(rgba(255, 240, 245, 0.45), rgba(255, 220, 235, 0.6)),
    url("0B639BCA-6ED1-420E-9218-0A3E9A238394.jpg") center / cover no-repeat fixed;
}

/* card with reveal animation */
.card {
  max-width: 34rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(4px);
}
.card-glow {
  background: rgba(255, 250, 253, 0.95);
  box-shadow: 0 0 50px rgba(255, 160, 210, 0.6), var(--shadow);
}

.reveal .card { /* initial hidden state lives on the section via JS */ }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* cards holding a white-background sticker need a solid white backing so the
   multiply blend resolves against pure white (no flowers bleeding through, no dark edge) */
.card:has(.sticker) {
  background: #fff;
  backdrop-filter: none;
}

.sticker {
  width: min(240px, 60vw);
  height: auto;
  margin-bottom: 1.2rem;
  background: #fff;
  border-radius: 14px;
  mix-blend-mode: multiply;
  animation: bob 4s ease-in-out infinite;
}
.msg {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--pink-deep);
}
.msg-sub {
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
}
.msg.light { color: #fff; }

/* finale text colors (over glow card) */
.finale-kicker {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.5rem;
}
.finale-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--pink-deep);
  margin-bottom: 1rem;
}
.card-glow .msg.light { color: var(--ink); }
.signoff {
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--lavender);
}

/* ====================== "VS" SHOWDOWN ====================== */
.section-vs {
  background: linear-gradient(160deg, #fff0f7 0%, #ffe3f1 45%, #ece1ff 100%);
}
.vs-wrap {
  width: min(60rem, 100%);
  text-align: center;
}
.vs-pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.vs-heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.4rem);
  color: var(--pink-deep);
  text-shadow: 0 3px 0 #fff, 0 5px 14px rgba(255, 110, 165, 0.35);
  margin-bottom: 2rem;
}
.vs-heading .vs-amp {
  color: var(--lavender);
  font-style: italic;
}

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.vs-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  height: 100%;
}
.vs-sigma  { border: 3px solid rgba(201, 167, 255, 0.5); }
.vs-pookie { border: 3px solid rgba(255, 158, 196, 0.55); }

.vs-avatar {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9ec, #e7d6ff);
  box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(180, 90, 140, 0.25);
}
.vs-avatar-img {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 0.9rem;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(180, 90, 140, 0.25);
}
.vs-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.vs-pookie .vs-name { color: var(--pink-deep); }
.vs-sigma  .vs-name { color: #8a63d6; }

.vs-list {
  list-style: none;
  text-align: left;
  display: grid;
  gap: 0.85rem;
}
.vs-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  line-height: 1.45;
}
.vs-list li > span { flex: none; font-size: 1.2rem; }
.vs-list li > .vs-li-text { flex: 1 1 auto; min-width: 0; font-size: inherit; }
.vs-list em {
  display: block;
  font-size: 0.92em;
  color: var(--pink-deep);
  font-style: normal;
  opacity: 0.9;
  margin-top: 0.15rem;
}

.vs-divider {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  box-shadow: 0 6px 16px rgba(180, 90, 140, 0.4);
}

@media (max-width: 640px) {
  .vs-grid { grid-template-columns: 1fr; }
  .vs-divider { margin: -0.2rem auto; }
}

/* ===================== MEMORIES (polaroid scrapbook) ===================== */
.section-memories {
  background: linear-gradient(160deg, #fff0f7 0%, #ffe3f1 50%, #f3e0ff 100%);
}
.mem-wrap { width: min(66rem, 100%); text-align: center; }

.mem-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem 1rem;
  /* width fits exactly 3 polaroids (3×15rem + 2 gaps) so the 4th & 5th wrap to a second row */
  max-width: 48rem;
  margin: 1rem auto 0;
}
.polaroid {
  background: #fff;
  padding: 0.7rem 0.7rem 0;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(180, 90, 140, 0.28);
  width: min(15rem, 80vw);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: #f6eef4;
}
.polaroid figcaption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.6rem 0.3rem 0.8rem;
  line-height: 1.3;
}
/* playful tilts */
.p-a { transform: rotate(-4deg); }
.p-b { transform: rotate(3deg); margin-top: 1.4rem; }
.p-c { transform: rotate(-2deg); }
.p-d { transform: rotate(4deg); margin-top: 1rem; }
.p-e { transform: rotate(-3deg); }
.polaroid:hover {
  transform: rotate(0) scale(1.05);
  box-shadow: 0 16px 34px rgba(180, 90, 140, 0.4);
  z-index: 2;
}

@media (max-width: 480px) {
  .polaroid { width: 86vw; transform: rotate(0) !important; margin-top: 0 !important; }
}

/* ===================== STATS (Bubbles vs Outsider) ===================== */
.section-stats {
  background: linear-gradient(rgba(255, 240, 245, 0.45), rgba(255, 220, 235, 0.6)),
    url("0B639BCA-6ED1-420E-9218-0A3E9A238394.jpg") center / cover no-repeat fixed;
}
.stats-wrap {
  width: min(60rem, 100%);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  padding: 2.2rem clamp(1rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  text-align: center;
}
.stat-bubbles  { border-color: rgba(255, 158, 196, 0.55); }
.stat-outsider { border-color: rgba(201, 167, 255, 0.55); }

.stat-avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.6rem;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9ec, #e7d6ff);
  box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(180, 90, 140, 0.25);
}
.stat-photo {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.6rem;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 3px #fff, 0 6px 16px rgba(180, 90, 140, 0.25);
}
.stat-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  margin-bottom: 1.1rem;
}
.stat-bubbles  .stat-name { color: var(--pink-deep); }
.stat-outsider .stat-name { color: #8a63d6; }

.stat-list { list-style: none; display: grid; gap: 0.55rem; }
.stat-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2rem;
  align-items: center;
  gap: 0.6rem;
}
.stat-label {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-bar {
  height: 11px;
  border-radius: 999px;
  background: rgba(201, 167, 255, 0.22);
  overflow: hidden;
}
.stat-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* bars fill once the grid is switched on */
.stats-grid.stats-on .stat-bar > i { width: var(--w); }
.stat-outsider .stat-bar > i {
  background: linear-gradient(90deg, var(--lavender), #8a63d6);
}
.stat-list b {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--pink-deep);
  text-align: right;
}
.stat-outsider .stat-list b { color: #8a63d6; }

.stats-winner {
  margin-top: 1.6rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink);
}
.stats-winner s { color: #b99; }
.stats-winner em { color: var(--lavender); font-style: italic; }
.stats-winner strong { color: var(--pink-deep); font-family: var(--font-head); }

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-list li { grid-template-columns: 5.5rem 1fr 1.8rem; }
}

/* reveal buttons + step visibility */
.cta-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  margin: 1rem auto;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn:hover { transform: translateY(-2px) scale(1.03); }
.cta-gold { background: linear-gradient(135deg, #ffb347, #ff8fb0); margin-top: 1.6rem; }
.is-hidden { display: none !important; }
.fake-win { color: #c9a7ff; }
.stats-winner.pop { animation: winnerPop 0.6s ease; }
@keyframes winnerPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

/* ================= "THE MANY NAMES" (hover reveal) ================= */
.section-aliases {
  background: linear-gradient(160deg, #ece1ff 0%, #ffe3f1 55%, #fff0f7 100%);
}
.aliases-wrap {
  width: min(64rem, 100%);
  text-align: center;
}
.aliases-hint {
  margin: -1rem 0 1.6rem;
  font-size: 0.95rem;
  color: var(--lavender);
  font-weight: 600;
}

.aliases-grid {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  min-height: 22rem;
}
.alias-card {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.8rem 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: flex-grow 0.5s ease, box-shadow 0.4s ease, transform 0.3s ease, border-color 0.3s ease;
}
.alias-1 { border-color: rgba(255, 158, 196, 0.45); }
.alias-2 { border-color: rgba(201, 167, 255, 0.5); }
.alias-3 { border-color: rgba(138, 99, 214, 0.4); }

.alias-emoji {
  font-size: 2.6rem;
  margin-bottom: auto;
  transition: transform 0.4s ease;
}
.alias-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--pink-deep);
  line-height: 1.2;
}
.alias-2 .alias-name { color: #8a63d6; }
.alias-3 .alias-name { color: #6b4bb3; }

.alias-body {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  transition: opacity 0.4s ease, max-height 0.55s ease, margin 0.4s ease;
}
.alias-body p + p { margin-top: 0.7rem; }

/* reveal on hover / keyboard focus */
.alias-card:hover,
.alias-card:focus-within {
  flex-grow: 3;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(180, 90, 140, 0.35);
}
.alias-card:hover .alias-emoji,
.alias-card:focus-within .alias-emoji { transform: scale(1.15); }
.alias-card:hover .alias-body,
.alias-card:focus-within .alias-body {
  opacity: 1;
  max-height: 22rem;
  margin: 0.4rem 0 0.6rem;
}

/* touch / small screens: no hover — stack and show everything */
@media (hover: none), (max-width: 760px) {
  .aliases-grid { flex-direction: column; }
  .alias-card { flex: none; }
  .alias-body { opacity: 1; max-height: none; margin: 0.4rem 0 0.6rem; }
  .aliases-hint { display: none; }
}

/* ===================== AUDIO CONTROLS ===================== */
.audio-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.mute-btn {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex: none;
}
.mute-btn:hover { transform: scale(1.1); }

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 6.5rem;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pink-deep);
  box-shadow: 0 2px 5px rgba(180, 90, 140, 0.4);
}
.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--pink-deep);
}

@media (max-width: 480px) {
  .volume-slider { width: 4.5rem; }
}

/* =========================== GIFT =========================== */
.gift-zone { margin-top: 1rem; }

/* big tappable cake */
.cake-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
  background: none;
  border: none;
  cursor: pointer;
}
.cake-emoji {
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  filter: drop-shadow(0 12px 22px rgba(255, 110, 165, 0.5));
  animation: bob 2.6s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.cake-btn:hover .cake-emoji { transform: scale(1.08) rotate(-3deg); }
.cake-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pink-deep);
  animation: bounce 1.8s ease-in-out infinite;
}
.gift-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-deep), var(--lavender));
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 110, 165, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gift-btn:hover { transform: translateY(-3px) scale(1.04); }
.gift-cake { font-size: 1.6rem; animation: bob 2.5s ease-in-out infinite; }

.gift-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  animation: winnerPop 0.6s ease;
}
.gift-video {
  width: min(20rem, 80vw);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(180, 90, 140, 0.4);
  background: #ffd9ec;
}
.gift-caption {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--pink-deep);
  font-size: 1.05rem;
}

/* ==================== DISCORD-STYLE TOASTS ==================== */
.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 58;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: #2b2d31;
  color: #f2f3f5;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--pink);
  width: 100%;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-avatar {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #5865f2, #7a86ff);
}
.toast-content { min-width: 0; }
.toast-head {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}
.toast-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.toast-time { font-size: 0.7rem; color: #b5bac1; }
.toast-body {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #dbdee1;
  white-space: pre-line;
}

/* ========================== CONFETTI ========================== */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

/* ========================== KEYFRAMES ========================= */
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* float hearts in finale */
.float-heart {
  position: fixed;
  bottom: -2rem;
  z-index: 40;
  font-size: 1.5rem;
  pointer-events: none;
  animation: floatUp linear forwards;
}
@keyframes floatUp {
  to { transform: translateY(-115vh); opacity: 0; }
}

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

@media (max-width: 480px) {
  .card { padding: 2rem 1.25rem; border-radius: 22px; }
}
