/* =============================================
   FINGER GYM™ — OBSIDIAN TECH DESIGN SYSTEM
   Identidad Visual: Tech-Ops Minimalista
   Fondo: Obsidian Tech #0A0A0F
   Acento: Neon Volt #25E600
   ============================================= */

:root {
  /* OBSIDIAN PALETTE */
  --obsidian: #0A0A0F;
  --obsidian-light: #0F0F18;
  --obsidian-mid: #141420;
  --obsidian-surface: #1A1A2E;
  --obsidian-border: #252540;
  
  /* NEON VOLT */
  --neon: #25E600;
  --neon-dim: rgba(37, 230, 0, 0.15);
  --neon-glow: rgba(37, 230, 0, 0.3);
  --neon-ghost: rgba(37, 230, 0, 0.05);
  
  /* ACCENT PALETTE */
  --cyber-blue: #00D2A0;
  --electric-blue: #00A9C4;
  --electric-blue-dim: rgba(0, 169, 196, 0.15);
  --electric-blue-ghost: rgba(0, 169, 196, 0.06);
  --warning: #FFB800;
  --danger: #FF3B3B;
  --success: #25E600;
  
  /* TYPOGRAPHY */
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Montserrat', sans-serif;
  
  /* SPACING */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 18px;
  --gap-xl: 32px;
  --gap-2xl: 48px;
  
  /* BORDERS */
  --border: 1px solid var(--obsidian-border);
  --border-neon: 1px solid var(--neon);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: #050508;
  color: #CCCCCC;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== APP CONTAINER (MOBILE FRAME) ===== */
#app-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: var(--app-height, 100dvh);
  max-height: 900px;
  background: var(--obsidian);
  overflow: hidden;
}

@media (min-width: 420px) {
  #app-container {
    height: calc(var(--app-height, 92dvh) * 0.92);
    border: 1px solid var(--obsidian-border);
  }
}

/* SCANLINES OVERLAY */
#scan-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(37, 230, 0, 0.008) 2px,
    rgba(37, 230, 0, 0.008) 4px
  );
  pointer-events: none;
  z-index: 100;
}

/* ===== SCREENS ===== */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0s;
}

/* Pause animations on hidden screens to save CPU/battery */
.screen:not(.active) * {
  animation-play-state: paused !important;
}

/* ===== SCREEN HEADER ===== */
.screen-header {
  position: relative;
  padding: var(--gap-md) var(--gap-md) var(--gap-sm);
  border-bottom: var(--border);
  flex-shrink: 0;
}

.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--neon);
  border-style: solid;
}

.hud-corner.tl {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.hud-corner.tr {
  top: 8px;
  right: 8px;
  border-width: 1px 1px 0 0;
}

.status-bar {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-xs) 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  display: inline-block;
}

.status-dot.pulse {
  animation: pulse-dot 2s infinite;
}

.status-dot.warning {
  background: var(--warning);
  animation: pulse-dot 1.5s infinite;
}

.status-dot.scanning {
  background: var(--cyber-blue);
  animation: pulse-dot 0.8s infinite;
}

.status-dot.success {
  background: var(--neon);
}

.status-dot.training {
  background: var(--neon);
  animation: pulse-dot 1s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 2px;
  text-transform: uppercase;
  flex: 1;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.badge-step {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon);
  border: 1px solid var(--neon);
  padding: 2px 8px;
  letter-spacing: 1px;
}

/* ===== SCREEN BODY ===== */
.screen-body {
  flex: 1;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  padding: var(--gap-lg) var(--gap-md);
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--obsidian-border) transparent;
}

/* Screen-10 (panel de evolución) es un dashboard con mucha información:
   permitir scroll interno para que no se solape con el footer. */
#screen-10 .screen-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding-bottom: 16px;
}

/* Screen-08 (entrenamiento) sin scroll: contenido compactado y panel evolución
   se estira para rellenar el espacio restante sin huecos. */
#screen-08 .screen-body {
  display: flex !important;
  flex-direction: column !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  gap: 4px;
}
#screen-08 .training-visual { margin: 2px 0 !important; }
#screen-08 .ergopoints-live {
  padding: 4px 10px !important;
  margin: 2px 0 !important;
  font-size: 11px;
}
#screen-08 .ai-feedback {
  padding: 4px 8px !important;
  margin: 2px 0 !important;
  font-size: 10px;
}
#screen-08 .live-rank-panel {
  margin-top: 2px !important;
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
}
#screen-08 .evo-block {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
}
#screen-08 .evo-chart-wrap { flex: 1 1 auto; display: flex; flex-direction: column; }
#screen-08 .evo-chart {
  flex: 1 1 auto !important;
  min-height: 38px;
  height: auto !important;
}

/* Enable graceful scroll on shorter devices (iPhone SE, small Android) */
@media (max-height: 780px) {
  .screen-body,
  .screen-body.scmd-body,
  .screen-body.claim-body,
  .screen-body.scanner-body {
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
  /* La pantalla de ejercicio es la excepción: nunca debe hacer scroll, el
     contenido se comprime para caber entero (ver bloque #screen-08). */
  #screen-08 .screen-body { overflow-y: hidden !important; }
}

.screen-body::-webkit-scrollbar {
  width: 3px;
}

.screen-body::-webkit-scrollbar-track {
  background: transparent;
}

.screen-body::-webkit-scrollbar-thumb {
  background: var(--obsidian-border);
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
}

/* ===== SCREEN FOOTER ===== */
.screen-footer {
  padding: var(--gap-md);
  padding-bottom: max(var(--gap-md), env(safe-area-inset-bottom, 0px));
  border-top: var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  flex-shrink: 0;
  background: var(--obsidian-light);
  z-index: 5;
}

.footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-dim), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: var(--neon-ghost);
  box-shadow: 0 0 20px var(--neon-dim), inset 0 0 20px var(--neon-ghost);
}

.btn-primary:active {
  transform: scale(0.98);
  background: var(--neon-dim);
}

/* Gradient button variant */
.btn-gradient {
  background: linear-gradient(90deg, rgba(37, 230, 0,0.12), rgba(0, 210, 160,0.12));
  border-color: var(--cyber-blue);
  color: #FFFFFF;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, rgba(37, 230, 0,0.25), rgba(0, 210, 160,0.25));
  box-shadow: 0 0 30px rgba(0, 210, 160,0.2), 0 0 60px rgba(37, 230, 0,0.1);
  border-color: var(--neon);
  color: #FFFFFF;
}

/* Analyzing button — pulsing blink while auto-analysis runs */
.btn-analyzing {
  pointer-events: none;
  animation: analyzeGlow 1.2s ease-in-out infinite;
  opacity: 1 !important;
  color: var(--neon) !important;
  border-color: var(--neon) !important;
  letter-spacing: 3px;
  font-weight: 700;
}

@keyframes analyzeGlow {
  0%, 100% {
    opacity: 0.45;
    box-shadow: 0 0 8px rgba(37, 230, 0,0.15);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 25px rgba(37, 230, 0,0.4), 0 0 50px rgba(0, 210, 160,0.15);
  }
}

.btn-icon {
  font-size: 14px;
}

.btn-secondary {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--obsidian-border);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

.btn-primary.disabled,
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  border-color: var(--obsidian-border);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.btn-primary.disabled::before {
  display: none;
}


/* ===== LOGO ===== */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--gap-sm);
}

.logo-icon {
  width: 140px;
  height: auto;
  margin-bottom: var(--gap-md);
  animation: float 4s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px var(--neon-glow));
  mix-blend-mode: screen;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ErgoMovLab blue 3D logo in registration screen */
.ergomovlab-logo-wrapper {
  width: 100% !important;
  height: auto !important;
  display: flex;
  justify-content: center;
  animation: none !important;
  margin-bottom: 0;
}

.ergomovlab-logo-img {
  width: 260px;
  height: auto;
  object-fit: contain;
  /* El logo se muestra con sus colores reales; el resplandor sigue la silueta
     del alfa (drop-shadow, no box-shadow) para integrarlo con la estética HUD:
     halo neón cercano + aura cian abierta + sombra que lo despega del fondo. */
  /* El logotipo definitivo ya trae su propio halo verde: el resplandor CSS se
     baja a la mitad para que no empaste el plateado, y se conserva la sombra
     negra, que es la que le da cuerpo sobre el fondo obsidiana. */
  filter:
    drop-shadow(0 0 7px rgba(37, 230, 0, 0.20))
    drop-shadow(0 0 20px rgba(0, 210, 160, 0.10))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.logo-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(90deg, #25E600, #00D2A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
  margin-bottom: var(--gap-xs);
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(37, 230, 0,0.4));
}

.logo-title .accent {
  color: var(--neon);
}

.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon);
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(37, 230, 0, 0.4);
}
/* Eslogan ErgoMovLab bajo la categoría */
.logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  margin-top: 3px;
  font-style: italic;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: var(--gap-sm);
}
/* Cuando hay memory-hint, los form-group se compactan más */
.memory-hint ~ .form-group { margin-bottom: 6px; }

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: var(--gap-xs);
  text-transform: uppercase;
}

.hud-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--obsidian-light);
  border: 1px solid var(--obsidian-border);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-input::placeholder {
  color: rgba(255, 255, 255, 0.15);
  font-size: 12px;
}

.hud-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 10px var(--neon-ghost), inset 0 0 10px var(--neon-ghost);
}

.field-hint {
  font-size: 11px;
  color: var(--electric-blue);
  margin-top: 6px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 4px;
  margin-bottom: var(--gap-xs);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  margin-bottom: var(--gap-md);
}

/* ===== PERMISSION SCREEN (02) ===== */
.permission-icon {
  width: 90px;
  height: 90px;
  margin-bottom: var(--gap-lg);
  animation: float 3s ease-in-out infinite;
}

.info-card {
  background: var(--obsidian-light);
  border: var(--border);
  padding: var(--gap-md);
  margin-top: var(--gap-md);
  text-align: left;
}

.info-card.compact {
  margin-top: var(--gap-md);
}

.info-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: var(--gap-sm);
}

.info-icon {
  width: 16px;
  height: 16px;
  border: 1px solid var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--neon);
}

.info-text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.info-text strong {
  color: var(--neon);
  font-weight: 600;
}

/* ===== SCANNER SCREEN (03) ===== */
.scanner-body {
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.scanner-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
  border: 1px solid var(--obsidian-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Real camera video feed */
.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror front camera */
}

/* Frozen frame (canvas) matches camera feed */
.capture-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.capture-frame.hidden { display: none; }

/* Fallback when camera not available */
.camera-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  background: var(--obsidian-light);
  z-index: 1;
}

.camera-fallback.hidden { display: none; }

.fallback-icon { font-size: 36px; opacity: 0.4; }
.fallback-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
}

/* Hand silhouette as overlay on top of camera */
.hand-silhouette {
  position: absolute;
  inset: 0;
  width: 55%;
  margin: auto;
  opacity: 0.55;
  animation: hand-pulse 3s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

/* HUD data overlay — bottom-left chips */
.scan-hud-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: var(--gap-sm);
  z-index: 5;
}

.scan-hud-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(37, 230, 0,0.25);
}

.scan-hud-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scan-hud-value {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 1px;
}


.scanner-frame {
  position: absolute;
  inset: 15px;
}

.corner-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--neon);
  border-style: solid;
}

.corner-mark.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.corner-mark.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner-mark.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.corner-mark.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.scan-laser {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  box-shadow: 0 0 10px var(--neon), 0 0 20px var(--neon-dim);
  animation: laser-scan 2.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes laser-scan {
  0% { top: 15px; }
  50% { top: calc(100% - 17px); }
  100% { top: 15px; }
}

/* hand-silhouette: main definition is above with position:absolute */

@keyframes hand-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

.anchor-point {
  animation: anchor-blink 1.5s ease-in-out infinite;
}

.anchor-point.p1 { animation-delay: 0s; }
.anchor-point.p2 { animation-delay: 0.2s; }
.anchor-point.p3 { animation-delay: 0.4s; }
.anchor-point.p4 { animation-delay: 0.1s; }
.anchor-point.p5 { animation-delay: 0.3s; }
.anchor-point.p6 { animation-delay: 0.5s; }
.anchor-point.p7 { animation-delay: 0.6s; }
.anchor-point.p8 { animation-delay: 0.7s; }

@keyframes anchor-blink {
  0%, 100% { opacity: 0.4; r: 3; }
  50% { opacity: 1; r: 4; }
}

.scanner-data {
  display: flex;
  gap: var(--gap-md);
}

.data-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--gap-sm);
  background: var(--obsidian-light);
  border: var(--border);
}

.data-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

.data-value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--neon);
  letter-spacing: 2px;
}

.progress-container {
  padding: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  margin-bottom: var(--gap-xs);
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--obsidian-surface);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-dim);
  transition: width 0.3s ease;
}

.auto-capture-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyber-blue);
  letter-spacing: 1px;
}

.capture-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 10px;
}

/* Captured frame (no zoom, natural fit) */
.capture-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: scaleX(-1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--cyber-blue);
  animation: pulse-dot 1s infinite;
}

/* ===== RESULTS SCREEN (04) ===== */
/* ===== HAND BIOMETRIC VISUALIZATION ===== */
.hand-biometric {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: var(--gap-sm);
  overflow: visible;
}
.hand-svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* Ailment badges below hand */
.ailment-badges-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding: 0 4px;
}
.ailment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.8px;
  line-height: 1.4;
  opacity: 0;
  animation: ailment-fade-in 0.6s ease forwards;
}
.ailment-badge.warning {
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: #FFB800;
}
.ailment-badge.alert {
  background: rgba(255, 59, 59, 0.08);
  border: 1px solid rgba(255, 59, 59, 0.2);
  color: #FF6B6B;
}
.ailment-badge.clear {
  background: rgba(37, 230, 0, 0.06);
  border: 1px solid rgba(37, 230, 0, 0.18);
  color: #25E600;
}
.ailment-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ailment-badge.warning .ailment-badge-dot { background: #FFB800; }
.ailment-badge.alert .ailment-badge-dot { background: #FF6B6B; }
.ailment-badge.clear .ailment-badge-dot { background: #25E600; }

@keyframes ailment-fade-in {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.result-card {
  background: var(--obsidian-light);
  border: var(--border);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.result-card.main-result {
  grid-column: 1 / -1;
  align-items: center;
  text-align: center;
  padding: var(--gap-md) var(--gap-lg);
  border: none;
  background: transparent;
  position: relative;
}
.result-hand-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(37, 230, 0,0.5)) drop-shadow(0 0 30px rgba(37, 230, 0,0.2));
  margin-bottom: 4px;
  mix-blend-mode: screen;
}

.result-card.main-result::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(37, 230, 0,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.result-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
}

.result-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cyber-blue);
  letter-spacing: 2px;
}

.result-value.big {
  font-size: 42px;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-dim);
}

.result-value.caution {
  color: var(--warning);
  font-size: 14px;
}

.result-unit {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 2px;
}

.result-badge {
  margin-top: var(--gap-sm);
  padding: 4px 12px;
  border: 1px solid var(--neon);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
}

.result-badge.positive {
  color: var(--neon);
}

.mini-bar {
  width: 100%;
  height: 3px;
  background: var(--obsidian-surface);
  margin-top: var(--gap-xs);
}

.mini-fill {
  height: 100%;
  background: var(--neon);
  transition: width 1s ease;
}

.mini-fill.warning {
  background: var(--warning);
}

/* ===== CALIBRATION SCREEN (05) ===== */
.device-selector {
  margin-bottom: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

/* Shared hidden utility */
.hidden {
  display: none !important;
}

/* ——— HUD SELECT DROPDOWN ——— */
.hud-select-wrapper {
  position: relative;
  width: 100%;
}

.hud-select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  background: var(--obsidian-light);
  border: 1px solid var(--obsidian-border);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hud-select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 10px var(--neon-ghost), inset 0 0 10px var(--neon-ghost);
}

.hud-select option {
  background: var(--obsidian-mid);
  color: #CCCCCC;
  font-family: var(--font-mono);
  padding: 8px;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon);
  font-size: 10px;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.hud-select:focus + .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

/* ——— DEVICE CONFIRMATION CARD ——— */
.device-confirmed {
  background: var(--obsidian-light);
  border: 1px solid var(--neon);
  padding: var(--gap-md);
  animation: fadeInUp 0.35s ease;
  position: relative;
  overflow: hidden;
}

.device-confirmed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--neon-ghost) 0%, transparent 70%);
  pointer-events: none;
}

.confirmed-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: var(--gap-md);
  text-transform: uppercase;
}

.confirmed-dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  display: inline-block;
  flex-shrink: 0;
}

.confirmed-label {
  flex: 1;
}

.confirmed-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.confirmed-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
  margin-bottom: var(--gap-xs);
}

.confirmed-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-sm);
}

.confirmed-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--gap-sm);
  background: var(--obsidian-surface);
  border: var(--border);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyber-blue);
  letter-spacing: 1px;
}

.metric-value.accent {
  color: var(--neon);
  font-size: 11px;
}

