/* ============================================================
   ROMANTIC PROPOSAL & LOVE CONFESSION FOR MAYURI
   Exquisite aesthetics, soft pastels, dedicated Shayari & playful dodge
   ============================================================ */

:root {
  --bg-dark-1: #150910;
  --bg-dark-2: #240d1a;
  --bg-dark-3: #1a0814;
  --card-bg: #fffbf9;
  --card-border: #f8dedb;
  --card-corner-accent: #f48fb1;
  
  --primary-rose: #d81b60;
  --primary-deep: #ad1457;
  --primary-soft: #fce4ec;
  --accent-pink: #f06292;
  --btn-yes-bg: #fad3dc;
  --btn-yes-text: #961741;
  --btn-yes-hover: #f7bdcc;
  --btn-no-bg: #f3ebec;
  --btn-no-text: #4e4044;
  
  --gold-accent: #d4af37;
  --gold-gradient: linear-gradient(135deg, #ffd700, #ffb300, #e67e22);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Dancing Script', cursive;

  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 45px rgba(233, 30, 99, 0.12);
  --shadow-soft: 0 10px 25px rgba(216, 27, 96, 0.15);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 30%, #381224 0%, var(--bg-dark-2) 45%, var(--bg-dark-1) 100%);
  color: #2b2326;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 16px;
}

/* Ambient Particles Canvas */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Discreet Floating Romantic Music Disc */
.music-disc-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.music-disc-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
}

.music-disc-btn.playing {
  background: rgba(233, 30, 99, 0.35);
  border-color: rgba(255, 128, 171, 0.7);
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.45);
}

.music-disc-btn.playing .disc-icon {
  display: inline-block;
  animation: spinMusic 3.5s linear infinite;
}

@keyframes spinMusic {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Main Container */
.experience-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 30px;
}

/* Standard Stage Card */
.stage-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 36px;
  box-shadow: var(--shadow-card);
  padding: 38px 28px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
  opacity: 1;
  margin: auto;
}

.stage-card.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.92);
}

/* Delicate Card Corner Ornaments */
.card-ornament {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--card-corner-accent);
  border-style: solid;
  opacity: 0.7;
  pointer-events: none;
}

.card-ornament.top-left {
  top: 16px;
  left: 16px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 12px;
}

.card-ornament.top-right {
  top: 16px;
  right: 16px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 12px;
}

.card-ornament.bottom-left {
  bottom: 16px;
  left: 16px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 12px;
}

.card-ornament.bottom-right {
  bottom: 16px;
  right: 16px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 12px;
}

/* Character Container */
.card-character-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 22px;
}

.card-character-container.small {
  margin-bottom: 14px;
}

.card-character-container.small .character-img {
  width: 125px;
  height: 125px;
}

.character-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(220, 80, 120, 0.12);
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Speech Bubble above panda */
.speech-bubble {
  position: absolute;
  top: -14px;
  background: #ffffff;
  border: 1.5px solid #f8bbd0;
  color: #ad1457;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  animation: bubblePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 20;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1.5px solid #f8bbd0;
  border-bottom: 1.5px solid #f8bbd0;
}

.speech-bubble.hidden {
  display: none;
}

@keyframes bubblePop {
  0% { transform: scale(0.6) translateY(10px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Character Animations */
.float-anim {
  animation: gentleFloat 3.5s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1deg); }
}

.bounce-anim {
  animation: happyBounce 2s ease-in-out infinite;
}

@keyframes happyBounce {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.pulse-anim {
  animation: heartPulse 2.2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.celebration-bounce {
  animation: cheerDance 1.6s ease-in-out infinite;
}

@keyframes cheerDance {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  25% { transform: translateY(-10px) rotate(-3deg) scale(1.03); }
  75% { transform: translateY(-6px) rotate(3deg) scale(1.03); }
}

/* Typography */
.card-content {
  width: 100%;
  margin-bottom: 24px;
}

.card-greeting {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary-rose);
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.card-subhead {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #3b2c31;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-prompt {
  font-size: 1.05rem;
  color: #7b696e;
  font-weight: 400;
}

.badge-pill {
  display: inline-block;
  background: #fce4ec;
  color: #c2185b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid #f8bbd0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #2e1d23;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.92rem;
  color: #735d64;
}

/* Button Container & Pill Buttons */
.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  position: relative;
  min-height: 60px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 32px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  outline: none;
}

.btn:active {
  transform: scale(0.95);
}

/* Pill YES Button */
.btn-yes {
  background: var(--btn-yes-bg);
  color: var(--btn-yes-text);
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.16);
}

.btn-yes:hover {
  background: var(--btn-yes-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.25);
}

.pulse-glow {
  animation: softPulse 2.4s infinite;
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.16);
  }
  50% {
    box-shadow: 0 4px 25px rgba(233, 30, 99, 0.45);
  }
}

