/* ══ Flanker infantil (tarea de peces) ═══════════════════════════════════════
   Versión infantil: los elementos son peces nadando en el mar, no flechas
   abstractas, y el mar cubre toda la pantalla del ensayo (no solo una franja
   chica alrededor de la fila). Los 5 peces comparten el mismo color/forma —
   solo cambia la dirección — para no delatar cuál es el objetivo por su
   aspecto (eso invalidaría la tarea: la posición central, no el color, debe
   identificarlo). Sin ventana de respuesta: el niño responde cuando esté
   listo (ver helpers/tests/flanker-child.js, WINDOW_MS). */

.screen--flanker-child {
  position: relative; overflow: hidden;
  max-width: none; width: 100%; flex: 1;
  border-radius: var(--r-blk, 16px);
  background: linear-gradient(180deg, #afe4f5 0%, #4fa8d8 45%, #1f6fa8 100%);
  padding: 20px 20px 24px;
}
.screen--flanker-child .muted { color: rgba(255, 255, 255, .85); }

.flanker-bubble {
  position: absolute; z-index: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}
.flanker-bubble--1 { width: 34px; height: 34px; left: 6%;  top: 14%; }
.flanker-bubble--2 { width: 18px; height: 18px; left: 16%; top: 62%; }
.flanker-bubble--3 { width: 46px; height: 46px; right: 8%; top: 20%; }
.flanker-bubble--4 { width: 22px; height: 22px; right: 18%; top: 70%; }
.flanker-bubble--5 { width: 14px; height: 14px; left: 42%; top: 8%; }
.flanker-bubble--6 { width: 26px; height: 26px; right: 35%; top: 82%; }

.trial__topbar, .trial__stimulus, .flanker-controls,
.screen--flanker-child > .keys-hint, .screen--flanker-child > .feedback-inline {
  position: relative; z-index: 1;
}

.flanker-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2.4vw, 28px);
  height: clamp(120px, 24vh, 220px);
}
.flanker-item {
  display: flex; align-items: center; justify-content: center;
  width: clamp(72px, 16vw, 180px);
  transition: transform 100ms ease;
}
.flanker-fish { width: 100%; height: auto; display: block; }
.flanker-fish__tail { fill: #e8703a; }
.flanker-fish__body { fill: #ff9f43; stroke: #e8703a; stroke-width: 1.2; }
.flanker-fish__eye { fill: #13202c; }

.flanker-item.is-left { transform: scaleX(-1); }
.flanker-item.is-right { transform: scaleX(1); }
.flanker-item.is-neutral .flanker-fish { display: none; }
.flanker-item.is-neutral::before {
  content: ""; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
}

.flanker-controls { display: flex; gap: 16px; justify-content: center; margin-top: 12px; }
.flanker-key {
  font-size: 1.4rem; min-width: 64px; padding: 14px 20px;
  box-shadow: 0 6px 16px rgba(19, 32, 44, .18);
}

/* Miniatura de instrucciones: el mismo mar, en chico. */
.demo-flanker-sea {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 6px; padding: 10px 8px; border-radius: 12px;
  background: linear-gradient(180deg, #afe4f5 0%, #4fa8d8 55%, #1f6fa8 100%);
}
.demo-flanker-fish { width: 30px; height: 18px; }
.demo-flanker-fish.is-left { transform: scaleX(-1); }
