* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: radial-gradient(circle at top, #3a155f, #12001f);
}

/* CANVAS */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* CARD */
.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(92vw, 420px);

  background-image: url("card_bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 24px;
  padding: 26px;

  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.15);

  z-index: 2;
  opacity: 0;
  animation: enter 1.2s ease forwards;
}

/* SOFT ENTRANCE */
@keyframes enter {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* TEXT */
.card-text {
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
}

h1 {
  margin-top: 0;
  color: #3a155f;
  font-weight: 600;
}

p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5;
}

.love {
  font-weight: 600;
  color: #b30059;
}

.signature {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
}

/* REPLAY BUTTON */
.replay-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff4d88;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.replay-btn:active {
  transform: scale(0.95);
}

/* MOBILE FIX */
@media (max-width: 480px) {
  p {
    font-size: 0.88rem;
  }
}
