/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* IMAGEM DE FUNDO */
.bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

/* OVERLAY VERMELHO */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(140, 0, 0, 0.65);
  z-index: -2;
}

/* BODY */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #8b0000;
}

/* ===================== */
/* TELA INICIAL */
/* ===================== */
#start-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #8b0000, #b30000);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 1s ease;
}

#start-screen.hide {
  opacity: 0;
  pointer-events: none;
}

#start-screen h1 {
  font-size: 2.6rem;
  margin-bottom: 30px;
}

#start-btn {
  background: white;
  color: #8b0000;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

#start-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* ===================== */
/* CARTÃO */
/* ===================== */
.card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 40px 30px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;              /* <<< IMPORTANTE */
  overflow-y: auto;              /* <<< ATIVA ROLAGEM */
  text-align: center;
  color: white;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: fadeIn 2s ease;
  z-index: 1;
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ÍCONE CENTRAL */
.tree {
  font-size: 60px;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

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

/* TEXTO */
h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
}

.message {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px #fff; }
  to   { text-shadow: 0 0 18px #ffdede; }
}

.signature {
  font-style: italic;
}

.signature span {
  display: block;
  margin-top: 6px;
  font-weight: bold;
}

/* ===================== */
/* NEVE */
/* ===================== */
.snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.snow {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.85;
  animation: fall linear infinite;
}

/* VARIAÇÕES */
.snow:nth-of-type(1) { left: 5%;  animation-duration: 7s; }
.snow:nth-of-type(2) { left: 15%; animation-duration: 5.5s; }
.snow:nth-of-type(3) { left: 30%; animation-duration: 8s; }
.snow:nth-of-type(4) { left: 45%; animation-duration: 6s; }
.snow:nth-of-type(5) { left: 60%; animation-duration: 7.5s; }
.snow:nth-of-type(6) { left: 75%; animation-duration: 5s; }
.snow:nth-of-type(7) { left: 90%; animation-duration: 6.5s; }
.snow:nth-of-type(8) { left: 98%; animation-duration: 8.5s; }

/* ANIMAÇÃO DE QUEDA */
@keyframes fall {
  from { transform: translateY(-10px); }
  to   { transform: translateY(110vh); }
}

#music-btn {
  margin-top: 20px;
  background: white;
  color: #8b0000;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
}

.card::-webkit-scrollbar {
  width: 6px;
}

.card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

