/* Parity — Even and odd.

   The visual is the answer: pairs of dots in one colour, the
   leftover dot (if any) in another. The person doesn't need
   to count anything — the leftover dot is the oddity.

   Why two palettes and not one: the colour is the ARITHMETIC
   signal here, not just decoration. A single colour would
   force the user to count; two colours make parity visible at
   a glance, the same way "even" and "odd" stay visible in
   everyday life (this many cards, one left over).

   Both colours come from theme tokens: the paired colour is
   mod-racional (the "razonamiento" of an arrangement), the
   leftover colour is color-foco-suave (focus + a halo) so the
   orphan dot reads as the singular thing in the picture.
   Switching to dark mode or high contrast keeps the signal. */

.suite-chrome-activity h1 { color: var(--mod-razonamiento); }

.parity-card { border-color: var(--mod-razonamiento-suave); }
.parity-dots {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-width: 360px;
  padding: var(--espacio);
  border-radius: var(--radio);
  background: var(--mod-razonamiento-suave);
}
/* A pair is a column: its two balls stack vertically, and the parent
   .parity-dots puts 6px between pairs — that gap is what makes the
   pairing readable. Each ball carries its number inside. */
.parity-ball-pair { display: flex; flex-direction: column; gap: 4px; }
.parity-ball {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
/* Dark text on the orange ball keeps its contrast above AA. */
.parity-leftover {
  color: #111;
  box-shadow: 0 0 0 3px var(--color-foco-suave);
}
.parity-options { display: flex; gap: var(--espacio); flex-wrap: wrap; }
.parity-options .option-btn { min-width: 120px; font-size: var(--texto-grande); }
.parity-options .option-btn:disabled { opacity: 0.45; }
#parityPrompt { font-size: var(--texto-grande); color: var(--mod-razonamiento); }

/* En 320px las opciones bajarían a 1×2 en lugar de 2×1 si no forzamos
   `flex` nowrap. 120px mínimo × 2 + hueco = 256px < 320px. */
@media (max-width: 360px) {
  .parity-options { flex-direction: column; }
  .parity-options .option-btn { min-width: 0; width: 100%; }
}

.parity-real-visual { display: flex; justify-content: center; align-items: center; min-height: 64px; }
.parity-real-row { gap: 8px; }
.parity-real-column { flex-direction: column; gap: 8px; }
.parity-real-emoji { font-size: 40px; line-height: 1; }
.parity-real-leftover { border-radius: 50%; }
.parity-real-eggs {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 2px 6px; justify-content: center;
}
.parity-real-eggs .parity-real-emoji { font-size: 30px; }
.parity-real-svg { width: 170px; height: auto; }
.parity-real-title { margin: 0; text-align: center; color: var(--mod-razonamiento); }

/* pantalla 4: la regla, plegada para no distraer durante la práctica */
.parity-rule {
  border: 1px solid var(--mod-razonamiento-suave);
  border-radius: var(--radio);
  padding: var(--espacio);
}
.parity-rule summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  color: var(--mod-razonamiento); font-weight: 700;
}
.parity-rule p { margin: var(--espacio) 0 0; }

/* nombre de la parte del test (dots, numbers, big numbers) */
.parity-block { margin: 0; font-weight: 700; color: var(--mod-razonamiento); text-align: center; }

/* recordatorio de la última cifra: dos fichas, par (azul) e impar (naranja) */
.parity-last-card { border-color: var(--mod-razonamiento-suave); }
.parity-last-title { margin: 0; font-weight: 700; color: var(--mod-razonamiento); }
.parity-last-line { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.parity-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-weight: 700; letter-spacing: 1px;
}
.parity-chip-even { background: #1565C0; color: #fff; }
.parity-chip-odd { background: #E65100; color: #111; }
.parity-rule .parity-last-line { margin-top: var(--espacio); }

/* pantalla final */
.big-emoji { font-size: 96px; }
.transfer  { color: var(--color-texto-suave); max-width: 480px; }

/* The review slide after the numbers: the rule, then the even and the odd numbers, one line each. */
.parity-review { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 100%; }
.parity-review-rule { margin: 0; font-size: var(--texto-grande); font-weight: 700; line-height: 1.35; }
.parity-review-line { margin: 0; font-size: var(--texto-grande); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* 0 has no balls: its label stands in their place, in the same space. */
.parity-zero-text {
  font-size: var(--texto-grande);
  font-weight: 800;
  color: var(--mod-razonamiento);
  align-self: center;
}
