/* =====================================================================
   heart.css  —  "click me" heart gate (timer + sound isi par shuru)
   ===================================================================== */

.heart-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  animation: fadeUp 0.9s both;
}

.heart-gate.fade-out {
  animation: cdFadeOut 0.5s ease forwards;   /* countdown.css se reuse */
}

/* ---- The button wrapper ---- */
.heart-btn {
  position: relative;
  width: 200px;
  height: 180px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  animation: heartBeat 1.3s ease-in-out infinite;
  transition: transform 0.2s ease;

  /* ---- browser ka default blue flash / highlight hatao ---- */
  -webkit-tap-highlight-color: transparent;   /* mobile blue flash */
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.heart-btn:focus,
.heart-btn:focus-visible { outline: none; }
.heart-btn:hover  { transform: scale(1.06); }
.heart-btn:active { transform: scale(0.94); }

/* ---- The heart shape (do pseudo circles) ---- */
.heart-shape {
  position: absolute;
  inset: 0;
  top: 10px;
}
.heart-shape::before,
.heart-shape::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 160px;
  background: linear-gradient(135deg, #ff5c8a, #c3379b);
  border-radius: 100px 100px 0 0;
  box-shadow: 0 10px 40px rgba(255, 92, 138, 0.6);
}
.heart-shape::before {
  left: 100px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}
.heart-shape::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

/* glow pulse behind the heart */
.heart-btn::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 92, 138, 0.45), transparent 65%);
  z-index: -1;
  animation: glowPulse 1.3s ease-in-out infinite;
}

/* ---- "Click me" text — sundar script font ---- */
.heart-label {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
  font-family: "Fredoka", sans-serif;   /* rounded, modern, bht easy to read */
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ---- Animations ---- */
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.12); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.08); }
  60%      { transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.12); }
}
