* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f0f4f8;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  align-items: center;
}

.container {
  background: white;
  max-width: 500px;
  width: 100%;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  text-align: center;
}

.logo {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

h1 {
  margin: 0;
  font-size: 2.8rem;
  color: #2c3e50;
}

.tagline {
  font-style: italic;
  color: #555;
  margin-bottom: 25px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

input[type="password"] {
  width: 80%;
  padding: 10px;
  font-size: 1.1rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

input[type="password"]:focus {
  border-color: #007bff;
  outline: none;
}

button {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
  background: #0056b3;
}

button:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.note {
  font-size: 0.9rem;
  color: #888;
  margin-top: -10px;
  margin-bottom: 20px;
}

#timer, #incorrectLeft, #score {
  font-weight: bold;
  color: #007bff;
}

#wordDisplay {
  font-size: 2rem;
  letter-spacing: 10px;
  margin: 15px 0 25px;
  user-select: none;
}

#guessedLetters {
  color: #555;
  min-height: 24px;
}

#letterButtons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.letter-btn {
  background: #eee;
  border: 2px solid #ccc;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.letter-btn:hover:not(:disabled) {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.letter-btn:disabled {
  background: #bbb;
  color: white;
  border-color: #999;
  cursor: default;
  opacity: 0.7;
}

#resetBtn, #playAgainBtn {
  margin-top: 25px;
  padding: 10px 25px;
}

#gameOver h2 {
  color: #dc3545;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