.danger-text { color: var(--danger) !important; }
.warn-text   { color: var(--warning) !important; }
.safe-text   { color: var(--neon) !important; }

.device-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--gap-md);
  background: var(--obsidian-light);
  border: var(--border);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-option:hover {
  border-color: var(--neon);
  color: #FFFFFF;
}

.device-option.selected {
  border-color: var(--neon);
  background: var(--neon-ghost);
  color: var(--neon);
}

.device-name {
  font-weight: 500;
}

.device-weight {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyber-blue);
}

.device-brand-label {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--cyber-blue);
  letter-spacing: 2px;
  padding: 10px var(--gap-sm) 6px;
  border-bottom: 1px solid rgba(0, 210, 160, 0.15);
  margin-top: var(--gap-xs);
  text-transform: uppercase;
}

.brand-icon {
  color: var(--neon);
  font-size: 10px;
}

.torque-result {
  background: var(--obsidian-light);
  border: var(--border);
  padding: var(--gap-md);
  animation: fadeInUp 0.5s ease;
}

.torque-result.hidden {
  display: none;
}

.torque-header {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: var(--gap-md);
  padding-bottom: var(--gap-sm);
  border-bottom: var(--border);
}

.torque-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.torque-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.torque-item.danger .torque-value {
  color: var(--danger);
}

.torque-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.torque-value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--cyber-blue);
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== POSTURE SCREEN (06) ===== */
.posture-visual {
  width: 100%;
  margin: var(--gap-md) 0;
}

.posture-comparison {
  display: flex;
  gap: var(--gap-sm);
  align-items: stretch;
}

.posture-card {
  flex: 1;
  padding: var(--gap-md);
  background: var(--obsidian-light);
  border: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}

.posture-card.bad {
  border-color: var(--danger);
}

.posture-card.good {
  border-color: var(--neon);
}

.posture-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.posture-icon {
  width: 40px;
  height: 40px;
}

.pressure-meter {
  width: 100%;
  height: 4px;
  background: var(--obsidian-surface);
}

.pressure-fill {
  height: 100%;
  transition: width 1s ease;
}

.pressure-fill.high {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.4);
}

.pressure-fill.low {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-dim);
}

.pressure-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.pressure-value.accent {
  color: var(--neon);
}

.posture-divider {
  display: flex;
  align-items: center;
  padding: 0 var(--gap-xs);
}

.vs-text {
  font-family: var(--font-display);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
}

.reduction-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--gap-sm);
  border: 1px solid var(--neon);
  margin-top: var(--gap-xs);
}

.reduction-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 15px var(--neon-dim);
}

.reduction-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 2px;
}

/* ===== FingerGene™ IA SCREEN (07) ===== */
.ai-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-lg);
}

.ai-ring {
  position: absolute;
  border: 1px solid var(--neon);
  opacity: 0.15;
}

.ai-ring.ring-1 {
  width: 100%;
  height: 100%;
  animation: ring-rotate 8s linear infinite;
}

.ai-ring.ring-2 {
  width: 80%;
  height: 80%;
  animation: ring-rotate 6s linear infinite reverse;
}

.ai-ring.ring-3 {
  width: 60%;
  height: 60%;
  animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-core {
  width: 60px;
  height: 60px;
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--neon-dim)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 15px var(--neon-glow)); }
}

.ai-title {
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-dim);
}

.ai-greeting {
  font-family: var(--font-body);
  font-size: 18px;
  color: #FFFFFF;
  margin: var(--gap-md) 0 var(--gap-sm);
}

.ai-message {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  margin-bottom: var(--gap-xl);
}

.ai-stats {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 6px;
}

.ai-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 8px;
  background: rgba(15, 15, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.3s ease;
}

.ai-stat:hover {
  border-color: var(--neon-dim);
  background: rgba(37, 230, 0, 0.03);
}

.ai-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
  text-shadow: 0 0 15px var(--neon-glow);
}

.ai-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  margin-top: 8px;
  text-transform: uppercase;
}


/* ===== TRAINING SCREEN (08) ===== */
.training-header {
  text-align: center;
  margin-bottom: var(--gap-md);
}

.mission-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 6px;
}

.mission-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  margin-top: var(--gap-xs);
}

.training-visual {
  display: flex;
  justify-content: center;
  margin-bottom: var(--gap-md);
}

.exercise-ring {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exercise-ring svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.timer-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-dim);
}

.timer-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
}

.training-guide {
  margin-bottom: var(--gap-sm);
}

.guide-blueprint {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.guide-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(10, 10, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  opacity: 0.55;
  transition: all 0.4s ease;
}

/* Paso señalado: resaltado fijo. El parpadeo NO va aquí — solo debe latir
   mientras el ejercicio está en marcha (ver .guide-blueprint.en-curso). */
.guide-step.active {
  opacity: 1;
  border: 2px solid var(--neon) !important;
  border-left: 3px solid var(--neon) !important;
  background: linear-gradient(90deg, rgba(37, 230, 0,0.22), rgba(37, 230, 0,0.04));
  transform-origin: left center;
  position: relative;
  z-index: 2;
}

/* Ejercicio en curso: el paso activo late y dibuja el anillo */
.guide-blueprint.en-curso .guide-step.active {
  animation: guidePulse 0.9s ease-in-out infinite;
}
.guide-blueprint.en-curso .guide-step.active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--neon);
  pointer-events: none;
  animation: guideRing 0.9s ease-in-out infinite;
}

@keyframes guidePulse {
  0%, 100% {
    background: linear-gradient(90deg, rgba(37, 230, 0,0.14), rgba(37, 230, 0,0.02));
    box-shadow: 0 0 8px rgba(37, 230, 0, 0.22), inset 0 0 6px rgba(37, 230, 0, 0.06);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(90deg, rgba(37, 230, 0,0.34), rgba(37, 230, 0,0.08));
    box-shadow:
      0 0 28px rgba(37, 230, 0, 0.7),
      0 0 56px rgba(37, 230, 0, 0.28),
      inset 0 0 14px rgba(37, 230, 0, 0.18);
    transform: scale(1.018);
  }
}
@keyframes guideRing {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.04); }
}

.guide-num-circle {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.guide-step.active .guide-num-circle {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(37, 230, 0, 0.12);
  box-shadow: 0 0 8px rgba(37, 230, 0, 0.4);
  text-shadow: 0 0 6px var(--neon);
}

.guide-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.guide-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.4s ease;
}

.guide-step.active .guide-text {
  color: #fff;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(37, 230, 0, 0.3);
}

.guide-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  transition: all 0.4s ease;
}

.guide-step.active .guide-hint {
  color: rgba(37, 230, 0, 0.6);
}

.guide-icon-tech {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  flex-shrink: 0;
  color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.guide-step.active .guide-icon-tech {
  color: var(--neon);
  text-shadow: 0 0 6px rgba(37, 230, 0,0.5);
  transform: scale(1.1);
}

.ergopoints-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--obsidian-light);
  border: var(--border);
  margin-bottom: var(--gap-sm);
}

.ep-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.ep-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--neon);
  letter-spacing: 2px;
}

.ai-feedback {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  border-left: 2px solid var(--neon);
  background: var(--neon-ghost);
}

.ai-feedback-icon {
  color: var(--neon);
  font-size: 14px;
}

.ai-feedback-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* ===== LIVE RANK PANEL (screen-08) ===== */
.live-rank-panel {
  margin-top: 4px;
  padding: 4px 8px 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(37, 230, 0,0.12);
  position: relative;
}
.rank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.5);
}
.rank-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--neon);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 6px var(--neon);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.rank-active {
  font-size: 8px;
  color: rgba(0, 210, 160, 0.75);
}
.rank-active #live-count {
  color: var(--electric-blue);
  font-weight: 700;
  font-size: 9px;
}
.rank-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0;
}
.rank-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.rank-number {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 6px rgba(37, 230, 0,0.4);
  line-height: 1;
  letter-spacing: 0.5px;
}
.rank-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.5px;
}
.rank-badge {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(37, 230, 0,0.15);
  border: 1px solid rgba(37, 230, 0,0.4);
  color: var(--neon);
  font-weight: 700;
  font-size: 7px;
  letter-spacing: 1px;
  margin-left: 2px;
}
.rank-bar {
  position: relative;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  width: 85%;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon));
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(37, 230, 0,0.4);
  transition: width 0.6s ease;
}
.progress-trend {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--neon);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* ===== EVOLUCIÓN BIOMÉTRICA (screen-08) ===== */
.evo-block {
  margin-top: 4px !important;
  padding-top: 4px !important;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.evo-kpis {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
}
.evo-kpi {
  position: relative;
  padding: 3px 5px 4px !important;
  background: linear-gradient(180deg, rgba(37, 230, 0,0.05), rgba(0,0,0,0.45));
  border: 1px solid rgba(37, 230, 0,0.14);
  border-top: 1px solid rgba(37, 230, 0,0.34);
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  overflow: hidden;
  min-width: 0;
}
.evo-kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.55;
}
.evo-kpi-label {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  line-height: 1.1;
}
.evo-kpi-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 6px rgba(37, 230, 0,0.4);
  line-height: 1.05;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.evo-kpi-unit {
  font-size: 9px;
  font-weight: 600;
  color: rgba(37, 230, 0,0.75);
  margin-left: 1px;
}
.evo-kpi-delta {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.3px;
  margin-top: 1px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.evo-kpi-delta.up { color: var(--neon); }
.evo-kpi-delta.down { color: var(--danger); }

.evo-chart-wrap {
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 4px 6px 3px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.evo-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
}
.evo-chart-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.55);
}
.evo-chart-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 5px var(--neon);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}
.evo-chart {
  width: 100%;
  height: 38px !important;
  display: block;
}
.evo-dot-live {
  filter: drop-shadow(0 0 4px var(--neon));
  animation: evoDotPulse 1.4s ease-in-out infinite;
  transform-origin: 280px 6px;
}
@keyframes evoDotPulse {
  0%, 100% { opacity: 1; r: 3.5; }
  50% { opacity: 0.55; r: 4.6; }
}
.evo-chart-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 0 2px;
}
.evo-chart-axis .today {
  color: var(--neon);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(37, 230, 0,0.5);
}

/* ===== DEV NAVIGATION OVERLAY ===== */
#dev-nav {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 999999;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(10, 10, 15, 0.95);
  border: 1px solid var(--neon);
  box-shadow: 0 0 24px rgba(37, 230, 0,0.35);
  max-width: 200px;
  max-height: 80vh;
  overflow-y: auto;
  font-family: var(--font-mono);
}
#dev-nav.open { display: flex; }
#dev-nav-title {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--neon);
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(37, 230, 0,0.3);
  margin-bottom: 2px;
}
#dev-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.dev-screen-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 4px 2px;
  background: rgba(37, 230, 0,0.08);
  border: 1px solid rgba(37, 230, 0,0.25);
  color: var(--neon);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}
.dev-screen-btn:hover {
  background: rgba(37, 230, 0,0.22);
  border-color: var(--neon);
  box-shadow: 0 0 8px rgba(37, 230, 0,0.5);
}
.dev-screen-btn.current {
  background: var(--neon);
  color: #000;
  font-weight: 700;
}
#dev-toggle {
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 999998 !important;
  width: auto !important;
  height: 28px !important;
  padding: 0 10px !important;
  background: rgba(10, 10, 15, 0.92) !important;
  border: 1px solid var(--neon) !important;
  color: var(--neon) !important;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 12px rgba(37, 230, 0,0.45);
  text-shadow: 0 0 4px rgba(37, 230, 0,0.6);
}
#dev-toggle.visible { display: inline-flex !important; }
#dev-toggle:hover {
  background: var(--neon) !important;
  color: #000 !important;
  text-shadow: none !important;
  box-shadow: 0 0 16px rgba(37, 230, 0,0.85);
}

/* ===== MISSION COMPLETE SCREEN (09) ===== */
.success-burst {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gap-lg);
}

.burst-star {
  position: absolute;
  width: 80px;
  height: 80px;
  animation: star-burst-expand 2.5s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  filter: drop-shadow(0 0 10px var(--neon));
  transform-origin: center;
}

.burst-star.r1 {
  animation-delay: 0s;
}

.burst-star.r2 {
  animation-delay: 0.6s;
}

.burst-star.r3 {
  animation-delay: 1.2s;
}

@keyframes star-burst-expand {
  0% { transform: scale(0.5) rotate(0deg); opacity: 1; stroke-width: 3px; }
  50% { opacity: 0.8; stroke-width: 2px; filter: drop-shadow(0 0 20px var(--neon)); }
  100% { transform: scale(3.5) rotate(90deg); opacity: 0; stroke-width: 0.5px; }
}

.success-check {
  width: 50px;
  height: 50px;
  z-index: 1;
}

.congrats {
  color: var(--neon);
  text-shadow: 0 0 30px var(--neon-dim);
  letter-spacing: 6px;
}

.reward-summary {
  width: 100%;
  max-width: 300px;
  margin-top: var(--gap-lg);
}

.reward-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-md);
  border: 1px solid var(--neon);
  margin-bottom: var(--gap-sm);
}

.reward-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.reward-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 15px var(--neon-dim);
}

.reward-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reward-item {
  display: flex;
  justify-content: space-between;
  padding: var(--gap-sm) var(--gap-md);
  background: var(--obsidian-light);
  border: var(--border);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.accent {
  color: var(--neon) !important;
}

/* ===== SCMD SCREEN (10) ===== */
.scmd-meter {
  margin-bottom: var(--gap-lg);
}

.scmd-progress {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--obsidian-surface);
  margin-bottom: var(--gap-xl);
}

.scmd-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyber-blue));
  box-shadow: 0 0 10px var(--neon-dim);
  transition: width 1.5s ease;
  position: relative;
}

.scmd-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 2px;
  height: 16px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.scmd-markers {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
}

.scmd-marker {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
}

.marker-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.scmd-value-display {
  text-align: center;
}

.scmd-current {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-dim);
}

.scmd-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  margin-top: var(--gap-xs);
}

/* Tier card styles moved to SCREEN 10 redesign section below */

/* ===== SURVEY / DIAGNOSTIC SCREENS (07-A to 07-E) ===== */
.survey-progress {
  margin-bottom: var(--gap-lg);
}

.survey-bar {
  width: 100%;
  height: 3px;
  background: var(--obsidian-surface);
  margin-bottom: var(--gap-xs);
}

.survey-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyber-blue));
  box-shadow: 0 0 8px var(--neon-dim);
  transition: width 0.6s ease;
}

.survey-step-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
}

.survey-question {
  text-align: center;
  margin-bottom: var(--gap-lg);
}

.question-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--gap-md);
  animation: float 3s ease-in-out infinite;
}

.survey-question .section-title {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.5;
}

.survey-question .section-subtitle {
  margin-bottom: 0;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.survey-option {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 10px var(--gap-md);
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.survey-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--neon);
  transition: width 0.3s ease;
}

.survey-option:hover {
  border-color: rgba(37, 230, 0, 0.3);
  color: #FFFFFF;
}

.survey-option.selected {
  border-color: var(--neon);
  background: var(--neon-ghost);
  color: var(--neon);
}

.survey-option.selected::before {
  width: 3px;
}

.option-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--neon);
  min-width: 50px;
  text-align: center;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.survey-option.selected .option-value {
  opacity: 1;
  text-shadow: 0 0 10px var(--neon-dim);
}

.option-icon {
  font-size: 22px;
  min-width: 40px;
  text-align: center;
}

.option-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
  flex: 1;
}

.survey-option.selected .option-label {
  color: var(--neon);
}

.option-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  text-align: right;
}

.survey-option.selected .option-tag {
  color: var(--neon);
  opacity: 0.6;
}

/* Multi-select hint */
.multi-select-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--electric-blue);
  letter-spacing: 1px;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 0;
}

/* Q2 screen — compact layout for 5 options + icon */
#screen-07b .survey-question {
  margin-bottom: var(--gap-sm);
}
#screen-07b .survey-question .section-title {
  font-size: 14px;
}

/* Compact survey options for multi-select (5 items no scroll) */
.survey-options-multi {
  gap: 8px !important;
  width: 100%;
}
.survey-option-compact {
  padding: 10px 14px !important;
  gap: 12px !important;
}
.survey-option-compact .option-icon {
  min-width: 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.survey-option-compact .option-icon .icon-3d {
  width: 28px;
  height: 28px;
}
.survey-option-compact .option-label {
  font-size: 11px;
  letter-spacing: 2px;
}
.survey-option-compact .option-tag {
  font-size: 7px;
  white-space: nowrap;
}

/* Disabled button state */
.btn-primary.disabled {
  opacity: 0.3;
  pointer-events: none;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.2);
}

