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

body {
  font-family: sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem;
}

.app {
  width: 100%;
  max-width: 640px;
}

/* --- Home --- */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 6rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
}

.play-btn {
  margin-top: 1rem;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: #4f8ef7;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.play-btn:hover {
  background: #3a7ae0;
}

/* --- Loading / Error --- */

.loading, .error {
  text-align: center;
  padding-top: 6rem;
  color: #666;
}

.error-detail {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #e55;
}

/* --- Round --- */

.round {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.round-counter {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-block {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Submit button --- */

.submit-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  background: #4f8ef7;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover:not(:disabled) {
  background: #3a7ae0;
}

.submit-btn:disabled {
  background: #b0c8f7;
  cursor: not-allowed;
}

/* --- Feedback --- */

.feedback {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
}

.feedback.correct {
  background: #e6f9ee;
  color: #1a7a3f;
  border: 1px solid #a3d9b8;
}

.feedback.wrong {
  background: #fdecea;
  color: #b91c1c;
  border: 1px solid #f5b4b4;
}

.next-btn {
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.next-btn:hover {
  background: #e8e8e8;
}

.score {
  font-size: 3.5rem;
  font-weight: 700;
  color: #4f8ef7;
  line-height: 1;
}

/* --- Combobox --- */

.combobox {
  position: relative;
}

.combobox input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.combobox input:focus {
  border-color: #4f8ef7;
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 10;
}

.suggestions li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
}

.suggestions li:hover {
  background: #f0f4ff;
}

.suggestions li:first-child { border-radius: 6px 6px 0 0; }
.suggestions li:last-child  { border-radius: 0 0 6px 6px; }
