body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #e0e0e0;
  padding: 10px;
  box-sizing: border-box;
}

#game-box {
  width: 360px;
  max-width: 95vw;
  padding: 36px 28px 30px 28px;
  border-radius: 20px;
  background: rgba(15, 15, 20, 0.6);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  border: 1.5px solid rgba(0, 255, 255, 0.25);
  text-align: center;
}

#game-box h2 {
  color: #00fff9;
  letter-spacing: 1.5px;
  font-size: 2.15em;
  margin-bottom: 10px;
  font-weight: 800;
  text-shadow: 0 0 5px #00fff9;
}

#game-box p {
  color: #b0f7f9;
  font-size: 1.1em;
  text-shadow: 0 0 4px #009999;
}

input[type="number"] {
  width: 86px;
  padding: 8px 10px;
  margin-top: 12px;
  border-radius: 10px;
  border: 2px solid #08f7fe;
  background: rgba(0, 0, 0, 0.8);
  color: #0ff;
  font-size: 1.15em;
  outline: none;
  box-shadow: 0 0 8px #08f7fe70;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="number"]:focus {
  border: 2px solid #00fff9;
  box-shadow: 0 0 15px #00fff980;
}

button {
  margin: 16px 10px 10px 10px;
  padding: 14px 38px;
  font-size: 1.2em;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #00fff9 0%, #005f73 100%);
  box-shadow: 0 0 15px #00fff9aa;
  color: whitesmoke;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: drop-shadow(0 0 10px #00fff9aa);
}

button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,255,255,0.5), transparent);
  filter: blur(8px);
  opacity: 0.8;
  transform: translateY(-50%) rotate(25deg);
  transition: left 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

button:hover {
  transform: scale(1.15) rotate(-2deg);
  color: white;
  box-shadow: 0 0 25px #00fff9ff, 0 0 35px #00fff9cc;
}

button:hover:before {
  left: 100%;
}

#message {
  font-size: 1.2em;
  font-weight: 700;
  min-height: 1.8em;
  margin-top: 20px;
  color: #00fff9;
  letter-spacing: 0.7px;
  text-shadow: 0 0 8px #00fff9cc, 0 0 15px #00fff970;
}

#bestScore {
  color: #08e8de;
  font-weight: 700;
  font-size: 1.3em;
  text-shadow: 0 0 10px #08e8decc;
  margin-top: 12px;
}

#tries {
  color: #04afaf;
  font-weight: 700;
  font-size: 1.2em;
  text-shadow: 0 0 6px #04afafcc;
  margin-top: 8px;
}

/* Responsive Styles */

@media (max-width: 480px) {
  #game-box {
    width: 95vw;
    padding: 24px 16px 20px 16px;
  }
  
  #game-box h2 {
    font-size: 1.8em;
  }
  
  input[type="number"] {
    width: 70px;
    font-size: 1em;
    padding: 6px 8px;
  }
  
  button {
    font-size: 1em;
    padding: 10px 25px;
  }
  
  #message, #bestScore, #tries {
    font-size: 1em;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  #game-box {
    width: 400px;
    padding: 32px 24px 28px 24px;
  }
  
  #game-box h2 {
    font-size: 2em;
  }
  
  input[type="number"] {
    width: 80px;
    font-size: 1.1em;
    padding: 7px 9px;
  }
  
  button {
    font-size: 1.1em;
    padding: 12px 30px;
  }
  
  #message, #bestScore, #tries {
    font-size: 1.1em;
  }
}
