body {
  font-family: sans-serif;
  background: #121213;
  color: #fff;
  text-align: center;
  padding: 20px;
  overflow-x: hidden;
}
h1 {
  margin-bottom: 10px;
}
#hint {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #aaffaa;
}
#board {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  max-width: 100%;
  overflow-x: hidden;
}
.row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  max-width: 100%;
  gap: 5px;
  margin-bottom: 5px;
}
.tile {
  width: var(--tile-size, 40px);
  height: var(--tile-size, 40px);
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: bold;
  font-size: calc(var(--tile-size, 40px) * 0.5);
  background-color: #3a3a3c;
  color: white;
  position: relative;
}
.tile.cursor::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 2px;
  height: 60%;
  background: white;
  transform: translateX(-50%);
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.correct { background-color: #538d4e; }
.present { background-color: #b59f3b; }
.absent  { background-color: #3a3a3c; }

#onScreenKeyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 400px;
  margin: 10px auto;
}
.kb-key {
  padding: 10px;
  margin: 2px;
  font-size: 16px;
  width: 32px;
  height: 32px;
  text-align: center;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}