/* Pill NO Button (Instant evasion physics) */
.btn-no {
  background: var(--btn-no-bg);
  color: var(--btn-no-text);
  border: 1px solid #e5dadc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.2s ease;
  will-change: transform;
}

/* Dodge Hint */
.dodge-hint-text {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--primary-rose);
  font-weight: 600;
  min-height: 22px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   STAGE 2: Reasons Flippable Grid
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
}

.reason-card {
  perspective: 1000px;
  height: 145px;
  cursor: pointer;
}

.reason-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

.reason-card.flipped .reason-inner {
  transform: rotateY(180deg);
}

.reason-front, .reason-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.reason-front {
  background: #fff0f3;
  border: 1.5px dashed #f8bbd0;
  color: #ad1457;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reason-card:hover .reason-front {
  border-color: #ec407a;
  transform: translateY(-2px);
}

.reason-emoji {
  font-size: 2rem;
  margin-bottom: 6px;
}

.front-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #880e4f;
}

.tap-hint {
  font-size: 0.72rem;
  color: #d81b60;
  opacity: 0.8;
  margin-top: 4px;
}

.reason-back {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe3ea 100%);
  border: 1.5px solid #f48fb1;
  color: #3b2029;
  transform: rotateY(180deg);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.12);
}

.reason-icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.reason-back h3 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #c2185b;
  margin-bottom: 4px;
}

.reason-back p {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #4e353e;
}

.stage-footer {
  width: 100%;
}

.stage-footer .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px 24px;
}

/* ============================================================
   STAGE 3: Wax-Sealed Envelope & Dedicated Shayari
   ============================================================ */
#stage-3 {
  padding: 36px 20px 36px;
  overflow: visible;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.envelope-scene {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
  margin-top: 50px;
}

.envelope {
  position: relative;
  width: 330px;
  height: 220px;
  background: #f7a8b8;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  margin-bottom: 30px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 165px solid transparent;
  border-right: 165px solid transparent;
  border-top: 130px solid #ea859b;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.2s 0.3s;
  z-index: 5;
}

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 165px solid #f9b6c4;
  border-right: 165px solid #f9b6c4;
  border-bottom: 125px solid #f192a6;
  border-top: 95px solid transparent;
  border-radius: 0 0 14px 14px;
  z-index: 4;
  pointer-events: none;
}

.wax-seal {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: radial-gradient(circle, #e91e63 0%, #ad1457 70%, #880e4f 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(136, 14, 79, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border: 2px solid #f48fb1;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.6);
}

.seal-heart {
  font-size: 1.2rem;
  line-height: 1;
}

.seal-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.envelope.open .wax-seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.6);
  pointer-events: none;
}

/* The Romantic Letter Paper Inside Envelope */
.letter-paper {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 306px;
  max-height: 460px;
  overflow-y: auto;
  background: #fdfbf7;
  border: 1px solid #ebdcd5;
  border-radius: 12px;
  padding: 22px 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  z-index: 2;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: #f48fb1 transparent;
}

.letter-paper::-webkit-scrollbar {
  width: 4px;
}

.letter-paper::-webkit-scrollbar-thumb {
  background: #f48fb1;
  border-radius: 4px;
}

.envelope.open .letter-paper {
  transform: translateY(-110px);
  z-index: 6;
  opacity: 1;
  pointer-events: auto;
}

.letter-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-hand);
  font-size: 0.8rem;
  color: #c2185b;
  border: 1px dashed #c2185b;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(5deg);
}

.letter-header {
  margin-bottom: 12px;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #880e4f;
  font-weight: 600;
}

.letter-date {
  font-size: 0.75rem;
  color: #9c8088;
}

.letter-body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #402f34;
  margin-bottom: 14px;
}

.letter-body p {
  margin-bottom: 8px;
}

/* DEDICATED ROMANTIC SHAYARI CARD FOR MAYURI */
.shayari-box {
  background: linear-gradient(135deg, #fff3f6 0%, #fff0f4 50%, #ffe9ef 100%);
  border: 1.5px solid #f48fb1;
  border-radius: 16px;
  padding: 16px 14px;
  margin: 14px 0;
  text-align: center;
  box-shadow: 0 4px 18px rgba(240, 98, 146, 0.12), inset 0 0 16px rgba(255, 255, 255, 0.7);
  position: relative;
}

.shayari-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #ad1457;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #f48fb1;
  padding-bottom: 2px;
}

.shayari-lines-hindi {
  font-family: 'Rozha One', 'Yatra One', 'Playfair Display', Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.85;
  color: #7b1236;
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 0 1px rgba(123, 18, 54, 0.1);
}

.shayari-lines-english {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #633e49;
  font-style: italic;
  border-top: 1px dashed rgba(244, 143, 177, 0.45);
  padding-top: 8px;
}