.btn-primary.disabled .btn-icon {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== GENERATING ANIMATION (07-E) ===== */
.ai-avatar.generating .ai-ring {
  opacity: 0.3;
}

.ai-avatar.generating .ai-ring.ring-1 {
  animation: ring-rotate 3s linear infinite;
}

.ai-avatar.generating .ai-ring.ring-2 {
  animation: ring-rotate 2s linear infinite reverse;
}

.ai-avatar.generating .ai-ring.ring-3 {
  animation: ring-rotate 1.5s linear infinite;
}

.gen-steps {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  width: 100%;
  max-width: 300px;
  margin-top: var(--gap-lg);
}

.gen-step {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  background: var(--obsidian-light);
  border: var(--border);
  opacity: 0.3;
  transition: all 0.5s ease;
}

.gen-step.active {
  opacity: 1;
  border-color: var(--neon);
}

.gen-step.done {
  opacity: 0.8;
  border-color: rgba(37, 230, 0, 0.3);
}

.gen-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.gen-dot.active {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon-dim);
  animation: pulse-dot 1s infinite;
}

.gen-step.done .gen-dot {
  background: var(--neon);
  box-shadow: none;
  animation: none;
}

.gen-text {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.gen-step.active .gen-text {
  color: var(--neon);
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.4s ease !important;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--neon-dim); }
  50% { box-shadow: 0 0 20px var(--neon-glow); }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-height: 700px) {
  .logo-icon { width: 50px; height: 50px; }
  .logo-title { font-size: 22px; }
  .logo-subtitle { font-size: 10px; }
  .ergomovlab-logo-img { width: min(240px, 65vw); }
  .ai-avatar { width: 90px; height: 90px; }
  .exercise-ring { width: 130px; height: 130px; }
  .timer-value { font-size: 32px; }
  .result-value.big { font-size: 32px; }
  .screen-body { padding: var(--gap-md) var(--gap-md); }
  .screen-footer { padding: var(--gap-sm) var(--gap-md); }
  .act-lock-icon { width: 80px; height: 80px; }
  .act-lock-img { width: 60px; }
  .activation-body { padding: var(--gap-md) var(--gap-md); gap: var(--gap-sm); }
}

@media (max-height: 600px) {
  .screen-body { padding: var(--gap-sm) var(--gap-md); }
  .screen-footer { padding: var(--gap-xs) var(--gap-md); }
  .section-title { font-size: 15px; }
  .section-subtitle { font-size: 10px; }
  .logo-container { margin-bottom: var(--gap-xs); }
  .ergomovlab-logo-img { width: min(200px, 55vw); }
  .logo-title { font-size: 20px; }
  .form-group { margin-bottom: 6px; }
  .field-label { font-size: 9px; }
  .hud-input { padding: 10px 12px; font-size: 13px; }
  .hud-select { padding: 10px 12px; font-size: 13px; }
  .btn-primary, .btn-blue-solid, .btn-secondary { padding: 12px 16px; font-size: 12px; }
  .act-lock-icon { width: 64px; height: 64px; }
  .act-lock-img { width: 48px; }
  .act-title { font-size: 20px; }
  .activation-body { padding: var(--gap-sm) var(--gap-sm); gap: 8px; }
  .ai-avatar { width: 70px; height: 70px; }
  .exercise-ring { width: 110px; height: 110px; }
  .icon-3d { max-height: 100px; }
}

/* ===== SCREEN 09: CONFETTI + SUCCESS ===== */
.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.success-body {
  position: relative;
  z-index: 1;
}

.glow-title {
  background: linear-gradient(90deg, #25E600, #00D2A0, #25E600);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(37, 230, 0,0.5));
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.motivational-phrase {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: rgba(37, 230, 0,0.04);
  border: 1px solid rgba(37, 230, 0,0.15);
  border-left: 3px solid var(--neon);
  padding: var(--gap-md);
  margin-top: var(--gap-md);
  animation: fadeInUp 0.6s ease 0.5s both;
}

.phrase-deco {
  color: var(--neon);
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.phrase-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  letter-spacing: 0.3px;
  flex: 1;
  text-align: center;
}

/* ===== SCREEN 10: SCMD RINGS ===== */
.scmd-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* ===== SCREEN 10: compact layout (no scroll) ===== */
#screen-10 .scmd-rings-section { margin-bottom: 8px; }
#screen-10 .scmd-rings-section .section-subtitle { margin-bottom: 8px; font-size: 8px; }
#screen-10 .scmd-rings-grid { gap: 4px; margin-top: 4px; }
#screen-10 .ring-wrap { width: 60px; height: 60px; }
#screen-10 .ring-pct { font-size: 11px; }
#screen-10 .weekly-activity { padding: 10px 12px; margin-bottom: 8px; }
#screen-10 .activity-label { margin-bottom: 8px; }
#screen-10 .push-strategy { margin-top: 3px; padding: 4px 10px; }
#screen-10 .push-header { padding-bottom: 3px; margin-bottom: 3px; }
#screen-10 .push-event { padding: 2px 8px !important; }
#screen-10 .push-header h3 { font-size: 11px; }
#screen-10 .push-header p { font-size: 8px; margin-top: 1px; }
#screen-10 .push-timeline { gap: 3px; }
#screen-10 .push-event { padding: 3px 8px; }
#screen-10 .push-event p { font-size: 8px; line-height: 1.2; margin-top: 1px; }
#screen-10 .push-tag { font-size: 8px; padding: 1px 5px; }
#screen-10 .push-time { font-size: 10px; width: 45px; }

.scmd-rings-section {
  padding: 0;
  margin-bottom: var(--gap-md);
}

.scmd-rings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}

.scmd-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
}

.ring-svg {
  width: 100%;
  height: 100%;
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 9;
}

.ring-fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: butt;
}

.ring-S { stroke: #25E600; filter: drop-shadow(0 0 5px #25E600); }
.ring-C { stroke: #00D2A0; filter: drop-shadow(0 0 5px #00D2A0); }
.ring-M { stroke: #B347FF; filter: drop-shadow(0 0 5px #B347FF); }
.ring-D { stroke: #FFB800; filter: drop-shadow(0 0 5px #FFB800); }

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-pct {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}

.ring-letter-overlay {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
}

.ring-name {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/* ===== SCREEN 10: WEEKLY ACTIVITY BARS ===== */
.weekly-activity {
  background: var(--obsidian-light);
  border: var(--border);
  padding: var(--gap-md);
  margin-bottom: var(--gap-md);
}

.activity-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--cyber-blue);
  letter-spacing: 2px;
  margin-bottom: var(--gap-md);
}

.activity-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 60px;
  gap: 4px;
}

.act-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.act-bar {
  width: 100%;
  background: linear-gradient(0deg, rgba(37, 230, 0,0.3), rgba(0, 210, 160,0.1));
  border-top: 1px solid rgba(37, 230, 0,0.35);
  height: 0%;
  max-height: 52px;
}

.act-bar.today {
  background: linear-gradient(0deg, #25E600, rgba(0, 210, 160,0.6));
  border-top-color: #25E600;
  box-shadow: 0 0 10px rgba(37, 230, 0,0.3);
}

.act-day {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
}

.active-day .act-day { color: var(--neon); }

/* ===== SCREEN 10: TIER CARDS REDESIGN ===== */
.tiers-container {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.tier-card {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  padding: var(--gap-md);
  border: var(--border);
  background: var(--obsidian-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.tier-card.unlocked {
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(37, 230, 0,0.05), transparent);
}

.tier-card.elite {
  border-color: var(--warning);
  background: linear-gradient(135deg, rgba(255,184,0,0.05), transparent);
}

.tier-card:hover { transform: translateX(3px); }

.tier-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.tier-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.tier-percent {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyber-blue);
}

.elite-pct { color: var(--warning); }

.tier-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 6px;
  letter-spacing: 1px;
}

.unlocked-badge {
  background: rgba(37, 230, 0,0.1);
  border: 1px solid var(--neon);
  color: var(--neon);
}

.locked-badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--obsidian-border);
  color: rgba(255,255,255,0.3);
}

.elite-badge {
  background: rgba(255,184,0,0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.tier-reward {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 2px;
}

.tier-desc {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
  line-height: 1.4;
}

.tier-progress-mini {
  height: 2px;
  background: rgba(255,255,255,0.07);
  margin-top: 6px;
  overflow: hidden;
}

.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyber-blue));
  animation: progressFill 1.2s ease 0.5s both;
}

@keyframes progressFill {
  from { width: 0 !important; }
}

.tier-progress-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

/* ===== HEADER GRADIENT VARIANT ===== */
.header-gradient {
  background: linear-gradient(180deg, rgba(0, 210, 160,0.04), transparent);
}

@media (max-width: 400px) {
  .scmd-rings-grid { gap: 4px; }
  .ring-wrap { width: 56px; height: 56px; }
  .ring-pct { font-size: 11px; }
}

/* ====================================================
   SCREEN 11 — FORMULARIO DE RECOMPENSA (BLUE PALETTE)
   ==================================================== */

/* Status dot — blue variant */
.blue-dot {
  background: var(--electric-blue) !important;
  box-shadow: 0 0 8px var(--electric-blue) !important;
}

/* Header — cyan tint for this screen */
.header-blue {
  background: linear-gradient(180deg, rgba(0, 169, 196,0.07), transparent);
}

/* Scrollable body */
.claim-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* ===== SCREEN 11: compact claim form (no scroll) ===== */
#screen-11 .claim-header-section { padding-bottom: 6px; }
#screen-11 .claim-reward-tag { padding: 3px 8px; font-size: 8px; margin-bottom: 4px; }
#screen-11 .claim-title { font-size: 17px; letter-spacing: 3px; margin-bottom: 2px; }
#screen-11 .claim-subtitle { font-size: 9px; }
#screen-11 .claim-form { gap: 6px; }
#screen-11 .form-row-2 { gap: 6px; }
#screen-11 .claim-field { gap: 2px; }
#screen-11 .blue-label { font-size: 7px; }
#screen-11 .blue-input { padding: 7px 10px; font-size: 12px; }
#screen-11 .blue-input::placeholder { font-size: 11px; }
#screen-11 .terms-check { padding: 4px 0; }
#screen-11 .terms-text { font-size: 10px; }

/* ——— Header Section ——— */
.claim-header-section {
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid rgba(0, 169, 196,0.12);
}

.claim-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 169, 196,0.08);
  border: 1px solid rgba(0, 169, 196,0.25);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--electric-blue);
  letter-spacing: 2px;
  margin-bottom: var(--gap-sm);
}

.claim-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--electric-blue), var(--cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 5px;
  margin-bottom: 4px;
}

.claim-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}

/* ——— Form Layout ——— */
.claim-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm);
}

.claim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ——— Blue Labels ——— */
.blue-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--electric-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ——— Blue Inputs ——— */
.blue-input {
  width: 100%;
  padding: 11px 13px;
  background: var(--electric-blue-ghost);
  border: 1px solid rgba(0, 169, 196,0.2);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.blue-input::placeholder {
  color: rgba(255,255,255,0.18);
  font-size: 12px;
}

.blue-input:focus {
  border-color: var(--electric-blue);
  background: rgba(0, 169, 196,0.08);
  box-shadow: 0 0 0 2px rgba(0, 169, 196,0.15),
              inset 0 0 12px rgba(0, 169, 196,0.04);
}

/* Error state */
.blue-input.input-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 2px rgba(255,59,59,0.15) !important;
}

/* ——— Select wrapper ——— */
.blue-select-wrapper {
  position: relative;
}

.blue-select-wrapper .blue-input {
  cursor: pointer;
  padding-right: 32px;
}

.blue-arrow {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--electric-blue);
  font-size: 9px;
  pointer-events: none;
}

/* ——— Custom Checkbox ——— */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  cursor: pointer;
  padding: var(--gap-sm) 0;
}

.terms-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.check-custom {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 169, 196,0.35);
  background: rgba(0, 169, 196,0.05);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-check input:checked ~ .check-custom,
.terms-check input:checked + .check-custom {
  background: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 0 8px rgba(0, 169, 196,0.4);
}

.terms-check input:checked ~ .check-custom::after,
.terms-check input:checked + .check-custom::after {
  content: '✓';
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.terms-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.terms-link {
  color: var(--electric-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.terms-link:hover { opacity: 0.7; }

/* ——— Solid Blue Button ——— */
.btn-blue-solid {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--electric-blue), #2B7FE8);
  border: none;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-blue-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-blue-solid:hover::before {
  transform: translateX(100%);
}

.btn-blue-solid:hover {
  background: linear-gradient(90deg, #5BADFF, #3B8FF5);
  box-shadow: 0 0 25px rgba(0, 169, 196,0.4), 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-blue-solid:active { transform: scale(0.98); }

/* Footer spacing */
.claim-footer {
  gap: var(--gap-sm);
}

/* ——— Success Screen ——— */
.claim-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
  animation: fadeInUp 0.5s ease;
}

.claim-success-icon {
  font-size: 48px;
  animation: float 3s ease-in-out infinite;
}

.claim-success-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--electric-blue), var(--cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 4px;
}

.claim-success-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.claim-success-sub strong {
  color: #FFFFFF;
}

.claim-confirm-card {
  width: 100%;
  background: var(--electric-blue-ghost);
  border: 1px solid rgba(0, 169, 196,0.2);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--gap-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.confirm-row:last-child { border-bottom: none; }

.confirm-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.confirm-value {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}

.neon-text  { color: var(--neon) !important; }
.blue-text  { color: var(--electric-blue) !important; }

.claim-success-note {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

@media (max-width: 380px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .claim-title { font-size: 18px; letter-spacing: 3px; }
}

/* ====================================================
   SCREEN 00 — ACTIVATION GATE
   ==================================================== */
#screen-00 {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.activation-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.act-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: act-drift 8s ease-in-out infinite;
}

.act-particle.p1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--electric-blue), transparent);
  top: -60px; right: -60px;
  animation-delay: 0s;
}
.act-particle.p2 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, var(--neon), transparent);
  bottom: 100px; left: -40px;
  animation-delay: 3s;
}
.act-particle.p3 {
  width: 100px; height: 100px;
  background: radial-gradient(circle, var(--cyber-blue), transparent);
  bottom: -30px; right: 60px;
  animation-delay: 5s;
}

@keyframes act-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(10px, -15px) scale(1.05); }
}

.activation-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: var(--gap-xl) var(--gap-lg);
  gap: var(--gap-md);
  position: relative;
  z-index: 1;
  text-align: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.act-lock-icon {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Outer glow ring behind the icon */
.act-lock-icon::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(37, 230, 0, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(37, 230, 0, 0.15),
    inset 0 0 20px rgba(37, 230, 0, 0.05);
}

/* Inner subtle ring */
.act-lock-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(37, 230, 0, 0.08);
  border-radius: 50%;
}

.act-lock-img {
  width: 100px !important;
  height: 100px !important;
  filter:
    drop-shadow(0 0 8px rgba(37, 230, 0, 0.5))
    drop-shadow(0 0 25px rgba(37, 230, 0, 0.25))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.act-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--electric-blue), var(--cyber-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 5px;
  margin: 0;
}

.act-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  max-width: 260px;
}

.act-device-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  background: rgba(0, 169, 196,0.05);
  border: 1px solid rgba(0, 169, 196,0.15);
  padding: var(--gap-sm) var(--gap-md);
  text-align: left;
  width: 100%;
}

.act-hint-icon { font-size: 18px; flex-shrink: 0; }

.act-hint-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.act-form { width: 100%; }

.act-input-row { position: relative; }

.act-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 169, 196,0.06);
  border: 1px solid rgba(0, 169, 196,0.25);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.act-input:focus {
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 2px rgba(0, 169, 196,0.2);
}

.act-input::placeholder {
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
  font-weight: 400;
  font-size: 13px;
}

.act-error {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--danger);
  letter-spacing: 1px;
  text-align: center;
}

.act-legal {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
}

/* ====================================================
   SCAN COMPLETE OVERLAY (Screen 03)
   ==================================================== */
.scan-complete-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  /* Transparent — camera stays visible. Only subtle vignette for text legibility */
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.2) 100%);
  backdrop-filter: none;
  z-index: 10;
  animation: fadeInUp 0.4s ease;
}

.scan-ok-icon {
  width: 72px;
  height: 72px;
  border: 2.5px solid var(--neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--neon);
  font-weight: 900;
  background: rgba(0,0,0,0.5);      /* dark circle behind check for contrast */
  box-shadow: 0 0 0 8px rgba(37, 230, 0,0.08),
              0 0 24px rgba(37, 230, 0,0.5),
              0 0 50px rgba(37, 230, 0,0.2);
  animation: scan-ok-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes scan-ok-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.scan-ok-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(37, 230, 0,0.8),
               0 2px 4px rgba(0,0,0,0.9);  /* strong shadow for camera legibility */
}

.scan-done-actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  width: 100%;
}

/* ====================================================
   AI DIAGNOSIS CARD (Screen 04)
   ==================================================== */
.ai-diagnosis {
  margin-top: var(--gap-xs);
  border: 1px solid rgba(0, 169, 196,0.2);
  background: linear-gradient(135deg,
    rgba(0, 169, 196,0.04),
    rgba(0, 210, 160,0.03));
  padding: var(--gap-sm) var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.diagnosis-header {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.diagnosis-dot {
  width: 6px;
  height: 6px;
  background: var(--electric-blue);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--electric-blue);
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.diagnosis-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--electric-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Score chip and color variants */
.diagnosis-score-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 4px 10px;
  border: 1px solid rgba(0, 169, 196,0.3);
  background: rgba(0, 169, 196,0.08);
  align-self: flex-start;
}

.diagnosis-score-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

.diagnosis-score-value {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--electric-blue);
}

