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

body {
  background: #1a1a2e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

canvas {
  display: block;
  background: #4a8c2a;
  cursor: default;
}

.guess-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
  transition: transform 0.1s;
}

.guess-bar.hidden {
  display: none;
}

.guess-bar.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.found-letters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.found-letters .letter-tile {
  width: 36px;
  height: 36px;
  background: #3498db;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  font-family: sans-serif;
  text-transform: uppercase;
}

.guess-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.guess-input {
  flex: 1;
  padding: 10px 16px;
  font-size: 20px;
  font-weight: bold;
  font-family: sans-serif;
  border: 3px solid #3498db;
  border-radius: 12px;
  outline: none;
  text-align: center;
  background: #fff;
  color: #333;
}

.guess-input:focus {
  border-color: #2ecc71;
}

.guess-input.correct {
  background: #2ecc71;
  color: #fff;
  border-color: #27ae60;
}

.guess-submit {
  padding: 10px 20px;
  font-size: 20px;
  font-weight: bold;
  font-family: sans-serif;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.guess-submit:hover {
  background: #c0392b;
}

.guess-feedback {
  color: #ff6b6b;
  font-size: 16px;
  font-weight: bold;
  font-family: sans-serif;
  min-height: 20px;
}

.guess-feedback.correct {
  color: #2ecc71;
}
