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

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
}

h1 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2.5em;
}

.snowman-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
  perspective: 1000px;
}

.snowman {
  position: relative;
  width: 200px;
  height: 320px;
  margin: 0 auto;
}

.snowball {
  position: absolute;
  background: white;
  border-radius: 50%;
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.1), 
              inset 2px 2px 8px rgba(255, 255, 255, 0.8);
}

.head {
  width: 80px;
  height: 80px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.middle {
  width: 100px;
  height: 100px;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom {
  width: 120px;
  height: 120px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Eyes */
.eye {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #333;
  border-radius: 50%;
  top: 25px;
}

.eye.left {
  left: 20px;
}

.eye.right {
  right: 20px;
}

/* Coal mouth and buttons */
.coal {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #333;
  border-radius: 50%;
  display: inline-block;
}

.coal-mouth {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.middle .coal {
  position: absolute;
  display: block;
}

.middle .coal:nth-child(1) {
  left: 15px;
  top: 35px;
}

.middle .coal:nth-child(2) {
  left: 50%;
  top: 40px;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
}

.middle .coal:nth-child(3) {
  right: 15px;
  top: 35px;
}

/* Arms */
.arm {
  position: absolute;
  width: 100px;
  height: 8px;
  background: #8B4513;
  border-radius: 4px;
  top: 140px;
  transform-origin: center;
}

.arm::before,
.arm::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 40px;
  background: #8B4513;
  border-radius: 3px;
  top: -16px;
}

.left-arm {
  left: -50px;
}

.left-arm::before {
  left: -15px;
  transform: rotate(-30deg);
}

.left-arm::after {
  right: -15px;
  transform: rotate(30deg);
}

.right-arm {
  right: -50px;
}

.right-arm::before {
  left: -15px;
  transform: rotate(-30deg);
}

.right-arm::after {
  right: -15px;
  transform: rotate(30deg);
}

/* Dancing animation */
@keyframes dance {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(5deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes armWave {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-40deg);
  }
  50% {
    transform: rotate(40deg);
  }
  75% {
    transform: rotate(-40deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.snowman.dancing {
  animation: dance 1.5s ease-in-out;
}

.snowman.dancing .arm {
  animation: armWave 1.5s ease-in-out;
}

/* Button */
.build-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  margin: 20px 0;
}

.build-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.build-button:active {
  transform: translateY(0);
}

.build-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Message box */
.message-box {
  margin-top: 20px;
  min-height: 40px;
  font-size: 1.2em;
  font-weight: bold;
  color: #764ba2;
  display: flex;
  align-items: center;
  justify-content: center;
}