/* Flagulary — spielspezifische Stile, bewusst identisch mit Geocabulary (gleiche Flaggengröße usw.). Basis aus game-base.css. */

.gc {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 0 56px;
}

/* ---------- Kopf ---------- */
.gc-kopf { margin: 6px 0 20px; }
.gc-titel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem);
  margin: 0 0 6px;
}
.gc-unter {
  margin: 0;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* ---------- Leiste ---------- */
.leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.leiste-rechts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.suche {
  font: inherit;
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink);
}
.suche:focus-visible {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 40%, transparent);
}
.zaehler { color: var(--ink-muted); font-size: 0.95rem; }
.zaehler strong { color: var(--ink); }

.btn-leise {
  background: var(--bg-panel);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.45; cursor: default; filter: none; }

/* ---------- Länder-Raster ---------- */
.laender {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.land {
  font: inherit;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.land:hover { border-color: color-mix(in srgb, var(--akzent) 40%, var(--line)); }
.land:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 45%, transparent);
}
.land-flagge {
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex: none;
}
.land-name {
  font-size: 0.92rem;
  line-height: 1.15;
  flex: 1;
}
.haken {
  flex: none;
  opacity: 0;
  font-weight: 800;
  color: var(--akzent);
}
.land[aria-pressed="true"] {
  border-color: var(--akzent);
  background: color-mix(in srgb, var(--akzent) 14%, var(--bg-panel));
}
.land[aria-pressed="true"] .haken { opacity: 1; }

.hinweis-leer { color: var(--ink-muted); margin-top: 18px; }

/* ---------- Quiz ---------- */
/* Drei Spalten mit gleich breiten Außenspalten: so steht „1 / 197“ genau über der Flagge */
.quiz-leiste {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0 20px;
  color: var(--ink-muted);
}
.quiz-leiste > :first-child { justify-self: start; }
.fortschritt { font-weight: 700; color: var(--ink); text-align: center; }
.punkte { justify-self: end; }
.punkte strong { color: var(--ink); }

.frage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  /* etwas Luft über der Flagge: das Quiz sitzt mittiger, unten bleibt weniger leer */
  padding-top: clamp(28px, 7vh, 72px);
}
.q-flagge {
  width: min(62%, 240px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.q-land {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  margin: 4px 0 0;
}
.q-prompt { margin: 0; color: var(--ink-muted); }
.antwort {
  font: inherit;
  width: min(100%, 360px);
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--ink);
}
.antwort:focus-visible {
  outline: none;
  border-color: var(--akzent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 40%, transparent);
}
.antwort:disabled { opacity: 0.8; }

.feedback {
  min-height: 1.5em;
  margin: 2px 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.feedback.ok { color: var(--mint); }
.feedback.no { color: var(--coral); }

.aktionen { display: flex; gap: 10px; justify-content: center; }
/* Reveal / Next etwas größer als der Standard-Button */
.frage .aktionen .btn { padding: 14px 28px; }

/* ---------- Ergebnis ---------- */
.ende {
  text-align: center;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ende-titel {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0;
}
.ende-score { margin: 0; font-size: 1.2rem; }
.ende-score strong { color: var(--akzent); }

.review {
  width: 100%;
  max-width: 460px;
  text-align: left;
  margin-top: 6px;
}
.review-titel {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--ink-muted);
}
.review-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.review-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.rev-flagge {
  width: 24px; height: 18px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none;
}
.review-liste li span:nth-child(2) { flex: 1; }
.rev-cap { color: var(--mint); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .land { transition: none; }
}

/* Hinweis, wenn ein lokaler Admin-Entwurf aktiv ist */
.admin-hinweis {
  align-self: stretch;
  max-width: 880px;
  width: 100%;
  margin: 14px auto 0;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--amber) 18%, var(--bg-panel));
  border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--line));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Hard mode: die 50 am wenigsten bekannten ---------- */
.hard-karte {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, #fb923c 45%, var(--line));
  background: linear-gradient(120deg, color-mix(in srgb, #f97316 16%, var(--bg-panel)), var(--bg-panel) 72%);
}
.hard-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.hard-titel { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.hard-unter { color: var(--ink-muted); font-size: 0.92rem; }
.hard-best { margin-top: 4px; font-size: 0.85rem; font-weight: 700; color: #fb923c; }
:root[data-theme="light"] .hard-best { color: #c2410c; }
.btn-hard { background: linear-gradient(135deg, #fdba74, #fb923c 45%, #ef4444); color: #1e1b34; white-space: nowrap; }
.btn-hard:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, #fb923c 55%, transparent); }
.modus-chip {
  align-self: center; margin: 0 0 12px;
  padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem;
  background: color-mix(in srgb, #f97316 20%, var(--bg-panel));
  border: 1px solid color-mix(in srgb, #fb923c 50%, var(--line));
}
@media (max-width: 560px) { .btn-hard { width: 100%; } }
