/* ==========================================================================
   Flag Quiz
   Builds on ../css/atlas.css (tokens and shared components).
   ========================================================================== */

[hidden] {
  display: none !important;
}


/* ---------- Layout ---------- */

.fq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.fq-dossier,
.fq-result {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .fq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Flag panel ---------- */

.fq-flag-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.fq-flag-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: clamp(16px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: var(--paper-sunken);
}

.fq-flag-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 18px -10px rgba(30, 41, 51, 0.45);
}

/* ---------- Question panel ---------- */

.fq-question-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.fq-question {
  font-size: clamp(24px, 3vw, 30px);
}

.fq-question-panel .atlas-options {
  grid-template-columns: minmax(0, 1fr);
}

.atlas-option {
  overflow-wrap: anywhere;
}

.atlas-option .icon {
  margin-left: auto;
}

.fq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fq-hint {
  font-size: 12px;
  color: var(--ink-muted);
}

.fq-actions .atlas-btn {
  margin-left: auto;
}

@media (hover: none) {
  .fq-hint {
    display: none;
  }
}

/* ---------- Country dossier ---------- */

.fq-dossier {
  padding: 24px;
}

.fq-dossier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.fq-dossier-title {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--accent);
}

.fq-dossier-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
}

.fq-dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.fq-dossier-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}

.fq-dossier-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .fq-dossier-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- End of quiz ---------- */

.fq-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 5vw, 40px);
}

.fq-result-title {
  font-size: clamp(30px, 5vw, 44px);
}

.fq-result-score {
  font-size: 18px;
  color: var(--ink-soft);
}
