* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: #9ccbe2;
}

.winter-scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.7), transparent 20%),
    linear-gradient(180deg, #5d9fc5 0%, #91c6df 43%, #d9edf5 75%, #f8fcff 100%);
}

.moon {
  position: absolute;
  top: 7vh;
  right: 9vw;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff9d6;
  box-shadow: 0 0 45px rgba(255,250,210,.9);
  animation: moonGlow 4s ease-in-out infinite;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, white 1px, transparent 2px),
    radial-gradient(circle, white 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,255,255,.8) 1px, transparent 2px);
  background-size: 90px 90px, 140px 140px, 190px 190px;
  background-position: 0 0, 30px 50px, 90px 20px;
  opacity: .75;
  animation: twinkle 3s ease-in-out infinite alternate;
}

.welcome {
  position: relative;
  z-index: 10;
  width: min(700px, 90%);
  margin: 0 auto;
  padding-top: 14vh;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(20,70,100,.35);
}

.eyebrow {
  letter-spacing: 4px;
  font-size: .85rem;
  font-weight: bold;
  margin-bottom: 15px;
  animation: fadeDown 1s ease both;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .95;
  animation: titleFloat 3.5s ease-in-out infinite;
}

h2 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 500;
  animation: fadeUp 1s .2s ease both;
}

.welcome p:not(.eyebrow) {
  max-width: 560px;
  margin: 25px auto;
  line-height: 1.7;
  font-size: 1.05rem;
  animation: fadeUp 1s .4s ease both;
}

button {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 15px 28px;
  background: rgba(255,255,255,.9);
  color: #35799d;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20,70,100,.18);
  transition: .25s;
  animation: fadeUp 1s .6s ease both;
}

button:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 16px 35px rgba(20,70,100,.3);
}

button span {
  display: inline-block;
  margin-left: 8px;
  animation: spinSnow 3s linear infinite;
}

#snow-container {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.snowflake {
  position: absolute;
  top: -30px;
  color: white;
  text-shadow: 0 0 8px rgba(255,255,255,.8);
  animation: snowfall linear forwards;
}

.mountain {
  position: absolute;
  bottom: 18vh;
  width: 0;
  height: 0;
  border-left: 25vw solid transparent;
  border-right: 25vw solid transparent;
  z-index: 1;
}

.mountain-back {
  left: -8vw;
  border-bottom: 34vh solid rgba(73,130,160,.5);
}

.mountain-front {
  right: -12vw;
  border-left-width: 30vw;
  border-right-width: 30vw;
  border-bottom: 40vh solid rgba(90,150,180,.6);
}

.snow-ground {
  position: absolute;
  z-index: 7;
  bottom: -8vh;
  left: -5%;
  width: 110%;
  height: 28vh;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  background: linear-gradient(180deg, #f7fdff, #dbeef5);
  box-shadow: 0 -15px 30px rgba(255,255,255,.35);
}

.deer, .snowman, .tree {
  position: absolute;
  user-select: none;
  pointer-events: none;
}

.deer {
  z-index: 9;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.deer-one {
  bottom: 14vh;
  left: -10vw;
  animation: deerRunRight 18s linear infinite;
}

.deer-two {
  bottom: 18vh;
  right: -10vw;
  transform: scaleX(-1);
  animation: deerRunLeft 22s 4s linear infinite;
}

.deer-three {
  bottom: 11vh;
  left: -12vw;
  font-size: 3rem;
  animation: deerRunRight 25s 8s linear infinite;
}

.deer-four {
  bottom: 22vh;
  right: -12vw;
  font-size: 2.5rem;
  transform: scaleX(-1);
  opacity: .85;
  animation: deerRunLeft 28s 1s linear infinite;
}

.snowman {
  z-index: 10;
  bottom: 9vh;
  font-size: clamp(3rem, 6vw, 5rem);
  animation: snowmanDance 3s ease-in-out infinite;
}

.snowman-one {
  left: 8%;
}

.snowman-two {
  right: 8%;
  font-size: clamp(2.5rem, 5vw, 4rem);
  animation-delay: .7s;
}

.snowman-three {
  left: 72%;
  bottom: 16vh;
  font-size: 2.8rem;
  animation-delay: 1.3s;
}

.tree {
  z-index: 8;
  bottom: 9vh;
  font-size: clamp(3rem, 7vw, 6rem);
  filter: drop-shadow(0 8px 5px rgba(30,80,100,.15));
}

.tree-one { left: 1%; }
.tree-two { left: 17%; font-size: 4rem; bottom: 14vh; }
.tree-three { left: 28%; font-size: 3.5rem; bottom: 12vh; }
.tree-four { right: 27%; font-size: 4rem; bottom: 14vh; }
.tree-five { right: 17%; }
.tree-six { right: 1%; font-size: 5rem; bottom: 12vh; }

.message {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: -100px;
  transform: translateX(-50%);
  width: min(520px, 86%);
  padding: 17px 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.93);
  color: #377b9d;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 12px 35px rgba(20,70,100,.25);
  transition: bottom .6s ease;
}

.message.show {
  bottom: 28px;
}

@keyframes snowfall {
  from {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  to {
    transform: translateY(110vh) translateX(var(--drift)) rotate(360deg);
    opacity: .2;
  }
}

@keyframes deerRunRight {
  0% { transform: translateX(-10vw) translateY(0); }
  25% { transform: translateX(25vw) translateY(-10px); }
  50% { transform: translateX(55vw) translateY(0); }
  75% { transform: translateX(85vw) translateY(-10px); }
  100% { transform: translateX(125vw) translateY(0); }
}

@keyframes deerRunLeft {
  0% { transform: translateX(10vw) translateY(0) scaleX(-1); }
  25% { transform: translateX(-25vw) translateY(-10px) scaleX(-1); }
  50% { transform: translateX(-55vw) translateY(0) scaleX(-1); }
  75% { transform: translateX(-85vw) translateY(-10px) scaleX(-1); }
  100% { transform: translateX(-125vw) translateY(0) scaleX(-1); }
}

@keyframes snowmanDance {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-8px); }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  from { opacity: .4; }
  to { opacity: .9; }
}

@keyframes moonGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(255,250,210,.6); }
  50% { box-shadow: 0 0 60px rgba(255,250,210,1); }
}

@keyframes spinSnow {
  to { transform: rotate(360deg); }
}

@media (max-width: 650px) {
  .welcome {
    padding-top: 13vh;
  }

  .welcome p:not(.eyebrow) {
    font-size: .92rem;
  }

  .snowman-three,
  .tree-three,
  .tree-four {
    display: none;
  }

  .moon {
    width: 60px;
    height: 60px;
    right: 7vw;
  }

  .mountain-back {
    border-bottom-width: 28vh;
  }

  .mountain-front {
    border-bottom-width: 32vh;
  }
}
