* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: sans-serif;
  background: linear-gradient(135deg, #30ffcf, #2a5298);
  color: #333;
}

header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

header h2 {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: normal;
  opacity: 0.9;
}

#main {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

.scoreboard {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 0.5rem 1.5rem;
  color: #fff;
}

.score-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-size: 1.8rem;
  font-weight: bold;
}

.game-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

#playerGuess {
  width: 5rem;
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  border: 2px solid #2a5298;
  border-radius: 6px;
  outline: none;
}

#playerGuess:focus {
  border-color: #1e3c72;
  box-shadow: 0 0 6px rgba(42, 82, 152, 0.5);
}

button {
  margin-left: 0.5rem;
  padding: 0.55rem 1.4rem;
  font-size: 1rem;
  color: #fff;
  background-color: #2a5298;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

button:hover {
  background-color: #1e3c72;
  transform: translateY(-1px);
}

#resetBtn {
  background-color: #c0392b;
}

#resetBtn:hover {
  background-color: #96281b;
}

#feedback {
  min-height: 1.4rem;
  margin: 1rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: bold;
}

.guesses-label {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #777;
}

#guesses {
  min-height: 1.5rem;
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: #2a5298;
  word-wrap: break-word;
}

footer p {
  text-align: center;
  font-size: 0.8rem;
  color: #ffffffa0;
  margin-top: 2rem;
}
