body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}

.stage {
  height: 67vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  box-sizing: border-box;
}

h1 {
  margin: 6px 0 10px;
  text-align: center;
}

#santa {
  width: 256px;
  height: 256px;
  margin-bottom: 10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.4));
  object-fit: contain;
}

#progressContainer {
  width: 90%;
  max-width: 800px;
  height: 14px;
  background: rgba(255,255,255,0.25);
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #ffeb3b;
  transition: width 0.4s ease;
}

#status {
  margin: 6px 0;
  font-size: 1.1em;
}

.controls {
  margin-top: 8px;
}

button {
  font-size: 1.1em;
  padding: 10px 28px;
  margin: 6px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#startBtn {
  background: #2e7d32;
  color: white;
}

#nextBtn {
  background: #c62828;
  color: white;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#captions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 0;
  max-height: 40vh;
  padding: 18px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  font-size: clamp(0.85rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  z-index: 5;
  overflow-y: auto;
}

#captions:empty {
  display: none;
}

/* Snowfall Animation */
#snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  opacity: 0.5;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(100vh) translateX(var(--drift, 50px)) rotate(360deg);
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  #santa {
    width: 200px;
    height: 200px;
  }
}