/* ═══════════════════════════════════════════════════════════
   MindClub Birthday — style.css v4.0
   PREMIUM INTERACTIVE GAME EDITION
═══════════════════════════════════════════════════════════ */

/* Fonts via <link> in HTML */

/* ── RESET & TOKENS ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06061a;
  --bg2: #0d0d2b;
  --c1: #a855f7;
  /* purple */
  --c2: #ec4899;
  /* pink */
  --c3: #facc15;
  /* gold */
  --c4: #38bdf8;
  /* sky */
  --c5: #10b981;
  /* emerald */
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.45);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-b: rgba(255, 255, 255, 0.12);
  --glass-h: rgba(255, 255, 255, 0.09);
  --radius: 20px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  --glow1: 0 0 30px rgba(168, 85, 247, 0.4);
  --glow2: 0 0 30px rgba(236, 72, 153, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── CANVAS ── */
#cvs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── AURORA ── */
.aurora {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  animation: blobMove ease-in-out infinite alternate;
}

.a1 {
  width: 65vw;
  height: 65vw;
  max-width: 700px;
  max-height: 700px;
  top: -20%;
  left: -14%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38) 0%, transparent 70%);
  animation-duration: 13s;
}

.a2 {
  width: 55vw;
  height: 55vw;
  max-width: 620px;
  max-height: 620px;
  bottom: -18%;
  right: -10%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.32) 0%, transparent 70%);
  animation-duration: 17s;
  animation-delay: -7s;
}

.a3 {
  width: 38vw;
  height: 38vw;
  max-width: 400px;
  max-height: 400px;
  top: 40%;
  left: 58%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  animation-duration: 11s;
  animation-delay: -3s;
}

/* ── FLOATERS ── */
#floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floater {
  position: absolute;
  font-size: var(--fs, 1.6rem);
  bottom: -80px;
  left: var(--x, 50%);
  animation: floatUp linear both;
  animation-duration: var(--dur, 10s);
  animation-delay: var(--del, 0s);
  pointer-events: none;
  opacity: 0.8;
}

.sparkle {
  position: absolute;
  width: var(--sz, 5px);
  height: var(--sz, 5px);
  border-radius: 50%;
  background: var(--col, #fff);
  top: -10px;
  left: var(--x, 50%);
  animation: sparkFall linear infinite;
  animation-duration: var(--dur, 6s);
  animation-delay: var(--del, 0s);
  pointer-events: none;
}

/* ── MUSIC BUTTON ── */
.music-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  box-shadow: var(--glow1);
}

.music-btn:hover {
  transform: scale(1.13);
  background: rgba(255, 255, 255, 0.1);
}

.music-btn.playing {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.4));
  animation: pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════════════
   SCREENS
══════════════════════════════════════════════ */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: screenIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes screenOut {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: scale(0.92) translateY(-18px);
  }
}

/* ══════════════════════════════════════════════
   ERROR SCREEN
══════════════════════════════════════════════ */
.error-wrap {
  max-width: 500px;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(239, 68, 68, 0.18);
}

.error-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.error-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 3px;
  color: #f87171;
  margin-bottom: 1rem;
}

.error-sub {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.error-badge {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f87171;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════════ */
.splash-wrap {
  max-width: 560px;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
}

.splash-from {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 0.1s both;
}

/* Envelope */
.envelope-container {
  cursor: pointer;
  display: inline-block;
  margin-bottom: 2rem;
  animation: floatBob 3s ease-in-out infinite;
  outline: none;
}

.envelope-container:focus .envelope {
  box-shadow: 0 0 0 3px var(--c1);
}

.envelope {
  position: relative;
  width: 220px;
  height: 160px;
  background: linear-gradient(160deg, #1e1040, #2a1060);
  border: 2px solid rgba(168, 85, 247, 0.5);
  border-radius: 14px;
  margin: 0 auto 1rem;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.35), 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: visible;
}

.envelope:hover,
.envelope-container:focus .envelope {
  transform: scale(1.06) rotate(-2deg);
  box-shadow: 0 0 90px rgba(168, 85, 247, 0.55), 0 25px 70px rgba(0, 0, 0, 0.6);
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(160deg, #2d1270, #1e1040);
  clip-path: polygon(0 0, 50% 60%, 100% 0);
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  transform-origin: top center;
  transition: transform 0.4s ease;
}

.envelope:hover .envelope-flap,
.envelope-container:focus .envelope-flap {
  transform: rotateX(-150deg);
}

.envelope-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.envelope-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  border-radius: 14px;
  animation: shineSweep 3s ease-in-out infinite;
}

.envelope-hint {
  font-size: 0.88rem;
  color: var(--c1);
  letter-spacing: 0.5px;
  animation: pulse 2.5s ease-in-out infinite;
}

.splash-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.8rem;
  animation: fadeUp 0.6s 0.4s both;
}

.splash-mystery {
  font-size: 0.85rem;
  color: var(--muted);
  animation: fadeUp 0.6s 0.6s both;
}

/* ══════════════════════════════════════════════
   GAME SCREEN
══════════════════════════════════════════════ */
.game-wrap {
  max-width: 580px;
  width: 100%;
  padding: 1.5rem;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 10px var(--c1);
  animation: pulse 2s infinite;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-score-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 50px;
  padding: 0.3rem 1rem;
}

.score-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.score-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--c3);
}