.diagnosis-score-chip.diag-excellent {
  border-color: rgba(37, 230, 0,0.3);
  background: rgba(37, 230, 0,0.06);
}
.diagnosis-score-chip.diag-excellent .diagnosis-score-value {
  color: var(--neon);
}

.diagnosis-score-chip.diag-good {
  border-color: rgba(0, 169, 196,0.35);
  background: rgba(0, 169, 196,0.08);
}
.diagnosis-score-chip.diag-good .diagnosis-score-value {
  color: var(--electric-blue);
}

.diagnosis-score-chip.diag-attention {
  border-color: rgba(255,184,0,0.35);
  background: rgba(255,184,0,0.06);
}
.diagnosis-score-chip.diag-attention .diagnosis-score-value {
  color: var(--warning);
}

/* Main diagnosis text */
.diagnosis-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  border-left: 2px solid rgba(0, 169, 196,0.3);
  padding-left: var(--gap-sm);
  margin: 0;
}

/* FingerRest CTA block */
.diagnosis-cta {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0, 169, 196,0.15);
  padding: var(--gap-sm) var(--gap-md);
}

.diagnosis-cta-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.diagnosis-cta-text {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  font-style: italic;
}

/* result-badge negative variant */
.result-badge.negative {
  background: rgba(255,59,59,0.08);
  border: 1px solid rgba(255,59,59,0.3);
  color: #FF6B6B;
}

/* ====================================================
   SCREEN 06 — PATHOLOGY RISK BLOCK
   ==================================================== */
.pathology-block {
  border: 1px solid rgba(255,59,59,0.2);
  background: linear-gradient(135deg,
    rgba(255,59,59,0.03),
    rgba(255,184,0,0.02));
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#screen-06 .section-title { margin-bottom: 2px; font-size: 16px; }
#screen-06 .section-subtitle { margin-bottom: 10px; }
#screen-06 .posture-visual { margin-bottom: 10px; }
#screen-06 .info-card.compact { margin-top: 8px; padding: 8px 12px; }
#screen-06 .info-card.compact .info-text { font-size: 10px; line-height: 1.4; }
#screen-06 .pathology-item { padding: 5px 0; }

.pathology-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.pathology-alert-icon { font-size: 14px; }

.pathology-title {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,100,100,0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pathology-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pathology-item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-sm);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pathology-item:last-child { border-bottom: none; }

/* Colored risk indicator dots */
.path-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.path-dot.red    { background: #FF3B3B; box-shadow: 0 0 6px rgba(255,59,59,0.5); }
.path-dot.orange { background: #FFB800; box-shadow: 0 0 6px rgba(255,184,0,0.4); }
.path-dot.yellow { background: rgba(255,235,150,0.7); }

.path-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.path-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.path-desc {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  line-height: 1.4;
}

/* Risk level badge */
.path-risk {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 6px;
  border: 1px solid;
  align-self: flex-start;
  white-space: nowrap;
  flex-shrink: 0;
}

.path-risk.risk-alto {
  color: #FF3B3B;
  border-color: rgba(255,59,59,0.4);
  background: rgba(255,59,59,0.08);
}

.path-risk.risk-medio {
  color: #FFB800;
  border-color: rgba(255,184,0,0.35);
  background: rgba(255,184,0,0.06);
}

.path-risk.risk-bajo {
  color: var(--neon);
  border-color: rgba(37, 230, 0,0.3);
  background: rgba(37, 230, 0,0.05);
}

/* ====================================================
   TRAINING SCREEN — INICIAR / COMPLETAR BUTTON STATES
   ==================================================== */
#btn-iniciar-ejercicio {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Disabled COMPLETAR state */
#btn-complete.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* ====================================================
   3D HOLOGRAPHIC ICONS — FINGER GYM™
   ==================================================== */
.icon-3d {
  display: inline-block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(37, 230, 0, 0.5));
  transition: filter 0.3s ease;
  vertical-align: middle;
}
.icon-3d:hover {
  filter: drop-shadow(0 0 12px rgba(37, 230, 0, 0.8)) brightness(1.15);
}
.btn-icon-img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 4px rgba(37, 230, 0, 0.6));
}
.tier-icon-img {
  width: 44px;
  height: 44px;
}
.act-hint-icon .icon-3d {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(0, 210, 160, 0.5));
}
.fallback-icon .icon-3d {
  width: 64px;
  height: 64px;
  opacity: 0.7;
  filter: drop-shadow(0 0 10px rgba(37, 230, 0, 0.3));
}
.diagnosis-cta-icon .icon-3d {
  width: 32px;
  height: 32px;
}
.pathology-alert-icon .icon-3d {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(255, 107, 0, 0.7));
}
.icon-svg-lock {
  filter: drop-shadow(0 0 6px rgba(255, 64, 64, 0.5));
  transition: filter 0.3s ease;
}
.icon-svg-crown {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
  transition: filter 0.3s ease;
}
.tier-card:hover .icon-3d,
.tier-card:hover .icon-svg-lock,
.tier-card:hover .icon-svg-crown {
  filter: drop-shadow(0 0 14px rgba(37, 230, 0, 0.7)) brightness(1.2);
  transition: all 0.3s ease;
}
.survey-option.selected .icon-3d {
  filter: drop-shadow(0 0 14px rgba(37, 230, 0, 0.9)) brightness(1.2);
}
.option-icon .icon-3d {
  width: 52px;
  height: 52px;
}

/* EXTENSION: PUSH STRATEGY & ESPECTACULAR SCMD */
.ring-fill {
  filter: drop-shadow(0 0 10px rgba(37, 230, 0, 0.6));
  stroke-width: 6;
}
.ring-bg {
  stroke-width: 6;
  opacity: 0.15;
}

.push-strategy {
  margin-top: 24px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--neon-ghost);
  padding: 20px;
}
.push-header {
  border-bottom: 1px solid var(--neon-dim);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.push-title-row {
  display: flex;
  align-items: center;
}
.push-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--neon);
  letter-spacing: 2px;
  display: inline-block;
  margin: 0;
  margin-left: 8px;
}
.push-icon {
  color: var(--neon);
}
.push-header p {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}
/* Alarm display in header */
.push-alarm-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(37, 230, 0, 0.06);
  border: 1px solid var(--neon-dim);
  border-radius: 4px;
  animation: alarmPulse 2s ease-in-out infinite;
}
.push-alarm-display.hidden {
  display: none;
}
.push-alarm-time {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 3px;
}
.push-alarm-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--electric-blue);
  letter-spacing: 2px;
  margin-left: auto;
}
@keyframes alarmPulse {
  0%, 100% { border-color: var(--neon-dim); box-shadow: none; }
  50% { border-color: var(--neon); box-shadow: 0 0 12px rgba(37, 230, 0, 0.2); }
}
.push-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.push-event {
  display: flex;
  background: #111;
  border-left: 2px solid rgba(37, 230, 0,0.3);
  padding: 12px;
  position: relative;
}
.push-event.pulse-event {
  border-left: 2px solid var(--neon);
  background: rgba(37, 230, 0,0.05);
  animation: bg-pulse-soft 2s infinite alternate;
}
@keyframes bg-pulse-soft {
  0% { background: rgba(37, 230, 0,0.02); }
  100% { background: rgba(37, 230, 0,0.08); }
}
.push-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  width: 55px;
  opacity: 0.8;
}
.push-detail {
  flex: 1;
}
.push-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  color: #fff;
  letter-spacing: 1px;
}
.push-tag.alert {
  background: var(--neon);
  color: #0A0A0F;
  font-weight: bold;
}
.push-detail p {
  font-family: var(--font-body);
  font-size: 12px;
  color: #ddd;
  margin-top: 6px;
}

/* ===== WELLNESS ALERT SYSTEM ===== */
.wellness-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: wellness-fade-in 0.4s ease;
}
.wellness-overlay.hidden {
  display: none;
}
@keyframes wellness-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.wellness-alert {
  background: linear-gradient(165deg, #0F1A12 0%, #0A0A0F 40%, #0A0F1A 100%);
  border: 1px solid var(--neon);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(37, 230, 0, 0.15),
    0 0 80px rgba(37, 230, 0, 0.05),
    inset 0 1px 0 rgba(37, 230, 0, 0.1);
  animation: wellness-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes wellness-slide-up {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wellness-pulse-ring {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 230, 0, 0.08) 0%, transparent 70%);
}
.wellness-icon {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.wellness-icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(37, 230, 0, 0.5));
}
@keyframes wellness-icon-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.wellness-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(37, 230, 0, 0.4);
}
.wellness-message {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  padding: 0 8px;
}
.wellness-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 59, 59, 0.08);
  border: 1px solid rgba(255, 59, 59, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.wellness-timer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}
.wellness-timer-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #FF3B3B;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}
.btn-wellness {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--neon);
  border-radius: 12px;
  background: rgba(37, 230, 0, 0.08);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-wellness:active {
  background: rgba(37, 230, 0, 0.2);
  box-shadow: 0 0 20px rgba(37, 230, 0, 0.3);
}
.wellness-footer-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--electric-blue);
  margin-top: 14px;
  opacity: 0.7;
}

/* ===== PROFILE SCREEN (01B) ===== */
#screen-01b .section-title { margin-bottom: 2px; font-size: 16px; }
#screen-01b .section-subtitle { margin-bottom: 8px; }
#screen-01b .info-card { margin-top: 8px; padding: 8px 10px; }
#screen-01b .info-header { margin-bottom: 6px; }
#screen-01b .profile-data-item { padding: 5px 8px; }
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px 10px;
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(37, 230, 0,0.04) 0%, rgba(0, 210, 160,0.02) 100%);
  border: var(--border);
  position: relative;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-top: 1px solid var(--neon);
  border-left: 1px solid var(--neon);
}
.profile-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  border-top: 1px solid var(--neon);
  border-right: 1px solid var(--neon);
}
.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}
.profile-avatar-ring {
  position: relative;
  width: 74px;
  height: 74px;
}
.profile-ring-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.profile-ring-fill {
  animation: profileRingSpin 8s linear infinite;
}
@keyframes profileRingSpin {
  to { transform: rotate(270 60 60); }
}
.profile-avatar-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(37, 230, 0, 0.06);
  border: 1px solid var(--neon-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar-initial {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--neon);
  letter-spacing: 2px;
}
.profile-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid var(--neon-dim);
  background: rgba(37, 230, 0, 0.04);
}
.profile-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: statusBlink 2s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.profile-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 3px;
  text-align: center;
  margin: 6px 0 2px 0;
}
.profile-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 4px 0;
}
.profile-data-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}
.profile-data-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(10,10,15,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}
.profile-data-icon {
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-data-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-data-label {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1.5px;
}
.profile-data-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 1px;
}
.profile-data-value.accent {
  color: var(--neon);
}
.profile-data-email {
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.profile-id-wrap {
  border-color: rgba(37, 230, 0,0.25) !important;
  background: linear-gradient(90deg, rgba(37, 230, 0,0.04), rgba(0, 210, 160,0.04)) !important;
}
.profile-id-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: rgba(10,10,15,0.5);
  border: 1px solid rgba(0, 210, 160,0.15);
}
.profile-id-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}
.profile-id-code {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--electric-blue);
  letter-spacing: 3px;
}

/* ===== Profile — Minimal ID bar ===== */
.profile-id-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(37, 230, 0,0.06), rgba(0, 210, 160,0.06));
  border: 1px solid rgba(37, 230, 0,0.25);
  border-left: 3px solid var(--neon);
}
.profile-id-minimal .profile-id-label { font-size: 8px; }
.profile-id-minimal .profile-id-code { font-size: 14px; letter-spacing: 2.5px; }

/* ===== Profile — IMPACTO ACUMULADO (Big Three) ===== */
.impact-card {
  border-color: rgba(37, 230, 0, 0.25) !important;
  background: linear-gradient(135deg, rgba(37, 230, 0,0.04), rgba(0, 210, 160,0.03)) !important;
  border-left: 2px solid var(--neon) !important;
  position: relative;
  overflow: hidden;
}
.impact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  animation: impactScan 3.5s linear infinite;
}
@keyframes impactScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.impact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--neon) !important;
}
.impact-icon {
  color: var(--neon) !important;
  border-color: var(--neon) !important;
}
.impact-period {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.impact-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 5px var(--neon);
  animation: liveDotPulse 1.5s ease-in-out infinite;
}
.impact-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 0 2px;
  border-bottom: 1px solid rgba(37, 230, 0,0.08);
  margin-bottom: 3px;
}
.impact-hero-label {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  margin-bottom: 1px;
}
.impact-hero-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
}
.impact-hero-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(37, 230, 0,0.5), 0 0 24px rgba(37, 230, 0,0.2);
  letter-spacing: 0.5px;
  animation: heroPulse 3s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(37, 230, 0,0.5), 0 0 24px rgba(37, 230, 0,0.2); }
  50% { text-shadow: 0 0 14px rgba(37, 230, 0,0.7), 0 0 32px rgba(37, 230, 0,0.3); }
}
.impact-hero-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--electric-blue);
  letter-spacing: 1px;
}
.impact-hero-sub {
  font-family: var(--font-mono);
  font-size: 6px;
  color: rgba(0, 210, 160, 0.55);
  letter-spacing: 1.5px;
  margin-top: 1px;
}
.impact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.impact-mini {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 3px 6px 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 2px solid var(--electric-blue);
}
.impact-mini-label {
  font-family: var(--font-mono);
  font-size: 6px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1.2px;
}
.impact-mini-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.impact-mini-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 6px rgba(37, 230, 0,0.35);
}
.impact-mini-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--electric-blue);
  letter-spacing: 0.5px;
}
.impact-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.impact-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon));
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(37, 230, 0,0.5);
  transition: width 0.6s ease;
}

/* ===== Initializing state (usuario nuevo sin datos aún) ===== */
.impact-card.initializing {
  border-color: rgba(0, 210, 160, 0.25) !important;
  border-left-color: var(--electric-blue) !important;
  background: linear-gradient(135deg, rgba(0, 210, 160,0.04), rgba(0, 169, 196,0.02)) !important;
}
.impact-card.initializing .impact-header { color: var(--electric-blue) !important; }
.impact-card.initializing .impact-icon { color: var(--electric-blue) !important; border-color: var(--electric-blue) !important; }
.impact-card.initializing .impact-live-dot {
  background: var(--electric-blue);
  box-shadow: 0 0 5px var(--electric-blue);
  animation: initDotPulse 1.6s ease-in-out infinite;
}
@keyframes initDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.impact-card.initializing .impact-hero-num,
.impact-card.initializing .impact-mini-num {
  color: rgba(0, 210, 160, 0.45) !important;
  text-shadow: 0 0 6px rgba(0, 210, 160, 0.2) !important;
  animation: none !important;
}
.impact-card.initializing .impact-hero-unit,
.impact-card.initializing .impact-mini-unit { color: rgba(0, 210, 160, 0.35) !important; }
.impact-card.initializing .impact-hero-sub { color: rgba(0, 210, 160, 0.55) !important; }
.impact-card.initializing::before {
  background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
}

/* ===== Disconnected state ===== */
.impact-card.disconnected {
  border-color: rgba(255,184,0,0.3) !important;
  border-left-color: #FFB800 !important;
  background: linear-gradient(135deg, rgba(255,184,0,0.04), rgba(255,100,100,0.02)) !important;
}
.impact-card.disconnected .impact-header { color: #FFB800 !important; }
.impact-card.disconnected .impact-icon { color: #FFB800 !important; border-color: #FFB800 !important; }
.impact-card.disconnected .impact-live-dot {
  background: #FFB800;
  box-shadow: 0 0 5px #FFB800;
  animation: disconnectedPulse 1s ease-in-out infinite;
}
@keyframes disconnectedPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.impact-card.disconnected .impact-hero-num,
.impact-card.disconnected .impact-mini-num {
  color: rgba(255,255,255,0.2) !important;
  text-shadow: none !important;
  animation: none !important;
  filter: blur(0.5px);
}
.impact-card.disconnected .impact-hero-unit,
.impact-card.disconnected .impact-mini-unit { color: rgba(255,255,255,0.18) !important; }
.impact-card.disconnected .impact-progress-fill {
  background: rgba(255,255,255,0.15);
  box-shadow: none;
}
.impact-card.disconnected::before {
  background: linear-gradient(90deg, transparent, #FFB800, transparent);
}
.impact-card.disconnected .impact-hero { position: relative; }
.impact-lock-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 32px 8px 8px;
  background: rgba(10,10,15,0.82);
  backdrop-filter: blur(2px);
  border: 1px dashed rgba(255,184,0,0.5);
  text-align: center;
  padding: 6px 10px;
  z-index: 2;
}
.impact-lock-overlay.hidden { display: none; }
.impact-lock-icon {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #FFB800;
  text-shadow: 0 0 8px rgba(255,184,0,0.4);
  line-height: 1;
  margin-bottom: 2px;
}
.impact-lock-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #FFB800;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.impact-lock-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.8px;
  line-height: 1.3;
}

/* ===== ROUTINE PREVIEW (screen-07) ===== */
.routine-preview {
  width: 100%;
  margin-top: 10px;
  padding: 6px 10px 7px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(37, 230, 0,0.18);
  border-left: 2px solid var(--neon);
}
.routine-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.2px;
}
.routine-label { color: var(--neon); }
.routine-lib { color: rgba(0, 210, 160, 0.55); font-size: 7px; }
.routine-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
}
.routine-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 5px 5px;
  background: rgba(37, 230, 0,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  border-top: 2px solid var(--neon);
}
.routine-min {
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  color: var(--electric-blue);
  letter-spacing: 1.2px;
  text-shadow: 0 0 3px rgba(0, 210, 160,0.4);
}
.routine-block-name {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.3px;
  line-height: 1.1;
  margin-top: 1px;
}
.routine-block-target {
  font-family: var(--font-mono);
  font-size: 5.5px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-top: 1px;
}

