/* Conquer the World: styles only this game uses (shared look lives in core/styles.css) */
/* ----- Game 2: Conquer the World ----- */
.country.reach, .dot.reach { fill: var(--reach); stroke-width: 2px; }
.country.own-0, .dot.own-0 { fill: var(--team-0); }
.country.own-1, .dot.own-1 { fill: url(#team-1-fill); }
.country.own-2, .dot.own-2 { fill: url(#team-2-fill); }
.country.own-3, .dot.own-3 { fill: url(#team-3-fill); }
.country.target, .dot.target { stroke: var(--pink-ink); stroke-width: 3.5px; animation: target-pulse 0.8s ease-in-out infinite alternate; }
@keyframes target-pulse { to { stroke-width: 1.5px; } }
.flash-reach .country.reach, .flash-reach .dot.reach { animation: reach-blink 0.35s 4 alternate; }
@keyframes reach-blink { to { fill: var(--sun); stroke-width: 3.5px; } }
.sea-route { fill: none; stroke: #fff; stroke-width: 2.5px; stroke-dasharray: 5 4; stroke-linecap: round; opacity: 0.9; }
.war-label text { font-family: var(--font-display); font-size: 12px; font-weight: 900; text-anchor: middle;
  dominant-baseline: central; fill: var(--ink); stroke: #fff; stroke-width: 3px; paint-order: stroke; }
.war-label.shield circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5px; }
.war-home circle { stroke: var(--ink); stroke-width: 2px; }
.war-home text { font-size: 13px; text-anchor: middle; dominant-baseline: central; }
.army circle { stroke: var(--ink); stroke-width: 2px; }
.army text { font-family: var(--font-display); font-size: 11px; font-weight: 900; text-anchor: middle;
  dominant-baseline: central; fill: #fff; stroke: var(--ink); stroke-width: 2.5px; paint-order: stroke; }
.team-0-bg { fill: var(--team-0); background: var(--team-0); }
.team-1-bg { fill: var(--team-1); background: var(--team-1); }
.team-2-bg { fill: var(--team-2); background: var(--team-2); }
.team-3-bg { fill: var(--team-3); background: var(--team-3); }
.chip .swatch { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.chip.out { text-decoration: line-through; opacity: 0.6; }
.bubbles.top { top: 10px; bottom: auto; }
.bar .bar-hint { flex: 1; font-weight: 800; color: var(--muted); font-size: 15px; text-align: center; }
.stat.army-stat b { color: var(--leaf-ink); }
.pick-home {
  position: absolute; left: 10px; right: 70px; top: 12px;
  width: fit-content; margin: 0 auto; text-align: center;
  --tilt: -1.5deg; transform: rotate(var(--tilt));
  background: var(--sun); border: var(--line); border-radius: 22px; box-shadow: var(--drop-small);
  padding: 8px 18px; font-weight: 900; font-size: 18px; pointer-events: none;
  animation: pop-in 0.3s ease-out;
}
.pick-home[hidden] { display: none; }
/* "Which country is this?" card at the bottom of the map */
.quiz {
  position: absolute; left: 10px; right: 70px; bottom: 10px;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: var(--line-thick); border-radius: 20px; box-shadow: var(--drop);
  padding: 10px 12px 12px;
  text-align: center;
  animation: pop-in 0.2s ease-out;
}
.quiz[hidden] { display: none; }
.quiz.at-top { top: 10px; bottom: auto; }     /* moves up when the country is in the bottom half */
.quiz .q { margin: 0 34px 2px; font-family: var(--font-display); font-size: 20px; }
.quiz .info { margin: 0 34px 8px; font-size: 14px; font-weight: 800; color: var(--muted); }
.quiz .choices { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz .choices button { flex: 1 1 140px; font-size: 18px; min-height: 52px; }
.quiz .choices button.right { background: var(--leaf); }
.quiz .choices button.right::after { content: " ✓"; }
.quiz .choices button.wrong { background: var(--pink-light); color: var(--pink-ink); }
.quiz .choices button.wrong::after { content: " ✗"; }
.quiz .close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; min-height: 40px; padding: 0; font-size: 18px; }
@media (max-width: 520px) {
  .bar .bar-hint { display: none; }
  .bar { justify-content: space-between; }
  .quiz { right: 10px; bottom: 8px; padding: 8px 8px 10px; }
  .quiz.at-top { right: 70px; }               /* clear of the zoom buttons */
  .quiz .q { font-size: 17px; margin: 0 30px 2px; }
  .quiz .info { font-size: 13px; margin: 0 30px 6px; }
  .quiz .choices { gap: 6px; flex-wrap: nowrap; }
  .quiz .choices button { flex: 1 1 0; min-width: 0; min-height: 52px; font-size: 14px; line-height: 1.15; padding: 4px 4px; }
  .pick-home { font-size: 15px; padding: 6px 14px; }
}