/* Progress */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  border-radius: 10px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.question-counter {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  text-align: center;
}

/* Question card */
.question-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  transition: transform 0.2s;
}

.question-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.question-text {
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 420px) {
  .answers-grid {
    grid-template-columns: 1fr;
  }
}

.answer-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
  line-height: 1.4;
}

.answer-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

.answer-btn.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--c5);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.answer-btn.wrong {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  animation: shake 0.45s ease;
}

.answer-btn:disabled {
  cursor: default;
  transform: none;
}

.answer-feedback {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.4rem;
  margin-top: 1rem;
  transition: opacity 0.3s;
}

.answer-feedback.correct {
  color: #6ee7b7;
}

.answer-feedback.wrong {
  color: #fca5a5;
}

.game-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ══════════════════════════════════════════════
   REVEAL SCREEN
══════════════════════════════════════════════ */
.reveal-wrap {
  max-width: 760px;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
}

.reveal-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.5s both;
}

.reveal-big {
  line-height: 0.9;
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.1s both;
}

.reveal-happy {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 18vw, 10rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(160deg, #fff 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-event {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 18vw, 10rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--c1), var(--c2), var(--c3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reveal-name-box {
  margin-bottom: 1.4rem;
  animation: scaleIn 0.9s 0.4s both;
}

.reveal-name-label {
  font-size: 0.73rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.reveal-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 10vw, 6rem);
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 20%, var(--c3) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.1em;
}

.reveal-underline {
  height: 3px;
  width: 0;
  margin: 0.7rem auto 0;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3));
  border-radius: 10px;
  animation: expandW 1.2s 1s both;
}

.reveal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 50px;
  padding: 0.38rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c1);
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s 0.7s both;
}

.reveal-message-box {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  animation: fadeUp 0.6s 0.9s both;
}

.reveal-msg {
  font-size: clamp(0.88rem, 2.3vw, 1rem);
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.7rem;
}

.reveal-sub {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  line-height: 1.75;
}

.reveal-sub em {
  color: var(--c3);
}

/* Funny box */
.funny-box {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  animation: fadeUp 0.6s 1.1s both;
  display: none;
}

.funny-box.show {
  display: block;
}

/* Sanskrit row */
.sanskrit-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s 1.2s both;
}

.sanskrit-row span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: border-color 0.2s, color 0.2s;
}

.sanskrit-row span:hover {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--c1);
}

/* ══════════════════════════════════════════════
   PHOTO UPLOAD SCREEN
══════════════════════════════════════════════ */
.photo-wrap {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: 1.5rem;
}

.photo-header {
  margin-bottom: 2rem;
}

.photo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.photo-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.photo-upload-area {
  display: block;
  cursor: pointer;
  border: 2px dashed rgba(168, 85, 247, 0.45);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  text-align: center;
}

.photo-upload-area:hover {
  border-color: var(--c1);
  background: rgba(168, 85, 247, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.2);
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
}

.upload-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c1);
  margin-bottom: 0.4rem;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.photo-preview-wrap {
  margin-bottom: 1.5rem;
  text-align: center;
}

.photo-preview-wrap img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c1);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  margin-bottom: 0.8rem;
}

.btn-change {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-change:hover {
  border-color: var(--c1);
  color: var(--c1);
}

.btn-skip {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  margin-top: 0.5rem;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-skip:hover {
  color: var(--muted);
}

/* ══════════════════════════════════════════════
   CERTIFICATE SCREEN
══════════════════════════════════════════════ */
.cert-wrap {
  max-width: 720px;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
}

.cert-top-label {
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c3);
  margin-bottom: 1.4rem;
  animation: fadeUp 0.5s both;
}

.cert-container {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-b);
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

#certCanvas {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  border-radius: 16px;
}

.cert-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.cert-footer-msg {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1.8;
}

.cert-footer-msg .tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
  font-style: italic;
  margin-top: 0.3rem;
}

/* ══════════════════════════════════════════════
   SHARED BUTTONS
══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2.2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 6px 30px rgba(168, 85, 247, 0.4);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.6);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 0.9rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blobMove {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(38px, 28px) scale(1.08);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.75;
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-50vh) translateX(var(--dx, 8px)) rotate(var(--dr, 6deg));
  }

  100% {
    transform: translateY(-105vh) rotate(0deg);
    opacity: 0;
  }
}

@keyframes sparkFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(105vh) rotate(540deg);
    opacity: 0;
  }
}

@keyframes expandW {
  from {
    width: 0;
  }

  to {
    width: 80px;
  }
}

@keyframes shineSweep {
  0% {
    left: -80%;
  }

  100% {
    left: 120%;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes certAppear {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .envelope {
    width: 180px;
    height: 130px;
  }

  .envelope-flap {
    height: 72px;
  }

  .reveal-wrap {
    padding: 1.2rem 1rem;
  }

  .a1 {
    width: 90vw;
    height: 90vw;
  }

  .a2 {
    width: 75vw;
    height: 75vw;
  }

  .a3 {
    display: none;
  }

  .cert-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

@media (max-width:380px) {
  .sanskrit-row span {
    font-size: 0.68rem;
    padding: 0.25rem 0.7rem;
  }

  .reveal-happy,
  .reveal-event {
    font-size: clamp(3.5rem, 16vw, 9rem);
  }
}