:root {
  --bg: #121213;
  --fg: #ffffff;
  --empty: #3a3a3c;
  --green: #538d4e;
  --yellow: #b59f3b;
  --gray: #3a3a3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.controls button {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

#deleteBtn {
  background: #565758;
  color: white;
}

#checkBtn {
  background: #538d4e;
  color: white;
}

#checkBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


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

.subtitle {
  opacity: 0.8;
  font-size: 0.9rem;
}

.difficulty {
  margin-top: 8px;
  font-size: 0.9rem;
}

.board {
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}

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

.cell {
  height: 64px;
  border-radius: 6px;
  background: var(--empty);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.cell.green { background: var(--green); }
.cell.yellow { background: var(--yellow); }
.cell.gray { background: var(--gray); }

.keyboard {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.key {
  padding: 10px 0;
  border-radius: 6px;
  background: #818384;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}

.key.disabled {
  opacity: 0.4;
  pointer-events: none;
}

footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}
