body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  text-align: center;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
h1 {
  margin-bottom: 15px;
  color: #2575fc;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 2.5rem;
}
#word {
  font-size: 2.8em;
  letter-spacing: 15px;
  margin: 30px 0;
  font-weight: bold;
  color: #2c3e50;
  min-height: 70px;
}
.letters-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 30px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.letter-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #3498db;
  color: white;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.2s;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.letter-btn:hover:not(:disabled) {
  background: #2980b9;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}
.letter-btn:disabled {
  cursor: not-allowed;
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.letter-btn.correct {
  background: #2ecc71;
}
.letter-btn.correct:disabled {
  background: #2ecc71;
  opacity: 0.8;
}
.letter-btn.incorrect {
  background: #e74c3c;
}
.letter-btn.incorrect:disabled {
  background: #e74c3c;
  opacity: 0.8;
}
#hangman {
  font-family: "Courier New", monospace;
  font-size: 24px;
  line-height: 1.2;
  white-space: pre;
  margin: 25px 0;
  color: #2c3e50;
  min-height: 180px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.hangman-container {
  text-align: left;
  display: inline-block;
}
#leaderboard {
  margin-top: 30px;
  text-align: left;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}
#leaderboard h3 {
  margin-bottom: 15px;
  color: #2575fc;
  text-align: center;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  font-size: 1.5rem;
}
#leaderboard ul {
  list-style: none;
  padding: 0;
}
#leaderboard li {
  padding: 12px 15px;
  margin: 10px 0;
  background: white;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
}
#leaderboard .rank {
  font-weight: bold;
  color: #2575fc;
  margin-right: 10px;
}
select,
input {
  margin: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 16px;
  transition: all 0.3s;
}
input {
  width: 200px;
}
select {
  width: 170px;
  background: white;
}
.action-btn {
  padding: 14px 25px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  margin: 10px;
  transition: all 0.3s;
}
.primary-btn {
  background: #3498db;
  color: white;
}
.primary-btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}
.secondary-btn {
  background: #2ecc71;
  color: white;
}
.secondary-btn:hover {
  background: #27ae60;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}
.tertiary-btn {
  background: #e67e22;
  color: white;
}
.tertiary-btn:hover {
  background: #d35400;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}
.hidden {
  display: none;
}
#result {
  margin: 25px 0;
  padding: 20px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.2rem;
}
.win {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}
.lose {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}
.category-label {
  font-weight: bold;
  margin-right: 5px;
  color: #2c3e50;
  font-size: 1.1rem;
}
.score-change {
  font-weight: bold;
}
.positive-score {
  color: #28a745;
}
.negative-score {
  color: #dc3545;
}
.game-info {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
  flex-wrap: wrap;
}
.info-box {
  background: #f8f9fa;
  padding: 18px;
  border-radius: 12px;
  min-width: 160px;
  margin: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}
.info-box h3 {
  margin-top: 0;
  color: #2575fc;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}
.alphabet-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 25px;
  border-radius: 15px;
  margin: 25px 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.alphabet-section h3 {
  margin-top: 0;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  font-size: 1.5rem;
}
.section-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-header i {
  font-size: 1.8rem;
  color: #3498db;
}