/* ===== RECOVERY PROTOCOL (Streak Freeze — screen-10) ===== */
.recovery-protocol {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 4px 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,100,0,0.03));
  border: 1px solid rgba(255,184,0,0.35);
  border-left: 3px solid #FFB800;
  position: relative;
  overflow: hidden;
}
.recovery-protocol::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FFB800, transparent);
  animation: recoveryScan 2.5s linear infinite;
}
@keyframes recoveryScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.recovery-icon {
  font-size: 16px;
  color: #FFB800;
  text-shadow: 0 0 8px rgba(255,184,0,0.6);
  animation: recoveryPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes recoveryPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.recovery-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.recovery-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #FFB800;
  letter-spacing: 1.5px;
}
.recovery-desc {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}
.recovery-desc b {
  color: #FFB800;
  font-weight: 700;
}
.recovery-btn {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 5px 10px;
  background: rgba(255,184,0,0.15);
  border: 1px solid #FFB800;
  color: #FFB800;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.recovery-btn:hover, .recovery-btn:active {
  background: #FFB800;
  color: #0A0A0F;
  box-shadow: 0 0 8px rgba(255,184,0,0.5);
}
.recovery-protocol.activated {
  border-color: var(--neon);
  border-left-color: var(--neon);
  background: linear-gradient(135deg, rgba(37, 230, 0,0.08), rgba(0, 210, 160,0.03));
}
.recovery-protocol.activated .recovery-icon,
.recovery-protocol.activated .recovery-title,
.recovery-protocol.activated .recovery-desc b { color: var(--neon); }
.recovery-protocol.activated::before { background: linear-gradient(90deg, transparent, var(--neon), transparent); }

/* ===== BIO ANALYSIS CARD (screen-10) ===== */
.bio-analysis-card {
  margin-top: 8px;
  padding: 6px 10px 7px;
  background: linear-gradient(135deg, rgba(0, 210, 160,0.03), rgba(37, 230, 0,0.02));
  border: 1px solid rgba(0, 210, 160,0.18);
  border-left: 2px solid var(--electric-blue);
  position: relative;
}
.bio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.bio-title {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--electric-blue);
}
.bio-ai-badge {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  color: var(--neon);
  background: rgba(37, 230, 0,0.15);
  border: 1px solid rgba(37, 230, 0,0.4);
  padding: 1px 5px;
  letter-spacing: 1.5px;
  animation: aiBadgePulse 2s ease-in-out infinite;
}
@keyframes aiBadgePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(37, 230, 0,0); }
  50% { box-shadow: 0 0 6px rgba(37, 230, 0,0.5); }
}
.bio-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.bio-select {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--neon);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(37, 230, 0,0.25);
  padding: 3px 5px;
  letter-spacing: 1px;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
}
.bio-select:focus { border-color: var(--neon); }
.bio-vs {
  font-family: var(--font-mono);
  font-size: 7px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 1px;
  flex-shrink: 0;
}
.bio-chart-wrap {
  width: 100%;
  height: 60px;
  margin-bottom: 4px;
}
.bio-chart {
  width: 100%;
  height: 100%;
  display: block;
}
.bio-insight {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  padding-top: 3px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.bio-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.bio-dot.green { background: var(--neon); box-shadow: 0 0 4px rgba(37, 230, 0,0.6); }
.bio-dot.cyan { background: var(--electric-blue); box-shadow: 0 0 4px rgba(0, 210, 160,0.6); }
.trend-up { color: var(--neon); font-weight: 700; font-size: 9px; }
.trend-down { color: var(--electric-blue); font-weight: 700; font-size: 9px; }
.bio-verdict {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(37, 230, 0,0.7);
  letter-spacing: 0.3px;
  padding: 3px 0 0;
  font-style: italic;
}

/* ===== Memory hint (autorrelleno screen-01) ===== */
.memory-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  margin: 0 0 4px;
  background: linear-gradient(135deg, rgba(0, 210, 160,0.06), rgba(37, 230, 0,0.03));
  border: 1px solid rgba(0, 210, 160,0.25);
  border-left: 2px solid var(--electric-blue);
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(0, 210, 160,0.85);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.memory-hint:hover { opacity: 0.7; }
.memory-hint::after {
  content: '✕';
  margin-left: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
}
.memory-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric-blue);
  box-shadow: 0 0 5px var(--electric-blue);
  animation: liveDotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ===== HUD FLOATING PANELS · IA Hologram (screen-07 / 07e) ===== */
.ai-hologram-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  margin: 4px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ai-face-img {
  width: 200px;
  height: auto;
  z-index: 5;
  position: relative;
  animation: aiFaceFloat 6s ease-in-out infinite;
}
@keyframes aiFaceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== HUD CARDS · Cinematic floating panels (estilo Iron Man / Mass Effect) ===== */
.hud-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(10,15,12,0.88), rgba(8,18,12,0.6));
  border: 1px solid rgba(37, 230, 0, 0.55);
  padding: 4px 7px 5px;
  font-family: var(--font-mono);
  letter-spacing: 0.8px;
  z-index: 8;
  box-shadow:
    0 0 14px rgba(37, 230, 0, 0.25),
    inset 0 0 10px rgba(37, 230, 0, 0.08);
  backdrop-filter: blur(2px);
  animation: hudFloat 5s ease-in-out infinite;
}
/* Esquinas decorativas tipo HUD */
.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid var(--neon);
  pointer-events: none;
}
.hud-card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-card::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hud-card-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 6.5px;
  color: var(--neon);
  letter-spacing: 1.2px;
  margin-bottom: 3px;
  text-shadow: 0 0 4px rgba(37, 230, 0,0.5);
}
.hud-card-head.right {
  justify-content: flex-end;
  margin-top: 2px;
  margin-bottom: 0;
}
.hud-card-val {
  font-size: 9px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 5px rgba(37, 230, 0, 0.5);
  line-height: 1.1;
  letter-spacing: 1.5px;
}
.hud-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 4px var(--neon);
  animation: hudDot 1.4s ease-in-out infinite;
}
.hud-dot.cyan {
  background: var(--electric-blue);
  box-shadow: 0 0 4px var(--electric-blue);
}
@keyframes hudDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Gráficas internas */
.hud-card-graph {
  width: 80px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 2px rgba(37, 230, 0,0.4));
}
.hud-network {
  width: 76px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 2px rgba(37, 230, 0,0.4));
}
.hud-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 2px;
}
.hud-vbar {
  width: 4px;
  background: rgba(37, 230, 0,0.4);
  border-radius: 1px;
}
.hud-vbar.h45 { height: 45%; }
.hud-vbar.h60 { height: 60%; }
.hud-vbar.h70 { height: 70%; }
.hud-vbar.h80 { height: 80%; }
.hud-vbar.h90 { height: 90%; }
.hud-vbar.active {
  background: var(--neon);
  box-shadow: 0 0 4px var(--neon);
  animation: hudDot 1.2s ease-in-out infinite;
}

/* HELLO panel (saludo destacado) */
.hud-hello {
  background: linear-gradient(135deg, rgba(37, 230, 0,0.10), rgba(0, 210, 160,0.04));
  border-color: var(--neon);
  padding: 5px 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.hud-hello-tag {
  font-size: 7px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.hud-hello-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 8px rgba(37, 230, 0,0.65);
  letter-spacing: 2px;
}

/* Mini key-value rows (CPU / RENDER / SECTOR) */
.hud-card-mini {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 6.5px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  padding: 1px 0;
}
.hud-mini-key { color: rgba(0, 210, 160,0.7); }
.hud-mini-val { color: var(--neon); font-weight: 700; }

/* Posicionamiento de cada panel */
.hud-left-1  { top: 6px;   left: 0;   width: 92px;  animation-delay: 0s;   }
.hud-left-2  { top: 80px;  left: 0;   width: 92px;  animation-delay: 0.6s; }
.hud-left-3  { bottom: 12px; left: 0; width: 92px;  animation-delay: 1.2s; }
.hud-right-1 { top: 6px;   right: 0;  width: 92px;  animation-delay: 0.3s; border-color: rgba(0, 210, 160,0.55); box-shadow: 0 0 14px rgba(0, 210, 160,0.22), inset 0 0 10px rgba(0, 210, 160,0.08); }
.hud-right-1::before, .hud-right-1::after { border-color: var(--electric-blue); }
.hud-right-2 { top: 75px;  right: 0;  width: 92px;  animation-delay: 0.9s; }
.hud-right-3 { bottom: 12px; right: 0; width: 92px; animation-delay: 1.5s; border-color: rgba(0, 210, 160,0.55); box-shadow: 0 0 14px rgba(0, 210, 160,0.22), inset 0 0 10px rgba(0, 210, 160,0.08); }
.hud-right-3::before, .hud-right-3::after { border-color: var(--electric-blue); }

/* Iconos inferiores */
.hud-icons-row {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 9;
  padding: 4px 12px;
  background: rgba(10,10,15,0.6);
  border: 1px solid rgba(37, 230, 0,0.3);
  backdrop-filter: blur(2px);
}
.hud-icon {
  font-size: 11px;
  color: rgba(37, 230, 0,0.7);
  text-shadow: 0 0 4px rgba(37, 230, 0,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hud-icon:hover { color: var(--neon); transform: scale(1.2); }

@keyframes hudFloat {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-3px); opacity: 1; }
}

/* Anillos orbitales decorativos */
.hud-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed rgba(37, 230, 0, 0.18);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hud-ring.r1 {
  width: 220px; height: 220px;
  margin-left: -110px; margin-top: -110px;
  animation: hudRingSpin 22s linear infinite;
  border-color: rgba(37, 230, 0, 0.22);
}
.hud-ring.r2 {
  width: 270px; height: 270px;
  margin-left: -135px; margin-top: -135px;
  animation: hudRingSpin 32s linear infinite reverse;
  border-color: rgba(0, 210, 160, 0.15);
  border-style: dotted;
}
@keyframes hudRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ====================================================
   AI FLOATING ELEMENTS
   ==================================================== */
.ai-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.floating-elements-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border: 1px solid var(--neon-dim);
  background: rgba(37, 230, 0, 0.03);
  backdrop-filter: blur(2px);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--neon);
  white-space: nowrap;
  animation: float-around var(--duration, 6s) ease-in-out infinite alternate;
  box-shadow: 0 0 10px rgba(37, 230, 0, 0.2);
}

.floating-element::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1px solid rgba(37, 230, 0, 0.1);
  border-radius: 5px;
}

.fe-1 { top: 10%; left: 0%; --duration: 5s; }
.fe-2 { top: 20%; right: -10%; --duration: 7s; }
.fe-3 { bottom: 15%; left: -5%; --duration: 4s; }
.fe-4 { bottom: 25%; right: 5%; --duration: 8s; }
.fe-scanner {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  top: 50%;
  left: 0;
  animation: scan-vertical 4s linear infinite;
  opacity: 0.3;
}

@keyframes float-around {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
  100% { transform: translate(10px, -15px) rotate(2deg); opacity: 1; }
}

@keyframes scan-vertical {
  0% { top: 0%; }
  100% { top: 100%; }
}

.ai-data-panel {
  position: absolute;
  border: 1px solid var(--electric-dim);
  background: rgba(0, 210, 160, 0.05);
  width: 40px;
  height: 20px;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--electric-dim); }
  50% { border-color: var(--electric-blue); }
}

/* ===== Incompat banner (screen-06 · iPhone <15 sin FingerRest) ===== */
.incompat-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 0 10px;
  background: linear-gradient(135deg, rgba(255,59,59,0.10), rgba(255,184,0,0.05));
  border: 1px solid rgba(255,59,59,0.5);
  border-left: 3px solid #FF3B3B;
  position: relative;
  overflow: hidden;
}
.incompat-banner.hidden { display: none; }
.incompat-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF3B3B, transparent);
  animation: incompatScan 2.4s linear infinite;
}
@keyframes incompatScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.incompat-icon {
  font-size: 20px;
  color: #FF3B3B;
  text-shadow: 0 0 8px rgba(255,59,59,0.6);
  flex-shrink: 0;
  animation: incompatPulse 1.5s ease-in-out infinite;
}
@keyframes incompatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
.incompat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.incompat-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #FF3B3B;
  letter-spacing: 1.3px;
}
.incompat-desc {
  font-family: var(--font-mono);
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  line-height: 1.35;
  letter-spacing: 0.2px;
}
.incompat-desc b { color: #FFB800; font-weight: 700; }

/* Card derecha cuando es INCOMPATIBLE: se vuelve roja en lugar de verde */
.posture-card.good.incompat {
  border-color: #FF3B3B !important;
  background: rgba(255,59,59,0.06) !important;
}
.posture-card.good.incompat .posture-label {
  color: #FF3B3B !important;
  font-size: 9px !important;
  letter-spacing: 1px;
}
.posture-card.good.incompat .pressure-fill {
  background: linear-gradient(90deg, #FFB800, #FF3B3B) !important;
}
.posture-card.good.incompat .pressure-value {
  color: #FF3B3B !important;
}
.posture-card.good.incompat .reduction-badge {
  background: rgba(255,59,59,0.12) !important;
  border-color: #FF3B3B !important;
}
.posture-card.good.incompat .reduction-value,
.posture-card.good.incompat .reduction-label {
  color: #FF3B3B !important;
}

/* ===== WELLNESS ALERT STYLES ===== */
.wellness-overlay {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background-color: rgba(5, 5, 8, 0.92);
  transition: opacity 0.4s ease;
  text-align: center;
}

.wellness-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.wellness-card {
  width: 100%;
  max-width: 320px;
  background: var(--obsidian-surface);
  border: 1px solid var(--obsidian-border);
  border-top: 3px solid var(--neon);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(37, 230, 0,0.1);
}

.wellness-icon-img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 15px var(--neon-glow));
  margin-bottom: 20px;
  animation: float-3d 3s ease-in-out infinite;
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.wellness-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.wellness-message {
  font-size: 13px;
  color: #CCCCCC;
  line-height: 1.6;
  margin-bottom: 20px;
}

.wellness-timer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--electric-blue);
  background: var(--electric-blue-ghost);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--electric-blue-dim);
  margin-bottom: 24px;
}

.wellness-footer {
  width: 100%;
}

/* ============================================
   SCREEN-10 · PANEL DE EVOLUCIÓN ENRIQUECIDO
   Hero records · Heatmap 30D · Curva SCMD · Logro
   ============================================ */

/* HERO RECORDS */
.evo-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0;
}
.evo-hero {
  position: relative;
  padding: 10px 10px 8px;
  background: linear-gradient(160deg, rgba(37, 230, 0,0.08), rgba(0,0,0,0.5));
  border: 1px solid rgba(37, 230, 0,0.18);
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.evo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 230, 0,0.18), transparent 60%);
  pointer-events: none;
}
.evo-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.7;
}
.evo-hero-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
  color: rgba(37, 230, 0,0.4);
  font-family: var(--font-mono);
}
.evo-hero-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(37, 230, 0,0.5);
  line-height: 1;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.evo-hero-unit {
  font-size: 12px;
  font-weight: 600;
  color: rgba(37, 230, 0,0.7);
  margin-left: 1px;
}
.evo-hero-pct {
  font-family: var(--font-display);
  font-weight: 800;
}
.evo-hero-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.evo-hero-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  margin-top: 1px;
}
.evo-hero-sub.up { color: var(--neon); }
.evo-hero-sub.down { color: var(--danger); }

