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

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(135deg, #1a472a 0%, #0d2818 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: white;
  font-size: 1em;
  animation: fall linear infinite;
  opacity: 0.8;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

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

.login-container h1 {
  color: #c41e3a;
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.login-container .subtitle {
  color: #0d5c2f;
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.login-container input {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border: 2px solid #0d5c2f;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.login-container input:focus {
  outline: none;
  border-color: #c41e3a;
  box-shadow: 0 0 10px rgba(196, 30, 58, 0.3);
}

.login-container button {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.error-message {
  color: #c41e3a;
  margin-top: 15px;
  font-weight: bold;
}

.game-container {
  display: none;
  text-align: center;
  padding: 20px;
}

.game-container h1 {
  color: white;
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.game-container .subtitle {
  color: #ffd700;
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

#wheelOfFortune {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

#wheel {
  display: block;
}

#spin {
  font: 1.5em/0 sans-serif;
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  margin: -15%;
  background: #fff;
  color: #fff;
  box-shadow: 0 0 0 8px currentColor, 0 0 15px 5px rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transition: 0.8s;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#spin::after {
  content: '';
  position: absolute;
  top: -17px;
  border: 10px solid transparent;
  border-bottom-color: currentColor;
  border-top: none;
}

.result-message {
  margin-top: 30px;
  font-size: 1.5em;
  color: #ffd700;
  font-weight: bold;
  min-height: 40px;
}

.hidden {
 display: none !important;
}

@media (max-width: 600px) {
  .game-container h1 {
    font-size: 2em;
  }
  .game-container .subtitle {
    font-size: 1em;
  }
}


#popup {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    #popup-content {
      background: white;
      padding: 2rem 3rem;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    #popup-content h2 {
      margin: 0 0 1rem 0;
      color: #333;
      font-size: 2rem;
    }

    #popup-content p {
      margin: 0 0 1.5rem 0;
      font-size: 1.5rem;
      color: #666;
    }

    #popup-content button {
      padding: 0.75rem 2rem;
      font-size: 1rem;
      background: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
    }

    #popup-content button:hover {
      background: #45a049;
    }
