body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #7a0000, #120000);
  color: #fff;
  text-align: center;
  overflow-x: hidden; /* prevent horizontal scroll */
  transition: background 1s ease;
}

.screen {
  display: none;
  padding-top: 120px;
}

.active {
  display: block;
}

h1 {
  color: #ffd6a0;
}

h1.resultText {
  color: #555; /* grey text on result screen */
}

input {
  padding: 12px;
  font-size: 18px;
  border-radius: 20px;
  border: none;
}

button {
  padding: 14px 34px;
  font-size: 18px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg, #b1001d, #ff003c);
  color: white;
  cursor: pointer;
  margin: 10px;
}

#noBtn {
  position: relative;
}

.loader {
  width: 90px;
  height: 90px;
  border: 8px solid #300;
  border-top: 8px solid gold;
  border-radius: 50%;
  margin: auto;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Crackers / fireworks */
#crackers {
  font-size: 50px;
  animation: explode 1.2s ease-out forwards;
  margin-bottom: 20px;
}

@keyframes explode {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

#finalText {
  font-size: 38px;
  max-width: 700px;
  margin: auto;
  line-height: 1.4;
}

#restartBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  padding: 8px 16px;
}

/* Hearts */
.cineHeart {
  position: fixed;
  bottom: -50px;
  font-size: 15px;
  opacity: 0.7;
  animation: heartMove linear forwards;
  animation-duration: 8s;
  z-index: 1;
}

/* Heart Animation */
@keyframes heartMove {
  to {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

/* Flowers */
.cineFlower {
  position: fixed;
  top: -60px;
  font-size: 16px;
  opacity: 0.65;
  animation: flowerMove linear forwards;
  animation-duration: 9s;
  z-index: 1;
}

/* Flower Animation */
@keyframes flowerMove {
  to {
    transform: translate(200px, 110vh) rotate(360deg);
    opacity: 0;
  }
}
