:root {
  --accent: #c2255c;
  --accent-soft: #fff0f6;
  --correct: #2f9e44;
  --correct-bg: #ebfbee;
  --wrong: #e03131;
  --wrong-bg: #fff5f5;
}

body {
  background:
    radial-gradient(circle at 10% 0%, #ffdeeb 0, transparent 40%),
    radial-gradient(circle at 90% 10%, #fff3bf 0, transparent 40%),
    var(--bg);
}

.logo span {
  background-image: linear-gradient(90deg, #c2255c, #f76707);
}

.section-title {
  margin: 24px 0 10px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

fieldset legend {
  margin: 0 0 10px;
}

.switch + .switch,
.filter {
  margin-top: 24px;
}

.switch__option,
.chip {
  position: relative;
  border: 3px solid transparent;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.switch__option {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
}

.switch__option input,
.chip input {
  position: absolute;
  opacity: 0;
}

.switch__option:has(input:checked),
.chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.switch__option:has(input:focus-visible),
.chip:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.switch__title {
  font-weight: 700;
}

.switch__text {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}

.filter__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

.chip:not(:has(input:checked)) {
  opacity: 0.6;
}

.chip__emoji {
  font-size: 1.2rem;
}

.chip__title {
  flex: 1;
  line-height: 1.2;
}

.chip__count {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pool-info {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

#pool-hint {
  margin: 0 0 12px;
}

.record {
  margin: 8px 0 0;
  font-weight: 500;
  color: var(--accent);
  text-align: center;
}

.record:empty {
  display: none;
}

.topbar__title {
  font-size: 1.25rem;
}

.question {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 96px;
  margin: 8px 0 16px;
  animation: pop-in 0.3s ease-out;
}

.question .brand-name {
  font-size: 2rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.brand-name {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.question__flag svg {
  display: block;
  width: auto;
  height: 110px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 6px 18px rgb(0 0 0 / 0.12);
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 3px solid transparent;
  border-radius: 16px;
  background: #f6f5f9;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s, background-color 0.2s;
}

.choice--woher {
  min-height: 112px;
}

.choice--marke .brand-name {
  font-size: 1.2rem;
}

.choice:active {
  transform: scale(0.98);
}

.choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.choice:disabled {
  cursor: default;
}

.choice--correct {
  border-color: var(--correct);
  background: var(--correct-bg);
}

.choice--wrong {
  border-color: var(--wrong);
  background: var(--wrong-bg);
}

/* Feste Höhe statt Prozent, die Safari in Buttons nicht auflöst. */
.choice__flag svg {
  display: block;
  max-width: 100%;
  width: auto;
  height: 76px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08), 0 4px 12px rgb(0 0 0 / 0.12);
}

.choice__country {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  animation: pop-in 0.25s ease-out;
}

.choice__mini-flag svg {
  display: block;
  width: auto;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

#next-button {
  margin-top: 16px;
}

.fact {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff9db;
  line-height: 1.45;
  animation: pop-in 0.3s ease-out;
}

.fact p {
  margin: 0;
}

.fact__trap {
  margin-bottom: 6px !important;
  font-weight: 700;
  color: var(--accent);
}

.streak {
  margin: 8px 0 0;
  color: #e8590c;
  font-weight: 700;
}

.streak:empty {
  display: none;
}

.round-list__name {
  font-size: 0.95rem;
}

.round-list__flag {
  display: flex;
  flex: none;
  width: 36px;
}

.round-list__flag svg {
  display: block;
  max-width: 36px;
  max-height: 24px;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

@media (max-height: 700px) {
  .choice--woher {
    min-height: 96px;
  }

  .choice__flag svg {
    height: 64px;
  }
}