/* HEATMAP 30D */
.evo-heatmap-wrap {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 8px;
  margin-bottom: 12px;
}
.evo-heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.evo-heatmap-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.6);
}
.evo-heatmap-stat { color: rgba(255,255,255,0.5); }
.evo-heatmap-stat b {
  color: var(--neon);
  font-weight: 700;
}
.evo-heatmap-stat .up { color: var(--neon); font-weight: 700; }
.evo-heatmap {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.heatmap-cell {
  aspect-ratio: 1;
  background: rgba(37, 230, 0,0.05);
  border: 1px solid rgba(37, 230, 0,0.08);
  position: relative;
  transition: transform 0.15s ease;
}
.heatmap-cell.l1 { background: rgba(37, 230, 0,0.18); border-color: rgba(37, 230, 0,0.25); }
.heatmap-cell.l2 { background: rgba(37, 230, 0,0.35); border-color: rgba(37, 230, 0,0.45); }
.heatmap-cell.l3 { background: rgba(37, 230, 0,0.6);  border-color: rgba(37, 230, 0,0.7);  }
.heatmap-cell.l4 {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 6px rgba(37, 230, 0,0.7);
}
.heatmap-cell.today {
  outline: 1px solid #fff;
  outline-offset: 1px;
  animation: heatmapTodayPulse 1.4s ease-in-out infinite;
}
@keyframes heatmapTodayPulse {
  0%, 100% { outline-color: #fff; }
  50% { outline-color: var(--neon); }
}
.evo-heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
}
.legend-cell {
  width: 9px;
  height: 9px;
  display: inline-block;
}
.legend-cell.l0 { background: rgba(37, 230, 0,0.05); border: 1px solid rgba(37, 230, 0,0.08); }
.legend-cell.l1 { background: rgba(37, 230, 0,0.18); }
.legend-cell.l2 { background: rgba(37, 230, 0,0.35); }
.legend-cell.l3 { background: rgba(37, 230, 0,0.6); }
.legend-cell.l4 { background: var(--neon); box-shadow: 0 0 4px rgba(37, 230, 0,0.7); }

/* CURVA SCMD 30D */
.evo-trend-wrap {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 6px;
  margin-bottom: 12px;
}
.evo-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.evo-trend-header > span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.evo-trend-chart {
  width: 100%;
  height: 70px;
  display: block;
}
.evo-trend-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 0 2px;
  margin-top: 2px;
}
.evo-trend-axis .today {
  color: var(--neon);
  font-weight: 700;
  text-shadow: 0 0 4px rgba(37, 230, 0,0.5);
}

/* PRÓXIMO LOGRO */
.evo-achievement {
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 10px 12px;
  min-height: 68px;
  background: linear-gradient(110deg, rgba(37, 230, 0,0.1), rgba(0, 169, 196,0.05));
  border: 1px solid rgba(37, 230, 0,0.3);
  border-left: 3px solid var(--neon);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.evo-achievement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(37, 230, 0,0.05) 50%, transparent 70%);
  animation: achShimmer 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes achShimmer {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
.ach-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.ach-icon {
  position: relative;
  z-index: 2;
  font-size: 22px;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(37, 230, 0,0.8);
}
.ach-icon-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(37, 230, 0,0.5), transparent 70%);
  animation: achGlow 1.6s ease-in-out infinite;
  z-index: 1;
}
@keyframes achGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
.ach-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}
.ach-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ach-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(37, 230, 0,0.4);
}
.ach-pct {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
}
.ach-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.ach-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon));
  box-shadow: 0 0 8px rgba(37, 230, 0,0.5);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.ach-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: achBarShine 2s ease-in-out infinite;
}
@keyframes achBarShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.ach-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
}
.ach-sub b {
  color: var(--neon);
  font-weight: 700;
}

/* ============================================
   SCREEN-12 · ARSENAL DE RECOMPENSAS — PREMIUM
   Sin scroll · layout flex que rellena el viewport
   ============================================ */

#screen-12 .screen-body.arsenal-body {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 14px 16px 12px !important;
  gap: 12px;
}

/* HERO compacto */
.arsenal-hero {
  text-align: center;
  flex-shrink: 0;
}
.arsenal-title {
  margin: 0 0 4px !important;
  font-size: 20px !important;
  letter-spacing: 3px;
}
.arsenal-subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 8px;
}
.arsenal-rule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px dashed rgba(37, 230, 0,0.45);
  background: rgba(37, 230, 0,0.05);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--neon);
  text-shadow: 0 0 4px rgba(37, 230, 0,0.4);
}
.arsenal-rule-icon {
  width: 14px !important;
  height: 14px !important;
}

/* Tiers container ocupa el espacio restante */
.arsenal-tiers {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-height: 0;
}

/* Tier-cards rediseñadas — premium */
.arsenal-tiers .tier-card {
  flex: 1 1 0 !important;
  min-height: 0;
  padding: 12px 14px !important;
  align-items: center !important;
  gap: 14px !important;
  position: relative;
  overflow: hidden;
  border-width: 1px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* DESBLOQUEADA · neon glow + spotlight + shine */
.arsenal-tiers .tier-card.unlocked {
  border: 1px solid var(--neon) !important;
  background:
    radial-gradient(ellipse at top left, rgba(37, 230, 0,0.18), transparent 60%),
    linear-gradient(135deg, rgba(37, 230, 0,0.08), rgba(10,10,15,0.85)) !important;
  box-shadow: 0 0 24px rgba(37, 230, 0,0.25), inset 0 0 24px rgba(37, 230, 0,0.05);
  animation: tierPulseUnlocked 2.4s ease-in-out infinite;
}
@keyframes tierPulseUnlocked {
  0%, 100% { box-shadow: 0 0 18px rgba(37, 230, 0,0.22), inset 0 0 20px rgba(37, 230, 0,0.04); }
  50% { box-shadow: 0 0 36px rgba(37, 230, 0,0.45), inset 0 0 28px rgba(37, 230, 0,0.1); }
}
.arsenal-tiers .tier-card.unlocked::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 230, 0,0.18), transparent);
  transform: skewX(-25deg);
  animation: tierShine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tierShine {
  0%, 100% { left: -60%; }
  50% { left: 110%; }
}

/* BLOQUEADA · stripes diagonales rojas y candado */
.arsenal-tiers .tier-card.locked {
  border: 1px solid rgba(255, 64, 64, 0.4) !important;
  background:
    repeating-linear-gradient(135deg, rgba(255,64,64,0.04) 0 6px, transparent 6px 14px),
    linear-gradient(135deg, rgba(255,64,64,0.04), rgba(10,10,15,0.9)) !important;
}
.arsenal-tiers .tier-card.locked .tier-percent { color: rgba(255,255,255,0.5) !important; }
.arsenal-tiers .tier-card.locked .tier-reward { color: rgba(255,255,255,0.6) !important; }

/* ÉLITE · dorada con shimmer */
.arsenal-tiers .tier-card.elite {
  border: 1px solid var(--warning) !important;
  background:
    radial-gradient(ellipse at top right, rgba(255,184,0,0.18), transparent 60%),
    linear-gradient(135deg, rgba(255,184,0,0.06), rgba(10,10,15,0.85)) !important;
  box-shadow: 0 0 18px rgba(255,184,0,0.18);
}
.arsenal-tiers .tier-card.elite::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.22), transparent);
  transform: skewX(-25deg);
  animation: tierShine 4s ease-in-out infinite 1s;
  pointer-events: none;
}

.arsenal-tiers .tier-card:hover {
  transform: translateY(-2px);
}
.arsenal-tiers .tier-card.unlocked:hover {
  box-shadow: 0 4px 32px rgba(37, 230, 0,0.5), inset 0 0 30px rgba(37, 230, 0,0.1);
}

/* Icono y contenido del tier */
.arsenal-tiers .tier-icon {
  flex-shrink: 0;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}
.arsenal-tiers .tier-icon-img,
.arsenal-tiers .icon-svg-lock,
.arsenal-tiers .icon-svg-crown {
  width: 52px !important;
  height: 52px !important;
}
.arsenal-tiers .tier-card.unlocked .tier-icon {
  filter: drop-shadow(0 0 8px rgba(37, 230, 0,0.7));
  animation: tierIconBob 2.2s ease-in-out infinite;
}
.arsenal-tiers .tier-card.elite .tier-icon {
  filter: drop-shadow(0 0 8px rgba(255,184,0,0.7));
  animation: tierIconBob 2.6s ease-in-out infinite 0.3s;
}
@keyframes tierIconBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

.arsenal-tiers .tier-content {
  flex: 1;
  min-width: 0;
  gap: 4px !important;
  position: relative;
  z-index: 1;
}
.arsenal-tiers .tier-header {
  margin-bottom: 0 !important;
  gap: 6px;
}
.arsenal-tiers .tier-percent {
  font-size: 22px !important;
  text-shadow: 0 0 8px currentColor;
}
.arsenal-tiers .tier-card.unlocked .tier-percent {
  color: var(--neon) !important;
}
.arsenal-tiers .tier-badge {
  font-size: 9px !important;
  padding: 3px 7px !important;
  font-weight: 700;
}
.arsenal-tiers .unlocked-badge {
  animation: badgeBlink 1.6s ease-in-out infinite;
}
@keyframes badgeBlink {
  0%, 100% {
    background: rgba(37, 230, 0,0.18);
    box-shadow: 0 0 6px rgba(37, 230, 0,0.4);
  }
  50% {
    background: rgba(37, 230, 0,0.35);
    box-shadow: 0 0 14px rgba(37, 230, 0,0.7);
  }
}
.arsenal-tiers .tier-reward {
  font-size: 14px !important;
  letter-spacing: 1.5px !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.arsenal-tiers .tier-card.unlocked .tier-reward {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(37, 230, 0,0.5);
}
.arsenal-tiers .tier-card.elite .tier-reward {
  color: var(--warning) !important;
  text-shadow: 0 0 10px rgba(255,184,0,0.6);
}
.arsenal-tiers .tier-desc {
  font-size: 10px !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.3 !important;
}
.arsenal-tiers .tier-progress-mini {
  height: 4px !important;
  background: rgba(255,255,255,0.08) !important;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px !important;
  position: relative;
}
.arsenal-tiers .tier-progress-fill {
  background: linear-gradient(90deg, var(--warning), var(--neon)) !important;
  box-shadow: 0 0 8px rgba(37, 230, 0,0.6);
  border-radius: 2px;
  position: relative;
}
.arsenal-tiers .tier-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: tierProgressShine 1.8s ease-in-out infinite;
}
@keyframes tierProgressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.arsenal-tiers .tier-progress-label {
  font-size: 9px !important;
  color: var(--neon) !important;
  font-weight: 700;
  margin-top: 2px;
}

/* ===== Aviso de cámara no disponible (screen-03) =====
   Antes solo había un "CÁMARA NO DISPONIBLE" sin explicación ni salida:
   si el permiso se denegaba, no había forma de volver a pedirlo. */
.fallback-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  color: rgba(255,255,255,0.45);
  text-align: center;
  max-width: 82%;
  letter-spacing: 0.3px;
}
.btn-fallback-retry {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--electric-blue);
  background: rgba(0, 210, 160,0.10);
  border: 1px solid rgba(0, 210, 160,0.55);
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-fallback-retry:hover,
.btn-fallback-retry:active {
  background: rgba(0, 210, 160,0.22);
  box-shadow: 0 0 10px rgba(0, 210, 160,0.35);
}
.btn-fallback-retry:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

/* ===== Llamada a calibrar en la tarjeta IMPACTO (screen-01b) =====
   Se muestra solo en estado INICIALIZANDO, para que un perfil recién creado
   no sea una pared de ceros sin salida. */
.impact-cta {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 8px;
  background: rgba(0, 210, 160, 0.05);
  border: 1px dashed rgba(0, 210, 160, 0.35);
}
.impact-cta.hidden { display: none; }
.impact-cta-icon {
  font-size: 12px;
  line-height: 1.2;
  color: var(--electric-blue);
  flex-shrink: 0;
}
.impact-cta-text {
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
}
.impact-cta-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--electric-blue);
  background: rgba(0, 210, 160, 0.12);
  border: 1px solid rgba(0, 210, 160, 0.55);
  padding: 5px 8px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.impact-cta-btn:hover, .impact-cta-btn:active {
  background: rgba(0, 210, 160, 0.25);
  box-shadow: 0 0 8px rgba(0, 210, 160, 0.35);
}

/* Etiqueta "proyección" para los bloques de screen-10 que aún no tienen histórico real */
.evo-proj-tag {
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 184, 0, 0.9);
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.35);
  padding: 1px 4px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ===== HOLOGRAMA FingerGene™ IA (screen-07 y screen-07e) =====
   La máscara ya no es una imagen pegada dentro de un recuadro: se compone con
   mix-blend-mode: screen —la misma técnica que los iconos 3D—, de modo que todo
   lo oscuro del PNG desaparece y solo quedan el metal y las líneas de neón
   fundidos con el fondo de la ventana. El halo y el degradado inferior rematan
   la integración; el tamaño va en vh para no forzar scroll en pantallas bajas. */
.ai-hologram {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* De borde a borde: rompe el padding lateral del screen-body (16px por lado)
     para que la imagen llegue a los extremos de la pantalla. */
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-right: -16px;
  flex-shrink: 1;
  min-height: 0;
  overflow: hidden;
}

.ai-hologram-img {
  display: block;
  width: 100%;
  height: auto;
  /* Sin animación: imagen totalmente estática. El borde del PNG ya está
     difuminado, así que a ancho completo se funde con el fondo sin canto. */
  object-fit: contain;
}

/* ===== PANTALLA DE EJERCICIO SIN SCROLL =====
   Todo el contenido de screen-08 tiene que caber en la ventana, en cualquier
   móvil. Las piezas grandes (aro del cronómetro, guía y panel de comunidad) se
   dimensionan con vh y se dejan encoger, en vez de empujar hacia abajo. */
#screen-08 .screen-body { gap: 2px; }

#screen-08 .training-header { margin-bottom: 2px !important; flex-shrink: 0; }
#screen-08 .mission-title {
  font-size: clamp(15px, 4.4vh, 22px);
  line-height: 1.15;
  margin-bottom: 2px;
}
#screen-08 .mission-subtitle { font-size: clamp(9px, 1.7vh, 11px); line-height: 1.25; }

/* Aro del cronómetro: proporcional a la altura disponible */
#screen-08 .training-visual { flex-shrink: 0; }
#screen-08 .exercise-ring {
  width: clamp(104px, 19vh, 160px);
  height: clamp(104px, 19vh, 160px);
}
#screen-08 .timer-value { font-size: clamp(28px, 6.4vh, 44px); line-height: 1; }
#screen-08 .timer-unit  { font-size: clamp(8px, 1.4vh, 10px); }

/* Guía de pasos compacta */
#screen-08 .training-guide { margin-bottom: 2px !important; flex-shrink: 0; }
#screen-08 .guide-blueprint { gap: 4px; }
#screen-08 .guide-step { padding: clamp(4px, 0.9vh, 8px) 10px; gap: 8px; }
#screen-08 .guide-text { font-size: clamp(11px, 1.9vh, 13px); line-height: 1.25; }
#screen-08 .guide-num  { font-size: clamp(10px, 1.6vh, 12px); }

/* Panel de comunidad: ocupa el hueco que quede, sin desbordar */
#screen-08 .live-rank-panel { min-height: 0; overflow: hidden; }
#screen-08 .evo-kpi-value { font-size: clamp(12px, 2.2vh, 16px); }
#screen-08 .evo-chart { min-height: 26px; }

/* Pantallas bajas: se retira lo accesorio antes que romper el diseño.
   El resto del contenido cabe entero gracias al dimensionado en vh. */
@media (max-height: 700px) {
  #screen-08 .ai-feedback { display: none; }
}

/* ============================================================
   ACCESIBILIDAD — auditoría web-excelencia (25-07-2026)
   Tres carencias detectadas y corregidas:
   1) 5 reglas 'outline:none' sin alternativa → era imposible
      navegar con teclado: no se veía dónde estabas.
   2) 54 animaciones sin escape para quien las sufre.
   3) Zonas de toque por debajo del mínimo usable en móvil.
   ============================================================ */

/* 1 · Foco visible. Solo con :focus-visible, así el anillo aparece
   al navegar con teclado pero no al hacer click con el ratón. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Sobre fondo azul (formulario de envío) el neón se pierde: se usa cian */
.blue-input:focus-visible,
.btn-blue-solid:focus-visible {
  outline-color: var(--electric-blue);
}

/* 2 · Movimiento reducido. Hay personas a las que el movimiento les
   provoca mareo real; el sistema operativo ya lo señala, solo hay
   que respetarlo. Se conserva la funcionalidad, se quita el baile. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .screen { transition: none !important; }
}

/* 3 · Zonas de toque. El mínimo cómodo es 44px de alto: por debajo,
   en un móvil se falla el objetivo constantemente. */
.blue-input,
.hud-input,
.hud-select,
.bio-select { min-height: 44px; }

.btn-secondary,
.btn-fallback-retry,
.impact-cta-btn,
.recovery-btn { min-height: 44px; }

/* Los enlaces en línea no deben crecer (romperían el texto), pero sí
   ampliar su área pulsable de forma invisible. */
.terms-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  margin: -6px -2px;
}

/* El indicador de estado del IMPACTO es pulsable (cambia de estado):
   si se puede pulsar, tiene que parecerlo y tener área suficiente. */
.impact-period {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  margin: -4px -6px;
  cursor: pointer;
}

/* Las opciones de encuesta se quedaban en 43px: a un pixel del mínimo
   cómodo. Son el control principal de 4 pantallas seguidas. */
