/* ============================================================
   §12 — WS-F extras: agua (vasos), anillos de adherencia,
   racha semanal, volumen por músculo (selector de semana).
   Usa los tokens de app.css; theme-aware vía variables.
   ============================================================ */

:root {
  --water: #5AC8FA; /* mismo azul agua en claro y oscuro */
}

/* ---------- fila de agua ---------- */
.water-card { padding: 14px 16px 10px; }

.water-cups {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: space-between;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.cup-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 4px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-3);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.cup-btn:active { transform: scale(.9); background: var(--accent-soft); }

.cup-water { fill: var(--water); transition: y .25s var(--ease), height .25s var(--ease); }
.cup-full .cup-line { color: var(--water); }

/* animación de llenado del vaso recién agregado */
@keyframes cup-fill-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.cup-just-filled { animation: cup-fill-pop .45s var(--ease); transform-origin: center bottom; }

.water-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.water-meta {
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.water-meta .wm-val { color: var(--water); }
.water-meta .wm-sep { color: var(--text-3); font-weight: 400; }
.water-hint { font-size: 11px; color: var(--text-3); text-align: right; }

/* ---------- anillos de adherencia ---------- */
.rings-card { padding: 14px 12px 12px; }
.rings-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.ring-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.ring-item .mini-ring-svg { display: block; }
.ri-label { font-size: 12px; font-weight: 600; color: var(--text); }
.ri-sub { font-size: 11px; color: var(--text-2); }

/* ---------- volumen por músculo (Progreso) ---------- */
.wk-nav { display: inline-flex; align-items: center; gap: 4px; }
.wk-btn {
  appearance: none;
  background: var(--card-2);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--accent);
  cursor: pointer;
  transition: transform .15s var(--ease), opacity .15s var(--ease);
}
.wk-btn:active { transform: scale(.92); }
.wk-btn:disabled { opacity: .35; cursor: default; }
.wk-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  min-width: 92px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mv-card svg { margin-top: 4px; }
.mv-total {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .cup-just-filled { animation: none; }
  .cup-water { transition: none; }
}
