:root {
  --bg-start: #112d28;
  --bg-end: #7e0f2b;
  --card: #fff9fb;
  --muted: #cfcfcf;
  --accent: #ffd700;
  --accent-dark: #b8860b;
  --glass: rgba(255,255,255,0.9);
  --shadow: 0 12px 30px rgba(2,6,23,0.45);
  --max-width: 1100px;
  --accent-green: #1aa36c;
}

* { box-sizing: border-box }
html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: #111;
}
.page {
  max-width: var(--max-width);
  margin: 28px auto;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* Santa wrap sits above snow, below UI */
#santa-wrap {
  display: none; /* Sleigh animation disabled */
}

#santa {
  width: 480px;
  height: auto;
  position: absolute;
  top: 6vh;
  left: -520px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45));
  transform-origin: center;
}

/* Animations for Santa flight and boost */
@keyframes flyAcross {
  0% {
    transform: translateX(-520px) translateY(0) scale(0.9);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    transform: translateX(60vw) translateY(8vh) scale(1);
  }
  100% {
    transform: translateX(120vw) translateY(-4vh) scale(0.95);
    opacity: 0.9;
  }
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0);
  }
}

#santa.fly {
  animation: flyAcross 26s linear infinite;
}

#santa .deer {
  animation: bob 0.9s ease-in-out infinite;
  transform-origin: center;
}

#santa.boost {
  animation-duration: 10s !important;
  filter: drop-shadow(0 12px 16px rgba(255, 215, 0, 0.15));
}

/* Snow container sits behind everything */
#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.brand h1 {
  margin: 0;
  color: var(--accent);
  font-size: 32px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.top-nav {
  display: flex;
  gap: 8px;
}

.hero-banner {
  background: url('/assets/santa-sleigh/santa-sleigh-hero-desktop.jpg') center/contain no-repeat;
  background-color: #294b64;
  height: 220px;
  max-width: var(--max-width);
  margin: 20px auto;
  box-shadow: var(--shadow);
  border-radius: 14px;
}

@media (max-width: 600px) {
  .hero-banner {
    background: url('/assets/santa-sleigh/santa-sleigh-hero-mobile.jpg') center/contain no-repeat;
    background-color: #294b64;
    height: 140px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
  }
}



/* Banner Text Overlay */
.banner-text {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 700;
  color: #b33c3c;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 0;
  padding: 0 12px;
  text-align: center;
}

/* Buttons */
.btn {
  background: var(--card);
  border: 0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn:focus {
  outline: 3px solid rgba(255,255,255,0.15);
  outline-offset: 3px;
}

/* Affiliate CTA Button */
.cta-button {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  background-color: #d62828;
  padding: 0.75em 1.25em;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #b71c1c;
}
/* Affiliate Image */
.affiliate-image {
  display: block;
  margin: 0 auto 12px;
  max-width: 100%;
  height: auto;
  text-align: center;
}
.offer-box {
  margin: 0 auto;
  text-align: center;
  max-width: 100%;
}

/* Countdown */
.countdown-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 18px;
}
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.sleeps-label {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.details {
  background: rgba(255,255,255,0.06);
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
}

/* Force visibility and styling for the sleeps number */
#countdown #sleeps {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important; /* or #fff */
  text-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
}

/* Layout */
.interactive-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 920px) {
  .interactive-row {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.quiz-card .question {
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--bg-end);
}
.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}
.choice {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #fff7);
  border: 1px solid #efe6e9;
}
.choice input {
  accent-color: var(--accent);
}
.quiz-controls {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.feedback {
  min-height: 28px;
  margin-top: 10px;
  font-weight: 700;
}

/* Facts */
.facts-list {
  padding-left: 18px;
  margin: 0 0 12px 0;
}
.facts-controls {
  display: flex;
  justify-content: flex-end;
}
.score {
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent-green);
}

/* Footer */
.site-footer {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Snowflake animation using small circles (JS will add them) */
.snowflake {
  position: fixed;
  top: -10px;
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) translateX(20vw);
    opacity: 0.95;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
  }

  .brand h1 {
    font-size: 24px;
    text-align: center;
    width: 100%;
    padding: 0 8px;
  }

  .tagline {
    font-size: 13px;
    text-align: center;
    padding: 0 8px;
  }

  .top-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
  }
}

/* Moved outside media query for universal styling */
.no-snow-zone .sleeps-label {
  position: relative;
  z-index: 3;
  color: #fff;
  text-shadow: 0 0 6px #FFD700, 0 0 12px #FFD700;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}