.survey-option { min-height: 44px; }

/* ===== MINUTO OPCIONAL · BLOQUE E (uso del FingerRest™) =====
   Se muestra al completar los 3 ejercicios. Es una oferta, no un obstáculo:
   por eso el botón de finalizar sin extra queda igual de accesible. */
.bonus-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-md);
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(6px);
  animation: bonusIn 0.32s ease-out;
}
.bonus-overlay.hidden { display: none; }

@keyframes bonusIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bonus-card {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
  padding: 22px 18px 18px;
  background: linear-gradient(160deg, rgba(37, 230, 0,0.07), rgba(0, 210, 160,0.03));
  border: 1px solid rgba(37, 230, 0,0.35);
  text-align: center;
}

.bonus-check {
  font-size: 30px;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(37, 230, 0,0.6);
}
.bonus-done {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 4px;
}

.bonus-offer {
  width: 100%;
  padding: 12px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0, 210, 160,0.25);
  border-left: 2px solid var(--electric-blue);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bonus-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--electric-blue);
}
.bonus-nombre {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--neon);
  margin: 2px 0 0;
  letter-spacing: 0.5px;
}
.bonus-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.35;
}
.bonus-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.bonus-ep { color: var(--neon); font-weight: 700; }

.bonus-card .btn-primary,
.bonus-card .btn-secondary { width: 100%; min-height: 44px; }

/* ===== FAQ: la objeción de carga (screen-06) ===== */
.faq-card {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(0, 210, 160, 0.04);
  border: 1px solid rgba(0, 210, 160, 0.2);
  border-left: 2px solid var(--electric-blue);
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.faq-q {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--electric-blue);
}
.faq-a {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.faq-a strong { color: var(--neon); font-weight: 700; }

/* El aviso de incompatibilidad vivía dentro de un contenedor flex que lo
   comprimía a 17px con 'overflow:hidden' (necesario para su línea de escaneo):
   el usuario con móvil no compatible leía el mensaje cortado justo por la mitad.
   flex-shrink:0 le devuelve su altura natural. */
.incompat-banner { flex-shrink: 0; }

/* ===== Confirmación de conexión (ejercicio E1 · Anclaje y Carga) =====
   Dos estados: esperando (ámbar, latiendo) y confirmado (neón, fijo).
   Se apoya en la Battery Status API: si el navegador no la trae, el bloque
   simplemente no aparece — nunca se finge una detección. */
.conn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 2px 0;
  padding: 6px 10px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.8px;
  line-height: 1.3;
}
.conn-status.hidden { display: none; }

.conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.conn-status.esperando {
  border-color: rgba(255,184,0,0.45);
  background: rgba(255,184,0,0.07);
  color: #FFB800;
}
.conn-status.esperando .conn-dot {
  background: #FFB800;
  animation: connWait 1.2s ease-in-out infinite;
}
@keyframes connWait {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.conn-status.ok {
  border-color: rgba(37, 230, 0,0.55);
  background: rgba(37, 230, 0,0.09);
  color: var(--neon);
  animation: connOk 0.5s ease-out;
}
.conn-status.ok .conn-dot {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}
@keyframes connOk {
  0%   { transform: scale(0.96); opacity: 0.4; }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .conn-status.esperando .conn-dot,
  .conn-status.ok { animation: none; }
}

/* Durante el minuto extra con el FingerRest™ se oculta el panel de comunidad:
   el ranking global no aporta nada mientras aprendes a colocar el soporte, y
   al quitarlo desaparece el recorte de su gráfica en pantallas bajas. */
#screen-08.bonus-en-curso .live-rank-panel { display: none; }
#screen-08.bonus-en-curso .training-guide  { margin-bottom: 6px !important; }

/* =============================================
   CUARTEL (screen-home) + BARRA DE NAVEGACIÓN
   Base táctica intacta (obsidiana + neón) con
   acentos de color para que los logros se lean:
   ámbar = constancia, cian = datos, magenta = hito.
   ============================================= */

:root {
  --magenta: #FF3BAA;
  --tabbar-h: 58px;
}

.home-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Saludo y rango ---------- */
.home-greet { padding: 2px 0 0; }
.home-hello {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(255,255,255,.45);
}
.home-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #FFF;
  line-height: 1.1;
  margin: 2px 0 8px;
}
.home-rankrow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.home-rank-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon);
  border: 1px solid rgba(37, 230, 0,.35);
  background: var(--neon-ghost);
  padding: 3px 8px;
  border-radius: 3px;
}
.home-ep { font-family: var(--font-mono); font-size: 11px; color: var(--warning); letter-spacing: 1px; }
.home-levelbar {
  height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 2px;
  overflow: hidden;
}
.home-levelbar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--cyber-blue));
  border-radius: 2px;
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}
.home-level-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.4);
  letter-spacing: 1px;
  margin-top: 5px;
}
/* La frase personal: única pieza del cuartel escrita en minúscula y con la
   fuente de texto. Rompe a propósito el HUD en mayúsculas para que se lea como
   alguien hablándole, no como un panel de estado. */
.home-personal {
  margin: 9px 0 0;
  padding-left: 9px;
  border-left: 2px solid var(--neon);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}
.home-personal:empty { display: none; }

/* ---------- Misión de hoy ---------- */
.home-mission {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(37, 230, 0,.07), rgba(0, 210, 160,.04));
  border: 1px solid rgba(37, 230, 0,.22);
  border-radius: 10px;
  padding: 14px;
}
.home-ring { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.home-ring svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.home-ring-bg { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.home-ring-fg {
  fill: none;
  stroke: var(--neon);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 5px rgba(37, 230, 0,.5));
  transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1), stroke .4s ease;
}
.home-ring.full .home-ring-fg { stroke: var(--warning); filter: drop-shadow(0 0 7px rgba(255,184,0,.6)); }
.home-ring-val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: #FFF;
}
.home-ring-val em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); }
.home-mission-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2.5px; color: var(--neon);
}
.home-mission-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800; color: #FFF; letter-spacing: .5px;
}
.home-mission-sub { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.35; }
.home-cta { width: 100%; }
.home-cta.done {
  background: transparent;
  border: 1px solid rgba(37, 230, 0,.4);
  color: var(--neon);
}

/* ---------- Tarjetas ---------- */
.home-card {
  background: var(--obsidian-light);
  border: var(--border);
  border-radius: 10px;
  padding: 12px;
}
.home-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.home-card-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.45);
}
.home-count { font-family: var(--font-mono); font-size: 10px; color: var(--neon); }
.home-card-link { font-family: var(--font-mono); font-size: 9px; color: var(--cyber-blue); letter-spacing: 1px; }
.home-big-val {
  display: block;
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; color: var(--warning); line-height: 1;
  margin: 6px 0 2px;
}
.home-big-val.alt { color: var(--cyber-blue); }
.home-big-val em { font-style: normal; font-size: 13px; opacity: .6; }
.home-card-sub { font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .5px; }

/* Semana de racha: 7 casillas */
.home-week { display: flex; gap: 3px; margin-top: 9px; }
.home-week span {
  flex: 1; height: 5px; border-radius: 2px;
  background: rgba(255,255,255,.08);
}
.home-week span.on { background: var(--warning); box-shadow: 0 0 6px rgba(255,184,0,.5); }
.home-week span.today { outline: 1px solid rgba(255,255,255,.35); outline-offset: 1px; }

.home-shield-bar { height: 5px; background: rgba(255,255,255,.08); border-radius: 3px; margin-top: 9px; overflow: hidden; }
.home-shield-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyber-blue), var(--neon));
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Objetivos del día ---------- */
.home-missions { display: flex; flex-direction: column; gap: 7px; }
.home-mission-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--obsidian-mid);
  border: 1px solid var(--obsidian-border);
  border-left: 2px solid var(--m-color, var(--neon));
  border-radius: 6px;
}
.home-mi-check {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 1.5px solid var(--m-color, var(--neon));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #0A0A0F;
}
.home-mission-item.done .home-mi-check { background: var(--m-color, var(--neon)); }
.home-mi-body { flex: 1; min-width: 0; }
.home-mi-name { display: block; font-size: 12px; color: #E6E6E6; font-weight: 600; }
.home-mission-item.done .home-mi-name { color: rgba(255,255,255,.45); text-decoration: line-through; }
.home-mi-desc { display: block; font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,.38); margin-top: 1px; }
.home-mi-ep {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  color: var(--m-color, var(--neon)); flex-shrink: 0;
}
.home-perfect {
  margin-top: 9px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  color: var(--magenta);
  border: 1px solid rgba(255,59,170,.35);
  background: rgba(255,59,170,.08);
  border-radius: 6px; padding: 7px;
  animation: perfectPulse 2.2s ease-in-out infinite;
}
@keyframes perfectPulse {
  0%,100% { box-shadow: 0 0 0 rgba(255,59,170,0); }
  50%     { box-shadow: 0 0 14px rgba(255,59,170,.35); }
}

/* ---------- Impacto ---------- */
.impact-card { cursor: pointer; }
.home-impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.home-impact-grid strong {
  display: block; font-family: var(--font-display);
  font-size: 19px; font-weight: 800; color: #FFF;
}
.home-impact-grid span { font-family: var(--font-mono); font-size: 8.5px; color: rgba(255,255,255,.4); letter-spacing: .5px; }

/* ---------- Equipo ---------- */
.home-device-state {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px;
  color: var(--danger);
}
.device-card.ok .home-device-state { color: var(--neon); }
.home-device-text { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.45; }
.home-device-btn {
  width: 100%; margin-top: 10px;
  background: transparent;
  border: 1px solid rgba(0, 210, 160,.4);
  color: var(--cyber-blue);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  padding: 9px; border-radius: 6px; cursor: pointer;
}
.device-card.ok .home-device-btn { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.55); }

/* =============================================
   BARRA DE NAVEGACIÓN INFERIOR
   ============================================= */
.tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--tabbar-h);
  display: flex;
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--obsidian-border);
  z-index: 40;
}
.tabbar.hidden { display: none; }
.tab-btn {
  flex: 1;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255,255,255,.38);
  font-family: var(--font-mono);
  padding: 0;
  transition: color .2s ease, transform .1s ease;
}
.tab-ico { font-size: 15px; line-height: 1; }
.tab-lbl { font-size: 8px; letter-spacing: 1.2px; }
.tab-btn.active { color: var(--neon); }
.tab-btn.active .tab-ico { filter: drop-shadow(0 0 6px rgba(37, 230, 0,.6)); }
.tab-btn:active { transform: scale(.94); }

/* Con la barra visible, la pantalla entera se encoge por abajo. El relleno va
   en .screen (columna flex de altura fija) y no en el footer: con margin el
   footer desbordaba la columna y quedaba 20 px por debajo de la barra. */
#app-container.tabbar-on .screen.active { padding-bottom: var(--tabbar-h); }

/* Pantallas bajas: el cuartel se compacta */
@media (max-height: 700px) {
  .home-name { font-size: 22px; }
  .home-ring, .home-ring svg { width: 66px; height: 66px; }
  .home-big-val { font-size: 25px; }
  .home-body { gap: 10px; }
}

/* =============================================
   CAPA DE JUEGO · insignias, reto semanal,
   avisos y celebración de cierre de sesión
   ============================================= */

/* Botón de sonido en la barra de estado del cuartel */
.home-mute {
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 8px;
  cursor: pointer;
}
.home-mute.on { color: var(--neon); border-color: rgba(37, 230, 0,.4); }

/* ---------- Reto semanal ---------- */
.home-weekly-title {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800; color: #FFF; letter-spacing: .5px;
  margin-bottom: 8px;
}
.home-weekly-bar {
  height: 7px; background: rgba(255,255,255,.08);
  border-radius: 4px; overflow: hidden;
}
.home-weekly-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--warning));
  border-radius: 4px;
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.weekly-card.done .home-weekly-bar span { background: linear-gradient(90deg, var(--neon), var(--cyber-blue)); }
.weekly-card .home-card-sub { display: block; margin-top: 7px; }

