/* Drapeau : le drapeau et ses réponses. Le reste vient de /games/_shared/css/party.css. */

:root { --accent: var(--indigo); --accent-dark: #233d65; }

.flag-stage {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 0.9rem 1rem;
  overflow-y: auto;
}

/* Le drapeau, posé comme une carte à jouer : bord à l'encre et ombre dure */
.flag-box { display: grid; justify-items: center; gap: 0.6rem; flex: none; }
.flag {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  max-height: 34dvh;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
}
.flag-name { margin: 0; font-family: var(--title); font-weight: 800; font-size: 1.4rem; text-align: center; }

/* Choix multiple : deux grands boutons, ou une grille de quatre */
.answers { display: grid; gap: 0.7rem; width: min(100%, 30rem); margin: 0 auto; }
.answers-4 { grid-template-columns: 1fr 1fr; }
.answer {
  min-height: 3.6rem;
  padding: 0.6rem 0.7rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  box-shadow: 3px 3px 0 var(--ink);
  overflow-wrap: anywhere;
}
.answer:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.answer:disabled { cursor: default; }
.answer:disabled:not(.is-right):not(.is-wrong) { opacity: 0.45; box-shadow: none; }
.answer.is-right { background: var(--accent); color: #ffffff; }
.answer.is-wrong { background: var(--cinabre); color: #ffffff; }

/* Champ libre : on écrit le nom, puis « Valider » */
.free { display: flex; gap: 0.7rem; align-items: end; width: min(100%, 30rem); margin: 0 auto; }
.free .text-input { flex: 1; min-width: 0; font-size: 1.2rem; }
.free .btn { flex: none; }

.flag-stage [data-feedback] { width: min(100%, 30rem); margin: 0 auto; }