.letter-signature {
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: #880e4f;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

/* Floating Happy Moment Memory Badges */
.happy-moment-pill {
  position: fixed;
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #f8bbd0;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(233, 30, 99, 0.28), 0 0 20px rgba(255, 192, 203, 0.6);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ad1457;
  pointer-events: none;
  z-index: 99999;
  animation: floatHappyMoment 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  white-space: nowrap;
}

@keyframes floatHappyMoment {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.6) rotate(0deg);
  }
  18% {
    opacity: 1;
    transform: translateY(-30px) scale(1.08) rotate(var(--rot, -3deg));
  }
  80% {
    opacity: 0.95;
    transform: translateY(-180px) scale(1) rotate(var(--rot, 3deg));
  }
  100% {
    opacity: 0;
    transform: translateY(-260px) scale(0.8) rotate(var(--rot, -4deg));
  }
}

.letter-continue-btn {
  width: 100%;
  font-size: 0.95rem;
  padding: 11px 18px;
}

.envelope-instruction {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  animation: pulseInstruction 1.8s infinite;
}

@keyframes pulseInstruction {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ============================================================
   STAGE 4: The Big Romantic Confession
   ============================================================ */
.subtle-pre-title {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c2185b;
  font-weight: 600;
  margin-bottom: 6px;
}

.confession-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: #b71c1c;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 15px rgba(229, 57, 53, 0.25);
  animation: heartbeatText 2.4s ease-in-out infinite;
}

@keyframes heartbeatText {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.05); }
  28% { transform: scale(1); }
  42% { transform: scale(1.06); }
  70% { transform: scale(1); }
}

.confession-subtitle {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: #4a2c35;
  margin-bottom: 8px;
}

.confession-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: center;
  position: relative;
  min-height: 110px;
}

.btn-grand-yes {
  background: linear-gradient(135deg, #ff4081 0%, #e91e63 50%, #c2185b 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.45);
  width: 100%;
  border: none;
  cursor: pointer;
  animation: grandYesGlow 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-grand-yes:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 36px rgba(233, 30, 99, 0.6);
}

@keyframes grandYesGlow {
  0%, 100% { box-shadow: 0 8px 30px rgba(233, 30, 99, 0.45); }
  50% { box-shadow: 0 12px 45px rgba(255, 64, 129, 0.7); }
}

.btn-evasive-no {
  background: #f5edef;
  color: #634f55;
  border: 1px solid #dacbcd;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.2s ease;
  will-change: transform;
}

/* ============================================================
   STAGE 5: The Grand Celebration & Love Certificate
   ============================================================ */
.celebration-card {
  max-width: 460px;
  padding: 34px 22px;
}

.celebration-character .character-img {
  width: 145px;
  height: 145px;
  margin-bottom: 10px;
}

.celebration-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #c2185b;
  margin-bottom: 6px;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-subtitle {
  font-size: 0.98rem;
  color: #553e45;
  margin-bottom: 18px;
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Certificate Box */
.certificate-box {
  width: 100%;
  background: #fffdfa;
  border: 2px solid #e2c079;
  border-radius: 20px;
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.cert-border-gold {
  border: 1.5px dashed #caa256;
  border-radius: 14px;
  padding: 18px 14px;
  background: radial-gradient(circle at center, #ffffff 60%, #fdf8ee 100%);
}

.cert-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cert-seal {
  font-size: 1.3rem;
}

.cert-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #996e16;
  font-weight: 700;
}

.cert-names {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: #b71c1c;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cert-highlight {
  color: #d81b60;
  text-decoration: underline wavy #ff80ab;
}

.cert-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #49393e;
  margin-bottom: 12px;
}

.cert-poetry-tag {
  background: #fff0f3;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ad1457;
  font-style: italic;
  margin-bottom: 12px;
}

.cert-meta {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #ebd9b0;
  padding-top: 10px;
}

.cert-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #8c7138;
}

.meta-val {
  font-size: 0.86rem;
  font-weight: 700;
  color: #b71c1c;
}

/* Actions in Celebration */
.celebration-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.action-primary-celebrate {
  background: linear-gradient(135deg, #ff4081 0%, #e91e63 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
}

.action-primary-celebrate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(233, 30, 99, 0.5);
}

.action-secondary {
  background: #fff0f3;
  color: #c2185b;
  border: 1px solid #f8bbd0;
  font-size: 0.9rem;
  padding: 12px 16px;
}

.action-secondary:hover {
  background: #fce4ec;
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 420px) {
  .stage-card {
    padding: 30px 18px 24px;
    border-radius: 28px;
  }

  .character-img {
    width: 150px;
    height: 150px;
  }

  .card-greeting {
    font-size: 1.95rem;
  }

  .card-subhead {
    font-size: 1.2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .envelope {
    width: 290px;
    height: 200px;
  }

  .envelope-flap {
    border-left-width: 145px;
    border-right-width: 145px;
    border-top-width: 115px;
  }

  .envelope-pocket {
    border-left-width: 145px;
    border-right-width: 145px;
    border-bottom-width: 115px;
  }

  .letter-paper {
    width: 266px;
    padding: 16px 12px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reason-card {
    height: 120px;
  }
}
