/* Stage tabs — programa style: mono caps, dashed underline, gold active. */
.stage-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line-strong);
}
.stage-tabs::-webkit-scrollbar { display: none; }

.stage-tabs > .tab {
  flex-shrink: 0;
  padding: 9px 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 150ms, border-color 150ms;
}
.stage-tabs > .tab:hover { color: var(--ink); }
.stage-tabs > .tab.-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Selector de fecha/etapa custom — reemplaza la tira infinita de pills.
   Mismo patrón que el popover de Palpitar (.pp-rounds): píldora + menú
   absoluto scrolleable en grilla, con nuestros estilos. */
.fx-picker {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}
.fx-picker > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--font-scoreboard);
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.fx-picker > summary::-webkit-details-marker { display: none; }
.fx-picker > summary:hover { border-color: var(--accent); }
.fx-picker > summary > .caret {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.fx-picker[open] > summary > .caret { transform: rotate(180deg); }
/* Una opción por fila, ancho completo y sin recorte (los nombres de fase son
   largos, en grilla se cortaban con ellipsis). En mobile ocupa el ancho del
   contenedor, tipo hoja de opciones. */
.fx-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 240px;
  max-width: min(90vw, 380px);
  max-height: 340px;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fx-picker-menu > a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  white-space: nowrap;
}
.fx-picker-menu > a:hover { background: rgba(255, 255, 255, 0.04); color: var(--ink); }
.fx-picker-menu > a.-on { background: rgba(10, 219, 198, 0.12); color: var(--accent); }
@media (max-width: 560px) {
  .fx-picker { display: block; }
  /* La pill ocupa todo el ancho (antes se encogía al contenido). */
  .fx-picker > summary { width: 100%; justify-content: space-between; }
  .fx-picker-menu { left: 0; right: 0; min-width: 0; max-width: none; }
}

/* Hint de la fase que se juega ahora (ej. "Se juega Dieciseisavos"). */
.fx-now {
  margin: -10px 0 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.fx-now > b { color: var(--coral); font-weight: 700; }
