:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: #ffffffde;
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#root {
  display: flex;
  justify-content: center;
  align-items: center;
}
a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}
button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --wrong-key: #ec5d49;
  --right-key: #10a95b;
  --lost-bg: #ba2a2a;
  --miss-lang: #7a5ea7;
  --text-color: #f9f4da;
}
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #282726;
  min-width: 350px;
  min-height: 724px;
  max-width: 594px;
  width: 100%;
}
header {
  width: 352px;
}
.intro {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.intro h1 {
  font-size: 1.8rem;
  margin: 2rem;
  padding: 0;
  color: var(--text-color);
}
.intro p {
  color: var(--text-color);
  opacity: 0.8;
  margin: 0 1rem 2rem;
}
.game-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 0;
  border-radius: 6px;
  margin-bottom: 2rem;
  color: var(--text-color);
}
.game-status h2 {
  font-size: 2rem;
  font-weight: 700;
}
.game-status p {
  font-size: 1rem;
  font-style: italic;
}
.game-status.won {
  background-color: var(--right-key);
}
.game-status.lost {
  background-color: var(--lost-bg);
}
.game-status.farewell {
  background-color: var(--miss-lang);
  border: 1px dashed #323232;
  height: 4rem;
}
.farewell p {
  font-size: 1.1rem;
}
.chips-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: 266px;
  margin-bottom: 2rem;
}
.chips {
  padding: 2px 4px;
  border-radius: 4px;
  position: relative;
}
.chips.lost:before {
  content: "💀";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 0.85rem;
  top: 0;
  left: 0;
  background-color: #000000b3;
}
.letters-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.letters {
  margin-right: 0.2rem;
  background-color: #323232;
  padding: 10px;
  border-radius: 3px;
  border-bottom: 1px solid var(--text-color);
  width: 40px;
  height: 40px;
  text-align: center;
}
.missed-letter {
  color: var(--wrong-key);
}
.keyboard {
  padding: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 350px;
  margin-bottom: 2rem;
}
.keyboardKey {
  background-color: #fcba29;
  color: #1e1e1e;
}
.keyboardKey.correct {
  background-color: var(--right-key);
}
.keyboardKey.wrong {
  background-color: var(--wrong-key);
}
.keyboardKey:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.new-game {
  background-color: #11b5e5;
  color: #1e1e1e;
  width: 288px;
  height: 40px;
  border: 1px solid var(--text-color);
  margin-bottom: 2rem;
}
.new-game:hover {
  background-color: #0894be;
  transform: translateY(-2px);
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}
