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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #c41e3a, #ffffff, #c41e3a);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 500px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  color: #c41e3a;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
  color: #666;
  font-size: 1rem;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(196, 30, 58, 0.1);
  border-radius: 8px;
}

.attempts {
  font-weight: bold;
  color: #c41e3a;
}

.new-game-btn {
  background: #c41e3a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.new-game-btn:hover {
  background: #a01729;
}

.game-board {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
  margin-bottom: 20px;
  padding: 10px;
}

.row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.tile {
  width: 60px;
  height: 60px;
  border: 2px solid #d3d6da;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  background: white;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tile.filled {
  border-color: #878a8c;
  animation: pop 0.1s ease-in-out;
}

.tile.correct {
  background: #6aaa64;
  color: white;
  border-color: #6aaa64;
}

.tile.present {
  background: #c9b458;
  color: white;
  border-color: #c9b458;
}

.tile.absent {
  background: #787c7e;
  color: white;
  border-color: #787c7e;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.keyboard {
  margin-bottom: 20px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 5px;
}

.key {
  background: #d3d6da;
  border: none;
  border-radius: 4px;
  padding: 12px 8px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 35px;
  color: #000;
}

.key:hover {
  background: #bbb;
}

.key-large {
  padding: 12px 16px;
  font-size: 0.8rem;
}

.key.correct {
  background: #6aaa64;
  color: white;
}

.key.present {
  background: #c9b458;
  color: white;
}

.key.absent {
  background: #787c7e;
  color: white;
}

.message {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message.success {
  color: #6aaa64;
}

.message.error {
  color: #c41e3a;
}

.word-hint {
  background: rgba(196, 30, 58, 0.1);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #c41e3a;
}

.word-hint p {
  color: #333;
  font-size: 0.9rem;
}

#hint-text {
  color: #c41e3a;
  font-weight: bold;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  .tile {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .key {
    padding: 10px 6px;
    font-size: 0.8rem;
    min-width: 30px;
  }

  .key-large {
    padding: 10px 12px;
    font-size: 0.7rem;
  }
}
