#app {
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#app figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#app figcaption {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 90%;
}

/* Language select */
#app select {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  min-width: 140px;
  cursor: pointer;
}

/* New game button */
#app button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  min-width: 110px;
}

#app button:not([disabled]):hover {
  transform: translateY(-1px);
}

#app button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Entered words */
.words {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* letters */
.letters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.25rem 0;
}

.letter {
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  border-radius: 8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

#app .letter-correct {
  background: #3a7d5f;
  font-weight: bold;
}
#app .letter-includes {
  background: #5d3fd3;
  font-style: italic;
}

#guess-input {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin: 0.5rem;
  flex-wrap: wrap;
  flex-direction: column;
}

#guess-input input {
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid #333;
  border-radius: 8px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  max-width: 90%;
  transition: all 0.2s ease;
}

#guess-input input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.3);
}

/* guess button */
#guess-input button {
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  min-width: 100px;
}

@media (max-width: 480px) {
  #app {
    padding: 0;
    margin: 0;
  }
  .letter {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  #guess-input input {
    max-width: 90%;
  }
  #guess-input {
    gap: 0.5rem;
  }
}
