body {
  background: #fffdf5;
  font-family: 'Segoe UI', sans-serif;
}

body {
  overscroll-behavior: none; /* Prevent pull-to-refresh or scroll chaining */
  margin: 0;
  padding: 0;
}


.logo {
  max-width: 150px;
}

.scratch-card {
  width: 300px;
  height: 160px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
}

.card-content {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f9d976, #f39f86); /* goldish background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.gift-message {
  font-size: 1.3rem;
  font-weight: bold;
  color: #4b2e00;
  padding: 0 15px;
  text-align: center;
}

#scratchCard {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: crosshair;
  border-radius: 15px;
}

@keyframes explode {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(2) rotate(720deg);
    opacity: 0;
  }
}

.explode {
  animation: explode 0.8s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(2) rotate(720deg);
    opacity: 0;
  }
}

.explode {
  animation: explode 0.8s ease-out forwards;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup-content {
  background: #fff0f5;
  color: #333;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  max-width: 90%;
  width: 300px;
}

.popup-content h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.popup-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.popup-content button {
  background: #f56565;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.popup-content button:hover {
  background: #e53e3e;
}

