/* ===================================================================
   mini.css — Minijuego "Atender y convertir": aguja ping-pong + zona.
   =================================================================== */

.mini {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8,8,16,.74);
  z-index: 180;
  backdrop-filter: blur(2px);
}
.mini.show { display: flex; }

.mini-card {
  background: var(--bg-frame);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  width: min(440px, 92vw);
  box-shadow: var(--shadow-modal);
  animation: modalIn .18s ease-out;
}
.mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.mini-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}
.mini-head .round {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.mini-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 14px;
  line-height: 1.4;
}
.mini-sub strong { color: var(--text); }

/* ---------- Track + bandas + aguja ------------------------------
   Bandas (light · medium · super · medium · light) + bordes
   separadores, mismos colores que el SVG del Nivel 1 para que el
   feedback visual sea coherente entre niveles. La aguja viaja por
   encima de todas las bandas (z-index implícito por orden DOM).
   --------------------------------------------------------------- */
.mini-track {
  position: relative;
  width: 100%;
  height: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  overflow: hidden;
}

/* Bandas: el JS pone left% y width% en nextRound(). */
.mini-band {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 0;
}
.mini-band-light  { background: #dff1d8; }   /* 1 ★ (pálida) */
.mini-band-medium { background: #83c692; }   /* 2 ★ */
.mini-band-super  { background: #1c9648; }   /* 3 ★ (centro, intenso) */

/* Bordes verticales que separan bandas y delimitan la zona completa.
   El JS pone left% para cada uno; el width fijo de 1-2 px les da
   presencia visual sin invadir las bandas. */
.mini-edge {
  position: absolute;
  top: 2px; bottom: 2px;
  width: 1.5px;
  margin-left: -0.75px;
  pointer-events: none;
}
.mini-edge-soft  { background: #7da883; }                   /* light → medium */
.mini-edge-hard  { background: #3a6e44; }                   /* medium → super */
.mini-edge-outer {                                          /* borde exterior de la zona */
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #1a4422;
}

.mini-needle {
  position: absolute;
  top: -3px; bottom: -3px;
  left: 0;
  width: 3px;
  margin-left: -1.5px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(123,93,190,.5);
  border-radius: 2px;
  z-index: 2;
}

/* ---------- Controles + feedback ------------------------------- */
.mini-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.mini-info {
  font-size: 12px;
  color: var(--text-mute);
  flex: 1;
}
.mini-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: 9px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: filter .12s ease, transform .08s ease;
}
.mini-btn:hover  { filter: brightness(1.1); }
.mini-btn:active { transform: translateY(1px); }

.mini-feedback {
  min-height: 22px;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.mini-feedback.super { color: #ffd54f; text-shadow: 0 0 8px rgba(255,213,79,.35); }
.mini-feedback.good  { color: var(--ok); }
.mini-feedback.fair  { color: #a8d3ff; }
.mini-feedback.miss  { color: var(--bad); }
