/* ==========================================================
   EQUILIBRA · Pantalla principal estilo «Wii Fit Plus»
   Escenario de proporción fija 350:194 (la de la referencia).
   Posiciones en % del escenario; tamaños de letra/bordes en --s
   (1 --s = 1 píxel de la referencia).
   ========================================================== */

:root {
  --fuente: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --alto-pantalla: 100vh;
  --s: min(calc(100vw / 350), calc(var(--alto-pantalla) / 194));
  --tinta: #3F4547;
}
@supports (height: 100dvh) {
  :root { --alto-pantalla: 100dvh; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: var(--fuente);
  color: var(--tinta);
  /* Relleno coherente si la pantalla es más alta/ancha que el escenario */
  background: linear-gradient(to bottom, #DAE7EC 0%, #E4EEF2 42%, #D9E2DF 58%, #DCE5E2 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
:focus { outline: none; }
:focus-visible { outline: calc(1.2 * var(--s)) solid #5BB6E8; outline-offset: calc(1 * var(--s)); }

.oculto-visual {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Escenario ---------- */
.escenario {
  position: fixed;
  left: 50%;
  top: 50%;
  width: calc(350 * var(--s));
  height: calc(194 * var(--s));
  transform: translate(-50%, -50%);
}
.gimnasio {
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
}
.app { position: absolute; inset: 0; }
.vista { position: absolute; inset: 0; }

/* ---------- Panel translúcido de la columna derecha ---------- */
.marco-menu {
  position: absolute;
  left: 57.43%;   /* 201 / 350 */
  top: 4.64%;     /* 9 / 194 */
  width: 33.43%;  /* 117 / 350 */
  height: 68.56%; /* 133 / 194 */
  background: rgba(214, 221, 227, 0.62);
  border: calc(0.55 * var(--s)) solid rgba(176, 186, 194, 0.85);
  box-shadow: inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.55);
  border-radius: calc(0.8 * var(--s));
}

/* ---------- Botones de colores (estilo Wii) ---------- */
.boton-wii {
  position: absolute;
  left: 59.43%;    /* 208 / 350 */
  width: 29.43%;   /* 103 / 350 */
  height: 10.82%;  /* 21 / 194 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(5 * var(--s));
  border: calc(0.75 * var(--s)) solid var(--borde);
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 12%,
      rgba(255,255,255,0) 86%, rgba(255,255,255,.45) 100%),
    linear-gradient(to bottom,
      var(--c1) 0%, var(--c2) 22%, var(--c3) 44%, var(--c4) 68%, var(--c5) 88%, var(--c6) 100%);
  box-shadow:
    0 0 0 calc(0.7 * var(--s)) rgba(255, 255, 255, 0.8),
    0 calc(0.6 * var(--s)) calc(1.4 * var(--s)) rgba(90, 105, 115, 0.18),
    inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.5);
  color: var(--texto);
  font-size: calc(11.4 * var(--s));
  font-weight: 700;
  letter-spacing: calc(0.05 * var(--s));
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 calc(0.35 * var(--s)) 0 rgba(255, 255, 255, 0.35);
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
}
.boton-wii__texto, .boton-grande__texto {
  display: inline-block;
  transform: translateY(calc(0.35 * var(--s))) scaleX(var(--ajuste, 1));
  transform-origin: center;
}

.boton-wii--plus   { top: 7.22%;  --c1:#E2E6EF; --c2:#CFD5E0; --c3:#AAB3C3; --c4:#BAC2D1; --c5:#CBCFDB; --c6:#E5E7F1; --borde:#9EA3AD; --texto:#2E4147; }
.boton-wii--yoga   { top: 20.36%; --c1:#B4DCE0; --c2:#8CC4CB; --c3:#5596A2; --c4:#71AAB5; --c5:#8AC0C3; --c6:#A8D5D8; --borde:#6C8D91; --texto:#1F4C55; }
.boton-wii--fuerza { top: 33.51%; --c1:#B8DCB1; --c2:#91C086; --c3:#659A65; --c4:#7FB175; --c5:#97C08D; --c6:#B9DDB5; --borde:#6F8D70; --texto:#14431A; }
.boton-wii--aero   { top: 46.65%; --c1:#F0CDD2; --c2:#D09D9B; --c3:#B46D6E; --c4:#C48C8B; --c5:#CEA1A2; --c6:#F2C5C9; --borde:#866368; --texto:#633234; }
.boton-wii--equil  { top: 59.79%; --c1:#E0E6A2; --c2:#CDD476; --c3:#B1B751; --c4:#C0C76C; --c5:#CFD47C; --c6:#D9DE90; --borde:#A3A77A; --texto:#4F530B; }

/* Botón grande inferior (melocotón claro) */
.boton-grande {
  position: absolute;
  left: 58.14%;   /* 203.5 / 350 */
  top: 75.52%;    /* 146.5 / 194 */
  width: 31.71%;  /* 111 / 350 */
  height: 18.04%; /* 35 / 194 */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: calc(0.8 * var(--s)) solid #B2A47F;
  background: linear-gradient(to bottom,
    #F3EBDC 0%, #EDE6DC 22%, #E6DFDB 45%, #E1D8D1 62%, #D9CDBB 82%, #DCCBA9 100%);
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) rgba(250, 248, 230, 0.85),
    0 calc(0.7 * var(--s)) calc(1.6 * var(--s)) rgba(110, 100, 70, 0.18),
    inset 0 0 0 calc(0.9 * var(--s)) #D9BE8A,
    inset 0 0 0 calc(1.7 * var(--s)) #EBD6AA,
    inset 0 calc(2.5 * var(--s)) calc(2 * var(--s)) rgba(255, 255, 255, 0.55);
  color: #5B5241;
  font-size: calc(11.3 * var(--s));
  font-weight: 700;
  letter-spacing: calc(0.05 * var(--s));
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 calc(0.35 * var(--s)) 0 rgba(255, 255, 255, 0.45);
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
}

/* Botón «Atrás» (píldora pequeña con borde verde) */
.boton-atras {
  position: absolute;
  left: 4%;       /* 14 / 350 */
  top: 82.47%;    /* 160 / 194 */
  width: 19.14%;  /* 67 / 350 */
  height: 11.86%; /* 23 / 194 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(3.2 * var(--s));
  padding-right: calc(2 * var(--s));
  border-radius: 999px;
  border: calc(0.6 * var(--s)) solid #8A9F7A;
  background: linear-gradient(to bottom, #EEF5EE 0%, #DCE3E3 30%, #D3D8DB 55%, #C9D0CC 80%, #C3CDBF 100%);
  box-shadow:
    0 0 0 calc(0.6 * var(--s)) rgba(240, 248, 238, 0.85),
    inset 0 0 0 calc(0.8 * var(--s)) #CFE2C4,
    0 calc(0.5 * var(--s)) calc(1.2 * var(--s)) rgba(80, 95, 80, 0.15);
  color: #47524E;
  font-size: calc(10.6 * var(--s));
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
}
.boton-atras__icono { width: calc(7.4 * var(--s)); height: calc(11 * var(--s)); flex: none; }

/* Reloj / marcador «Hoy» */
.reloj {
  position: absolute;
  left: 10.86%;   /* 38 / 350 */
  top: 39.18%;    /* 76 / 194 */
  width: 40%;     /* 140 / 350 */
  height: 58.76%; /* 114 / 194 */
  transition: transform 90ms ease, filter 90ms ease;
}
.reloj svg { display: block; width: 100%; height: 100%; overflow: visible; }
.reloj__texto { font-family: var(--fuente); }

/* ---------- Estado pulsado (brillo + hundido, como en Wii) ---------- */
@media (hover: hover) and (pointer: fine) {
  .boton-wii:hover, .boton-grande:hover, .boton-atras:hover {
    filter: brightness(1.05) saturate(1.05);
  }
}
.boton-wii:active, .boton-wii.is-pulsado,
.boton-grande:active, .boton-grande.is-pulsado,
.boton-atras:active, .boton-atras.is-pulsado {
  transform: translateY(calc(0.7 * var(--s))) scale(0.97);
  filter: brightness(1.12) saturate(1.12);
}
.boton-wii:active, .boton-wii.is-pulsado {
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) #FFFFFF,
    0 0 calc(4 * var(--s)) calc(1 * var(--s)) rgba(255, 255, 255, 0.95),
    inset 0 calc(1.4 * var(--s)) calc(2 * var(--s)) rgba(0, 0, 0, 0.18),
    inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.6);
}
.boton-grande:active, .boton-grande.is-pulsado {
  box-shadow:
    0 0 0 calc(0.9 * var(--s)) #FFFFFF,
    0 0 calc(4.5 * var(--s)) calc(1 * var(--s)) rgba(255, 250, 225, 0.95),
    inset 0 0 0 calc(0.9 * var(--s)) #E2C590,
    inset 0 calc(1.6 * var(--s)) calc(2.4 * var(--s)) rgba(90, 70, 30, 0.2);
}
.boton-atras:active, .boton-atras.is-pulsado {
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) #FFFFFF,
    0 0 calc(4 * var(--s)) calc(1 * var(--s)) rgba(235, 255, 225, 0.95),
    inset 0 calc(1.2 * var(--s)) calc(2 * var(--s)) rgba(0, 0, 0, 0.16);
}
.reloj:active, .reloj.is-pulsado {
  transform: translateY(calc(0.8 * var(--s))) scale(0.985);
  filter: brightness(1.08) drop-shadow(0 0 calc(3 * var(--s)) rgba(255, 255, 255, 0.95));
}

/* ---------- Pantalla «En desarrollo» ---------- */
.ventana {
  position: absolute;
  left: 22%;
  top: 14%;
  width: 56%;
  height: 66%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(5 * var(--s));
  padding: calc(8 * var(--s)) calc(12 * var(--s));
  text-align: center;
  border-radius: calc(9 * var(--s));
  background: linear-gradient(to bottom, rgba(255,255,255,.96), rgba(240,245,247,.94));
  border: calc(0.7 * var(--s)) solid #B5C0C6;
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) rgba(255,255,255,.85),
    0 calc(1.5 * var(--s)) calc(5 * var(--s)) rgba(70, 90, 100, 0.18);
}
.ventana__titulo {
  margin: 0;
  font-size: calc(15 * var(--s));
  font-weight: 700;
  color: #3A4447;
  line-height: 1.1;
}
.ventana__etiqueta {
  display: inline-block;
  padding: calc(2.4 * var(--s)) calc(9 * var(--s)) calc(2 * var(--s));
  border-radius: calc(3.5 * var(--s));
  background: linear-gradient(to bottom, #5DA1A2 0%, #3F7F85 30%, #3D7D82 70%, #4A8C93 100%);
  border: calc(0.6 * var(--s)) solid #2F6265;
  color: #E2FBF8;
  font-size: calc(9.5 * var(--s));
  font-weight: 700;
  letter-spacing: calc(0.3 * var(--s));
}
.ventana__texto {
  margin: 0;
  max-width: calc(160 * var(--s));
  font-size: calc(7.6 * var(--s));
  line-height: 1.35;
  color: #4C5558;
}
.ventana .boton-grande {
  position: relative;
  left: auto; top: auto;
  width: calc(92 * var(--s));
  height: calc(28 * var(--s));
  margin-top: calc(3 * var(--s));
}

/* ==========================================================
   ÁREA «ENTRENAMIENTO PLUS»
   Mismo sistema: posiciones y tamaños en --s (1 --s = 1 px de la referencia 350×194).
   ========================================================== */
.area { overflow: visible; }
.area__fondo {
  position: absolute;
  left: -50%; top: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
}

/* ---------- Barra superior con título verde y botones − / + ---------- */
.barra {
  position: absolute;
  left: calc(30 * var(--s));
  top: calc(10.5 * var(--s));
  width: calc(290 * var(--s));
  height: calc(17 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(16 * var(--s));
  border-radius: 999px;
  background: linear-gradient(to bottom, #FFFFFF 0%, #F3F6F6 45%, #E3E8E9 100%);
  border: calc(0.55 * var(--s)) solid #BCC6C9;
  box-shadow:
    inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.9),
    0 calc(0.6 * var(--s)) calc(1.6 * var(--s)) rgba(80, 95, 100, 0.14);
}
.barra__titulo {
  margin: 0;
  display: inline-block;
  font-size: calc(11.6 * var(--s));
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: calc(0.1 * var(--s));
  color: #4E9E22;
  text-shadow:
    0 calc(0.5 * var(--s)) 0 #FFFFFF,
    0 0 calc(1.2 * var(--s)) #FFFFFF,
    0 calc(-0.3 * var(--s)) 0 rgba(255,255,255,.8);
  transform: translateY(calc(0.4 * var(--s))) scaleX(var(--ajuste, 1));
}
.boton-redondo {
  position: absolute;
  top: calc(9.5 * var(--s));
  width: calc(19 * var(--s));
  height: calc(19 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: calc(1 * var(--s)) solid #FFFFFF;
  background: radial-gradient(circle at 50% 28%, #D8F6A6 0%, #93D352 38%, #62AE2C 72%, #4C9620 100%);
  box-shadow:
    0 0 0 calc(0.55 * var(--s)) #7FA868,
    0 calc(0.8 * var(--s)) calc(1.6 * var(--s)) rgba(40, 80, 20, 0.25),
    inset 0 calc(-1.4 * var(--s)) calc(2 * var(--s)) rgba(30, 70, 10, 0.22);
  transition: transform 90ms ease, filter 90ms ease;
}
.boton-redondo--menos { left: calc(20.5 * var(--s)); }
.boton-redondo--mas   { left: calc(310.5 * var(--s)); }
.boton-redondo__signo { width: calc(10 * var(--s)); height: calc(10 * var(--s)); }
/* Una sola página de juegos: −/+ visibles pero deshabilitados (sin estado pulsado) */
.boton-redondo:disabled {
  cursor: default;
  filter: grayscale(.45) brightness(1.06);
  opacity: .5;
  transform: none;
}

/* ---------- Botón verde («Cambiar», «Siguiente») ---------- */
.boton-verde {
  position: absolute;
  left: calc(238 * var(--s));
  top: calc(158 * var(--s));
  width: calc(90 * var(--s));
  height: calc(24.5 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--s));
  padding: 0 calc(8 * var(--s));
  border-radius: 999px;
  border: calc(0.7 * var(--s)) solid #5E9A33;
  background: linear-gradient(to bottom, #E4F8C6 0%, #B7E57E 30%, #8DCD50 62%, #A3D96A 88%, #C3E99A 100%);
  box-shadow:
    0 0 0 calc(0.7 * var(--s)) rgba(245, 255, 235, 0.9),
    inset 0 0 0 calc(0.7 * var(--s)) rgba(255, 255, 255, 0.5),
    0 calc(0.6 * var(--s)) calc(1.4 * var(--s)) rgba(60, 90, 40, 0.2);
  color: #1E4810;
  font-size: calc(10.8 * var(--s));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 calc(0.35 * var(--s)) 0 rgba(255, 255, 255, 0.45);
  transition: transform 90ms ease, filter 90ms ease, box-shadow 90ms ease;
}
.boton-verde__icono { width: calc(13 * var(--s)); height: calc(13 * var(--s)); flex: none; }
.boton-verde__texto { display: inline-block; transform: translateY(calc(0.35 * var(--s))) scaleX(var(--ajuste, 1)); transform-origin: left center; }

/* Estados pulsado/hover de las piezas nuevas (mismo comportamiento que la principal) */
@media (hover: hover) and (pointer: fine) {
  .boton-redondo:not(:disabled):hover, .boton-verde:hover, .boton-salir:hover { filter: brightness(1.05) saturate(1.05); }
}
.boton-redondo:not(:disabled):active, .boton-redondo.is-pulsado,
.boton-verde:active, .boton-verde.is-pulsado,
.boton-salir:active, .boton-salir.is-pulsado {
  transform: translateY(calc(0.7 * var(--s))) scale(0.96);
  filter: brightness(1.12) saturate(1.12);
}
.boton-verde:active, .boton-verde.is-pulsado, .boton-redondo:not(:disabled):active, .boton-redondo.is-pulsado {
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) #FFFFFF,
    0 0 calc(4 * var(--s)) calc(1 * var(--s)) rgba(235, 255, 215, 0.95),
    inset 0 calc(1.2 * var(--s)) calc(2 * var(--s)) rgba(0, 0, 0, 0.16);
}

/* ---------- Cuadrícula 5×3 de miniaturas ---------- */
.cuadricula {
  position: absolute;
  left: calc(26 * var(--s));
  top: calc(34 * var(--s));
  width: calc(298 * var(--s));
  height: calc(109 * var(--s));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: calc(5 * var(--s)) calc(6 * var(--s));
}
.mini {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(4.2 * var(--s));
  border: calc(1.7 * var(--s)) solid #FFFFFF;
  background: #DDE4E6;
  box-shadow:
    0 0 0 calc(0.5 * var(--s)) #AEB9BD,
    0 calc(0.9 * var(--s)) calc(2 * var(--s)) rgba(60, 75, 80, 0.22);
  transition: transform 110ms ease, box-shadow 110ms ease, filter 110ms ease;
}
.mini__svg { display: block; width: 100%; height: 100%; }
.mini.is-sel {
  z-index: 2;
  transform: scale(1.08);
  border-color: #FFFDE8;
  box-shadow:
    0 0 0 calc(1.1 * var(--s)) #8FD14F,
    0 0 calc(4 * var(--s)) calc(1.6 * var(--s)) rgba(255, 244, 140, 0.95),
    0 calc(1.2 * var(--s)) calc(3 * var(--s)) rgba(60, 75, 80, 0.25);
}
.mini.is-pulsado, .mini:active { transform: scale(1.03); filter: brightness(1.1); }
.mini--vacia {
  background: linear-gradient(to bottom, rgba(255,255,255,.55), rgba(228,234,235,.55));
  border-color: rgba(255,255,255,.75);
  box-shadow: 0 0 0 calc(0.5 * var(--s)) #C7D0D3;
}

/* Rótulo con el nombre del juego seleccionado */
.rotulo {
  position: absolute;
  left: 50%;
  top: calc(146 * var(--s));
  transform: translateX(-50%);
  min-width: calc(110 * var(--s));
  max-width: calc(150 * var(--s));
  height: calc(14 * var(--s));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(4 * var(--s));
  padding: 0 calc(9 * var(--s));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: calc(0.55 * var(--s)) solid #C2CCCF;
  box-shadow: 0 calc(0.5 * var(--s)) calc(1.4 * var(--s)) rgba(70, 90, 100, 0.14);
  white-space: nowrap;
  line-height: 1;
}
.rotulo__nombre { font-size: calc(8.6 * var(--s)); font-weight: 800; color: #3F4547; }
.rotulo__tipo { font-size: calc(6.6 * var(--s)); font-weight: 700; color: #5E9A33; }
.rotulo.is-activo { border-color: #9BD563; box-shadow: 0 0 0 calc(0.6 * var(--s)) rgba(214, 245, 180, .9), 0 calc(0.5 * var(--s)) calc(1.4 * var(--s)) rgba(70, 90, 100, 0.14); }

/* ---------- Panel informativo (izquierda) ---------- */
.tarjeta {
  position: absolute;
  left: calc(14 * var(--s));
  top: calc(34 * var(--s));
  width: calc(180 * var(--s));
  height: calc(116 * var(--s));
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--s));
  padding: calc(8 * var(--s)) calc(10 * var(--s));
  overflow: hidden;
  border-radius: calc(7 * var(--s));
  background: linear-gradient(to bottom, rgba(255,255,255,.97), rgba(243,247,248,.95));
  border: calc(0.6 * var(--s)) solid #B9C4C9;
  box-shadow:
    0 0 0 calc(0.7 * var(--s)) rgba(255,255,255,.85),
    0 calc(1.2 * var(--s)) calc(4 * var(--s)) rgba(70, 90, 100, 0.16);
}
.tarjeta--estrecha { width: calc(138 * var(--s)); }
.tarjeta > * { margin: 0; }
.tarjeta__eyebrow { font-size: calc(6.4 * var(--s)); font-weight: 800; letter-spacing: calc(0.3 * var(--s)); text-transform: uppercase; color: #5E9A33; }
.tarjeta__titulo { font-size: calc(13 * var(--s)); font-weight: 800; color: #3A4447; line-height: 1.1; }
.tarjeta__desc { font-size: calc(7.2 * var(--s)); line-height: 1.35; color: #4C5558; }
.tarjeta__meta { display: flex; flex-wrap: wrap; gap: calc(3 * var(--s)); }
.meta {
  display: inline-block;
  padding: calc(1.6 * var(--s)) calc(5 * var(--s)) calc(1.3 * var(--s));
  border-radius: 999px;
  background: #E6F3D8;
  border: calc(0.45 * var(--s)) solid #A9D27F;
  color: #2F5E17;
  font-size: calc(6.2 * var(--s));
  font-weight: 800;
  line-height: 1.1;
}
.meta--ejemplo { background: #EEF2F3; border-color: #C7D0D3; color: #5A6467; font-weight: 700; }
.tarjeta__lista { font-size: calc(6.6 * var(--s)); line-height: 1.4; color: #3F4547; font-weight: 700; }
.tarjeta__pista { font-size: calc(6.4 * var(--s)); line-height: 1.35; color: #6A7477; }
.tarjeta__nivel { font-size: calc(6.6 * var(--s)); line-height: 1.3; color: #4C5558; }
.tarjeta__nivel b { color: #3A4447; }
.nota-fisio {
  margin-top: auto !important;
  display: flex;
  align-items: flex-start;
  gap: calc(3 * var(--s));
  padding-top: calc(3 * var(--s));
  border-top: calc(0.45 * var(--s)) solid #DCE3E5;
  font-size: calc(5.9 * var(--s));
  line-height: 1.35;
  color: #6A7477;
}
.nota-fisio__i {
  flex: none;
  width: calc(7 * var(--s)); height: calc(7 * var(--s));
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #8FA3AB; color: #fff;
  font-size: calc(5.2 * var(--s)); font-weight: 800; font-style: normal;
}

/* Chips de área (colores de los botones del menú principal) */
.chip {
  display: inline-block;
  padding: calc(1.2 * var(--s)) calc(4 * var(--s)) calc(1 * var(--s));
  border-radius: 999px;
  font-size: calc(5.4 * var(--s));
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  border: calc(0.45 * var(--s)) solid;
}
.chip--plus   { background: #E3E7EF; border-color: #A9B0BC; color: #2E4147; }
.chip--yoga   { background: #CBE8EB; border-color: #7FAEB4; color: #1F4C55; }
.chip--fuerza { background: #D3EBCD; border-color: #84AE80; color: #14431A; }
.chip--aero   { background: #F5DADC; border-color: #C29597; color: #633234; }
.chip--equil  { background: #EBEFC2; border-color: #B5B983; color: #4F530B; }

/* ---------- Columna de botones (derecha) ---------- */
.columna {
  position: absolute;
  left: calc(201 * var(--s));
  top: calc(34 * var(--s));
  width: calc(117 * var(--s));
  display: flex;
  flex-direction: column;
  gap: calc(4.5 * var(--s));
  padding: calc(5.5 * var(--s)) calc(7 * var(--s));
  background: rgba(214, 221, 227, 0.62);
  border: calc(0.55 * var(--s)) solid rgba(176, 186, 194, 0.85);
  box-shadow: inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.55);
  border-radius: calc(0.8 * var(--s));
}
.columna .boton-wii {
  position: relative;
  left: auto; top: auto;
  width: 100%;
  height: calc(21 * var(--s));
  flex: none;
}
.columna--doble {
  left: calc(160 * var(--s));
  width: calc(176 * var(--s));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(5 * var(--s)) calc(5 * var(--s));
}
.columna--doble .boton-wii { font-size: calc(9.6 * var(--s)); height: calc(22 * var(--s)); }
.columna .boton-wii.is-sel {
  filter: brightness(1.06) saturate(1.08);
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) #FFFFFF,
    0 0 calc(3.6 * var(--s)) calc(1 * var(--s)) rgba(255, 255, 255, 0.95),
    inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.6);
}

/* Columna de la ficha: nivel + huecos «Próximamente» */
.columna--ficha { top: calc(33 * var(--s)); gap: calc(2.6 * var(--s)); padding-top: calc(4 * var(--s)); padding-bottom: calc(5 * var(--s)); }
.ficha .boton-grande { top: calc(150 * var(--s)); height: calc(32 * var(--s)); }
.columna__titulo { margin: 0; font-size: calc(6.6 * var(--s)); font-weight: 800; letter-spacing: calc(0.3 * var(--s)); text-transform: uppercase; color: #5A6467; text-align: center; }
.columna--ficha .boton-wii { height: calc(15 * var(--s)); font-size: calc(9.6 * var(--s)); }
.boton-nivel { filter: saturate(.55) brightness(1.04); opacity: .85; }
.boton-nivel.is-elegido {
  filter: none; opacity: 1;
  box-shadow:
    0 0 0 calc(0.9 * var(--s)) #FFFFFF,
    0 0 calc(3.6 * var(--s)) calc(1.2 * var(--s)) rgba(255, 246, 170, 0.95),
    inset 0 0 0 calc(0.6 * var(--s)) rgba(255, 255, 255, 0.6);
}
.boton-nivel__marca {
  position: absolute;
  right: calc(7 * var(--s));
  top: 50%;
  transform: translateY(-50%);
  width: calc(10 * var(--s)); height: calc(10 * var(--s));
  display: none;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #FFFFFF;
  color: #3E8E1E;
  font-size: calc(7 * var(--s));
  font-weight: 900;
  box-shadow: 0 0 0 calc(0.5 * var(--s)) rgba(0,0,0,.15);
}
.boton-nivel.is-elegido .boton-nivel__marca { display: inline-flex; }
.columna__separador { flex: none; height: calc(0.5 * var(--s)); margin: calc(0.6 * var(--s)) 0; background: rgba(150, 162, 170, .55); }
.pildora-off {
  width: 100%;
  min-height: calc(14.5 * var(--s));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(0.8 * var(--s));
  padding: calc(1.6 * var(--s)) calc(4 * var(--s));
  border-radius: calc(5 * var(--s));
  border: calc(0.6 * var(--s)) dashed #A9B3B8;
  background: rgba(240, 243, 244, 0.75);
  color: #7C8689;
  font-size: calc(6.4 * var(--s));
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: not-allowed;
}
.pildora-off__tag {
  font-size: calc(4.6 * var(--s));
  font-weight: 800;
  letter-spacing: calc(0.3 * var(--s));
  text-transform: uppercase;
  color: #FFFFFF;
  background: #9AA6AB;
  border-radius: 999px;
  padding: calc(0.8 * var(--s)) calc(4 * var(--s)) calc(0.6 * var(--s));
}

/* ---------- Ficha ---------- */
.tarjeta--ficha { gap: calc(2.8 * var(--s)); padding-top: calc(6.5 * var(--s)); padding-bottom: calc(6 * var(--s)); }
.ficha-juego { display: flex; gap: calc(7 * var(--s)); align-items: flex-start; }
.ficha-juego__lamina {
  flex: none;
  width: calc(78 * var(--s)); height: calc(48 * var(--s));
  border-radius: calc(4.2 * var(--s));
  border: calc(1.7 * var(--s)) solid #FFFFFF;
  box-shadow: 0 0 0 calc(0.5 * var(--s)) #AEB9BD, 0 calc(0.9 * var(--s)) calc(2 * var(--s)) rgba(60, 75, 80, 0.22);
}
.ficha-juego__texto { display: flex; flex-direction: column; gap: calc(3 * var(--s)); }
.ficha-juego__texto > * { margin: 0; }
.datos { margin: calc(3 * var(--s)) 0 0 !important; display: flex; flex-direction: column; gap: calc(2 * var(--s)); }
.datos__fila { display: flex; justify-content: space-between; align-items: baseline; padding: calc(2.6 * var(--s)) calc(5 * var(--s)); border-radius: calc(3 * var(--s)); background: #EEF3F4; }
.datos__fila dt { font-size: calc(7 * var(--s)); color: #5A6467; font-weight: 700; }
.datos__fila dd { margin: 0; font-size: calc(8.4 * var(--s)); color: #3A4447; font-weight: 800; }
.actividades { list-style: none; padding: 0; display: flex; flex-direction: column; gap: calc(1.2 * var(--s)); }
.actividades__fila {
  display: flex; align-items: center; gap: calc(4 * var(--s));
  padding: calc(1.1 * var(--s)) calc(4 * var(--s));
  border-radius: calc(3 * var(--s));
  background: #EEF3F4;
  font-size: calc(7 * var(--s));
  line-height: 1.1;
}
.actividades__n {
  flex: none;
  width: calc(8.4 * var(--s)); height: calc(8.4 * var(--s));
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #7CC63A; color: #fff;
  font-size: calc(5.6 * var(--s)); font-weight: 800;
}
.actividades__nombre { flex: 1; font-weight: 800; color: #3A4447; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actividades__min { flex: none; width: calc(20 * var(--s)); text-align: right; font-weight: 700; color: #5A6467; }

/* ---------- Ventanas del área (vacías, flujo, pausa, final) ---------- */
.area .ventana { top: calc(36 * var(--s)); height: auto; min-height: calc(100 * var(--s)); bottom: auto; }
.ventana--vacia { gap: calc(6 * var(--s)); }
.ventana--vacia .boton-grande { width: calc(110 * var(--s)); }
.ventana__texto--fuerte { font-weight: 800; color: #3A4447; }
.consejos {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: calc(2.4 * var(--s));
  text-align: left;
  font-size: calc(7.2 * var(--s)); line-height: 1.3; color: #4C5558;
}
.consejos li { position: relative; padding-left: calc(9 * var(--s)); }
.consejos li::before {
  content: ""; position: absolute; left: 0; top: calc(2 * var(--s));
  width: calc(5 * var(--s)); height: calc(5 * var(--s)); border-radius: 50%;
  background: #8DCD50; box-shadow: 0 0 0 calc(0.6 * var(--s)) #D9F1C0;
}

/* Cuenta atrás con los dígitos del reloj «Hoy» */
.cuenta {
  position: absolute;
  left: 50%; top: calc(36 * var(--s));
  transform: translateX(-50%);
  width: calc(150 * var(--s)); height: calc(112 * var(--s));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(2 * var(--s));
  border-radius: calc(12 * var(--s));
  background: linear-gradient(135deg, #3C7B80, #3D7D83 50%, #4B8F97);
  border: calc(3 * var(--s)) solid #F4F6F7;
  box-shadow: 0 0 0 calc(0.7 * var(--s)) #B9C0C3, 0 calc(1.5 * var(--s)) calc(5 * var(--s)) rgba(70, 90, 100, 0.25), inset 0 calc(5 * var(--s)) calc(6 * var(--s)) rgba(111, 180, 179, .5);
}
.cuenta__texto { margin: 0; font-size: calc(11 * var(--s)); font-weight: 800; color: #D4F7F6; text-shadow: 0 0 calc(1 * var(--s)) #0B3B3D, 0 calc(0.6 * var(--s)) 0 #0B3B3D; }
.cuenta__num {
  font-size: calc(62 * var(--s)); font-weight: 900; line-height: .95;
  color: #EAFAD6;
  -webkit-text-stroke: calc(1.6 * var(--s)) #1B4A2D;
  paint-order: stroke fill;
  text-shadow: 0 0 calc(3 * var(--s)) rgba(166, 214, 168, .9);
  animation: latido 1s ease-out both;
}
@keyframes latido { 0% { transform: scale(1.35); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 100% { transform: scale(.94); opacity: 1; } }

/* Actividad simulada */
.ventana--actividad {
  left: calc(22 * var(--s)) !important; width: calc(306 * var(--s)) !important;
  display: grid !important;
  grid-template-columns: calc(118 * var(--s)) 1fr;
  grid-template-rows: auto auto auto;
  column-gap: calc(10 * var(--s));
  row-gap: calc(4 * var(--s));
  align-items: center;
  justify-items: stretch;
  text-align: left !important;
  padding: calc(9 * var(--s)) calc(12 * var(--s)) !important;
}
.actividad__lamina {
  position: relative;
  width: calc(118 * var(--s)); height: calc(72 * var(--s));
  border-radius: calc(5 * var(--s));
  overflow: hidden;
  border: calc(1.8 * var(--s)) solid #FFFFFF;
  box-shadow: 0 0 0 calc(0.5 * var(--s)) #AEB9BD, 0 calc(1 * var(--s)) calc(2.4 * var(--s)) rgba(60, 75, 80, 0.22);
}
.actividad__svg { display: block; width: 100%; height: 100%; }
.actividad__sello {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  padding: calc(2.4 * var(--s)) calc(8 * var(--s)) calc(2 * var(--s));
  border-radius: calc(3.5 * var(--s));
  background: linear-gradient(to bottom, #5DA1A2 0%, #3F7F85 30%, #3D7D82 70%, #4A8C93 100%);
  border: calc(0.6 * var(--s)) solid #2F6265;
  box-shadow: 0 0 0 calc(0.8 * var(--s)) rgba(255,255,255,.9);
  color: #E2FBF8; font-size: calc(8 * var(--s)); font-weight: 800; letter-spacing: calc(0.3 * var(--s)); white-space: nowrap;
}
.actividad__info { display: flex; flex-direction: column; align-items: flex-start; gap: calc(3.4 * var(--s)); min-width: 0; }
.actividad__info > * { margin: 0; }
.actividad__paso { font-size: calc(6.6 * var(--s)); font-weight: 800; letter-spacing: calc(0.3 * var(--s)); text-transform: uppercase; color: #5E9A33; }
.actividad__nombre { font-size: calc(16 * var(--s)); font-weight: 800; color: #3A4447; line-height: 1.05; white-space: nowrap; transform: scaleX(var(--ajuste, 1)); transform-origin: left center; }
.actividad__texto { font-size: calc(7 * var(--s)); line-height: 1.35; color: #5A6467; }
.actividad__info .chip { font-size: calc(6.2 * var(--s)); }
.tiempo { grid-column: 1 / -1; display: flex; align-items: center; gap: calc(6 * var(--s)); margin-top: calc(2 * var(--s)); }
.tiempo__barra {
  flex: 1; height: calc(9 * var(--s));
  border-radius: 999px;
  background: linear-gradient(to bottom, #C9D1D3, #E4E9EA);
  box-shadow: inset 0 calc(0.8 * var(--s)) calc(1.4 * var(--s)) rgba(0,0,0,.18), 0 0 0 calc(0.6 * var(--s)) #FFFFFF;
  overflow: hidden;
}
.tiempo__relleno {
  display: block; height: 100%; width: 0;
  border-radius: 999px;
  background: linear-gradient(to bottom, #D8F6A6, #8DCD50 50%, #62AE2C);
  box-shadow: inset 0 calc(0.6 * var(--s)) 0 rgba(255,255,255,.6);
}
.tiempo__texto { flex: none; min-width: calc(44 * var(--s)); text-align: right; font-size: calc(8.6 * var(--s)); font-weight: 800; color: #3A4447; font-variant-numeric: tabular-nums; }
.tiempo__nota { grid-column: 1 / -1; margin: 0; font-size: calc(5.8 * var(--s)); color: #8A9497; text-align: right; }

/* Pausa: velo sobre todo el escenario + ventana */
.velo {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%;
  background: rgba(60, 75, 80, 0.42);
  z-index: 10;
}
.velo[hidden] { display: none; }
.ventana--pausa {
  left: 50% !important; top: 50% !important;
  width: calc(170 * var(--s)) !important; min-height: 0 !important; height: auto !important;
  transform: translate(-50%, -50%);
  gap: calc(6 * var(--s)) !important;
  padding: calc(10 * var(--s)) calc(12 * var(--s)) !important;
}
.fila-botones { display: flex; gap: calc(8 * var(--s)); align-items: center; justify-content: center; margin-top: calc(2 * var(--s)); }
.fila-botones .boton-grande { margin-top: 0 !important; }
.boton-salir {
  position: relative;
  width: calc(66 * var(--s)); height: calc(24 * var(--s));
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: calc(0.6 * var(--s)) solid #8A9F7A;
  background: linear-gradient(to bottom, #EEF5EE 0%, #DCE3E3 30%, #D3D8DB 55%, #C9D0CC 80%, #C3CDBF 100%);
  box-shadow: 0 0 0 calc(0.6 * var(--s)) rgba(240, 248, 238, 0.85), inset 0 0 0 calc(0.8 * var(--s)) #CFE2C4, 0 calc(0.5 * var(--s)) calc(1.2 * var(--s)) rgba(80, 95, 80, 0.15);
  color: #47524E; font-size: calc(10 * var(--s)); font-weight: 700; line-height: 1; white-space: nowrap;
  transition: transform 90ms ease, filter 90ms ease;
}

/* Final de sesión */
.ventana--final { gap: calc(5 * var(--s)) !important; }
.resumen { display: flex; gap: calc(6 * var(--s)); }
.resumen__dato {
  width: calc(58 * var(--s));
  display: flex; flex-direction: column; align-items: center; gap: calc(1.6 * var(--s));
  padding: calc(5 * var(--s)) calc(4 * var(--s)) calc(4 * var(--s));
  border-radius: calc(6 * var(--s));
  background: linear-gradient(135deg, #3C7B80, #4B8F97);
  border: calc(1.4 * var(--s)) solid #F4F6F7;
  box-shadow: 0 0 0 calc(0.5 * var(--s)) #B9C0C3;
}
.resumen__dato b { font-size: calc(15 * var(--s)); font-weight: 900; line-height: 1; color: #EAFAD6; -webkit-text-stroke: calc(0.5 * var(--s)) #1B4A2D; paint-order: stroke fill; white-space: nowrap; }
.resumen__dato b small { font-size: calc(8 * var(--s)); }
.resumen__dato b.resumen__medio { font-size: calc(11 * var(--s)); }
.resumen__dato b.resumen__largo { font-size: calc(8.6 * var(--s)); line-height: 1.1; white-space: normal; text-align: center; -webkit-text-stroke-width: calc(0.35 * var(--s)); }
.resumen__dato span { font-size: calc(6 * var(--s)); font-weight: 800; color: #D4F7F6; text-transform: uppercase; letter-spacing: calc(0.3 * var(--s)); }
.ventana--final .boton-grande { width: calc(104 * var(--s)) !important; height: calc(26 * var(--s)) !important; font-size: calc(10 * var(--s)); }

/* Ajustes tras revisar capturas */
.nota-fisio--suelta {
  position: absolute;
  left: calc(88 * var(--s));
  top: calc(157 * var(--s));
  width: calc(106 * var(--s));
  margin: 0 !important;
  padding: calc(3 * var(--s)) calc(4 * var(--s));
  border: 0;
  border-radius: calc(4 * var(--s));
  background: rgba(255, 255, 255, 0.7);
}
.actividad__sello { left: auto; top: auto; right: calc(4 * var(--s)); bottom: calc(4 * var(--s)); transform: rotate(-4deg); font-size: calc(7 * var(--s)); }
.ventana--flujo { gap: calc(5 * var(--s)) !important; }

.ficha-juego__texto { flex: 1; min-width: 0; }
.ficha-juego .datos { margin: 0 !important; }
.ficha-juego .datos__fila { padding: calc(2 * var(--s)) calc(4 * var(--s)); }
.ficha-juego .datos__fila dt { font-size: calc(6.4 * var(--s)); }
.ficha-juego .datos__fila dd { font-size: calc(7.8 * var(--s)); }
.ficha-juego__lamina { width: calc(74 * var(--s)); height: calc(46 * var(--s)); }
.actividades .chip { padding-top: calc(0.5 * var(--s)); padding-bottom: calc(0.4 * var(--s)); line-height: 1.1; }
.actividades__fila { line-height: 1; }
.tarjeta--ficha { top: calc(33 * var(--s)); height: calc(119 * var(--s)); }
.tarjeta__pista--final { margin-top: auto !important; padding-top: calc(3 * var(--s)); border-top: calc(0.45 * var(--s)) solid #DCE3E5; }

/* ==========================================================
   ÁREA «EQUILIBRIO» (copia de la pantalla «Equilibrio» de Wii Fit Plus)
   Medidas tomadas de la captura de referencia (445×243 → 350×194).
   ========================================================== */
body:has(.area--equilibrio) { background: linear-gradient(to bottom, #FFFFC6 0%, #FCF2A0 55%, #EFD460 100%); }

/* Cuadrícula 3×3 centrada (referencia: x 86–262, y 34–143) */
.cuadricula--equilibrio {
  left: calc(86 * var(--s));
  top: calc(34 * var(--s));
  width: calc(178 * var(--s));
  height: calc(109 * var(--s));
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: calc(4 * var(--s)) calc(6 * var(--s));
}
.area--equilibrio .mini { background: #F3EBC4; box-shadow: 0 0 0 calc(0.5 * var(--s)) #BFB27A, 0 calc(0.9 * var(--s)) calc(2 * var(--s)) rgba(110, 90, 30, 0.25); }
.area--equilibrio .mini.is-sel {
  box-shadow:
    0 0 0 calc(1.1 * var(--s)) #8FD14F,
    0 0 calc(4 * var(--s)) calc(1.6 * var(--s)) rgba(255, 255, 255, 0.95),
    0 calc(1.2 * var(--s)) calc(3 * var(--s)) rgba(110, 90, 30, 0.3);
}
/* «Cambiar»: nombre sobre cada miniatura */
.mini__nombre {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: calc(1.6 * var(--s)) calc(2 * var(--s)) calc(1.2 * var(--s));
  background: rgba(255, 255, 255, 0.9);
  color: #3F4547;
  font-size: calc(6.2 * var(--s));
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  justify-content: center;   /* si el texto se estrecha, queda centrado */
}
.mini__nombre-texto { display: inline-block; transform: scaleX(var(--ajuste, 1)); transform-origin: center; }
.rotulo--equilibrio { top: calc(146.5 * var(--s)); max-width: calc(128 * var(--s)); min-width: calc(100 * var(--s)); }
.area--equilibrio .rotulo__tipo { color: #8A8A1E; }
.area--equilibrio .rotulo.is-activo { border-color: #B9C24A; box-shadow: 0 0 0 calc(0.6 * var(--s)) rgba(250, 248, 200, .95), 0 calc(0.5 * var(--s)) calc(1.4 * var(--s)) rgba(110, 90, 30, 0.16); }

/* Ficha: ventana como la del original (cabecera gris oscura, lámina, texto y selector de nivel) */
.ficha-eq {
  position: absolute;
  left: calc(58 * var(--s));
  top: calc(14 * var(--s));
  width: calc(226 * var(--s));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(4 * var(--s));
  background: linear-gradient(to bottom, #FAFAFA 0%, #F1F2F2 60%, #E6E8E8 100%);
  border: calc(0.8 * var(--s)) solid #6E7274;
  box-shadow:
    0 0 0 calc(0.8 * var(--s)) rgba(255, 255, 255, 0.9),
    0 calc(1.5 * var(--s)) calc(4 * var(--s)) rgba(90, 75, 20, 0.28);
}
.ficha-eq > * { margin: 0; }
.ficha-eq__cabecera {
  flex: none;
  height: calc(17 * var(--s));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(6 * var(--s));
  padding: 0 calc(6 * var(--s));
  background: linear-gradient(to bottom, #7A7E80 0%, #5D6264 45%, #4F5456 100%);
  border-bottom: calc(0.6 * var(--s)) solid #3E4244;
}
.ficha-eq__titulo {
  margin: 0;
  display: inline-block;
  font-size: calc(9.6 * var(--s));
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
  white-space: nowrap;
  transform: translateY(calc(0.3 * var(--s))) scaleX(var(--ajuste, 1));
  transform-origin: left center;
}
.ficha-eq__record {
  flex: none;
  display: inline-flex; align-items: baseline; gap: calc(3 * var(--s));
  padding: calc(1.6 * var(--s)) calc(5 * var(--s)) calc(1.2 * var(--s));
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: calc(0.5 * var(--s)) solid rgba(255, 255, 255, 0.35);
  color: #E6E9EA;
  font-size: calc(6.2 * var(--s));
  font-weight: 700;
  line-height: 1;
}
.ficha-eq__record b { font-size: calc(8 * var(--s)); color: #FFFFFF; }
.ficha-eq__cuerpo {
  display: flex;
  gap: calc(6 * var(--s));
  padding: calc(4 * var(--s)) calc(6 * var(--s)) calc(4.4 * var(--s));
}
.ficha-eq__lamina {
  flex: none;
  width: calc(74 * var(--s));
  display: flex; flex-direction: column; align-items: stretch;
  padding: calc(1.6 * var(--s)) calc(1.6 * var(--s)) calc(1.2 * var(--s));
  border-radius: calc(3 * var(--s));
  background: #FFFFFF;
  box-shadow: 0 0 0 calc(0.5 * var(--s)) #C9CED0;
}
.ficha-eq__svg { display: block; width: 100%; height: calc(54 * var(--s)); border-radius: calc(2 * var(--s)); }
.ficha-eq__duracion { padding-top: calc(1.6 * var(--s)); text-align: center; font-size: calc(6.8 * var(--s)); font-weight: 800; color: #4E9E22; line-height: 1; }
.ficha-eq__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(3 * var(--s)); padding-top: calc(1 * var(--s)); }
.ficha-eq__texto > * { margin: 0; }
.ficha-eq__desc { font-size: calc(9.4 * var(--s)); line-height: 1.28; color: #2C3133; font-weight: 700; }
.ficha-eq__pista { margin-top: auto !important; font-size: calc(5.8 * var(--s)); line-height: 1.3; color: #7A8487; }
.ficha-eq__nivel {
  padding: calc(3.4 * var(--s)) calc(4 * var(--s)) calc(5 * var(--s));
  border-top: calc(0.6 * var(--s)) solid #9EA4A6;
  box-shadow: inset 0 calc(0.6 * var(--s)) 0 #FFFFFF;
}
.ficha-eq__etiqueta { margin: 0 0 calc(2 * var(--s)); text-align: center; font-size: calc(6.6 * var(--s)); font-weight: 600; color: #5A6467; line-height: 1; }
.ficha-eq__selector { display: flex; align-items: center; gap: calc(5 * var(--s)); }
.boton-redondo--nivel { position: relative; top: auto; left: auto; flex: none; width: calc(17 * var(--s)); height: calc(17 * var(--s)); }
.boton-redondo--nivel .boton-redondo__signo { width: calc(9 * var(--s)); height: calc(9 * var(--s)); }
.ficha-eq__valor {
  flex: 1;
  height: calc(15 * var(--s));
  display: flex; align-items: center; justify-content: center;
  border-radius: calc(3.5 * var(--s));
  background: linear-gradient(to bottom, #FFFFFF, #F4F5F5);
  border: calc(0.6 * var(--s)) solid #A7AEB1;
  box-shadow: inset 0 calc(0.6 * var(--s)) calc(1 * var(--s)) rgba(0, 0, 0, 0.08);
  font-size: calc(8.6 * var(--s));
  font-weight: 700;
  color: #2C3133;
  line-height: 1;
}
/* «Jugar»: botón verde grande, debajo de la ventana (referencia: x 139–277, y 149–178) */
.boton-verde--jugar {
  left: calc(139 * var(--s));
  top: calc(152 * var(--s));
  width: calc(138 * var(--s));
  height: calc(28 * var(--s));
  font-size: calc(11.6 * var(--s));
}
.boton-verde--jugar .boton-verde__texto { transform-origin: center; }

/* ==========================================================
   ÁREAS «YOGA», «TONIFICACIÓN» (Fuerza y control) y «AERÓBIC»
   Copias de las pantallas de Wii Fit Plus. Medidas tomadas del mapa de
   imagen de las capturas de referencia (445×243 → 350×194).
   ========================================================== */
body:has(.area--yoga)   { background: linear-gradient(to bottom, #E2FFFF 0%, #86D6F3 55%, #55BCF2 100%); }
body:has(.area--fuerza) { background: linear-gradient(to bottom, #E6FFDA 0%, #A8EA90 55%, #7FCA65 100%); }
body:has(.area--aero)   { background: linear-gradient(to bottom, #FFEFE4 0%, #FCC6BB 55%, #FDAAA0 100%); }

/* Cuadrícula 5 + 5 + 5 + 3 (referencia: x 34–410, y 45–223 → 26.7–322.5 × 35.9–178) */
.cuadricula--5x4 {
  left: calc(26.7 * var(--s));
  top: calc(35.6 * var(--s));
  width: calc(295.8 * var(--s));
  height: calc(142.4 * var(--s));
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: calc(2.8 * var(--s)) calc(6.3 * var(--s));
}
/* Cuadrícula 3×3 de Aeróbic (referencia: x 111–333, y 44–179 → 87.3–262 × 35–143) */
.cuadricula--3x3 {
  left: calc(87 * var(--s));
  top: calc(35 * var(--s));
  width: calc(175 * var(--s));
  height: calc(108 * var(--s));
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: calc(4 * var(--s)) calc(6 * var(--s));
}
.mini--hueco { visibility: hidden; pointer-events: none; }
.juegos--wii .mini { border-radius: calc(2.2 * var(--s)); border-width: calc(1.1 * var(--s)); }
.area--yoga .mini { background: #5FD3D3; border-color: #CFFCF9; box-shadow: 0 0 0 calc(0.5 * var(--s)) #3E9EA3, 0 calc(0.9 * var(--s)) calc(1.8 * var(--s)) rgba(20, 90, 120, 0.3); }
.area--fuerza .mini { background: #4FCB5E; border-color: #D2F8C8; box-shadow: 0 0 0 calc(0.5 * var(--s)) #2E8A38, 0 calc(0.9 * var(--s)) calc(1.8 * var(--s)) rgba(30, 90, 30, 0.3); }
.area--fuerza .mini--reto { background: #FBD892; border-color: #FFF4DC; box-shadow: 0 0 0 calc(0.5 * var(--s)) #D08A3A, 0 calc(0.9 * var(--s)) calc(1.8 * var(--s)) rgba(120, 70, 20, 0.3); }
.area--aero .mini { background: #F9D1C5; border-color: #FFFFFF; box-shadow: 0 0 0 calc(0.5 * var(--s)) #D49384, 0 calc(0.9 * var(--s)) calc(2 * var(--s)) rgba(140, 60, 40, 0.25); border-radius: calc(3 * var(--s)); border-width: calc(1.5 * var(--s)); }
.area--yoga .mini.is-sel, .area--fuerza .mini.is-sel, .area--aero .mini.is-sel {
  transform: scale(1.07);
  border-color: #FFFFFF;
  box-shadow:
    0 0 0 calc(1.1 * var(--s)) #8FD14F,
    0 0 calc(4 * var(--s)) calc(1.6 * var(--s)) rgba(255, 255, 255, 0.95),
    0 calc(1.2 * var(--s)) calc(3 * var(--s)) rgba(40, 70, 80, 0.3);
}
/* Nombre: en Yoga/Tonificación aparece sobre la miniatura elegida; en Aeróbic, con «Cambiar» */
.juegos--wii .mini__nombre { display: none; font-size: calc(5.6 * var(--s)); padding: calc(1.3 * var(--s)) calc(1.6 * var(--s)) calc(1 * var(--s)); }
.juegos--yoga .mini.is-sel .mini__nombre, .juegos--fuerza .mini.is-sel .mini__nombre, .juegos--nombres .mini__nombre { display: flex; }
.juegos--aero .mini__nombre { font-size: calc(6.2 * var(--s)); }
/* Rótulos «Nuevo» y «Reto» del original */
.mini__marca {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: center;
  font-style: italic; font-weight: 900; line-height: 1; white-space: nowrap;
  pointer-events: none;
}
.mini__marca--nuevo {
  top: 50%; transform: translateY(-50%);
  font-size: calc(9.4 * var(--s));
  color: #FFC93A;
  -webkit-text-stroke: calc(0.45 * var(--s)) #A9480A;
  paint-order: stroke fill;
  text-shadow: 0 calc(0.6 * var(--s)) 0 #8A3A08, 0 0 calc(2 * var(--s)) rgba(255, 255, 255, 0.7);
}
.mini__marca--reto {
  bottom: calc(1.6 * var(--s));
  font-size: calc(7 * var(--s));
  color: #2F6FE0;
  -webkit-text-stroke: calc(0.7 * var(--s)) #FFFFFF;
  paint-order: stroke fill;
  text-shadow: 0 0 calc(1 * var(--s)) rgba(255, 255, 255, .9);
}
.mini.is-sel .mini__marca--reto { display: none; }
.area--aero .rotulo__tipo { color: #C9604A; }
.area--aero .rotulo.is-activo { border-color: #F2A08E; box-shadow: 0 0 0 calc(0.6 * var(--s)) rgba(255, 235, 228, .95), 0 calc(0.5 * var(--s)) calc(1.4 * var(--s)) rgba(140, 60, 40, 0.16); }

/* Botón redondo de abajo a la derecha: elegir entrenador (como el del original) */
.boton-entrenador {
  position: absolute;
  left: calc(291 * var(--s)); top: calc(151 * var(--s));
  width: calc(28 * var(--s)); height: calc(28 * var(--s));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  border: calc(1.3 * var(--s)) solid #FFFFFF;
  background: radial-gradient(circle at 50% 30%, #FFFFFF 0%, #E9F8E2 55%, #BFE3B0 100%);
  box-shadow: 0 0 0 calc(0.8 * var(--s)) #86C35E, 0 calc(0.8 * var(--s)) calc(1.8 * var(--s)) rgba(30, 70, 40, 0.3);
  transition: transform 90ms ease, filter 90ms ease;
}
.boton-entrenador__svg { width: 78%; height: 78%; margin-top: 22%; }
.boton-entrenador:active, .boton-entrenador.is-pulsado { transform: translateY(calc(0.7 * var(--s))) scale(0.95); filter: brightness(1.08); }

/* Ficha: igual que la de Equilibrio + «Tutorial» y «Empezar» (referencia: 92–203 y 217–326 × 152–178) */
.ficha-wii .ficha-eq__desc { font-size: calc(8.8 * var(--s)); }
.ficha-wii__avanzado {
  align-self: flex-start;
  padding: calc(1.4 * var(--s)) calc(5 * var(--s)) calc(1.1 * var(--s));
  border-radius: calc(2 * var(--s));
  background: linear-gradient(to bottom, #EE5A55, #D23A36);
  color: #FFFFFF; font-size: calc(6.2 * var(--s)); font-weight: 800; line-height: 1;
}
.boton-verde--tutorial {
  left: calc(92 * var(--s)); top: calc(152 * var(--s));
  width: calc(110 * var(--s)); height: calc(28 * var(--s));
  font-size: calc(11.6 * var(--s));
}
.boton-verde--tutorial .boton-verde__texto { transform-origin: center; }
.boton-verde--empezar { left: calc(217 * var(--s)); width: calc(110 * var(--s)); }

/* Ejercicio simulado y tutorial con entrenador (escena grande a la izquierda) */
.ventana--actividad.ventana--entrenador {
  left: calc(14 * var(--s)) !important; width: calc(322 * var(--s)) !important;
  top: calc(30 * var(--s)) !important; min-height: 0 !important;
  grid-template-columns: calc(196 * var(--s)) 1fr;
  grid-template-rows: 1fr auto auto;
  column-gap: calc(9 * var(--s)); row-gap: calc(3 * var(--s));
  padding: calc(7 * var(--s)) calc(9 * var(--s)) !important;
}
.ventana--entrenador .actividad__lamina { width: calc(196 * var(--s)); height: calc(110 * var(--s)); grid-column: 1; grid-row: 1 / span 3; }
.ventana--entrenador .actividad__info { grid-column: 2; grid-row: 1; align-self: start; gap: calc(3 * var(--s)); }
.ventana--entrenador .actividad__nombre { font-size: calc(12 * var(--s)); white-space: normal; transform: none; line-height: 1.1; }
.ventana--entrenador .actividad__paso { font-size: calc(5.2 * var(--s)); line-height: 1.25; }
.ventana--entrenador .actividad__texto { font-size: calc(6.2 * var(--s)); line-height: 1.32; }
.ventana--entrenador .actividad__texto--suave { color: #7A8487; font-size: calc(5.8 * var(--s)); }
.ventana--entrenador .tiempo { grid-column: 2; grid-row: 2; margin-top: 0; gap: calc(4 * var(--s)); }
.ventana--entrenador .tiempo__barra { height: calc(7 * var(--s)); }
.ventana--entrenador .tiempo__texto { min-width: calc(34 * var(--s)); font-size: calc(7 * var(--s)); }
.ventana--entrenador .tiempo__nota { grid-column: 2; grid-row: 3; text-align: left; font-size: calc(5.2 * var(--s)); }
.ventana--entrenador .actividad__sello { font-size: calc(6 * var(--s)); right: auto; bottom: auto; left: calc(4 * var(--s)); top: calc(4 * var(--s)); }
.ventana--tutorial { grid-template-rows: auto; }
.ventana--tutorial .actividad__info { grid-row: 1 / span 3; }

/* ==========================================================
   «PESCA BAJO CERO» jugable con la cámara (pesca.js)
   ========================================================== */
body:has(.area--pesca) { background: linear-gradient(to bottom, #7FC6EE 0%, #BFE6F8 30%, #3FA2D1 34%, #155A8E 100%); }
.pesca__escena { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none; }
.pesca__video { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.pesca__capa { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pesca__capa > * { pointer-events: auto; }
.pesca__hud { position: absolute; inset: 0; z-index: 4; }
.pesca__hud[hidden], .pesca__sensor[hidden], .pesca__flecha[hidden], .pesca__aviso[hidden] { display: none !important; }
.pez { will-change: transform; }
.flotante { font-family: var(--fuente); font-size: 11px; font-weight: 900; fill: #FFFFFF; stroke: #1B4A6D; stroke-width: 1.4px; paint-order: stroke; animation: flotar 1s ease-out forwards; }
.flotante--rojo { fill: #FFE6A0; stroke: #9A2A20; font-size: 13px; }
.flotante--verde { fill: #E6FFD8; stroke: #2B6E2F; }
@keyframes flotar { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
.onda { animation: onda .7s ease-out forwards; }
@keyframes onda { from { opacity: 1; } to { opacity: 0; } }

/* Marcador, peces y tiempo */
.pesca__marcador {
  position: absolute; left: calc(8 * var(--s)); top: calc(7 * var(--s));
  min-width: calc(58 * var(--s)); height: calc(22 * var(--s));
  display: flex; align-items: center; justify-content: space-between; gap: calc(5 * var(--s));
  padding: 0 calc(7 * var(--s));
  border-radius: calc(6 * var(--s));
  background: linear-gradient(135deg, #3C7B80, #4B8F97);
  border: calc(1.4 * var(--s)) solid #F4F6F7; box-shadow: 0 0 0 calc(0.5 * var(--s)) #8BA9B0, 0 calc(1 * var(--s)) calc(3 * var(--s)) rgba(10, 50, 80, .3);
}
.pesca__marcador-et { font-size: calc(6 * var(--s)); font-weight: 800; color: #D4F7F6; text-transform: uppercase; letter-spacing: calc(0.3 * var(--s)); }
.pesca__marcador b { font-size: calc(15 * var(--s)); font-weight: 900; color: #EAFAD6; -webkit-text-stroke: calc(0.5 * var(--s)) #1B4A2D; paint-order: stroke fill; font-variant-numeric: tabular-nums; }
.pesca__peces { position: absolute; left: calc(8 * var(--s)); top: calc(32 * var(--s)); display: flex; gap: calc(3 * var(--s)); }
.pesca__pez { display: inline-flex; align-items: center; gap: calc(1.4 * var(--s)); padding: calc(1.2 * var(--s)) calc(3.4 * var(--s)); border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: calc(7 * var(--s)); color: #24414B; }
.pez-icono { width: calc(13 * var(--s)); height: calc(8 * var(--s)); overflow: visible; }
.pesca__tiempo { position: absolute; left: calc(110 * var(--s)); top: calc(9 * var(--s)); width: calc(130 * var(--s)); display: flex; align-items: center; gap: calc(4 * var(--s)); }
.pesca__tiempo-barra { flex: 1; height: calc(8 * var(--s)); border-radius: 999px; background: linear-gradient(to bottom, #C9D1D3, #E4E9EA); box-shadow: inset 0 calc(0.8 * var(--s)) calc(1.4 * var(--s)) rgba(0,0,0,.18), 0 0 0 calc(0.8 * var(--s)) #FFFFFF; overflow: hidden; }
.pesca__tiempo-relleno { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(to bottom, #D8F6A6, #8DCD50 50%, #62AE2C); }
.pesca__tiempo-texto { min-width: calc(24 * var(--s)); font-size: calc(9 * var(--s)); font-weight: 900; color: #FFFFFF; text-shadow: 0 0 calc(1.4 * var(--s)) #1B4A6D, 0 calc(0.6 * var(--s)) 0 #1B4A6D; font-variant-numeric: tabular-nums; }
.pesca__pausa { left: auto; right: calc(8 * var(--s)); top: calc(6 * var(--s)); width: calc(56 * var(--s)); height: calc(20 * var(--s)); font-size: calc(9 * var(--s)); }

/* Sensor: silueta/esqueleto + círculo amarillo de equilibrio */
.pesca__sensor { position: absolute; left: calc(7 * var(--s)); top: calc(126 * var(--s)); display: flex; align-items: flex-end; gap: calc(4 * var(--s)); }
.pesca__camara {
  position: relative; width: calc(76 * var(--s)); height: calc(57 * var(--s));
  border-radius: calc(5 * var(--s)); overflow: hidden;
  border: calc(1.6 * var(--s)) solid #FFFFFF; box-shadow: 0 0 0 calc(0.5 * var(--s)) #6E8E99, 0 calc(1 * var(--s)) calc(3 * var(--s)) rgba(10, 50, 80, .35);
  background: #2F4A57;
}
.pesca__camara canvas { display: block; width: 100%; height: 100%; }
.pesca__estado { position: absolute; left: calc(3 * var(--s)); bottom: calc(2.4 * var(--s)); padding: calc(1 * var(--s)) calc(3 * var(--s)); border-radius: 999px; background: rgba(0, 0, 0, .45); color: #FFFFFF; font-size: calc(5.4 * var(--s)); font-weight: 700; }
.pesca__centro { width: calc(44 * var(--s)); height: calc(44 * var(--s)); filter: drop-shadow(0 calc(1 * var(--s)) calc(2 * var(--s)) rgba(10, 50, 80, .35)); }
.equilibrio-centro { display: block; width: 100%; height: 100%; }
.equilibrio-centro .js-punto { transition: transform 60ms linear; }

/* Botones táctiles (mantener pulsado) */
.pesca__flecha {
  position: absolute; top: calc(132 * var(--s)); width: calc(48 * var(--s)); height: calc(48 * var(--s));
  border-radius: 50%; border: calc(1.4 * var(--s)) solid #FFFFFF;
  background: radial-gradient(circle at 50% 28%, #9FDDF5 0%, #3FA2D1 55%, #1F6FA3 100%);
  box-shadow: 0 0 0 calc(0.6 * var(--s)) #1B5C86, 0 calc(1.2 * var(--s)) calc(3 * var(--s)) rgba(10, 50, 80, .35);
  touch-action: none;
}
.pesca__flecha svg { width: 56%; height: 56%; }
.pesca__flecha--izq { left: calc(10 * var(--s)); }
.pesca__flecha--der { right: calc(10 * var(--s)); }
.pesca__flecha.is-pulsado { transform: scale(.94); filter: brightness(1.15); }
.pesca__aviso {
  position: absolute; left: 50%; top: calc(30 * var(--s)); transform: translateX(-50%); margin: 0;
  padding: calc(3 * var(--s)) calc(10 * var(--s)); border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: calc(0.7 * var(--s)) solid #8BB8CC;
  color: #1E4A60; font-size: calc(8 * var(--s)); font-weight: 800; white-space: nowrap;
}

/* Preparación */
.area .ventana.pesca__prep { left: calc(56 * var(--s)); width: calc(238 * var(--s)); top: calc(10 * var(--s)); min-height: 0; gap: calc(3.4 * var(--s)); padding: calc(7 * var(--s)) calc(12 * var(--s)) calc(7 * var(--s)); }
.pesca__titulo { margin: 0; font-size: calc(13 * var(--s)); font-weight: 800; color: #3A4447; line-height: 1.05; }
.pesca__opciones { display: flex; flex-direction: column; gap: calc(3 * var(--s)); width: 100%; }
.opcion { display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--s)); }
.opcion__et { font-size: calc(7.4 * var(--s)); font-weight: 800; color: #4C5558; text-align: left; }
.opcion__segs { display: flex; align-items: center; gap: calc(3 * var(--s)); }
.opcion__valor {
  min-width: calc(56 * var(--s)); height: calc(15 * var(--s)); display: flex; align-items: center; justify-content: center;
  border-radius: calc(3.5 * var(--s)); background: linear-gradient(to bottom, #FFFFFF, #F4F5F5); border: calc(0.6 * var(--s)) solid #A7AEB1;
  font-size: calc(7.4 * var(--s)); font-weight: 700; color: #2C3133;
}
.seg {
  min-width: calc(44 * var(--s)); height: calc(16 * var(--s)); padding: 0 calc(6 * var(--s));
  border-radius: 999px; border: calc(0.6 * var(--s)) solid #A9B4B8;
  background: linear-gradient(to bottom, #FFFFFF, #E9EEEF);
  font-size: calc(7.2 * var(--s)); font-weight: 700; color: #4C5558; white-space: nowrap;
  transition: transform 90ms ease, filter 90ms ease;
}
.seg.is-sel { border-color: #5E9A33; background: linear-gradient(to bottom, #E4F8C6 0%, #B7E57E 40%, #8DCD50 100%); color: #1E4810; box-shadow: 0 0 0 calc(0.6 * var(--s)) rgba(245, 255, 235, .9); }
.seg:active, .seg.is-pulsado { transform: translateY(calc(0.4 * var(--s))) scale(.97); filter: brightness(1.08); }
.seg--mini { min-width: 0; height: calc(12 * var(--s)); padding: 0 calc(4.4 * var(--s)); font-size: calc(5.8 * var(--s)); }
.pesca__privacidad { margin: 0; max-width: calc(210 * var(--s)); font-size: calc(5.8 * var(--s)); line-height: 1.3; color: #5E6A6D; }
.pesca__ajustes { position: absolute; right: calc(7 * var(--s)); top: calc(7 * var(--s)); }

/* Carga, error y calibración */
.pesca__girando { width: calc(18 * var(--s)); height: calc(18 * var(--s)); border-radius: 50%; border: calc(2.4 * var(--s)) solid #D4E4E8; border-top-color: #3F7F85; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pesca__error .fila-botones { flex-wrap: wrap; }
.area .ventana.pesca__calibrar {
  left: calc(20 * var(--s)); width: calc(310 * var(--s)); top: calc(14 * var(--s)); min-height: 0;
  flex-direction: row; align-items: center; gap: calc(10 * var(--s)); padding: calc(9 * var(--s)); text-align: left;
}
.pesca__cal-vista { flex: none; width: calc(160 * var(--s)); height: calc(120 * var(--s)); border-radius: calc(6 * var(--s)); overflow: hidden; border: calc(1.6 * var(--s)) solid #FFFFFF; box-shadow: 0 0 0 calc(0.5 * var(--s)) #8BA9B0; background: #2F4A57; }
.pesca__cal-vista canvas { display: block; width: 100%; height: 100%; }
.pesca__cal-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(4 * var(--s)); }
.pesca__cal-info > * { margin: 0; }
.pesca__cal-titulo { font-size: calc(12 * var(--s)); font-weight: 800; color: #3A4447; line-height: 1.1; }
.pesca__cal-info .ventana__texto { font-size: calc(7 * var(--s)); }
.pesca__cal-barra { width: 100%; height: calc(9 * var(--s)); border-radius: 999px; background: linear-gradient(to bottom, #C9D1D3, #E4E9EA); box-shadow: inset 0 calc(0.8 * var(--s)) calc(1.4 * var(--s)) rgba(0,0,0,.18), 0 0 0 calc(0.6 * var(--s)) #FFFFFF; overflow: hidden; }
.pesca__cal-barra span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(to bottom, #FFF6B0, #FFE14A 50%, #E9B814); transition: width 120ms linear; }
.pesca__cal-estado { font-size: calc(7.6 * var(--s)); font-weight: 800; color: #3F7F85; }
.pesca__saltar { width: auto; padding: 0 calc(8 * var(--s)); height: calc(20 * var(--s)); font-size: calc(8 * var(--s)); }

/* Final */
.area .ventana.pesca__final { top: calc(16 * var(--s)); left: calc(40 * var(--s)); width: calc(270 * var(--s)); }
.pesca__final .resumen__dato { width: calc(52 * var(--s)); }
.pesca__tipos { margin: 0; display: flex; gap: calc(8 * var(--s)); font-size: calc(8 * var(--s)); font-weight: 800; color: #3A4447; }
.pesca__tipos span { display: inline-flex; align-items: center; gap: calc(2 * var(--s)); }
.pesca__tipos small { font-size: calc(6 * var(--s)); color: #7A8487; font-weight: 700; }
.pesca__tipos .pez-icono { width: calc(16 * var(--s)); height: calc(10 * var(--s)); }
.pesca__record { color: #C9600A; }
.pesca__final .fila-botones .boton-grande { width: calc(96 * var(--s)) !important; }

/* ==========================================================
   «MI WII FIT PLUS»: menú, historial, detalle · «AJUSTES» y «PRIVACIDAD»
   ========================================================== */
.mwfp__menu { position: absolute; left: calc(60 * var(--s)); top: calc(36 * var(--s)); width: calc(230 * var(--s)); display: grid; grid-template-columns: 1fr 1fr; gap: calc(7 * var(--s)); }
.mwfp__opcion {
  position: relative; height: calc(48 * var(--s)); display: flex; align-items: center; gap: calc(6 * var(--s)); padding: 0 calc(8 * var(--s));
  border-radius: calc(7 * var(--s)); border: calc(0.7 * var(--s)) solid #B5C0C6; text-align: left;
  background: linear-gradient(to bottom, #FFFFFF, #EEF2F3);
  box-shadow: 0 0 0 calc(0.8 * var(--s)) rgba(255,255,255,.85), 0 calc(1 * var(--s)) calc(3 * var(--s)) rgba(70, 90, 100, .16);
  transition: transform 90ms ease, filter 90ms ease;
}
.mwfp__opcion:active, .mwfp__opcion.is-pulsado { transform: translateY(calc(0.6 * var(--s))) scale(.98); filter: brightness(1.04); box-shadow: 0 0 0 calc(1 * var(--s)) #8FD14F, 0 0 calc(4 * var(--s)) rgba(255,255,255,.9); }
.mwfp__icono { flex: none; width: calc(24 * var(--s)); height: calc(24 * var(--s)); }
.mwfp__opcion-texto { display: flex; flex-direction: column; gap: calc(1.6 * var(--s)); min-width: 0; }
.mwfp__opcion-texto b { display: inline-block; font-size: calc(10 * var(--s)); font-weight: 800; color: #3A4447; white-space: nowrap; transform: scaleX(var(--ajuste, 1)); transform-origin: left center; }
.mwfp__opcion-texto small { font-size: calc(6 * var(--s)); color: #6A7477; line-height: 1.2; }
.mwfp__opcion--desarrollo { opacity: .82; }
.mwfp__sello { position: absolute; right: calc(4 * var(--s)); top: calc(3 * var(--s)); padding: calc(1 * var(--s)) calc(3 * var(--s)); border-radius: calc(2 * var(--s)); background: #3F7F85; color: #E2FBF8; font-size: calc(5 * var(--s)); font-weight: 800; }
.mwfp__resumen { position: absolute; left: calc(60 * var(--s)); top: calc(144 * var(--s)); width: calc(230 * var(--s)); margin: 0; text-align: center; font-size: calc(7 * var(--s)); color: #5A6467; }

.hist__lista-caja, .hist__grafico-caja, .hist__records-caja {
  position: absolute; border-radius: calc(6 * var(--s)); background: rgba(255, 255, 255, .94);
  border: calc(0.6 * var(--s)) solid #B5C0C6; box-shadow: 0 0 0 calc(0.7 * var(--s)) rgba(255,255,255,.85), 0 calc(1 * var(--s)) calc(3 * var(--s)) rgba(70, 90, 100, .14);
  padding: calc(4 * var(--s)) calc(5 * var(--s));
}
.hist__lista-caja { left: calc(12 * var(--s)); top: calc(33 * var(--s)); width: calc(140 * var(--s)); height: calc(120 * var(--s)); display: flex; flex-direction: column; }
.hist__grafico-caja { left: calc(157 * var(--s)); top: calc(33 * var(--s)); width: calc(181 * var(--s)); height: calc(78 * var(--s)); display: flex; flex-direction: column; gap: calc(1.6 * var(--s)); }
.hist__records-caja { left: calc(157 * var(--s)); top: calc(114 * var(--s)); width: calc(181 * var(--s)); height: calc(39 * var(--s)); }
.hist__titulo { margin: 0 0 calc(2 * var(--s)); font-size: calc(7.4 * var(--s)); font-weight: 800; color: #4E9E22; }
.hist__cabecera { display: flex; align-items: center; justify-content: space-between; gap: calc(4 * var(--s)); }
.hist__cabecera .hist__titulo { margin: 0; }
.hist__segs { display: flex; gap: calc(2 * var(--s)); flex-wrap: wrap; justify-content: flex-end; }
.hist__segs--metricas { justify-content: flex-start; }
.hist__lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; display: flex; flex-direction: column; gap: calc(1.6 * var(--s)); }
.hist__fila {
  width: 100%; display: grid; grid-template-columns: calc(34 * var(--s)) 1fr calc(24 * var(--s)); align-items: center; gap: calc(3 * var(--s));
  padding: calc(2.4 * var(--s)) calc(3 * var(--s)); border-radius: calc(3.5 * var(--s)); background: #F3F6F7; border: calc(0.5 * var(--s)) solid #DCE3E5; text-align: left;
}
.hist__fila:active, .hist__fila.is-pulsado { background: #E4F5D2; border-color: #8DCD50; }
.hist__fecha { font-size: calc(5.6 * var(--s)); font-weight: 700; color: #5A6467; line-height: 1.15; }
.hist__ej { display: flex; flex-direction: column; font-size: calc(6.4 * var(--s)); font-weight: 800; color: #3A4447; min-width: 0; line-height: 1.15; }
.hist__ej small { font-size: calc(5 * var(--s)); font-weight: 600; color: #7A8487; white-space: nowrap; }
.hist__pts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.hist__pts b { font-size: calc(9 * var(--s)); font-weight: 900; color: #2F6B12; }
.hist__pts small { font-size: calc(5 * var(--s)); color: #7A8487; }
.hist__vacio { font-size: calc(6.6 * var(--s)); color: #6A7477; line-height: 1.35; padding: calc(4 * var(--s)); }
.grafico { display: block; width: 100%; flex: 1; min-height: 0; font-family: var(--fuente); }
.grafico__rejilla { stroke: #DCE3E5; stroke-width: .5; }
.grafico__eje { font-size: 4.2px; fill: #7A8487; }
.grafico__leyenda { font-size: 4.4px; fill: #4C5558; font-weight: 700; }
.grafico__vacio { font-size: 5.4px; fill: #7A8487; }
.hist__records { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(2 * var(--s)); }
.hist__record { display: flex; flex-direction: column; align-items: center; gap: calc(1 * var(--s)); padding: calc(1.6 * var(--s)) calc(1 * var(--s)); border-radius: calc(3 * var(--s)); background: linear-gradient(135deg, #3C7B80, #4B8F97); }
.hist__record dt { font-size: calc(4.6 * var(--s)); font-weight: 800; color: #D4F7F6; text-align: center; line-height: 1.1; white-space: nowrap; }
.hist__record dd { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: calc(8 * var(--s)); font-weight: 900; color: #EAFAD6; line-height: 1.05; white-space: nowrap; }
.hist__record dd small { font-size: calc(4.4 * var(--s)); font-weight: 700; color: #BFE8E4; }
.hist__exportar { position: absolute; left: calc(176 * var(--s)); top: calc(160 * var(--s)); display: flex; gap: calc(5 * var(--s)); }
.boton-verde--mini { position: relative; left: auto; top: auto; width: auto; min-width: calc(66 * var(--s)); height: calc(22 * var(--s)); padding: 0 calc(7 * var(--s)); font-size: calc(8.6 * var(--s)); }
.boton-verde--mini .boton-verde__texto { transform-origin: center; }
.hist__aviso { position: absolute; left: calc(88 * var(--s)); top: calc(160 * var(--s)); width: calc(84 * var(--s)); margin: 0; font-size: calc(5.2 * var(--s)); line-height: 1.3; color: #6A7477; }

.area .ventana.detalle { left: calc(14 * var(--s)); width: calc(322 * var(--s)); top: calc(32 * var(--s)); min-height: 0; align-items: stretch; justify-content: flex-start; gap: calc(4 * var(--s)); padding: calc(6 * var(--s)) calc(9 * var(--s)); text-align: left; }
.detalle__cab { display: flex; align-items: baseline; justify-content: space-between; }
.detalle__titulo { margin: 0; font-size: calc(11 * var(--s)); font-weight: 800; color: #3A4447; }
.detalle__fecha { font-size: calc(7 * var(--s)); font-weight: 700; color: #5A6467; }
.detalle__cuerpo { display: grid; grid-template-columns: 1fr 1.25fr; gap: calc(8 * var(--s)); }
.detalle__datos { margin: 0; display: flex; flex-direction: column; gap: calc(0.8 * var(--s)); }
.detalle__fila { display: flex; justify-content: space-between; gap: calc(4 * var(--s)); padding: calc(1 * var(--s)) calc(2 * var(--s)); border-bottom: calc(0.4 * var(--s)) solid #E3E9EA; font-size: calc(6.2 * var(--s)); }
.detalle__fila dt { color: #5A6467; font-weight: 700; }
.detalle__fila dd { margin: 0; color: #2C3133; font-weight: 800; text-align: right; }
.detalle__fila small { font-weight: 600; color: #7A8487; }
.detalle__mov { display: flex; flex-direction: column; gap: calc(3 * var(--s)); }
.grafico--recorrido { flex: none; height: calc(52 * var(--s)); background: #FAFCFC; border-radius: calc(3 * var(--s)); }
.detalle__sin { margin: 0; font-size: calc(6.4 * var(--s)); color: #7A8487; }

.ajustes, .privacidad {
  position: absolute; left: calc(30 * var(--s)); top: calc(32 * var(--s)); width: calc(290 * var(--s)); height: calc(122 * var(--s));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(5 * var(--s)) calc(10 * var(--s)); border-radius: calc(7 * var(--s)); background: rgba(255, 255, 255, .95);
  border: calc(0.6 * var(--s)) solid #B5C0C6; box-shadow: 0 0 0 calc(0.7 * var(--s)) rgba(255,255,255,.85), 0 calc(1 * var(--s)) calc(3 * var(--s)) rgba(70, 90, 100, .14);
}
.ajustes__grupo { margin: calc(2 * var(--s)) 0 calc(2 * var(--s)); font-size: calc(7.4 * var(--s)); font-weight: 800; color: #4E9E22; }
.ajuste { display: flex; align-items: center; justify-content: space-between; gap: calc(6 * var(--s)); padding: calc(2.2 * var(--s)) 0; border-bottom: calc(0.4 * var(--s)) solid #E3E9EA; }
.ajuste__et { display: flex; flex-direction: column; font-size: calc(7.2 * var(--s)); font-weight: 800; color: #3A4447; }
.ajuste__et small { font-size: calc(5.4 * var(--s)); font-weight: 600; color: #7A8487; }
.ajustes__privacidad { width: calc(100 * var(--s)); }
.privacidad__titulo { margin: 0 0 calc(3 * var(--s)); font-size: calc(10 * var(--s)); font-weight: 800; color: #3A4447; }
.privacidad__lista { margin: 0; padding-left: calc(10 * var(--s)); display: flex; flex-direction: column; gap: calc(2.6 * var(--s)); font-size: calc(6.6 * var(--s)); line-height: 1.35; color: #4C5558; }
.privacidad__lista b { color: #2C3133; }
.privacidad__estado { margin: calc(4 * var(--s)) 0 0; font-size: calc(6.8 * var(--s)); font-weight: 800; color: #3F7F85; }
.privacidad__botones { position: absolute; left: calc(88 * var(--s)); top: calc(160 * var(--s)); display: flex; gap: calc(4 * var(--s)); align-items: center; }
.privacidad__botones .boton-verde--mini { min-width: calc(52 * var(--s)); font-size: calc(7.6 * var(--s)); padding: 0 calc(5 * var(--s)); }
.boton-borrar {
  position: relative; height: calc(22 * var(--s)); padding: 0 calc(8 * var(--s));
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  border: calc(0.7 * var(--s)) solid #B5472F; background: linear-gradient(to bottom, #FFE3DA 0%, #F7B7A5 45%, #EE8E78 100%);
  box-shadow: 0 0 0 calc(0.7 * var(--s)) rgba(255, 240, 235, .9);
  color: #6B1F10; font-size: calc(8 * var(--s)); font-weight: 800; white-space: nowrap;
  transition: transform 90ms ease, filter 90ms ease;
}
.boton-borrar:active, .boton-borrar.is-pulsado { transform: translateY(calc(0.6 * var(--s))) scale(.97); filter: brightness(1.08); }
.velo .boton-borrar { height: calc(24 * var(--s)); }
.hist__grafico-caja { overflow: hidden; }
.hist__grafico-caja .js-grafico { flex: 1; min-height: 0; display: flex; }
.hist__grafico-caja .grafico { height: 100%; }

/* ==========================================================
   PESCA BAJO CERO · versión «como en Wii» (bloque grande, olas, pingüino expresivo,
   «Colócate», reloj, ¡Fin! y resultado con estrellas)
   ========================================================== */
.olas { animation: olas-mover 6s linear infinite; }
.olas--2 { animation-duration: 8s; animation-direction: reverse; }
.olas--3 { animation-duration: 5s; }
.olas--frente { animation-duration: 4s; animation-direction: reverse; }
@keyframes olas-mover { from { transform: translateX(0); } to { transform: translateX(28px); } }
.nubes { animation: nubes 40s linear infinite alternate; }
@keyframes nubes { from { transform: translateX(-10px); } to { transform: translateX(18px); } }
.pinguino .pg-ojos--feliz, .pinguino .pg-ojos--susto, .pinguino .pg-pico--abierto { display: none; }
.pinguino[data-cara="feliz"] .pg-ojos--normal, .pinguino[data-cara="susto"] .pg-ojos--normal { display: none; }
.pinguino[data-cara="feliz"] .pg-ojos--feliz, .pinguino[data-cara="susto"] .pg-ojos--susto { display: inline; }
.pinguino[data-cara="feliz"] .pg-pico--cerrado, .pinguino[data-cara="susto"] .pg-pico--cerrado { display: none; }
.pinguino[data-cara="feliz"] .pg-pico--abierto, .pinguino[data-cara="susto"] .pg-pico--abierto { display: inline; }
.pg-parpado { transform-box: fill-box; transform-origin: center top; transform: scaleY(0); animation: parpadeo 4.2s infinite; }
@keyframes parpadeo { 0%, 92%, 100% { transform: scaleY(0); } 95% { transform: scaleY(1); } }
.pg-aleta { transform-box: fill-box; transform-origin: center top; }
.pinguino[data-cara="feliz"] .pg-aleta--izq { transform: rotate(35deg); }
.pinguino[data-cara="feliz"] .pg-aleta--der { transform: rotate(-35deg); }
.pinguino[data-cara="susto"] .pg-aleta { animation: aletear .18s ease-in-out infinite alternate; }
.pinguino[data-cara="susto"] .pg-aleta--izq { animation-name: aletear-izq; }
@keyframes aletear { from { transform: rotate(-10deg); } to { transform: rotate(-60deg); } }
@keyframes aletear-izq { from { transform: rotate(10deg); } to { transform: rotate(60deg); } }
.pez--gigante use { filter: drop-shadow(0 0 2px #FFF6C0); }
.js-gotas circle { opacity: .95; }
.flotante--gigante { fill: #FFF3A0; stroke: #8A5A0A; font-size: 18px; }

/* Reloj redondo y marcador más grandes */
.pesca__marcador { height: calc(26 * var(--s)); min-width: calc(70 * var(--s)); }
.pesca__marcador b { font-size: calc(18 * var(--s)); }
.pesca__reloj { position: absolute; left: 50%; top: calc(4 * var(--s)); width: calc(40 * var(--s)); height: calc(40 * var(--s)); transform: translateX(-50%); display: grid; place-items: center; filter: drop-shadow(0 calc(1 * var(--s)) calc(2 * var(--s)) rgba(10, 50, 80, .35)); }
.pesca__reloj svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pesca__reloj circle.js-reloj-arco { transition: stroke-dashoffset 200ms linear; }
.pesca__reloj b { position: relative; font-size: calc(13 * var(--s)); font-weight: 900; color: #2E4E53; font-variant-numeric: tabular-nums; }
.pesca__reloj.is-final b { color: #C8332A; animation: latido 1s infinite; }
.pesca__reloj.is-final .js-reloj-arco { stroke: #F2685C; }
.pesca__peces { top: calc(37 * var(--s)); }
.pez-icono { width: calc(14 * var(--s)); height: calc(8 * var(--s)); }
.pesca--borde .pesca__escena { animation: temblor .12s linear infinite alternate; }
@keyframes temblor { from { transform: translateX(-0.3%); } to { transform: translateX(0.3%); } }

/* «Colócate» */
.area .ventana.pesca__colocate {
  left: calc(10 * var(--s)); width: calc(330 * var(--s)); top: calc(10 * var(--s)); min-height: 0;
  flex-direction: row; align-items: stretch; gap: calc(9 * var(--s)); padding: calc(8 * var(--s)); text-align: left;
}
.pesca__col-vista { flex: none; width: calc(176 * var(--s)); height: calc(99 * var(--s)); align-self: center; border-radius: calc(6 * var(--s)); overflow: hidden; border: calc(1.6 * var(--s)) solid #FFFFFF; box-shadow: 0 0 0 calc(0.5 * var(--s)) #8BA9B0; background: #2F4A57; }
.pesca__col-vista canvas { display: block; width: 100%; height: 100%; }
.pesca__col-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: calc(3 * var(--s)); }
.pesca__col-info > * { margin: 0; }
.pesca__col-titulo { font-size: calc(10 * var(--s)); font-weight: 800; color: #3A4447; line-height: 1.1; }
.pesca__col-mensaje { font-size: calc(9.4 * var(--s)); font-weight: 900; color: #C9600A; line-height: 1.15; min-height: calc(22 * var(--s)); }
.pesca__col-lista { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: calc(2 * var(--s)); }
.pesca__col-lista li { padding: calc(1 * var(--s)) calc(3.4 * var(--s)); border-radius: 999px; background: #E3E8EA; color: #6A7477; font-size: calc(6 * var(--s)); font-weight: 800; }
.pesca__col-lista li::before { content: '○ '; }
.pesca__col-lista li.is-ok { background: #DDF5C6; color: #2F6E1A; }
.pesca__col-lista li.is-ok::before { content: '✓ '; }
.pesca__col-nota { font-size: calc(5.8 * var(--s)); color: #5E6A6D; line-height: 1.3; }
.pesca__colocate .pesca__cal-barra span { background: linear-gradient(to bottom, #D8F6A6, #8DCD50 50%, #62AE2C); }

/* Cuenta atrás sobre la escena */
.pesca__cuenta { pointer-events: none !important; }

/* ¡Fin! */
.pesca__fin {
  position: absolute; left: 0; right: 0; top: calc(56 * var(--s)); text-align: center; pointer-events: none !important;
  font-size: calc(46 * var(--s)); font-weight: 900; color: #FFFFFF; letter-spacing: calc(1 * var(--s));
  -webkit-text-stroke: calc(1.6 * var(--s)) #1B4A6D; paint-order: stroke fill; text-shadow: 0 calc(2 * var(--s)) 0 #1B4A6D;
  animation: latido 0.6s ease-out both;
}

/* Resultado */
.area .ventana.pesca__final { gap: calc(3.4 * var(--s)); padding-top: calc(10 * var(--s)); }
.pesca__res-cab { display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--s)); width: 100%; }
.pesca__puntos-final { margin: 0; font-size: calc(9 * var(--s)); font-weight: 800; color: #3A4447; }
.pesca__puntos-final b { font-size: calc(26 * var(--s)); font-weight: 900; color: #3F7F85; font-variant-numeric: tabular-nums; }
.pesca__rango { margin: 0; font-size: calc(9 * var(--s)); font-weight: 800; color: #4E9E22; }
.estrellas { display: flex; gap: calc(2 * var(--s)); }
.estrella { width: calc(22 * var(--s)); height: calc(22 * var(--s)); fill: #D9DFE1; stroke: #AEB8BB; stroke-width: 1; }
.estrella--llena { fill: #FFD43B; stroke: #C99A0A; animation: latido .5s ease-out both; }
.estrella--llena:nth-child(2) { animation-delay: .25s; }
.estrella--llena:nth-child(3) { animation-delay: .5s; }
.pesca__comparacion { margin: 0; font-size: calc(8 * var(--s)); font-weight: 800; color: #5E6A6D; }
.pesca__comparacion.is-record { color: #C9600A; }
.pesca__datos { margin: 0; font-size: calc(7 * var(--s)); color: #5E6A6D; }