/* ---------- Insignias ---------- */
.home-badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 9px;
}
.badge {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  border-radius: 7px;
  background: var(--obsidian-mid);
  border: 1px solid var(--obsidian-border);
  color: rgba(255,255,255,.18);
  cursor: pointer;
  transition: transform .15s ease;
}
.badge:active { transform: scale(.9); }
.badge.on {
  color: #0A0A0F;
  background: linear-gradient(135deg, var(--b-color, var(--neon)), rgba(255,255,255,.25));
  border-color: var(--b-color, var(--neon));
  box-shadow: 0 0 10px -2px var(--b-color, var(--neon));
}
.badge.nuevo { animation: badgePop .6s ease; }
@keyframes badgePop {
  0% { transform: scale(.4) rotate(-15deg); opacity: 0; }
  60% { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* ---------- Avisos (toasts) ---------- */
.toast-stack {
  position: absolute;
  top: 10px; left: 12px; right: 12px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 7px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: rgba(15,15,24,.96);
  border: 1px solid var(--t-color, var(--neon));
  border-left-width: 3px;
  border-radius: 8px;
  padding: 9px 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 16px -6px var(--t-color, var(--neon));
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.saliendo { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
.toast-ico {
  font-size: 17px; line-height: 1; color: var(--t-color, var(--neon));
  filter: drop-shadow(0 0 6px var(--t-color, var(--neon)));
}
.toast-body { min-width: 0; }
.toast-title {
  display: block;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  color: var(--t-color, var(--neon));
}
.toast-text { display: block; font-size: 12px; color: #E6E6E6; font-weight: 600; margin-top: 1px; }
.toast-ep { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--warning); }

/* ---------- Banner de subida de rango (pantalla 09) ---------- */
.rank-up {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,59,170,.45);
  background: linear-gradient(135deg, rgba(255,59,170,.14), rgba(0, 210, 160,.06));
  border-radius: 9px;
  animation: rankUpIn .6s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rankUpIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.rank-up-ico { font-size: 22px; filter: drop-shadow(0 0 8px rgba(255,59,170,.7)); }
.rank-up-tag { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px; color: var(--magenta); }
.rank-up-name { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 900; color: #FFF; letter-spacing: 1px; }

/* Escudo de racha en la tarjeta de racha */
.home-shields { font-family: var(--font-mono); font-size: 9px; color: var(--cyber-blue); letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce) {
  .toast, .badge.nuevo, .rank-up { animation: none !important; }
}

/* =============================================
   FASE 3 · valoración de la mano tras la sesión
   ============================================= */
.molestia-card {
  margin: 12px 0 4px;
  padding: 12px;
  background: var(--obsidian-light);
  border: var(--border);
  border-radius: 10px;
  text-align: center;
}
.molestia-pregunta {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.molestia-check { display: flex; gap: 6px; justify-content: center; }
.molestia-btn {
  flex: 1; max-width: 52px;
  padding: 9px 0;
  background: var(--obsidian-mid);
  border: 1px solid var(--obsidian-border);
  border-radius: 7px;
  color: rgba(255,255,255,.6);
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease, color .2s ease;
}
.molestia-btn:nth-child(1) { --mc: var(--danger); }
.molestia-btn:nth-child(2) { --mc: #FF7A3B; }
.molestia-btn:nth-child(3) { --mc: var(--warning); }
.molestia-btn:nth-child(4) { --mc: #A8E85C; }
.molestia-btn:nth-child(5) { --mc: var(--neon); }
.molestia-btn:active { transform: scale(.92); }
.molestia-btn:not(:disabled):hover { border-color: var(--mc); color: var(--mc); }
.molestia-btn.elegido {
  background: var(--mc);
  border-color: var(--mc);
  color: #0A0A0F;
  box-shadow: 0 0 12px -3px var(--mc);
}
.molestia-btn:disabled { opacity: .45; cursor: default; }
.molestia-btn.elegido:disabled { opacity: 1; }
.molestia-escala {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 8px;
  color: rgba(255,255,255,.32);
  margin-top: 6px; padding: 0 2px;
}
.molestia-gracias {
  display: block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 9px;
  color: var(--cyber-blue); letter-spacing: .5px;
}


/* Informe de carga (screen-05): cada cifra lleva debajo su explicación en
   lenguaje llano, y el método queda en el pie de la tarjeta. */
.torque-item.carga-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.carga-sub {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.4;
  color: rgba(255,255,255,.35);
}
.carga-nota {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--obsidian-border);
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.3);
}

.carga-sub .equiv { color: var(--warning); font-weight: 700; }

.home-metodo { display:inline-block; margin-top:9px; font-family: var(--font-mono); font-size:8.5px; letter-spacing:.5px; color: rgba(0, 210, 160,.55); border-bottom:1px dotted rgba(0, 210, 160,.35); cursor:pointer; }

/* =============================================
   INTRO DE BIENVENIDA (screen-intro) · 12 s
   Cuatro actos encadenados con animation-delay
   sobre una sola línea de tiempo. Sin librerías
   y sin más assets que el propio logotipo.
   ============================================= */

#screen-intro { background: #05050A; }

.intro-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-video { width: 100%; height: 100%; object-fit: cover; }
.intro-video.hidden { display: none; }

/* Rejilla técnica de fondo, en movimiento lento */
.intro-grid {
  position: absolute; inset: -40%;
  background-image:
    linear-gradient(rgba(37, 230, 0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 230, 0,.055) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(420px) rotateX(58deg);
  animation: introGrid 12s linear infinite;
  opacity: .55;
}
@keyframes introGrid { to { background-position: 0 340px; } }

.intro-scanline {
  position: absolute; left: 0; right: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(37, 230, 0,.07), transparent);
  animation: introScan 3.2s ease-in-out infinite;
}
@keyframes introScan { 0% { top: -20%; } 100% { top: 110%; } }

.intro-anim { position: relative; width: 100%; padding: 0 24px; text-align: center; }

/* ---------- ACTO 1 · arranque (0 → 3 s) ---------- */
.intro-boot {
  position: absolute; left: 24px; right: 24px; top: 50%;
  transform: translateY(-50%);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 1px;
}
.intro-boot-line {
  opacity: 0;
  margin-bottom: 7px;
  text-shadow: 0 0 10px rgba(37, 230, 0,.5);
}
.reproduciendo .intro-boot-line { animation: introLine .5s ease forwards; }
.reproduciendo .intro-boot-line.l1 { animation-delay: .25s; }
.reproduciendo .intro-boot-line.l2 { animation-delay: 1.0s; }
.reproduciendo .intro-boot-line.l3 { animation-delay: 1.7s; }
.reproduciendo .intro-boot { animation: introFuera .5s ease 2.7s forwards; }
@keyframes introLine {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes introFuera { to { opacity: 0; visibility: hidden; } }

/* ---------- ACTO 2 · marca (3 → 6,5 s) ---------- */
.intro-brand { opacity: 0; }
.reproduciendo .intro-brand { animation: introMarca 3.6s ease 3s forwards; }
@keyframes introMarca {
  0%   { opacity: 0; transform: scale(.9); filter: blur(6px); }
  22%  { opacity: 1; transform: scale(1);  filter: blur(0); }
  78%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.04); }
}
.intro-logo { width: min(268px, 74vw); height: auto; filter: drop-shadow(0 0 14px rgba(37, 230, 0,.35)); }
.intro-claim {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 4px; color: var(--cyber-blue);
}
.intro-tagline {
  margin-top: 8px;
  font-size: 13px; font-style: italic; color: rgba(255,255,255,.65);
}

/* ---------- ACTO 3 · promesa (6,5 → 9,5 s) ---------- */
.intro-promesa {
  position: absolute; left: 24px; right: 24px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.intro-chip {
  opacity: 0;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; color: #FFF; letter-spacing: 1px;
  border: 1px solid var(--obsidian-border);
  background: rgba(20,20,32,.75);
  border-radius: 40px;
  padding: 9px 26px;
}
.intro-chip b {
  font-size: 22px; font-weight: 900; margin-right: 7px;
  color: var(--neon);
}
.intro-chip.c2 b { color: var(--warning); }
.intro-chip.c3 b { color: var(--magenta); }
.reproduciendo .intro-chip { animation: introChip .55s cubic-bezier(.2,.9,.3,1.3) forwards; }
.reproduciendo .intro-chip.c1 { animation-delay: 6.6s; }
.reproduciendo .intro-chip.c2 { animation-delay: 7.2s; }
.reproduciendo .intro-chip.c3 { animation-delay: 7.8s; }
.reproduciendo .intro-promesa { animation: introFuera .5s ease 9.4s forwards; }
@keyframes introChip {
  from { opacity: 0; transform: translateY(16px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* ---------- ACTO 4 · producto (9,5 → 12 s) ---------- */
.intro-final { opacity: 0; }
.reproduciendo .intro-final { animation: introFinal .8s ease 9.7s forwards; }
@keyframes introFinal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.intro-title {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 900; letter-spacing: 3px; color: #FFF;
  text-shadow: 0 0 24px rgba(37, 230, 0,.35);
}
.intro-title .accent { color: var(--neon); }
.intro-welcome {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.55);
}

/* ---------- Controles ---------- */
.intro-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: rgba(255,255,255,.08);
}
.intro-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyber-blue), var(--neon));
}
.intro-skip {
  /* Abajo a la derecha, como en un reproductor: además evita chocar con el
     botón DEV, que en local vive en la esquina superior derecha. */
  position: absolute; bottom: 18px; right: 16px;
  background: rgba(10,10,15,.6);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  padding: 7px 12px; border-radius: 5px; cursor: pointer;
  backdrop-filter: blur(4px);
}
.intro-skip:active { transform: scale(.95); }

/* Sin animación: se muestra directamente el acto final */
@media (prefers-reduced-motion: reduce) {
  .intro-grid, .intro-scanline { animation: none; }
  .reproduciendo .intro-boot,
  .reproduciendo .intro-promesa { display: none; }
  .reproduciendo .intro-brand,
  .reproduciendo .intro-final,
  .reproduciendo .intro-chip { animation: none; opacity: 1; }
  .intro-brand { position: relative; margin-bottom: 18px; }
}


/* =============================================
   PANTALLA 06 · RIESGOS SIN FINGERREST
   Comparativa reducida a dos barras y un número.
   ============================================= */
.riesgo-comparativa {
  background: var(--obsidian-light);
  border: var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}
.riesgo-fila {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.riesgo-etq {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
}
.riesgo-barra {
  height: 9px;
  background: rgba(255,255,255,.07);
  border-radius: 5px;
  overflow: hidden;
}
.riesgo-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.riesgo-fill.malo  { background: linear-gradient(90deg, #FF7A3B, var(--danger)); }
.riesgo-fill.bueno { background: linear-gradient(90deg, var(--cyber-blue), var(--neon)); }
.riesgo-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}
.riesgo-num.malo  { color: var(--danger); }
.riesgo-num.bueno { color: var(--neon); }
.riesgo-resumen {
  margin: 4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--obsidian-border);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.riesgo-resumen b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon);
  margin-right: 6px;
}
.pathology-nota {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.32);
}

/* La pantalla 06 hereda .center-content: las filas de riesgo y el pie se leen
   mejor alineados a la izquierda, y la etiqueta necesita ancho para no partirse. */
#screen-06 .riesgo-fila { grid-template-columns: 112px 1fr 44px; }
#screen-06 .riesgo-etq { text-align: left; }
#screen-06 .path-info { text-align: left; }
#screen-06 .pathology-nota { text-align: left; }


/* Enfoque del día (pantalla 07): zonas a trabajar + motivo, en vez del
   listado de ejercicios con el día de la semana. */
.routine-zonas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 10px 0 8px;
}
.zona-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--neon);
  background: var(--neon-ghost);
  border: 1px solid rgba(37, 230, 0, .3);
  border-radius: 20px;
  padding: 5px 12px;
}
.routine-motivo {
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.6);
  text-align: center;
  margin: 0;
}
.routine-head .routine-lib {
  color: var(--cyber-blue);
  letter-spacing: 1.5px;
}


/* =============================================
   ARSENAL · medidor mensual de constancia
   ============================================= */
.arsenal-medidor {
  background: var(--obsidian-light);
  border: var(--border);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0 10px;
  text-align: left;
}
.ars-med-cab { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ars-med-etq {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.45);
}
.ars-med-pct {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900; color: var(--neon); line-height: 1;
}
.ars-med-barra { height: 8px; background: rgba(255,255,255,.07); border-radius: 4px; overflow: hidden; }
.ars-med-barra span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyber-blue), var(--neon));
  border-radius: 4px;
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.ars-med-sub {
  display: block; margin-top: 7px;
  font-family: var(--font-mono); font-size: 8.5px; color: rgba(255,255,255,.38);
}
.arsenal-aviso {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.5;
  color: rgba(255,255,255,.4);
  text-align: center;
  margin-bottom: 8px;
}
/* Un botón de canje bloqueado tiene que parecerlo */
#btn-canjear.disabled {
  background: transparent;
  border: 1px solid var(--obsidian-border);
  color: rgba(255,255,255,.35);
  box-shadow: none;
  pointer-events: auto;   /* deja pulsarlo: el aviso explica por qué no toca */
  cursor: default;
}

/* El arsenal vive en un .scmd-body (flex column con overflow oculto): las
   tarjetas de recompensa se encogían por debajo de su contenido y el 60 % y su
   etiqueta quedaban cortados por arriba. Se impide el encogimiento y se permite
   desplazar la pantalla, que ahora lleva el medidor mensual encima. */
.tier-badge { white-space: nowrap; }

/* El arsenal se diseñó "sin scroll": .arsenal-tiers .tier-card llevaba
   flex:1 1 0 !important y las tres tarjetas se repartían el alto disponible.
   Al añadir el medidor mensual arriba dejaron de caber y el 60 % y su etiqueta
   quedaban cortados. Ahora las tarjetas miden lo que ocupan y la pantalla se
   desplaza, que es lo honesto cuando hay más contenido que altura. */
#screen-12 .screen-body.arsenal-body { overflow-y: auto !important; overscroll-behavior: contain; }
.arsenal-tiers { flex: 0 0 auto !important; }
.arsenal-tiers .tier-card { flex: 0 0 auto !important; }

.ars-verif { color: var(--neon); font-weight: 700; }

/* =============================================
   MURO DE LA COMUNIDAD (screen-muro)
   ============================================= */
.muro-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px 18px;
}

/* Cifras agregadas: lo que hace que el muro nunca esté vacío */
.muro-cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: linear-gradient(135deg, rgba(37,230,0,.07), rgba(0,210,160,.04));
  border: 1px solid rgba(37,230,0,.22);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  flex-shrink: 0;
}
.muro-cifra strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--neon);
  line-height: 1;
}
.muro-cifra span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.45);
  line-height: 1.3;
}

/* Caja para escribir */
.muro-escribir {
  background: var(--obsidian-light);
  border: var(--border);
  border-radius: 10px;
  padding: 12px;
  flex-shrink: 0;
}
.muro-texto {
  width: 100%;
  resize: none;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  padding: 10px;
  margin-top: 6px;
}
.muro-escribir-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.muro-contador {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.35);
}
.muro-enviar {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}
.muro-enviar:disabled { opacity: .5; cursor: default; }
.muro-enviar:active { transform: scale(.96); }
.muro-aviso {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.35);
}

/* Impresiones publicadas */
.muro-lista { display: flex; flex-direction: column; gap: 8px; }
.muro-item {
  background: var(--obsidian-mid);
  border: 1px solid var(--obsidian-border);
  border-left: 2px solid var(--cyber-blue);
  border-radius: 8px;
  padding: 10px 12px;
}
.muro-item-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.muro-alias {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}
.muro-rango {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--neon);
  border: 1px solid rgba(37,230,0,.3);
  border-radius: 3px;
  padding: 2px 6px;
}
.muro-fecha {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255,255,255,.3);
}
.muro-texto-item {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.muro-vacio {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 18px 10px;
}

/* Tarjeta de acceso desde el cuartel */
.comunidad-card { cursor: pointer; }
.home-comunidad-txt {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* ---------- Moderación ---------- */
.moderar-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 14px 16px;
}
.moderar-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.moderar-item {
  background: var(--obsidian-light);
  border: 1px solid var(--obsidian-border);
  border-radius: 8px;
  padding: 12px;
}
.moderar-acciones { display: flex; gap: 8px; margin-top: 10px; }
.moderar-si, .moderar-no {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 9px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}
.moderar-si { border: 1px solid var(--neon); color: var(--neon); }
.moderar-no { border: 1px solid var(--danger); color: var(--danger); }

/* La tercera cifra de la promesa ya no es un número ("sin agujetas"):
   se ajusta el tamaño para que las tres columnas sigan alineadas. */
.ai-stat-value:not(:only-child) { line-height: 1; }
.ai-stat .ai-stat-value { font-size: clamp(20px, 7vw, 30px); }

/* =============================================
   LLAVE FÍSICA (screen-toque)
   Puerta obligatoria: sin el FingerRest™ delante no hay sesión.
   No hay escáner porque la etiqueta NFC y el QR los lee el propio
   sistema operativo y abren la app con el token en la URL.
   ============================================= */
.toque-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 18px 22px;
}

/* Diana con dos ondas: dice "acerca el móvil aquí" sin una línea de texto */
.toque-diana {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 6px;
}
.toque-onda {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--neon);
  opacity: 0;
  animation: toqueOnda 2.6s ease-out infinite;
}
.toque-onda.o2 { animation-delay: 1.3s; }
@keyframes toqueOnda {
  0%   { transform: scale(.45); opacity: .55; }
  70%  { opacity: .12; }
  100% { transform: scale(1); opacity: 0; }
}
.toque-ico {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 0 12px rgba(37,230,0,.45));
}
@media (prefers-reduced-motion: reduce) {
  .toque-onda { animation: none; opacity: .25; }
}

.toque-title { font-size: 19px; line-height: 1.25; margin: 2px 0 0; }
.toque-sub {
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.72);
  max-width: 300px;
  margin: 0;
}

.toque-espera {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--neon);
  border: 1px solid rgba(37,230,0,.3);
  background: var(--neon-ghost);
  border-radius: 20px;
  padding: 7px 14px;
  margin-top: 4px;
}
.toque-espera-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  animation: toqueLatido 1.4s ease-in-out infinite;
}
@keyframes toqueLatido { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Salida discreta: se ve, pero no compite con la instrucción principal */
.toque-ayuda {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
  text-decoration: underline;
  padding: 8px 4px;
  cursor: pointer;
}
.toque-ayuda:hover { color: rgba(255,255,255,.8); }

/* ---------- Escalera de respaldo ---------- */
.toque-manual {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 14px;
  margin-top: 2px;
  text-align: left;
}
.toque-manual-tit {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.45);
  margin: 0 0 8px;
}
.toque-pasos {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.75);
  margin: 0 0 10px;
  padding-left: 18px;
}
.toque-pasos li + li { margin-top: 5px; }
.toque-input {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 2px;
}
.toque-validar { margin-top: 10px; }
.toque-soporte {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin: 10px 0 0;
}

/* =============================================
   SOLO MÓVIL · aviso en ordenador y tablet
   El FingerRest™ va en el USB-C del teléfono: fuera de ahí la app
   no puede ni medir ni abrir su puerta física (no hay NFC).
   ============================================= */
.solo-movil {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(37,230,0,.07), transparent 60%), #06060A;
}
.solo-movil.hidden { display: none; }

.solo-movil-card {
  max-width: 420px;
  text-align: center;
  border: 1px solid rgba(37,230,0,.25);
  border-radius: 14px;
  background: rgba(12,12,18,.9);
  padding: 32px 26px 26px;
}
.solo-movil-ico {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 14px rgba(37,230,0,.4));
}
.solo-movil-tit {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #FFF;
  margin: 16px 0 10px;
}
.solo-movil-txt {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
  margin: 0 0 18px;
}
.solo-movil-url {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--neon);
  border: 1px dashed rgba(37,230,0,.4);
  border-radius: 8px;
  padding: 11px 8px;
  margin: 0;
}
.solo-movil-pie {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.42);
  margin: 12px 0 0;
}
.solo-movil-salida {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(255,255,255,.35);
  text-decoration: underline;
  margin-top: 18px;
  padding: 6px;
  cursor: pointer;
}
.solo-movil-salida:hover { color: rgba(255,255,255,.7); }

/* =============================================
   ENCUESTA DE PRODUCTO (screen-encuesta)
   4 preguntas de opción cerrada, fuera del embudo.
   ============================================= */
.enc-body {
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 16px 16px 20px;
}
.enc-title { font-size: 17px; line-height: 1.3; margin: 0 0 8px; text-align: center; }
.enc-sub {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.62);
  text-align: center;
  margin: 0 0 18px;
}

.enc-bloque { margin-bottom: 20px; }
.enc-pregunta {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #FFF;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.enc-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyber-blue);
  border: 1px solid rgba(0,210,160,.4);
  border-radius: 3px;
  padding: 1px 5px;
}
.enc-opciones { display: flex; flex-direction: column; gap: 7px; }
.enc-opcion {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.enc-opcion:active { transform: scale(.99); }
.enc-opcion.sel {
  color: #FFF;
  border-color: var(--neon);
  background: var(--neon-ghost);
  box-shadow: inset 3px 0 0 var(--neon);
}

/* La tarjeta del cuartel que lleva a la encuesta */
.encuesta-card { cursor: pointer; border-color: rgba(0,210,160,.3); }
.encuesta-card .home-card-link { color: var(--warning); }

/* ---------- Panel de reparto (pantalla de moderación) ---------- */
.enc-resumen:empty { display: none; }
.enc-res-total {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--neon);
  margin: 4px 0 12px;
}
.enc-res-bloque { margin-bottom: 16px; }
.enc-res-tit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #FFF;
  margin: 0 0 8px;
}
.enc-res-fila {
  display: grid;
  grid-template-columns: 1fr 62px 68px;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.enc-res-txt {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.enc-res-barra {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.enc-res-barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--cyber-blue));
}
.enc-res-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255,255,255,.5);
  text-align: right;
}
