* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f6ea;
  color: #314026;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 700px;
  padding: 20px 16px 40px;
}

h1 {
  text-align: center;
  margin: 10px 0 18px;
  letter-spacing: 0.03em;
  color: #3b5227;
}

.level-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.level-btn {
  border-radius: 999px;
  border: 1px solid #8aa76b;
  padding: 6px 14px;
  background: #e1eed0;
  cursor: pointer;
  font-size: 0.85rem;
}

.level-btn.active {
  background: #7fae52;
  color: #fff;
}

.level-colors {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.level-color-swatch {
  width: 40px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}

.status-line,
.round-line {
  text-align: center;
  font-size: 0.9rem;
}

.status-line {
  margin-bottom: 4px;
}

.round-line {
  margin-bottom: 10px;
  color: #627050;
}

.card-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.color-card {
  width: 140px;
  height: 90px;
  border-radius: 10px;
  background: #d8dcd5; /* verdeckt */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  position: relative;
}

.card-label {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.choices {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.choice-btn {
  width: 120px;
  height: 70px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}

.choice-label {
  margin-top: 4px;
  font-size: 0.8rem;
}

.choice-btn.disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}

.feedback {
  min-height: 32px;
  text-align: center;
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 6px;
}

.badge.ok {
  background: #2e7d32;
  color: #fff;
}

.badge.fail {
  background: #c62828;
  color: #fff;
}

.next-row {
  text-align: center;
  margin-top: 4px;
}

.next-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: #7fae52;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.next-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.hint {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: #7b8c69;
}

@media (max-width: 480px) {
  .choice-btn {
    width: 110px;
    height: 64px;
  }
}
