:root {
  --f1-red: #ff1801;
  --f1-red-dark: #b80d00;
  --f1-red-glow: rgba(255, 24, 1, 0.42);
  --studio-bg: #05060a;
  --anodized-border: #32394f;
  --anodized-highlight: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
*, *::before, *::after {
  box-sizing: border-box;
}
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--studio-bg);
  color: #f8fafc;
  font-family: var(--f-ui);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
/* Fondo en capa propia (position:fixed) en vez de background-attachment:fixed
   en <body>. background-attachment:fixed obliga al navegador a repintar este
   fondo en CADA frame de scroll porque no puede promoverlo a su propia capa
   de composición GPU; con 4 capas de gradiente (dos radiales + grilla de
   líneas repetida cada 44px) sobre toda la pantalla, eso es carísimo y era
   la causa real de la lentitud al scrollear en TODA la página, no solo en
   Live Timing. position:fixed sí se compone aparte y no se repinta al
   scrollear. z-index:-1 lo deja detrás de todo el contenido real. */
.pc-bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--studio-bg);
  background-image:
    radial-gradient(ellipse 85% 45% at 50% -10%, rgba(255, 24, 1, 0.14), transparent 60%),
    radial-gradient(circle at 50% 35%, rgba(26, 32, 48, 0.45) 0%, rgba(5, 6, 10, 0.98) 75%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}
.font-f1 {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.04em;
}
.font-telemetry {
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
}
.carbon-panel {
  background-color: #0e111a;
  background-image:
    linear-gradient(168deg, rgba(30, 35, 50, 0.72) 0%, rgba(10, 12, 18, 0.88) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 3px, rgba(0, 0, 0, 0.35) 3px, rgba(0, 0, 0, 0.35) 6px);
  border: 1px solid var(--anodized-border);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 var(--anodized-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    0 20px 44px rgba(0, 0, 0, 0.85);
  max-width: 100%;
  position: relative;
}
.f1-top-stripe {
  border-top: 3px solid var(--f1-red);
  box-shadow:
    inset 0 2px 14px rgba(255, 24, 1, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.85);
}
.f1-input, .f1-select {
  background-color: #07090f !important;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0px, rgba(255, 255, 255, 0.025) 2px, transparent 2px, transparent 5px) !important;
  border: 1px solid #353c54 !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  max-width: 100%;
  color-scheme: dark;
}
.f1-input:focus, .f1-select:focus {
  border-color: var(--f1-red) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 24, 1, 0.32) !important;
  outline: none;
}
input.f1-input:-webkit-autofill,
input.f1-input:-webkit-autofill:hover,
input.f1-input:-webkit-autofill:focus,
input.f1-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #07090f inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  border: 1px solid #353c54 !important;
  transition: background-color 9999s ease-in-out 0s;
}
.custom-dropdown-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  max-height: 280px;
  overflow-y: auto;
  background-color: #090b12;
  background-image:
    linear-gradient(180deg, rgba(20, 24, 36, 0.98) 0%, rgba(8, 10, 16, 0.99) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #434c69;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.custom-dropdown-panel::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-track {
  background: #06070b;
  border-radius: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-thumb {
  background: #353c54;
  border-radius: 6px;
}
.custom-dropdown-panel::-webkit-scrollbar-thumb:hover {
  background: var(--f1-red);
}
.btn-f1-primary {
  background: linear-gradient(180deg, #ff2814 0%, #d91000 55%, #9e0800 100%);
  border: 1px solid rgba(255, 125, 110, 0.55);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 22px rgba(255, 24, 1, 0.42);
  transition: all 0.16s ease;
}
.btn-f1-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ff3b28 0%, #e61400 55%, #b00a00 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 28px rgba(255, 24, 1, 0.58);
}
.btn-f1-primary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(35%);
}
.btn-f1-secondary {
  background:
    linear-gradient(180deg, rgba(32, 37, 54, 0.92) 0%, rgba(15, 18, 28, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #38405a;
  color: #e2e8f0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: all 0.16s ease;
}
.btn-f1-secondary:hover {
  border-color: #7c8aa8;
  color: #ffffff;
  background: linear-gradient(180deg, #272d42 0%, #151926 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 14px rgba(255, 255, 255, 0.08);
}
.btn-f1-play {
  background:
    linear-gradient(180deg, rgba(32, 37, 54, 0.92) 0%, rgba(15, 18, 28, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.55), 0 0 10px rgba(52, 211, 153, 0.12);
  transition: all 0.16s ease;
}
.btn-f1-play:hover:not(:disabled) {
  border-color: #6ee7b7;
  color: #a7f3d0;
  background: linear-gradient(180deg, #212c2a 0%, #141c1a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 16px rgba(52, 211, 153, 0.22);
}
.btn-f1-play.is-playing {
  border-color: rgba(148, 163, 184, 0.55);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.55);
}
.btn-f1-play.is-playing:hover {
  border-color: #94a3b8;
  color: #e2e8f0;
}
.btn-f1-play:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(35%);
}
.btn-whatsapp-f1 {
  background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%);
  border: 1px solid rgba(110, 231, 183, 0.55);
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: all 0.16s ease;
}
.btn-whatsapp-f1:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #34d399 0%, #10b981 60%, #059669 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 8px 24px rgba(16, 185, 129, 0.5);
}
.choice-btn {
  background:
    linear-gradient(180deg, rgba(24, 28, 42, 0.92) 0%, rgba(12, 14, 22, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 5px);
  border: 1px solid #30374f;
  color: #cbd5e1;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.16s ease;
}
.choice-btn:hover {
  border-color: #5b6785;
  color: #ffffff;
}
.choice-btn.active {
  background:
    linear-gradient(180deg, rgba(255, 24, 1, 0.22) 0%, rgba(16, 19, 30, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0px, rgba(255, 255, 255, 0.04) 2px, transparent 2px, transparent 5px);
  border: 1px solid rgba(255, 24, 1, 0.78);
  border-bottom: 2.5px solid var(--f1-red);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 16px rgba(255, 24, 1, 0.28);
}
.choice-btn.h2h-win {
  background:
    linear-gradient(180deg, rgba(16, 185, 129, 0.36) 0%, rgba(6, 78, 59, 0.94) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0px, rgba(255, 255, 255, 0.045) 2px, transparent 2px, transparent 5px) !important;
  border: 1.5px solid #10b981 !important;
  border-bottom: 3px solid #34d399 !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 18px rgba(16, 185, 129, 0.42) !important;
  transform: translateY(-1px);
}
.choice-btn.h2h-loss {
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.26) 0%, rgba(69, 10, 10, 0.9) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 5px) !important;
  border: 1px solid rgba(239, 68, 68, 0.58) !important;
  border-bottom: 2.5px solid #ef4444 !important;
  color: #fecaca !important;
  opacity: 0.88;
}
.prop-card-yes {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, 0.22) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.55) !important;
  border-left: 4px solid #10b981 !important;
}
.prop-card-no {
  background:
    linear-gradient(90deg, rgba(239, 68, 68, 0.22) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
  border-left: 4px solid #ef4444 !important;
}
.prop-card-amber {
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.24) 0%, rgba(10, 14, 22, 0.96) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.55) !important;
  border-left: 4px solid #f59e0b !important;
}
.nav-pill-active {
  background:
    linear-gradient(180deg, #212638 0%, #10131d 100%) !important;
  color: #ffffff !important;
  border: 1px solid #454e6b !important;
  border-bottom: 2.5px solid var(--f1-red) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 16px -4px rgba(255, 24, 1, 0.4) !important;
}
.mobile-tab-active {
  color: #ffffff !important;
  border-top: 2.5px solid var(--f1-red);
  background: linear-gradient(180deg, rgba(255, 24, 1, 0.18) 0%, rgba(12, 14, 22, 0.95) 100%);
}
[class*="livery-"] {
  --team-rgb: 232, 0, 45;
  --team-hex: #e8002d;
  /* --team-ink: color de texto SOBRE el color pleno del equipo (celda
     PILOTO de Live Timing). Negro por defecto; blanco solo en Ferrari y
     Red Bull, donde el blanco se lee mejor (medido: contraste peor caso
     con la textura carbono >= 3.98 en los 11 equipos). */
  --team-ink: #05060a;
  --team-accent: rgba(18, 21, 32, 0.92);
  background:
    linear-gradient(90deg, rgba(var(--team-rgb), 0.3) 0%, var(--team-accent) 44%, rgba(10, 12, 18, 0.96) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0px, rgba(255, 255, 255, 0.035) 2px, transparent 2px, transparent 5px);
  border: 1px solid rgba(var(--team-rgb), 0.48) !important;
  border-left: 4px solid var(--team-hex) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.livery-ferrari { --team-rgb: 232, 0, 45; --team-hex: #e8002d; --team-ink: #ffffff; }
.livery-mercedes { --team-rgb: 0, 210, 190; --team-hex: #00d2be; }
.livery-mclaren { --team-rgb: 255, 128, 0; --team-hex: #ff8000; }
.livery-redbull { --team-rgb: 54, 113, 198; --team-hex: #3671c6; --team-ink: #ffffff; }
.livery-alpine { --team-rgb: 0, 147, 204; --team-hex: #0093cc; --team-accent: rgba(255, 102, 178, 0.15); }
.livery-aston { --team-rgb: 34, 153, 113; --team-hex: #229971; }
.livery-williams { --team-rgb: 100, 196, 255; --team-hex: #64c4ff; }
.livery-audi { --team-rgb: 245, 5, 55; --team-hex: #f50537; --team-accent: rgba(156, 163, 175, 0.2); }
.livery-cadillac { --team-rgb: 212, 175, 55; --team-hex: #d4af37; }
.livery-vcarb { --team-rgb: 102, 146, 255; --team-hex: #6692ff; }
.livery-haas { --team-rgb: 229, 231, 235; --team-hex: #e5e7eb; --team-accent: rgba(185, 28, 28, 0.16); }
.telemetry-pos-cube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  background: linear-gradient(180deg, #121624 0%, #07090f 100%);
  border: 1px solid #353c54;
  border-radius: 7px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.telemetry-team-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #101420 0%, #07090f 100%);
  border: 1px solid #32394f;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.telemetry-pts-box {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  background: linear-gradient(180deg, #06080d 0%, #0d101a 100%);
  border: 1px solid #353c54;
  padding: 6px 13px;
  border-radius: 9px;
  min-width: 96px;
  text-align: right;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.flag-icon {
  display: inline-block;
  width: 21px;
  height: 14px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}
.svg-telemetry-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  stroke-width: 2;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .overflow-x-auto {
    overflow-x: hidden !important;
  }
  table, tbody {
    display: block;
    width: 100% !important;
  }
  thead {
    display: none !important;
  }
  tr.mobile-card-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    border-radius: 11px !important;
    width: 100% !important;
  }
  tr.mobile-card-row td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
  }
  .telemetry-pts-box {
    min-width: 82px;
    padding: 5px 10px;
  }
}

/* ===== PIT WALL LIVE TIMING & REPLAY ENGINE (DISEÑO MODULAR CARBONO 3K) ===== */
.pc-pw-shell { display: flex; flex-direction: column; gap: 14px; width: 100%; }
/* ---- Consola única de Live Timing: UNA caja, 2 filas ----
   Fila 1: GP (bandera + nombre = selector) · estado de pista · clima.
   Fila 2: controles · barra de tiempo · velocidad · TV delay.
   Todo con clases propias (sin utilidades de Tailwind) para que se vea
   igual en cualquier entorno. */
.pc-pw-console {
  background: linear-gradient(180deg, rgba(15, 19, 31, 0.96) 0%, rgba(9, 11, 19, 0.98) 100%);
  border-bottom: 1px solid #262d42;
}
.pc-pw-console, .pc-pw-console * { box-sizing: border-box; }
/* Altura única: todas las cajas y botones de la consola miden 40px y
   tienen las mismas esquinas (10px), para que todo quede cuadrado. */
.pc-pw-console { --con-h: 40px; --con-r: 10px; }
.pc-pw-con-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 12px 16px; }
.pc-pw-con-ctrl { border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(4, 6, 11, 0.45); }
.pc-pw-ico { width: 14px; height: 14px; flex-shrink: 0; color: #64748b; }
/* GP: bandera + título (que hace de selector con 2+ carreras) */
.pc-pw-gp-box { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; min-width: 0; }
.pc-pw-gp-flag-wrap {
  display: none; width: 36px; height: 24px; flex-shrink: 0; border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.7);
}
.pc-pw-gp-flag-wrap.has-flag { display: block; }
.pc-pw-gp-flag { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-pw-gp-text { min-width: 0; }
.pc-pw-gp-title-wrap { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.pc-pw-gp-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800; color: #fff; letter-spacing: 0.03em; line-height: 1.2;
  font-size: clamp(0.92rem, 0.78rem + 0.45vw, 1.18rem); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-pw-gp-chevron { display: none; width: 16px; height: 16px; color: #94a3b8; flex-shrink: 0; }
.pc-pw-gp-select { display: none; }
.pc-pw-gp-title-wrap.is-multi { cursor: pointer; }
.pc-pw-gp-title-wrap.is-multi .pc-pw-gp-chevron { display: block; }
.pc-pw-gp-title-wrap.is-multi .pc-pw-gp-select {
  display: block; position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px;
}
.pc-pw-gp-title-wrap.is-multi:hover .pc-pw-gp-title, .pc-pw-gp-title-wrap.is-multi:hover .pc-pw-gp-chevron { color: #ff6a4d; }
.pc-pw-gp-sub {
  margin: 2px 0 0; font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.74rem;
  color: #8b95ad; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-pw-gp-status:not(:empty) { margin-left: 8px; color: #64748b; }
.pc-pw-gp-status.is-error { color: #f87171; }
/* Estado de pista + vuelta + reloj */
.pc-pw-status {
  display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 12px; height: var(--con-h); padding: 0 14px;
  background: #07090f; border: 1px solid #242c42; border-radius: var(--con-r);
}
.pc-pw-status-item { display: inline-flex; align-items: center; gap: 7px; }
.pc-pw-status-sep { width: 1px; height: 16px; background: #242c42; }
.pc-pw-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(255, 255, 255, 0.18); flex-shrink: 0; }
/* Bandera a cuadros (fin de sesión): cuadritos blancos y negros, sin imagen */
.pc-pw-status-dot.is-chequered { border-radius: 2px; width: 12px; height: 9px; background: repeating-conic-gradient(#f8fafc 0 25%, #0b0c0f 0 50%) 0 0 / 6px 6px !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
.pc-pw-status-label { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.06em; color: #34d399; white-space: nowrap; }
.pc-pw-status-clock { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; color: #fff; letter-spacing: 0.04em; min-width: 4.4em; }
.pc-pw-live { align-items: center; gap: 7px; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.6rem; letter-spacing: 0.14em; color: #cbd5e1; white-space: nowrap; }
.pc-pw-live .pc-pw-status-sep { margin-right: 5px; }
.pc-pw-live.is-live { color: #ff3b30; }
.pc-pw-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: pcPwLiveBlink 1.2s ease-in-out infinite; }
@keyframes pcPwLiveBlink { 50% { opacity: 0.25; } }
/* Clima */
.pc-pw-meteo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-pw-meteo-chip {
  display: inline-flex; align-items: center; gap: 5px; height: var(--con-h); padding: 0 10px;
  background: #07090f; border: 1px solid #242c42; border-radius: var(--con-r);
}
.pc-pw-meteo-chip .pc-pw-ico { width: 13px; height: 13px; }
.pc-pw-meteo-val { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.9rem; color: #fff; }
.pc-pw-meteo-lbl { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.6rem; color: #64748b; letter-spacing: 0.1em; }
/* El archivo no trae clima real de OpenF1 para esta sesión: se avisa
   claro ("S/D") en vez de dejar "--" ambiguo. */
.pc-pw-meteo-nodata .pc-pw-meteo-chip { opacity: 0.45; }
.pc-pw-meteo-nodata .pc-pw-meteo-val { color: #64748b; }
/* Controles: anterior / play-pausa / siguiente */
.pc-pw-transport { display: inline-flex; align-items: center; gap: 8px; }
.pc-pw-tbtn {
  display: inline-flex; align-items: center; justify-content: center; width: var(--con-h); height: var(--con-h); padding: 0;
  border-radius: var(--con-r); border: 1px solid #2f3852; background: #0b0f1a; color: #cbd5e1; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.pc-pw-tbtn svg { width: 15px; height: 15px; }
.pc-pw-tbtn:hover { border-color: #5b6785; color: #fff; }
.pc-pw-tbtn:active { transform: scale(0.95); }
.pc-pw-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--con-h); min-width: 122px; padding: 0 18px;
  border: none; border-radius: var(--con-r); cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.12em;
  background: linear-gradient(180deg, #3ee69c 0%, #12b981 100%); color: #03130c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pcPwPlayPulse 1.9s ease-out infinite;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.pc-pw-play-ico { width: 16px; height: 16px; flex-shrink: 0; }
.pc-pw-play:hover { filter: brightness(1.08); }
.pc-pw-play:active { transform: scale(0.97); }
@keyframes pcPwPlayPulse {
  0% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 0 rgba(52, 211, 153, 0); }
}
.pc-pw-play.is-playing {
  animation: none; color: #fff;
  background: linear-gradient(180deg, #f05252 0%, #d42020 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 16px rgba(239, 68, 68, 0.5);
}
@media (prefers-reduced-motion: reduce) { .pc-pw-play { animation: none; } }
/* Barra de tiempo: línea fina, parte corrida encendida, una marca por
   vuelta (cada 10 más larga) y globito con la vuelta al tocarla.
   --p (0..1) lo pone JS. El thumb nativo mide 14px igual que el
   visible, por eso la pista visible arranca y termina a 7px. */
.pc-pw-timeline { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 260px; }
.pc-pw-lapbox {
  display: inline-flex; align-items: center; justify-content: center; height: var(--con-h); min-width: 92px; padding: 0 10px; flex-shrink: 0;
  background: #07090f; border: 1px solid #242c42; border-radius: var(--con-r); white-space: nowrap;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.05em; color: #fff;
}
.pc-pw-scrub { --p: 0; position: relative; flex: 1 1 auto; min-width: 120px; height: var(--con-h); }
.pc-pw-scrub-track { position: absolute; left: 7px; right: 7px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #1c2338; }
.pc-pw-scrub-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 100%); border-radius: inherit;
  background: linear-gradient(90deg, #ff1801, #ff6a4d); box-shadow: 0 0 8px rgba(255, 24, 1, 0.45);
}
.pc-pw-scrub-ticks { position: absolute; left: 0; right: 0; top: -3px; bottom: -3px; pointer-events: none; }
.pc-pw-scrub-ticks i { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: rgba(148, 163, 184, 0.3); }
.pc-pw-scrub-ticks i.is-ten { top: -3px; bottom: -3px; background: rgba(203, 213, 225, 0.55); }
.pc-pw-scrub-thumb {
  position: absolute; top: 50%; left: calc(7px + (100% - 14px) * var(--p)); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: #fff; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(255, 24, 1, 0.35), 0 2px 6px rgba(0, 0, 0, 0.6); transition: transform 0.15s ease;
}
.pc-pw-scrub:hover .pc-pw-scrub-thumb, .pc-pw-scrub.is-scrubbing .pc-pw-scrub-thumb { transform: scale(1.18); }
.pc-pw-scrub-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: none;
}
.pc-pw-scrub-input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 40px; }
.pc-pw-scrub-input::-moz-range-thumb { width: 14px; height: 40px; border: 0; }
/* EN VIVO / ENSAYO: sin controles de replay (la sesión va sola, a la
   par de la transmisión); queda la caja de sesión, el reloj y el DELAY
   de TV. El mapa GPS todavía no se alimenta en vivo: se esconde. */
.is-live-mode .pc-pw-transport, .is-live-mode .pc-pw-scrub, .is-live-mode .pc-pw-seg { display: none; }
/* Mapa: en vivo/diferido/ensayo se usa el canvas (posiciones GPS de live_pos); el SVG y la ventana de boxes son del replay viejo. */
.pc-pw-map-live, .is-live-mode .pc-pw-map-replay { display: none; }
.is-live-mode #ltMapCard.is-map-live .pc-pw-map-live { display: block; }
.is-live-mode #ltMapCard:not(.is-map-live) { display: none; }
/* Mapa en vivo (Gemini 07/11): cabecera título + leyenda de sectores; el canvas sin
   recuadro propio (gana ancho) y con el alto que le pone app.js según el trazado. */
.pc-pw-map-head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; gap: 8px; }
.is-live-mode #ltMapCard.is-map-live .pc-pw-map-legend { display: inline-flex; align-items: center; gap: 10px; }
.pc-pw-map-lg { display: inline-flex; align-items: center; gap: 4px; font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 10px; color: #94a3b8; letter-spacing: 0.04em; }
.pc-pw-map-lg::before { content: ''; width: 10px; height: 3px; border-radius: 2px; background: currentColor; }
.pc-pw-map-lg-1::before { color: #e11d48; } .pc-pw-map-lg-2::before { color: #38bdf8; } .pc-pw-map-lg-3::before { color: #eab308; }
#ltMapCanvas { aspect-ratio: auto; height: 240px; background: transparent; border: 0; border-radius: 0; }
#ltMapCard.is-map-live > .relative { margin: 0 -4px; }
#ltMapCanvas { width: 100%; }
.is-live-mode .pc-pw-timeline { flex: 0 0 auto; min-width: 0; }
.is-live-mode .pc-pw-tvsync { margin-left: auto; }
/* Velocidad: control segmentado */
.pc-pw-seg { display: inline-flex; align-items: stretch; gap: 2px; height: var(--con-h); padding: 3px; background: #07090f; border: 1px solid #242c42; border-radius: var(--con-r); }
.pc-pw-seg-btn {
  border: none; background: transparent; color: #8b95ad; cursor: pointer; padding: 0 10px; border-radius: 7px;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.64rem; letter-spacing: 0.04em;
  transition: color 0.15s ease, background 0.15s ease;
}
.pc-pw-seg-btn:hover { color: #fff; }
.pc-pw-seg-btn.active { background: #1e2740; color: #fff; box-shadow: inset 0 -2px 0 var(--f1-red); }
/* TV delay */
.pc-pw-tvsync {
  display: inline-flex; align-items: center; gap: 7px; height: var(--con-h); padding: 0 5px 0 12px;
  background: #07090f; border: 1px solid #242c42; border-radius: var(--con-r);
}
.pc-pw-tvsync .pc-pw-ico { color: #38bdf8; }
.pc-pw-tvsync-lbl { font-family: 'Orbitron', sans-serif; font-size: 0.6rem; font-weight: 800; color: #38bdf8; letter-spacing: 0.08em; }
.pc-pw-tvsync-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0;
  background: #121828; border: 1px solid #2f3852; color: #e2e8f0; border-radius: 6px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1;
}
.pc-pw-tvsync-btn:hover { border-color: #38bdf8; color: #fff; }
.pc-pw-tvsync-val { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.9rem; color: #fff; min-width: 30px; text-align: center; }
/* Diferido (pedido del dueño 01/11): el valor abre un panel con
   "sincronizar con la tele", saltos de 10 s y volver a EN VIVO. */
.pc-pw-tvsync { position: relative; }
.pc-pw-tvsync.is-on { border-color: #38bdf8; box-shadow: 0 0 0 1px rgba(56,189,248,.25); }
button.pc-pw-tvsync-val { background: #121828; border: 1px solid #2f3852; border-radius: 6px; height: 28px; padding: 0 6px; cursor: pointer; }
button.pc-pw-tvsync-val:hover, button.pc-pw-tvsync-val[aria-expanded="true"] { border-color: #38bdf8; }
.pc-pw-tvsync-btn { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pc-pw-tvsync-btn.is-wide { width: auto; flex: 1 1 0; height: 36px; font-size: 0.95rem; }
.pc-pw-tvsync-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; max-width: calc(100vw - 24px);
  padding: 14px; background: #0b1020; border: 1px solid #2f3852; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 10px;
}
.pc-pw-tvsync-pop[hidden] { display: none; }
.pc-pw-tvsync-pop-t { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.06em; color: #38bdf8; }
.pc-pw-tvsync-pop-s, .pc-pw-tvsync-pop-msg { margin: 0; font-size: 0.8rem; line-height: 1.35; color: #cbd5e1; }
.pc-pw-tvsync-pop-msg:empty { display: none; }
.pc-pw-tvsync-pop-msg { color: #7dd3fc; }
.pc-pw-tvsync-go {
  height: 44px; border: 0; border-radius: 8px; background: #38bdf8; color: #04121f; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.04em;
}
.pc-pw-tvsync-go[hidden] { display: none; }
.pc-pw-tvsync-go:active { transform: scale(.98); }
.pc-pw-tvsync-steps { display: flex; gap: 6px; }
.pc-pw-tvsync-live {
  height: 36px; border: 1px solid #2f3852; border-radius: 8px; background: transparent; color: #e2e8f0; cursor: pointer;
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.05em;
}
.pc-pw-tvsync-live:hover { border-color: #38bdf8; }
@media (max-width: 700px) {
  .pc-pw-con-row { padding: 10px 12px; gap: 10px; }
  .pc-pw-gp-box { flex-basis: 100%; }
  /* Estado en una sola línea, a lo ancho, sin separador colgando */
  .pc-pw-status { width: 100%; justify-content: space-between; gap: 8px; padding: 0 12px; }
  /* Si el estado es largo (ESPERANDO LARGADA, VIRTUAL SAFETY CAR, BANDERA A
     CUADROS...) y no entra en una línea, baja a dos en vez de cortarse. */
  .pc-pw-status { flex-wrap: wrap; height: auto; min-height: var(--con-h); row-gap: 4px; padding-top: 6px; padding-bottom: 6px; }
  .pc-pw-meteo { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .pc-pw-meteo-chip { justify-content: center; padding: 0 4px; gap: 3px; white-space: nowrap; }
  .pc-pw-meteo-val { font-size: 0.82rem; }
  /* Fila A: anterior · PLAY a lo ancho · siguiente
     Fila B: vuelta + barra · Fila C: velocidad + delay */
  .pc-pw-transport { order: 1; width: 100%; }
  .pc-pw-play { flex: 1 1 auto; }
  .pc-pw-timeline { order: 2; flex-basis: 100%; min-width: 0; gap: 10px; }
  .pc-pw-seg { order: 3; flex: 1 1 auto; }
  .pc-pw-seg-btn { flex: 1 1 0; padding: 0; }
  .pc-pw-tvsync { order: 4; padding-left: 10px; gap: 5px; }
  .pc-pw-tvsync-lbl { display: none; }
  .pc-pw-tvsync-val { min-width: 26px; }
}
@media (max-width: 420px) {
  .pc-pw-meteo-chip .pc-pw-ico { display: none; }
  .pc-pw-lapbox { min-width: 84px; }
}
.pc-pw-workspace { display: flex; flex-direction: column; gap: 16px; }
.pc-pw-below-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .pc-pw-below-grid { grid-template-columns: 1fr; } }
/* En vivo la lista de agentes no se carga (solo en repetición): sin esto queda un recuadro vacío. */
.pc-pw-below-grid > div:has(> #ltAgentsFeed:empty) { display: none; }
/* En vivo el mapa también se oculta: Dirección de carrera queda sola y ocupa todo el ancho (antes un tercio y un hueco al lado). */
.is-live-mode .pc-pw-below-grid:has(#ltAgentsFeed:empty) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Con el mapa en vivo (Gemini 07/11): en compu se lleva la columna grande (≈600 px) y queda apaisado. Va después de la regla de arriba porque empatan en especificidad. */
@media (min-width: 1001px) {
  .is-live-mode .pc-pw-below-grid:has(#ltMapCard.is-map-live) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
  .is-live-mode .pc-pw-below-grid:has(#ltMapCard.is-map-live):has(#ltNewsBox.hidden) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
/* --lt-wrap-pad-x: margen lateral del contenedor de la tabla. La columna
   PILOTO fija (sticky) usa left: -margen para pegarse al borde REAL del
   contenedor al deslizar; con left:0 se pegaba DESPUÉS del margen y por
   esa franja de 3-6px se asomaba lo que pasaba por debajo (la rayita
   "|" que se veía a la izquierda de PILOTO). */
.pc-pw-table-wrap { --lt-wrap-pad-x: 6px; overflow-x: auto; padding: 8px var(--lt-wrap-pad-x) 12px; border-radius: 8px; }
.pc-pw-tick-flash { animation: pcPwTickFlash 0.55s ease-out; }
@keyframes pcPwTickFlash {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 24, 1, 0.55), 0 0 18px rgba(255, 24, 1, 0.28); }
  100% { box-shadow: inset 0 0 0 1px rgba(255, 24, 1, 0); }
}
/* Antes: width:auto + min-width:980px. Eso evitaba que las CAJAS viejas
   quedaran con aire alrededor en pantallas anchas — pero ya no hay
   cajas, hay texto plano, y el efecto real en una tablet ancha era
   que la tabla se quedaba en ~980px de ancho natural y sobraba una
   franja oscura vacía a la derecha, mientras el texto seguía chico:
   ese espacio sobrante nunca se usaba para agrandar nada.
   Ahora width:100% para que la tabla use todo el contenedor. El
   reparto de anchos es table-layout:fixed con <colgroup> y anchos en
   em del número (ver "ANCHOS FIJOS DE COLUMNA" más abajo): con
   table-layout:auto Safari de iPhone dejaba columnas iguales con
   anchos distintos según el largo de su título. */
/* border-spacing 0: filas PEGADAS como en Formula Timer (pedido del
   usuario); lo que separa cada piloto es el color alternado de la fila. */
.pc-pw-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 980px; }
.pc-pw-table thead th {
  font-family: 'Orbitron', sans-serif; font-size: 0.56rem; font-weight: 800; color: #7c8aa6;
  padding: 5px 6px; text-align: center; letter-spacing: 0.06em;
  background: #07090f; border-top: 1px solid #232a3d; border-bottom: 1px solid #232a3d;
  /* Los títulos pueden partirse en 2 líneas: en una sola línea
     ("SECTOR 1", "INTERVALO", "AL LÍDER") forzaban el ancho de su
     columna aunque los datos necesitaran menos. */
  white-space: normal; line-height: 1.25;
}
/* Encabezado de 2 filas: los sectores van en 6 columnas, agrupadas bajo
   ÚLTIMA VUELTA (S1·S2·S3) y MEJOR PROPIO (S1·S2·S3); el resto de las
   columnas ocupa las 2 filas (rowspan). Las puntas redondeadas van por
   clase (.pc-pw-th-first / .pc-pw-th-hist) y no por :first-child /
   :last-child, porque en la 2da fila esos selectores caerían en S1 y
   S3 de los sectores.
   (Las filas de pilotos van pegadas, border-spacing 0, así que entre
   las 2 filas del encabezado tampoco queda hueco.) */
.pc-pw-table thead th.pc-pw-th-first { text-align: left; padding-left: 10px; border-left: 1px solid #232a3d; border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.pc-pw-table thead th.pc-pw-th-hist { border-right: 1px solid #232a3d; border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
/* Mismas líneas divisorias en el encabezado (ver .pc-pw-row td). */
.pc-pw-table thead th:not(.pc-pw-th-hist) { box-shadow: inset -1px 0 0 #3b4868; }
.pc-pw-table thead th.pc-pw-th-group {
  color: #a9b6cf; border-bottom: none; padding-bottom: 3px;
  box-shadow: inset -1px 0 0 #3b4868, inset 0 -1px 0 #2a3350;
}
.pc-pw-table thead .pc-pw-th-subrow th { border-top: none; padding-top: 2px; color: #7c8aa6; }
.pc-pw-row td {
  /* FILAS ALTERNADAS (estilo Formula Timer, pedido del usuario): azul
     marino oscuro / azul un poco más claro, colores planos y opacos
     (la columna PILOTO es sticky y necesita fondo opaco). Sin bordes
     arriba/abajo ni sombra: las filas van pegadas y el cambio de color
     es lo que separa a cada piloto. */
  background: #0d1530;
  border: none;
  padding: 5px 3px; vertical-align: middle; white-space: nowrap;
}
.pc-pw-row:nth-child(even) td { background: #16213f; }
/* LÍNEAS DIVISORIAS ENTRE COLUMNAS: una línea gris fina a la derecha de
   cada celda (menos la última) para separar columnas como en un timing
   de TV (pedido del usuario). Va como box-shadow inset y no como borde:
   un borde suma 1px por columna (15px en total) y empujaba la tabla a
   scroll horizontal; la sombra no ocupa lugar. En modo tarjeta (celular)
   no se ven: ahí las celdas no llevan sombra. */
/* Línea sólida gris azulada (#3b4868), bien notoria como en Formula
   Timer (pedido del usuario; antes semitransparente 0.16 -> 0.28). */
.pc-pw-row td:not(:last-child) { box-shadow: inset -1px 0 0 #3b4868; }
/* Columna PILOTO fija (sticky) cuando la tabla necesita scroll
   horizontal (tablet parada, iPad común acostado): al deslizar hacia
   los sectores siempre se ve de quién es cada fila. El fondo tiene que
   ser opaco — el tinte de escudería es semitransparente, así que va
   encima de un color sólido (#111522) para que los números que pasan
   por debajo no se transparenten. En pantallas donde entra todo, sticky
   no hace nada.
   COLOR PLENO del equipo (el mismo de la línea de la izquierda) con
   textura carbono 135° suave encima, pedido del usuario: el tinte
   oscuro de antes se veía apagado/"sombreado". Las rayas son más
   suaves que las del .carbon-panel del sitio (blanco 8% / negro 10% en
   vez de 4.5% / 35%) para que el color siga fuerte y el texto se lea.
   Texto con var(--team-ink): negro, o blanco en Ferrari/Red Bull.
   width:1% = la columna se ajusta a su contenido (posición + nombre +
   escudería) y no se queda con el espacio libre de la pantalla, que
   dejaba un hueco después del código de escudería. */
.pc-pw-row td:first-child {
  padding-left: 3px; padding-right: 3px;
  position: sticky; left: calc(-1 * var(--lt-wrap-pad-x, 0px)); z-index: 2;
}
/* CAJA DE COLOR DEL PILOTO (como en Formula Timer): con las filas
   pegadas, pintar la celda entera juntaba dos pilotos seguidos del mismo
   equipo (LEC + HAM) en un solo bloque rojo. Ahora el color pleno +
   carbono es una caja redondeada DENTRO de la celda, 3px separada de los
   bordes, y la celda conserva el azul alternado de la fila. */
.pc-pw-row td:first-child::before {
  content: ''; position: absolute; inset: 3px; border-radius: 6px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 3px, rgba(0, 0, 0, 0.10) 3px, rgba(0, 0, 0, 0.10) 6px), rgb(var(--team-rgb, 255, 24, 1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.pc-pw-row td:first-child .pc-pw-driver-brick { position: relative; }
.pc-pw-table thead th.pc-pw-th-first { position: sticky; left: calc(-1 * var(--lt-wrap-pad-x, 0px)); z-index: 3; }
.pc-pw-row td:last-child { padding-right: 6px; }
/* ABANDONO (DNF): toda la fila en sombra (más oscura y casi sin color,
   incluida la caja del piloto) pero legible; va al fondo de la tabla. */
.pc-pw-row.is-out td { filter: saturate(0.3) brightness(0.6); }
/* LADRILLO DEL PILOTO.
   Antes: el ladrillo entero se pintaba SÓLIDO con el color de la
   escudería + una textura de rayas diagonales encima + text-shadow —
   para colores de equipo claros (Haas blanco, Williams celeste,
   McLaren naranja) eso le comía contraste justo al código del piloto,
   que es el dato más importante de la fila ("como una sombra que
   confunde" — texto sobre fondo saturado + textura compitiendo).
   Ahora: fondo oscuro neutro fijo (igual que el badge de escudería,
   mismo lenguaje visual), SIEMPRE con texto blanco de alto contraste
   sin importar el color del equipo, y la identidad de escudería pasa
   a una barrita de color lateral (acento), no a todo el fondo.
   Después: SIN CAJA PROPIA. La celda PILOTO tenía 3 cajas una dentro de
   otra (la fila con su línea de color, el ladrillo con OTRA línea de
   color + borde + fondo, y la insignia de escudería con su propio
   borde): dos líneas de color pegadas y un relleno que hacía la fila
   más alta (el ladrillo medía 40px vs 28px del texto). Pedido del
   usuario: minimalismo/armonía. Ahora queda una sola línea de color
   (la de la fila, .pc-pw-row td:first-child) y nombre + escudería
   van como texto directo sobre la fila. */
/* 3 COLUMNAS PAREJAS (pedido del usuario: espacios proporcionales):
   posición | siglas | escudería, cada una con ancho fijo medido para el
   peor caso (ver min-width de .pc-pw-pos, .pc-pw-tla y
   .pc-pw-team-badge), el MISMO espacio entre ellas (gap) y el mismo
   margen a los dos costados de la celda (padding = gap). Así quedan
   alineadas en columna entre todas las filas y ninguna queda "sola"
   pegada a un borde. */
.pc-pw-driver-brick {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--pilot-gap);
  width: 100%; max-width: 100%; padding: 0 var(--pilot-gap);
  color: var(--team-ink, #fff); font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(0.82rem, 0.5rem + 0.55vw, 1.08rem);
}
/* Tipografía fluida con clamp() en vez de un tamaño fijo por cada uno
   de los 3 anchos de pantalla: antes el texto saltaba de golpe entre
   3 tamaños al cruzar un breakpoint, y en el tramo intermedio (tablet)
   la caja se achicaba más rápido que la letra, quedando recortada o
   descuadrada. Con clamp(mínimo, preferido-según-ancho, máximo) el
   tamaño cambia de a poco en CUALQUIER ancho de pantalla, sin saltos
   ni huecos — y nombres/tiempos escalan con la misma lógica, así
   guardan proporción entre sí en vez de verse sueltos. */
/* min-width tiene que alcanzar para 2 dígitos ("10".."22") al tamaño
   MÁXIMO del clamp de arriba, si no el "0"/"1" de la segunda cifra
   queda tapado por la TLA de al lado (bug real, visto en captura:
   "1BEA" en vez de "10 BEA"). flex-shrink:0 para que el ladrillo
   nunca lo achique a costa del número de posición.
   1.67em = ancho exacto de "22" en Orbitron 900 (medido: 1.66em): las
   siglas quedan todas alineadas en la misma vertical. Alineado a la
   IZQUIERDA (pedido del usuario): el número va pegado a la línea de
   color y, en las posiciones 1-9, el lugar del segundo dígito queda
   entre el número y las siglas en vez de antes del número. */
.pc-pw-pos { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(0.78rem, 0.42rem + 1vw, 1.3rem); min-width: 1.67em; flex-shrink: 0; text-align: left; color: var(--team-ink, #94a3b8); }
/* Código de escudería (FER, MER, ...): texto en el color del equipo,
   sin caja ni barrita propia (ver nota del ladrillo arriba: era la
   tercera caja anidada dentro de la celda PILOTO). */
.pc-pw-team-badge {
  /* 2.8em = código más ancho en Orbitron 800 (VRB, medido 2.78em). */
  display: inline-flex; align-items: center; min-width: 2.8em;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem);
  letter-spacing: 0.04em; flex-shrink: 0;
}
.pc-pw-team-badge-bar { display: none; }
/* El código trae su color de equipo en un style inline (ltTeamBadgeHtml);
   sobre el color pleno del equipo desaparecería, así que va con la tinta
   de la celda. */
.pc-pw-driver-brick .pc-pw-team-badge span { color: var(--team-ink, #fff) !important; }
/* 2.9em = siglas más anchas en Orbitron 900 (LAW, medido 2.88em; la más
   angosta es LIN, 1.95em). Centradas en su columna: con siglas cortas el
   aire queda repartido igual a los dos lados, no todo de un lado. */
.pc-pw-tla { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem); letter-spacing: 0.04em; min-width: 2.9em; text-align: center; flex-shrink: 0; }
/* Antes GOMA/AL LÍDER/INTERVALO/ÚLT.VUELTA/MEJOR VUELTA eran cajas con
   fondo propio y borde — "demasiadas cajas", pedido explícito del
   usuario de sacarlas: ahora es texto plano, sentado directo sobre el
   fondo de la fila.
   El color de escudería en cada número (commit d4b058d) quedó MAL —
   el usuario lo pidió revertido explícitamente ("no tenías que poner
   el color de las escuderías en los números"): vuelve a un gris claro
   neutro parejo, igual para las 11 escuderías, y el color sigue
   reservado solo para cuando el dato significa algo puntual (récord,
   mejora propia, PIT, ganancia de posición). Lo que sí pidió el
   usuario es que el número sea grande y ancho — eso se resuelve con
   un tamaño clamp() mucho mayor + la tabla ahora ocupando el 100%
   del ancho disponible (ver .pc-pw-table más arriba), no con color. */
.pc-pw-cell-plain {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 2px 3px; width: 100%;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: var(--nf, clamp(0.845rem, 0.48rem + 0.96vw, 1.44rem));
  color: #e2e8f0;
}
/* CELDA PINTADA: cada celda de tiempo es una caja que se pinta entera
   — violeta = récord de carrera (vuelta o sector), verde = mejor marca
   propia. Número blanco en celdas sin pintar y NEGRO en las pintadas
   (estilo Formula Timer, pedido del usuario). Por eso violeta y verde
   son tonos claros/brillantes: con los oscuros de antes (#6a1db8,
   #0f7a37) el negro tenía contraste 2.5-3.9 (ilegible); con estos,
   violeta 5.9-7.8 y verde 9.1-12.9 (medido, mínimo legible 4.5). Sin naranja en los tiempos
   (el naranja queda solo para las barras de mini-sectores). Clases
   puestas por fillCls() en app.js en ÚLT. VUELTA, MEJOR VUELTA y las 6
   columnas de sectores.
   Antes se pintaba el fondo de la <td> entera: en escritorio quedaba un
   rectángulo de puntas rectas pegado a los bordes de la fila ("muy
   rectas las puntas", pedido del usuario), mientras que en celular se
   veía redondeado. Ahora el color es una capa (::before) que cubre la
   celda dejando 3px parejos a los 4 lados: puntas redondeadas, brillo
   arriba y sombra sutil. Después (pedido del usuario) la caja pasó a
   abrazar el número en vez de llenar la celda: ver abajo. */
/* Caja pegada al número (variante "A", elegida por el usuario sobre una
   maqueta): ya no llena la celda, abraza el número casi a ras arriba y
   abajo, con puntas redondeadas, y deja ver el azul de la fila alrededor.
   Ancho FIJO por tipo (vuelta / sector) = peor caso + 8px, centrada:
   todas las cajas de vuelta miden igual entre sí, y todas las de sector
   también, aunque el número sea más corto. */
.pc-pw-row td.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-fill-p .pc-pw-sec-chip,
.pc-pw-row td.pc-pw-fill-g .pc-pw-cell-plain, .pc-pw-row td.pc-pw-fill-g .pc-pw-sec-chip {
  margin: 0 auto; padding: 0; border-radius: 6px; line-height: 1.12;
  color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 2px rgba(0, 0, 0, 0.35);
}
/* Caja pegada al número: 3 px de aire a cada costado y el número centrado
   arriba/abajo (la letra lo dejaba corrido hacia arriba) (pedido del dueño 24/10:
   antes sobraba a los costados en la web actual y faltaba en la nueva, que usa
   otra letra). Cifras de ancho fijo para que todas las cajas de una columna
   midan igual y la columna quede alineada. */
.pc-pw-row td.pc-pw-c-lap.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-c-lap.pc-pw-fill-g .pc-pw-cell-plain,
.pc-pw-row td.pc-pw-c-sec.pc-pw-fill-p .pc-pw-sec-chip, .pc-pw-row td.pc-pw-c-sec.pc-pw-fill-g .pc-pw-sec-chip { width: max-content; padding: 0.13em 3px 0; font-variant-numeric: tabular-nums; }
/* Paleta única (24/10): el mismo violeta/verde/naranja en cajas y mini sectores,
   colores plenos sin brillo (el neón venía del resplandor). Número blanco en los dos. */
.pc-pw-row td.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-fill-p .pc-pw-sec-chip { background: #a00cff; }
.pc-pw-row td.pc-pw-fill-g .pc-pw-cell-plain, .pc-pw-row td.pc-pw-fill-g .pc-pw-sec-chip { background: #0b9a47; }
/* La etiqueta "PB" (celular) también en negro sobre la celda pintada. */
.pc-pw-fill-p .pc-pw-sec-tag, .pc-pw-fill-g .pc-pw-sec-tag { opacity: 0.7; }
/* Indicador PIT: reemplaza la celda de INTERVALO mientras el piloto
   está DENTRO de la ventana real de su parada (ver isInPit en app.js,
   calculado con el date/lane_duration real de OpenF1 — nunca
   inventado). Texto violeta grande con resplandor, sin caja, bien
   visible igual que un timing real de F1 cuando un auto está en
   boxes. */
.pc-pw-cell-plain.pc-pw-pit-badge {
  color: #e9b8ff;
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 0.95em; letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(192, 38, 245, 0.85), 0 0 2px rgba(192, 38, 245, 0.9);
}
/* ANILLO DE COMPUESTO + VUELTAS.
   El color por compuesto (S/M/H/I/W) ya estaba bien, se mantiene tal
   cual. Lo que se afina: borde más fino (2px -> 1.3px, "algo muy
   fino" pedido), un degradé sutil adentro en vez de negro plano para
   que tenga un poco de profundidad/onda, y un resplandor tenue del
   color del compuesto en vez de un anillo seco. */
/* Neumático SVG (ltTyreIcon en app.js): mismo ícono y mismo tamaño en
   TYRE y en HISTORIAL GOMAS. */
.pc-pw-tyre {
  display: inline-block; width: var(--tyre, 20px); height: var(--tyre, 20px); flex-shrink: 0; line-height: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}
.pc-pw-tyre svg { display: block; width: 100%; height: 100%; }
/* MATRIZ DE MINI-SECTORES LED (segmentos reales de OpenF1 por sector).
   Una columna por sector (SECTOR 1/2/3, título en el encabezado).
   SIN CAJA (pedido del usuario): las barras van directo sobre la fila,
   como los números, separadas de las otras columnas solo por las
   líneas divisorias. Las barras son una capa (position: absolute) que
   ocupa la celda dejando 3px a los 4 lados — igual que las celdas
   pintadas violeta/verde —, así tienen el alto completo de la fila sin
   agrandarla nunca. 2px de separación entre barras (elegido por el
   usuario) y cada barra se reparte el ancho (flex 1): más anchas que
   antes, sin la caja y su relleno comiéndose lugar.
   Como la capa absoluta no le da ancho a la columna, el ::after de la
   celda es un relleno invisible con el ancho mínimo que tenían estas
   columnas (medido: ~44px a 1024, ~50 a 1180) para no generar scroll;
   en pantallas anchas la columna sigue creciendo con el espacio libre. */
.pc-pw-row td.pc-pw-c-ms { position: relative; }
.pc-pw-row td.pc-pw-c-ms::after { content: ''; display: block; width: clamp(44px, 3.4vw + 10px, 64px); height: 0; }
.pc-pw-ms-box { position: absolute; inset: 3px; display: flex; align-items: stretch; justify-content: center; }
.pc-pw-ms-dots { display: flex; align-items: stretch; justify-content: center; gap: 2px; width: 100%; height: 100%; }
.pc-pw-ms-empty { align-self: center; font-family: 'Rajdhani', sans-serif; font-size: 0.8rem; font-weight: 700; color: #4b5569; }
/* Barra apagada un poco más clara que antes (#263044): sin la caja
   negra de fondo se perdía contra el fondo de la fila. */
/* Tope de 11px por barra: en pantallas muy anchas la columna se lleva
   mucho espacio libre y sin tope cada barra llegaba a 14px (gruesas);
   con el tope el grupo queda centrado. */
.pc-pw-ms-dot { flex: 1 1 0; min-width: 0; max-width: 11px; height: 100%; border-radius: 2px; background: #2c3752; }
.pc-pw-ms-dot.y { background: #ffa400; }
.pc-pw-ms-dot.g { background: #0b9a47; }
.pc-pw-ms-dot.p { background: #a00cff; }
.pc-pw-ms-dot.pit { background: #334155; border: 1px solid #475569; }
/* SECTORES NUMÉRICOS: 6 columnas propias (3 ÚLTIMA VUELTA + 3 MEJOR
   PROPIO). Igual que ÚLT. VUELTA / MEJOR VUELTA (.pc-pw-cell-plain):
   número blanco directo sobre la celda, sin caja interna. El color
   (violeta récord / verde mejor propio) pinta la <td> entera, ver
   .pc-pw-fill-p / .pc-pw-fill-g. MISMO tamaño que las vueltas y TODOS
   los números de la tabla en seminegrita (600) en vez de negrita: trazo
   más fino, menos saturado (pedido del usuario). Tamaño 4% menor que
   el de antes (clamp 0.88/1vw/1.5 -> 0.845/0.96vw/1.44): es lo que
   libera el ancho para el aire extra dentro de las celdas pintadas sin
   volver a tener scroll desde 1180px (medido con la fuente real). */
.pc-pw-sec-chip {
  display: flex; align-items: center; justify-content: center; gap: 4px; line-height: 1.15;
  padding: 2px 3px; text-align: center; width: 100%;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: var(--nf, clamp(0.845rem, 0.48rem + 0.96vw, 1.44rem)); color: #e2e8f0;
}
/* ANCHOS FIJOS DE COLUMNA (table-layout: fixed + <colgroup>).
   Antes cada <td> llevaba width: calc(...) con la tabla en modo auto:
   Chrome lo respetaba, pero Safari de iPhone repartía el ancho según el
   largo del TÍTULO y las columnas de vuelta/sectores salían desparejas.
   Ahora la tabla no mide contenido: cada columna recibe su medida de
   <col> (y la misma en su <th>), calculada para el peor caso de toda la
   carrera, medido con las fuentes reales. Los dígitos de Rajdhani NO son
   de ancho fijo (sin tabular-nums), por eso el peor caso:
     vuelta "2:08.585" = 3.47em · sector "48.880" = 2.86em ·
     intervalo "+105.930" = 3.65em (em = tamaño del número, --nf)
   + 12px de aire (td + número). Si la pantalla sobra, el navegador
   reparte el sobrante en proporción entre todas las columnas, así que
   las que miden igual siguen midiendo igual. */
.pc-pw-table {
  table-layout: fixed;
  --nf: clamp(0.845rem, 0.48rem + 0.96vw, 1.44rem);
  --pilot-gap: clamp(8px, 0.7vw, 12px);
  --tyre: clamp(20px, 15px + 0.9vw, 26px);
  --w-pil: calc(1.67 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 2.9 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 2.8 * clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) + 4 * var(--pilot-gap) + 8px);
  --w-tyre: calc(1.3 * var(--nf) + var(--tyre) + 16px);
  --w-gap: calc(3.7 * var(--nf) + 12px);
  --w-lap: calc(3.5 * var(--nf) + 12px);
  --w-ms: clamp(50px, 3.4vw + 16px, 70px);
  --w-sec: calc(2.9 * var(--nf) + 12px);
  --w-hist: calc(3 * var(--tyre) + 18px);
}
.pc-pw-table th, .pc-pw-table td { box-sizing: border-box; }
.pc-pw-table .pc-pw-w-pil { width: var(--w-pil); }
.pc-pw-table .pc-pw-w-tyre { width: var(--w-tyre); }
.pc-pw-table .pc-pw-w-gap { width: var(--w-gap); }
.pc-pw-table .pc-pw-w-lap { width: var(--w-lap); }
.pc-pw-table .pc-pw-w-ms { width: var(--w-ms); }
.pc-pw-table .pc-pw-w-sec { width: var(--w-sec); }
.pc-pw-table .pc-pw-w-hist { width: var(--w-hist); }
.pc-pw-row td.pc-pw-c-lap, .pc-pw-row td.pc-pw-c-sec { font-size: var(--nf); }
/* Etiqueta "PB" delante del tiempo: solo en celular (ver media query
   <700px), donde no hay encabezados; en tablet/escritorio la aclara el
   título agrupado MEJOR PROPIO. */
.pc-pw-sec-tag { display: none; font-size: 0.6em; font-weight: 700; opacity: 0.6; letter-spacing: 0.04em; }

/* Valor "heredado" de la vuelta anterior, todavía no confirmado en la
   vuelta en curso (ver nota en app.js junto a .is-prev) — atenuado
   para que se note que está por actualizarse, sin dejar la casilla
   vacía mientras tanto. */
.pc-pw-sec-chip.is-prev { opacity: 0.5; }
/* HISTORIAL DE STINTS (GOMAS USADAS EN LA CARRERA)
   Bug del "hueco vacío" (reportado varias veces): la columna medía
   ~105px pero adentro había UN chip de 15px pegado a la izquierda.
   El ancho no lo decidía el contenido sino dos cosas ajenas a él:
   1) el título "HISTORIAL GOMAS" en UNA sola línea (nowrap), que por
      sí solo ya obligaba a ~95px de ancho mínimo;
   2) una caja interna de ancho fijo (72px, y 40px en tablet) con los
      chips alineados a la izquierda.
   Ahora: el título puede partirse en 2 líneas (HISTORIAL / GOMAS),
   la columna usa width:1% — en table-layout:auto eso significa
   "achicate a tu contenido y no recibas espacio sobrante" (el
   sobrante va a las columnas con números grandes) — y los chips van
   en una fila centrada, sin caja fija, del mismo tamaño que el anillo
   de compuesto de la columna TYRE. La columna mide lo que mide la
   fila con más paradas, nada más. */
.pc-pw-table th.pc-pw-th-hist, .pc-pw-table td:last-child { text-align: center; }
.pc-pw-table thead th.pc-pw-th-hist { white-space: normal; line-height: 1.25; }
/* 4 gomas (práctica): un poco más chicas para que entren en la columna. */
.pc-pw-stint-history.is-many .pc-pw-tyre { width: calc(var(--tyre, 20px) * 0.78); height: calc(var(--tyre, 20px) * 0.78); }
.pc-pw-stint-history { display: inline-flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 2px; }
/* RECTA DE VENTANA DE BOXES + TRAZADO GPS REAL */
.pc-pw-map-driver { filter: drop-shadow(0 0 1.6px rgba(0, 0, 0, 0.9)); transition: transform var(--lt-tick-s, 0.4s) linear, opacity 0.5s ease; }
.pc-pw-map-driver.is-estimated circle { opacity: 0.82; }
.pc-pw-map-notice {
  position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 0 14px; background: rgba(6, 8, 13, 0.72); border-radius: 10px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; color: #94a3b8; pointer-events: none;
}
.pc-pw-trackmap { width: 100%; aspect-ratio: 1.3; background: #06080d; border: 1px solid #22293d; border-radius: 10px; }
.pc-pw-pitwindow-track { position: relative; height: 8px; border-radius: 4px; background: #0a0c13; border: 1px solid #22293d; overflow: visible; }
.pc-pw-pitwindow-band { position: absolute; top: -2px; bottom: -2px; background: rgba(56, 189, 248, 0.18); border-left: 1px solid rgba(56, 189, 248, 0.5); border-right: 1px solid rgba(56, 189, 248, 0.5); }
/* FEED DE DIRECCIÓN DE CARRERA */
/* (07/11) Versión definitiva de Gemini: hora en chapa propia y grande, todo más legible al sol. */
#ltRaceControlFeed { max-height: 440px; }
.pc-pw-rc-item { --rc: #64748b; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px 11px 14px; border-radius: 3px 10px 10px 3px; background: #0b0e17; border: 1px solid #252d44; border-left: 5px solid var(--rc); }
.pc-pw-rc-item.rc-yellow { --rc: #facc15; background: rgba(250, 204, 21, 0.08); }
.pc-pw-rc-item.rc-red { --rc: #ef4444; background: rgba(239, 68, 68, 0.10); }
.pc-pw-rc-item.rc-green { --rc: #22d369; background: rgba(34, 211, 105, 0.06); }
.pc-pw-rc-item.rc-sc { --rc: #f59e0b; background: rgba(245, 158, 11, 0.11); }
.pc-pw-rc-item.rc-blue { --rc: #3b82f6; background: rgba(59, 130, 246, 0.07); }
.pc-pw-rc-item.rc-warn { --rc: #fb923c; background: rgba(251, 146, 60, 0.07); }
.pc-pw-rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-pw-rc-tag { font-family: var(--f-ui); font-weight: 700; font-size: 12px; line-height: 1.15; letter-spacing: 0.08em; color: var(--rc); }
/* (07/11) Noticias en Geist (letra de la web, se lee como texto); la hora sigue en Rajdhani. OK del dueño. */
.pc-pw-rc-title { font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; }
.pc-pw-rc-txt { font-family: var(--f-ui); font-weight: 500; font-size: 16px; line-height: 1.35; color: #ffffff; overflow-wrap: anywhere; }
.pc-pw-rc-when { flex-shrink: 0; align-self: flex-start; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; color: #f1f5f9; background: #131826; border: 1px solid #2a344d; border-top: 2px solid var(--rc); border-radius: 6px; padding: 6px 9px 5px; white-space: nowrap; }
.pc-pw-rc-empty { font-family: var(--f-ui); font-size: 15px; color: #8b93a7; }
/* (07/11) Noticias y Dirección de carrera como desplegables (toque en el título). */
.pc-pw-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; -webkit-tap-highlight-color: transparent; user-select: none; }
.pc-pw-fold > summary::-webkit-details-marker { display: none; }
.pc-pw-fold > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 0; transition: transform .15s; flex-shrink: 0; }
.pc-pw-fold:not([open]) > summary::after { transform: rotate(-45deg); margin: 0 6px 0 0; }
.pc-pw-news-note { font-family: var(--f-ui); font-size: 13px; line-height: 1.4; color: #8b93a7; padding: 2px 2px 0; }
@media (min-width: 1024px) {
  .pc-pw-rc-item { padding: 12px 16px; gap: 16px; }
  .pc-pw-rc-tag { font-size: 12.5px; }
  .pc-pw-rc-txt { font-size: 17px; }
  .pc-pw-rc-when { font-size: 18px; padding: 6px 11px 5px; }
}

/* ===== LIVE TIMING EN CELULAR =====
   La tabla de Live Timing (.pc-pw-table) NUNCA tuvo versión mobile: a
   diferencia del resto del sitio (que colapsa sus tablas con
   .mobile-card-row), esta quedaba forzada a su ancho de escritorio
   (min-width: 980px) con scroll horizontal, así que en un celular se
   veía solo un recorte de las primeras columnas — el ladrillo del
   piloto (176px fijos) ocupando casi la mitad de la pantalla y el
   resto de las columnas (últ./mejor vuelta, mini-sectores, S1-S2-S3,
   historial de gomas) fuera de vista sin ningún indicio de que había
   que desplazar para verlas. Acá se convierte cada fila en una
   tarjeta compacta que se acomoda sola al ancho del celular.
   El corte es 700px (solo celular PARADO: 375-430px típico) y no más
   arriba, porque una tablet parada (768-834px) o un celular ACOSTADO
   (740-930px) tienen ancho de sobra para seguir viéndose como tabla
   real — meterlos en el diseño de tarjetas (pensado para ~390px) se
   ve pobre y desperdicia ese espacio. Ver el bloque de abajo
   (701px-1180px) para esos dos casos: ahí se mantiene la tabla con
   columnas, solo que más compacta, en vez de pasar a tarjetas. */
@media (max-width: 700px) {
  .pc-pw-table-wrap { overflow-x: hidden; padding: 5px 6px 8px; }
  .pc-pw-table { min-width: 0; width: 100%; border-collapse: separate; border-spacing: 0 5px; table-layout: auto; }
  .pc-pw-table colgroup { display: none; }
  .pc-pw-table thead { display: none; }
  .pc-pw-row {
    display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 6px; row-gap: 4px;
    width: 100%; border-radius: 8px; padding: 5px 6px;
    background: #0d1530;
    border: 1px solid #262d42; border-left: 4px solid rgb(var(--team-rgb, 255, 24, 1));
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  }
  /* Tarjetas alternadas con los mismos 2 azules de las filas de la tabla;
     la caja de color del piloto va en el ladrillo (abajo), no en la
     celda, así que se oculta la capa ::before de escritorio. */
  .pc-pw-row:nth-child(even) { background: #16213f; }
  .pc-pw-row td:first-child::before { display: none; }
  .pc-pw-row td {
    display: block !important; background: transparent !important; border: none !important;
    box-shadow: none !important; padding: 0 !important; white-space: normal !important;
    position: static !important;
  }
  /* En tarjeta la celda no tiene relleno propio: la capa de color va
     pegada a la celda (inset 0) y el número lleva 3px arriba/abajo
     para que la caja no quede justa al texto. La regla de arriba pone
     position: static !important en todas las celdas; las pintadas
     necesitan relative para ubicar la capa de color. */
  /* En tarjeta la caja pintada toma el ancho del número + 8px por lado. */
  .pc-pw-row td.pc-pw-c-lap.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-c-lap.pc-pw-fill-g .pc-pw-cell-plain,
  .pc-pw-row td.pc-pw-c-sec.pc-pw-fill-p .pc-pw-sec-chip, .pc-pw-row td.pc-pw-c-sec.pc-pw-fill-g .pc-pw-sec-chip { width: fit-content; padding: 1px 3px; } /* en la tarjeta del celular la letra ya queda centrada (medido 24/10) */
  .pc-pw-c-lap .pc-pw-cell-plain, .pc-pw-c-sec .pc-pw-sec-chip { padding-top: 3px; padding-bottom: 3px; }
  /* (Lo mismo para PILOTO, que también usa width:1%: en tarjeta la celda
     medía ~14px y la caja de color tapaba AL LÍDER.)
     El width:1% de la columna HISTORIAL (truco de tabla para que se
     ajuste a su contenido) en modo tarjeta significa "1% del ancho de
     la tarjeta" (~4px): los chips se salían por el borde derecho. */
  .pc-pw-table td:last-child, .pc-pw-table td:first-child { width: auto !important; }
  /* Mismo motivo para los anchos fijos de vueltas/sectores (pensados
     para la tabla): en tarjeta cada celda se acomoda por flex. */
  .pc-pw-row td.pc-pw-c-lap, .pc-pw-row td.pc-pw-c-sec { width: auto !important; }
  /* Orden de lectura en el celular: piloto arriba a la izquierda,
     brecha/intervalo arriba a la derecha, el resto de datos secundarios
     abajo, y las tiras de mini-sectores/sectores ocupan la fila entera. */
  /* flex 0 0 auto: con la caja de color del ladrillo, si esta celda se
     podía achicar (1 1 auto + min-width 0) la caja desbordaba y tapaba
     AL LÍDER (visto en captura). Ahora mide lo que mide la caja y, si
     no entra todo en la línea, lo que sigue baja a la próxima. */
  .pc-pw-row td:nth-child(1) { order: 1; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(3) { order: 2; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(4) { order: 3; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(2) { order: 4; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(5) { order: 5; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(6) { order: 6; flex: 0 0 auto; }
  .pc-pw-row td:nth-child(16) { order: 7; flex: 0 0 auto; margin-left: auto; }
  /* SECTOR 1/2/3 (mini) ahora son 3 <td> separadas (antes 1 sola) —
     las 3 van en la misma línea del flex, lado a lado, como un
     mini-trío, en vez de cada una ocupando el 100% del ancho. */
  /* Sin un corte de línea explícito, SECTOR 1 se metía en el hueco
     que quedaba al lado de las vueltas y SECTOR 3 caía solo a la línea
     siguiente — el trío quedaba partido. Este ::after (order 8, ancho
     100%, alto 0) obliga a que el trío arranque siempre en una línea
     nueva, los 3 juntos. */
  .pc-pw-row::after { content: ''; order: 8; flex: 0 0 100%; height: 0; }
  .pc-pw-row td:nth-child(7), .pc-pw-row td:nth-child(8), .pc-pw-row td:nth-child(9) { order: 9; flex: 1 1 30%; min-width: 0; }
  /* Debajo del trío de mini-sectores, en la misma grilla de 3: una
     fila con la ÚLTIMA VUELTA (td 10-12) y otra con el MEJOR PROPIO
     (td 13-15, con la etiqueta PB visible porque acá no hay
     encabezados). Cada trío ocupa su propia línea: 4 cajas de 30% no
     entran en una, así que el flex corta solo cada 3. */
  .pc-pw-row td:nth-child(10), .pc-pw-row td:nth-child(11), .pc-pw-row td:nth-child(12) { order: 10; flex: 1 1 30%; min-width: 0; }
  .pc-pw-row td:nth-child(13), .pc-pw-row td:nth-child(14), .pc-pw-row td:nth-child(15) { order: 11; flex: 1 1 30%; min-width: 0; }
  .pc-pw-sec-tag { display: inline; }

  /* En tarjeta la celda PILOTO es transparente: la caja de color pleno +
     carbono va en el ladrillo (número + siglas + escudería). */
  .pc-pw-driver-brick {
    width: auto; padding: 3px 7px; gap: 6px; border-radius: 5px;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0px, rgba(255, 255, 255, 0.08) 3px, rgba(0, 0, 0, 0.10) 3px, rgba(0, 0, 0, 0.10) 6px), rgb(var(--team-rgb, 255, 24, 1));
  }
  .pc-pw-cell-plain { padding: 2px 3px; gap: 3px; }
  .pc-pw-sec-chip { padding: 2px 3px; }
  /* Mini-sectores en tarjeta: la celda no tiene alto propio (las barras
     son absolutas), así que se le da uno; la capa de barras va pegada
     (inset 0) y el relleno invisible de ancho no aplica (lo da el flex). */
  .pc-pw-row td.pc-pw-c-ms { position: relative !important; height: clamp(18px, 5vw, 24px); }
  .pc-pw-row td.pc-pw-c-ms::after { display: none; }
  .pc-pw-ms-box { inset: 0; }
  .pc-pw-table { --tyre: 20px; }
}

/* Tablet parada (768-834px típico) y celular ACOSTADO (740-930px
   típico): entra JUSTO en el medio entre "celular angosto" (arriba) y
   "pantalla de escritorio" (980px mínimo). Acá NO se convierte a
   tarjetas — sigue siendo la tabla real con todas sus columnas en
   fila, como se ve en escritorio — solo que compactada (menos relleno,
   fuentes más chicas, elementos angostados) para que entre sin scroll
   horizontal ni recorte.
   Llega hasta 1440px (antes 1180): con la versión amplia desde 1181px
   la tabla se pasaba hasta 75px (medido: 1181→75, 1241→37, 1281→12,
   con fuentes reales) — laptops comunes con scroll horizontal. */
@media (min-width: 701px) and (max-width: 1440px) {
  .pc-pw-table-wrap { --lt-wrap-pad-x: 3px; overflow-x: auto; padding: 6px var(--lt-wrap-pad-x) 10px; }
  .pc-pw-table { min-width: 0; width: 100%; border-spacing: 0; }
  .pc-pw-table thead th { font-size: 0.48rem; padding: 4px 2px; }
  .pc-pw-row td { padding: 2px 2px; }
  /* Tablet: mismo esquema de 3 columnas parejas, con 6px de espacio. */
  /* Anchos fijos = peor caso de toda la carrera (+~40px): para que no
     vuelva el scroll lateral en laptops (1180-1440px), en esta franja
     los números van 4% más chicos y AL LÍDER / INTERVALO / TYRE /
     HISTORIAL llevan menos aire (no se pintan, no lo necesitan). El
     aire de las celdas que se pintan (vueltas y sectores) no se toca. */
  .pc-pw-table {
    --pilot-gap: 6px;
    --nf: calc(0.96 * clamp(0.845rem, 0.48rem + 0.96vw, 1.44rem));
    --w-gap: calc(3.7 * var(--nf) + 8px);
    --tyre: clamp(20px, 12px + 0.9vw, 24px);
    --w-tyre: calc(1.3 * var(--nf) + var(--tyre) + 12px);
    --w-hist: calc(3 * var(--tyre) + 12px);
  }
  .pc-pw-cell-plain { padding: 2px 3px; gap: 2px; white-space: nowrap; }
  .pc-pw-sec-chip { padding: 2px 2px; }
  /* Ya no se pisan acá .pc-pw-stint-chip (9px), .pc-pw-tyre-ring (13px)
     ni .pc-pw-stint-history (caja de 40px): esos tamaños fijos
     anulaban en tablet los clamp() de la regla base y eran parte del
     "todo se ve chico" y del hueco en HISTORIAL GOMAS. */
}
/* CELULAR HORIZONTAL (701px+ de ancho pero 500px o menos de alto): la
   tabla no entraba (128-202px de scroll lateral, medido en anchos de
   iPhone). Las barras de mini-sectores pasan de 50 a 40px. BEST SECTORS
   ya no se esconde (28/11, pedido del dueño): se ve corriendo la tabla
   de costado, como el resto de las columnas. */
@media (min-width: 701px) and (orientation: landscape) and (max-height: 500px) {
  .pc-pw-table { --w-ms: 40px; }
  .pc-pw-row td.pc-pw-c-ms::after { width: 34px; }
  /* "SECTOR" no entra en 40px con el espaciado normal: sin espaciado y sin
     relleno lateral sí; word-spacing fuerza el corte en "SECTOR" / "1"
     igual en las 3 columnas. */
  .pc-pw-table thead th.pc-pw-w-ms { padding-left: 0; padding-right: 0; letter-spacing: 0; font-size: 0.44rem; word-spacing: 40px; }
}

/* =====================================================================
   DATLAP — Navegación por mundos, Home y Copas (prefijo dl-)
   ===================================================================== */
:root { --dl-red: #ff3b26; --dl-bg: #05070d; --dl-panel: #0b1124; --dl-line: #222c4a; --dl-txt: #dbe3f2; --dl-mute: #a5b4cf; }
.dl-logo { font-family: var(--f-ui); font-weight: 900; font-size: 22px; letter-spacing: .04em; cursor: pointer; flex-shrink: 0; line-height: 1; }
.dl-logo [data-brand-a], .dl-kicker [data-brand-a] { color: #fff; }
.dl-logo [data-brand-b], .dl-kicker [data-brand-b] { color: var(--dl-red); }
@media (min-width: 640px) { .dl-logo { font-size: 26px; } }

.dl-nav { display: none; }
@media (min-width: 1024px) { .dl-nav { display: flex; gap: 4px; flex: 1 1 auto; justify-content: center; } }
.dl-nav-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; background: none; color: #a5b4cf; font-family: var(--f-ui); font-weight: 800; font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: color .15s, background .15s; white-space: nowrap; }
.dl-nav-btn:hover { color: #fff; background: rgba(255,255,255,.04); }
.dl-nav-btn.is-active { color: #fff; background: rgba(255,59,38,.12); border-color: rgba(255,59,38,.45); }
.dl-nav-btn.is-active svg { color: var(--dl-red); }
.dl-tier { font-family: var(--f-ui); font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #0b1020; background: linear-gradient(180deg,#f1f5f9,#94a3b8); border-radius: 4px; padding: 2px 5px; flex-shrink: 0; }
@media (max-width: 380px) { .dl-tier { display: none; } }

/* Barra inferior (celular) */
.dl-mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(7,9,15,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #1f2740; padding-bottom: env(safe-area-inset-bottom); }
.dl-mnav.hidden { display: none; }
@media (min-width: 1024px) { .dl-mnav { display: none !important; } }
.dl-mnav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 2px 8px; background: none; border: 0; color: #8391ad; font-family: var(--f-ui); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; cursor: pointer; position: relative; }
.dl-mnav-btn.is-active { color: #fff; }
.dl-mnav-btn.is-active svg { color: var(--dl-red); }
.dl-mnav-btn.is-active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--dl-red); border-radius: 0 0 2px 2px; }


.dl-cup-ami { background-color: #0b2a21; background-image: repeating-linear-gradient(135deg, rgba(52,211,153,.07) 0 2px, transparent 2px 14px); border-color: #1f6b53; }
.dl-cup-rnk { background-color: #1f2632; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.25)); border-color: #64748b; }
.dl-cup-glb { background-color: #0a1838; background-image: radial-gradient(circle, rgba(147,197,253,.22) 1.2px, transparent 1.8px); background-size: 11px 11px; border-color: #2b4f98; }
.dl-cup-gpe { background-color: #14071f; background-image: radial-gradient(120% 70% at 100% 0%, rgba(255,79,216,.28), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(167,139,250,.22), transparent 60%); border-color: #a3329b; }
.dl-cup-dtl { padding-left: 26px; background-color: #0c0c10; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 3px, rgba(0,0,0,.2) 3px 6px), repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 3px, rgba(0,0,0,.18) 3px 6px); border-color: #7a1d14; }
.dl-neon { font-family: var(--f-ui); font-weight: 900; font-size: 24px; letter-spacing: .06em; color: #ffe4fa; text-shadow: 0 0 6px #ff4fd8, 0 0 14px #ff4fd8, 0 0 26px #c026d3; line-height: 1.05; }
.dl-cup-gpe .dl-neon br { display: none; }


/* HOME */
.dl-home { display: flex; flex-direction: column; gap: 18px; font-family: var(--f-ui); color: var(--dl-txt); }
.dl-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid #1f2740; min-height: 440px; display: flex; align-items: center; background: #05070d; }
.dl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.dl-hero picture { display: contents; }
.dl-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.7) 45%, rgba(5,7,13,.15) 100%); }
.dl-hero-txt { position: relative; padding: 40px 56px; display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.dl-kicker { font-family: var(--f-ui); font-size: 13px; letter-spacing: .3em; font-weight: 800; }
.dl-hero h1 { margin: 0; font-family: var(--f-ui); font-weight: 900; font-size: 44px; line-height: 1.1; color: #fff; }
.dl-hero p { margin: 0; font-size: 21px; color: #b8c4dc; max-width: 600px; font-weight: 600; }
.dl-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid #3a4566; background: rgba(11,17,36,.8); color: #fff; font-family: var(--f-ui); font-size: 12px; font-weight: 800; letter-spacing: .08em; cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; }
.dl-btn:hover { border-color: #6b7aa6; }
.dl-btn-red { background: var(--dl-red); border-color: var(--dl-red); }
.dl-btn-red:hover { background: #ff5540; border-color: #ff5540; }
@media (max-width: 640px) {
  .dl-hero { min-height: 470px; align-items: flex-end; border-radius: 14px; }
  .dl-hero-img { object-position: center 20%; }
  .dl-hero-shade { background: linear-gradient(180deg, rgba(5,7,13,.1) 0%, rgba(5,7,13,.55) 40%, rgba(5,7,13,.96) 100%); }
  .dl-hero-txt { padding: 22px 18px; gap: 10px; }
  .dl-hero h1 { font-size: 27px; }
  .dl-hero p { font-size: 17px; }
  .dl-hero-ctas .dl-btn { flex: 1 1 auto; padding: 12px 10px; font-size: 11px; }
}
@media (min-width: 641px) and (max-width: 1023px) { .dl-hero h1 { font-size: 36px; } .dl-hero-txt { padding: 32px 36px; } }

.dl-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .dl-boxes { grid-template-columns: 1fr; gap: 8px; } }
.dl-box { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; background: #0b1124; border: 1px solid var(--dl-line); border-left: 3px solid #3a4566; border-radius: 12px; text-align: left; cursor: pointer; font-family: var(--f-ui); transition: border-color .15s, background .15s; }
.dl-box:hover { background: #0f1730; }
.dl-box-k { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: #8fa0c2; }
.dl-box-v { font-family: var(--f-ui); font-size: 16px; font-weight: 800; color: #fff; line-height: 1.25; }
.dl-box-s { font-size: 15.5px; font-weight: 600; color: var(--dl-txt); }
.dl-box-cta { margin-top: 4px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: #ff6b57; }
.dl-box-warn { border-left-color: #fbbf24; }
.dl-box-warn .dl-box-s { color: #fde68a; }
.dl-box-ok { border-left-color: #34d399; }
.dl-box-ok .dl-box-s { color: #a7f3d0; }
.dl-box-off { border-left-color: #64748b; }

.dl-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; }
.dl-sec-h h2 { margin: 0; font-family: var(--f-ui); font-size: 16px; font-weight: 800; letter-spacing: .1em; color: #fff; }
.dl-sec-h span { font-size: 16px; color: var(--dl-mute); font-weight: 600; }
.dl-worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .dl-worlds { grid-template-columns: 1fr; gap: 8px; } }
.dl-world { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 14px; border: 1px solid var(--dl-line); background: #0b1124; text-align: left; cursor: pointer; font-family: var(--f-ui); transition: border-color .15s; }
.dl-world:hover { border-color: #3d4a6e; }
.dl-world-live { background: linear-gradient(135deg, rgba(255,59,38,.16), rgba(11,17,36,1) 60%); border-color: rgba(255,59,38,.4); }
.dl-world-k { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; color: #ff6b57; }
.dl-world-t { font-family: var(--f-ui); font-size: 17px; font-weight: 900; color: #fff; }
.dl-world-d { font-size: 15.5px; color: var(--dl-txt); font-weight: 600; line-height: 1.25; }
.dl-world-cta { margin-top: 6px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: #fff; }
.dl-teaser { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px dashed #3a4566; background: #0a0e1a; }
.dl-teaser p { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--dl-txt); }
.dl-soon { flex-shrink: 0; font-family: var(--f-ui); font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #fbbf24; border: 1px solid rgba(251,191,36,.5); border-radius: 6px; padding: 4px 8px; }

/* COPAS */
.dl-copas { display: flex; flex-direction: column; gap: 14px; font-family: var(--f-ui); color: var(--dl-txt); }
.dl-tabs { display: flex; gap: 6px; background: #0b1124; border: 1px solid var(--dl-line); border-radius: 12px; padding: 4px; align-self: flex-start; }
.dl-tab { padding: 9px 16px; border-radius: 9px; border: 0; background: none; color: #8fa0c2; font-family: var(--f-ui); font-size: 12px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.dl-tab.is-active { background: #1a2442; color: #fff; }
@media (max-width: 640px) { .dl-tabs { align-self: stretch; } .dl-tab { flex: 1; padding: 9px 4px; font-size: 11px; } }
.dl-copa-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid; cursor: default; flex-wrap: wrap; }
.dl-copa-head > div { flex: 1 1 260px; min-width: 0; }
.dl-copa-head h2 { margin: 0; font-family: var(--f-ui); font-weight: 900; font-size: 20px; color: #fff; transform: skewX(-8deg); transform-origin: left; }
.dl-copa-head p { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--dl-txt); }
.dl-copa-head p b { color: #fff; font-family: var(--f-ui); font-size: 13px; letter-spacing: .05em; }
.dl-copa-head .dl-cup-emb { min-height: 0; }
.dl-filters { display: flex; gap: 8px; }
.dl-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid #2f3a5e; background: none; color: #a5b4cf; font-family: var(--f-ui); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.dl-chip.is-active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.dl-table-wrap { border: 1px solid var(--dl-line); border-radius: 14px; overflow: hidden; background: #0b1124; }
.dl-table { width: 100%; border-collapse: collapse; }
.dl-table th { text-align: left; padding: 10px 14px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: #8fa0c2; background: #0a0f20; border-bottom: 1px solid var(--dl-line); }
.dl-table td { padding: 11px 14px; border-bottom: 1px solid #161e36; font-size: 17px; font-weight: 700; color: #fff; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-table th:nth-child(n+3), .dl-table td:nth-child(n+3) { text-align: right; }
.dl-t-pos { width: 44px; font-family: var(--f-ui); font-size: 14px !important; color: #a5b4cf !important; }
.dl-table tr:nth-child(1) .dl-t-pos { color: #fbbf24 !important; }
.dl-table tr:nth-child(2) .dl-t-pos { color: #e2e8f0 !important; }
.dl-table tr:nth-child(3) .dl-t-pos { color: #f59e0b !important; }
.dl-t-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dl-t-flag { display: inline-flex; width: 22px; flex-shrink: 0; }
.dl-t-flag img, .dl-t-flag svg { width: 22px; height: auto; border-radius: 2px; }
.dl-t-num { font-family: var(--f-ui); font-size: 11px; color: #8fa0c2; flex-shrink: 0; }
.dl-t-user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-t-you { font-family: var(--f-ui); font-size: 8.5px; font-weight: 800; letter-spacing: .08em; color: #05070d; background: var(--dl-red); border-radius: 4px; padding: 2px 5px; flex-shrink: 0; }
.dl-t-pts { font-family: var(--f-ui); font-size: 15px !important; width: 70px; }
.dl-t-hits { color: #a5b4cf !important; width: 80px; }
.dl-table tr.is-me td { background: rgba(255,59,38,.08); }
.dl-table tr.is-down td { box-shadow: inset 0 -1px 0 rgba(239,68,68,.25); }
.dl-empty, .dl-note { margin: 0; font-size: 15px; color: var(--dl-mute); font-weight: 600; }
@media (max-width: 640px) { .dl-table td { padding: 10px; font-size: 16px; } .dl-table th { padding: 9px 10px; } .dl-t-hits { width: 60px; } }
/* La regla global de celular oculta los thead y vuelve bloque las tablas: la tabla de copas no la usa */
@media (max-width: 767px) {
  table.dl-table, table.dlb-table { display: table !important; }
  .dl-table thead, .dlb-table thead { display: table-header-group !important; }
  .dl-table tbody, .dlb-table tbody { display: table-row-group !important; }
}
.dl-t-pts { font-family: var(--f-ui) !important; font-size: 18px !important; }
@media (max-width: 640px) { .dl-tier { display: none; } }
/* Copas entre 641 y 1279 px: las 2 principales grandes arriba, las otras 3 abajo */
@media (min-width: 641px) and (max-width: 1279px) {
  .dl-cups, .dl-cups-home { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .dl-cups > .dl-cup { grid-column: span 2; min-height: 240px; }
  .dl-cups > .dl-cup:nth-child(1), .dl-cups > .dl-cup:nth-child(2) { grid-column: span 3; }
  .dl-cup-name { font-size: 15.5px; }
}
/* Nav compacta entre 1024 y 1279 px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .dl-nav { gap: 0; }
  .dl-nav-btn { padding: 9px 9px; font-size: 11.5px; gap: 6px; letter-spacing: .04em; }
  .dl-tier { display: none; }
  .dl-logo { font-size: 22px; }
}

/* =====================================================================
   DATLAP v2 — Home estilo menú de juego (prefijo dlg-)
   Letra de carreras: Barlow Condensed (condensada, cursiva, pesada)
   ===================================================================== */
:root { --dlg-f: var(--f-ui); --dlg-head: 64px; }
body { overflow-x: clip; }
/* Encabezado: pestañas de juego en vez de botones con caja */
.dl-logo { font-family: var(--dlg-f); font-style: italic; font-weight: 900; font-size: 30px; letter-spacing: .01em; }
@media (min-width: 640px) { .dl-logo { font-size: 34px; } }
.dl-nav-btn { font-family: var(--dlg-f); font-weight: 700; font-size: 17px; letter-spacing: .06em; border: 0; border-radius: 0; padding: 8px 14px; background: none !important; color: #8b97b3; position: relative; }
.dl-nav-btn svg { width: 17px; height: 17px; }
.dl-nav-btn:hover { color: #fff; }
.dl-nav-btn.is-active { color: #fff; border: 0; }
.dl-nav-btn.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -13px; height: 3px; background: var(--dl-red); }
@media (min-width: 1024px) and (max-width: 1279px) { .dl-nav-btn { font-size: 15px; padding: 8px 9px; } .dl-nav-btn.is-active::after { left: 9px; right: 9px; } }
.dl-mnav-btn { font-family: var(--dlg-f); font-size: 12px; font-weight: 700; letter-spacing: .06em; }

/* Escenario a pantalla completa */
.dlg-home { font-family: var(--dlg-f); color: #e8edf7; margin-top: -20px; }
.dlg-stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: max(600px, calc(100svh - var(--dlg-head))); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: #05070d; }
.dlg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; filter: saturate(.9) contrast(1.05); }
.dlg-stage picture { display: contents; }
.dlg-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(4,6,11,.96) 0%, rgba(4,6,11,.78) 32%, rgba(4,6,11,.15) 62%, rgba(4,6,11,0) 100%),
  linear-gradient(0deg, rgba(4,6,11,.98) 0%, rgba(4,6,11,.7) 26%, rgba(4,6,11,0) 50%); }
.dlg-main { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; padding: clamp(28px, 6vh, 72px) clamp(16px, 4vw, 48px) 24px; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; }
.dlg-event { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .22em; color: #c7d0e4; }
.dlg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dl-red); box-shadow: 0 0 0 0 rgba(255,59,38,.7); animation: dlgPulse 1.8s infinite; }
@keyframes dlgPulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,38,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,59,38,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,38,0); } }
.dlg-gp { margin: 6px 0 0; display: flex; flex-direction: column; line-height: .86; }
.dlg-gp > span { font-style: italic; font-weight: 900; font-size: clamp(76px, 12vw, 168px); letter-spacing: -.01em; color: #fff; text-transform: uppercase; }
.dlg-gp small { font-weight: 600; font-size: clamp(18px, 2vw, 24px); letter-spacing: .04em; color: #aeb9d1; margin-top: 12px; line-height: 1.1; }
.dlg-count { display: flex; align-items: flex-end; gap: 6px; margin-top: 22px; font-variant-numeric: tabular-nums; }
.dlg-count-l { align-self: center; font-weight: 800; font-size: 16px; letter-spacing: .14em; color: #fff; background: var(--dl-red); padding: 6px 10px 5px; margin-right: 10px; transform: skewX(-12deg); }
.dlg-cell { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.dlg-cell b { font-weight: 800; font-size: 46px; line-height: 1; color: #fff; }
.dlg-cell i { font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .16em; color: #8b97b3; margin-top: 3px; }
.dlg-sep { font-weight: 700; font-size: 36px; color: #4b5675; line-height: 1.1; align-self: flex-start; }
.dlg-ticket { margin-top: 18px; font-weight: 700; font-size: 17px; letter-spacing: .1em; padding-left: 12px; border-left: 3px solid; }
.dlg-ticket.is-warn { color: #fcd34d; border-color: #fbbf24; }
.dlg-ticket.is-ok { color: #86efac; border-color: #22c55e; }
.dlg-ticket.is-off { color: #94a3b8; border-color: #64748b; }
.dlg-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dlg-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border: 2px solid rgba(255,255,255,.28); background: rgba(5,7,13,.55); color: #fff; font-family: var(--dlg-f); font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: .06em; cursor: pointer; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); transition: background .15s, border-color .15s, transform .15s; }
.dlg-btn:hover { border-color: #fff; transform: translateX(2px); }
.dlg-btn-main { background: var(--dl-red); border-color: var(--dl-red); }
.dlg-btn-main:hover { background: #ff5540; border-color: #ff5540; }
.dlg-live-chip { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .1em; background: #fff; color: #05070d; padding: 2px 6px; }

/* Fila de copas: la elegida se agranda (como en los juegos) */
.dlg-railwrap { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 28px; box-sizing: border-box; }
.dlg-rail-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; letter-spacing: .22em; color: #aeb9d1; margin-bottom: 10px; }
.dlg-keys { display: none; letter-spacing: .12em; font-size: 13px; color: #7c88a6; }
.dlg-keys kbd { font-family: var(--dlg-f); font-weight: 700; font-size: 12px; color: #e8edf7; border: 1px solid #4b5675; border-bottom-width: 2px; border-radius: 3px; padding: 0 6px; margin: 0 3px; }
@media (hover: hover) and (min-width: 1024px) { .dlg-keys { display: inline; } }
.dlg-rail { display: flex; gap: 8px; height: 168px; }
.dlg-tile { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 14px 16px; border: 0; outline: 1px solid rgba(255,255,255,.12); outline-offset: -1px; text-align: left; cursor: pointer; overflow: hidden; color: #fff; font-family: var(--dlg-f); filter: saturate(.55) brightness(.72); transition: flex-grow .28s cubic-bezier(.2,.8,.2,1), filter .2s, outline-color .2s, transform .2s; border-radius: 0; }
.dlg-tile.is-sel { flex-grow: 2.1; filter: none; outline: 2px solid #fff; outline-offset: -2px; box-shadow: 0 18px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6); }
.dlg-tile:focus-visible { outline: 2px solid #fff; }
.dlg-tile-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc); }
.dlg-tile-emb { display: flex; height: 48px; align-items: center; }
.dlg-tile-emb .dl-neon { font-size: 17px; }
.dlg-tile-name { margin-top: auto; font-style: italic; font-weight: 900; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dlg-tile-pos { position: absolute; right: 14px; top: 10px; display: flex; align-items: baseline; }
.dlg-tile-pos b { font-style: italic; font-weight: 900; font-size: 44px; line-height: 1; }
.dlg-tile-pos b::before { content: 'P'; font-size: .62em; margin-right: 1px; color: var(--acc); }
.dlg-tile-pos i { font-style: normal; font-weight: 700; font-size: 18px; color: #aeb9d1; }
.dlg-tile-pos em { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--acc); border: 1px solid; padding: 1px 6px; }
.dlg-tile-more { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s, opacity .2s; }
.dlg-tile.is-sel .dlg-tile-more { max-height: 30px; opacity: 1; margin-top: 6px; }
.dlg-tile-line { font-weight: 600; font-size: 16px; color: #dbe3f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dlg-tile-cta { flex-shrink: 0; font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: .08em; color: var(--acc); }
.dlg-tile.dl-cup-dtl { padding-left: 16px; }
@media (min-width: 1024px) and (max-width: 1279px) { .dlg-tile-name { font-size: 22px; } .dlg-tile-pos b { font-size: 36px; } }


/* Celular */
@media (max-width: 767px) {
  .dlg-home { margin-top: -20px; }
  .dlg-stage { min-height: 0; }
  .dlg-bg { object-position: center 20%; height: 520px; }
  .dlg-shade { height: 520px; bottom: auto; background: linear-gradient(180deg, rgba(4,6,11,.25) 0%, rgba(4,6,11,.55) 45%, rgba(4,6,11,1) 100%); }
  .dlg-main { padding-top: 150px; }
  .dlg-event { font-size: 13px; letter-spacing: .18em; }
  .dlg-gp > span { font-size: 84px; }
  .dlg-gp small { font-size: 17px; margin-top: 8px; }
  .dlg-count { margin-top: 16px; gap: 3px; }
  .dlg-count-l { font-size: 13px; padding: 5px 8px 4px; margin-right: 6px; }
  .dlg-cell { min-width: 40px; }
  .dlg-cell b { font-size: 34px; }
  .dlg-cell i { font-size: 11px; }
  .dlg-sep { font-size: 26px; }
  .dlg-ticket { font-size: 15px; }
  .dlg-ctas { width: 100%; }
  .dlg-btn { flex: 1 1 auto; justify-content: center; height: 50px; font-size: 18px; padding: 0 14px; }
  .dlg-railwrap { padding-right: 0; padding-bottom: 6px; }
  .dlg-rail { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 16px; scrollbar-width: none; }
  .dlg-rail::-webkit-scrollbar { display: none; }
  .dlg-tile, .dlg-tile.is-sel { flex: 0 0 74%; height: 150px; scroll-snap-align: start; filter: none; outline: 1px solid rgba(255,255,255,.16); outline-offset: -1px; box-shadow: none; }
  .dlg-tile .dlg-tile-more { max-height: 30px; opacity: 1; margin-top: 6px; }
}

/* =====================================================================
   DATLAP v2 — Copas: tabla de posiciones estilo juego
   ===================================================================== */
.dlg-copas { font-family: var(--dlg-f); color: #e8edf7; margin-top: -20px; }
.dlg-cband { position: relative; overflow: hidden; width: 100vw; margin-left: calc(50% - 50vw); border: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.dlg-cband::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,11,.75) 0%, rgba(4,6,11,.25) 60%, rgba(4,6,11,.1) 100%), linear-gradient(0deg, rgba(4,6,11,.9) 0%, transparent 45%); pointer-events: none; }
.dlg-cband-emb { position: absolute; right: max(2vw, calc(50vw - 640px)); top: 50%; transform: translateY(-50%) rotate(-8deg); opacity: .22; filter: saturate(1.2); pointer-events: none; }
.dlg-cband-in { position: relative; z-index: 1; width: min(1280px, 100%); margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 28px; box-sizing: border-box; }
.dlg-ctabs { display: flex; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 26px; }
.dlg-ctab { position: relative; padding: 10px 16px 12px; border: 0; background: none; color: #8b97b3; font-family: var(--dlg-f); font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: .06em; cursor: pointer; }
.dlg-ctab:hover { color: #fff; }
.dlg-ctab.is-on { color: #fff; }
.dlg-ctab.is-on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 4px; background: var(--dl-red); }
.dlg-cband-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dlg-cband-txt { min-width: 0; flex: 1 1 420px; }
.dlg-ck { display: block; font-weight: 700; font-size: 15px; letter-spacing: .2em; color: #c7d0e4; }
.dlg-ct { margin: 4px 0 0; font-style: italic; font-weight: 900; font-size: clamp(48px, 7.5vw, 104px); line-height: .9; color: #fff; overflow-wrap: anywhere; }
.dlg-cs { margin: 10px 0 0; font-weight: 600; font-size: 19px; color: #c7d0e4; }
.dlg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dlg-chip { height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,7,13,.5); color: #c7d0e4; font-family: var(--dlg-f); font-weight: 700; font-size: 15px; letter-spacing: .1em; cursor: pointer; }
.dlg-chip.is-on { background: #fff; border-color: #fff; color: #05070d; }
.dlg-code { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px dashed rgba(255,255,255,.4); font-weight: 700; font-size: 14px; letter-spacing: .14em; color: #c7d0e4; }
.dlg-code b { font-size: 20px; letter-spacing: .08em; color: #fff; }
.dlg-btn-sm { height: 40px; font-size: 17px; padding: 0 18px; }
.dlg-mypos { display: grid; grid-template-columns: auto auto; grid-template-areas: 'l l' 'n d' 'n p'; column-gap: 8px; align-items: end; padding: 12px 18px 14px; background: rgba(5,7,13,.6); border-left: 4px solid var(--dl-red); }
.dlg-mypos span { grid-area: l; font-weight: 700; font-size: 13px; letter-spacing: .2em; color: #aeb9d1; }
.dlg-mypos b { grid-area: n; font-style: italic; font-weight: 900; font-size: 84px; line-height: .85; color: #fff; }
.dlg-mypos b::before { content: 'P'; font-size: .5em; color: var(--dl-red); margin-right: 2px; }
.dlg-mypos i { grid-area: d; font-style: normal; font-weight: 700; font-size: 18px; color: #aeb9d1; }
.dlg-mypos em { grid-area: p; font-style: normal; font-weight: 800; font-size: 20px; color: #fff; padding-bottom: 6px; }
/* Escalera de divisiones (Ranked) */
.dlg-ladder { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.dlg-ladder::-webkit-scrollbar { display: none; }
.dlg-step { flex: 0 0 auto; display: flex; flex-direction: column; padding: 7px 12px 6px; background: rgba(5,7,13,.55); border-top: 3px solid #2a3350; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%); padding-right: 18px; }
.dlg-step b { font-style: italic; font-weight: 800; font-size: 16px; color: #6f7a96; letter-spacing: .04em; }
.dlg-step i { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .1em; color: #5b6582; }
.dlg-step.is-on { background: linear-gradient(180deg, #e2e8f0, #94a3b8); border-top-color: #fff; }
.dlg-step.is-on b { color: #05070d; }
.dlg-step.is-on i { color: #1e293b; }
.dlg-step:nth-child(2) b { color: #aeb9d1; }
/* Tabla de posiciones */
.dlg-cbody { width: min(1280px, 100vw); margin: 0 auto; padding: 18px 0 8px; box-sizing: border-box; position: relative; left: 50%; transform: translateX(-50%); padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); }
.dlg-stand { display: flex; flex-direction: column; gap: 4px; }
.dlg-row { display: grid; grid-template-columns: 56px 6px 34px 44px 1fr 90px 90px; align-items: center; column-gap: 12px; height: 56px; padding-right: 18px; background: linear-gradient(90deg, rgba(20,27,48,.95), rgba(11,16,32,.95)); position: relative; }
.dlg-row-h { height: 30px; background: none; font-weight: 700; font-size: 13px; letter-spacing: .18em; color: #7c88a6; }
.dlg-row-h .dlg-r-pos { font-size: 13px; font-style: normal; color: #7c88a6; background: none; }
.dlg-r-pos { height: 100%; display: flex; align-items: center; justify-content: center; font-style: italic; font-weight: 900; font-size: 28px; color: #fff; background: rgba(255,255,255,.04); }
.dlg-row.is-p1 .dlg-r-pos { color: #05070d; background: #fbbf24; }
.dlg-row.is-p2 .dlg-r-pos { color: #05070d; background: #cbd5e1; }
.dlg-row.is-p3 .dlg-r-pos { color: #05070d; background: #d97745; }
.dlg-r-team { height: 60%; width: 6px; background: var(--team); transform: skewX(-12deg); }
.dlg-row-h .dlg-r-team { background: none; }
.dlg-r-flag { display: flex; }
.dlg-r-flag img { width: 30px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.dlg-r-num { font-style: italic; font-weight: 800; font-size: 20px; color: #8b97b3; text-align: right; }
.dlg-r-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg-row-h .dlg-r-name { font-size: 13px; font-weight: 700; color: #7c88a6; }
.dlg-r-name em { font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .12em; color: #fff; background: var(--dl-red); padding: 2px 7px; }
.dlg-r-hits { text-align: right; font-weight: 700; font-size: 20px; color: #aeb9d1; }
.dlg-r-pts { text-align: right; font-style: italic; font-weight: 900; font-size: 30px; color: #fff; }
.dlg-row-h .dlg-r-hits, .dlg-row-h .dlg-r-pts { font-size: 13px; font-style: normal; font-weight: 700; color: #7c88a6; }
.dlg-row.is-me { outline: 2px solid #fff; outline-offset: -2px; background: linear-gradient(90deg, rgba(255,59,38,.28), rgba(20,27,48,.95) 55%); }
.dlg-row.is-down { box-shadow: inset 0 -2px 0 rgba(239,68,68,.6); }
.dlg-empty, .dlg-foot { margin: 14px 0 0; font-weight: 600; font-size: 16px; color: #8b97b3; }
@media (max-width: 767px) {
  .dlg-cband-in { padding-top: 10px; padding-bottom: 20px; }
  .dlg-ctabs { margin-bottom: 18px; }
  .dlg-ctab { flex: 1; padding: 10px 4px 12px; font-size: 18px; }
  .dlg-ct { font-size: clamp(40px, 13vw, 64px); }
  .dlg-cs { font-size: 17px; }
  .dlg-cband-emb svg { width: 170px; height: auto; }
  .dlg-mypos { width: 100%; box-sizing: border-box; grid-template-columns: auto 1fr auto; grid-template-areas: 'l l l' 'n d p'; }
  .dlg-mypos b { font-size: 60px; }
  .dlg-mypos em { justify-self: end; }
  .dlg-row { grid-template-columns: 40px 5px 26px 1fr 54px; column-gap: 9px; height: 52px; padding-right: 12px; }
  .dlg-r-num, .dlg-r-hits { display: none; }
  .dlg-r-pos { font-size: 22px; }
  .dlg-r-flag img { width: 26px; }
  .dlg-r-name { font-size: 20px; }
  .dlg-r-pts { font-size: 26px; }
}
/* La vista Copas no es la primera del contenedor: compensar el margen de main + space-y */
.dlg-copas { margin-top: -20px !important; }

/* =====================================================================
   DATLAP v3 — Una sola letra (Geist) y estética minimalista
   Geist para todo; Geist Mono para códigos. Pesos de 300 a 700
   (la fuente se carga hasta 700: los 800/900 viejos se ven en 700).
   Sin cursivas, sin mayúsculas en títulos, sin formas inclinadas.
   ===================================================================== */
:root { --f-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace; }
body { font-family: var(--f-ui); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.dlg-home *, .dlg-copas *, .dl-logo, .dl-nav-btn, .dl-mnav-btn, .dl-menu *, .dlg-btn { font-style: normal !important; }

/* Encabezado */
.dl-logo { font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
@media (min-width: 640px) { .dl-logo { font-size: 26px; } }
.dl-nav-btn { font-weight: 500; font-size: 15px; letter-spacing: 0; color: #8b97b3; padding: 8px 12px; }
.dl-nav-btn.is-active { font-weight: 600; }
.dl-nav-btn.is-active::after { height: 2px; left: 12px; right: 12px; }
.dl-nav-btn svg { width: 16px; height: 16px; }
@media (min-width: 1024px) and (max-width: 1279px) { .dl-nav-btn { font-size: 14px; padding: 8px 8px; } }
.dl-mnav-btn { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.dl-tier { font-family: var(--f-ui); font-size: 9px; font-weight: 600; letter-spacing: .06em; }

/* Home */
.dlg-event { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.dlg-gp > span { font-weight: 700; font-size: clamp(64px, 10vw, 140px); letter-spacing: -.045em; text-transform: none; line-height: .95; }
.dlg-gp small { font-weight: 400; font-size: clamp(17px, 1.6vw, 20px); letter-spacing: 0; margin-top: 10px; }
.dlg-count { gap: 14px; margin-top: 26px; }
.dlg-count-l { background: none; transform: none; padding: 0; margin-right: 4px; color: var(--dl-red); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dlg-cell { min-width: 0; }
.dlg-cell b { font-weight: 500; font-size: 44px; letter-spacing: -.03em; }
.dlg-cell i { font-size: 12px; font-weight: 400; letter-spacing: 0; color: #7c88a6; }
.dlg-sep { display: none; }
.dlg-ticket { font-size: 15px; font-weight: 500; letter-spacing: 0; border-left-width: 2px; }
.dlg-btn { clip-path: none; border-radius: 10px; border-width: 1px; height: 48px; padding: 0 20px; font-weight: 600; font-size: 16px; letter-spacing: 0; }
.dlg-btn:hover { transform: none; }
.dlg-live-chip { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; }
.dlg-rail-h { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.dlg-keys { font-size: 12px; letter-spacing: 0; text-transform: none; }
.dlg-keys kbd { font-family: var(--f-mono); font-weight: 500; font-size: 11px; border-radius: 4px; }
/* La foto de fondo pone un auto justo detrás de esta ayuda: pastilla oscura para separarla. */
.dlg-keys { background: rgba(5, 7, 13, .72); border-radius: 6px; padding: 4px 8px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg-rail { gap: 10px; }
.dlg-tile { border-radius: 12px; filter: saturate(.6) brightness(.78); }
.dlg-tile.is-sel { outline-width: 1px; outline-offset: -1px; outline-color: rgba(255,255,255,.75); }
.dlg-tile-bar { height: 3px; }
.dlg-tile-name { font-weight: 600; font-size: 22px; letter-spacing: -.02em; text-transform: none; }
.dlg-tile-pos b { font-weight: 600; font-size: 34px; letter-spacing: -.03em; }
.dlg-tile-pos b::before { font-weight: 500; font-size: .55em; }
.dlg-tile-pos i { font-weight: 400; font-size: 15px; }
.dlg-tile-pos em { font-size: 11px; font-weight: 500; letter-spacing: .04em; border-radius: 4px; padding: 2px 7px; }
.dlg-tile-line { font-weight: 400; font-size: 14px; }
.dlg-tile-cta { font-weight: 600; font-size: 14px; letter-spacing: 0; }
.dlg-tile-emb .dl-neon { font-family: var(--f-ui); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
@media (max-width: 767px) {
  .dlg-gp > span { font-size: 64px; }
  .dlg-cell b { font-size: 34px; }
  .dlg-count { gap: 12px; }
  .dlg-btn { font-size: 15px; height: 46px; }
}

/* Copas */
.dlg-ctab { font-weight: 500; font-size: 16px; letter-spacing: 0; padding: 10px 14px 12px; }
.dlg-ctab.is-on { font-weight: 600; }
.dlg-ctab.is-on::after { height: 2px; }
.dlg-ck { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.dlg-ct { font-weight: 700; font-size: clamp(44px, 7vw, 92px); letter-spacing: -.045em; line-height: 1; }
.dlg-cs { font-weight: 400; font-size: 17px; }
.dlg-chip { border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0; height: 32px; }
.dlg-code { border-radius: 10px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.dlg-code b { font-family: var(--f-mono); font-size: 16px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.dlg-mypos { border-radius: 12px; border-left-width: 3px; }
.dlg-mypos span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.dlg-mypos b { font-weight: 600; font-size: 68px; letter-spacing: -.04em; }
.dlg-mypos b::before { font-weight: 500; }
.dlg-mypos i { font-weight: 400; font-size: 15px; }
.dlg-mypos em { font-weight: 600; font-size: 17px; }
.dlg-ladder { gap: 6px; }
.dlg-step { clip-path: none; border-radius: 8px; border-top-width: 2px; padding: 7px 12px 7px; }
.dlg-step b { font-weight: 600; font-size: 14px; letter-spacing: 0; }
.dlg-step i { font-size: 11px; font-weight: 400; letter-spacing: 0; }
.dlg-stand { gap: 6px; }
.dlg-row { border-radius: 10px; overflow: hidden; grid-template-columns: 52px 3px 30px 40px 1fr 80px 80px; }
.dlg-row-h { border-radius: 0; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.dlg-row-h .dlg-r-pos, .dlg-row-h .dlg-r-name, .dlg-row-h .dlg-r-hits, .dlg-row-h .dlg-r-pts { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.dlg-r-pos { font-weight: 600; font-size: 20px; }
.dlg-r-team { transform: none; width: 3px; border-radius: 2px; }
.dlg-r-num { font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-weight: 500; font-size: 14px; color: #7c88a6; }
.dlg-r-name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; text-transform: none; }
.dlg-r-name em { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; }
.dlg-r-hits { font-weight: 400; font-size: 16px; }
.dlg-r-pts { font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.dlg-row.is-me { outline: 1px solid rgba(255,59,38,.65); outline-offset: -1px; background: linear-gradient(90deg, rgba(255,59,38,.14), rgba(20,27,48,.95) 55%); }
.dlg-foot, .dlg-empty { font-weight: 400; font-size: 15px; }
@media (max-width: 767px) {
  .dlg-row { grid-template-columns: 40px 3px 24px 1fr 52px; }
  .dlg-ctab { font-size: 15px; }
  .dlg-ct { font-size: clamp(40px, 12vw, 56px); }
  .dlg-mypos b { font-size: 54px; }
  .dlg-r-name { font-size: 17px; }
  .dlg-r-pts { font-size: 20px; }
}
/* (24/10) El Live Timing vuelve a Orbitron + Rajdhani como producción: se quita el achique de números que se había hecho para Geist. */

/* RESULTADOS (CARRERAS → Resultados) */
.dl-res-title h1 { margin: 6px 0 0; font-family: var(--f-ui); font-weight: 900; font-size: 26px; color: #fff; }
.dl-res-title .dl-kicker { color: #8fa0c2; }
.dl-res-empty { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; border: 1px dashed #3a4566; color: #a5b4cf; font-size: 15px; }
.dl-res-empty b { color: #fff; font-size: 16px; }
.dl-r-bar1 { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dl-r-gp { flex-shrink: 0; display: flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--dl-line); background: #0b1124; color: #a5b4cf; font-family: var(--f-ui); font-size: 14px; font-weight: 800; cursor: pointer; }
.dl-r-gp i { font-style: normal; font-size: 11.5px; color: #64748b; letter-spacing: .06em; }
.dl-r-gp.is-active { background: #ff1801; border-color: #ff1801; color: #fff; }
.dl-r-gp.is-active i { color: rgba(255,255,255,.75); }
.dl-r-bar2 { flex-wrap: wrap; }
.dl-r-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dl-r-head h2 { margin: 0; font-family: var(--f-ui); font-weight: 900; font-size: 20px; color: #fff; }
.dl-r-head span { font-size: 12px; font-weight: 700; color: #8fa0c2; letter-spacing: .06em; }
.dl-r-sums { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dl-r-sum { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dl-line); background: #0b1124; min-width: 0; }
.dl-r-sum span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8fa0c2; }
.dl-r-sum b { font-size: 20px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-r-sum i { font-style: normal; font-size: 12.5px; font-weight: 600; color: #a5b4cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-r-wrap { border: 1px solid var(--dl-line); border-radius: 14px; overflow-x: auto; background: #0b1124; }
.dl-r-table { width: 100%; border-collapse: collapse; font-family: var(--f-ui); }
.dl-r-table th { text-align: right; padding: 10px 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: #8fa0c2; background: #0a0f20; border-bottom: 1px solid var(--dl-line); white-space: nowrap; }
.dl-r-table td { text-align: right; padding: 9px 12px; border-bottom: 1px solid #161e36; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-r-table th:nth-child(-n+3), .dl-r-table td:nth-child(-n+3) { text-align: left; }
.dl-r-table tr:last-child td { border-bottom: 0; }
.dl-r-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.dl-r-pos { width: 40px; color: #a5b4cf !important; font-size: 14px !important; }
.dl-r-table tbody tr:nth-child(1) .dl-r-pos { color: #fbbf24 !important; }
.dl-r-drvin { display: flex; align-items: center; gap: 8px; min-width: 70px; }
.dl-r-bar { width: 4px; height: 18px; border-radius: 2px; flex-shrink: 0; }
.dl-r-drv b { font-weight: 900; letter-spacing: .04em; }
.dl-r-full { font-size: 13px; font-weight: 600; color: #8fa0c2; }
.dl-r-team { font-size: 11.5px !important; color: #8fa0c2 !important; letter-spacing: .08em; }
.dl-r-time { font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-weight: 600 !important; } /* Geist con cifras de ancho fijo (antes Geist Mono): regla de letras del 25/10 */
.dl-r-time.is-purple { color: #c084fc !important; }
.dl-r-delta.is-up { color: #34d399 !important; }
.dl-r-delta.is-down { color: #f87171 !important; }
.dl-r-delta { font-size: 13px !important; }
.dl-r-pts { color: #fbbf24 !important; }
.dl-r-tyres { display: flex; gap: 3px; justify-content: flex-end; }
.dl-tyre { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid; font-size: 9.5px; font-weight: 900; color: #fff; background: #0b1124; }
.dl-tyre-S { border-color: #ef4444; } .dl-tyre-M { border-color: #facc15; } .dl-tyre-H { border-color: #e5e7eb; }
.dl-tyre-I { border-color: #22c55e; } .dl-tyre-W { border-color: #3b82f6; }
.dl-r-table tr.is-out td { color: #94a3b8; }
.dl-r-table tr.is-cut td { border-top: 2px solid #ff1801; }
.dl-r-table tr.is-dnf td { color: #64748b; }
@media (max-width: 640px) {
  .dl-r-full { display: none; }
  .dl-r-table td { font-size: 14px; padding: 8px 9px; }
  .dl-r-table th { padding: 9px 9px; }
  .dl-r-table th:nth-child(-n+2), .dl-r-table td:nth-child(-n+2) { position: sticky; background: #0b1124; z-index: 1; }
  .dl-r-table th:nth-child(1), .dl-r-table td:nth-child(1) { left: 0; }
  .dl-r-table th:nth-child(2), .dl-r-table td:nth-child(2) { left: 40px; }
  .dl-r-table thead th:nth-child(-n+2) { background: #0a0f20; }
}
@media (max-width: 1100px) { .dl-r-race .dl-r-full { display: none; } }

/* MI BOLETA: solo el formulario + encabezado propio */
.dl-bol-head { display: none; }
#view-campeonato.is-boleta-only > .dl-bol-head { display: flex; flex-direction: column; gap: 14px; font-family: var(--f-ui); color: var(--dl-txt); }
#view-campeonato.is-boleta-only > .dl-bol-head + .carbon-panel,
#view-campeonato.is-boleta-only > #prodePanel-tabla,
#view-campeonato.is-boleta-only > #prodePanel-selladas,
#view-campeonato.is-boleta-only > #prodePanel-historial,
#view-campeonato.is-boleta-only > #prodePanel-reglas { display: none !important; }
#view-campeonato.is-boleta-only.show-reglas > #prodePanel-reglas { display: block !important; } /* "Reglamento" en el encabezado */
.dl-bol-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dl-bol-top h1 { margin: 6px 0 0; font-weight: 900; font-size: 28px; color: #fff; line-height: 1.1; }
.dl-bol-top .dl-kicker { color: #8fa0c2; }
.dl-bol-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dl-bol-lock { font-size: 20px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.dl-bol-lock.is-closed { color: #f87171; }
.dl-bol-state small { font-size: 12px; font-weight: 700; color: #8fa0c2; }
.dl-bol-status { margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; border: 1px solid; }
.dl-bol-status.is-ok { color: #34d399; border-color: rgba(52,211,153,.5); }
.dl-bol-status.is-warn { color: #fbbf24; border-color: rgba(251,191,36,.5); }
.dl-bol-status.is-off { color: #94a3b8; border-color: #334155; }
.dl-bol-cups { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--dl-line); background: #0b1124; }
.dl-bol-label { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8fa0c2; margin-right: 4px; }
.dl-bol-chip { display: inline-flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; border: 1px solid; line-height: 1.2; }
.dl-bol-chip b { font-size: 14px; font-weight: 900; color: #fff; }
.dl-bol-chip i { font-style: normal; font-size: 11px; font-weight: 600; color: #a5b4cf; }
.dl-bol-chip.is-glo { border-color: rgba(59,130,246,.55); }
.dl-bol-chip.is-ami { border-color: rgba(52,211,153,.55); }
.dl-bol-chip.is-ran { border-color: rgba(251,191,36,.45); }
.dl-bol-chip.is-dim { opacity: .55; }
.dl-bol-link { margin-left: auto; background: none; border: 0; color: #a5b4cf; font-family: var(--f-ui); font-size: 12px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.dl-bol-link:hover { color: #fff; }
@media (max-width: 640px) {
  .dl-bol-state { align-items: flex-start; }
  .dl-bol-link { margin-left: 0; }
  .dl-bol-top h1 { font-size: 24px; }
}

/* COPAS v2: posiciones compactas con movimiento, estadísticas y esta fecha */
.dlc-views { margin: 0 0 14px; }
.dlc-stand { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-ui); }
.dlc-row { display: grid; grid-template-columns: 40px 34px minmax(140px, 1fr) 64px 78px 60px 70px 60px 92px 68px; align-items: center; column-gap: 10px; height: 44px; padding-right: 14px; background: linear-gradient(90deg, rgba(20,27,48,.92), rgba(11,16,32,.92)); border-radius: 6px; position: relative; overflow: hidden; }
.dlc-row-h { height: 26px; background: none; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #7c88a6; text-transform: uppercase; }
.dlc-row-h .dlc-pos, .dlc-row-h .dlc-pts { font-size: 11.5px; font-style: normal; color: #7c88a6; background: none; }
.dlc-pos { height: 100%; display: flex; align-items: center; justify-content: center; font-style: italic; font-weight: 900; font-size: 19px; color: #fff; background: rgba(255,255,255,.04); }
.dlc-row.is-p1 .dlc-pos { color: #05070d; background: #fbbf24; }
.dlc-row.is-p2 .dlc-pos { color: #05070d; background: #cbd5e1; }
.dlc-row.is-p3 .dlc-pos { color: #05070d; background: #d97745; }
.dlc-mv { display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 11px; font-weight: 900; line-height: 1; }
.dlc-mv i { font-style: normal; font-size: 11px; }
.dlc-mv.is-up, .dlc-legend .is-up { color: #22c55e; }
.dlc-mv.is-down, .dlc-legend .is-down { color: #ef4444; }
.dlc-mv.is-eq, .dlc-legend .is-eq { color: #64748b; font-size: 14px; }
.dlc-drv { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dlc-team { width: 4px; height: 22px; border-radius: 2px; background: var(--team); transform: skewX(-12deg); flex-shrink: 0; }
.dlc-flag { display: flex; flex-shrink: 0; }
.dlc-flag img { width: 22px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.dlc-num { font-style: italic; font-weight: 800; font-size: 14px; color: #8b97b3; width: 24px; text-align: right; flex-shrink: 0; }
.dlc-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlc-name em { font-style: normal; font-weight: 800; font-size: 10px; letter-spacing: .12em; color: #fff; background: var(--dl-red); padding: 1px 6px; border-radius: 3px; }
.dlc-pts { text-align: right; font-style: italic; font-weight: 900; font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; }
.dlc-c { text-align: right; font-size: 14px; font-weight: 700; color: #aeb9d1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlc-row-h .dlc-c { font-size: 11.5px; color: #7c88a6; }
.dlc-c-last { color: #34d399; }
.dlc-c-gap { color: #8b97b3; font-size: 13px; }
.dlc-row.is-p1 .dlc-c-gap { color: #fbbf24; }
.dlc-form { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; vertical-align: middle; }
.dlc-form i { display: block; width: 7px; min-height: 2px; border-radius: 2px 2px 0 0; background: #60a5fa; }
.dlc-form i.is-miss { height: 3px !important; background: #334155; }
.dlc-form.is-empty { color: #64748b; }
.dlc-row.is-me { outline: 2px solid #fff; outline-offset: -2px; background: linear-gradient(90deg, rgba(255,59,38,.26), rgba(20,27,48,.92) 55%); }
.dlc-row.is-down { box-shadow: inset 0 -2px 0 rgba(239,68,68,.6); }
.dlc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; font-weight: 600; color: #8b97b3; }
.dlc-legend b { font-weight: 900; margin-right: 3px; }
.dlc-legend .dlc-form { height: 12px; margin-right: 4px; }
.dlc-legend .dlc-form i { width: 5px; }
@media (max-width: 900px) {
  .dlc-row { grid-template-columns: 34px 28px minmax(110px, 1fr) 54px 64px 58px; column-gap: 8px; }
  .dlc-c-best, .dlc-c-played, .dlc-c-form, .dlc-c-gap { display: none; }
}
@media (max-width: 520px) {
  .dlc-row { grid-template-columns: 30px 26px minmax(90px, 1fr) 46px 56px; height: 42px; padding-right: 10px; }
  .dlc-c-hits { display: none; }
  .dlc-flag { display: none; }
  .dlc-name { font-size: 14px; }
  .dlc-pts { font-size: 18px; }
}
/* Estadísticas */
.dlc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; font-family: var(--f-ui); }
.dlc-card { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--dl-line); border-top: 3px solid var(--acc, #3b4a78); background: #0b1124; min-width: 0; }
.dlc-card span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8fa0c2; }
.dlc-card b { font-size: 21px; font-weight: 900; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.dlc-card i { font-style: normal; font-size: 12.5px; font-weight: 600; color: #a5b4cf; }
.dlc-chart { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--dl-line); background: #0b1124; display: flex; flex-direction: column; gap: 8px; font-family: var(--f-ui); }
.dlc-chart-h { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; }
.dlc-chart-h span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #8fa0c2; }
.dlc-chart-h span i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.dlc-bar { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #a5b4cf; }
.dlc-bar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlc-bar-t { position: relative; height: 12px; border-radius: 6px; background: #141c33; overflow: hidden; }
.dlc-bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.dlc-chart i.is-mx { background: rgba(192,132,252,.45); }
.dlc-chart i.is-av { background: #60a5fa; }
.dlc-bar-v { text-align: right; font-variant-numeric: tabular-nums; }
/* Esta fecha */
.dlc-fecha-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; font-family: var(--f-ui); }
.dlc-fecha-h > div:first-child span { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8fa0c2; display: block; }
.dlc-fecha-h > div:first-child b { font-size: 24px; font-weight: 900; color: #fff; }
.dlc-prog { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 8px; min-width: 220px; }
.dlc-prog b { font-size: 20px; font-weight: 900; color: #fff; }
.dlc-prog span { font-size: 12px; font-weight: 700; color: #8fa0c2; }
.dlc-prog i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: #141c33; overflow: hidden; }
.dlc-prog em { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #34d399); }
.dlc-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-family: var(--f-ui); }
.dlc-who-i { display: inline-flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; border: 1px solid; font-size: 14px; font-weight: 800; color: #fff; text-transform: uppercase; }
.dlc-who-i i { font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; }
.dlc-who-i.is-ok { border-color: rgba(52,211,153,.5); } .dlc-who-i.is-ok i { color: #34d399; }
.dlc-who-i.is-warn { border-color: rgba(251,191,36,.45); } .dlc-who-i.is-warn i { color: #fbbf24; }
.dlc-who-i.is-off { border-color: #334155; opacity: .6; } .dlc-who-i.is-off i { color: #94a3b8; }
.dlc-sub { margin: 18px 0 10px; font-family: var(--f-ui); font-size: 15px; font-weight: 800; letter-spacing: .06em; color: #a5b4cf; text-transform: uppercase; }
@media (max-width: 900px) { .dlc-legend-form { display: none; } }

/* CALENDARIO y MUNDIAL (estilo nuevo): se esconde el contenido viejo de esas vistas */
#view-calendario > :not(#dlCalBody), #view-f1real > :not(#dlMundialBody) { display: none !important; }
.dl-cal-sub { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: #8fa0c2; }
.dl-cal-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,24,1,.45); background: linear-gradient(135deg, rgba(255,24,1,.12), #0b1124 60%); }
.dl-cal-hero-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-cal-hero .dl-kicker { color: #ff6b5a; }
.dl-cal-hero h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; color: #fff; line-height: 1.15; }
.dl-cal-hero p { margin: 0; font-size: 14px; font-weight: 600; color: #a5b4cf; }
.dl-cal-flag { display: inline-flex; flex-shrink: 0; }
.dl-cal-flag img { width: 26px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.dl-cal-hero h2 .dl-cal-flag img { width: 34px; }
.dl-cal-count { display: flex; flex-direction: column; margin-top: 6px; }
.dl-cal-count span { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #8fa0c2; text-transform: uppercase; }
.dl-cal-count b { font-size: 30px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.dl-cal-count b.is-live { color: #34d399; }
.dl-cal-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.dl-cal-sched { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-cal-sched li { display: grid; grid-template-columns: 92px 1fr 56px 74px; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,.03); font-size: 14px; font-weight: 700; color: #e2e8f0; }
.dl-cal-sched li span { font-size: 12px; color: #8fa0c2; text-transform: capitalize; }
.dl-cal-sched li time { font-variant-numeric: tabular-nums; text-align: right; }
.dl-cal-sched li i { font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
.dl-cal-sched li.is-done { opacity: .5; } .dl-cal-sched li.is-done i { color: #94a3b8; }
.dl-cal-sched li.is-live { background: rgba(52,211,153,.12); } .dl-cal-sched li.is-live i { color: #34d399; }
.dl-cal-sched li.is-next { background: rgba(255,24,1,.12); } .dl-cal-sched li.is-next i { color: #ff6b5a; }
.dl-cal-sched li.is-race b { color: #fff; font-weight: 900; }
.dl-cal-tz { grid-column: 1 / -1; margin: -6px 0 0; font-size: 11px; font-weight: 700; color: #64748b; text-align: right; }
.dl-cal-list { display: flex; flex-direction: column; gap: 4px; }
.dl-cal-row { display: grid; grid-template-columns: 44px 30px minmax(120px, 1fr) 110px minmax(150px, auto); align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; background: #0b1124; color: #fff; font-family: var(--f-ui); text-align: left; cursor: default; }
.dl-cal-row.is-done { cursor: pointer; }
.dl-cal-row.is-done:hover { border-color: #2f3a5e; }
.dl-cal-row.is-next { border-color: rgba(255,24,1,.6); background: linear-gradient(90deg, rgba(255,24,1,.14), #0b1124 70%); }
.dl-cal-row:not(.is-done):not(.is-next) { opacity: .72; }
.dl-cal-r { font-size: 12px; font-weight: 800; color: #8fa0c2; letter-spacing: .06em; }
.dl-cal-n { display: flex; flex-direction: column; min-width: 0; }
.dl-cal-n b { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-cal-n i { font-style: normal; font-size: 12px; font-weight: 600; color: #8fa0c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-cal-d { font-size: 13px; font-weight: 700; color: #a5b4cf; white-space: nowrap; }
.dl-cal-x { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.dl-cal-pod { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.dl-cal-pod b { padding: 2px 8px; border-radius: 6px; background: #fbbf24; color: #05070d; font-weight: 900; box-shadow: inset 3px 0 0 var(--c); }
.dl-cal-pod i { font-style: normal; color: #a5b4cf; }
.dl-cal-go { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8fa0c2; white-space: nowrap; }
.dl-cal-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid #2f3a5e; color: #a5b4cf; }
.dl-cal-tag.is-next { border-color: #ff1801; background: #ff1801; color: #fff; }
@media (max-width: 820px) {
  .dl-cal-hero { grid-template-columns: 1fr; }
  .dl-cal-row { grid-template-columns: 34px 26px minmax(90px, 1fr) auto; gap: 8px; padding: 9px 10px; }
  .dl-cal-d { display: none; }
  .dl-cal-go { display: none; }
  .dl-cal-sched li { grid-template-columns: 78px 1fr 48px 64px; padding: 7px 9px; font-size: 13px; }
}
/* Mundial */
.dl-mun-list { display: flex; flex-direction: column; gap: 3px; font-family: var(--f-ui); }
.dl-mun-row { display: grid; grid-template-columns: 38px minmax(150px, 1fr) 44px 42px minmax(80px, 220px) 52px 56px; align-items: center; gap: 10px; height: 42px; padding-right: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(20,27,48,.92), rgba(11,16,32,.92)); overflow: hidden; }
.dl-mun-pos { height: 100%; display: flex; align-items: center; justify-content: center; font-style: italic; font-weight: 900; font-size: 18px; color: #fff; background: rgba(255,255,255,.04); }
.dl-mun-row.is-p1 .dl-mun-pos { background: #fbbf24; color: #05070d; }
.dl-mun-row.is-p2 .dl-mun-pos { background: #cbd5e1; color: #05070d; }
.dl-mun-row.is-p3 .dl-mun-pos { background: #d97745; color: #05070d; }
.dl-mun-drv { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dl-mun-bar { width: 4px; height: 22px; border-radius: 2px; background: var(--team); transform: skewX(-12deg); flex-shrink: 0; }
.dl-mun-flag { display: inline-flex; flex-shrink: 0; }
.dl-mun-flag img { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.dl-mun-drv b { font-size: 16px; font-weight: 900; letter-spacing: .04em; color: #fff; }
.dl-mun-full { font-size: 13px; font-weight: 600; color: #8fa0c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-mun-team { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #8fa0c2; }
.dl-mun-w { font-size: 12px; font-weight: 800; color: #fbbf24; text-align: right; }
.dl-mun-track { height: 8px; border-radius: 4px; background: #141c33; overflow: hidden; }
.dl-mun-track i { display: block; height: 100%; border-radius: 4px; background: var(--team); opacity: .85; }
.dl-mun-pts { text-align: right; font-style: italic; font-weight: 900; font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; }
.dl-mun-gap { text-align: right; font-size: 13px; font-weight: 700; color: #8b97b3; font-variant-numeric: tabular-nums; }
.dl-mun-row.is-p1 .dl-mun-gap { color: #fbbf24; }
.dl-mun-decs { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-champ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.dl-champ { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--dl-line); background: #0b1124; font-family: var(--f-ui); }
.dl-champ-y { font-size: 24px; font-weight: 900; font-style: italic; color: #fbbf24; line-height: 1; }
.dl-champ-n { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 900; color: #fff; }
.dl-champ-t { font-size: 13px; font-weight: 700; color: #a5b4cf; }
.dl-champ-s { font-size: 12px; font-weight: 600; color: #8fa0c2; }
.dl-champ-k { align-self: flex-start; margin-top: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #c084fc; border: 1px solid rgba(192,132,252,.45); border-radius: 6px; padding: 2px 7px; }
@media (max-width: 820px) {
  .dl-mun-row { grid-template-columns: 32px minmax(90px, 1fr) 40px 48px 50px; gap: 8px; padding-right: 10px; }
  .dl-mun-full, .dl-mun-track { display: none; }
  .dl-mun-row .dl-mun-team { display: none; }
}

/* Home: foto de Austin (auto en las eses a la hora azul, torre y bandera a la derecha) */
.dlg-bg-art { object-position: 85% 72%; filter: none; } /* 85%: a 1024px la bandera quedaba cortada en el borde derecho */
/* Tablet vertical: la imagen queda más alta que ancha y a 62% se cortaba la trompa del auto y la torre. */
@media (min-width: 768px) and (orientation: portrait) { .dlg-bg-art { object-position: 88% 72%; } }
@media (max-width: 767px) {
  /* 100% horizontal: en la franja del celular entran el auto, la torre y la bandera (a 70% la bandera quedaba afuera). */
  .dlg-bg-art { height: 330px; object-position: 100% 100%; }
  .dlg-home .dlg-bg-art ~ .dlg-shade { height: 330px; background: linear-gradient(180deg, rgba(4,6,11,0) 0%, rgba(4,6,11,0) 55%, rgba(4,6,11,.85) 88%, rgba(4,6,11,1) 100%); }
  .dlg-home .dlg-bg-art ~ .dlg-main { padding-top: 290px; }
}

/* === QUALY: franjas por fila (diseño aprobado 23/10, claude/DISENO-QUALY.md) ===
   Fila entera pintada con una capa translúcida; las celdas internas quedan
   transparentes para que pinte de punta a punta y todo se siga leyendo. */
.qz-out > td { background-image: linear-gradient(rgba(220,38,38,.38), rgba(220,38,38,.38)) !important; }
.qz-ko  > td { background-image: linear-gradient(rgba(127,29,29,.55), rgba(127,29,29,.55)) !important; }
/* Podio (pedido del dueño 25/10): sin fondo dorado/plata/bronce en la fila
   (tapaba el violeta y el verde). El número va en color de podio sobre una
   plaquita oscura inclinada con filo metálico a la izquierda (propuesta de
   Gemini). El filo arranca 6px antes del número, en el aire que ya tiene la
   placa (padding 7px): a 375px el número mide ~11px y pegado lo tapaba. */
.pc-pw-row.qz-p1 { --qz-pod: #ffd43b; --qz-pod-soft: rgba(255, 212, 59, 0.30); }
.pc-pw-row.qz-p2 { --qz-pod: #f1f5f9; --qz-pod-soft: rgba(241, 245, 249, 0.28); }
.pc-pw-row.qz-p3 { --qz-pod: #e89249; --qz-pod-soft: rgba(232, 146, 73, 0.32); }
.pc-pw-row:is(.qz-p1, .qz-p2, .qz-p3) .pc-pw-driver-brick .pc-pw-pos {
  position: relative; z-index: 1; color: var(--qz-pod); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.pc-pw-row:is(.qz-p1, .qz-p2, .qz-p3) .pc-pw-driver-brick .pc-pw-pos::before {
  content: ''; position: absolute; inset: -1px auto -1px -6px; width: calc(1.22em + 4px); z-index: -1; pointer-events: none;
  border-radius: 3px 2px 2px 3px; border-left: 3px solid var(--qz-pod);
  background: linear-gradient(90deg, var(--qz-pod-soft) 0%, rgba(8, 12, 22, 0.86) 78%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); transform: skewX(-12deg);
}
/* Las celdas pintadas violeta/verde conservan su caja sobre las filas rojas. */
:is(.qz-out, .qz-ko) td:not(.pc-pw-fill-p):not(.pc-pw-fill-g) :is(.pc-pw-sec-chip, .pc-pw-cell-plain),
:is(.qz-out, .qz-ko) .pc-pw-ms-box { background-color: transparent !important; }
.qz-cut > td { border-top: 2px solid rgba(248,113,113,.9) !important; }
/* En el celular cada fila es una tarjeta: se pinta la tarjeta entera (no
   celda por celda) y el corte va como borde superior rojo de la tarjeta. */
@media (max-width: 700px) {
  :is(.qz-out, .qz-ko) > td { background-image: none !important; }
  .qz-cut > td { border-top: none !important; }
  .pc-pw-row.qz-out { background-image: linear-gradient(rgba(220,38,38,.38), rgba(220,38,38,.38)); }
  .pc-pw-row.qz-ko  { background-image: linear-gradient(rgba(127,29,29,.55), rgba(127,29,29,.55)); }
  .pc-pw-row.qz-cut { border-top: 2px solid rgba(248,113,113,.9); }
}
/* Eliminados en Q1/Q2 (pedido del dueño 31/10): todo lo de la fila en gris
   apagado para que no resalten como los que siguen; el fondo bordó queda. */
.qz-ko > td > * { filter: grayscale(1); opacity: .45; }
/* La placa: el mismo gris oscuro para todas las escuderías (las claras, como
   Alpine o McLaren, dejaban las siglas ilegibles) y siglas en gris claro. */
.qz-ko > td::before, .qz-ko .pc-pw-driver-brick::before { background-color: #2b2e33 !important; filter: grayscale(1) brightness(.6); }
.qz-ko > td > .pc-pw-driver-brick { opacity: 1; }
.qz-ko .pc-pw-driver-brick :is(.pc-pw-pos, .pc-pw-tla, .pc-pw-team-badge span) { color: #8b93a1 !important; }
/* Aviso de "girá el celular": solo en vivo, celular parado. Gris tenue, sin
   llamar la atención; el celular dibujado gira una vez al entrar a Timing
   y queda acostado. En compu, tablet o celular acostado no aparece. */
.pc-pw-rotate-hint { display: none; }
@media (max-width: 700px) and (orientation: portrait) {
  .is-live-mode .pc-pw-rotate-hint {
    order: 3; flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
    color: #4f5a72; pointer-events: none;
  }
}
.pc-pw-rotate-ico { width: 26px; height: 26px; flex: 0 0 auto; }
.pc-pw-rotate-phone { transform-box: fill-box; transform-origin: center; transform: rotate(90deg); animation: pc-pw-rotate-once 1.1s ease-in-out 0.6s both; }
@keyframes pc-pw-rotate-once { from { transform: rotate(0deg); } to { transform: rotate(90deg); } }
.pc-pw-rotate-txt { font-family: 'Orbitron', sans-serif; font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) { .pc-pw-rotate-phone { animation: none; } }
/* Celulares angostos (hasta 420 px): con la palabra DIFERIDO a la vista no
   entra el texto "TABLA COMPLETA" (a 390 se cortaba y a 412 iba pegado, medido 1/11): queda solo el ícono. */
@media (max-width: 420px) { .pc-pw-rotate-txt { display: none; } }
/* Cambios de posición (ltPosFx en app.js): solo el deslizamiento, sin colores ni marcas. */
.pc-pw-driver-brick { position: relative; }
/* Bandera a cuadros del piloto que ya cruzó la línea (TimingData Status bit 1024). */
/* Va montada sobre el borde derecho de la caja del piloto, a media altura: no
   corre las siglas ni el código de escudería (la columna tiene ancho fijo). */
.pc-pw-chq { position: absolute; top: 50%; right: -11px; transform: translateY(-50%); z-index: 7; width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
@media (max-width: 700px) {
  /* En la tarjeta del celular se le hace lugar a la bandera para que no pise el GAP. */
  .pc-pw-row td:first-child:has(.pc-pw-chq) { margin-right: 12px; }
  .pc-pw-chq { right: -15px; }
}

/* === CAJA DEL PILOTO Y TABLA CON IDENTIDAD (diseño aprobado 24/10) ===
   Cada piloto es una "placa" con los dos colores de su auto: fondo liso con
   brillo, el número del auto grande en el segundo color entre las siglas y el
   código de escudería, y una banda del mismo color que baja por el corte
   diagonal y dobla por abajo hacia la izquierda apagándose. Reemplaza al
   carbono. Colores propios de esta caja (no tocan --team-rgb del resto). */
.livery-ferrari  { --pb-bg: #e8002d; --pb-acc: #ffffff; --pb-ink: #ffffff; }
.livery-mercedes { --pb-bg: #121417; --pb-acc: #2ef5dc; --pb-ink: #ffffff; }
.livery-alpine   { --pb-bg: #ff6fb5; --pb-acc: #1fa9ff; --pb-ink: #0b1530; }
.livery-mclaren  { --pb-bg: #ff8000; --pb-acc: #ffffff; --pb-ink: #111111; }
.livery-redbull  { --pb-bg: #1b2a5c; --pb-acc: #ff3b3b; --pb-ink: #ffffff; }
.livery-aston    { --pb-bg: #00594f; --pb-acc: #d7f200; --pb-ink: #ffffff; }
.livery-williams { --pb-bg: #00205b; --pb-acc: #7fd3ff; --pb-ink: #ffffff; }
.livery-audi     { --pb-bg: #2b2e33; --pb-acc: #ff2d55; --pb-ink: #ffffff; }
.livery-cadillac { --pb-bg: #0d0d0d; --pb-acc: #f5cf55; --pb-ink: #ffffff; }
.livery-vcarb    { --pb-bg: #1e41ff; --pb-acc: #ffffff; --pb-ink: #ffffff; }
.livery-haas     { --pb-bg: #e5e7eb; --pb-acc: #e10600; --pb-ink: #111111; }
/* Lugar para el número del auto (sin él se pisaba con las letras). */
.pc-pw-table { --w-pil: calc(1.67 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 2.9 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 2.8 * clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) + 4 * var(--pilot-gap) + 8px + 2.3 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 12px); }
.pc-pw-row td:first-child::before {
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  border-radius: 6px 0 0 6px;
  background:
    linear-gradient(109deg, transparent calc(100% - 15px), var(--pb-acc, #fff) calc(100% - 15px)),
    linear-gradient(to left, var(--pb-acc, #fff) 0%, var(--pb-acc, #fff) 28%, transparent 58%) left bottom / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.12) 100%),
    var(--pb-bg, rgb(var(--team-rgb, 255, 24, 1)));
}
/* Posición y siglas juntas a la izquierda, número del auto en el medio y
   código de escudería a la derecha, antes de la banda. */
.pc-pw-row .pc-pw-driver-brick { --team-ink: var(--pb-ink, #fff); justify-content: flex-start; gap: 0.4em; padding-right: 21px; }
.pc-pw-carno {
  flex: 1 1 auto; min-width: 0; text-align: center; line-height: 0; pointer-events: none;
  font-family: 'Orbitron', sans-serif; font-weight: 900; font-style: italic; font-size: 1.85em; letter-spacing: -0.05em;
  color: var(--pb-acc, #fff); opacity: 0.85; transform: skewX(-12deg);
}
/* ENCABEZADO con el mismo idioma: la caja DRIVER con el corte diagonal y una
   línea fina roja debajo de toda la fila de títulos. */
.pc-pw-table thead th.pc-pw-th-first { clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); background: linear-gradient(180deg, #161c2c 0%, #0b0f1a 100%); color: #cbd5e1; }
.pc-pw-table thead tr:last-child th, .pc-pw-table thead th[rowspan] { border-bottom: 2px solid rgba(255, 24, 1, 0.75); }
/* PIT: pastilla plana y sobria (era lo último que quedaba con brillo neón). */
.pc-pw-cell-plain.pc-pw-pit-badge {
  width: max-content; margin: 0 auto; padding: 1px 7px; border-radius: 5px;
  color: #ead7ff; text-shadow: none; font-size: 0.8em; letter-spacing: 0.1em;
  background: #2a1547; box-shadow: inset 0 0 0 1px #8a4dff;
}
/* GAP e INT: cifras de ancho fijo y más peso, como en la TV. */
.pc-pw-row td:nth-child(3) .pc-pw-cell-plain, .pc-pw-row td:nth-child(4) .pc-pw-cell-plain:not(.pc-pw-pit-badge) { font-weight: 700; font-variant-numeric: tabular-nums; }
/* FILAS COMO PLACAS: 3 px entre piloto y piloto (antes iban pegadas). */
.pc-pw-table { border-spacing: 0 3px; }
.pc-pw-row td:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
@media (max-width: 700px) {
  .pc-pw-table { border-spacing: 0 5px; }
  .pc-pw-row { border-left-color: var(--pb-acc, rgb(var(--team-rgb, 255, 24, 1))) !important; }
  /* La goma siempre arranca el 2º renglón de la tarjeta (con la caja nueva, en
     algunas tarjetas entraba en el 1º y en otras no: quedaban desparejas). */
  .pc-pw-row::before { content: ''; order: 4; flex-basis: 100%; height: 0; margin-top: -4px; }
  /* El dibujo va en una capa propia (::before) con el corte: si el recorte
     fuera en la caja, se comería la bandera a cuadros y el cartel ▲n. */
  .pc-pw-row .pc-pw-driver-brick { padding-right: 16px; background: none !important; position: relative; }
  .pc-pw-row .pc-pw-driver-brick > * { position: relative; z-index: 1; }
  .pc-pw-row .pc-pw-driver-brick > .pc-pw-chq { position: absolute; z-index: 8; }
  .pc-pw-row .pc-pw-driver-brick::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    border-radius: 5px 0 0 5px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    background:
      linear-gradient(109deg, transparent calc(100% - 14px), var(--pb-acc, #fff) calc(100% - 14px)),
      linear-gradient(to left, var(--pb-acc, #fff) 0%, var(--pb-acc, #fff) 28%, transparent 58%) left bottom / 100% 3px no-repeat,
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.12) 100%),
      var(--pb-bg, rgb(var(--team-rgb, 255, 24, 1)));
  }
}

/* === CADA PILOTO ES UNA BARRA (aprobado 24/10) ===
   Estilo inclinado como la placa: números en itálica y negrita, cajas de
   tiempos, PIT y títulos inclinados; mini sectores con 5° de inclinación.
   En compu la fila es un solo bloque: mismo fondo de punta a punta, sin
   líneas entre columnas, la placa con el mismo techo y piso que la fila, y
   la única separación es la banda inclinada de la escudería. */
.pc-pw-row td .pc-pw-cell-plain, .pc-pw-row td .pc-pw-sec-chip { font-style: italic; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-pw-row td.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-fill-g .pc-pw-cell-plain,
.pc-pw-row td.pc-pw-fill-p .pc-pw-sec-chip, .pc-pw-row td.pc-pw-fill-g .pc-pw-sec-chip { transform: skewX(-12deg); border-radius: 3px; }
.pc-pw-ms-dot { transform: skewX(-5deg); border-radius: 1px; }
.pc-pw-cell-plain.pc-pw-pit-badge { transform: skewX(-12deg); border-radius: 3px; font-style: italic; }
.pc-pw-table thead th { font-style: italic; }
@media (min-width: 701px) {
  .pc-pw-table { border-spacing: 0 4px; }
  .pc-pw-row td, .pc-pw-row:nth-child(even) td {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 50%, rgba(0, 0, 0, 0.10) 100%), #131b34;
    box-shadow: none; border: none; height: 34px;
  }
  .pc-pw-row td:not(:last-child) { box-shadow: none; }
  .pc-pw-row td:first-child { padding-top: 0; padding-bottom: 0; }
  .pc-pw-row td:first-child::before { inset: 0; border-radius: 6px 0 0 6px; }
  .pc-pw-row td:last-child { clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); border-radius: 0; padding-right: 12px; }
}

/* === AJUSTES FINOS DE LA BARRA (aprobados 24/10, madrugada) ===
   - Cajas verdes/violetas con aire parejo (6 px adelante, 8 px atrás por la
     itálica) y columnas de vueltas/sectores un poco más anchas para que entren.
   - Placa: posición más chica y pegada a las siglas (todas las siglas en la
     misma vertical), número del auto y escudería contra la banda.
   - Encabezado "POS DRIVER" alineado letra por letra con la placa y títulos
     con la misma letra que los números (Rajdhani, itálica). */
.pc-pw-row td.pc-pw-c-lap.pc-pw-fill-p .pc-pw-cell-plain, .pc-pw-row td.pc-pw-c-lap.pc-pw-fill-g .pc-pw-cell-plain,
.pc-pw-row td.pc-pw-c-sec.pc-pw-fill-p .pc-pw-sec-chip, .pc-pw-row td.pc-pw-c-sec.pc-pw-fill-g .pc-pw-sec-chip { padding-left: 6px; padding-right: 8px; }
.pc-pw-table {
  --w-lap: calc(3.5 * var(--nf) + 26px);
  --w-sec: calc(2.9 * var(--nf) + 26px);
  --w-pil: calc(1.67 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 2.9 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 2.8 * clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) + 4 * var(--pilot-gap) + 8px + 2.2 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 10px);
}
/* Bandera a cuadros de la placa (pedido 24/10): COMPACTA. 3 columnas x 3 filas
   de cuadros enteros, inclinada 15° como la banda, del alto de las siglas
   (1.15em del ladrillo ≈ 20px en compu, 15px en celular), centrada en la
   placa, entre las siglas y el número. La columna del piloto crece SOLO 8px:
   medido en vivo a 932px, con el ancho original el número de dos cifras se
   montaba 3px sobre la escudería y quedaba a 3px de la bandera. Las versiones
   anteriores la agrandaban 28 y 74px y corrían los datos en el celular apaisado. */
.pc-pw-table { --w-pil: calc(1.67 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 2.9 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 2.8 * clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) + 4 * var(--pilot-gap) + 8px + 2.2 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 10px + 8px); }
/* Tablet vertical (701-899px): ahí la letra ya está en su mínimo y el número de
   dos cifras quedaba a 0px de la escudería (medido en vivo a 768px): 6px más.
   Hasta 899 (antes 843): a 844px el 30 de LAW quedaba a 2px de VRB. */
@media (min-width: 701px) and (max-width: 899px) { .pc-pw-table { --w-pil: calc(1.67 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 2.9 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 2.8 * clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) + 4 * var(--pilot-gap) + 8px + 2.2 * clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem) + 10px + 14px); } }
.pc-pw-flag { flex: 0 0 auto; align-self: center; display: block; height: 1.05em; margin: 0 3px; }
.pc-pw-flag svg { display: block; height: 100%; width: auto; aspect-ratio: 45.6 / 36; }

.pc-pw-row .pc-pw-driver-brick { gap: 0.18em; padding-right: 16px; }
.pc-pw-row .pc-pw-driver-brick .pc-pw-pos { min-width: 1.584em; font-size: calc(clamp(0.78rem, 0.42rem + 1vw, 1.3rem) * 0.86); letter-spacing: -0.04em; }
.pc-pw-carno { font-size: 1.45em; text-align: right; padding-right: 0.25em; } /* 0.25em (antes 0.05em): la itálica del número se montaba sobre la escudería */
.pc-pw-row .pc-pw-driver-brick .pc-pw-team-badge { min-width: 0; margin-left: 0.15em; }
.pc-pw-table thead th { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; font-style: italic; }
.pc-pw-table thead th.pc-pw-th-first { padding-left: calc(var(--pilot-gap) + 3px); }
.pc-pw-row .pc-pw-driver-brick .pc-pw-tla { text-align: left; }
.pc-th-pos {
  display: inline-block; letter-spacing: 0; margin-left: -1px;
  width: calc(1.584 * 0.86 * clamp(0.78rem, 0.42rem + 1vw, 1.3rem) + 0.18 * clamp(0.82rem, 0.5rem + 0.55vw, 1.08rem));
}

/* === CELULAR HORIZONTAL: MÁS PILOTOS EN PANTALLA (pedido 24/10) ===
   Medido a 812x375: entraban 5 pilotos. En el Live Timing se esconden la
   barra de arriba y el menú de abajo (se vuelve con la flechita o poniendo
   el teléfono vertical), la consola pasa de 3 renglones a 2 sin el hueco
   antes de la tabla, y las filas bajan de 34 a 26 px (mismas letras, menos
   relleno). */
.pc-pw-back { display: none; }
@media (min-width: 701px) and (orientation: landscape) and (max-height: 500px) {
  body.is-lt > header, body.is-lt #mobileBottomNav { display: none !important; }
  body.is-lt { padding-bottom: 0; }
  body.is-lt main { margin-top: 4px; }
  body.is-lt #view-livetiming { margin-top: 0; }
  .pc-pw-shell { gap: 0; }
  .pc-pw-back {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; flex-shrink: 0;
    border-radius: 6px; border: 1px solid #2f3852; background: #0b0f1a; color: #cbd5e1; cursor: pointer;
  }
  .pc-pw-back svg { width: 14px; height: 14px; }
  /* Consola: renglón 1 = GP + estado de pista; renglón 2 = sesión + clima + DELAY. */
  .pc-pw-console { --con-h: 28px; --con-r: 7px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 10px; }
  .pc-pw-con-row { display: contents; }
  .pc-pw-gp-box { order: 1; flex: 1 1 0; gap: 8px; }
  .pc-pw-status { order: 2; gap: 8px; padding: 0 10px; }
  .pc-pw-console::after { content: ''; order: 3; flex-basis: 100%; height: 0; }
  .pc-pw-con-ctrl > * { order: 4; }
  .pc-pw-meteo { order: 5; flex-wrap: nowrap; gap: 4px; }
  .pc-pw-con-ctrl > .pc-pw-tvsync { order: 6; }
  .pc-pw-meteo-chip { padding: 0 7px; }
  .pc-pw-gp-title { font-size: 0.85rem; }
  .pc-pw-gp-sub { font-size: 0.66rem; margin-top: 0; }
  .pc-pw-gp-flag-wrap { width: 27px; height: 18px; }
  .pc-pw-tvsync-btn { width: 22px; height: 22px; }
  .pc-pw-shell .pc-pw-workspace { padding-top: 0; padding-bottom: 6px; }
  .pc-pw-table-wrap { padding-top: 2px; padding-bottom: 6px; }
  /* Filas de 26 px */
  .pc-pw-table { border-spacing: 0 2px; }
  .pc-pw-row td, .pc-pw-row:nth-child(even) td { height: 26px; padding-top: 0; padding-bottom: 0; }
  .pc-pw-row td .pc-pw-cell-plain, .pc-pw-row td .pc-pw-sec-chip { padding-top: 0; padding-bottom: 0; line-height: 1.1; }
  .pc-pw-ms-box { inset: 2px 3px; }
  .pc-pw-table thead th { padding-top: 2px; padding-bottom: 2px; line-height: 1.1; }
}

/* (25/10) Perfil al estilo nuevo: panel liso como Copas (sin carbon ni franja
   roja) y colores de la paleta dl en vez de los sueltos de Tailwind. Campos y
   botones siguen como estaban. */
.dl-perfil { background: var(--dl-panel); border: 1px solid var(--dl-line); border-radius: 14px; max-width: 100%; position: relative; }
.dl-perfil-sep { border-color: var(--dl-line); }
.dl-perfil-red { color: var(--dl-red); }
.dl-perfil-box { background: var(--dl-bg); border-color: var(--dl-line); }
.dl-perfil-box-ranked { border-color: rgba(245, 158, 11, 0.4); }
.dl-perfil-k { color: #8fa0c2; }
.dl-perfil-l { color: var(--dl-mute); }
.dl-perfil-mini { background: #1a2442; border-color: #3a4566; color: var(--dl-txt); }
.dl-perfil-mini:hover { background: #222e54; }

/* (25/10) Tarjetas de copa del menú Torneos (dirección de Gemini, variante C):
   un efecto sutil distinto en cada una (como las categorías del Home) y luz del color de la copa, logo grande y traslúcido arriba a la
   derecha, texto abajo. Solo .dl-cup: la tira del Home (.dlg-tile) y la cabecera
   de Copas solo cambian el logo. */
.dl-cup { min-height: 236px; gap: 6px; }
.dl-cup > :not(.dl-cup-emb):not(.dl-cup-stripe) { position: relative; z-index: 1; }
.dl-cup.dl-cup-ami { background: radial-gradient(110% 80% at 100% 0%, rgba(52,211,153,.20), transparent 65%), repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px), #09221b; border-color: #1f6b53; }
.dl-cup.dl-cup-rnk { background: radial-gradient(110% 80% at 100% 0%, rgba(226,232,240,.16), transparent 65%), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px), #181e29; border-color: #475569; }
.dl-cup.dl-cup-glb { background: radial-gradient(110% 80% at 100% 0%, rgba(96,165,250,.22), transparent 65%), radial-gradient(circle, rgba(147,197,253,.13) 1px, transparent 1.6px) 0 0 / 14px 14px, #091530; border-color: #2b4f98; }
.dl-cup.dl-cup-gpe { background: radial-gradient(110% 80% at 100% 0%, rgba(255,79,216,.26), transparent 65%), repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 22px), #14071f; border-color: #a3329b; }
.dl-cup.dl-cup-dtl { background: radial-gradient(110% 80% at 100% 0%, rgba(255,59,38,.20), transparent 65%), repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 3px, transparent 3px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 3px, transparent 3px 6px), #0c0c10; border-color: #7a1d14; }
.dl-cup .dl-cup-emb { position: absolute; top: 10px; right: -14px; width: 82%; height: 64%; min-height: 0; display: flex; align-items: center; justify-content: center; justify-content: flex-end; opacity: .34; transform: rotate(-6deg); pointer-events: none; -webkit-mask-image: radial-gradient(circle at 75% 30%, #000 40%, rgba(0,0,0,.2) 100%); mask-image: radial-gradient(circle at 75% 30%, #000 40%, rgba(0,0,0,.2) 100%); }
.dl-cup .dl-cup-emb img, .dl-cup .dl-cup-emb svg { width: 100%; height: 100%; object-fit: contain; object-position: right center; }
.dl-cup-glb .dl-cup-emb { opacity: .42; }
.dl-cup .dl-cup-tag { z-index: 2; background: rgba(6,10,22,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dl-cup .dl-cup-name { margin-top: auto; padding-top: 0; }
.dl-cup .dl-cup-live { margin-top: 8px; }
.dl-cup .dl-cup-cta { z-index: 2; }
.dl-cup-gpe .dl-cup-emb { top: 52px; right: 10px; width: auto; height: auto; opacity: .22; transform: rotate(-6deg); }
.dl-cup-gpe .dl-cup-emb .dl-neon { font-size: 46px; line-height: .92; text-align: right; }
.dl-cup-gpe .dl-cup-emb .dl-neon br { display: inline; }
.dl-cup.is-row { grid-template-columns: 1fr; grid-template-areas: 'tag' 'name' 'line' 'live' 'cta'; }
.dl-cup.is-row .dl-cup-emb { width: 34%; height: 74%; top: 12px; right: 8px; opacity: .3; }
.dl-cup.is-row > .dl-cup-name, .dl-cup.is-row > .dl-cup-line, .dl-cup.is-row > .dl-cup-live { max-width: 70%; }
.dl-cup.is-row.dl-cup-gpe .dl-cup-emb { top: 18px; right: 14px; width: auto; height: auto; opacity: .22; }
.dl-cup.is-row.dl-cup-gpe .dl-cup-emb .dl-neon { font-size: 26px; }
.dl-cup.is-row.dl-cup-glb .dl-cup-emb { opacity: .38; }
.dl-cup.is-row .dl-cup-name { margin-top: 4px; padding-top: 0; }
.dl-cup.is-row .dl-cup-live { margin-top: 2px; }

/* (25/10) Home: recorrido que explica cada parte, DEBAJO de lo que ya estaba
   (portada, Tus copas y las 4 categorías no cambian). Estructura y efecto de
   Gemini: cada capítulo entra con fundido y subida corta, con su número grande
   y traslúcido; fondos sutiles distintos como las categorías. */
/* Visitante sin cuenta: ve el Home sin la fila "Tus copas" (no tiene copas). */
.is-guest .dlg-railwrap { display: none; }
.dlg-guestrail { display: none; }
@media (min-width: 1024px) {
  .is-guest .dlg-guestrail { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(1280px, 100%); margin: 0 auto; padding: 0 var(--dl-gut) 28px; box-sizing: border-box; }
  .dlg-guestrail button { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-align: left; border-radius: 10px; background: rgba(11, 14, 23, .78); border: 1px solid #2a344d; color: #f1f5f9; font-family: var(--f-ui); cursor: pointer; transition: background .15s, border-color .15s; }
  .dlg-guestrail button:hover { background: #131b2e; border-color: #3b4868; }
  .dlg-guestrail b { font-size: 17px; font-weight: 600; }
  .dlg-guestrail span { font-size: 13.5px; color: #94a3b8; }
}

/* (25/10) Auditoría de encuadre y letras (vista de usuario simulada, 4 anchos).
   1. Un solo margen lateral para toda la web: el del contenedor principal
      (12 px en celular, 24 px desde 640). Antes el Home y Copas usaban otro y
      el contenido "saltaba" al cambiar de página; el recorrido del Home
      quedaba 24 px más adentro. */
:root { --dl-gut: 12px; }
@media (min-width: 640px) { :root { --dl-gut: 24px; } }
.dlg-main, .dlg-railwrap, .dlg-cband-in { padding-left: var(--dl-gut); padding-right: var(--dl-gut); }
.dlg-cbody { padding-left: var(--dl-gut); padding-right: var(--dl-gut); }
/* 2. Calendario: columnas fijas para que fechas y podios queden alineados. */
.dl-cal-row { grid-template-columns: 44px 30px minmax(120px, 1fr) 110px 300px; }
.dl-cal-x { justify-content: flex-end; }
.dl-cal-pod b { display: inline-block; min-width: 46px; text-align: center; box-sizing: border-box; }
.dl-cal-pod i { display: inline-block; width: 36px; text-align: left; }
.dl-cal-go { width: 96px; text-align: right; }
@media (max-width: 820px) {
  .dl-cal-row { grid-template-columns: 34px 26px minmax(90px, 1fr) 132px; }
  .dl-cal-pod i { width: 32px; }
}
/* 3. Resultados: aire entre pestañas, título, resumen y tabla; la fila de
   carreras se esfuma en los bordes en vez de verse cortada. */
#dlResBody { display: flex; flex-direction: column; gap: 12px; }
.dl-r-head { margin-top: 4px; }
.dl-r-bar1 { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); padding-left: 14px; padding-right: 14px; }
/* 4. Prode: los puntos de cada categoría en un solo renglón y los
   selectores con "…" en vez de cortar la palabra. */
#view-campeonato [id^="card_bet_"] > div:first-child { gap: 10px; }
#view-campeonato [id^="card_bet_"] > div:first-child > span { white-space: nowrap; flex-shrink: 0; }
#view-campeonato select, #view-perfil select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
/* 5. Tira "Tus copas" del Home: logos más grandes, como en las tarjetas. */
.dlg-tile-emb { height: 64px; }
.dlg-tile-emb img, .dlg-tile-emb svg { width: auto; height: 60px; max-width: 100%; object-fit: contain; }
.dlg-tile-emb .dl-neon { font-size: 19px; }
/* 6. Letras de menos de 11 px fuera del Live Timing (clases sueltas de
   Tailwind en Perfil y Prode). Las insignias chiquitas quedan como están. */
:is(.text-\[9px\], .text-\[10px\]):not(#view-livetiming, #view-livetiming *) { font-size: 11px; }

/* (25/10) Copas con el diseño de la muestra de Ranked aprobada por el dueño
   (prefijo dlk-). Misma cabecera y misma tabla para Mundial, Amistosa y Ranked. */
.dlk-hero { --k: #38bdf8; position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; background: radial-gradient(60% 90% at 82% 40%, rgba(56,189,248,.16), transparent 70%), radial-gradient(circle, rgba(148,163,184,.12) 1px, transparent 1.6px) 0 0 / 12px 12px, repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 8px), #070b16; border-bottom: 1px solid rgba(148,163,184,.14); }
.dlk-glb { --k: #93c5fd; }
.dlk-ami { --k: #34d399; background-color: #06110f; }
.dlk-hero-in { position: relative; width: min(1280px, 100%); margin: 0 auto; padding: 34px var(--dl-gut) 30px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.dlk-hero-in::before { content: ''; position: absolute; left: var(--dl-gut); top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--k), transparent); opacity: .7; }
.dlk-hero-txt { position: relative; z-index: 1; min-width: 0; padding-left: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.dlk-kick { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--k); }
.dlk-title { margin: 6px 0 0; max-width: 100%; font-size: clamp(42px, 7vw, 96px); font-weight: 800; line-height: .95; letter-spacing: -.02em; text-transform: uppercase; background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 45%, #8fa0c2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); overflow-wrap: anywhere; }
.dlk-sub { margin: 10px 0 0; font-size: 17px; color: #cbd5e1; }
.dlk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.dlk-chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); background: rgba(5,7,13,.55); color: #e2e8f0; font-family: var(--f-ui); font-size: 14px; font-weight: 600; cursor: pointer; }
.dlk-chip.is-on { background: #fff; border-color: #fff; color: #05070d; }
.dlk-chip.is-cta { border-color: var(--k); color: #fff; }
.dlk-code { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; border: 1px dashed rgba(148,163,184,.5); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #cbd5e1; }
.dlk-code b { font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; text-transform: none; color: #fff; }
.dlk-ladder { display: flex; align-items: flex-start; margin-top: 22px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dlk-ladder::-webkit-scrollbar { display: none; }
.dlk-step { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; }
.dlk-step img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.dlk-step b { font-size: 13px; font-weight: 600; color: #a5b4cf; white-space: nowrap; }
.dlk-step.is-on img { width: 60px; height: 60px; margin-top: -4px; filter: drop-shadow(0 0 14px rgba(255,138,61,.45)); }
.dlk-step.is-on b { color: #ff8a3d; font-weight: 700; }
.dlk-link { flex: 1 0 14px; height: 2px; margin-top: 26px; background: rgba(56,189,248,.45); border-radius: 2px; }
.dlk-link.is-hot { background: linear-gradient(90deg, rgba(56,189,248,.45), #ff8a3d); }
.dlk-tabs { display: inline-flex; gap: 4px; margin-top: 24px; padding: 4px; border-radius: 999px; border: 1px solid rgba(148,163,184,.25); background: rgba(5,7,13,.6); }
.dlk-tab { height: 40px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: none; color: #cbd5e1; font-family: var(--f-ui); font-size: 16px; font-weight: 600; cursor: pointer; }
.dlk-tab:hover { color: #fff; }
.dlk-tab.is-on { border-color: #ff8a3d; color: #ff8a3d; background: rgba(255,138,61,.08); }
.dlk-emb { position: relative; z-index: 0; width: 300px; height: 300px; display: grid; place-items: center; }
.dlk-emb::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%); }
.dlk-emb img, .dlk-emb svg { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.dlk-mets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dlk-met { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(160deg, rgba(30,41,59,.6), rgba(11,16,32,.8)); min-width: 0; }
.dlk-met span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8fa0c2; }
.dlk-met b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.dlk-met i { font-style: normal; font-size: 13px; color: #a5b4cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlk-views { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 999px; border: 1px solid rgba(148,163,184,.2); background: rgba(11,16,32,.8); }
.dlk-view { height: 36px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: #a5b4cf; font-family: var(--f-ui); font-size: 14px; font-weight: 600; cursor: pointer; }
.dlk-view.is-on { background: #1a2442; color: #fff; }
.dlk-panel { padding: 18px; border-radius: 18px; border: 1px solid rgba(148,163,184,.2); background: linear-gradient(180deg, rgba(30,41,59,.45), rgba(11,16,32,.75)); box-shadow: 0 24px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; font-family: var(--f-ui); }
.dlk-panel-t { margin: 0 0 6px 4px; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cbd5e1; }
.dlk-empty { margin: 4px; font-size: 15px; color: #a5b4cf; }
.dlk-row { display: grid; grid-template-columns: 44px 22px minmax(170px, 1fr) 92px 78px 110px 100px 140px 86px; align-items: center; column-gap: 10px; min-height: 60px; padding: 0 16px 0 6px; border-radius: 12px; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(90deg, rgba(30,41,59,.6), rgba(15,23,42,.6)); font-size: 16px; font-weight: 600; color: #e2e8f0; font-variant-numeric: tabular-nums; transition: border-color .15s, background .15s; }
.dlk-row:not(.dlk-row-h):hover { border-color: rgba(148,163,184,.35); }
.dlk-row-h { min-height: 32px; border: 0; background: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa0c2; }
.dlk-pos { text-align: center; font-size: 20px; font-weight: 700; color: #fff; }
.dlk-row-h .dlk-pos, .dlk-row-h .dlk-pts { font-size: 13px; font-weight: 600; color: #8fa0c2; }
.dlk-row.is-p1 .dlk-pos { color: #fbbf24; } .dlk-row.is-p2 .dlk-pos { color: #e2e8f0; } .dlk-row.is-p3 .dlk-pos { color: #fb923c; }
.dlk-mv { text-align: center; font-size: 13px; }
.dlk-mv.is-up { color: #22c55e; } .dlk-mv.is-down { color: #ef4444; } .dlk-mv.is-eq { color: #64748b; }
.dlk-drv { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dlk-av { position: relative; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #334155, #0b1020 70%); box-shadow: 0 0 0 2px var(--team), 0 4px 10px rgba(0,0,0,.4); }
.dlk-av svg { width: 32px; height: 32px; margin-left: 2px; }
.dlk-av b { display: none; }
.dlk-flag img { display: block; width: 26px; height: auto; border-radius: 3px; }
.dlk-drv b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600; color: #fff; }
.dlk-drv em { flex-shrink: 0; padding: 2px 8px; border-radius: 6px; background: var(--dl-red); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.dlk-pts { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; padding-left: 12px; border-left: 1px solid rgba(148,163,184,.12); font-size: 20px; font-weight: 700; color: #fff; }
.dlk-row-h .dlk-pts { border-left: 0; }
.dlk-c { text-align: right; }
.dlk-c i { font-style: normal; color: #64748b; }
.dlk-last { color: #22c55e; }
.dlk-best small { display: block; font-size: 12px; font-weight: 500; color: #8fa0c2; }
.dlk-hits { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dlk-hits svg { width: 16px; height: 16px; fill: none; stroke: #22c55e; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dlk-row-h .dlk-hits, .dlk-row-h .dlk-form { justify-content: flex-end; }
.dlk-form { display: flex; justify-content: flex-end; }
.dlk-spark { display: block; width: 120px; height: 32px; }
.dlk-spark svg { width: 100%; height: 100%; overflow: visible; }
.dlk-spark .l { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.dlk-spark.is-up .l { stroke: #22c55e; } .dlk-spark.is-up .a { fill: rgba(34,197,94,.16); } .dlk-spark.is-up circle { fill: #4ade80; }
.dlk-spark.is-down .l { stroke: #f59e0b; } .dlk-spark.is-down .a { fill: rgba(245,158,11,.16); } .dlk-spark.is-down circle { fill: #fbbf24; }
.dlk-spark.is-empty path { fill: none; stroke: #334155; stroke-width: 2; stroke-dasharray: 4 5; }
.dlk-gap { color: #f87171; font-weight: 700; }
.dlk-gap.is-lead { color: #fbbf24; }
.dlk-row-h .dlk-last, .dlk-row-h .dlk-gap { color: #8fa0c2; font-weight: 600; }
.dlk-row.is-me { border-color: #38bdf8; background: linear-gradient(90deg, rgba(56,189,248,.16), rgba(15,23,42,.7)); box-shadow: 0 0 0 1px rgba(56,189,248,.35), 0 0 22px rgba(56,189,248,.18); }
.dlk-row.is-down { box-shadow: inset 0 -2px 0 rgba(239,68,68,.55); }
@media (max-width: 1023px) {
  .dlk-emb { width: 200px; height: 200px; }
  .dlk-row { grid-template-columns: 40px 20px minmax(150px, 1fr) 84px 70px 130px 80px; }
  .dlk-best, .dlk-hits { display: none !important; }
  .dlk-mets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dlk-hero-in { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 22px; }
  .dlk-emb { position: absolute; right: -14px; top: 4px; width: 150px; height: 150px; opacity: .22; }
  .dlk-ladder { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); padding: 0 14px; margin-left: -14px; max-width: calc(100% + 28px); scroll-snap-type: x mandatory; }
  .dlk-step { scroll-snap-align: center; }
  .dlk-title { font-size: clamp(36px, 11vw, 56px); }
  .dlk-sub { font-size: 16px; }
  .dlk-step { width: 84px; } .dlk-step img { width: 42px; height: 42px; } .dlk-step.is-on img { width: 48px; height: 48px; }
  .dlk-step b { font-size: 12px; }
  .dlk-link { margin-top: 20px; flex: 0 0 6px; }
  .dlk-tabs { align-self: stretch; padding: 3px; gap: 2px; } .dlk-tab { flex: 1 1 auto; height: 36px; padding: 0 4px; font-size: 12.5px; white-space: nowrap; letter-spacing: -.01em; }
  .dlk-views { display: flex; } .dlk-view { flex: 1 1 auto; padding: 0 4px; font-size: 12.5px; white-space: nowrap; }
  .dlk-met b { font-size: 24px; }
  .dlk-panel { padding: 12px 10px; }
  .dlk-row { grid-template-columns: 30px minmax(0, 1fr) 50px 72px; column-gap: 8px; padding: 0 10px 0 4px; min-height: 56px; }
  .dlk-mv, .dlk-row-h > span:nth-child(2), .dlk-last, .dlk-gap { display: none !important; }
  .dlk-av { width: 32px; height: 32px; } .dlk-av svg { width: 25px; height: 25px; }
  .dlk-flag img { width: 22px; }
  .dlk-drv { gap: 8px; } .dlk-drv b { font-size: 16px; }
  .dlk-drv em { display: none; }
  .dlk-pts { font-size: 18px; padding-left: 8px; }
  .dlk-spark { width: 72px; height: 28px; }
}

/* Copas: ajustes de Gemini contra la muestra + escalera solo con logos
   (los nombres se ven con "Ver divisiones"). */
.dlk-ladder { align-items: center; flex-wrap: wrap; overflow: visible; row-gap: 10px; }
.dlk-step { width: 56px; }
.dlk-step b { display: none; }
.dlk-ladder.is-open .dlk-step { width: 76px; }
.dlk-ladder.is-open .dlk-step b { display: block; }
.dlk-link { flex: 0 0 14px; margin-top: 0; align-self: center; background: rgba(148,163,184,.28); }
.dlk-ladder.is-open .dlk-link { align-self: flex-start; margin-top: 26px; }
.dlk-link.is-hot { background: linear-gradient(90deg, #38bdf8, #ff8a3d); }
.dlk-step.is-on b { display: block; }
.dlk-ladder:not(.is-open) .dlk-step.is-on { width: auto; flex-direction: row; gap: 10px; }
.dlk-ladder:not(.is-open) .dlk-step.is-on b { font-size: 15px; }
.dlk-ladder-more { margin-left: 14px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(148,163,184,.35); background: rgba(5,7,13,.55); color: #cbd5e1; font-family: var(--f-ui); font-size: 13px; font-weight: 600; cursor: pointer; }
.dlk-ladder-more:hover { color: #fff; border-color: #cbd5e1; }
@media (min-width: 1024px) { .dlk-emb { width: 360px; height: 360px; margin: -24px -10px -24px 0; } }
.dlk-panel { border-top-color: rgba(148,163,184,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 24px 50px rgba(0,0,0,.45); }
.dlk-pts { border-left: 0; }
@media (max-width: 640px) {
  .dlk-ladder { -webkit-mask-image: none; mask-image: none; padding: 0; margin-left: 0; max-width: 100%; }
  .dlk-step, .dlk-ladder.is-open .dlk-step { width: 36px; }
  .dlk-step img { width: 32px; height: 32px; }
  .dlk-step.is-on img { width: 38px; height: 38px; margin-top: 0; }
  .dlk-link { flex: 0 0 4px; }
  .dlk-ladder:not(.is-open) .dlk-step.is-on b { display: none; }
  .dlk-ladder:not(.is-open) .dlk-step.is-on { width: 40px; }
  .dlk-step, .dlk-ladder.is-open .dlk-step { width: 34px; }
  .dlk-ladder.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
  .dlk-ladder.is-open .dlk-link { display: none; }
  .dlk-ladder.is-open .dlk-step { width: auto; }
  .dlk-ladder.is-open .dlk-ladder-more { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
  .dlk-ladder-more { margin: 10px 0 0; flex-basis: 100%; max-width: max-content; }
  .dlk-row-h > :not(.dlk-pos):not(.dlk-drv):not(.dlk-pts):not(.dlk-form) { display: none !important; }
}

/* (25/10) Live Timing en celular vertical: vista compacta. Cada piloto en 2
   renglones (placa + al líder + intervalo / goma + última + mejor + gomas
   usadas) para que entren 6-7 en pantalla; tocando un piloto se abre su
   tarjeta con mini-sectores, sectores y mejores propios. Leyenda arriba. */
.pc-pw-mlegend { display: none; }
@media (max-width: 700px) {
  .pc-pw-mlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 6px 2px; padding: 6px 10px; border-radius: 8px; background: rgba(13,21,48,.85); border: 1px solid #262d42; font-family: var(--f-ui); font-size: 12px; line-height: 1.35; color: #a5b4cf; }
  .pc-pw-mlegend b { color: #fff; font-weight: 700; margin-right: 4px; }
  .pc-pw-mlegend .is-tip { color: #fbbf24; font-weight: 600; }
  .pc-pw-row { cursor: pointer; padding: 4px 6px; row-gap: 3px; }
  .pc-pw-table { border-spacing: 0 4px; }
  .pc-pw-row:not(.is-open) td:nth-child(n+7):nth-child(-n+16) { display: none !important; }
  .pc-pw-meteo { display: none !important; }
  .pc-pw-row:not(.is-open)::after { display: none; }
  .pc-pw-row td:nth-child(5) .pc-pw-cell-plain::before, .pc-pw-row td:nth-child(6) .pc-pw-cell-plain::before { margin-right: 3px; font-family: var(--f-ui); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; opacity: .7; }
  .pc-pw-row td:nth-child(5) .pc-pw-cell-plain::before { content: 'ÚLT'; }
  .pc-pw-row td:nth-child(6) .pc-pw-cell-plain::before { content: 'MEJOR'; }
  .pc-pw-row.is-open { box-shadow: 0 0 0 1px rgba(251,191,36,.6), 0 3px 8px rgba(0,0,0,.45); }
  /* Flechita desplegable a la derecha del segundo renglón. */
  .pc-pw-row { position: relative; padding-right: 26px; }
  .pc-pw-row td:nth-child(6)::after { content: ''; position: absolute; right: 9px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s; }
  .pc-pw-row.is-open td:nth-child(6)::after { top: 22px; margin-top: 0; transform: rotate(-135deg); border-color: #fbbf24; }
  /* Rótulos de la parte desplegada: último y mejor de cada sector. */
  .pc-pw-row.is-open td:nth-child(10) .pc-pw-sec-chip::before { content: 'ÚLT'; margin-right: 3px; font-family: var(--f-ui); font-style: normal; font-size: 11px; font-weight: 700; opacity: .7; }
  .pc-pw-row.is-open td:nth-child(13) .pc-pw-sec-tag { font-family: var(--f-ui); font-style: normal; font-size: 11px; }
}
@media (max-width: 380px) {
  .pc-pw-row { padding-right: 18px; column-gap: 4px; }
  .pc-pw-row td:nth-child(6)::after { right: 6px; width: 7px; height: 7px; }
  .pc-pw-row td:nth-child(6) .pc-pw-cell-plain::before { content: 'MEJ'; }

}

/* === PLACA DEL PILOTO: SISTEMA DE 3 CASILLEROS FIJOS (31/10) ===
   3 casilleros de ancho fijo (--s-pos, --s-tla, --s-team) con espacio fijo
   (--b-gap). Sin número del piloto (pedido del dueño). Posición centrada;
   siglas alineadas a la izquierda; escudería y bandera centradas en el mismo
   casillero --s-team. El ancho de la placa y de la columna (--w-pil) es la suma exacta
   de las partes en CSS puro (sin ltFitPilotCol en JS). */
.pc-pw-table {
  --f-pos: calc(clamp(0.78rem, 0.42rem + 1vw, 1.3rem) * 0.92);
  --f-tla: clamp(0.9rem, 0.5rem + 1.1vw, 1.4rem);
  --f-team: calc(clamp(0.58rem, 0.34rem + 0.5vw, 0.84rem) * 0.91);
  --s-pos: calc(1.56 * var(--f-pos));
  --s-tla: calc(2.78 * var(--f-tla));
  --s-team: calc(2.68 * var(--f-team));
  --b-gap: clamp(4px, 0.35vw, 6px);
  --b-pad-l: clamp(6px, 0.55vw, 9px);
  --b-pad-r: 15px;
  --w-pil: calc(var(--b-pad-l) + var(--s-pos) + var(--s-tla) + var(--s-team) + 2 * var(--b-gap) + var(--b-pad-r) + 4px);
}
.pc-pw-row .pc-pw-driver-brick {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--b-gap);
  padding-left: var(--b-pad-l);
  padding-right: var(--b-pad-r);
  box-sizing: border-box;
}
/* Casillero 1: Posición centrada (sin escalón vacío en 1-9) */
.pc-pw-row .pc-pw-driver-brick .pc-pw-pos {
  flex: 0 0 var(--s-pos);
  width: var(--s-pos);
  min-width: var(--s-pos);
  font-size: var(--f-pos);
  letter-spacing: -0.02em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Plaquita de podio en Qualy (P1/P2/P3): todo el casillero */
.pc-pw-row:is(.qz-p1, .qz-p2, .qz-p3) .pc-pw-driver-brick .pc-pw-pos::before {
  inset: -1px 0;
  width: auto;
}
/* Casillero 2: Siglas (alineadas a la izquierda -> misma vertical en las 22 filas) */
.pc-pw-row .pc-pw-driver-brick .pc-pw-tla {
  flex: 0 0 var(--s-tla);
  width: var(--s-tla);
  min-width: var(--s-tla);
  font-size: var(--f-tla);
  letter-spacing: 0.01em;
  text-align: left;
}
/* Siglas angostas (I al medio): un poco más abiertas para achicar el hueco
   antes de la escudería. Lista fija: revisar con los pilotos de cada año. */
.pc-pw-row:is([data-k="LIN"], [data-k="PIA"], [data-k="SAI"]) .pc-pw-driver-brick .pc-pw-tla {
  letter-spacing: 0.14em;
}
/* Sin número del piloto en la placa (pedido del dueño 31/10). */
.pc-pw-row .pc-pw-driver-brick .pc-pw-carno { display: none; }
/* Casillero 3: Escudería y bandera centradas en el MISMO casillero fijo */
.pc-pw-row .pc-pw-driver-brick .pc-pw-team-badge,
.pc-pw-row .pc-pw-driver-brick .pc-pw-team-fin {
  flex: 0 0 var(--s-team);
  width: var(--s-team);
  min-width: var(--s-team);
  margin-left: 0;
  font-size: var(--f-team);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pc-pw-fin-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1.52em;
}
.pc-pw-fin-flag svg {
  display: block;
  height: 100%;
  width: auto;
  aspect-ratio: 45.6 / 36;
}
/* Encabezado POS / DRIVER alineado al píxel con los casilleros 1 y 2 */
.pc-pw-table thead th.pc-pw-th-first {
  padding-left: calc(var(--b-pad-l) + 2px);
}
.pc-th-pos {
  display: inline-block;
  letter-spacing: 0;
  margin-left: 0;
  width: calc(var(--s-pos) + var(--b-gap));
}

/* Celular vertical (<= 700px, tarjetas): ancho de placa único en las 22 filas */
@media (max-width: 700px) {
  .pc-pw-table {
    --b-pad-l: 7px;
    --b-pad-r: 14px;
    --b-gap: 4px;
  }
  .pc-pw-row .pc-pw-driver-brick {
    width: calc(var(--b-pad-l) + var(--s-pos) + var(--s-tla) + var(--s-team) + 2 * var(--b-gap) + var(--b-pad-r));
  }
}

/* Tablet y compu (> 700px y > 500px de alto): filas compactas */
@media (min-width: 701px) and (min-height: 501px) {
  .pc-pw-table { border-spacing: 0 3px; }
  .pc-pw-row td, .pc-pw-row:nth-child(even) td { height: 32px; }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .pc-pw-row td, .pc-pw-row:nth-child(even) td { height: 31px; }
}
@media (min-width: 1440px) {
  .pc-pw-table .pc-pw-w-hist { width: auto; }
}

/* (25/10) Auditoría 2: Resultados en celular dejaba el 3º solo abajo. */
@media (max-width: 767px) {
  .dl-r-sums { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .dl-r-sum { padding: 10px; }
  .dl-r-sum b { font-size: 17px; }
}

/* Celular apaisado (max-height: 500px): variables comprimidas, --w-pil se
   calcula solo con la misma fórmula sin pisar con 15px ni 150px fijos */
@media (min-width: 701px) and (orientation: landscape) and (max-height: 500px) {
  .pc-pw-table {
    --f-pos: 0.72rem;
    --f-tla: 0.86rem;
    --f-team: 0.58rem;
    --b-gap: 4px;
    --b-pad-l: 6px;
    --b-pad-r: 12px;
  }
}

/* (25/10, en carrera) Compu: filas más bajas para que entren más pilotos
   (quejas de usuarios: se veía grande). Números 12% más chicos y celdas sin
   relleno vertical; la placa del piloto no cambia. */
@media (min-width: 1024px) and (min-height: 600px) {
  .pc-pw-table { --nf: calc(0.88 * clamp(0.845rem, 0.48rem + 0.96vw, 1.44rem)); }
  .pc-pw-row td { padding-top: 0 !important; padding-bottom: 0 !important; }
  .pc-pw-row .pc-pw-cell-plain, .pc-pw-row .pc-pw-sec-chip { padding-top: 1px; padding-bottom: 1px; }
}

/* (25/10, en carrera) Compu: menos espacio arriba de la tabla (margenes,
   consola y encabezado) para que entren más pilotos sin achicar nada más. */
@media (min-width: 1024px) and (min-height: 600px) {
  body.is-lt main { margin-top: 6px !important; }
  body.is-lt #view-livetiming { margin-top: 0 !important; }
  body.is-lt .pc-pw-con-row { padding-top: 6px; padding-bottom: 6px; }
  body.is-lt .pc-pw-workspace { padding-top: 2px !important; }
  body.is-lt .pc-pw-table-wrap { padding-top: 2px; }
  body.is-lt .pc-pw-table thead th { padding-top: 3px; padding-bottom: 3px; }
}

/* (30/10) Compu: el Live Timing usa todo el ancho de la pantalla; el resto de
   la web sigue en la caja de 1280 px. En 1920 la tabla entraba con scroll
   lateral teniendo 360 px vacíos de cada lado. */
@media (min-width: 1024px) {
  body.is-lt main { max-width: none; }
}
/* (30/10) En todos los anchos: márgenes laterales mínimos en el Live Timing.
   Antes se sumaban página (12-24 px) + panel (12-16 px) + borde (3 px):
   la tabla arrancaba a 31 px del borde en celular y a 44 en tablet. */
body.is-lt main { padding-left: 6px; padding-right: 6px; }
body.is-lt .pc-pw-workspace { padding-left: 6px; padding-right: 6px; }

/* (25/10) Prode: Última boleta (comparativa de la copa) y Mis boletas
   (historial). Verde pegó, ámbar podio en otro puesto, rojo apagado no pegó. */
.dlb { font-family: var(--f-ui); color: #e2e8f0; display: flex; flex-direction: column; gap: 12px; }
.dlb-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dlb-hero > div, .dlb-sum > div { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,.18); background: linear-gradient(160deg, rgba(30,41,59,.6), rgba(11,16,32,.85)); min-width: 0; }
.dlb-hero span, .dlb-sum span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8fa0c2; }
.dlb-hero b, .dlb-sum b { display: block; margin-top: 2px; font-size: 24px; font-weight: 700; color: #fff; }
.dlb-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dlb-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid rgba(148,163,184,.18); background: #0b1020; }
.dlb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.dlb-table th, .dlb-table td { padding: 8px 12px; border-bottom: 1px solid rgba(148,163,184,.08); text-align: center; white-space: nowrap; }
.dlb-table thead th { position: sticky; top: 0; background: #111a33; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fa0c2; vertical-align: bottom; }
.dlb-table th.dlb-p span { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff; }
.dlb-table th.dlb-p b { display: block; font-size: 13px; color: #fbbf24; letter-spacing: 0; text-transform: none; }
.dlb-table th.dlb-p.is-me span { color: #38bdf8; }
.dlb-q { position: sticky; left: 0; z-index: 1; text-align: left !important; background: #0d1428; font-weight: 600; color: #cbd5e1; }
thead .dlb-q { z-index: 2; background: #111a33; }
.dlb-real { font-weight: 700; color: #fff; background: rgba(255,255,255,.03); }
.dlb-sec td { padding: 10px 12px 6px; text-align: left !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff6b57; background: #0b1020; position: sticky; left: 0; }
.dlb-c span { font-weight: 600; }
.dlb-c b { margin-left: 6px; font-size: 12px; font-weight: 700; }
.dlb-c.is-hit { background: rgba(34,197,94,.14); color: #bbf7d0; } .dlb-c.is-hit b { color: #4ade80; }
.dlb-c.is-part { background: rgba(245,158,11,.14); color: #fde68a; } .dlb-c.is-part b { color: #fbbf24; }
.dlb-c.is-miss { color: #94a3b8; } .dlb-c.is-miss span { text-decoration: line-through; text-decoration-color: rgba(239,68,68,.6); }
.dlb-c.is-lock { color: #64748b; font-style: italic; }
.dlb-tot td { font-weight: 700; color: #fff; background: #111a33; border-bottom: 0; }
.dlb-note { margin: 0; font-size: 13px; color: #a5b4cf; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dlb-note i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }
.dlb-note i.is-hit { background: rgba(34,197,94,.5); } .dlb-note i.is-part { background: rgba(245,158,11,.5); } .dlb-note i.is-miss { background: rgba(148,163,184,.3); }
.dlb-tk { border-radius: 14px; border: 1px solid rgba(148,163,184,.18); background: #0b1020; overflow: hidden; }
.dlb-tk-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.dlb-tk-h::-webkit-details-marker { display: none; }
.dlb-tk-h::after { content: ''; width: 8px; height: 8px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); margin-left: 4px; }
.dlb-tk[open] .dlb-tk-h::after { transform: rotate(-135deg); }
.dlb-tk-gp { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; color: #fff; }
.dlb-tk-gp i { margin-right: 8px; font-style: normal; font-size: 12px; color: #8fa0c2; }
.dlb-tk-st { font-size: 13px; color: #a5b4cf; } .dlb-tk-st.is-wait { color: #fbbf24; }
.dlb-tk-pts { font-size: 22px; font-weight: 700; color: #fff; } .dlb-tk-pts small { font-size: 13px; color: #a5b4cf; }
.dlb-tk-list { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 3px; }
.dlb-tk-sec { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ff6b57; }
.dlb-tk-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; background: rgba(255,255,255,.02); }
.dlb-tk-row.is-hit { background: rgba(34,197,94,.12); } .dlb-tk-row.is-part { background: rgba(245,158,11,.12); }
.dlb-tk-q { color: #cbd5e1; } .dlb-tk-pick { font-weight: 700; color: #fff; } .dlb-tk-real { color: #8fa0c2; font-size: 13px; }
.dlb-tk-row b { text-align: right; color: #64748b; } .dlb-tk-row.is-hit b { color: #4ade80; } .dlb-tk-row.is-part b { color: #fbbf24; }
@media (max-width: 640px) {
  .dlb-hero, .dlb-sum { gap: 6px; } .dlb-hero > div, .dlb-sum > div { padding: 10px; } .dlb-hero b, .dlb-sum b { font-size: 19px; }
  .dlb-table th, .dlb-table td { padding: 7px 8px; font-size: 13px; }
  .dlb-table .dlb-q { min-width: 0; width: 96px; max-width: 96px; white-space: normal; line-height: 1.2; font-size: 12.5px; }
  .dlb-table .dlb-real { width: 70px; max-width: 70px; white-space: normal; font-size: 12.5px; }
  .dlb-table td.dlb-c { min-width: 82px; }
  .dlb-c b { display: block; margin: 0; }
  .dlb-tk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; } .dlb-tk-real { grid-column: 1 / 3; grid-row: 2; }
  .dlb-tk-gp { font-size: 15px; } .dlb-tk-st { display: none; }
}

@media (max-width: 380px) { .dlk-tab .dlk-lg { display: none; } }
/* (25/10) Copas > Tu última fecha. */
.dlk-lastgp .dlk-mets { margin-bottom: 4px; }
.dlk-met.is-up b { color: #22c55e; } .dlk-met.is-down b { color: #ef4444; }
.dlk-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlk-vs-col { padding: 14px; border-radius: 12px; border: 1px solid rgba(148,163,184,.16); background: rgba(5,7,13,.5); }
.dlk-vs-col h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #cbd5e1; }
.dlk-chipq { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dlk-chipq.is-hit { background: rgba(251,191,36,.12); color: #fde68a; } .dlk-chipq.is-mine { background: rgba(34,197,94,.14); color: #bbf7d0; }
.dlk-chipq b { font-weight: 700; }
.dlk-fun { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dlk-fun > div { padding: 14px; border-radius: 12px; background: radial-gradient(120% 90% at 100% 0%, rgba(56,189,248,.12), transparent 60%), rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.16); }
.dlk-fun span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #38bdf8; }
.dlk-fun p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: #fff; }
.dlk-fun b { color: #4ade80; }
.dlk-lastgp-go { align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) { .dlk-vs { grid-template-columns: 1fr; } }

/* (25/10) Una sola regla de letras: Orbitron y Rajdhani SOLO en el Live Timing;
   el resto de la web (perfil, ingreso, prode, calendario, F1 real, ficha del
   piloto, modales) en Geist. Las clases viejas font-f1 (Orbitron) y
   font-telemetry (Rajdhani) y los botones/etiquetas viejos pasan a Geist fuera
   de #view-livetiming; adentro no cambia nada. */
:is(.font-f1, .font-telemetry, .btn-f1-primary, .btn-f1-secondary, .btn-f1-play, .btn-whatsapp-f1, .telemetry-pos-cube, .telemetry-team-tag):not(#view-livetiming, #view-livetiming *) {
  font-family: var(--f-ui);
}

/* COPAS: pestañas con subrayado (estilo FotMob / app de la F1), fijas al bajar (26/10).
   La barra va pegada abajo de la cabecera; al bajar se queda debajo del menú y,
   si hay alto, aparece arriba una franja con el nombre de la copa (.dlk-mini). */
#dlCopasBody .dlk-hero { border-bottom: 0; }
.dlk-bar { position: sticky; top: var(--dl-hdr, 68px); z-index: 30; width: 100vw; margin-left: calc(50% - 50vw); background: #070b16; border-bottom: 1px solid rgba(148,163,184,.18); }
.dlk-bar.dlk-ami, .dlk-mini.dlk-ami { background: #06110f; }
.dlk-bar.dlk-rnk, .dlk-mini.dlk-rnk { --k: #38bdf8; } /* la cabecera de Ranked toma el celeste de .dlk-hero */
#dlCopasBody.has-mini .dlk-bar { top: calc(var(--dl-hdr, 68px) + 44px); }
.dlk-bar-in { width: min(1280px, 100%); margin: 0 auto; padding: 0 var(--dl-gut); box-sizing: border-box; }
.dlk-bar .dlk-tabs { position: relative; display: flex; gap: 32px; margin: 0; padding: 0 0 0 22px; border: 0; border-radius: 0; background: none; }
.dlk-bar .dlk-tab { height: 52px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: #94a3b8; font-size: 16px; font-weight: 600; white-space: nowrap; }
.dlk-bar .dlk-tab:hover { color: #e2e8f0; }
.dlk-bar .dlk-tab.is-on { border: 0; background: none; color: #fff; }
.dlk-ink { position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--k); transition: transform .28s cubic-bezier(.2,.8,.2,1), width .28s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.dlk-mini { position: fixed; left: 0; right: 0; top: var(--dl-hdr, 68px); z-index: 31; height: 44px; display: flex; align-items: center; background: #070b16; border-bottom: 1px solid rgba(148,163,184,.10); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
#dlCopasBody.is-stuck.has-mini .dlk-mini { opacity: 1; transform: none; }
.dlk-mini .dlk-bar-in { display: flex; align-items: baseline; gap: 10px; padding-left: calc(var(--dl-gut) + 22px); min-width: 0; }
.dlk-mini-k { flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--k); }
.dlk-mini-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: #fff; }
@media (max-width: 640px) {
  .dlk-bar .dlk-tabs { gap: 0; padding-left: 0; }
  .dlk-bar .dlk-tab { flex: 1 1 0; height: 48px; padding: 0 4px; font-size: 14px; letter-spacing: -.01em; }
  .dlk-mini .dlk-bar-in { padding-left: var(--dl-gut); }
}
@media (prefers-reduced-motion: reduce) { .dlk-ink, .dlk-mini { transition: none; } }


/* COPAS › RESULTADOS (26/10): una tarjeta por fecha (.dlb-tk) con resumen (.dlk-met),
   "Vos contra…" (fila de pilotos + tabla .dlb-table) y "Quién la pegó". */
.dlr { display: flex; flex-direction: column; gap: 12px; }
.dlr-gp.dlb-tk { overflow: visible; } /* sin recorte: si no, el encabezado fijo de la tabla no se pega */
.dlr-body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.dlr-body .dlk-mets { margin-bottom: 0; }
.dlr-body .dlk-met b { font-size: 22px; line-height: 1.2; }
.dlr-plus { font-style: normal; color: #4ade80; }
.dlr-modes { align-self: flex-start; margin-bottom: 0; }
.dlr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dlr-chips::-webkit-scrollbar { display: none; }
.dlr-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid rgba(148,163,184,.25); background: rgba(11,16,32,.8); color: #cbd5e1; font-family: var(--f-ui); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dlr-chip .dlk-av { width: 32px; height: 32px; } .dlr-chip .dlk-av svg { width: 25px; height: 25px; }
.dlr-chip i { font-style: normal; color: #8fa0c2; }
.dlr-chip em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #38bdf8; color: #05070d; }
.dlr-chip:hover:not(:disabled) { border-color: rgba(148,163,184,.5); color: #fff; }
.dlr-chip.is-on { border-color: #e2e8f0; background: rgba(255,255,255,.08); color: #fff; }
.dlr-chip.is-me { cursor: default; border-color: rgba(56,189,248,.45); }
.dlr-chip.is-all { padding: 0 18px; }
.dlr-who { display: flex; flex-direction: column; gap: 4px; }
.dlr-q { border-radius: 10px; background: rgba(255,255,255,.02); }
.dlr-q[open] { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(148,163,184,.18); }
.dlr-q > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 9px 12px; cursor: pointer; list-style: none; }
.dlr-q > summary::-webkit-details-marker { display: none; }
.dlr-q-t { flex: 1 1 140px; min-width: 0; font-size: 14px; color: #cbd5e1; }
.dlr-q-t b { font-weight: 600; color: #fff; } .dlr-q-t i { margin-left: 8px; font-style: normal; color: #7dd3fc; }
.dlr-q-n { padding: 2px 9px; border-radius: 999px; background: rgba(148,163,184,.16); font-size: 12px; font-weight: 700; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dlr-q-n.is-some { background: rgba(34,197,94,.18); color: #4ade80; }
.dlr-q-who, .dlr-q-all { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dlr-q-who { margin-left: auto; justify-content: flex-end; }
.dlr-q-all { padding: 0 12px 12px; }
.dlr-q[open] .dlr-q-who { display: none; } /* abierta: solo la lista completa */
.dlr-q-txt { font-size: 13px; color: #a5b4cf; }
.dlr-p { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(148,163,184,.12); font-size: 13px; font-weight: 600; color: #94a3b8; }
.dlr-p.is-hit { background: rgba(34,197,94,.16); color: #bbf7d0; } .dlr-p.is-hit b { color: #4ade80; }
.dlr-p.is-part { background: rgba(245,158,11,.16); color: #fde68a; } .dlr-p.is-part b { color: #fbbf24; }
.dlr-p.is-miss > span { text-decoration: line-through; text-decoration-color: rgba(239,68,68,.6); }
.dlr-p small { font-size: 11px; color: #a5b4cf; }
.dlk-row.is-link { cursor: pointer; }
.dlk-row.is-link:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
@media (max-width: 640px) {
  .dlr-body { padding: 2px 10px 12px; }
  .dlr-body .dlk-met b { font-size: 18px; }
  .dlr-modes { align-self: stretch; }
  .dlr-gp .dlb-tk-st { display: inline; } /* en Resultados se ve "48 pts · 1º de 2" también en celular */
  /* Tabla de 4 columnas (Pregunta · Real · Vos · Rival) sin desplazarse de costado */
  .dlr .dlb-table { font-size: 13px; }
  .dlr .dlb-table th, .dlr .dlb-table td { padding: 7px 6px; white-space: normal; }
  .dlr .dlb-table { table-layout: fixed; }
  .dlr .dlb-table .dlb-q { width: 28%; }
  .dlr .dlb-table .dlb-real, .dlr .dlb-table .dlb-c, .dlr .dlb-table .dlb-p { width: 24%; padding-left: 4px; padding-right: 4px; }
  .dlr .dlb-table th.dlb-p span { overflow: hidden; text-overflow: ellipsis; }
  .dlr-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 14px), transparent); }
  .dlr .dlb-c b { display: block; margin: 0; }
}
@media (max-width: 1023px) {
  /* Vos contra…: la tabla entra a lo ancho, así que los nombres quedan fijos debajo de las pestañas al bajar */
  .dlr .dlb-wrap { overflow: visible; }
  .dlr .dlb-table thead th { top: var(--dlk-under, 0px); z-index: 2; }
}

/* COPAS › ESTADÍSTICAS (26/10, muestra m-stats-2): dos paneles lado a lado y destaques abajo */
.dls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.dls-grid .dlc-chart { margin-top: 0; }
.dls-two { height: 16px; }
.dls-two i { height: 7px; bottom: auto; }
.dls-two i.is-me { top: 0; background: #38bdf8; }
.dls-two i.is-av { top: auto; bottom: 0; background: rgba(251,191,36,.7); }
.dlc-chart-h span i.is-me { background: #38bdf8; }
.dlc-chart-h span i.is-av { background: rgba(251,191,36,.7); }
.dlc-bar.is-next { color: #64748b; }
.dlc-bar.is-next .dlc-bar-t.is-due { background: none; border: 1px dashed rgba(148,163,184,.35); }
.dls-cat .dlc-bar-v { white-space: nowrap; }
.dls-fun { margin-top: 14px; }
.dls-fun small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #a5b4cf; }
.dls-kings { display: flex; flex-direction: column; gap: 4px; }
.dls-k { font-size: 15px; font-weight: 600; color: #fff; }
.dls-k em { display: inline-block; width: 78px; font-style: normal; font-size: 13px; color: #8fa0c2; }
.dls-panel .dlc-bar { grid-template-columns: 150px 1fr 70px; }
@media (max-width: 860px) { .dls-grid { grid-template-columns: 1fr; } }
@media (min-width: 1024px) { #dlCopasBody .dlc-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
#dlCopasBody .dlc-card b { font-size: 19px; line-height: 1.15; white-space: normal; overflow-wrap: break-word; } /* dos nombres empatados entran */
@media (max-width: 640px) {
  .dls-panel .dlc-bar { grid-template-columns: 114px 1fr 68px; gap: 6px; }
  #dlCopasBody .dlc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dlCopasBody .dlc-card b { font-size: 17px; }
}

/* COPAS: botón de la boleta de la próxima fecha (paso 4), arriba de la copa y en la franja fija */
.dlk-chips-bol { margin-top: 10px; }
.dlk-chip.dlk-bol { display: inline-flex; align-items: center; gap: 8px; border-color: #34d399; background: rgba(52,211,153,.12); color: #fff; font-variant-numeric: tabular-nums; }
.dlk-chip.dlk-bol i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
.dlk-chip.dlk-bol.is-ok { border-color: rgba(148,163,184,.4); background: rgba(5,7,13,.55); }
.dlk-chip.dlk-bol.is-off { border-color: rgba(148,163,184,.3); background: rgba(5,7,13,.55); color: #a5b4cf; }
.dlk-chip.dlk-bol.is-ok i, .dlk-chip.dlk-bol.is-off i { background: #64748b; box-shadow: none; }
.dlk-mini .dlk-bar-in { align-items: center; }
.dlk-mini .dlk-bol { flex-shrink: 0; margin-left: auto; height: 30px; padding: 0 12px; font-size: 13px; }
#dlCopasBody.is-stuck.has-mini .dlk-mini { pointer-events: auto; }
@media (max-width: 640px) { .dlk-chips-bol .dlk-bol { width: 100%; justify-content: center; } }

/* MI BOLETA al estilo nuevo (26/10): CSS de Gemini (director de arte), auditado por Claude.
   Pestañas de categoría con subrayado fijas al bajar, paneles y cajas azul noche, selects
   limpios, duelos con filo del color de la escudería y botón Guardar rojo plano. */
/* =====================================================================
   MI BOLETA — Formulario en estilo dlk (acotado a .is-boleta-only)
   ===================================================================== */
#view-campeonato.is-boleta-only #prodePanel-boleta {
  font-family: var(--f-ui);
  color: var(--dl-txt);
  margin-top: 14px;
}

/* 1) Las 4 categorías como barra de pestañas con subrayado, fija al bajar */
#view-campeonato.is-boleta-only #prodePanel-boleta > .grid:first-child {
  position: sticky;
  top: var(--dl-hdr, 68px);
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 -12px 16px;
  padding: 0 12px;
  background: rgba(7, 11, 22, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
@media (min-width: 640px) {
  #view-campeonato.is-boleta-only #prodePanel-boleta > .grid:first-child {
    margin: 0 0 18px;
    padding: 0;
    background: #070b16;
    border-radius: 12px 12px 0 0;
  }
}

#view-campeonato.is-boleta-only button[id^="betCatBtn-"] {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 11px 10px 12px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: left;
  color: #94a3b8 !important;
  transition: color 0.15s ease;
}
#view-campeonato.is-boleta-only button[id^="betCatBtn-"]:hover {
  color: #e2e8f0 !important;
}
/* Nombre de la categoría (arriba) */
#view-campeonato.is-boleta-only button[id^="betCatBtn-"] > span:last-child {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.15;
  color: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Puntos / kicker (abajo, discreto) */
#view-campeonato.is-boleta-only button[id^="betCatBtn-"] > span:first-child {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b !important;
  line-height: 1.1;
}
#view-campeonato.is-boleta-only button[id^="betCatBtn-"].active {
  color: #ffffff !important;
}
#view-campeonato.is-boleta-only button[id^="betCatBtn-"].active > span:first-child {
  color: #8fa0c2 !important;
}
#view-campeonato.is-boleta-only button[id^="betCatBtn-"].active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #38bdf8;
}

/* 2) Paneles de cada categoría (.carbon-panel -> estilo .dlk-panel) */
#view-campeonato.is-boleta-only div[id^="betCatPanel-"] {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(11, 16, 32, 0.78)) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 18px !important;
  padding: 20px !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35) !important;
}
#view-campeonato.is-boleta-only div[id^="betCatPanel-"] > div:first-child {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
  padding-bottom: 14px !important;
}
#view-campeonato.is-boleta-only div[id^="betCatPanel-"] > div:first-child span:first-child {
  display: block;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa0c2 !important;
}
#view-campeonato.is-boleta-only div[id^="betCatPanel-"] h3 {
  margin-top: 3px;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: #ffffff !important;
  line-height: 1.2;
}
#view-campeonato.is-boleta-only #h2hProgressBadge {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 999px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
}

/* Cajas de preguntas (Pole, Podio, Especiales) */
#view-campeonato.is-boleta-only div[id^="card_bet_"] {
  background: #0b1020 !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
}
/* Cuando tienen piloto/escudería elegida o prop seleccionada: solo un filo discreto a la izquierda */
#view-campeonato.is-boleta-only div[id^="card_bet_"][class*="livery-"] {
  background: #0b1020 !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  border-left: 3px solid var(--team-hex, #38bdf8) !important;
}
#view-campeonato.is-boleta-only div[id^="card_bet_"].prop-card-yes,
#view-campeonato.is-boleta-only div[id^="card_bet_"].prop-card-no,
#view-campeonato.is-boleta-only div[id^="card_bet_"].prop-card-amber {
  background: #0b1020 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  border-left: 3px solid rgba(148, 163, 184, 0.45) !important;
}

/* Etiquetas y pastillas de puntos dentro de cada caja */
#view-campeonato.is-boleta-only div[id^="card_bet_"] label,
#view-campeonato.is-boleta-only div[id^="card_bet_"] > div:first-child > span:first-child {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.25;
}
#view-campeonato.is-boleta-only div[id^="card_bet_"] > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px !important;
}
#view-campeonato.is-boleta-only div[id^="card_bet_"] > div:first-child > span:last-child {
  flex-shrink: 0;
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
  font-variant-numeric: tabular-nums;
}
#view-campeonato.is-boleta-only #card_bet_p1 > div:first-child > span:last-child {
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.35) !important;
  background: rgba(251, 191, 36, 0.1) !important;
}
#view-campeonato.is-boleta-only div[id^="card_bet_"] p {
  font-size: 12.5px !important;
  color: #8fa0c2 !important;
  margin-bottom: 10px !important;
  line-height: 1.35;
}

/* 3) Selects limpios sin textura carbono ni rojo neón */
#view-campeonato.is-boleta-only .f1-select {
  background: #070b16 !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 10px !important;
  padding: 11px 12px !important;
  font-family: var(--f-ui) !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
#view-campeonato.is-boleta-only .f1-select:hover {
  border-color: rgba(148, 163, 184, 0.42) !important;
}
#view-campeonato.is-boleta-only .f1-select:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

/* 4) Tarjetas de duelos (H2H): fondo azul noche + filo del color de la escudería */
#view-campeonato.is-boleta-only #h2hGridContainer > div[class*="livery-"] {
  background: #0b1020 !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  border-left: 3px solid var(--team-hex, #38bdf8) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: none !important;
}
/* Número de duelo y nombre de escudería limpios, sin cajas pesadas */
#view-campeonato.is-boleta-only #h2hGridContainer .telemetry-pos-cube {
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  font-variant-numeric: tabular-nums;
}
#view-campeonato.is-boleta-only #h2hGridContainer .telemetry-team-tag {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}
#view-campeonato.is-boleta-only #h2hGridContainer .telemetry-team-tag > span:first-child {
  display: none !important; /* la barra ya está en el borde izquierdo de la tarjeta */
}
/* Pastilla +2 PTS del duelo */
#view-campeonato.is-boleta-only #h2hGridContainer > div > div:first-child > span:last-child {
  background: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #cbd5e1 !important;
}

/* Botones de pilotos en cada duelo */
#view-campeonato.is-boleta-only #h2hGridContainer .choice-btn {
  background: #070b16 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 10px !important;
  padding: 11px 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  transform: none !important;
}
#view-campeonato.is-boleta-only #h2hGridContainer .choice-btn:hover {
  border-color: rgba(148, 163, 184, 0.45) !important;
  color: #ffffff !important;
}
/* Elegido (.h2h-win en el armado de boleta) */
#view-campeonato.is-boleta-only #h2hGridContainer .choice-btn.h2h-win,
#view-campeonato.is-boleta-only #h2hGridContainer .choice-btn.active {
  background: rgba(34, 197, 94, 0.14) !important;
  border: 1px solid #22c55e !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
/* Compañero no elegido (.h2h-loss): apagado neutro, sin rojo de derrota */
#view-campeonato.is-boleta-only #h2hGridContainer .choice-btn.h2h-loss {
  background: rgba(7, 11, 22, 0.6) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  color: #64748b !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* Botones Anterior / Siguiente entre categorías */
#view-campeonato.is-boleta-only .btn-f1-secondary {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}
#view-campeonato.is-boleta-only .btn-f1-secondary:hover {
  background: #1a2442 !important;
  border-color: rgba(148, 163, 184, 0.5) !important;
  color: #ffffff !important;
}

/* 5) Bloque final y botón de Guardar boleta */
#view-campeonato.is-boleta-only #prodePanel-boleta > .carbon-panel:last-child {
  background: #0b1124 !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35) !important;
}
#view-campeonato.is-boleta-only #prodePanel-boleta > .carbon-panel:last-child h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: #ffffff !important;
}
#view-campeonato.is-boleta-only #prodePanel-boleta > .carbon-panel:last-child p {
  margin-top: 2px;
  font-size: 13.5px !important;
  color: #a5b4cf !important;
}
#view-campeonato.is-boleta-only #btnSaveTicket {
  background: var(--dl-red, #ff3b26) !important;
  border: 1px solid var(--dl-red, #ff3b26) !important;
  border-radius: 12px !important;
  padding: 13px 26px !important;
  font-family: var(--f-ui) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
#view-campeonato.is-boleta-only #btnSaveTicket:hover:not(:disabled) {
  background: #ff523f !important;
  border-color: #ff523f !important;
  transform: none !important;
}

@media (max-width: 640px) {
  #view-campeonato.is-boleta-only button[id^="betCatBtn-"] {
    padding: 10px 4px 11px !important;
  }
  #view-campeonato.is-boleta-only button[id^="betCatBtn-"] > span:last-child {
    font-size: 13px !important;
  }
  #view-campeonato.is-boleta-only button[id^="betCatBtn-"] > span:first-child {
    font-size: 10px !important;
    letter-spacing: 0.03em;
  }
  #view-campeonato.is-boleta-only button[id^="betCatBtn-"].active::after {
    left: 4px;
    right: 4px;
  }
  #view-campeonato.is-boleta-only div[id^="betCatPanel-"] {
    padding: 16px 14px !important;
    border-radius: 16px !important;
  }
  #view-campeonato.is-boleta-only div[id^="betCatPanel-"] h3 {
    font-size: 18px !important;
  }
}

/* Retoques de Gemini (26/10): selects alineados en compu y subrayado del ancho de la palabra */
#view-campeonato.is-boleta-only div[id^="card_bet_"] { display: flex; flex-direction: column; }
#view-campeonato.is-boleta-only div[id^="card_bet_"] .f1-select { margin-top: auto; }
@media (min-width: 640px) {
  #view-campeonato.is-boleta-only button[id^="betCatBtn-"].active::after { right: auto; width: 56px; }
}

/* PERFIL (26/10, muestras aprobadas con Gemini): cabecera con foto redonda, país e insignia Ranked;
   pestañas Resumen · Estadísticas · Vitrina · Mis datos. El formulario viejo (chasis, país, dorsal,
   rango, contraseña, salir) queda solo en "Mis datos", con el estilo nuevo. */
#view-perfil { max-width: 1100px; font-family: var(--f-ui); }
#view-perfil .dl-perfil { display: none; }
#view-perfil.is-datos:not(.is-public) .dl-perfil { display: block; background: linear-gradient(180deg, rgba(30,41,59,.42), rgba(11,16,32,.78)); border: 1px solid rgba(148,163,184,.2); border-radius: 18px; }
#view-perfil .dl-perfil > .border-b:first-child, #view-perfil .dl-perfil > .grid:nth-child(2), #view-perfil .dl-perfil > .space-y-2 { display: none; }
#view-perfil .dl-perfil .font-f1, #view-perfil .dl-perfil label { font-family: var(--f-ui) !important; text-transform: none !important; letter-spacing: 0 !important; }
#view-perfil .dl-perfil label { font-size: 13px !important; font-weight: 600; color: #8fa0c2 !important; }
#view-perfil .dl-perfil .f1-input, #view-perfil .dl-perfil .f1-select, #view-perfil .dl-perfil input[type=text], #view-perfil .dl-perfil input[type=password], #view-perfil .dl-perfil button[id$=DropdownBtn] { background: #070b16 !important; border: 1px solid rgba(148,163,184,.24) !important; border-radius: 10px !important; box-shadow: none !important; color: #fff !important; }
#view-perfil .dl-perfil .btn-f1-secondary { background: rgba(15,23,42,.75) !important; border: 1px solid rgba(148,163,184,.28) !important; border-radius: 10px !important; text-transform: none !important; font-family: var(--f-ui) !important; letter-spacing: 0 !important; color: #e2e8f0 !important; box-shadow: none !important; }
.dlp { display: flex; flex-direction: column; gap: 16px; color: var(--dl-txt); }
.dlp-back { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(148,163,184,.3); background: rgba(11,16,32,.8); color: #e2e8f0; font-family: var(--f-ui); font-size: 14px; font-weight: 600; cursor: pointer; }
.dlp-hdr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; border: 1px solid rgba(148,163,184,.2); background: linear-gradient(160deg, rgba(30,41,59,.55), rgba(11,16,32,.85)); }
.dlp-av { position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #0b1020; box-shadow: 0 0 0 3px var(--ring, #38bdf8); }
.dlp-av.is-big { width: 88px; height: 88px; }
.dlp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dlp-av b { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.dlp-av-edit { position: absolute; right: -4px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1a2442; border: 2px solid #070b16; cursor: pointer; }
.dlp-av-edit svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.dlp-av-edit input { display: none; }
.dlp-id { min-width: 0; }
.dlp-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fa0c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlp-meta img { width: 22px; height: auto; border-radius: 2px; }
.dlp-meta b { color: #cbd5e1; }
.dlp-id h1 { margin: 4px 0 0; font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.dlp-rank { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(148,163,184,.18); background: #0b1020; }
.dlp-rank img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.dlp-rank i { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fa0c2; }
.dlp-rank b { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.dlp-bar { position: static; width: auto; margin: 0; background: none; }
.dlp-bar .dlk-bar-in { padding: 0; }
.dlp-bar .dlk-tabs { padding-left: 0; }
.dlp-bar .dlk-tab.is-on { box-shadow: inset 0 -3px 0 #38bdf8; }
.dlp-body { display: flex; flex-direction: column; gap: 14px; }
.dlp-body .dlk-mets { margin-bottom: 0; }
.dlp-copa { display: flex; align-items: center; gap: 14px; padding: 10px 6px; border-top: 1px solid rgba(148,163,184,.12); }
.dlp-copa:first-of-type { border-top: 0; }
.dlp-copa-emb { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; }
.dlp-copa-emb svg, .dlp-copa-emb img { width: 44px; height: 44px; }
.dlp-copa-emb .dl-neon { font-size: 10px; }
.dlp-copa-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dlp-copa-t b { font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlp-copa-t i { font-style: normal; font-size: 13px; color: #a5b4cf; }
.dlp-copa-p { font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlp-cards { margin-top: 0; }
.dlp-vits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dlp-tros { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dlp-tro { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; border: 1px dashed rgba(148,163,184,.22); background: rgba(7,11,22,.5); text-align: center; }
.dlp-tro-art { width: 84px; height: 84px; display: grid; place-items: center; }
.dlp-tro-art img, .dlp-tro-art svg { width: 84px; height: 84px; object-fit: contain; }
.dlp-tro:not(.is-on) .dlp-tro-art { filter: grayscale(1) brightness(.45); opacity: .4; }
.dlp-tro b { font-size: 14px; font-weight: 700; color: #64748b; line-height: 1.2; }
.dlp-tro i { font-style: normal; font-size: 12px; color: #64748b; line-height: 1.3; }
.dlp-tro.is-on { border-style: solid; border-color: rgba(148,163,184,.3); background: #0b1020; }
.dlp-tro.is-on b { color: #fff; } .dlp-tro.is-on i { color: #a5b4cf; }
.dlp-tro.is-rnk { border-color: rgba(251,191,36,.55); } .dlp-tro.is-ami { border-color: rgba(52,211,153,.55); } .dlp-tro.is-glb { border-color: rgba(147,197,253,.55); } .dlp-tro.is-gp { border-color: rgba(56,189,248,.55); }
.dlp-gp { font-size: 30px; font-weight: 800; color: #38bdf8; letter-spacing: -.02em; }
.dlp-tro:not(.is-on) .dlp-gp { color: #475569; }
.dlp-datos .dlp-note { display: flex; align-items: center; gap: 8px; margin: 0 4px; font-size: 14px; color: #a5b4cf; }
.dlp-note svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #34d399; stroke-width: 2; }
.dlp-fs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px; }
.dlp-f { display: flex; flex-direction: column; gap: 6px; }
.dlp-f span { font-size: 13px; font-weight: 600; color: #8fa0c2; }
.dlp-f input { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(148,163,184,.24); background: #070b16; color: #fff; font-family: var(--f-ui); font-size: 15px; color-scheme: dark; }
.dlp-f input:focus { outline: none; border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56,189,248,.2); }
.dlp-save { align-self: flex-start; margin: 6px 4px 2px; }
.dlp-sub { margin: 6px 4px 0; font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cbd5e1; }
.dlk-name-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left; }
.dlk-name-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .dlp-vits { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dlp-hdr { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 14px; }
  .dlp-av.is-big { width: 68px; height: 68px; } .dlp-av b { font-size: 22px; }
  .dlp-rank { grid-column: 1 / -1; padding: 8px 12px; }
  .dlp-rank img { width: 46px; height: 46px; }
  .dlp-fs { grid-template-columns: 1fr; }
  .dlp-tros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlp-bar .dlk-tab { flex: 1 1 0; height: 46px; font-size: 14px; }
}

/* Perfil: ajustes de la revisión de Gemini (26/10) */
/* 1) Estadísticas del perfil: pintar barras celestes y 6 tarjetas en una fila en compu */
#view-perfil .dlc-bar-t i.is-me {
  background: #38bdf8;
}
@media (min-width: 1024px) {
  #view-perfil .dlp-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* 2) Celular: que no se corten el rango en la cabecera ni el nombre de Copa Ranked */
@media (max-width: 640px) {
  .dlp-meta {
    white-space: normal;
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .dlp-copa-t b {
    font-size: 15px;
    white-space: normal;
    line-height: 1.2;
  }
}

/* 3) Mis datos y Editar perfil: Ciudad a ancho completo y cero textura carbono en inputs/botones */
.dlp-fs > .dlp-f:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
#view-perfil .dl-perfil input,
#view-perfil .dl-perfil select,
#view-perfil .dl-perfil .carbon-input,
#view-perfil .dl-perfil [class*="bg-"] {
  background-image: none !important;
}
#view-perfil .dl-perfil button[onclick*="savePlayerCard"] {
  background: #1a2442 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: var(--f-ui) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

/* Perfil: récords mundiales y fecha por fecha (26/10) */
@media (min-width: 1024px) { #view-perfil .dlp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dlp-fecha { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px 80px minmax(0, 1.2fr); align-items: center; gap: 10px; padding: 10px 6px; border-top: 1px solid rgba(148,163,184,.12); }
.dlp-fecha:first-of-type { border-top: 0; }
.dlp-fecha-gp { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dlp-fecha-gp i { font-style: normal; font-size: 12px; color: #8fa0c2; }
.dlp-fecha-gp b { font-size: 16px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlp-fecha-pts { font-size: 18px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; } .dlp-fecha-pts small { font-size: 12px; color: #a5b4cf; }
.dlp-fecha-pos { font-size: 14px; color: #a5b4cf; font-variant-numeric: tabular-nums; }
.dlp-fecha-rec { justify-self: end; font-size: 13px; font-weight: 600; color: #8fa0c2; text-align: right; }
.dlp-fecha-rec.is-mine { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(251,191,36,.5); background: rgba(251,191,36,.12); color: #fbbf24; }
.dlp-gp.is-rec { color: #fbbf24; }
.dlp-tro.is-rec { border-color: rgba(251,191,36,.55); }
@media (max-width: 640px) {
  .dlp-fecha { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .dlp-fecha-pos { grid-column: 1; } .dlp-fecha-rec { grid-column: 2; }
}

/* (31/10, prueba) SIM RACING: telemetría de F1 25 (sim.js). Dirección de arte de
   Gemini: azul noche, Geist con cifras fijas, tu vuelta celeste, referencia ámbar,
   verde y rojo solo para ganancia y pérdida. Rótulos sin mayúsculas (regla de marca). */
:root {
  --sim-me: #38bdf8; --sim-ref: #cbd5e1;
  --sim-gain: #22c55e; --sim-loss: #ef4444;
}
#view-sim { width: min(1280px, 100%); margin: 0 auto; padding: 12px var(--dl-gut, 24px) 48px; font-family: var(--f-ui); color: #e2e8f0; font-variant-numeric: tabular-nums; }
.dlm-empty { padding: 40px 0; color: #8fa0c2; }
.dlm-head { margin-bottom: 4px; }
.dlm-title { margin: 0; font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.dlm-sub { margin: 2px 0 0; font-size: 14px; color: #8fa0c2; }
#view-sim .is-loss { color: var(--sim-loss); }
#view-sim .is-gain { color: var(--sim-gain); }

/* Barra comparadora (fija al bajar) */
.dlm-top { position: sticky; top: var(--dl-hdr, 64px); z-index: 28; padding: 10px 0; margin-bottom: 14px; background: rgba(7, 11, 22, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-comp-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dlm-lap-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 14px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.2); border-left: 4px solid var(--sim-me); cursor: pointer; }
.dlm-lap-pill.is-ref { border-left-color: var(--sim-ref); }
.dlm-lap-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlm-lap-meta > span { font-size: 12px; font-weight: 700; color: var(--sim-me); }
.dlm-lap-pill.is-ref .dlm-lap-meta > span { color: var(--sim-ref); }
.dlm-lap-meta select { width: 100%; min-width: 0; max-width: 100%; padding: 0; border: 0; background: transparent; color: #fff; font-family: var(--f-ui); font-size: 15px; font-weight: 700; cursor: pointer; text-overflow: ellipsis; }
.dlm-lap-meta select option { background: #0b1020; color: #e2e8f0; }
.dlm-lap-time { flex-shrink: 0; text-align: right; }
.dlm-lap-time b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.dlm-lap-time small { font-size: 12.5px; font-weight: 700; }

/* Sesión */
.dlm-session-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.dlm-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dlm-card { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(11, 16, 32, 0.82)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); }
.dlm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dlm-card-t { margin: 0; font-size: 15px; font-weight: 700; color: #e2e8f0; }
.dlm-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8fa0c2; }
.dlm-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.dlm-legend i.is-gain { background: var(--sim-gain); }
.dlm-legend i.is-loss { background: var(--sim-loss); }
.dlm-mets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dlm-met { padding: 12px 14px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); min-width: 0; }
.dlm-met span { display: block; font-size: 12px; font-weight: 600; color: #8fa0c2; }
.dlm-met b { display: block; margin-top: 2px; font-size: 20px; font-weight: 800; color: #fff; }
.dlm-met i { display: block; font-style: normal; font-size: 12px; color: #8fa0c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-evo-wrap { position: relative; height: 76px; }
.dlm-evo { display: block; width: 100%; height: 100%; }
.dlm-evo-line { fill: none; stroke: #94a3b8; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dlm-evo-best { stroke: var(--sim-ref); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: 0.6; }
.dlm-evo-pt { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #94a3b8; border: 2px solid #0b1020; }
.dlm-evo-pt.is-me { background: var(--sim-me); }
.dlm-evo-pt.is-ref { background: var(--sim-ref); }
.dlm-evo-x { display: flex; justify-content: space-between; padding: 4px 0 10px; font-size: 12px; color: #64748b; }
.dlm-tbl-wrap { overflow-x: auto; }
#view-sim .dlm-tbl { display: table; width: 100%; border-collapse: collapse; font-size: 14px; }
#view-sim .dlm-tbl thead { display: table-header-group !important; }
#view-sim .dlm-tbl tbody { display: table-row-group; }
.dlm-tbl th { padding: 6px 8px; text-align: right; font-size: 12px; font-weight: 600; color: #8fa0c2; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-tbl td { padding: 8px; text-align: right; color: #cbd5e1; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.dlm-tbl th:first-child, .dlm-tbl td:first-child { text-align: left; }
.dlm-tbl td b { color: #fff; }
.dlm-tbl td.is-pb { color: var(--sim-gain); font-weight: 700; }
.dlm-tbl td.is-loss, .dlm-tbl td.is-gain { font-weight: 700; }
.dlm-tbl tr[data-lap] { cursor: pointer; }
.dlm-tbl tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--sim-me); }
.dlm-tbl tr.is-ref td:first-child { box-shadow: inset 3px 0 0 var(--sim-ref); }
.dlm-tbl tr.is-me td, .dlm-tbl tr.is-ref td { background: rgba(148, 163, 184, 0.06); }
.dlm-tbl.is-small { font-size: 13px; }

/* Mapa */
.dlm-map-stage { position: relative; height: 340px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.45), #070b16 78%); border: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-map-stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dlm-map-stage.is-zoomed { touch-action: none; cursor: grab; }
.dlm-map-stage.is-zoomed:active { cursor: grabbing; }
.dlm-map-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dlm-map-stage.is-mini { height: 300px; }
.dlm-map-base { fill: none; stroke: #1e293b; stroke-width: 11px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dlm-map-seg { fill: none; stroke: #64748b; stroke-width: 5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; }
/* Con zoom (3x o más) el mapa de sesión pasa a pista real con las dos trazadas. */
.dlm-map-stage .dlm-near { display: none; }
.dlm-map-stage.is-close .dlm-near { display: inline; }
.dlm-map-stage.is-close .dlm-far { display: none; }
.dlm-map-seg.is-loss { stroke: var(--sim-loss); }
.dlm-map-seg.is-gain { stroke: var(--sim-gain); }
.dlm-map-pin { cursor: pointer; }
.dlm-map-pin circle { fill: #cbd5e1; stroke: #070b16; }
.dlm-map-pin.is-loss circle { fill: var(--sim-loss); }
.dlm-map-pin.is-gain circle { fill: var(--sim-gain); }
.dlm-map-pin text { font-family: var(--f-ui); font-weight: 800; fill: #05070d; text-anchor: middle; }
.dlm-map-tools { position: absolute; top: 10px; right: 10px; z-index: 5; display: flex; gap: 4px; }
.dlm-map-tool { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.28); background: rgba(11, 16, 32, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #e2e8f0; font-family: var(--f-ui); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer; }
.dlm-map-tool:hover { border-color: #fff; color: #fff; }
.dlm-map-caption { position: absolute; left: 10px; bottom: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(7, 11, 22, 0.82); font-size: 11.5px; font-weight: 600; color: #94a3b8; pointer-events: none; }
.dlm-map-caption i { display: inline-block; width: 12px; height: 2.5px; margin-right: 4px; border-radius: 2px; vertical-align: middle; }
.dlm-map-caption i.is-me { background: var(--sim-me); }
.dlm-map-caption i.is-ref { background: var(--sim-ref); }
.dlm-asphalt-edge { fill: none; stroke: #334155; stroke-linecap: round; stroke-linejoin: round; }
.dlm-asphalt-road { fill: none; stroke: #131c31; stroke-linecap: round; stroke-linejoin: round; }
.dlm-trace-ref { fill: none; stroke: var(--sim-ref); stroke-width: 2px; stroke-dasharray: 6 4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.92; vector-effect: non-scaling-stroke; }
.dlm-trace-me { fill: none; stroke: var(--sim-me); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dlm-car-me { fill: var(--sim-me); stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.dlm-car-ref { fill: var(--sim-ref); stroke: #070b16; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.dlm-brk-mark { fill: #070b16; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.dlm-brk-mark.is-me { stroke: var(--sim-me); }
.dlm-brk-mark.is-ref { stroke: var(--sim-ref); }

/* Tramos */
.dlm-seg-list { display: flex; flex-direction: column; gap: 6px; }
.dlm-seg-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 70px 76px 30px; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.14); font-family: var(--f-ui); font-size: 14px; color: #e2e8f0; text-align: left; cursor: pointer; }
.dlm-seg-row:hover { border-color: rgba(56, 189, 248, 0.5); background: #10172d; }
.dlm-seg-num { width: 24px; height: 24px; flex-shrink: 0; display: inline-grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; color: #05070d !important; background: #cbd5e1; }
.dlm-seg-num.is-loss, .dlm-seg-row.is-loss .dlm-seg-num { background: var(--sim-loss); }
.dlm-seg-num.is-gain, .dlm-seg-row.is-gain .dlm-seg-num { background: var(--sim-gain); }
.dlm-seg-name { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-seg-time { text-align: right; font-weight: 600; color: #a5b4cf; }
.dlm-seg-diff { text-align: right; font-weight: 800; color: #cbd5e1; }
.dlm-seg-row.is-loss .dlm-seg-diff { color: var(--sim-loss); }
.dlm-seg-row.is-gain .dlm-seg-diff { color: var(--sim-gain); }
.dlm-seg-row.is-loss, .dlm-seg-row.is-gain { color: #e2e8f0; }
.dlm-seg-cta { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.4); color: #e0f2fe; }
.dlm-seg-row:hover .dlm-seg-cta { border-color: #fff; }
.dlm-seg-row:focus-visible { outline: 2px solid var(--sim-me); outline-offset: 1px; }

/* Tramo */
.dlm-seg-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dlm-seg-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-seg-nav-mid { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dlm-seg-nav-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; }
.dlm-seg-nav-title small { font-size: 13px; font-weight: 700; }
.dlm-seg-nav-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dlm-seg-nav-title small, .dlm-seg-nav-title .dlm-seg-num { flex-shrink: 0; }
.dlm-seg-btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.28); background: #111a33; color: #e2e8f0; font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.dlm-seg-btn.is-icon { width: 34px; padding: 0; font-size: 18px; }
.dlm-seg-btn:hover:not(:disabled) { border-color: #fff; color: #fff; }
.dlm-seg-btn:disabled { opacity: 0.35; cursor: default; }
.dlm-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; padding: 0 4px; font-size: 13px; font-weight: 700; color: #cbd5e1; }
.dlm-live b { color: #fff; }
.dlm-val-me { color: var(--sim-me); }
.dlm-val-ref { color: var(--sim-ref); }
.dlm-coach-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.dlm-coach-pill { padding: 10px 12px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); min-width: 0; }
.dlm-coach-pill span { display: block; font-size: 12px; font-weight: 600; color: #8fa0c2; }
.dlm-coach-pill b { display: block; margin-top: 2px; font-size: 15px; font-weight: 800; color: #fff; }
.dlm-coach-pill i { display: block; font-style: normal; font-size: 12px; color: #a5b4cf; }
.dlm-segment-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.dlm-segment-side { position: sticky; top: calc(var(--dl-hdr, 64px) + 90px); display: flex; flex-direction: column; gap: 12px; }
.dlm-mini { padding: 10px; }
.dlm-charts-col { min-width: 0; }
.dlm-charts-stack { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.18); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.dlm-chart-box { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-chart-hdr { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.dlm-chart-label { font-weight: 700; color: #cbd5e1; }
.dlm-chart-vals { display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; }
.dlm-chart-body { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
.dlm-y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; text-align: right; font-size: 11px; font-weight: 600; color: #64748b; }
.dlm-svg-wrap { position: relative; overflow: hidden; border-radius: 8px; background: rgba(7, 11, 22, 0.65); border: 1px solid rgba(148, 163, 184, 0.1); cursor: crosshair; }
.dlm-svg-wrap svg { display: block; width: 100%; height: 100%; }
.dlm-l-me { fill: none; stroke: var(--sim-me); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.dlm-l-ref { fill: none; stroke: var(--sim-ref); stroke-width: 1.8; stroke-dasharray: 5 3; opacity: 0.9; vector-effect: non-scaling-stroke; }
.dlm-l-delta { fill: none; stroke: #e2e8f0; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dlm-d-loss { fill: rgba(248, 113, 113, 0.22); }
.dlm-d-gain { fill: rgba(52, 211, 153, 0.22); }
.dlm-zero { stroke: rgba(148, 163, 184, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dlm-fz { fill: rgba(248, 113, 113, 0.13); }
.dlm-cursor-line { position: absolute; top: 0; bottom: 0; width: 1px; display: none; background: rgba(255, 255, 255, 0.72); pointer-events: none; }
.dlm-x-axis { display: flex; justify-content: space-between; padding-left: 48px; font-size: 11px; font-weight: 600; color: #64748b; }
.dlm-fz-note { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: #cbd5e1; }
.dlm-fz-note i { width: 14px; height: 10px; border-radius: 2px; background: rgba(248, 113, 113, 0.45); }
.dlm-more { margin-top: 10px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.28); background: #111a33; color: #e2e8f0; font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.dlm-ch-delta .dlm-svg-wrap { height: 110px; }
.dlm-ch-vel .dlm-svg-wrap { height: 140px; }
.dlm-ch-acel .dlm-svg-wrap, .dlm-ch-freno .dlm-svg-wrap { height: 96px; }
.dlm-ch-volante .dlm-svg-wrap { height: 88px; }
.dlm-ch-marcha .dlm-svg-wrap { height: 76px; }

@media (max-width: 1023px) {
  .dlm-session-grid, .dlm-segment-layout { grid-template-columns: 1fr; }
  /* (1/11) El mapa y los tramos ya van en la primera columna: no hace falta invertir. */
  /* El mapa de la curva va arriba de los gráficos; la tabla, al final. */
  .dlm-segment-side { display: contents; }
  .dlm-segment-side > .dlm-mini { order: -1; }
  .dlm-segment-side > .dlm-card:not(.dlm-mini) { order: 2; }
  .dlm-map-stage.is-mini { height: 260px; }
  .dlm-ch-delta .dlm-svg-wrap { height: 100px; }
  .dlm-ch-vel .dlm-svg-wrap { height: 128px; }
  .dlm-ch-acel .dlm-svg-wrap, .dlm-ch-freno .dlm-svg-wrap { height: 88px; }
  .dlm-ch-volante .dlm-svg-wrap { height: 80px; }
  .dlm-ch-marcha .dlm-svg-wrap { height: 70px; }
}
@media (max-width: 640px) {
  #view-sim { padding-left: 8px; padding-right: 8px; }
  .dlm-title { font-size: 22px; }
  .dlm-comp-bar { gap: 6px; }
  .dlm-lap-pill { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
  .dlm-lap-meta select { font-size: 13px; }
  .dlm-lap-time { display: flex; align-items: baseline; gap: 6px; text-align: left; }
  .dlm-lap-time b { font-size: 17px; }
  .dlm-card { padding: 12px; }
  .dlm-map-stage { height: 236px; }
  .dlm-map-stage.is-mini { height: 220px; }
  .dlm-seg-row { grid-template-columns: 24px minmax(0, 1fr) 52px 60px 30px; gap: 7px; padding: 9px 8px 9px 10px; font-size: 13px; }
  .dlm-met b { font-size: 17px; }
  #view-sim .dlm-tbl { font-size: 13px; }
  #view-sim .dlm-tbl.is-small { font-size: 12px; }
  .dlm-tbl th, .dlm-tbl td { padding: 7px 3px; font-variant-numeric: tabular-nums; }
  .dlm-seg-nav { padding: 6px 8px; gap: 6px; }
  .dlm-seg-nav > .dlm-seg-btn { padding: 0 9px; font-size: 12px; flex-shrink: 0; }
  .dlm-seg-nav-mid { flex: 1; min-width: 0; justify-content: space-between; gap: 6px; }
  .dlm-seg-nav-title { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
  .dlm-coach-pills { gap: 6px; }
  .dlm-coach-pill { padding: 8px; }
  .dlm-coach-pill b { font-size: 13px; }
  .dlm-coach-pill i { font-size: 11px; }
  .dlm-charts-stack { padding: 10px 8px; }
  .dlm-chart-body { grid-template-columns: 34px minmax(0, 1fr); gap: 4px; }
  .dlm-x-axis { padding-left: 38px; }
  .dlm-chart-vals { gap: 8px; font-size: 12px; }
  .dlm-ch-delta .dlm-svg-wrap { height: 92px; }
  .dlm-ch-vel .dlm-svg-wrap { height: 116px; }
  .dlm-ch-acel .dlm-svg-wrap, .dlm-ch-freno .dlm-svg-wrap { height: 84px; }
  .dlm-ch-volante .dlm-svg-wrap { height: 76px; }
  .dlm-ch-marcha .dlm-svg-wrap { height: 68px; }
}

/* (31/10, prueba) SIM RACING: pestañas Contrarreloj / Carrera y bloques de carrera
   (diseño de Gemini). Desgaste de goma: verde hasta 12 %, ámbar 13-34 %, rojo desde 35 %. */
.dlm-mode-tabs { display: flex; gap: 24px; margin: 8px 0 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.dlm-mode-tab { position: relative; height: 44px; padding: 0 4px; border: 0; background: none; color: #94a3b8; font-family: var(--f-ui); font-size: 15px; font-weight: 600; cursor: pointer; }
.dlm-mode-tab:hover { color: #e2e8f0; }
.dlm-mode-tab.is-on { color: #fff; font-weight: 700; }
.dlm-mode-tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sim-me); }
.dlm-insight { margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; background: radial-gradient(120% 100% at 0% 0%, rgba(56, 189, 248, 0.12), rgba(11, 16, 32, 0.92) 70%); border: 1px solid rgba(148, 163, 184, 0.18); border-left: 4px solid var(--sim-me); font-size: 14px; line-height: 1.45; color: #cbd5e1; }
.dlm-insight b { color: #fff; font-weight: 700; }
.dlm-race-mets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dlm-race-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-bottom: 14px; }
.dlm-tyres-card { display: flex; flex-direction: column; justify-content: space-between; }
.dlm-tyres-card .dlm-car-tyres { margin: auto 0; }
.dlm-car-tyres { display: grid; grid-template-columns: 1fr 68px 1fr; grid-template-rows: auto auto; gap: 10px 12px; align-items: center; margin: 6px 0 12px; }
.dlm-chassis-svg { grid-column: 2; grid-row: 1 / 3; display: block; width: 68px; height: 124px; margin: 0 auto; opacity: 0.75; }
.dlm-car-tyres > .dlm-tyre-box:nth-child(1) { grid-column: 1; grid-row: 1; }
.dlm-car-tyres > .dlm-tyre-box:nth-child(3) { grid-column: 3; grid-row: 1; }
.dlm-car-tyres > .dlm-tyre-box:nth-child(4) { grid-column: 1; grid-row: 2; }
.dlm-car-tyres > .dlm-tyre-box:nth-child(5) { grid-column: 3; grid-row: 2; }
.dlm-tyre-box { padding: 9px 11px; border-radius: 10px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-tyre-box.is-warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.07); }
.dlm-tyre-box.is-crit { border-color: rgba(248, 113, 113, 0.5); background: rgba(248, 113, 113, 0.08); }
.dlm-tyre-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.dlm-tyre-top span { font-size: 11.5px; font-weight: 700; color: #8fa0c2; }
.dlm-tyre-top b { font-size: 18px; font-weight: 800; color: #fff; }
.dlm-tyre-box.is-warn .dlm-tyre-top b { color: var(--sim-ref); }
.dlm-tyre-box.is-crit .dlm-tyre-top b { color: var(--sim-loss); }
.dlm-tyre-bar { display: block; height: 5px; margin: 6px 0 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.dlm-tyre-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--sim-gain); }
.dlm-tyre-box.is-warn .dlm-tyre-bar > i { background: var(--sim-ref); }
.dlm-tyre-box.is-crit .dlm-tyre-bar > i { background: var(--sim-loss); }
.dlm-tyre-sub { font-size: 11px; color: #8fa0c2; }
.dlm-fuel-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.14); font-size: 13px; color: #8fa0c2; }
.dlm-fuel-strip b { color: #fff; font-weight: 700; white-space: nowrap; }
.dlm-fuel-bar { flex: 1; margin: 0; }
.dlm-fuel-bar > i { background: var(--sim-me); }
.dlm-pace { position: relative; height: 130px; margin-top: 14px; }
.dlm-pace-pos { position: absolute; top: -14px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: #111a33; border: 1px solid rgba(148, 163, 184, 0.25); font-size: 11px; font-weight: 700; color: #e2e8f0; }
#view-sim .dlm-tbl td.is-warn-t { color: var(--sim-ref); font-weight: 700; }
.dlm-setup-card { margin-bottom: 18px; }
.dlm-setup-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dlm-setup-grp { padding: 10px 12px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.14); min-width: 0; }
.dlm-setup-grp h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; color: var(--sim-me); }
.dlm-setup-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 3px 0; font-size: 13px; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.dlm-setup-grp h3 + .dlm-setup-row { border-top: 0; }
.dlm-setup-row span { color: #8fa0c2; }
.dlm-setup-row b { color: #fff; font-weight: 700; white-space: nowrap; }
.dlm-section-t { margin: 8px 0 0; font-size: 18px; font-weight: 800; color: #fff; }
.dlm-section-sub { margin-bottom: 4px; }
@media (max-width: 1023px) {
  .dlm-race-mets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dlm-race-grid { grid-template-columns: 1fr; }
  .dlm-setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dlm-mode-tabs { gap: 0; }
  .dlm-mode-tab { flex: 1 1 0; font-size: 14px; }
  .dlm-race-mets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dlm-race-mets > .dlm-met:last-child { grid-column: 1 / -1; }
  .dlm-car-tyres { grid-template-columns: 1fr 52px 1fr; gap: 8px; }
  .dlm-chassis-svg { width: 52px; height: 104px; }
  .dlm-tyre-top b { font-size: 16px; }
  .dlm-setup-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* (31/10, prueba) SIM RACING: frenadas del tramo, vos contra la referencia. */
.dlm-brakes { margin-top: 16px; }
.dlm-brake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.dlm-brake { padding: 12px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); min-width: 0; }
.dlm-brake-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.dlm-brake-h b { font-size: 15px; color: #fff; }
.dlm-brake-h span { font-size: 12px; color: #8fa0c2; }
.dlm-brake .dlm-tbl th.dlm-val-me { color: var(--sim-me); }
.dlm-brake .dlm-tbl th.dlm-val-ref { color: var(--sim-ref); }
.dlm-brake .dlm-tbl td { padding-top: 5px; padding-bottom: 5px; }
.dlm-brake-v { margin: 10px 0 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.45; color: #cbd5e1; }
.dlm-brake-v li + li { margin-top: 3px; }
#view-sim .dlm-brake .dlm-tbl td:nth-child(2) { color: #fff; font-weight: 700; }
#view-sim .dlm-brake .dlm-tbl td:nth-child(3) { color: #94a3b8; }

/* (31/10) SIM RACING — Portada, barra de vuelta de muestra, guía UDP e invitación Coach */
.dlm-topbar-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dlm-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sim-me); }
.dlm-kicker.is-amber { color: var(--sim-ref); }
.dlm-nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dlm-link-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(148, 163, 184, 0.24); background: #0b1020; color: #cbd5e1; font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.dlm-link-btn:hover { border-color: rgba(56, 189, 248, 0.55); color: #fff; }

/* Franja de sesión de muestra (arriba del análisis cuando no hay vueltas propias) */
.dlm-sample-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); border-left: 4px solid var(--sim-ref); font-size: 13.5px; color: #e2e8f0; }
.dlm-sample-bar-txt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dlm-sample-bar-txt svg { flex-shrink: 0; color: var(--sim-ref); }
.dlm-sample-bar-txt b { color: #fff; font-weight: 700; }
.dlm-sample-bar-actions { display: flex; align-items: center; gap: 8px; }
/* (08/11) Para que la sección se entienda: leyenda de colores del cartel de ejemplo, glosario "?",
   Carrera deshabilitada con su nota, tira de pestañas que avisa que hay más y calendario plegado. */
.dlm-sample-bar-txt > span { min-width: 0; }
.dlm-sample-leg { color: #cbd5e1; }
.dlm-sample-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin: 0 5px 0 6px; vertical-align: 0; }
.dlm-sample-leg i.is-me { background: var(--sim-me); }
.dlm-sample-leg i.is-ref { background: var(--sim-ref); }
.pt-diag .dlm-sample-bar { margin: 0 0 18px; font-family: var(--f-ui); }
.dlm-glos { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.45); background: transparent; color: #8fa0c2; font-family: var(--f-ui); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: none; cursor: pointer; vertical-align: middle; transition: color 0.15s, border-color 0.15s; }
.dlm-glos:hover, .dlm-glos[aria-expanded="true"] { color: #fff; border-color: rgba(226, 232, 240, 0.7); }
.dlm-glos-p { margin: 8px 0 14px; padding: 10px 12px; border-left: 2px solid var(--sim-ref); border-radius: 0 10px 10px 0; background: rgba(148, 163, 184, 0.08); font-family: var(--f-ui); font-size: 13.5px; font-weight: 400; line-height: 1.5; color: #cbd5e1; text-align: left; }
.dlm-rs-head .dlm-glos-p { margin-bottom: 8px; }
.dlm-hx + .dlm-glos-p { margin: -10px 0 18px; }
.dlm-seg button:disabled, .dlm-seg button:disabled:hover { color: #4b5563; cursor: not-allowed; }
.dlm-seg-note { display: block; margin-top: 6px; font-size: 13px; color: #8b9ab5; }
.dlm-coach-subnav.has-more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0, 0, 0, 0.1)); mask-image: linear-gradient(to right, #000 calc(100% - 48px), rgba(0, 0, 0, 0.1)); }
.dlm-coach-subnav.has-more-l { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 40px); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 40px); }
.dlm-coach-subnav.has-more-l.has-more-r { -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 40px, #000 calc(100% - 48px), rgba(0, 0, 0, 0.1)); mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), #000 40px, #000 calc(100% - 48px), rgba(0, 0, 0, 0.1)); }
.dlm-pt-more { margin-top: 40px; }
.dlm-pt-more summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 6px 0; list-style: none; cursor: pointer; }
.dlm-pt-more summary::-webkit-details-marker { display: none; }
.dlm-pt-more summary .dlm-pt-sub { margin: 0; color: #cbd5e1; }
.dlm-pt-more summary .dlm-pt-sub::after { content: '\203A'; display: inline-block; margin-left: 10px; transform: rotate(90deg); transition: transform 0.15s; }
.dlm-pt-more[open] summary .dlm-pt-sub::after { transform: rotate(-90deg); }
.dlm-pt-more summary small { font-size: 14px; color: #64748b; }
.dlm-pt-more summary:hover .dlm-pt-sub { color: #f8fafc; }
.dlm-pt-more .dlm-pt-list { margin-top: 10px; }

/* Portada — Hero */
.dlm-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 20px; align-items: stretch; padding: 24px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.2); background: radial-gradient(90% 120% at 0% 0%, rgba(56, 189, 248, 0.13), rgba(11, 16, 32, 0.94) 65%), #070b16; box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38); margin-bottom: 20px; }
.dlm-hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.dlm-hero-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.dlm-hero-lead { margin: 0; font-size: 15.5px; line-height: 1.55; color: #cbd5e1; max-width: 58ch; }
.dlm-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.dlm-btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--sim-me); color: #05101f; font-family: var(--f-ui); font-size: 14px; font-weight: 800; cursor: pointer; transition: filter 0.15s; }
.dlm-btn-primary:hover { filter: brightness(1.08); }
.dlm-btn-secondary { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.3); background: #0b1020; color: #e2e8f0; font-family: var(--f-ui); font-size: 14px; font-weight: 700; cursor: pointer; }
.dlm-btn-secondary:hover { border-color: #fff; color: #fff; }
.dlm-hero-art { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.16); min-width: 0; }
.dlm-hero-art-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: #8fa0c2; }
.dlm-hero-art-top b { color: var(--sim-loss); font-weight: 800; }
.dlm-hero-svg { display: block; width: 100%; height: 186px; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.45), #060913 78%); border: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-hero-art-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #94a3b8; }

/* Portada — 3 pilares de valor */
.dlm-sec-head { margin: 24px 0 12px; }
.dlm-sec-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.dlm-sec-head p { margin: 3px 0 0; font-size: 14px; color: #8fa0c2; }
.dlm-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.dlm-pillar { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-pillar-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); color: var(--sim-me); }
.dlm-pillar h3 { margin: 4px 0 0; font-size: 16px; font-weight: 800; color: #fff; }
.dlm-pillar p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #94a3b8; }

/* Portada — Cómo funciona en 3 pasos */
.dlm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.dlm-step { position: relative; padding: 16px 18px; border-radius: 14px; background: linear-gradient(180deg, rgba(30, 41, 59, 0.36), rgba(11, 16, 32, 0.88)); border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-step-num { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(56, 189, 248, 0.14); color: var(--sim-me); font-size: 12px; font-weight: 800; }
.dlm-step h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; color: #fff; }
.dlm-step p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #94a3b8; }
.dlm-step em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--sim-ref); }

/* Portada — Bandeja doble: Muestra de Monza + Adelanto DatLap Coach */
.dlm-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dlm-showcase-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 20px; border-radius: 16px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.18); border-top: 3px solid var(--sim-me); }
.dlm-showcase-card.is-coach { border-top-color: var(--sim-ref); background: radial-gradient(120% 100% at 100% 0%, rgba(251, 191, 36, 0.08), #0b1020 70%); }
.dlm-showcase-card h3 { margin: 4px 0 6px; font-size: 19px; font-weight: 800; color: #fff; }
.dlm-showcase-card p { margin: 0; font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.dlm-coach-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dlm-coach-mods span { padding: 4px 10px; border-radius: 8px; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(148, 163, 184, 0.2); font-size: 12px; font-weight: 700; color: #e2e8f0; }
.dlm-honest-foot { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.12); font-size: 12.5px; color: #8fa0c2; text-align: center; }

/* Invitación inline a DatLap Coach (adentro del tramo, debajo de .dlm-coach-pills) */
.dlm-coach-invite { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: radial-gradient(100% 140% at 0% 0%, rgba(251, 191, 36, 0.12), rgba(11, 16, 32, 0.95) 68%); border: 1px solid rgba(251, 191, 36, 0.35); border-left: 4px solid var(--sim-ref); }
.dlm-coach-invite-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dlm-coach-invite-title { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.dlm-coach-invite-desc { margin: 0; font-size: 13px; line-height: 1.45; color: #cbd5e1; }
.dlm-coach-invite-acts { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.dlm-btn-amber { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.16); color: #fde68a; font-family: var(--f-ui); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.dlm-btn-amber:hover { background: rgba(251, 191, 36, 0.26); color: #fff; }
.dlm-btn-dismiss { height: 36px; padding: 0 10px; border: 0; background: transparent; color: #8fa0c2; font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dlm-btn-dismiss:hover { color: #e2e8f0; }

/* Guía de conexión UDP */
.dlm-guide-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; margin-top: 14px; }
.dlm-cfg-table { display: flex; flex-direction: column; border-radius: 12px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.18); overflow: hidden; }
.dlm-cfg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid rgba(148, 163, 184, 0.1); font-size: 13.5px; }
.dlm-cfg-row:first-child { border-top: 0; }
.dlm-cfg-row span { color: #cbd5e1; font-weight: 600; }
.dlm-cfg-row small { display: block; font-size: 11.5px; font-weight: 400; color: #8fa0c2; }
.dlm-cfg-val { flex-shrink: 0; padding: 4px 10px; border-radius: 7px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35); font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 700; color: var(--sim-me); }
.dlm-faq-list { display: flex; flex-direction: column; gap: 10px; }
.dlm-faq-item { padding: 12px 14px; border-radius: 12px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-faq-item b { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; color: #fff; }
.dlm-faq-item p { margin: 0; font-size: 13px; line-height: 1.45; color: #94a3b8; }
.dlm-code-inline { padding: 1px 6px; border-radius: 5px; background: rgba(148, 163, 184, 0.14); font-family: 'Geist Mono', monospace; font-size: 12px; color: #e2e8f0; }

@media (max-width: 1023px) {
  .dlm-hero, .dlm-pillars, .dlm-steps, .dlm-showcase-grid, .dlm-guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dlm-hero { padding: 16px; gap: 14px; }
  .dlm-hero-title { font-size: 24px; }
  .dlm-hero-lead { font-size: 14px; }
  .dlm-hero-ctas { flex-direction: column; align-items: stretch; }
  .dlm-btn-primary, .dlm-btn-secondary { justify-content: center; width: 100%; }
  .dlm-hero-svg { height: 154px; }
  .dlm-pillar, .dlm-step, .dlm-showcase-card { padding: 14px; }
  .dlm-coach-invite { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .dlm-coach-invite-acts { width: 100%; justify-content: space-between; }
  .dlm-sample-bar { padding: 9px 12px; font-size: 12.5px; }
  .dlm-cfg-row { padding: 9px 11px; font-size: 13px; }
}
/* La ilustración de la portada: mapa de la curva arriba y velocidades abajo. */
.dlm-hero-svg { display: flex; flex-direction: column; gap: 6px; height: 260px; padding: 8px; }
.dlm-hero-map { flex: 1; min-height: 0; width: 100%; }
.dlm-hero-vel { display: block; width: 100%; height: 54px; flex-shrink: 0; }
.dlm-hero-art-foot span { display: inline-flex; align-items: center; gap: 5px; }
.dlm-dot { display: inline-block; width: 10px; height: 3px; border-radius: 2px; }
.dlm-dot.is-me { background: var(--sim-me); }
.dlm-dot.is-ref { background: var(--sim-ref); }
.dlm-hero-art-top b.is-gain { color: var(--sim-gain); }
@media (max-width: 640px) { .dlm-hero-svg { height: 210px; } .dlm-hero-art-foot { flex-wrap: wrap; } }
/* Revisión de Gemini (31/10): en celular los controles del mapa tapaban el número 4;
   leyenda del dibujo en un renglón; en tablet las dos tarjetas de abajo lado a lado. */
@media (max-width: 640px) {
  .dlm-map-tools { top: auto; bottom: 8px; right: 8px; }
  .dlm-map-tool { width: 28px; height: 28px; font-size: 14px; }
  .dlm-hero-art-foot > span:last-child { display: none; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  .dlm-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* (31/10) Sim racing: guía de conexión (paso 3 del plan). */
.dlm-guide-grid .dlm-col { gap: 14px; }
.dlm-guide-note { margin-top: 10px; font-size: 12.5px; }
.dlm-guide-p { margin: 0; font-size: 14px; line-height: 1.55; color: #cbd5e1; }
.dlm-guide-p b { color: #fff; }
.dlm-cfg-row > span { min-width: 0; }
.dlm-cfg-val { white-space: nowrap; }
.dlm-step-link { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--sim-me); font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.dlm-step-link:hover { color: #fff; }
.dlm-step-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .dlm-cfg-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* Revisión de Gemini: en celular el encabezado de una tarjeta con etiqueta no se parte mal. */
@media (max-width: 640px) {
  .dlm-card-h { flex-wrap: wrap; gap: 4px 10px; }
  .dlm-kicker { white-space: nowrap; }
  .dlm-coach-callout-top .dlm-kicker { white-space: normal; }
}

/* (1/11, prueba) SIM RACING — Mis vueltas: garaje de sesiones con trazado, escudería y filtros
   (diseño de Gemini, bloque A). La tarjeta toma el color de la escudería en --team-color. */
.dlm-garage { margin-top: 4px; }
.dlm-garage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dlm-garage-head .dlm-sub { max-width: 52ch; }
.dlm-ses-filters { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 18px; }
.dlm-ses-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dlm-ses-filter > span { min-width: 48px; font-size: 12px; font-weight: 700; color: #8fa0c2; }
.dlm-filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.22); background: #0b1020; color: #cbd5e1; font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.dlm-filter-chip small { font-size: 11px; font-weight: 700; color: #8fa0c2; }
.dlm-filter-chip:hover { border-color: rgba(56, 189, 248, 0.45); color: #fff; }
.dlm-filter-chip.is-on { border-color: var(--sim-me); background: rgba(56, 189, 248, 0.14); color: #fff; }
.dlm-filter-chip.is-on small { color: #bae6fd; }
.dlm-ses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 14px; }
.dlm-ses-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); border-top: 3px solid var(--team-color, #38bdf8); background: radial-gradient(110% 90% at 100% 0%, var(--team-glow, rgba(56, 189, 248, 0.14)), transparent 60%), linear-gradient(180deg, rgba(22, 32, 54, 0.72), rgba(9, 13, 26, 0.96)); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34); color: #e2e8f0; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.dlm-ses-card:hover, .dlm-ses-card:focus-visible { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.55); border-top-color: var(--team-color, #38bdf8); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48); outline: none; }
.dlm-ses-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dlm-ses-type { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.dlm-ses-type.is-tt { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.32); }
.dlm-ses-type.is-race { background: rgba(251, 191, 36, 0.14); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.35); }
.dlm-ses-team { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(148, 163, 184, 0.22); font-size: 11.5px; font-weight: 800; color: #f8fafc; white-space: nowrap; }
.dlm-ses-team i { width: 7px; height: 7px; border-radius: 50%; }
.dlm-ses-art { position: relative; height: 138px; padding: 10px 12px; border-radius: 12px; background: radial-gradient(circle at 60% 45%, rgba(30, 41, 59, 0.55), #060913 82%); border: 1px solid rgba(148, 163, 184, 0.12); overflow: hidden; }
.dlm-ses-track-svg { position: absolute; right: 6px; top: 6px; width: 74%; height: calc(100% - 12px); }
.dlm-ses-track-bg { fill: none; stroke: rgba(148, 163, 184, 0.26); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dlm-ses-track-fg { fill: none; stroke: var(--team-color, #38bdf8); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dlm-ses-track-title { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.dlm-ses-track-title h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dlm-ses-track-title span { font-size: 12px; font-weight: 600; color: #94a3b8; }
.dlm-ses-driver { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(7, 11, 22, 0.72); border: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-driver-avatar { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800; color: #04101f; background: var(--team-color, #38bdf8); }
.dlm-driver-meta { flex: 1; min-width: 0; }
.dlm-driver-meta b { display: block; font-size: 13.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-driver-meta span { display: block; font-size: 11.5px; color: #8fa0c2; }
.dlm-ses-go { flex-shrink: 0; color: var(--sim-me); }
.dlm-ses-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-ses-stats > div { min-width: 0; }
.dlm-ses-stats span { display: block; font-size: 11px; font-weight: 600; color: #8fa0c2; }
.dlm-ses-stats b { display: block; margin-top: 1px; font-size: 15px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlm-ses-stats b.is-gain { color: var(--sim-gain); }
.dlm-ses-stats small { display: block; font-size: 10.5px; color: #8fa0c2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .dlm-garage-head { flex-direction: column; align-items: flex-start; }
  .dlm-ses-grid { grid-template-columns: 1fr; }
  .dlm-ses-filter > span { width: 100%; min-width: 0; }
}

/* (1/11, prueba) SIM RACING — Análisis de sesión más visual (paso 2, bloques B y C de Gemini):
   tarjetas de las 3 curvas clave con la curva ampliada y la brecha sombreada, tira de 4
   indicadores, barra de impacto por tramo y entradas al bajar (.dlm-reveal). */
@keyframes dlmDrawLine { from { stroke-dashoffset: var(--path-len, 100); } to { stroke-dashoffset: 0; } }
.dlm-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--dlm-delay, 0ms); }
.dlm-reveal.is-visible { opacity: 1; transform: translateY(0); }
.dlm-draw-path { stroke-dasharray: var(--path-len, 100); stroke-dashoffset: var(--path-len, 100); }
.dlm-reveal.is-visible .dlm-draw-path { animation: dlmDrawLine 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--dlm-delay, 0ms) + 250ms); }
@media (prefers-reduced-motion: reduce) {
  .dlm-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dlm-draw-path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
}
.dlm-mets.is-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.dlm-mets.is-strip .dlm-met { padding: 10px 12px; }
.dlm-mets.is-strip .dlm-met b { font-size: 19px; }
.dlm-corners-showcase { margin-bottom: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(11, 16, 32, 0.88)); }
.dlm-corners-t { margin-top: 2px; font-size: 18px; font-weight: 800; color: #fff; }
.dlm-legend i.is-me { background: var(--sim-me); }
.dlm-legend i.is-ref { background: var(--sim-ref); }
.dlm-corner-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dlm-corner-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.18); background: #080d1a; text-align: left; font-family: var(--f-ui); color: #e2e8f0; cursor: pointer; transition: transform 0.16s ease, border-color 0.16s ease; }
.dlm-corner-card:focus-visible { outline: 2px solid var(--sim-me); outline-offset: 2px; }
.dlm-corner-card.is-loss { border-top: 3px solid var(--sim-loss); background: radial-gradient(100% 80% at 100% 0%, rgba(248, 113, 113, 0.10), #080d1a 65%); }
.dlm-corner-card.is-gain { border-top: 3px solid var(--sim-gain); background: radial-gradient(100% 80% at 100% 0%, rgba(52, 211, 153, 0.10), #080d1a 65%); }
.dlm-corner-card.is-visible:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.55); }
.dlm-corner-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dlm-corner-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-corner-delta { flex-shrink: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dlm-corner-zoom { position: relative; display: block; height: 164px; border-radius: 10px; background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.72), #060a14 82%); border: 1px solid rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-corner-zoom canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dlm-corner-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #64748b; }
.dlm-corner-go { padding: 5px 9px; border-radius: 7px; border: 1px solid rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.12); color: #e0f2fe; font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dlm-corner-go:hover { border-color: #fff; }
.dlm-corner-gap { fill: rgba(148, 163, 184, 0.18); stroke: none; }
.dlm-corner-gap.is-loss { fill: rgba(248, 113, 113, 0.28); }
.dlm-corner-gap.is-gain { fill: rgba(52, 211, 153, 0.28); }
.dlm-corner-chip { position: absolute; right: 8px; bottom: 7px; padding: 3px 8px; border-radius: 6px; background: rgba(7, 11, 22, 0.88); border: 1px solid rgba(148, 163, 184, 0.22); font-size: 11px; font-weight: 700; color: #cbd5e1; }
.dlm-corner-reading { display: block; margin: 0; font-size: 12.5px; line-height: 1.4; color: #94a3b8; }
.dlm-corner-reading b { color: #fff; }
.dlm-seg-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dlm-seg-bar { position: relative; display: block; width: 100%; height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-seg-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #64748b; }
.dlm-seg-row.is-loss .dlm-seg-bar > i { background: var(--sim-loss); }
.dlm-seg-row.is-gain .dlm-seg-bar > i { background: var(--sim-gain); }
.dlm-seg-row .dlm-seg-time { font-size: 12.5px; font-weight: 600; color: #7f8db0; }
@media (max-width: 1023px) {
  .dlm-mets.is-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Carrusel: una tarjeta a la vez, con freno en cada una. */
  .dlm-corners-showcase { padding: 14px 12px; }
  .dlm-corner-cards { grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; padding-right: 16px; scrollbar-width: none; }
  .dlm-corner-cards::-webkit-scrollbar { display: none; }
  .dlm-corner-card { scroll-snap-align: start; }
  .dlm-corner-zoom { height: 150px; }
}

/* (1/11, prueba) SIM RACING — Replay de la vuelta (paso 3 del rediseño): pista gruesa en Canvas
   con mapa de calor, dos autos sincronizados, HUD estilo transmisión, línea de tiempo y
   telemetría sincronizada. Mapa de sesión y tarjetas de curva usan el mismo motor. */
.dlm-map-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dlm-map-stage.is-session { height: 420px; background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1.2px), radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.72), #060a14 82%); background-size: 22px 22px, auto; cursor: pointer; }
.dlm-map-stage.is-session > svg { pointer-events: none; opacity: 0; }
.dlm-replay { margin-bottom: 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.2); background: linear-gradient(180deg, rgba(30, 41, 59, 0.5), rgba(9, 13, 26, 0.96)); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42); }
.dlm-rp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dlm-rp-t { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dlm-rp-views { display: inline-flex; padding: 3px; border-radius: 10px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.22); }
.dlm-rp-views button { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #94a3b8; font-family: var(--f-ui); font-size: 13px; font-weight: 700; cursor: pointer; }
.dlm-rp-views button.is-on { background: rgba(56, 189, 248, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45); }
.dlm-rp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: stretch; }
.dlm-rp-stage { height: 560px; border-radius: 14px; background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1.2px), radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.78), #060a14 80%); background-size: 22px 22px, auto; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-rp-stage > svg { pointer-events: none; opacity: 0; }
.dlm-rp-fit { position: absolute; top: 10px; left: 10px; z-index: 5; display: none; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.28); background: rgba(11, 16, 32, 0.9); color: #e2e8f0; font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.dlm-rp-stage.is-zoomed .dlm-rp-fit { display: inline-flex; }
.dlm-rp-fit:hover { border-color: #fff; }
.dlm-rp-fit svg, .dlm-map-tool svg { position: static; width: 16px; height: 16px; }
.dlm-rp-scale { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 7px; background: rgba(7, 11, 22, 0.85); font-size: 11.5px; font-weight: 700; color: #cbd5e1; pointer-events: none; }
.dlm-rp-scale i { width: 86px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #2d0f6b, #7e22ce, #c2419a, #f0745c, #fbbf24, #fef08a); }
.dlm-replay.is-view-delta .dlm-rp-scale i { background: linear-gradient(90deg, #34d399, #475569 50%, #f87171); }
.dlm-rp-bigplay { position: absolute; left: 50%; top: 50%; z-index: 6; display: none; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: #fff; font-family: var(--f-ui); cursor: pointer; transform: translate(-50%, -50%); }
.dlm-replay.is-idle .dlm-rp-bigplay { display: flex; }
.dlm-rp-bigplay > span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(180deg, #38bdf8, #0284c7); color: #041322; box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.18), 0 18px 40px rgba(2, 132, 199, 0.5); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.dlm-rp-bigplay > span svg { width: 38px; height: 38px; margin-left: 4px; }
.dlm-rp-bigplay:hover > span { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(56, 189, 248, 0.22), 0 22px 48px rgba(2, 132, 199, 0.6); }
.dlm-rp-bigplay > b { padding: 6px 12px; border-radius: 8px; background: rgba(7, 11, 22, 0.86); font-size: 14px; font-weight: 800; }
@media (prefers-reduced-motion: no-preference) { .dlm-replay.is-idle .dlm-rp-bigplay > span { animation: dlmPulse 2.2s ease-in-out infinite; } }
@keyframes dlmPulse { 0%, 100% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.18), 0 18px 40px rgba(2, 132, 199, 0.5); } 50% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0.1), 0 18px 40px rgba(2, 132, 199, 0.5); } }
/* HUD: delta grande, un panel por auto con velocidad, marcha y pedales. */
.dlm-rp-hud { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dlm-rp-delta { padding: 14px 16px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.2); text-align: center; }
.dlm-rp-delta > span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: #8fa0c2; }
.dlm-rp-delta > b { display: block; margin: 2px 0; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.dlm-rp-delta > small { display: block; font-size: 11.5px; color: #64748b; }
.dlm-rp-car { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.18); border-left: 4px solid var(--c, #38bdf8); background: radial-gradient(120% 100% at 0% 0%, var(--cg, rgba(56, 189, 248, 0.2)), #0b1020 70%); min-width: 0; }
.dlm-rp-car-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dlm-rp-tag { flex-shrink: 0; padding: 3px 7px; border-radius: 6px; background: var(--c, #38bdf8); color: #04101f; font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em; }
.dlm-rp-car-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-rp-car-h > b { flex-shrink: 0; font-size: 12px; font-weight: 700; color: #8fa0c2; font-variant-numeric: tabular-nums; }
.dlm-rp-car-body { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 12px; }
.dlm-rp-speed b { display: block; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.dlm-rp-speed small, .dlm-rp-gear small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: #64748b; }
.dlm-rp-gear { text-align: center; }
.dlm-rp-gear b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: #060a14; border: 1px solid rgba(148, 163, 184, 0.22); font-size: 22px; font-weight: 800; color: #fff; }
.dlm-rp-pedals { display: grid; grid-template-columns: 14px 14px; grid-template-rows: 46px auto; gap: 2px 6px; }
.dlm-rp-ped { position: relative; display: block; height: 46px; border-radius: 4px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-rp-ped i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 3px; }
.dlm-rp-ped i.is-thr { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.dlm-rp-ped i.is-brk { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.dlm-rp-pedals em { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: 0.04em; color: #64748b; text-align: center; }
.dlm-rp-seg { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); min-width: 0; }
.dlm-rp-seg .dlm-kicker b { color: #fff; }
.dlm-rp-seg-name { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-rp-seg-times { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dlm-rp-seg-times span { display: inline-flex; align-items: center; gap: 5px; }
.dlm-rp-seg-times i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.dlm-rp-seg-times em { font-style: normal; }
.dlm-rp-seg-times > b { margin-left: auto; font-weight: 800; }
.dlm-rp-clock { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); font-variant-numeric: tabular-nums; }
.dlm-rp-clock b { font-size: 22px; font-weight: 800; color: #fff; }
.dlm-rp-clock span { font-size: 12px; font-weight: 600; color: #64748b; }
/* Controles y línea de tiempo con los tramos marcados. */
.dlm-rp-ctl { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 14px 0 12px; }
.dlm-rp-play { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 0; background: linear-gradient(180deg, #38bdf8, #0284c7); color: #041322; cursor: pointer; box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45); }
.dlm-rp-play svg { margin-left: 2px; }
.dlm-replay.is-playing .dlm-rp-play svg { margin-left: 0; }
.dlm-rp-speeds { display: inline-flex; padding: 3px; border-radius: 9px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-rp-speeds button { height: 28px; padding: 0 9px; border: 0; border-radius: 6px; background: none; color: #94a3b8; font-family: var(--f-ui); font-size: 12px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.dlm-rp-speeds button.is-on { background: rgba(148, 163, 184, 0.18); color: #fff; }
.dlm-rp-scrub { padding: 14px 0 18px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; min-width: 0; }
.dlm-rp-scrub:focus-visible { outline: none; }
.dlm-rp-scrub:focus-visible .dlm-rp-knob { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.35); }
.dlm-rp-rail { position: relative; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.18); }
.dlm-rp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.dlm-rp-knob { position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 3px solid #0284c7; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); pointer-events: none; }
.dlm-rp-tick { position: absolute; top: 14px; width: 18px; height: 18px; margin-left: -9px; display: grid; place-items: center; border-radius: 50%; background: #1e293b; border: 1px solid rgba(148, 163, 184, 0.3); font-size: 10px; font-weight: 800; color: #cbd5e1; cursor: pointer; }
.dlm-rp-tick::before { content: ''; position: absolute; top: -8px; left: 50%; width: 2px; height: 8px; margin-left: -1px; background: rgba(148, 163, 184, 0.5); }
.dlm-rp-tick:hover { background: #38bdf8; color: #04101f; }
.dlm-rp-time { font-size: 15px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
/* Telemetría sincronizada: los gráficos del tramo, pero de toda la vuelta, con los tramos marcados. */
.dlm-rp-charts { gap: 6px; }
.dlm-rp-charts .dlm-chart-label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #8fa0c2; }
.dlm-rp-charts .dlm-chart-vals { font-size: 12.5px; }
/* 23/11: los seis gráficos del replay del mismo alto (104 px en compu, 84 en celular). */
.dlm-rp-charts { --rp-ch: 104px; }
.dlm-rp-charts .dlm-chart-box .dlm-svg-wrap { height: var(--rp-ch); }
.dlm-rp-charts .dlm-chart-box:last-of-type { border-bottom: 0; }
.dlm-rp-segline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(148, 163, 184, 0.2); pointer-events: none; }
.dlm-rp-charts .dlm-cursor-line { width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.dlm-rp-xaxis { position: relative; height: 22px; margin-left: 48px; }
.dlm-rp-xaxis button { position: absolute; top: 2px; width: 20px; height: 20px; margin-left: -10px; padding: 0; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.3); background: #1e293b; color: #cbd5e1; font-family: var(--f-ui); font-size: 10.5px; font-weight: 800; cursor: pointer; }
.dlm-rp-xaxis button:hover { background: #38bdf8; color: #04101f; }
@media (max-width: 1023px) {
  .dlm-rp-grid { grid-template-columns: 1fr; }
  .dlm-rp-stage { height: min(62vw, 460px); min-height: 300px; }
  .dlm-rp-hud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dlm-rp-delta { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 12px; padding: 10px 14px; }
  .dlm-rp-delta > b { font-size: 34px; }
  .dlm-rp-clock { grid-column: 1 / -1; }
  .dlm-rp-seg { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; }
  .dlm-rp-order { flex-basis: 100%; margin-top: 0; }
  .dlm-rp-seg .dlm-kicker { white-space: nowrap; }
  .dlm-rp-seg-name { flex: 1; font-size: 14px; }
}
@media (max-width: 640px) {
  .dlm-replay { padding: 12px; }
  .dlm-rp-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dlm-rp-t { font-size: 17px; }
  .dlm-rp-views button { height: 30px; padding: 0 11px; font-size: 12.5px; }
  .dlm-rp-stage { height: min(78vw, 400px); min-height: 280px; }
  .dlm-rp-bigplay > span { width: 68px; height: 68px; }
  .dlm-rp-bigplay > span svg { width: 30px; height: 30px; }
  .dlm-rp-delta > small { display: none; }
  .dlm-rp-car { padding: 10px; gap: 6px; }
  .dlm-rp-car-h > b { display: none; }
  .dlm-rp-car-body { gap: 8px; }
  .dlm-rp-speed b { font-size: 28px; }
  .dlm-rp-gear b { width: 32px; height: 32px; font-size: 17px; }
  .dlm-rp-pedals { grid-template-columns: 11px 11px; grid-template-rows: 36px auto; }
  .dlm-rp-ped { height: 36px; }
  .dlm-rp-clock { padding: 6px 10px; }
  .dlm-rp-clock b { font-size: 18px; }
  .dlm-rp-ctl { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .dlm-rp-speeds { grid-column: 1 / -1; justify-self: center; order: 4; }
  .dlm-rp-play { width: 40px; height: 40px; }
  .dlm-rp-time { font-size: 13px; }
  .dlm-rp-xaxis { margin-left: 38px; }
  .dlm-rp-charts { --rp-ch: 84px; }
  .dlm-map-stage.is-session { height: 320px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .dlm-rp-stage { height: 300px; min-height: 0; }
}

/* (1/11, prueba) SIM RACING · Entrenador (paso 4, diseño de Gemini): índice fijo de 4 bloques,
   plan para la próxima vuelta, curva por curva con marcadores F/G/V/A y escuela de frenada en
   5 fases. Prefijo dlm-, Geist, celular primero. */
.dlm-coach-subnav { position: sticky; top: calc(var(--dl-hdr, 64px) + 76px); z-index: 26; display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; padding: 6px 8px; border-radius: 12px; background: rgba(9, 14, 28, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(148, 163, 184, 0.18); overflow-x: auto; scrollbar-width: none; }
.dlm-coach-subnav::-webkit-scrollbar { display: none; }
.dlm-subnav-pills { display: flex; align-items: center; gap: 4px; }
.dlm-subnav-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #94a3b8; font-family: var(--f-ui); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.dlm-subnav-btn:hover { color: #fff; background: rgba(148, 163, 184, 0.08); }
.dlm-subnav-btn.is-on { color: #fff; background: rgba(56, 189, 248, 0.15); border-color: rgba(56, 189, 248, 0.45); }
.dlm-subnav-btn small { padding: 1px 6px; border-radius: 999px; background: rgba(52, 211, 153, 0.18); color: var(--sim-gain); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dlm-subnav-btn small.is-n { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.dlm-subnav-btn i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; background: rgba(148, 163, 184, 0.14); font-style: normal; font-size: 11px; font-weight: 800; color: #cbd5e1; }
.dlm-subnav-btn.is-on i { background: var(--sim-me); color: #04101f; }
.dlm-tab-panel { min-height: 40vh; }
.dlm-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; padding: 14px 16px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-next > span { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: #8fa0c2; }
.dlm-next-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(56, 189, 248, 0.55); background: rgba(56, 189, 248, 0.16); color: #fff; font-family: var(--f-ui); font-size: 14px; font-weight: 800; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dlm-next-btn:hover { background: rgba(56, 189, 248, 0.28); border-color: #fff; }
.dlm-next-btn.is-back { background: transparent; border-color: rgba(148, 163, 184, 0.3); color: #cbd5e1; }
.dlm-map-hint { margin: 10px 2px 0; font-family: var(--f-ui); font-size: 12.5px; line-height: 1.45; color: #8fa0c2; }
.dlm-seg-charts { margin-top: 14px; }
.dlm-seg-charts.is-open { padding: 14px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-seg-charts .dlm-card-h { margin-bottom: 10px; }
.dlm-seg-charts .dlm-card-h + .dlm-card-h, .dlm-seg-charts .dlm-charts-stack + .dlm-card-h, .dlm-seg-charts .dlm-more + .dlm-card-h { margin-top: 18px; }
.dlm-seg-charts .dlm-card-t { font-size: 15px; }
.dlm-seg-charts .dlm-live { font-size: 12.5px; }
@media (max-width: 599px) { .dlm-next { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; } .dlm-next > span { text-align: center; } .dlm-next-btn { justify-content: center; height: 40px; padding: 0 14px; font-size: 13px; gap: 6px; } .dlm-seg-charts.is-open { padding: 12px 10px; } }
@media (max-width: 640px) {
  .dlm-coach-subnav { padding: 4px; }
  .dlm-subnav-btn { height: 32px; padding: 0 9px; font-size: 12px; gap: 5px; }
  .dlm-subnav-btn i { width: 17px; height: 17px; font-size: 10.5px; }
  .dlm-phase-pill { padding: 7px 9px; }
  .dlm-rp-scale { top: 10px; bottom: auto; left: auto; right: 10px; padding: 4px 7px; font-size: 10.5px; }
  .dlm-rp-scale i { width: 56px; height: 6px; }
}
#dlmSecPlan, #dlmSecCurvas, #dlmSecFrenada, #dlmSecReplay { scroll-margin-top: calc(var(--dl-hdr, 64px) + 130px); }
.dlm-sec-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dlm-sec-title { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }

/* Bloque 1: el plan */
.dlm-plan { margin-bottom: 26px; }
.dlm-plan-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 14px; border-radius: 18px; border: 1px solid rgba(52, 211, 153, 0.35); background: radial-gradient(90% 120% at 100% 0%, rgba(52, 211, 153, 0.16), transparent 65%), linear-gradient(180deg, rgba(16, 28, 48, 0.92), rgba(8, 13, 25, 0.98)); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38); }
.dlm-plan-title { margin: 2px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.dlm-plan-sub { margin: 0; font-size: 14px; line-height: 1.45; color: #cbd5e1; }
.dlm-plan-score { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.dlm-plan-time-box { padding: 10px 14px; border-radius: 12px; background: rgba(7, 11, 22, 0.78); border: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-plan-time-box span { display: block; font-size: 11px; font-weight: 700; color: #8fa0c2; }
.dlm-plan-time-box b { display: block; margin-top: 2px; font-size: 22px; font-weight: 800; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.dlm-plan-time-box.is-goal { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.08); }
.dlm-plan-time-box.is-goal b { color: #fff; }
.dlm-plan-arrow { font-size: 20px; font-weight: 800; color: var(--sim-gain); }
.dlm-plan-saving { padding: 10px 14px; border-radius: 12px; background: var(--sim-gain); color: #03150e; text-align: center; }
.dlm-plan-saving b { display: block; font-size: 22px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dlm-plan-saving span { display: block; font-size: 11px; font-weight: 800; }
.dlm-plan-list { display: flex; flex-direction: column; gap: 12px; }
.dlm-plan-card { display: grid; grid-template-columns: 128px minmax(0, 1fr) 236px; gap: 16px; align-items: stretch; padding: 16px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); border-left: 4px solid var(--sim-gain); background: linear-gradient(180deg, rgba(22, 32, 54, 0.7), rgba(9, 13, 26, 0.96)); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3); }
.dlm-plan-rank { display: flex; flex-direction: column; justify-content: center; padding-right: 14px; border-right: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-plan-prio { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #8fa0c2; }
.dlm-plan-gain { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--sim-gain); font-variant-numeric: tabular-nums; }
.dlm-plan-share { display: block; height: 5px; border-radius: 999px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.dlm-plan-share > i { display: block; height: 100%; background: var(--sim-gain); border-radius: 999px; }
.dlm-plan-rank small { margin-top: 4px; font-size: 11px; color: #8fa0c2; }
.dlm-plan-body { display: flex; flex-direction: column; justify-content: space-between; gap: 9px; min-width: 0; }
.dlm-plan-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dlm-plan-h h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.dlm-plan-cause { padding: 2px 8px; border-radius: 6px; background: rgba(248, 113, 113, 0.14); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; font-size: 11.5px; font-weight: 700; }
.dlm-plan-cons { padding: 2px 8px; border-radius: 6px; background: rgba(148, 163, 184, 0.12); color: #cbd5e1; font-size: 11.5px; font-weight: 700; }
.dlm-plan-headline { margin: 0; font-size: 15px; line-height: 1.35; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-plan-headline b { color: #fff; font-weight: 800; }
.dlm-order-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dlm-order-step { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.18); border-top: 2px solid rgba(148, 163, 184, 0.35); min-width: 0; }
.dlm-order-step.is-brk { border-top-color: #f87171; }
.dlm-order-step.is-turn { border-top-color: #38bdf8; }
.dlm-order-step.is-apex { border-top-color: #fbbf24; }
.dlm-order-step.is-thr { border-top-color: #34d399; }
.dlm-order-step.is-on { background: rgba(15, 23, 42, 0.9); border-color: rgba(148, 163, 184, 0.3); }
.dlm-step-k { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #8fa0c2; white-space: nowrap; }
.dlm-step-v { margin-top: 2px; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-step-d { font-size: 11px; font-weight: 700; line-height: 1.3; color: #94a3b8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dlm-step-d.is-do { color: var(--sim-ref); }
.dlm-step-d em { font-style: normal; font-weight: 500; color: #64748b; }
.dlm-plan-extra { padding: 6px 10px; border-radius: 8px; background: rgba(15, 23, 42, 0.65); border-left: 3px solid var(--sim-ref); font-size: 12px; line-height: 1.35; color: #cbd5e1; }
.dlm-plan-extra b { color: #fff; }
.dlm-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.dlm-btn-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.26); background: #0b1020; color: #e2e8f0; font-family: var(--f-ui); font-size: 12px; font-weight: 700; cursor: pointer; }
.dlm-btn-chip.is-primary { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.45); color: #fff; }
.dlm-btn-chip:hover { border-color: #fff; color: #fff; }
.dlm-plan-mini { position: relative; min-height: 132px; border-radius: 12px; background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.72), #060a14 82%); border: 1px solid rgba(148, 163, 184, 0.16); overflow: hidden; cursor: pointer; }
.dlm-plan-mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dlm-plan-mini:focus-visible { outline: 2px solid var(--sim-me); outline-offset: 2px; }
.dlm-plan-mini-tag { position: absolute; right: 7px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 5px; background: rgba(7, 11, 22, 0.88); font-size: 10.5px; font-weight: 700; color: #cbd5e1; }
.dlm-plan-mini-tag i { width: 9px; height: 3px; border-radius: 2px; }
.dlm-plan-mini-tag i.is-me { background: var(--sim-me); }
.dlm-plan-mini-tag i.is-ref { background: var(--sim-ref); }

/* Bloque 2: curva por curva */
.dlm-corners-lab { margin-bottom: 26px; }
.dlm-corner-tabs { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.dlm-corner-tabs::-webkit-scrollbar { display: none; }
.dlm-corner-tab { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px; border: 1px solid rgba(148, 163, 184, 0.2); background: #0b1020; color: #cbd5e1; font-family: var(--f-ui); font-size: 13px; white-space: nowrap; cursor: pointer; }
.dlm-corner-tab:hover { border-color: rgba(56, 189, 248, 0.5); }
.dlm-corner-tab.is-on { border-color: var(--sim-me); background: rgba(56, 189, 248, 0.14); color: #fff; }
.dlm-corner-tab small { font-weight: 800; font-variant-numeric: tabular-nums; color: #8fa0c2; }
.dlm-corner-tab small.is-loss { color: var(--sim-loss); }
.dlm-corner-tab small.is-gain { color: var(--sim-gain); }
.dlm-corner-work { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.dlm-corner-inspector { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.dlm-sec-note { margin: -4px 0 12px; font-size: 12px; line-height: 1.45; color: #8fa0c2; }
/* Bloque por frenada: regla de frenada + primer plano + 3 tarjetas */
.dlm-zone { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, rgba(30, 41, 59, 0.42), rgba(11, 16, 32, 0.82)); }
.dlm-zone-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.dlm-zone .dlm-map-stage.is-corner-lab { height: 420px; }
.dlm-zone .dlm-lab-strip, .dlm-zone .dlm-lab-read { margin-left: 0; margin-right: 0; }
.dlm-rule { position: relative; margin-bottom: 20px; padding: 6px 0 2px; }
.dlm-rule-head, .dlm-rule-foot { position: relative; height: 22px; }
.dlm-rule-name { position: absolute; left: 0; top: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; }
.dlm-rule-name.is-ref { color: var(--sim-ref); }
.dlm-rule-name.is-me { color: var(--sim-me); }
.dlm-rule-tag { position: absolute; top: 0; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; background: rgba(7, 11, 22, 0.92); border: 1px solid; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; }
.dlm-rule-tag.is-ref { border-color: var(--sim-ref); }
.dlm-rule-tag.is-me { border-color: var(--sim-me); }
.dlm-rule-tag.is-right { transform: translateX(-100%); }
.dlm-rule-tag.is-left { transform: none; }
.dlm-rule-axis span.is-first { transform: none; text-align: left; }
.dlm-rule-lane { position: relative; height: 34px; border-radius: 8px; background: rgba(7, 11, 22, 0.75); border: 1px solid rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-rule-lane.is-ref { border-color: rgba(251, 191, 36, 0.35); }
.dlm-rule-lane.is-me { border-color: rgba(56, 189, 248, 0.35); }
.dlm-rule-bar { position: absolute; bottom: 0; background: #ef4444; }
.dlm-rule-coast { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.25) 0 4px, transparent 4px 8px); }
.dlm-rule-dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #070b16; border: 3px solid var(--sim-ref); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2); }
.dlm-rule-lane.is-me .dlm-rule-dot { border-color: var(--sim-me); background: var(--sim-me); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
.dlm-rule-mid { position: relative; height: 30px; }
.dlm-rule-span { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--sim-ref), var(--sim-me)); }
.dlm-rule-diff { position: absolute; top: 50%; transform: translate(-50%, -50%); padding: 3px 10px; border-radius: 999px; background: #fff; color: #04101f; font-size: 14px; font-weight: 800; white-space: nowrap; z-index: 2; }
.dlm-rule-diff.is-left { transform: translate(0, -50%); }
.dlm-rule-diff.is-right { transform: translate(-100%, -50%); }
.dlm-rule-diff.is-late { background: var(--sim-ref); }
.dlm-rule-diff.is-early { background: var(--sim-me); }
.dlm-rule-turn { position: absolute; top: -40px; bottom: -40px; width: 0; border-left: 2px dashed rgba(226, 232, 240, 0.5); }
.dlm-rule-axis { position: relative; height: 34px; margin-top: 6px; border-top: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-rule-axis span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #94a3b8; text-align: center; line-height: 1.15; white-space: nowrap; }
.dlm-rule-axis span small { display: block; font-size: 10px; font-weight: 600; color: #64748b; }
.dlm-rule-axis span.is-turn { transform: translateX(-100%); color: #fff; }
.dlm-rule-note { margin: 4px 0 0; font-size: 11.5px; color: #64748b; }
.dlm-zone-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dlm-zcard { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.16); border-top: 3px solid #64748b; min-width: 0; }
.dlm-zcard.is-turn { border-top-color: #38bdf8; }
.dlm-zcard.is-apex { border-top-color: #fbbf24; }
.dlm-zcard.is-thr { border-top-color: #34d399; }
.dlm-zcard-h { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #fff; }
.dlm-zcard-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; line-height: 1.3; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dlm-zcard-row em { font-style: normal; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.dlm-zcard-row b { color: #fff; }
.dlm-zcard small { margin-top: 2px; font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.dlm-zcard small.is-loss { color: var(--sim-loss); }
.dlm-zcard small.is-gain { color: var(--sim-gain); }
.dlm-corner-map-card { padding: 10px; }
.dlm-map-stage.is-corner-lab { height: 520px; background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1.2px), radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.78), #060a14 80%); background-size: 22px 22px, auto; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-map-stage.is-corner-lab > svg { pointer-events: none; opacity: 0; }
.dlm-corner-rp-btn { position: absolute; left: 10px; top: 10px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(56, 189, 248, 0.45); background: rgba(11, 16, 32, 0.9); color: #e0f2fe; font-family: var(--f-ui); font-size: 12px; font-weight: 800; cursor: pointer; }
.dlm-corner-rp-btn:hover { border-color: #fff; }
.dlm-corner-rp-btn svg { position: static; width: 12px; height: 12px; flex-shrink: 0; }
.dlm-corner-map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; margin: 8px 4px 0; font-size: 12px; color: #94a3b8; }
.dlm-corner-map-foot span { display: inline-flex; align-items: center; gap: 6px; }
.dlm-lab-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 4px 0; font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.dlm-lab-legend .dlm-corner-rp-btn { position: static; margin-left: auto; height: 30px; }
.dlm-lab-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dlm-dot.is-brk { background: #ef4444; height: 5px; }
.dlm-lab-anim { position: absolute; left: 50%; top: 10px; z-index: 5; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 8px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #38bdf8, #0284c7); color: #041322; font-family: var(--f-ui); font-size: 12.5px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45); white-space: nowrap; }
.dlm-lab-anim svg { width: 18px; height: 18px; position: static; }
.dlm-map-stage.is-anim .dlm-lab-anim { background: #0b1020; color: #e2e8f0; border: 1px solid rgba(148, 163, 184, 0.3); box-shadow: none; }
.dlm-lab-strip { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 8px; margin: 10px 2px 0; align-items: stretch; }
.dlm-lab-strip-lbl { display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: #8fa0c2; }
.dlm-lab-strip-svg { position: relative; height: 92px; border-radius: 8px; background: rgba(7, 11, 22, 0.75); border: 1px solid rgba(148, 163, 184, 0.12); overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.dlm-lab-strip-svg svg { display: block; width: 100%; height: 100%; }
.dlm-lab-strip-svg .dlm-cursor-line { width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
.dlm-lab-strip-x { grid-column: 2; display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; font-weight: 600; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-l-brk.is-ghost { stroke-width: 1.4; opacity: 0.45; stroke-dasharray: 4 3; }
.dlm-lab-read { margin: 10px 2px 0; border-radius: 10px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.16); overflow: hidden; }
.dlm-read-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); align-items: center; gap: 6px; padding: 7px 12px; border-top: 1px solid rgba(148, 163, 184, 0.1); font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dlm-read-row.is-head { border-top: 0; background: rgba(15, 23, 42, 0.8); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #8fa0c2; }
.dlm-read-row.is-head b { font-weight: 800; }
.dlm-read-row.is-head em { font-style: normal; font-weight: 600; letter-spacing: 0; color: #64748b; }
.dlm-read-m { font-size: 13px; letter-spacing: 0; color: #fff; }
.dlm-read-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-read-who::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.dlm-read-row b.is-brk { color: #fca5a5; }
.dlm-read-row b.is-thr { color: #86efac; }
.dlm-corner-inspector { min-width: 0; }
.dlm-coach-callout { padding: 14px 16px; margin-bottom: 12px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.2); border-left: 4px solid var(--sim-me); }
.dlm-coach-callout.is-loss { border-left-color: var(--sim-loss); }
.dlm-coach-callout.is-gain { border-left-color: var(--sim-gain); }
.dlm-coach-callout-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.dlm-coach-callout-top > b { flex-shrink: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dlm-coach-callout p { margin: 0; font-size: 14px; line-height: 1.5; color: #e2e8f0; }
.dlm-coach-callout p b { color: #fff; }
.dlm-coach-callout p small { display: block; margin-top: 2px; font-size: 12px; color: #8fa0c2; }
.dlm-coach-callout p + p { margin-top: 8px; }
.dlm-corner-matrix { border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.18); overflow: hidden; }
.dlm-cm-head, .dlm-cm-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.dlm-cm-head { background: rgba(15, 23, 42, 0.8); font-size: 11.5px; font-weight: 700; color: #8fa0c2; }
.dlm-cm-row { border-top: 1px solid rgba(148, 163, 184, 0.1); color: #cbd5e1; }
.dlm-cm-row > span:first-child { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #fff; }
.dlm-cm-row > b { color: #fff; }
.dlm-cm-row em { font-style: normal; font-weight: 800; text-align: right; color: #94a3b8; }
.dlm-cm-row em.is-loss { color: var(--sim-loss); }
.dlm-cm-row em.is-gain { color: var(--sim-gain); }
.dlm-corner-chart { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(148, 163, 184, 0.18); }
.dlm-cc-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.dlm-cc-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: #8fa0c2; }
.dlm-cc-lbl em { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0; color: #64748b; }
.dlm-cc-svg { position: relative; height: 64px; border-radius: 8px; background: rgba(7, 11, 22, 0.65); border: 1px solid rgba(148, 163, 184, 0.1); overflow: hidden; }
.dlm-cc-svg.is-speed { height: 110px; }
.dlm-cc-svg svg { display: block; width: 100%; height: 100%; }
.dlm-cc-mark { stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.dlm-cc-mark.is-me { stroke: rgba(56, 189, 248, 0.55); }
.dlm-cc-mark.is-ref { stroke: rgba(251, 191, 36, 0.5); }
.dlm-cc-txt { font-family: var(--f-ui); font-size: 9px; font-weight: 800; text-anchor: middle; }
.dlm-cc-txt.is-me { fill: #7dd3fc; }
.dlm-cc-txt.is-ref { fill: #fcd34d; }
.dlm-cc-x { display: flex; justify-content: space-between; padding-left: 100px; font-size: 11px; font-weight: 600; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-cc-x.is-wave { padding: 4px 2px 0; }
.dlm-l-brk { fill: none; stroke: #ef4444; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.dlm-l-thr { fill: none; stroke: #22c55e; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.dlm-l-thr.is-soft { stroke-width: 1.4; opacity: 0.6; }
.dlm-l-thr.is-ghost { stroke-width: 1.2; opacity: 0.3; stroke-dasharray: 4 3; }

/* Bloque 3: escuela de frenada */
.dlm-braking-school { margin-bottom: 26px; }
.dlm-brk-picker { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.dlm-brk-picker::-webkit-scrollbar { display: none; }
.dlm-brk-picker .dlm-filter-chip { flex-shrink: 0; padding-left: 6px; }
.dlm-brk-picker .dlm-seg-num { width: 20px; height: 20px; font-size: 11px; }
.dlm-brk-school-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 16px; align-items: stretch; }
.dlm-brk-phases-card { display: flex; flex-direction: column; }
.dlm-brk-phases-card .dlm-brk-wave-svg { flex: 1; min-height: 190px; }
.dlm-brk-phases-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.dlm-phase-pill { padding: 8px 9px; border-radius: 10px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.16); border-top: 3px solid #64748b; min-width: 0; }
.dlm-phase-pill.is-ok { border-top-color: var(--sim-gain); }
.dlm-phase-pill.is-warn { border-top-color: var(--sim-ref); }
.dlm-phase-pill.is-loss { border-top-color: var(--sim-loss); }
.dlm-phase-pill span { display: block; font-size: 11px; font-weight: 700; color: #8fa0c2; }
.dlm-phase-pill b { display: block; margin: 2px 0 1px; font-size: 13.5px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dlm-phase-pill small { display: block; font-size: 10.5px; line-height: 1.35; color: #94a3b8; }
.dlm-brk-wave-svg { height: 190px; border-radius: 12px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-brk-wave-svg svg { width: 100%; height: 100%; display: block; }
.dlm-bw-band { opacity: 0.16; }
.dlm-bw-band.is-1 { fill: #94a3b8; }
.dlm-bw-band.is-2 { fill: #38bdf8; }
.dlm-bw-band.is-3 { fill: #f87171; }
.dlm-bw-band.is-4 { fill: #60a5fa; }
.dlm-bw-band.is-5 { fill: #a78bfa; }
.dlm-bw-num { font-family: var(--f-ui); font-size: 11px; font-weight: 800; fill: #cbd5e1; text-anchor: middle; }
.dlm-brk-xy-body { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: center; }
.dlm-xy-svg { width: 160px; height: 130px; border-radius: 10px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-xy-ideal { stroke: rgba(148, 163, 184, 0.35); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dlm-xy-axis { stroke: rgba(148, 163, 184, 0.25); stroke-width: 1; }
.dlm-xy-lbl { font-family: var(--f-ui); font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; fill: #64748b; text-anchor: middle; }
.dlm-xy-verdict { margin: 0; font-size: 13px; line-height: 1.45; color: #cbd5e1; }
.dlm-xy-verdict b { color: #fff; }
.dlm-cons-badge { padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; background: rgba(251, 191, 36, 0.14); color: var(--sim-ref); white-space: nowrap; }
.dlm-cons-badge.is-ok { background: rgba(52, 211, 153, 0.14); color: var(--sim-gain); }
.dlm-cons-badge.is-loss { background: rgba(248, 113, 113, 0.14); color: var(--sim-loss); }
.dlm-cons-ruler { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 10px 0 8px; }
.dlm-cons-scale { font-size: 11px; font-weight: 700; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-cons-track { position: relative; height: 28px; border-radius: 8px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-cons-spread { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; background: rgba(251, 191, 36, 0.18); border: 1px dashed rgba(251, 191, 36, 0.5); }
.dlm-cons-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); padding: 2px 5px; border-radius: 4px; background: #334155; font-style: normal; font-size: 10px; font-weight: 800; color: #e2e8f0; white-space: nowrap; }
.dlm-cons-dot.is-me { background: var(--sim-me); color: #04101f; z-index: 2; }
.dlm-cons-dot.is-ref { background: var(--sim-ref); color: #04101f; z-index: 1; }
.dlm-cons-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: #94a3b8; }
.dlm-cons-note b { color: #e2e8f0; }
.dlm-rp-order { margin: 4px 0 0; font-size: 12px; line-height: 1.4; color: #cbd5e1; }
.dlm-rp-order:empty { display: none; }
.dlm-rp-order b { color: #fff; }

@media (max-width: 1023px) {
  .dlm-plan-hero, .dlm-corner-work, .dlm-brk-school-grid { grid-template-columns: 1fr; }
  .dlm-plan-score { justify-content: flex-start; }
  .dlm-plan-card { grid-template-columns: 116px minmax(0, 1fr); }
  .dlm-plan-mini { grid-column: 1 / -1; height: 150px; }
  .dlm-plan-headline { white-space: normal; }
  .dlm-order-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlm-map-stage.is-corner-lab { height: min(70vw, 520px); min-height: 320px; }
  .dlm-zone-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dlm-top:has(+ .dlm-coach-subnav) { position: static; }
  .dlm-coach-subnav { top: var(--dl-hdr, 56px); margin-top: -4px; }
  #dlmSecPlan, #dlmSecCurvas, #dlmSecFrenada, #dlmSecReplay { scroll-margin-top: calc(var(--dl-hdr, 56px) + 56px); }
  .dlm-sec-title { font-size: 19px; }
  .dlm-plan-hero { padding: 14px; gap: 12px; }
  .dlm-plan-title { font-size: 20px; }
  .dlm-plan-time-box b, .dlm-plan-saving b { font-size: 18px; }
  .dlm-plan-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
  .dlm-plan-time-box { padding: 8px 10px; }
  .dlm-plan-arrow { text-align: center; }
  .dlm-plan-saving { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 8px 12px; }
  .dlm-plan-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .dlm-plan-rank { flex-direction: row; align-items: baseline; gap: 8px; padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
  .dlm-plan-rank small { margin: 0 0 0 auto; }
  .dlm-plan-gain { margin: 0; font-size: 22px; }
  .dlm-plan-share { display: none; }
  .dlm-plan-h h3 { font-size: 16px; }
  .dlm-plan-headline { font-size: 13.5px; }
  .dlm-order-steps { gap: 6px; }
  .dlm-step-v { font-size: 15.5px; }
  .dlm-step-d { white-space: normal; }
  .dlm-plan-mini { height: 140px; }
  .dlm-map-stage.is-corner-lab { height: 420px; min-height: 0; }
  .dlm-zone { padding: 10px; }
  .dlm-rule-tag { font-size: 11px; padding: 2px 6px; }
  .dlm-rule-diff { font-size: 13px; }
  .dlm-rule-axis span { font-size: 10px; }
  .dlm-lab-legend { font-size: 10.5px; gap: 3px 10px; }
  .dlm-lab-anim { top: auto; bottom: 8px; left: 8px; transform: none; height: 30px; font-size: 12px; }
  .dlm-map-stage.is-corner-lab .dlm-map-tools { top: 10px; bottom: auto; }
  .dlm-lab-legend .dlm-corner-rp-btn { font-size: 11.5px; height: 28px; padding: 0 9px; margin-left: 0; }
  .dlm-lab-strip { grid-template-columns: 44px minmax(0, 1fr); }
  .dlm-lab-strip-lbl { font-size: 8.5px; }
  .dlm-read-row { grid-template-columns: minmax(0, 1.1fr) repeat(5, minmax(0, 1fr)); padding: 6px 8px; font-size: 12.5px; gap: 4px; }
  .dlm-read-row.is-head em { display: block; }
  .dlm-read-row.is-head { font-size: 8.5px; letter-spacing: 0.06em; }
  .dlm-read-who { font-size: 11px; }
  .dlm-cm-head, .dlm-cm-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 0.8fr); gap: 6px; padding: 8px 8px; font-size: 11.5px; }
  .dlm-cm-row em { font-size: 11px; }
  .dlm-cc-row { grid-template-columns: 64px minmax(0, 1fr); }
  .dlm-cc-x { padding-left: 72px; }
  .dlm-brk-phases-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlm-brk-phases-strip > .dlm-phase-pill:last-child { grid-column: 1 / -1; }
  .dlm-brk-wave-svg { height: 150px; }
  .dlm-brk-xy-body { grid-template-columns: 1fr; justify-items: center; }
  .dlm-xy-verdict { justify-self: stretch; }
}

/* Carrera sin spoilers (pedido del dueño 01/11): al entrar con la carrera ya
   largada se elige "Desde la largada" o "EN VIVO" antes de ver la tabla; en
   diferido, barra con largada, ±30 s, pausa y EN VIVO. */
.pc-pw-shell { position: relative; }
.pc-pw-shell.is-gated .pc-pw-workspace, .pc-pw-shell.is-gated #ltRaceControlFeed, .pc-pw-shell.is-gated #ltLapCounter, .pc-pw-shell.is-gated #ltTrackStatus { filter: blur(18px); pointer-events: none; user-select: none; }
.pc-pw-gate { position: absolute; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 140px 16px 24px; background: rgba(5,7,12,.55); }
.pc-pw-gate-card { width: 100%; max-width: 460px; padding: 22px; background: #0b1020; border: 1px solid #2f3852; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.6); text-align: center; position: sticky; top: 90px; }
.pc-pw-gate-kick { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.62rem; letter-spacing: 0.1em; color: #f87171; }
.pc-pw-gate-t { margin: 8px 0 4px; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 1.15rem; color: #fff; }
.pc-pw-gate-s { margin: 0 0 16px; font-size: 0.85rem; color: #94a3b8; }
.pc-pw-gate-btns { display: grid; gap: 10px; }
.pc-pw-gate-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px; border-radius: 12px; border: 1px solid #2f3852; background: #121828; color: #e2e8f0; cursor: pointer; }
.pc-pw-gate-btn b { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; }
.pc-pw-gate-btn span { font-size: 0.75rem; color: #94a3b8; }
.pc-pw-gate-btn.is-main { background: #e10600; border-color: #e10600; color: #fff; }
.pc-pw-gate-btn.is-main span { color: rgba(255,255,255,.85); }
.pc-pw-gate-btn:hover { filter: brightness(1.1); }
.pc-pw-gate-btn:disabled { opacity: .6; cursor: wait; }
.pc-pw-gate-msg { margin: 12px 0 0; font-size: 0.8rem; color: #7dd3fc; }
.pc-pw-gate-msg:empty { display: none; }
.pc-pw-dvr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; padding: 8px 10px; background: #0b1020; border: 1px solid #38bdf8; border-radius: 10px; }
.pc-pw-dvr-tag { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.6rem; letter-spacing: 0.08em; color: #38bdf8; }
.pc-pw-dvr-time { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; color: #fff; flex: 1 1 auto; min-width: 0; }
.pc-pw-dvr-ctrl { display: flex; align-items: center; gap: 6px; }
.pc-pw-dvr-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid #2f3852; background: #121828; color: #e2e8f0; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.9rem; }
.pc-pw-dvr-btn:hover { border-color: #38bdf8; color: #fff; }
.pc-pw-dvr-btn.is-play { background: #38bdf8; border-color: #38bdf8; color: #04121f; }
.pc-pw-dvr-live { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #e10600; background: transparent; color: #fff; cursor: pointer; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.62rem; letter-spacing: 0.06em; }
.pc-pw-dvr-live:hover { background: #e10600; }
.pc-pw-dvr-dot { width: 8px; height: 8px; border-radius: 50%; background: #e10600; }
.pc-pw-dvr-live:hover .pc-pw-dvr-dot { background: #fff; }
@media (max-width: 700px) {
  .pc-pw-gate { padding-top: 110px; }
  .pc-pw-dvr-ctrl { width: 100%; }
  .pc-pw-dvr-btn { flex: 1 1 0; }
  .pc-pw-dvr-live { flex: 1.4 1 0; justify-content: center; }
}
/* Ajustes del director de arte (01/11): el cartel no deja adivinar los colores
   de las escuderías, foco solo con teclado, panel del diferido separado de la
   tabla y barra del diferido más compacta en el celular. */
.pc-pw-gate { background: rgba(5,7,12,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pc-pw-gate-lights { display: block; margin: 0 auto 12px; max-width: 100%; }
/* Cartel de la largada (3 botones + semáforos, 482 px): en el celular vertical
   arranca más arriba, si no el tercer botón quedaba afuera (medido 360x640 y
   375x667). El cartel de entrada (2 botones) no cambia. */
@media (max-width: 700px) {
  .pc-pw-gate.is-start { padding-top: 24px; }
  .pc-pw-gate.is-start .pc-pw-gate-card { top: 16px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
}
/* Director de arte (02/11): en celular apaisado el cartel de la largada va sin el
   dibujo de los semáforos y más compacto, así los 3 botones entran enteros
   (nadie se pone a desplazar una tarjeta en el momento de la largada).
   Igual en celulares bajos (iPhone SE con las barras de Safari: 548 px visibles,
   el tercer botón terminaba en 585). */
@media (max-height: 500px) and (orientation: landscape), (max-width: 700px) and (max-height: 700px) {
  .pc-pw-gate.is-start .pc-pw-gate-lights { display: none; }
  .pc-pw-gate.is-start .pc-pw-gate-card { padding: 14px 18px; }
  .pc-pw-gate.is-start .pc-pw-gate-s { margin-bottom: 10px; }
  .pc-pw-gate.is-start .pc-pw-gate-btns { gap: 6px; }
  .pc-pw-gate.is-start .pc-pw-gate-btn { padding: 8px 12px; }
}
.pc-pw-gate-btn:focus { outline: none; }
.pc-pw-gate-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Celular apaisado (02/11): el cartel se pasaba del borde de abajo (medido en
   812x375, 844x390 y 667x375: la tarjeta llegaba a 444-513 px en una pantalla
   de 375-390). Ahí el velo tapa la ventana entera y la tarjeta entra completa
   o se desplaza por adentro. Los demás anchos no cambian. */
@media (max-height: 500px) and (orientation: landscape) {
  .pc-pw-gate { position: fixed; padding: 8px 16px; }
  .pc-pw-gate-card { position: static; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; }
}
.pc-pw-tvsync-pop { background: #070a14; border-color: #38bdf8; box-shadow: 0 20px 48px rgba(0,0,0,.85), 0 0 0 1px rgba(56,189,248,.22); }
.pc-pw-tvsync-pop-t, .pc-pw-tvsync-go { text-transform: uppercase; }
.pc-pw-dvr { margin-bottom: 0; }
@media (max-width: 700px) { .pc-pw-dvr-tag { display: none; } }
/* Botón fijo "Desde la largada" y aviso "Nuevo" del diferido (01/11). */
.pc-pw-fromstart { display: inline-flex; align-items: center; gap: 6px; height: var(--con-h); padding: 0 12px; margin-left: auto; background: #07090f; border: 1px solid #e10600; border-radius: var(--con-r); color: #fff; cursor: pointer; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.6rem; letter-spacing: 0.06em; white-space: nowrap; }
.pc-pw-fromstart[hidden] { display: none; }
.pc-pw-fromstart:hover { background: #e10600; }
.pc-pw-fromstart:not([hidden]) + .pc-pw-tvsync { margin-left: 8px; }
.pc-pw-hint { position: absolute; right: 0; top: calc(100% + 8px); z-index: 55; width: 250px; max-width: calc(100vw - 24px); padding: 10px 12px; background: #38bdf8; color: #04121f; border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 3px; cursor: pointer; animation: ltHintIn .3s ease-out; transition: opacity .3s ease, transform .3s ease; }
.pc-pw-hint::before { content: ''; position: absolute; top: -6px; right: 22px; width: 12px; height: 12px; background: #38bdf8; transform: rotate(45deg); }
.pc-pw-hint b { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 0.6rem; letter-spacing: 0.1em; }
.pc-pw-hint span { font-size: 0.8rem; line-height: 1.3; font-weight: 600; }
.pc-pw-hint.is-out { opacity: 0; transform: translateY(-4px); }
@keyframes ltHintIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc-pw-hint { animation: none; transition: none; } }
@media (max-width: 700px) { .pc-pw-fromstart { order: 4; flex: 1 1 auto; justify-content: center; margin-left: 0; } }
/* El aviso NUEVO cuelga del borde derecho del DIFERIDO en todas las pantallas:
   alineado a la izquierda se salía 102 px de un celular de 390 (medido 1/11). */
/* Panel del diferido en el celular: se abre hacia la derecha desde el borde
   izquierdo del control (antes se cortaba del lado izquierdo de la pantalla). */
@media (max-width: 700px) { .pc-pw-tvsync-pop { right: auto; left: 0; } }
/* Diferido sin celeste (pedido del dueño 01/11): colores del Live Timing,
   oscuro con el rojo F1 para lo activo y la acción principal. Y que se
   note que el control se abre: se ve la palabra DIFERIDO también en el
   celular, con una flechita, y se abre tocando cualquier parte del control. */
.pc-pw-tvsync .pc-pw-ico, .pc-pw-tvsync-lbl, .pc-pw-tvsync-pop-t, .pc-pw-dvr-tag { color: #e2e8f0; }
.pc-pw-tvsync-btn:hover, button.pc-pw-tvsync-val:hover, button.pc-pw-tvsync-val[aria-expanded="true"], .pc-pw-tvsync-live:hover, .pc-pw-dvr-btn:hover { border-color: #e10600; }
.pc-pw-tvsync.is-on { border-color: #e10600; box-shadow: 0 0 0 1px rgba(225,6,0,.25); }
.pc-pw-tvsync { cursor: pointer; }
.pc-pw-tvsync-pop { background: #0b0f1a; border-color: #2f3852; box-shadow: 0 20px 48px rgba(0,0,0,.85); cursor: default; }
.pc-pw-tvsync-pop-msg, .pc-pw-gate-msg { color: #e2e8f0; }
.pc-pw-tvsync-go { background: #e10600; color: #fff; }
.pc-pw-dvr { border-color: #2f3852; }
.pc-pw-dvr-btn.is-play { background: #e10600; border-color: #e10600; color: #fff; }
.pc-pw-hint { background: #0b0f1a; color: #e2e8f0; border: 1px solid #e10600; }
.pc-pw-hint::before { background: #0b0f1a; border-left: 1px solid #e10600; border-top: 1px solid #e10600; }
.pc-pw-hint b { color: #ff4d4d; }
button.pc-pw-tvsync-val::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
@media (max-width: 700px) { .pc-pw-tvsync-lbl { display: inline; } }
.pc-pw-dvr[hidden] { display: none; }
/* Aviso de versión nueva (01/11): abajo, arriba de la barra del celular. */
.dl-update { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: rgba(5,7,12,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: 'Geist', system-ui, sans-serif; }
.dl-update-card { width: 100%; max-width: 420px; padding: 28px 24px 24px; background: #0b0f1a; border: 1px solid #2f3852; border-top: 3px solid #e10600; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.6); text-align: center; }
.dl-update-card h2 { margin: 0 0 8px; font: 700 20px/1.25 'Geist', system-ui, sans-serif; color: #fff; }
.dl-update-card p { margin: 0 0 22px; font-size: 15px; color: #94a3b8; }
.dl-update-card button { width: 100%; height: 50px; border: 0; border-radius: 10px; background: #e10600; color: #fff; font: 700 16px 'Geist', system-ui, sans-serif; letter-spacing: 0.02em; cursor: pointer; }
.dl-update-card button:hover { filter: brightness(1.1); }
.dl-update-card button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* El recuadro del DIFERIDO no se achica cuando la fila queda justa (el "+"
   se salía por el borde rojo): si no entra, baja de renglón entero. */
.pc-pw-tvsync { flex-shrink: 0; min-width: max-content; padding-right: 8px; }
/* Con el celular girado la barra es más baja: el número no puede ser más alto
   que el recuadro (se salía por arriba y por abajo del borde). */
button.pc-pw-tvsync-val { height: min(28px, calc(var(--con-h) - 8px)); }

/* (1/11, prueba) SIM RACING · Clase guiada por radio de ingeniero (diseño de Gemini, gemini-clase-guiada.md). */
@keyframes dlmWaveBar { 0%, 100% { transform: scaleY(0.28); } 50% { transform: scaleY(1); } }
@keyframes dlmStepFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dlm-walk { margin-bottom: 16px; min-width: 0; }
.dlm-zone-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.dlm-walk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.dlm-walk-audio-ctl { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dlm-voice-play { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 10px; border-radius: 999px; border: 1px solid rgba(56, 189, 248, 0.5); background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(2, 132, 199, 0.18)); color: #fff; font-family: var(--f-ui); font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28); transition: transform 0.15s ease, border-color 0.15s ease; white-space: nowrap; }
.dlm-voice-play svg { width: 18px; height: 18px; position: static; }
.dlm-voice-play:hover { transform: translateY(-1px); border-color: #fff; }
.dlm-voice-play.is-playing { background: linear-gradient(180deg, #34d399, #059669); border-color: #6ee7b7; color: #03150e; }
.dlm-voice-mute { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(148, 163, 184, 0.24); background: #0b1020; color: #cbd5e1; cursor: pointer; }
.dlm-voice-mute svg { position: static; width: 16px; height: 16px; }
.dlm-voice-mute.is-muted { color: #f87171; border-color: rgba(248, 113, 113, 0.45); }
.dlm-walk-steps { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1.08fr) minmax(0, 1.2fr) auto; gap: 6px; }
.dlm-walk-step { position: relative; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 9px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.18); background: #0b1020; color: #94a3b8; font-family: var(--f-ui); font-size: 12.5px; cursor: pointer; overflow: hidden; min-width: 0; transition: border-color 0.16s, background 0.16s, color 0.16s; }
.dlm-walk-step:hover { border-color: rgba(56, 189, 248, 0.45); color: #fff; }
.dlm-walk-step.is-on { border-color: var(--sim-me); background: rgba(56, 189, 248, 0.14); color: #fff; }
.dlm-walk-step .dlm-step-num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(148, 163, 184, 0.16); font-size: 11.5px; font-weight: 800; color: #e2e8f0; flex-shrink: 0; }
.dlm-walk-step.is-on .dlm-step-num { background: var(--sim-me); color: #04101f; }
.dlm-walk-step b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-walk-step small { margin-left: auto; padding: 2px 6px; border-radius: 6px; background: rgba(15, 23, 42, 0.85); font-size: 11px; font-weight: 800; color: #cbd5e1; font-variant-numeric: tabular-nums; white-space: nowrap; }
#view-sim .dlm-walk-step.is-loss { color: #94a3b8; } /* la pérdida va solo en la píldora, no en el título */
#view-sim .dlm-walk-step.is-loss:hover, #view-sim .dlm-walk-step.is-loss.is-on { color: #fff; }
.dlm-walk-step.is-loss small { color: var(--sim-loss); background: rgba(248, 113, 113, 0.14); }
.dlm-walk-steps.is-recta { grid-template-columns: auto; }
.dlm-walk-step .dlm-step-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sim-me); transform: scaleX(0); transform-origin: left center; }
.dlm-walk-step.is-on.is-speaking .dlm-step-prog { animation: dlmStepFill var(--step-ms, 6500ms) linear forwards; }
.dlm-walk-grid { display: grid; grid-template-columns: minmax(0, 1.38fr) 360px; gap: 14px; align-items: stretch; }
.dlm-map-stage.is-walk-stage { height: 500px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1.2px), radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.78), #050912 82%); background-size: 22px 22px, auto; }
.dlm-map-stage.is-walk-stage > svg { pointer-events: none; opacity: 0; }
.dlm-walk-badge { position: absolute; left: 12px; top: 12px; z-index: 5; max-width: calc(100% - 140px); padding: 8px 12px; border-radius: 10px; background: rgba(7, 11, 22, 0.88); backdrop-filter: blur(8px); border: 1px solid rgba(148, 163, 184, 0.26); pointer-events: none; }
.dlm-walk-badge b { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: #fff; }
.dlm-walk-pedals { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: flex; gap: 8px; pointer-events: none; }
.dlm-wp-box { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 11px; background: rgba(7, 11, 22, 0.9); border: 1px solid rgba(148, 163, 184, 0.22); border-left: 3px solid var(--sim-me); font-variant-numeric: tabular-nums; }
.dlm-wp-box.is-ref { border-left-color: var(--sim-ref); }
.dlm-wp-who { font-size: 10px; font-weight: 800; color: #94a3b8; letter-spacing: 0.04em; }
.dlm-wp-spd { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; min-width: 36px; text-align: right; }
.dlm-wp-box small { font-size: 10px; color: #64748b; margin-left: -4px; }
.dlm-wp-gear { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: #0f172a; border: 1px solid rgba(148, 163, 184, 0.25); font-size: 13px; font-weight: 800; color: #fff; }
.dlm-wp-bars { display: flex; gap: 4px; height: 28px; }
.dlm-wp-bar { position: relative; width: 8px; height: 28px; border-radius: 3px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.dlm-wp-bar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-radius: 2px; }
.dlm-wp-bar i.is-thr { background: #22c55e; }
.dlm-wp-bar i.is-brk { background: #ef4444; }
.dlm-walk-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(7, 11, 22, 0.99)); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38); min-width: 0; }
.dlm-radio-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-radio-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(56, 189, 248, 0.16); border: 1px solid rgba(56, 189, 248, 0.4); color: #38bdf8; flex-shrink: 0; }
.dlm-radio-avatar svg { position: static; }
.dlm-radio-meta { flex: 1; min-width: 0; }
.dlm-radio-meta b { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.dlm-voice-wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.dlm-voice-wave i { width: 3px; height: 18px; border-radius: 2px; background: #38bdf8; transform: scaleY(0.25); }
.dlm-voice-wave.is-speaking i:nth-child(1) { animation: dlmWaveBar 0.55s ease-in-out infinite 0s; }
.dlm-voice-wave.is-speaking i:nth-child(2) { animation: dlmWaveBar 0.55s ease-in-out infinite 0.14s; }
.dlm-voice-wave.is-speaking i:nth-child(3) { animation: dlmWaveBar 0.55s ease-in-out infinite 0.28s; }
.dlm-voice-wave.is-speaking i:nth-child(4) { animation: dlmWaveBar 0.55s ease-in-out infinite 0.08s; }
.dlm-radio-script { margin: 0; font-size: 15px; line-height: 1.52; color: #e2e8f0; }
.dlm-radio-script b { color: #fff; font-weight: 800; }
.dlm-radio-note { margin: -6px 0 0; font-size: 11.5px; color: #8fa0c2; }
.dlm-radio-note:empty { display: none; }
.dlm-walk-kpis { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.dlm-walk-kpi { padding: 10px 12px; border-radius: 12px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.18); border-left: 3px solid var(--sim-ref); }
.dlm-walk-kpi.is-me { border-left-color: var(--sim-me); }
.dlm-walk-kpi span { display: block; font-size: 11px; font-weight: 700; color: #8fa0c2; }
.dlm-walk-kpi b { display: block; margin: 2px 0; font-size: 17px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.dlm-walk-kpi small { display: block; font-size: 12px; color: #94a3b8; }
.dlm-walk-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlm-walk-nav .dlm-btn-chip { justify-content: center; height: 36px; font-size: 12.5px; }
.dlm-walk-nav .dlm-btn-chip:disabled { opacity: 0.4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .dlm-voice-wave i, .dlm-walk-step .dlm-step-prog { animation: none !important; } }
@media (max-width: 1279px) {
  .dlm-walk-steps { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .dlm-walk-steps::-webkit-scrollbar { display: none; }
  .dlm-walk-step { flex-shrink: 0; }
}
@media (max-width: 1023px) {
  .dlm-walk-grid { grid-template-columns: 1fr; }
  .dlm-map-stage.is-walk-stage { height: 400px; }
}
@media (max-width: 640px) {
  .dlm-walk-bar { gap: 8px; }
  .dlm-map-stage.is-walk-stage { height: min(480px, 58vh); }
  .dlm-map-stage.is-walk-stage .dlm-map-tools { top: 10px; bottom: auto; }
  .dlm-walk-badge { left: 8px; top: 8px; padding: 6px 9px; max-width: calc(100% - 120px); }
  .dlm-walk-badge b { font-size: 12.5px; }
  .dlm-walk-pedals { left: 8px; bottom: 8px; gap: 6px; }
  .dlm-wp-box { padding: 5px 8px; gap: 6px; }
  .dlm-wp-spd { font-size: 16px; min-width: 30px; }
  .dlm-walk-panel { padding: 14px; gap: 10px; }
  .dlm-radio-script { font-size: 14px; }
  .dlm-walk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dlm-walk-kpi b { font-size: 14.5px; }
}
/* Celular apaisado: el mapa de la clase entra entero en la pantalla baja. */
@media (max-width: 1023px) and (max-height: 500px) { .dlm-map-stage.is-walk-stage { height: 280px; } }
/* (1/11, prueba) SIM RACING — Inicio "Cómo funciona" como relato al bajar (diseño de Gemini,
   prefijo dlm-in-): hero con la curva viva, hilo vertical que se pinta con el scroll, 8 pasos que
   alternan texto y visual (marcos de pantalla y de teléfono, el replay real en Canvas, las tarjetas
   reales del motor) y cierre con semáforo de estado. Paleta de Sim, Geist, sin títulos en mayúsculas. */
.dlm-in-wrap { position: relative; width: min(1200px, 100%); margin: 0 auto; color: #e2e8f0; }
.dlm-in-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-style: normal; }
.dlm-in-badge.is-trial { background: rgba(251, 191, 36, 0.14); border: 1px solid rgba(251, 191, 36, 0.38); color: var(--sim-ref); }
.dlm-in-badge.is-soon { background: rgba(148, 163, 184, 0.12); border: 1px solid rgba(148, 163, 184, 0.28); color: #cbd5e1; }
.dlm-in-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; pointer-events: none; }

/* Hero */
.dlm-in-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 36px; min-height: 480px; padding: 40px 44px; border-radius: 22px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, #0b1020 0%, #070b16 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48); overflow: hidden; isolation: isolate; }
.dlm-in-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #070b16 0%, rgba(7, 11, 22, 0.84) 44%, rgba(11, 16, 32, 0.38) 100%), radial-gradient(80% 90% at 75% 50%, rgba(56, 189, 248, 0.1), rgba(7, 11, 22, 0.7) 85%); pointer-events: none; }
.dlm-in-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dlm-in-hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
.dlm-in-hero-copy > :nth-child(2) { transition-delay: 80ms; }
.dlm-in-hero-copy > :nth-child(3) { transition-delay: 160ms; }
.dlm-in-hero-copy > :nth-child(4) { transition-delay: 240ms; }
.dlm-in-hero.is-visible .dlm-in-hero-copy > * { opacity: 1; transform: none; }
.dlm-in-hero-title { margin: 0; font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; color: #fff; max-width: 18ch; }
.dlm-in-hero-lead { margin: 0; font-size: 16px; line-height: 1.5; color: #cbd5e1; max-width: 48ch; }
.dlm-in-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.dlm-in-hero-visual { position: relative; z-index: 2; min-width: 0; }
.dlm-in-hero-visual .dlm-hero-art { padding: 0; border: 0; background: transparent; gap: 8px; }
.dlm-in-hero-visual .dlm-hero-svg { height: 300px; }
.dlm-in-hero-visual .dlm-hero-art-top { flex-wrap: wrap; }
.dlm-in-hero-visual .dlm-hero-vel { height: 64px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, 0.14); box-sizing: content-box; }
.dlm-in-wrap > .dlm-topbar-nav { flex-wrap: nowrap; }
.dlm-in-wrap > .dlm-topbar-nav .dlm-kicker { white-space: nowrap; }
.dlm-in-pill { display: inline-block; min-width: 76px; padding: 3px 9px; border-radius: 8px; white-space: nowrap; background: rgba(7, 11, 22, 0.9); border: 1px solid rgba(148, 163, 184, 0.2); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.dlm-hero-art-top b.dlm-in-pill.is-gain { color: var(--sim-gain); border-color: rgba(52, 211, 153, 0.4); }
.dlm-in-pin { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0.4); }
.dlm-reveal.is-visible .dlm-in-pin { animation: dlmInPin 0.42s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards; }
.dlm-reveal.is-visible .dlm-in-pin.is-me { animation-delay: 1.35s; }
@keyframes dlmInPin { from { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.25); } to { opacity: 1; transform: scale(1); } }

/* Hilo conductor y pasos */
.dlm-in-story { position: relative; margin-top: 48px; }
.dlm-in-spine { position: absolute; top: 24px; bottom: 24px; left: 50%; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(148, 163, 184, 0.16); pointer-events: none; overflow: hidden; }
.dlm-in-spine-fill { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--sim-me) 0%, var(--sim-ref) 100%); transform-origin: top; transform: scaleY(0); will-change: transform; }
.dlm-in-step { position: relative; display: grid; grid-template-columns: 400px 56px minmax(0, 1fr); align-items: center; gap: 24px; padding: 40px 0; }
.dlm-in-step.is-alt { grid-template-columns: minmax(0, 1fr) 56px 400px; }
.dlm-in-step-copy { order: 1; }
.dlm-in-step-node { order: 2; }
.dlm-in-step-stage { order: 3; }
.dlm-in-step.is-alt .dlm-in-step-copy { order: 3; }
.dlm-in-step.is-alt .dlm-in-step-stage { order: 1; }
.dlm-in-step-node { position: relative; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; background: #0b1020; border: 1.5px solid rgba(148, 163, 184, 0.32); font-size: 11px; font-weight: 800; color: #8fa0c2; font-variant-numeric: tabular-nums; transition: border-color 0.28s, color 0.28s, box-shadow 0.28s; }
.dlm-in-step.is-active .dlm-in-step-node { border-color: var(--sim-me); color: #fff; box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.14); }
.dlm-in-step.is-active.is-amber .dlm-in-step-node { border-color: var(--sim-ref); box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.14); }
.dlm-in-step-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 400px; min-width: 0; }
.dlm-in-step-title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.14; letter-spacing: -0.025em; color: #fff; max-width: 22ch; }
.dlm-in-step-lead { margin: 0; font-size: 15.5px; line-height: 1.5; color: #cbd5e1; max-width: 44ch; }
.dlm-in-step-stage { min-width: 0; }
@media (min-width: 1024px) {
  .dlm-in-step { align-items: start; padding: 56px 0; }
  .dlm-in-step-copy { position: sticky; top: 34vh; }
  .dlm-in-step-node { position: sticky; top: 36vh; }
}
.dlm-in-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 0; border: 0; background: transparent; color: var(--sim-me); font-family: var(--f-ui); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.dlm-in-more:hover { color: #fff; }
.dlm-in-step.is-amber .dlm-in-more { color: var(--sim-ref); }

/* Marco de pantalla */
.dlm-in-screen { position: relative; display: flex; flex-direction: column; width: 100%; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background: linear-gradient(180deg, #0b1020 0%, #070b16 100%); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46); overflow: hidden; opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 0.64s cubic-bezier(0.16, 1, 0.3, 1) 0.16s, transform 0.64s cubic-bezier(0.16, 1, 0.3, 1) 0.16s; }
.dlm-reveal.is-visible .dlm-in-screen { opacity: 1; transform: none; }
.dlm-in-screen-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; background: rgba(7, 11, 22, 0.9); border-bottom: 1px solid rgba(148, 163, 184, 0.14); font-size: 11.5px; font-weight: 700; color: #94a3b8; }
.dlm-in-screen-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-in-screen-dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.dlm-in-screen-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(148, 163, 184, 0.28); }
.dlm-in-screen-body { position: relative; flex: 1; padding: 14px; min-width: 0; }
.dlm-in-screen-img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.12); }

/* 01 · Conexión: tres nodos y rieles con un pulso de luz */
.dlm-in-flow { padding: 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, #0b1020 0%, #070b16 100%); }
.dlm-in-flow-nodes { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 6px; }
.dlm-in-node { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 132px; padding: 14px 12px; border-radius: 14px; background: #070b16; border: 1px solid rgba(148, 163, 184, 0.2); opacity: 0; transform: translateY(14px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s; }
.dlm-in-node:nth-child(3) { transition-delay: 120ms; }
.dlm-in-node:nth-child(5) { transition-delay: 240ms; }
.dlm-reveal.is-visible .dlm-in-node { opacity: 1; transform: none; }
.dlm-in-node-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); color: var(--sim-me); }
.dlm-in-node b { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.25; }
.dlm-in-node small { font-size: 12px; line-height: 1.4; color: #94a3b8; }
.dlm-in-rail { display: block; width: 100%; height: 24px; overflow: visible; }
.dlm-in-rail path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dlm-in-rail-bg { stroke: rgba(148, 163, 184, 0.24); }
.dlm-in-rail-pulse { stroke: var(--sim-me); stroke-linecap: round; stroke-dasharray: 22 200; stroke-dashoffset: 222; opacity: 0; }
.dlm-reveal.is-visible .dlm-in-rail-pulse { animation: dlmInPulse 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.dlm-reveal.is-visible .dlm-in-rail:nth-child(4) .dlm-in-rail-pulse { animation-delay: 0.9s; }
@keyframes dlmInPulse { 0% { stroke-dashoffset: 222; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.dlm-in-flow-cfg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.14); font-size: 12.5px; color: #94a3b8; }
.dlm-in-flow-cfg b { margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 700; color: var(--sim-me); }

/* 02 · Mis vueltas: dos tarjetas reales en abanico */
.dlm-in-deck { position: relative; max-width: 420px; margin: 0 auto; padding: 10px 26px 22px 0; }
.dlm-in-deck-back { position: absolute; inset: 10px 0 22px 26px; opacity: 0; transform: translate(-26px, -10px) rotate(0deg); transition: transform 0.68s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 0.68s ease 0.1s; pointer-events: none; }
.dlm-in-deck-back .dlm-ses-card { height: 100%; }
.dlm-reveal.is-visible .dlm-in-deck-back { opacity: 0.85; transform: translate(0, 12px) rotate(2.4deg); }
.dlm-in-deck-front { position: relative; z-index: 2; }
.dlm-in-deck-front .dlm-ses-card { background: radial-gradient(110% 90% at 100% 0%, var(--team-glow, rgba(56, 189, 248, 0.16)), transparent 60%), linear-gradient(180deg, #131c31 0%, #090d1a 100%); }
.dlm-in-deck-back .dlm-ses-card { filter: brightness(0.6); }

/* 03 · Replay en vivo */
.dlm-in-rp { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; align-items: stretch; }
.dlm-in-rp-stage { height: 400px; border-radius: 12px; background-image: radial-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1.2px), radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.78), #060a14 80%); background-size: 22px 22px, auto; border: 1px solid rgba(148, 163, 184, 0.16); }
.dlm-in-rp-live { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(7, 11, 22, 0.86); font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #cbd5e1; }
.dlm-in-rp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--sim-gain); animation: dlmInBlink 1.4s ease-in-out infinite; }
@keyframes dlmInBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.dlm-in-float-stack { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dlm-in-float-card { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(11, 16, 32, 0.94); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateX(18px); transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--dlm-stagger, 0ms); }
.dlm-reveal.is-visible .dlm-in-float-card { opacity: 1; transform: none; }
.dlm-in-float-card .dlm-kicker { display: block; margin-bottom: 4px; font-size: 10.5px; }
.dlm-in-float-card > b { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; color: #fff; }
.dlm-in-hud { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'tag name' 'spd spd' 'unit gear'; align-items: center; column-gap: 8px; border-left: 3px solid var(--c, rgba(148, 163, 184, 0.4)); }
.dlm-in-hud .dlm-rp-tag { grid-area: tag; }
.dlm-in-hud-name { grid-area: name; font-size: 11.5px; font-weight: 700; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-in-hud > b { grid-area: spd; margin-top: 4px; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.dlm-in-hud > small { grid-area: unit; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #8fa0c2; }
.dlm-in-hud > em { grid-area: gear; justify-self: end; min-width: 28px; padding: 2px 7px; border-radius: 6px; background: #fff; color: #05101f; font-style: normal; font-size: 14px; font-weight: 800; text-align: center; }
.dlm-in-hud.is-delta { grid-template-areas: 'tag tag' 'spd spd' 'unit unit'; border-left-color: rgba(148, 163, 184, 0.4); }
.dlm-in-hud.is-delta > span { grid-area: tag; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa0c2; }
.dlm-in-hud.is-delta > b { font-size: 34px; }
.dlm-in-hud.is-delta > small { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* 04 · El plan */
.dlm-in-screen.is-plan .dlm-plan-score.is-in { justify-content: flex-start; margin-bottom: 12px; }
.dlm-in-screen.is-plan .dlm-plan-card { grid-template-columns: 1fr; gap: 12px; }
.dlm-in-screen.is-plan .dlm-plan-rank { flex-direction: row; align-items: baseline; gap: 12px; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-in-screen.is-plan .dlm-plan-share { display: none; }
.dlm-in-screen.is-plan .dlm-plan-gain { margin: 0; font-size: 24px; }
.dlm-in-screen.is-plan .dlm-plan-rank small { margin: 0; }
.dlm-in-screen.is-plan .dlm-plan-mini { height: 132px; cursor: default; }
.dlm-in-screen.is-plan .dlm-plan-headline, .dlm-in-screen.is-plan .dlm-step-v, .dlm-in-screen.is-plan .dlm-step-d { white-space: normal; }
.dlm-in-screen.is-plan .dlm-plan-card.dlm-reveal { opacity: 1; transform: none; }

/* 05 · Clase guiada */
.dlm-in-strip { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dlm-in-strip::-webkit-scrollbar { display: none; }
.dlm-in-strip .dlm-walk-step { flex-shrink: 0; cursor: default; }
.dlm-in-clase { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.dlm-in-clase .dlm-in-screen-img { width: 100%; height: 290px; object-fit: cover; object-position: 0% 55%; }
.dlm-in-radio { gap: 10px; padding: 14px; opacity: 0; transform: translateY(18px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.34s, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.34s; }
.dlm-reveal.is-visible .dlm-in-radio { opacity: 1; transform: none; }
.dlm-in-radio .dlm-radio-script { font-size: 14px; }
.dlm-in-radio .dlm-voice-play { align-self: flex-start; margin-top: auto; }

/* 06 · Escuela de frenada */
.dlm-in-brk { display: flex; flex-direction: column; gap: 12px; }
.dlm-in-brk .dlm-brk-wave-svg { flex: none; height: 190px; }
.dlm-in-brk .dlm-brk-wave-svg svg { height: 190px; }
.dlm-in-brk .dlm-cons-dot { transition: left 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.55s; }
.dlm-in-brk-bottom { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.dlm-in-step:not(.is-visible) .dlm-in-brk .dlm-cons-dot { left: 50% !important; }

/* 07 · Coach por voz en vivo */
.dlm-in-voice { position: relative; display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 22px; padding: 22px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.18); background: #070b16; overflow: hidden; isolation: isolate; }
.dlm-in-voice .dlm-in-bg { opacity: 0.55; }
.dlm-in-voice-shade { position: absolute; inset: 0; background: radial-gradient(70% 80% at 65% 50%, rgba(11, 16, 32, 0.2) 0%, rgba(7, 11, 22, 0.9) 95%), linear-gradient(180deg, #070b16 0%, transparent 22%, transparent 78%, #070b16 100%); pointer-events: none; }
.dlm-in-phone { position: relative; z-index: 2; width: 100%; max-width: 280px; margin: 0 auto; padding: 10px; border-radius: 30px; border: 1.5px solid rgba(148, 163, 184, 0.28); background: #070b16; box-shadow: 0 24px 52px rgba(0, 0, 0, 0.6); opacity: 0; transform: translateY(28px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.dlm-reveal.is-visible .dlm-in-phone { opacity: 1; transform: none; }
.dlm-in-phone::before { content: ''; display: block; width: 56px; height: 4px; margin: 2px auto 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.28); }
.dlm-in-phone-screen { position: relative; height: 500px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.14); background: #070b16; }
.dlm-in-phone-screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(180deg, transparent 0%, #070b16 95%); pointer-events: none; }
.dlm-in-phone-screen img { display: block; width: 100%; height: auto; }
.dlm-in-float-stack.is-voice .dlm-in-float-card { transform: translateX(-16px); }
.dlm-reveal.is-visible .dlm-in-float-stack.is-voice .dlm-in-float-card { transform: none; }
.dlm-in-beeps { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dlm-in-beeps i { width: 10px; height: 10px; border-radius: 50%; background: var(--sim-ref); opacity: 0.55; transform: scale(0.9); }
.dlm-in-beeps i:nth-child(3) { background: var(--sim-me); }
.dlm-reveal.is-visible .dlm-in-beeps i { animation: dlmInBeep 2.4s ease-in-out infinite; }
.dlm-reveal.is-visible .dlm-in-beeps i:nth-child(2) { animation-delay: 0.4s; }
.dlm-reveal.is-visible .dlm-in-beeps i:nth-child(3) { animation-delay: 0.8s; }
@keyframes dlmInBeep { 0%, 50%, 100% { opacity: 0.55; transform: scale(0.9); } 8% { opacity: 1; transform: scale(1.15); } }

/* 08 · Lo que viene */
.dlm-in-soon { position: relative; padding: 20px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.18); background: #070b16; overflow: hidden; isolation: isolate; }
.dlm-in-soon .dlm-in-bg { opacity: 0.32; }
.dlm-in-soon-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 11, 22, 0.55) 0%, rgba(7, 11, 22, 0.9) 100%); pointer-events: none; }
.dlm-in-soon-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dlm-in-soon-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(251, 191, 36, 0.35); background: rgba(11, 16, 32, 0.9); opacity: 0; transform: translateY(16px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
.dlm-in-soon-card:nth-child(2) { transition-delay: 120ms; }
.dlm-reveal.is-visible .dlm-in-soon-card { opacity: 1; transform: none; }
.dlm-in-soon-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); color: var(--sim-ref); }
.dlm-in-soon-card h3 { margin: 2px 0 0; font-size: 17px; font-weight: 800; color: #fff; }
.dlm-in-soon-card p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #94a3b8; }
.dlm-in-soon-card .dlm-coach-mods { margin-top: 6px; }

/* Cierre */
.dlm-in-outro { position: relative; margin-top: 24px; padding: 36px; border-radius: 20px; border: 1px solid rgba(56, 189, 248, 0.28); background: radial-gradient(90% 100% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 70%), linear-gradient(180deg, #0b1020 0%, #070b16 100%); text-align: center; overflow: hidden; }
.dlm-in-outro-title { margin: 8px auto 8px; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: #fff; max-width: 24ch; }
.dlm-in-outro-sub { margin: 0 auto 20px; font-size: 15px; line-height: 1.5; color: #cbd5e1; max-width: 56ch; }
.dlm-in-outro-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dlm-in-status-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, 0.14); text-align: left; font-size: 12.5px; line-height: 1.45; color: #94a3b8; }
.dlm-in-status-strip b { color: #e2e8f0; }
.dlm-in-status-item { display: flex; align-items: flex-start; gap: 8px; }
.dlm-in-status-dot { width: 8px; height: 8px; margin-top: 5px; flex-shrink: 0; border-radius: 50%; }
.dlm-in-status-dot.is-live { background: var(--sim-gain); }
.dlm-in-status-dot.is-trial { background: var(--sim-ref); }
.dlm-in-status-dot.is-soon { background: #8fa0c2; }

@media (max-width: 1023px) {
  .dlm-in-hero { grid-template-columns: 1fr; min-height: 0; padding: 22px 18px; gap: 20px; border-radius: 18px; }
  .dlm-in-hero-title { font-size: 30px; max-width: 100%; }
  .dlm-in-hero-lead { font-size: 14.5px; }
  .dlm-in-hero-visual .dlm-hero-svg { height: 240px; }
  .dlm-in-story { margin-top: 28px; }
  .dlm-in-spine { left: 14px; margin-left: 0; }
  .dlm-in-step, .dlm-in-step.is-alt { grid-template-columns: 1fr; gap: 14px; padding: 22px 0 22px 38px; }
  .dlm-in-step.is-alt .dlm-in-step-copy { order: 1; }
  .dlm-in-step.is-alt .dlm-in-step-stage { order: 3; }
  .dlm-in-step-node { position: absolute; left: 0; top: 24px; margin: 0; }
  .dlm-in-step-copy { max-width: 100%; }
  .dlm-in-step-title { font-size: 23px; max-width: 100%; }
  .dlm-in-step-lead { font-size: 14px; }
  .dlm-in-rp { grid-template-columns: 1fr; }
  .dlm-in-rp-stage { height: 300px; }
  .dlm-in-float-stack.is-hud { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dlm-in-hud > b, .dlm-in-hud.is-delta > b { font-size: 24px; }
  .dlm-in-clase { grid-template-columns: 1fr; }
  .dlm-in-clase .dlm-in-screen-img { height: auto; }
  .dlm-in-voice { grid-template-columns: 1fr; padding: 16px; }
  .dlm-in-phone-screen { height: 420px; }
  .dlm-in-soon-grid { grid-template-columns: 1fr; }
  .dlm-in-outro { padding: 24px 16px; }
  .dlm-in-outro-title { font-size: 24px; }
  .dlm-in-status-strip { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .dlm-in-hero { padding: 18px 14px; }
  .dlm-in-hero-title { font-size: 28px; }
  .dlm-in-hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .dlm-in-hero-ctas > * { width: 100%; justify-content: center; }
  .dlm-in-hero-visual .dlm-hero-svg { height: 220px; }
  .dlm-in-hero-visual .dlm-hero-art-foot { flex-wrap: wrap; gap: 6px 12px; }
  .dlm-in-hero-visual .dlm-hero-art-foot > span:last-child { display: none; }
  .dlm-in-step, .dlm-in-step.is-alt { padding-left: 30px; }
  .dlm-in-spine { left: 10px; }
  .dlm-in-step-node { width: 24px; height: 24px; font-size: 10px; left: -1px; }
  .dlm-in-screen-body { padding: 10px; }
  .dlm-in-flow { padding: 12px; }
  .dlm-in-flow-nodes { grid-template-columns: 1fr; gap: 4px; }
  .dlm-in-node { min-height: 0; padding: 12px; }
  .dlm-in-rail { width: 24px; height: 28px; margin: 0 auto; transform: rotate(90deg); }
  .dlm-in-rp-stage { height: 260px; }
  .dlm-in-float-stack.is-hud { grid-template-columns: 1fr 1fr; }
  .dlm-in-float-stack.is-hud .is-delta { grid-column: 1 / -1; }
  .dlm-in-float-card { padding: 10px 12px; }
  .dlm-in-clase .dlm-in-screen-img { height: 205px; object-position: 0% 60%; }
  .dlm-in-brk-bottom { grid-template-columns: 1fr; }
  .dlm-in-wrap > .dlm-topbar-nav .dlm-link-btn { height: 30px; padding: 0 10px; font-size: 12px; }
  .dlm-in-deck { padding-right: 14px; }
  .dlm-in-deck-back { inset: 10px 0 22px 14px; }
  .dlm-in-deck .dlm-ses-stats small, .dlm-in-hud-name { white-space: normal; }
  .dlm-in-brk .dlm-brk-wave-svg, .dlm-in-brk .dlm-brk-wave-svg svg { height: 150px; }
  .dlm-in-screen.is-plan .dlm-plan-card { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .dlm-in-screen.is-plan .dlm-plan-rank { flex-direction: row; align-items: center; gap: 10px; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
  .dlm-in-screen.is-plan .dlm-plan-share { display: none; }
  .dlm-in-screen.is-plan .dlm-plan-gain { margin: 0; font-size: 22px; }
  .dlm-in-screen.is-plan .dlm-plan-mini { height: 140px; }
  .dlm-in-phone { max-width: 272px; }
  .dlm-in-phone-screen { height: 400px; }
  .dlm-in-outro-ctas { flex-direction: column; }
  .dlm-in-outro-ctas > * { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dlm-in-hero-copy > *, .dlm-in-screen, .dlm-in-node, .dlm-in-float-card, .dlm-in-deck-back, .dlm-in-radio, .dlm-in-brk .dlm-phase-pill, .dlm-in-phone, .dlm-in-soon-card, .dlm-in-screen.is-plan .dlm-order-step, .dlm-in-screen.is-plan .dlm-plan-saving { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dlm-reveal.is-visible .dlm-in-deck-back { opacity: 0.62 !important; transform: translate(0, 12px) rotate(2.2deg) !important; }
  .dlm-in-pin { opacity: 1 !important; transform: none !important; animation: none !important; }
  .dlm-in-rail-pulse, .dlm-in-beeps i, .dlm-in-rp-live i, .dlm-in-radio .dlm-voice-wave i { animation: none !important; }
  .dlm-in-rail-pulse { stroke-dashoffset: 0; opacity: 1; }
  .dlm-in-step:not(.is-visible) .dlm-in-brk .dlm-cons-dot { left: auto !important; }
  .dlm-in-brk .dlm-cons-dot { transition: none; }
}

/* (1/11, prueba) SIM RACING — Cursos de técnica (prefijo dlm-cu-) y efectos de primer nivel
   (diseño de Gemini, gemini-cursos.md): transición entre niveles, títulos que se revelan por
   renglón, parallax sutil de las fotos de ambiente en compu, microinteracciones de botones y
   tarjetas, catálogo de 8 lecciones y página de lección con el visual sticky (compu) o consola
   con pestañas (celular). Paleta de Sim, Geist, sin títulos en mayúsculas. */
#dlmRoot { transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
#dlmRoot.is-leaving { opacity: 0; transform: translateY(-6px); transition-duration: 0.13s; transition-timing-function: ease-in; }
#dlmRoot.is-entering { opacity: 0; transform: translateY(10px); transition: none; }
@keyframes dlmVtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes dlmVtIn { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(root) { animation: dlmVtOut 0.13s ease-in both; }
::view-transition-new(root) { animation: dlmVtIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
.dlm-line-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-top: 0.14em; margin-top: -0.14em; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.dlm-line-in { display: inline-block; transform: translateY(108%); transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--dlm-delay, 0ms) + 60ms); }
.dlm-reveal.is-visible .dlm-line-in, .is-visible .dlm-line-in { transform: none; }
.dlm-in-hero-copy > .dlm-in-hero-title { transform: none; }
.dlm-in-bg { will-change: transform; }
@media (min-width: 1024px) { .dlm-in-hero .dlm-in-bg, .dlm-in-voice .dlm-in-bg, .dlm-in-soon .dlm-in-bg { transform: scale(1.06); } }
.dlm-btn-primary, .dlm-btn-secondary, .dlm-link-btn, .dlm-btn-chip, .dlm-filter-chip, .dlm-in-more, .dlm-cu-done-btn, .dlm-cu-tab { transition: transform 0.08s ease, filter 0.15s, border-color 0.15s, background 0.15s, color 0.15s; }
.dlm-btn-primary:active, .dlm-btn-secondary:active, .dlm-link-btn:active, .dlm-btn-chip:active, .dlm-filter-chip:active, .dlm-cu-done-btn:active, .dlm-cu-tab:active, .dlm-ses-card:active, .dlm-cu-card:active { transform: scale(0.985); }
.dlm-btn-secondary:hover, .dlm-link-btn:hover { border-color: rgba(56, 189, 248, 0.45); }
/* Inicio: la tira de cursos en el paso 06 */
/* Catálogo */
.dlm-cu-home { display: flex; flex-direction: column; gap: 16px; }
.dlm-cu-home-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.2); background: radial-gradient(90% 120% at 0% 0%, rgba(56, 189, 248, 0.11), transparent 65%), linear-gradient(180deg, #0b1020 0%, #070b16 100%); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38); }
.dlm-cu-home-head .dlm-sub { max-width: 60ch; margin-top: 6px; }
.dlm-cu-home-title { margin: 6px 0 0; font-size: 28px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: #fff; }
.dlm-cu-progress { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dlm-cu-prog-lbl { font-size: 11.5px; font-weight: 700; color: #8fa0c2; font-variant-numeric: tabular-nums; }
.dlm-cu-prog-rail { display: flex; align-items: center; gap: 4px; }
.dlm-cu-prog-seg { width: 22px; height: 5px; border-radius: 999px; background: rgba(148, 163, 184, 0.2); }
.dlm-cu-prog-seg.is-done { background: var(--sim-gain); }
.dlm-cu-prog-seg.is-current { background: var(--sim-me); }
.dlm-cu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dlm-cu-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(180deg, rgba(22, 32, 54, 0.68), rgba(9, 13, 26, 0.96)); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34); color: #e2e8f0; text-align: left; font-family: var(--f-ui); cursor: pointer; overflow: hidden; isolation: isolate; }
.dlm-cu-card.dlm-reveal { transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s ease, box-shadow 0.18s ease; }
.dlm-cu-card.dlm-reveal.is-visible { transition-delay: 0ms; transition-duration: 0.18s; }
@media (hover: hover) and (pointer: fine) {
  .dlm-cu-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.09), transparent 70%); opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
  .dlm-cu-card:hover { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.52); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46); }
  .dlm-cu-card:hover::before { opacity: 1; }
  .dlm-cu-card:hover .dlm-trace-me, .dlm-cu-card:hover .dlm-l-me { filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.7)); }
}
.dlm-cu-card:focus-visible { outline: 2px solid var(--sim-me); outline-offset: 2px; }
.dlm-cu-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dlm-cu-num-grp { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dlm-cu-num { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); font-size: 12px; font-weight: 800; color: var(--sim-me); font-variant-numeric: tabular-nums; }
.dlm-cu-card.is-done .dlm-cu-num { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.4); color: var(--sim-gain); }
.dlm-cu-meta-right { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: #8fa0c2; font-variant-numeric: tabular-nums; }
.dlm-cu-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.12); font-size: 11px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.dlm-cu-status.is-done { background: rgba(52, 211, 153, 0.14); border: 1px solid rgba(52, 211, 153, 0.35); color: var(--sim-gain); }
.dlm-cu-art { position: relative; height: 118px; padding: 8px 10px; border-radius: 12px; background: radial-gradient(circle at 50% 45%, rgba(30, 41, 59, 0.55), #070b16 82%); border: 1px solid rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-cu-art svg, .dlm-cu-art .dlm-cu-map { display: block; width: 100%; height: 100%; }
.dlm-cu-art .dlm-cu-chart-box { height: 100%; }
.dlm-cu-art .dlm-cu-chart-box svg { height: 100%; }
.dlm-cu-art.is-xy { display: grid; place-items: center; }
.dlm-cu-art.is-xy .dlm-xy-svg { width: auto; height: 100%; border: 0; background: transparent; }
.dlm-cu-art.is-cons { display: grid; align-items: center; padding: 8px 16px; }
.dlm-cu-art.is-wave .dlm-brk-wave-svg { height: 100%; border: 0; background: transparent; }
.dlm-cu-art.is-wave .dlm-bw-num { display: none; }
.dlm-cu-art.is-empty { background: rgba(7, 11, 22, 0.6); }
.dlm-cu-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dlm-cu-card-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; color: #fff; }
.dlm-cu-card-sub { margin: 0; font-size: 13.5px; line-height: 1.45; color: #94a3b8; }
.dlm-cu-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, 0.12); font-size: 12.5px; font-weight: 600; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dlm-cu-personal { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-cu-personal i { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: rgba(148, 163, 184, 0.5); }
.dlm-cu-personal i.is-loss { background: var(--sim-loss); }
.dlm-cu-personal i.is-warn { background: var(--sim-ref); }
.dlm-cu-personal i.is-gain { background: var(--sim-gain); }
.dlm-cu-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--sim-me); }
/* Lección: cabecera */
.dlm-cu-lesson { display: flex; flex-direction: column; gap: 20px; }
.dlm-cu-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.2); background: radial-gradient(90% 120% at 0% 0%, rgba(56, 189, 248, 0.11), transparent 65%), linear-gradient(180deg, #0b1020 0%, #070b16 100%); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38); }
.dlm-cu-head-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dlm-cu-head-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dlm-cu-dur { font-size: 12px; font-weight: 600; color: #8fa0c2; }
.dlm-cu-title { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; color: #fff; }
.dlm-cu-sub { margin: 0; font-size: 15.5px; line-height: 1.5; color: #cbd5e1; max-width: 62ch; }
.dlm-cu-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dlm-cu-prog-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.dlm-cu-header .dlm-cu-head-main > * { opacity: 0; transform: translateY(12px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1); }
.dlm-cu-header .dlm-cu-head-main > :nth-child(2) { transition-delay: 70ms; }
.dlm-cu-header .dlm-cu-head-main > :nth-child(3) { transition-delay: 140ms; }
.dlm-cu-header .dlm-cu-head-side { opacity: 0; transform: translateY(12px); transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1) 210ms, transform 0.52s cubic-bezier(0.22, 1, 0.36, 1) 210ms; }
.dlm-cu-header.is-visible .dlm-cu-head-main > *, .dlm-cu-header.is-visible .dlm-cu-head-side { opacity: 1; transform: none; }
.dlm-cu-header .dlm-cu-title { transform: none; }
/* Lección: visual sticky y pasos */
.dlm-cu-stage-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 420px); gap: 24px; align-items: start; }
.dlm-cu-sticky { position: sticky; top: 76px; min-width: 0; }
.dlm-cu-canvas-box { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background: linear-gradient(180deg, #0b1020 0%, #070b16 100%); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46); }
.dlm-cu-stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.dlm-cu-stage-t { min-width: 0; font-size: 12.5px; font-weight: 700; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-cu-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.dlm-cu-tabs::-webkit-scrollbar { display: none; }
.dlm-cu-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 5px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.22); background: #0b1020; color: #94a3b8; font-family: var(--f-ui); font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.dlm-cu-tab b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(148, 163, 184, 0.14); font-size: 11px; color: #cbd5e1; }
.dlm-cu-tab.is-on { border-color: rgba(56, 189, 248, 0.55); color: #fff; }
.dlm-cu-tab.is-on b { background: var(--sim-me); color: #04101f; }
.dlm-map-stage.is-walk-stage.is-cu { height: 400px; }
.dlm-cu-chart { min-height: 120px; }
.dlm-cu-chart-box { display: flex; flex-direction: column; gap: 6px; }
.dlm-cu-chart-box svg { display: block; width: 100%; height: 118px; border-radius: 10px; background: rgba(7, 11, 22, 0.65); border: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-cu-chart-box.is-mini svg { height: 100%; border: 0; background: transparent; }
.dlm-cu-chart-box.is-wave .dlm-brk-wave-svg { height: 130px; }
.dlm-cu-chart-box.is-xy { flex-direction: row; align-items: center; gap: 14px; }
.dlm-cu-chart-box.is-xy .dlm-xy-svg { width: 150px; height: 122px; flex-shrink: 0; }
.dlm-cu-chart-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: #8fa0c2; }
.dlm-cu-chart-box.is-cons { padding: 10px 6px; }
.dlm-cu-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.dlm-cu-chart-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; color: #64748b; }
.dlm-cu-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; font-weight: 600; color: #94a3b8; }
.dlm-cu-legend i { display: inline-block; width: 14px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--sim-me); }
.dlm-cu-legend i.is-ref, .dlm-cu-legend i.is-st-ref { border-top: 2px dashed var(--sim-ref); }
.dlm-cu-legend i.is-thr { border-top-color: #22c55e; }
.dlm-cu-legend i.is-st, .dlm-cu-legend i.is-st-me { border-top-width: 1px; opacity: 0.7; }
.dlm-cu-legend i.is-ghost { border-top-color: rgba(56, 189, 248, 0.35); }
.dlm-cu-steer { fill: none; stroke-width: 1.3; vector-effect: non-scaling-stroke; opacity: 0.7; }
.dlm-cu-steer.is-me { stroke: var(--sim-me); }
.dlm-cu-steer.is-ref { stroke: var(--sim-ref); stroke-dasharray: 3 3; }
.dlm-cu-ghost { fill: none; stroke: rgba(56, 189, 248, 0.3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dlm-cu-hl { fill: rgba(251, 191, 36, 0.1); }
.dlm-cu-cursor { stroke: rgba(226, 232, 240, 0.6); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dlm-cu-stage-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 11.5px; color: #64748b; }
.dlm-cu-steps { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dlm-cu-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 18px 20px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.16); border-left: 3px solid rgba(148, 163, 184, 0.2); background: rgba(11, 16, 32, 0.5); opacity: 0.55; transition: opacity 0.32s ease, border-color 0.32s ease, background 0.32s ease; }
.dlm-cu-step.is-on { opacity: 1; border-left-color: var(--sim-me); background: #0b1020; }
.dlm-cu-step-num { display: inline-grid; place-items: center; width: fit-content; padding: 2px 8px; border-radius: 7px; background: rgba(56, 189, 248, 0.12); font-size: 12px; font-weight: 800; color: var(--sim-me); font-variant-numeric: tabular-nums; }
.dlm-cu-step h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.015em; color: #fff; }
.dlm-cu-step p { margin: 0; font-size: 15px; line-height: 1.55; color: #cbd5e1; }
.dlm-cu-step p b { color: #fff; font-weight: 700; }
.dlm-cu-step small { font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #8fa0c2; font-style: italic; }
.dlm-cu-stepnav { display: none; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlm-cu-stepnav .dlm-btn-chip { justify-content: center; height: 36px; font-size: 12.5px; }
.dlm-cu-stepnav .dlm-btn-chip:disabled { opacity: 0.4; cursor: default; }
@media (min-width: 1024px) {
  .dlm-cu-step { min-height: 34vh; justify-content: center; margin-bottom: 18vh; cursor: pointer; }
  .dlm-cu-step:last-child { margin-bottom: 30vh; }
}
.dlm-cons-track.is-cu { height: 40px; }
/* Cómo te va a vos */
.dlm-cu-you { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.22); border-left: 4px solid rgba(148, 163, 184, 0.4); background: #0b1020; }
.dlm-cu-you.is-loss { border-left-color: var(--sim-loss); }
.dlm-cu-you.is-warn { border-left-color: var(--sim-ref); }
.dlm-cu-you.is-gain { border-left-color: var(--sim-gain); }
.dlm-cu-you-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dlm-cu-verdict { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; background: rgba(148, 163, 184, 0.12); color: #cbd5e1; }
.dlm-cu-verdict.is-loss { background: rgba(248, 113, 113, 0.14); color: var(--sim-loss); }
.dlm-cu-verdict.is-warn { background: rgba(251, 191, 36, 0.14); color: var(--sim-ref); }
.dlm-cu-verdict.is-gain { background: rgba(52, 211, 153, 0.14); color: var(--sim-gain); }
.dlm-cu-you h2 { margin: 8px 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.dlm-cu-you p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #cbd5e1; }
.dlm-cu-you p b { color: #fff; }
.dlm-cu-you-kpis { display: grid; gap: 8px; }
.dlm-cu-you-kpis .dlm-walk-kpi.is-me { border-left-color: var(--sim-me); }
.dlm-cu-you-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dlm-cu-you-act small { font-size: 12px; color: #8fa0c2; }
/* Ejercicio */
.dlm-cu-drill { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); border-top: 3px solid var(--sim-me); background: #0b1020; }
.dlm-cu-drill-head h2 { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.dlm-cu-drill-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dlm-cu-drill-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #e2e8f0; }
.dlm-cu-drill-steps li i { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--sim-me); color: #04101f; font-style: normal; font-size: 12px; font-weight: 800; }
.dlm-cu-drill-steps li b { color: #fff; }
.dlm-cu-verify { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.28); font-size: 13.5px; line-height: 1.5; color: #e2e8f0; }
.dlm-cu-verify svg { flex-shrink: 0; margin-top: 2px; color: var(--sim-me); }
.dlm-cu-verify b { color: #fff; }
/* Pie */
.dlm-cu-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding-top: 6px; }
.dlm-cu-foot > :last-child { justify-self: end; }
.dlm-cu-foot .dlm-btn-primary, .dlm-cu-foot .dlm-btn-secondary { max-width: 100%; min-width: 0; height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: left; }
.dlm-cu-done-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.3); background: #0b1020; color: #e2e8f0; font-family: var(--f-ui); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dlm-cu-done-btn svg { color: #8fa0c2; }
.dlm-cu-done-btn.is-done { border-color: rgba(52, 211, 153, 0.5); color: var(--sim-gain); }
.dlm-cu-done-btn.is-done svg { color: var(--sim-gain); }
@media (max-width: 1023px) {
  .dlm-cu-home-head, .dlm-cu-header { grid-template-columns: 1fr; align-items: flex-start; gap: 14px; }
  .dlm-cu-progress, .dlm-cu-head-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .dlm-cu-prog-wrap { align-items: flex-start; }
  .dlm-cu-stage-grid { grid-template-columns: 1fr; gap: 14px; }
  .dlm-cu-sticky { position: static; }
  .dlm-map-stage.is-walk-stage.is-cu { height: 260px; }
  .dlm-cu-canvas-box .dlm-cu-tabs { order: 10; }
  .dlm-map-stage.is-cu .dlm-map-tools { display: none; }
  .dlm-map-stage.is-cu .dlm-walk-badge { display: none; }
  .dlm-cu-foot.is-first > .dlm-btn-primary { grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .dlm-cu-steps { gap: 10px; }
  .dlm-cu-step { display: none; opacity: 1; }
  .dlm-cu-step.is-on { display: flex; }
  .dlm-cu-stepnav { display: grid; }
  .dlm-cu-canvas-box { padding: 10px; gap: 8px; }
  .dlm-cu-you { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .dlm-cu-you-kpis { grid-template-columns: 1fr 1fr; }
  .dlm-cu-drill { padding: 14px; }
  .dlm-cu-drill-steps { grid-template-columns: 1fr; gap: 10px; }
  .dlm-cu-foot { grid-template-columns: 1fr 1fr; }
  .dlm-cu-foot.is-first { grid-template-columns: 1fr; }
  .dlm-cu-foot.is-first > span { display: none; }
  .dlm-cu-foot .dlm-cu-done-btn { grid-column: 1 / -1; order: -1; justify-content: center; }
  .dlm-cu-foot > :last-child { justify-self: stretch; }
  .dlm-cu-foot .dlm-btn-primary, .dlm-cu-foot .dlm-btn-secondary { width: 100%; justify-content: center; padding: 8px 12px; font-size: 13px; text-align: center; white-space: normal; }
}
@media (max-width: 640px) {
  .dlm-cu-grid { grid-template-columns: 1fr; gap: 12px; }
  .dlm-cu-card { padding: 14px; gap: 10px; }
  .dlm-cu-art { height: 104px; }
  .dlm-cu-card-title { font-size: 16.5px; }
  .dlm-cu-card-foot { flex-wrap: wrap; gap: 6px; }
  .dlm-cu-personal { white-space: normal; }
  .dlm-cu-home-head, .dlm-cu-header { padding: 16px; gap: 12px; }
  .dlm-cu-home-title { font-size: 22px; }
  .dlm-cu-title { font-size: 24px; }
  .dlm-cu-sub { font-size: 14px; }
  .dlm-cu-prog-seg { width: 16px; }
  .dlm-cu-step { padding: 14px 14px 14px 16px; }
  .dlm-cu-step h3 { font-size: 16px; }
  .dlm-cu-step p { font-size: 14px; }
  .dlm-cu-you-kpis { grid-template-columns: 1fr; }
  .dlm-cu-chart-box.is-xy { flex-direction: column; align-items: flex-start; }
  .dlm-cu-stage-foot > span:last-child { display: none; }
  .dlm-map-stage.is-cu .dlm-walk-pedals { left: 6px; right: 6px; bottom: 6px; gap: 4px; }
  .dlm-map-stage.is-cu .dlm-wp-box { flex: 1 1 0; min-width: 0; padding: 4px 6px; gap: 4px; justify-content: space-between; }
  .dlm-map-stage.is-cu .dlm-wp-spd { font-size: 15px; min-width: 26px; }
  .dlm-map-stage.is-cu .dlm-wp-gear { width: 22px; height: 22px; font-size: 11.5px; }
}
/* Celular apaisado: visual a la izquierda y el paso a la derecha, todo en una pantalla (revisión de Gemini). */
@media (max-width: 1023px) and (max-height: 500px) {
  .dlm-cu-stage-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  .dlm-map-stage.is-walk-stage.is-cu { height: 170px; }
  .dlm-cu-chart-box svg { height: 68px; }
  .dlm-cu-chart { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #dlmRoot, #dlmRoot.is-leaving, #dlmRoot.is-entering { opacity: 1 !important; transform: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .dlm-line-in, .dlm-cu-header .dlm-cu-head-main > *, .dlm-cu-header .dlm-cu-head-side, .dlm-cu-card.dlm-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dlm-in-bg { transform: none !important; }
  .dlm-cu-step { transition: none !important; }
}
/* Prode: puntos provisorios hasta la clasificación final de la FIA (02/11). */
.dlb-prov { font-style: normal; font-size: 11px; font-weight: 600; color: #fbbf24; }
.dlb-prov-note { color: #fbbf24; }
/* Duelo · cabecera compacta (Gemini, 02/11). */
.dlm-duel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 6px; }
.dlm-duel-head .dlm-mode-tabs { margin: 0; border-bottom: 0; }
.dlm-duel-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlm-sample-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(148, 163, 184, 0.08); color: #94a3b8; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
@media (max-width: 480px) {
  .dlm-subnav-pills { gap: 2px; }
  .dlm-subnav-btn { padding: 0 8px; font-size: 12px; gap: 4px; }
  .dlm-sample-pill { font-size: 10.5px; height: 24px; }
}
@media (max-width: 480px) {
  .dlm-duel-head .dlm-mode-tab { padding-left: 8px; padding-right: 8px; }
}

/* Sim racing · sesión contra la referencia con el lenguaje del boceto B elegido por el dueño (02/11):
   fondo negro azulado, bordes finos de 1 px, paneles rectos, títulos en mayúsculas finas. */
.dlm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dlm-sb { display: inline-flex; margin: 12px 0 14px; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 6px; overflow: hidden; background: #0a0f1c; font-variant-numeric: tabular-nums; }
.dlm-sb-plate { --c: #94a3b8; display: flex; align-items: baseline; gap: 9px; padding: 8px 16px; border-right: 1px solid rgba(148, 163, 184, 0.18); background: color-mix(in srgb, var(--c) 9%, transparent); }
.dlm-sb-plate:last-child { border-right: 0; }
.dlm-sb-plate span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.dlm-sb-plate b { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: var(--c); }
.dlm-sb-plate.is-me { --c: var(--sim-me); }
.dlm-sb-plate.is-ref { --c: var(--sim-ref); }
.dlm-sb-plate.is-delta { --c: var(--sim-loss); }
.dlm-sb-plate.is-delta.is-gain { --c: var(--sim-gain); }
.dlm-cl-panel { padding: 14px 16px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 6px; background: #0a0f1c; min-width: 0; }
.dlm-cl-panel > h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #cbd5e1; }
.dlm-dA, .dlm-cl-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 14px; align-items: start; }
.dlm-cl-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dlm-cl-row { position: relative; width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "n name d" "n bar bar"; column-gap: 10px; row-gap: 6px; align-items: center; margin: 0 0 8px; padding: 10px 12px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 6px; background: rgba(15, 23, 42, 0.45); color: #f8fafc; font-family: var(--f-ui); text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.dlm-cl-row:last-child { margin-bottom: 0; }
.dlm-cl-row:hover, .dlm-cl-row:focus-visible { border-color: rgba(148, 163, 184, 0.45); outline: none; }
.dlm-cl-row.is-on { border-color: var(--sim-loss); background: rgba(248, 113, 113, 0.06); box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35), 0 0 16px rgba(248, 113, 113, 0.3); }
.dlm-cl-row.is-on.is-gain { border-color: var(--sim-gain); background: rgba(52, 211, 153, 0.06); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35), 0 0 16px rgba(52, 211, 153, 0.3); }
.dlm-cl-row i { grid-area: n; font-style: normal; font-size: 15px; font-weight: 500; color: #8fa0c2; font-variant-numeric: tabular-nums; }
.dlm-cl-row > span { grid-area: name; font-size: 15px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.15; text-transform: uppercase; }
.dlm-cl-row > span small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; color: #64748b; }
.dlm-cl-row b { grid-area: d; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #cbd5e1; }
.dlm-cl-row.is-loss b { color: var(--sim-loss); }
.dlm-cl-row.is-gain b { color: var(--sim-gain); }
.dlm-cl-row em { grid-area: bar; display: block; height: 3px; border-radius: 2px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.dlm-cl-row em u { display: block; height: 100%; background: #64748b; }
.dlm-cl-row.is-loss em u { background: var(--sim-loss); box-shadow: 0 0 6px rgba(248, 113, 113, 0.7); }
.dlm-cl-row.is-gain em u { background: var(--sim-gain); box-shadow: 0 0 6px rgba(52, 211, 153, 0.7); }
.dlm-cl-say { cursor: pointer; }
.dlm-cl-say:hover, .dlm-cl-say:focus-visible { border-color: rgba(148, 163, 184, 0.45); outline: none; }
.dlm-cl-say > b { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #f8fafc; }
.dlm-cl-say > b em { font-style: normal; text-transform: none; font-variant-numeric: tabular-nums; }
.dlm-cl-say > p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: #e2e8f0; }
.dlm-cl-say > span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.04em; color: #8fa0c2; font-variant-numeric: tabular-nums; }
.dlm-cl-panel.is-map .dlm-map-stage.is-session.is-duel { height: 560px; border-radius: 4px; border: 1px solid rgba(148, 163, 184, 0.14); cursor: pointer;
  background-image: linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px), linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-color: #070b16; }
.dlm-cl-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 12px; color: #8fa0c2; }
.dlm-cl-main { padding: 16px 18px; }
.dlm-cl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dlm-cl-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; color: #f8fafc; }
.dlm-cl-title em { font-style: normal; font-variant-numeric: tabular-nums; }
.dlm-cl-title-m, .dlm-cl-sub, .dlm-cl-badge, .dlm-cl-foot { display: none; }
.dlm-cl-chart { margin-top: 12px; }
.dlm-cl-chart-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dlm-cl-chart-h > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #cbd5e1; }
.dlm-cl-chart-h > span:first-child small { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: #8fa0c2; }
.dlm-cl-chart-h .dlm-legend { font-size: 12px; }
.dlm-cl-plot, .dlm-cl-x { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.dlm-cl-y { position: relative; }
.dlm-cl-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-cl-area { position: relative; height: 300px; border: 1px solid rgba(148, 163, 184, 0.14); background: #070b16; }
.dlm-cl-chart.is-pedal .dlm-cl-area { height: 104px; }
.dlm-cl-area svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.dlm-cl-grid { stroke: rgba(148, 163, 184, 0.13); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dlm-cl-band.is-loss { fill: rgba(248, 113, 113, 0.34); }
.dlm-cl-band.is-gain { fill: rgba(52, 211, 153, 0.3); }
.dlm-cl-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dlm-cl-line.is-ref { stroke: var(--sim-ref); }
.dlm-cl-line.is-me { stroke: var(--sim-me); }
.dlm-cl-fill.is-ref { fill: rgba(251, 191, 36, 0.07); }
.dlm-cl-fill.is-me { fill: rgba(56, 189, 248, 0.1); }
.dlm-cl-cota { stroke: #f8fafc; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dlm-cl-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #070b16; }
.dlm-cl-dot.is-ref { background: var(--sim-ref); box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.dlm-cl-dot.is-me { background: var(--sim-me); box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }
.dlm-cl-tag { position: absolute; transform: translate(-50%, 12px); padding: 3px 8px; border-radius: 4px; border: 1px solid; background: rgba(7, 11, 22, 0.92); font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dlm-cl-tag.is-up { transform: translate(-50%, calc(-100% - 12px)); }
.dlm-cl-tag.is-ref { color: var(--sim-ref); border-color: rgba(251, 191, 36, 0.5); }
.dlm-cl-tag.is-me { color: var(--sim-me); border-color: rgba(56, 189, 248, 0.5); }
.dlm-cl-gap { position: absolute; transform: translate(10px, -50%); padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(248, 113, 113, 0.5); background: rgba(7, 11, 22, 0.92); font-size: 11.5px; letter-spacing: 0.06em; color: #e2e8f0; white-space: nowrap; }
.dlm-cl-gap b { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.dlm-cl-gap.is-loss b { color: var(--sim-loss); }
.dlm-cl-gap.is-gain { border-color: rgba(52, 211, 153, 0.5); }
.dlm-cl-gap.is-gain b { color: var(--sim-gain); }
.dlm-cl-x { margin-top: 4px; }
.dlm-cl-x > div { position: relative; height: 16px; }
.dlm-cl-x > div span { position: absolute; transform: translateX(-50%); font-size: 11px; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-cl-x > div span:first-child { transform: none; }
.dlm-cl-x > div span:last-child { transform: translateX(-100%); }
.dlm-cl-xlbl { margin: 0 0 0 48px; font-size: 11px; color: #64748b; }
.dlm-cl-pedals { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-cl-map { display: block; width: 100%; height: 190px; }
.dlm-cl-map-road { fill: none; stroke: #94a3b8; stroke-width: 34; stroke-linejoin: round; opacity: 0.55; }
.dlm-cl-map-glow { fill: none; stroke: rgba(248, 113, 113, 0.35); stroke-width: 110; stroke-linecap: round; stroke-linejoin: round; }
.dlm-cl-map-hot { fill: none; stroke: var(--sim-loss); stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.dlm-cl-map-txt { fill: #fca5a5; font-family: var(--f-ui); font-weight: 600; }
.dlm-corners-lab.is-cl .dlm-corner-work { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
@media (max-width: 1100px) { .dlm-dA, .dlm-cl-grid { grid-template-columns: 290px minmax(0, 1fr); } .dlm-cl-panel.is-map .dlm-map-stage.is-session.is-duel { height: 480px; } }
@media (max-width: 900px) {
  .dlm-dA, .dlm-cl-grid { grid-template-columns: minmax(0, 1fr); }
  .dlm-cl-panel.is-map .dlm-map-stage.is-session.is-duel { height: min(96vw, 480px); }
  .dlm-map-stage.is-duel .dlm-map-tools { top: 8px; right: 8px; bottom: auto; }
  .dlm-cl .dlm-cl-rank, .dlm-cl .dlm-cl-mini, .dlm-cl-title { display: none; }
  .dlm-cl-title-m { display: block; margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; color: #f8fafc; }
  .dlm-cl-sub { display: block; margin: 4px 0 0; font-size: 13.5px; color: #8fa0c2; font-variant-numeric: tabular-nums; }
  .dlm-cl-badge { display: inline-flex; align-items: center; flex-shrink: 0; padding: 6px 12px; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 6px; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: #cbd5e1; }
  .dlm-cl-badge.is-loss { border-color: rgba(248, 113, 113, 0.6); box-shadow: 0 0 12px rgba(248, 113, 113, 0.25); }
  .dlm-cl-badge.is-gain { border-color: rgba(52, 211, 153, 0.6); box-shadow: 0 0 12px rgba(52, 211, 153, 0.25); }
  .dlm-cl-area { height: 240px; }
  .dlm-cl-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 12px; }
  .dlm-cl-foot > * { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 6px; background: #0a0f1c; color: #8fa0c2; font-family: var(--f-ui); cursor: pointer; }
  .dlm-cl-foot > span.is-on { border-color: rgba(56, 189, 248, 0.6); color: #f8fafc; cursor: default; }
  .dlm-cl-foot small { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dlm-cl-foot > span.is-on small { font-size: 14px; font-weight: 700; }
  .dlm-cl-foot b { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .dlm-cl-foot button:first-child { align-items: flex-start; }
  .dlm-cl-foot button:last-child { align-items: flex-end; }
}
@media (max-width: 520px) {
  .dlm-sb { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; }
  .dlm-sb-plate { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; }
  .dlm-sb-plate b { font-size: 17px; }
  .dlm-sb-plate span { font-size: 10.5px; }
  .dlm-cl-panel { padding: 12px 12px; }
  .dlm-cl-main { padding: 14px 12px; }
  .dlm-cl-title-m { font-size: 26px; }
  .dlm-cl-badge { font-size: 18px; padding: 5px 10px; }
  .dlm-cl-row { padding: 9px 10px; column-gap: 8px; }
  .dlm-cl-row > span, .dlm-cl-row i { font-size: 14px; }
  .dlm-cl-plot, .dlm-cl-x { grid-template-columns: 34px minmax(0, 1fr); gap: 6px; }
  .dlm-cl-xlbl { margin-left: 40px; }
  .dlm-cl-foot small { font-size: 11px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .dlm-cl-panel.is-map .dlm-map-stage.is-session.is-duel { height: 300px; }
  .dlm-cl-area { height: 200px; }
  .dlm-cl-chart.is-pedal .dlm-cl-area { height: 80px; }
}
/* Con referencia profesional, toda la sesión (plan, curvas, frenada, replay) habla el mismo idioma fino:
   paneles rectos de radio chico, fondo negro azulado, borde de 1 px, sin sombras grandes. */
#dlmRoot.is-fino :is(.dlm-card, .dlm-next, .dlm-coach-subnav, .dlm-plan-card, .dlm-plan-hero, .dlm-coach-callout, .dlm-walk-panel, .dlm-map-stage, .dlm-corner-chart, .dlm-seg-charts, .dlm-phase-pill, .dlm-plan-time-box, .dlm-rp-car, .dlm-brk-phases-card, .dlm-walk-bar, .dlm-corner-matrix, .dlm-plan-saving, .dlm-walk-kpi, .dlm-rp-stage, .dlm-cu-chart-box svg, .dlm-brk-wave-svg, .dlm-cc-svg, .dlm-sample-pill, .dlm-filter-chip, .dlm-subnav-btn, .dlm-next-btn, .dlm-corner-tab, .dlm-btn-chip, .dlm-more, .dlm-walk-step, .dlm-ses-filter) { border-radius: 6px; }
#dlmRoot.is-fino :is(.dlm-card, .dlm-next, .dlm-plan-card, .dlm-plan-hero, .dlm-walk-panel, .dlm-corner-chart, .dlm-brk-phases-card) { background: #0a0f1c; box-shadow: none; border-color: rgba(148, 163, 184, 0.2); }
#dlmRoot.is-fino :is(.dlm-card-t, .dlm-sec-title) { font-weight: 600; letter-spacing: 0.02em; }
#dlmRoot.is-fino .dlm-coach-subnav { background: rgba(10, 15, 28, 0.94); }

/* Sim racing · un error por vez (02/11, criterio de Track Titan): la curva que más cuesta ocupa la pantalla. */
.dlm-fx { margin-top: 14px; }
.dlm-fx-top { margin-bottom: 14px; }
.dlm-fx-k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sim-loss); }
.dlm-fx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.dlm-fx-h h2 { margin: 0; font-size: clamp(28px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.02em; color: #f8fafc; }
.dlm-fx-h b { font-size: clamp(30px, 4vw, 54px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-shadow: 0 0 26px rgba(248, 113, 113, 0.45); }
.dlm-fx-say { margin: 8px 0 0; max-width: 62ch; font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; line-height: 1.4; color: #cbd5e1; }
.dlm-fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: stretch; }
.dlm-fx-map, .dlm-fx-chart { border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.14); background: #0a0f1c; padding: 14px; min-width: 0; }
.dlm-fx-map .dlm-map-stage { height: 100%; min-height: 360px; }
.dlm-fx-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.dlm-fx-big span { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; background: rgba(148, 163, 184, 0.05); border-left: 3px solid currentColor; font-variant-numeric: tabular-nums; }
.dlm-fx-big span.is-ref { color: var(--sim-ref); }
.dlm-fx-big span.is-me { color: var(--sim-me); }
.dlm-fx-big small { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.dlm-fx-big b { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; line-height: 1; text-shadow: 0 0 22px currentColor; }
.dlm-fx-big i { font-style: normal; font-size: 12.5px; color: #94a3b8; }
.dlm-fx-chart .dlm-cl-line { stroke-width: 3.2; filter: drop-shadow(0 0 4px currentColor); }
.dlm-fx-chart .dlm-cl-band.is-loss { fill-opacity: 0.55; }
.dlm-fx-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.dlm-fx-dots { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dlm-fx-dot { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.18); background: transparent; color: #94a3b8; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dlm-fx-dot b { color: var(--sim-loss); font-size: 12px; font-variant-numeric: tabular-nums; }
.dlm-fx-dot.is-on { border-color: rgba(248, 113, 113, 0.7); color: #f8fafc; background: rgba(248, 113, 113, 0.12); }
.dlm-fx-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.22); background: #0a0f1c; color: #e2e8f0; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dlm-fx-btn.is-main { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.14); color: #fff; }
.dlm-fx-btn.is-off { opacity: 0.35; cursor: default; }
.dlm-fx-more { margin: 12px 0 0; }
.dlm-fx-more button { border: 0; background: none; padding: 0; color: var(--sim-me); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .dlm-fx-grid { grid-template-columns: minmax(0, 1fr); }
  .dlm-fx-map .dlm-map-stage { min-height: 300px; }
}
@media (max-width: 520px) {
  .dlm-fx-nav { flex-wrap: wrap; }
  .dlm-fx-dots { order: -1; flex-basis: 100%; }
  .dlm-fx-btn { flex: 1; justify-content: center; }
  .dlm-fx-big b { font-size: 34px; }
}
.dlm-fx-h b { white-space: nowrap; }
@media (max-width: 520px) { .dlm-fx-h { align-items: flex-start; } .dlm-fx-h h2 { font-size: 26px; } .dlm-fx-h b { font-size: 26px; } }

/* Mapa del error sobre el plano de la pista (02/11): dibujo de Gemini de fondo, datos reales encima. */
.dlm-pl { position: relative; border-radius: 8px; overflow: hidden; background: #0a0f1c; height: 100%; min-height: 560px; }
.dlm-pl img, .dlm-pl svg { object-fit: contain; }
.dlm-pl img, .dlm-pl svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dlm-pl-line { fill: none; stroke-width: 3; stroke-linejoin: round; opacity: 0.9; }
.dlm-pl-line.is-ref { stroke: var(--sim-ref); }
.dlm-pl-line.is-me { stroke: var(--sim-me); }
.dlm-pl-hot-glow { fill: none; stroke: #f87171; stroke-width: 34; stroke-linecap: round; opacity: 0.75; }
.dlm-pl-hot { fill: none; stroke: #f87171; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.dlm-pl-num circle { fill: #0a0f1c; stroke: rgba(226, 232, 240, 0.75); stroke-width: 2; }
.dlm-pl-num text { fill: #e2e8f0; font: 700 22px Geist, system-ui, sans-serif; text-anchor: middle; }
.dlm-pl-num.is-on circle { fill: #f87171; stroke: #fecaca; }
.dlm-pl-num.is-on text { fill: #0a0f1c; }
.dlm-pl-lead { stroke: #f87171; stroke-width: 2.5; }
.dlm-pl-tag rect { fill: #2a0b10; stroke: #f87171; stroke-width: 2.5; }
.dlm-pl-tag text { fill: #f8fafc; font: 700 26px Geist, system-ui, sans-serif; }
.dlm-pl-tag tspan { fill: #fca5a5; }
.dlm-pl-leg { position: absolute; left: 14px; bottom: 12px; }

/* Encabezado de la sesión (02/11): pista con nombre grande, pistas como fichas con su trazado, marcador ancho. */
.dlm-hd { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 10px 0 14px; }
.dlm-hd-t { display: flex; flex-direction: column; gap: 4px; }
.dlm-hd-k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #94a3b8; }
.dlm-hd h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: #f8fafc; }
.dlm-hd .dlm-mode-tabs { margin: 0; border-bottom: 0; gap: 4px; padding: 4px; border-radius: 12px; background: #0a0f1c; border: 1px solid rgba(148, 163, 184, 0.18); }
.dlm-hd .dlm-mode-tab { height: 38px; padding: 0 18px; border-radius: 9px; font-size: 15px; }
.dlm-hd .dlm-mode-tab.is-on { background: rgba(56, 189, 248, 0.15); color: #fff; }
.dlm-hd .dlm-mode-tab.is-on::after { display: none; }
.dlm-tks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 14px; }
.dlm-tks .dlm-tk { display: flex; align-items: center; gap: 14px; height: auto; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.18); background: #0a0f1c; color: #cbd5e1; text-align: left; cursor: pointer; }
.dlm-tks .dlm-tk.is-on { border-color: rgba(56, 189, 248, 0.65); background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), #0a0f1c); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 8px 24px rgba(56, 189, 248, 0.08); }
.dlm-tks .dlm-tk svg { width: 54px; height: 44px; flex: 0 0 auto; }
.dlm-tks .dlm-tk span { display: flex; flex-direction: column; gap: 3px; }
.dlm-tks .dlm-tk b { font-size: 18px; font-weight: 800; color: #f8fafc; }
.dlm-tks .dlm-tk small { font-size: 12.5px; font-weight: 600; color: #94a3b8; font-variant-numeric: tabular-nums; }
.dlm-sb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 12px; }
.dlm-sb-plate { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px; }
.dlm-sb-plate span { font-size: 12px; font-weight: 700; }
.dlm-sb-plate b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; }
.dlm-sb-plate.is-delta b { text-shadow: 0 0 22px rgba(248, 113, 113, 0.35); }
.dlm-coach-subnav { border-radius: 12px; }
.dlm-subnav-btn { height: 40px; padding: 0 16px; border-radius: 9px; font-size: 14.5px; }
.dlm-pl-nm { fill: #cbd5e1; font: 600 22px Geist, system-ui, sans-serif; paint-order: stroke; stroke: #0a0f1c; stroke-width: 6px; }
@media (max-width: 520px) {
  .dlm-tks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dlm-tks .dlm-tk { padding: 10px 12px; gap: 10px; }
  .dlm-tks .dlm-tk svg { width: 36px; height: 30px; }
  .dlm-tks .dlm-tk b { font-size: 15px; }
  .dlm-tks .dlm-tk small { font-size: 11px; }
  .dlm-sb-plate { padding: 10px 12px; }
  .dlm-sb-plate b { font-size: 20px; }
  .dlm-sb-plate span { font-size: 10.5px; }
  .dlm-subnav-btn { height: 36px; padding: 0 10px; font-size: 13px; }
}
.dlm-tks .dlm-tk .dlm-ses-track-svg { display: block; position: static; width: 54px; height: 44px; opacity: 1; }
.dlm-tks .dlm-tk .dlm-ses-track-bg { fill: none; stroke: rgba(148, 163, 184, 0.25); stroke-width: 26; stroke-linejoin: round; }
.dlm-tks .dlm-tk .dlm-ses-track-fg { fill: none; stroke-width: 12; stroke-linejoin: round; }
@media (max-width: 520px) { .dlm-tks .dlm-tk .dlm-ses-track-svg { width: 36px; height: 30px; } }

/* ---------- Sim racing: Juego → Pista → Análisis (bocetos aprobados por el dueño, 02/11: sim-J1, sim-T1, sim-R1e) ---------- */
.dlm-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin: 0 0 26px; padding: 12px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.dlm-crumbs li { display: inline-flex; align-items: center; gap: 4px; color: #f8fafc; font-weight: 500; }
.dlm-crumbs li + li::before { content: '\203A'; margin: 0 8px; color: #475569; font-weight: 400; }
.dlm-crumbs button { border: 0; background: none; padding: 4px 0; color: #8b9ab5; font: inherit; font-weight: 400; cursor: pointer; }
.dlm-crumbs button:hover { color: #f8fafc; }
.dlm-crumbs-links { display: flex; gap: 22px; }
.dlm-crumbs-links button { font-size: 14.5px; }
/* 26/11: en el programa se ve la barra de la web (worlds.js, dlModoPrograma) con su botón Grabación: punto gris, rojo que late en pista. */
html.dl-programa body > header { display: block !important; }
.dl-prog-rec i { width: 9px; height: 9px; border-radius: 50%; background: #64748b; flex: none; }
.dl-prog-rec.on i { background: #ef4444; animation: dlProgRec 1.4s ease-in-out infinite; }
@keyframes dlProgRec { 50% { opacity: 0.35; } }
.dlm-pg-h { margin: 6px 0 30px; }
.dlm-pg-h h1 { margin: 0; font-size: clamp(40px, 6.2vw, 88px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: #f8fafc; }
.dlm-pg-h p { margin: 12px 0 0; font-size: clamp(16px, 1.7vw, 24px); color: #8b9ab5; }
/* Juegos */
.dlm-jg-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.dlm-jg-card { position: relative; display: block; height: clamp(360px, 34vw, 460px); padding: 0; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.14); background: linear-gradient(160deg, rgba(51, 65, 85, 0.42), rgba(15, 23, 42, 0.35) 55%, rgba(8, 12, 22, 0.6)); overflow: hidden; color: inherit; font: inherit; text-align: left; }
.dlm-jg-card.is-on { cursor: pointer; border-color: rgba(56, 189, 248, 0.75); background: radial-gradient(120% 70% at 0% 0%, rgba(56, 189, 248, 0.22), transparent 60%), radial-gradient(90% 60% at 100% 100%, rgba(251, 191, 36, 0.16), transparent 60%), linear-gradient(160deg, rgba(30, 41, 59, 0.75), rgba(8, 12, 22, 0.9)); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 0 48px rgba(56, 189, 248, 0.18), 0 24px 60px rgba(251, 191, 36, 0.08); transition: transform 0.2s, box-shadow 0.2s; }
.dlm-jg-card.is-on:hover, .dlm-jg-card.is-on:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 0 60px rgba(56, 189, 248, 0.26), 0 24px 60px rgba(251, 191, 36, 0.1); outline: none; }
.dlm-jg-name { position: absolute; left: 24px; top: 22px; font-size: clamp(30px, 2.8vw, 42px); font-weight: 600; letter-spacing: -0.02em; color: #f8fafc; }
.dlm-jg-badge { position: absolute; left: 24px; top: calc(26px + clamp(34px, 3.2vw, 48px)); font-size: 13px; color: #9fb4d0; }
.dlm-jg-art { position: absolute; left: 14px; right: 14px; top: 30%; height: 34%; }
.dlm-jg-art .dlm-art { width: 100%; height: 100%; }
.dlm-art-bg { fill: none; stroke: rgba(148, 163, 184, 0.12); stroke-width: 110; stroke-linejoin: round; }
.dlm-art-fg { fill: none; stroke-width: 34; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.55)); }
.dlm-spark { display: block; width: 100%; height: 44px; overflow: visible; }
.dlm-spark path { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.dlm-spark .is-me { stroke: var(--sim-me); }
.dlm-spark .is-ref { stroke: var(--sim-ref); opacity: 0.9; }
.dlm-jg-card > .dlm-spark { position: absolute; left: 18px; bottom: 58px; width: calc(100% - 36px); }
.dlm-jg-go { position: absolute; left: 24px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--sim-me); }
.dlm-jg-card.is-soon .dlm-jg-v { position: absolute; right: 20px; bottom: 22px; max-height: calc(100% - 80px); writing-mode: vertical-rl; font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; color: rgba(203, 213, 225, 0.5); }
.dlm-jg-soon { position: absolute; left: 18px; top: 18px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(15, 23, 42, 0.6); font-size: 11.5px; letter-spacing: 0.04em; color: #8b9ab5; }
/* Pistas */
.dlm-pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dlm-pt-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: clamp(320px, 28vw, 400px); padding: 22px 24px 18px; border-radius: 18px; border: 1px solid rgba(148, 163, 184, 0.18); background: radial-gradient(90% 70% at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(251, 191, 36, 0.12), transparent 60%), linear-gradient(160deg, rgba(30, 41, 59, 0.6), rgba(8, 12, 22, 0.9)); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.dlm-pt-card:hover, .dlm-pt-card:focus-visible { transform: translateY(-3px); border-color: rgba(56, 189, 248, 0.7); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 0 44px rgba(56, 189, 248, 0.16); outline: none; }
.dlm-pt-top { display: flex; align-items: baseline; gap: 10px; }
.dlm-pt-top b { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: #f8fafc; }
.dlm-pt-top small { font-size: 15px; color: #8b9ab5; }
.dlm-pt-top em { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: rgba(244, 63, 94, 0.16); border: 1px solid rgba(244, 63, 94, 0.45); font-style: normal; font-size: 15px; font-weight: 600; color: #fb7185; font-variant-numeric: tabular-nums; }
.dlm-pt-art { flex: 1; min-height: 150px; }
.dlm-pt-art .dlm-art { width: 100%; height: 100%; max-height: 220px; }
.dlm-pt-times { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: end; gap: 28px; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-pt-times > span { display: flex; flex-direction: column; gap: 2px; }
.dlm-pt-times small { font-size: 13.5px; }
.dlm-pt-times b { font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dlm-pt-times .is-me { color: var(--sim-me); }
.dlm-pt-times .is-ref { color: var(--sim-ref); }
.dlm-pt-times .dlm-spark { height: 40px; }
.dlm-pt-sub { margin: 40px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8b9ab5; }
.dlm-pt-list { columns: 2; column-gap: 36px; margin: 0; padding: 0; list-style: none; }
.dlm-pt-list li { break-inside: avoid; display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(148, 163, 184, 0.12); font-size: 17px; color: #e2e8f0; }
.dlm-pt-list i { width: 24px; flex: 0 0 auto; font-style: normal; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-pt-list small { font-size: inherit; color: #8b9ab5; }
.dlm-pt-list em { margin-left: auto; font-style: normal; font-size: 14px; color: #64748b; white-space: nowrap; }
/* Encabezado del análisis */
.dlm-hx { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; margin: 0 0 22px; }
.dlm-hx-l { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.dlm-hx h1 { margin: 0; font-size: clamp(48px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; color: #f8fafc; }
.dlm-hx-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dlm-hx-tks { display: flex; gap: 10px; }
.dlm-hx-tk { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 128px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(15, 23, 42, 0.55); color: #8b9ab5; font: inherit; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.dlm-hx-tk b { font-size: 17px; font-weight: 600; }
.dlm-hx-tk small { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dlm-hx-tk:hover { border-color: rgba(148, 163, 184, 0.45); color: #e2e8f0; }
.dlm-hx-tk.is-on { border-color: rgba(226, 232, 240, 0.7); background: rgba(30, 41, 59, 0.75); color: #f8fafc; }
.dlm-hx-tk.is-on small { color: #fb7185; }
.dlm-seg { display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(15, 23, 42, 0.55); }
.dlm-seg button { height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: none; color: #8b9ab5; font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; }
.dlm-seg button:hover { color: #f8fafc; }
.dlm-seg button.is-on { background: rgba(226, 232, 240, 0.14); color: #f8fafc; box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.18); }
.dlm-score { display: flex; align-items: flex-end; }
.dlm-score > div { display: flex; flex-direction: column; gap: 4px; padding: 0 26px; border-left: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-score > div:first-child { padding-left: 0; border-left: 0; }
.dlm-score > div:last-child { padding-right: 0; }
.dlm-score small { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.dlm-score b { white-space: nowrap; font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.dlm-score .is-delta { color: var(--sim-loss); }
.dlm-score .is-delta b { font-size: clamp(36px, 4vw, 58px); text-shadow: 0 0 28px rgba(248, 113, 113, 0.3); }
.dlm-score .is-delta.is-gain { color: var(--sim-gain); }
.dlm-score .is-me { color: var(--sim-me); }
.dlm-score .is-ref { color: var(--sim-ref); }
/* Pestañas: a todo el ancho, sin caja, con la elegida subrayada */
#dlmRoot.is-fino .dlm-coach-subnav { top: var(--dl-hdr, 64px); margin: 0 0 26px; padding: 0; border: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.16); border-radius: 0; background: rgba(5, 8, 15, 0.94); }
#dlmRoot.is-fino .dlm-subnav-pills { flex: 1; gap: 0; }
#dlmRoot.is-fino .dlm-subnav-btn { position: relative; flex: 1 1 0; justify-content: center; height: 58px; padding: 0 16px; border: 0; border-radius: 0; background: none; color: #8b9ab5; font-size: 18px; font-weight: 500; }
#dlmRoot.is-fino .dlm-subnav-btn:hover { color: #f8fafc; background: none; }
#dlmRoot.is-fino .dlm-subnav-btn.is-on { color: #f8fafc; background: none; }
#dlmRoot.is-fino .dlm-subnav-btn.is-on::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sim-me); box-shadow: 0 0 14px rgba(56, 189, 248, 0.8); }
#dlmRoot.is-fino .dlm-subnav-btn i { width: 24px; height: 24px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); font-size: 12.5px; }
#dlmRoot.is-fino .dlm-subnav-btn small { background: none; padding: 0; font-size: 16px; font-weight: 500; }
#dlmRoot.is-fino .dlm-subnav-btn small.is-n { background: rgba(148, 163, 184, 0.14); padding: 1px 8px; font-size: 13px; }
/* Resumen en tres columnas */
.dlm-rs { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.6fr) minmax(0, 1.18fr); grid-template-areas: "rank map head" "rank map body"; grid-template-rows: auto 1fr; column-gap: 16px; }
.dlm-rs-rank, .dlm-rs-map, .dlm-rs-head, .dlm-rs-body { min-width: 0; border: 1px solid rgba(148, 163, 184, 0.16); background: #0a0f1c; }
.dlm-rs-rank { grid-area: rank; padding: 16px; border-radius: 16px; }
.dlm-rs-map { grid-area: map; display: flex; flex-direction: column; padding: 16px; border-radius: 16px; }
.dlm-rs-head { grid-area: head; padding: 20px 20px 4px; border-bottom: 0; border-radius: 16px 16px 0 0; }
.dlm-rs-body { grid-area: body; padding: 6px 20px 20px; border-top: 0; border-radius: 0 0 16px 16px; }
.dlm-rs h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb4d0; }
.dlm-rs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; margin-bottom: 10px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.16); background: rgba(15, 23, 42, 0.6); color: #e2e8f0; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s; }
.dlm-rs-row:last-child { margin-bottom: 0; }
.dlm-rs-row:hover, .dlm-rs-row:focus-visible { border-color: rgba(148, 163, 184, 0.45); outline: none; }
.dlm-rs-row span { font-size: 16px; font-weight: 500; line-height: 1.25; }
.dlm-rs-row span i { margin-right: 6px; font-style: normal; color: #8b9ab5; }
.dlm-rs-row b { font-size: 16px; font-weight: 600; color: #fb7185; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlm-rs-row em { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.dlm-rs-row em u { display: block; height: 100%; border-radius: 3px; background: #f43f5e; }
.dlm-rs-row.is-on { border-color: #f43f5e; background: rgba(244, 63, 94, 0.08); box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.4), 0 0 22px rgba(244, 63, 94, 0.25); }
.dlm-rs-row.is-on span i { color: #fb7185; }
.dlm-rs-row.is-on em u { box-shadow: 0 0 8px rgba(244, 63, 94, 0.8); }
.dlm-mp { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #0b1120; }
.dlm-mp svg { display: block; width: 100%; height: 100%; }
.dlm-mp-road-edge { fill: none; stroke: #263043; stroke-linejoin: round; }
.dlm-mp-road { fill: none; stroke: #141b29; stroke-linejoin: round; }
.dlm-mp-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dlm-mp-line.is-me { stroke: var(--sim-me); filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.6)); }
.dlm-mp-line.is-ref { stroke: var(--sim-ref); }
.dlm-mp-hot-glow { fill: none; stroke: #f43f5e; stroke-linecap: round; opacity: 0.65; }
.dlm-mp-hot { fill: none; stroke: #fb7185; stroke-linecap: round; stroke-linejoin: round; }
.dlm-mp-box { fill: rgba(244, 63, 94, 0.1); stroke: #f43f5e; }
.dlm-mp-box-glow { fill: none; stroke: #f43f5e; opacity: 0.55; }
.dlm-mp-call { fill: rgba(42, 9, 16, 0.94); stroke: #f43f5e; }
.dlm-mp-k { fill: #fb7185; font-family: var(--f-ui); font-weight: 700; letter-spacing: 0.08em; }
.dlm-mp-t { fill: #f1f5f9; font-family: var(--f-ui); font-weight: 500; }
.dlm-mp-t .is-loss, .dlm-mp-d { fill: #fb7185; font-family: var(--f-ui); font-weight: 600; }
.dlm-mp-lead { stroke: rgba(148, 163, 184, 0.45); }
.dlm-mp-lead.is-hot { stroke: #f43f5e; }
.dlm-mp-n circle { fill: #0b1120; stroke: #64748b; }
.dlm-mp-n.is-loss circle { stroke: #fb923c; }
.dlm-mp-num, .dlm-mp-n.is-on text { fill: #e2e8f0; font-family: var(--f-ui); font-weight: 700; text-anchor: middle; }
.dlm-mp-n.is-loss .dlm-mp-num { fill: #fdba74; }
.dlm-mp-n.is-on circle { fill: #f43f5e; stroke: #fecdd3; }
.dlm-mp-n.is-on text { fill: #fff; }
.dlm-mp-leg { margin-top: 12px; }
.dlm-rs-k { display: inline-block; padding: 4px 10px; border-radius: 6px; background: rgba(244, 63, 94, 0.16); border: 1px solid rgba(244, 63, 94, 0.45); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fb7185; }
.dlm-rs-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dlm-rs-h h2 { margin: 0; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -0.01em; color: #f8fafc; }
.dlm-rs-h b { font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dlm-rs-say { margin: 10px 0 16px; font-size: clamp(20px, 1.75vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; color: #f8fafc; }
.dlm-rs-body .dlm-fx-big span { border: 1px solid; border-radius: 12px; padding: 12px 14px; }
.dlm-rs-body .dlm-fx-big span.is-ref { border-color: rgba(251, 191, 36, 0.55); background: rgba(251, 191, 36, 0.09); }
.dlm-rs-body .dlm-fx-big span.is-me { border-color: rgba(56, 189, 248, 0.55); background: rgba(56, 189, 248, 0.09); }
.dlm-rs-body .dlm-fx-big b { font-size: clamp(36px, 3.2vw, 50px); font-weight: 600; text-shadow: none; }
.dlm-rs-body .dlm-fx-nav { margin-top: 16px; }
.dlm-rs-body .dlm-fx-btn { flex: 1; justify-content: center; }
@media (max-width: 1199px) {
  .dlm-rs { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "map head" "map body" "rank rank"; }
  .dlm-rs-rank { margin-top: 16px; }
  .dlm-jg-grid { gap: 12px; }
  .dlm-score > div { padding: 0 18px; }
}
@media (max-width: 1023px) {
  .dlm-jg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dlm-jg-card.is-on { grid-column: 1 / -1; height: 280px; }
  .dlm-jg-card.is-soon { height: 230px; }
  .dlm-jg-card.is-on .dlm-jg-art { left: auto; right: 24px; top: 22px; width: 46%; height: calc(100% - 100px); }
  .dlm-jg-card.is-on > .dlm-spark { right: 52%; bottom: 56px; }
}
@media (max-width: 767px) {
  .dlm-crumbs { margin-bottom: 18px; padding: 8px 0; }
  .dlm-crumbs ol { font-size: 14px; }
  .dlm-crumbs-links { gap: 16px; }
  .dlm-crumbs-links button { font-size: 13.5px; }
  .dlm-pg-h { margin-bottom: 20px; }
  .dlm-jg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dlm-jg-card.is-on { height: 262px; }
  .dlm-jg-card.is-on .dlm-jg-art { left: 18px; right: 18px; top: 66px; width: auto; height: 104px; }
  .dlm-jg-card.is-on > .dlm-spark { left: 18px; width: calc(100% - 36px); bottom: 48px; height: 28px; }
  .dlm-jg-name { left: 18px; top: 16px; font-size: 30px; }
  .dlm-jg-badge { left: auto; right: 16px; top: 22px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(148, 163, 184, 0.22); font-size: 12px; }
  .dlm-jg-go { left: 18px; bottom: 16px; }
  .dlm-jg-card.is-soon { height: 210px; }
  .dlm-jg-card.is-soon .dlm-jg-v { right: 16px; bottom: 16px; max-height: calc(100% - 56px); font-size: 24px; }
  .dlm-jg-soon { left: 12px; top: 12px; font-size: 10.5px; padding: 3px 8px; }
  .dlm-pt-grid { gap: 12px; }
  .dlm-pt-card { min-height: 0; gap: 8px; padding: 14px 14px 12px; }
  .dlm-pt-top { flex-direction: column; align-items: flex-start; gap: 2px; }
  .dlm-pt-top b { font-size: 19px; }
  .dlm-pt-top small { font-size: 13px; }
  .dlm-pt-top em { margin-left: 0; order: 3; padding: 2px 9px; font-size: 13px; }
  .dlm-pt-art { min-height: 110px; }
  .dlm-pt-times { grid-template-columns: 1fr 1fr; gap: 6px; padding-top: 8px; }
  .dlm-pt-times small { font-size: 11.5px; }
  .dlm-pt-times b { font-size: 17px; }
  .dlm-pt-times .dlm-spark { grid-column: 1 / -1; height: 26px; }
  .dlm-pt-sub { margin-top: 28px; }
  .dlm-pt-list { columns: 1; }
  .dlm-pt-list li { padding: 12px 2px; font-size: 15.5px; }
  .dlm-pt-list em { font-size: 12.5px; }
  .dlm-hx { gap: 14px; margin-bottom: 14px; }
  .dlm-hx-l { gap: 12px; width: 100%; }
  .dlm-hx h1 { font-size: 46px; }
  .dlm-hx-ctl { width: 100%; justify-content: space-between; gap: 10px; }
  .dlm-hx-tk { min-width: 0; padding: 7px 12px; }
  .dlm-hx-tk b { font-size: 15px; }
  .dlm-hx-tk small { font-size: 12px; }
  .dlm-seg button { height: 38px; padding: 0 14px; font-size: 15px; }
  .dlm-score { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
  .dlm-score > div { padding: 0; border: 0; }
  .dlm-score .is-me { order: -1; }
  .dlm-score .is-delta { align-items: center; }
  .dlm-score .is-ref { align-items: flex-end; }
  .dlm-score small { font-size: 12px; }
  .dlm-score b { font-size: 22px; }
  .dlm-score .is-delta b { font-size: 38px; }
  #dlmRoot.is-fino .dlm-coach-subnav { margin-bottom: 18px; }
  #dlmRoot.is-fino .dlm-subnav-btn { flex: 0 0 auto; height: 50px; padding: 0 12px; font-size: 16px; }
  #dlmRoot.is-fino .dlm-subnav-btn i { width: 21px; height: 21px; font-size: 11.5px; }
  #dlmRoot.is-fino .dlm-subnav-btn small { font-size: 14px; }
  .dlm-rs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "map" "body" "rank"; }
  .dlm-rs-head { padding: 0 0 14px; border: 0; background: none; }
  .dlm-rs-say { margin-bottom: 0; font-size: 24px; }
  .dlm-rs-map { padding: 12px; }
  .dlm-rs-body { margin-top: 14px; padding: 14px; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; }
  .dlm-rs-rank { margin-top: 14px; padding: 14px; }
  .dlm-rs-row { padding: 12px 14px; }
  .dlm-rs-row span, .dlm-rs-row b { font-size: 15px; }
}
@media (max-width: 380px) {
  .dlm-hx-tk { padding: 6px 10px; }
  .dlm-seg button { padding: 0 11px; font-size: 14px; }
  .dlm-score b { font-size: 19px; }
  .dlm-score .is-delta b { font-size: 32px; }
}
#dlmRoot.is-fino .dlm-subnav-btn.is-on i { background: var(--sim-me); color: #04101f; }
#dlmRoot.is-fino .dlm-coach-subnav { background: rgba(6, 8, 13, 0.96); }
.dlm-mp-names { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: #cbd5e1; }
.dlm-mp-names li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.dlm-mp-names i { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid #64748b; font-style: normal; font-size: 11px; font-weight: 700; color: #e2e8f0; }
.dlm-mp-names .mp-pierde i { border-color: #fb923c; color: #fdba74; }
.dlm-mp-names .mp-on { color: #fb7185; font-weight: 600; }
.dlm-mp-names .mp-on i { border-color: #fecdd3; background: #f43f5e; color: #fff; }
.dlm-mp image { filter: brightness(1.7) contrast(1.05); }
/* Portada de Sim racing con el mismo estilo que Juego → Pista → Análisis (pedido del dueño, 02/11): letra más fina, títulos grandes, botones redondeados. */
.dlm-in-wrap .dlm-in-hero { border-color: rgba(148, 163, 184, 0.16); }
.dlm-in-wrap .dlm-in-hero-title { font-size: clamp(38px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.dlm-in-wrap .dlm-in-hero-lead { font-size: clamp(16px, 1.3vw, 18.5px); color: #a9b8cf; }
.dlm-in-wrap .dlm-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; }
.dlm-in-wrap .dlm-in-step-title { font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.dlm-in-wrap .dlm-in-step-lead { font-size: 17px; color: #a9b8cf; }
.dlm-in-wrap .dlm-in-more { font-size: 15px; font-weight: 600; }
.dlm-in-wrap .dlm-btn-primary, .dlm-in-wrap .dlm-btn-secondary { height: 50px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.dlm-in-wrap .dlm-btn-secondary { background: rgba(15, 23, 42, 0.55); border-color: rgba(148, 163, 184, 0.28); }
.dlm-in-wrap .dlm-in-screen, .dlm-in-wrap .dlm-in-flow { border-color: rgba(148, 163, 184, 0.16); background: #0a0f1c; }
.dlm-in-wrap .dlm-in-screen-bar { font-weight: 600; }
.dlm-in-wrap .dlm-in-step-node { font-weight: 600; }
.dlm-in-wrap h2, .dlm-in-wrap h3 { font-weight: 600; }
/* Retoques de la revisión de Gemini (02/11). */
.dlm-jg-card.is-soon .dlm-jg-v { text-align: end; }
#dlmRoot.is-fino .dlm-subnav-btn.is-on::after { left: 0; right: 0; box-shadow: 0 0 12px rgba(56, 189, 248, 0.65); }
.dlm-rs-rank { align-self: start; }
.dlm-rs-row span, .dlm-rs-row b { font-size: 16px; }
.dlm-rs-row b { font-weight: 600; }
@media (max-width: 767px) {
  .dlm-score { gap: 8px; }
  .dlm-score b { font-size: 19px; }
  .dlm-score .is-delta b { font-size: 34px; }
  .dlm-jg-card.is-soon .dlm-jg-v { font-size: 21px; }
  .dlm-pt-times b { font-size: 15px; }
  .dlm-rs-row span, .dlm-rs-row b { font-size: 15px; }
}
@media (max-width: 380px) {
  .dlm-score b { font-size: 17px; }
  .dlm-score .is-delta b { font-size: 30px; }
}
/* Tapas de los juegos (03/11): la foto atrás, oscurecida donde va el texto; las de "Próximamente", apagadas. */
.dlm-jg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: 0; }
.dlm-jg-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 9, 16, 0.78) 0%, rgba(6, 9, 16, 0.05) 32%, rgba(6, 9, 16, 0.1) 62%, rgba(6, 9, 16, 0.88) 100%); }
.dlm-jg-card > :not(.dlm-jg-img) { z-index: 2; }
.dlm-jg-card.is-soon .dlm-jg-img { filter: saturate(0.45) brightness(0.62); }
.dlm-jg-card.is-soon::after { background: linear-gradient(270deg, rgba(6, 9, 16, 0.85) 0%, rgba(6, 9, 16, 0.2) 45%, rgba(6, 9, 16, 0.55) 100%); }
.dlm-jg-card.is-soon .dlm-jg-v { color: rgba(241, 245, 249, 0.82); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.dlm-jg-card.is-on .dlm-jg-img { transition: transform 0.4s ease; }
.dlm-jg-card.is-on:hover .dlm-jg-img { transform: scale(1.04); }
.dlm-jg-name, .dlm-jg-badge, .dlm-jg-go { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65); }
@media (max-width: 1023px) { .dlm-jg-card.is-on .dlm-jg-img { object-position: 20% 40%; } }
/* Retoques de Gemini a las tapas (03/11): negros más profundos y cortina oscura detrás del nombre vertical. */
.dlm-jg-card.is-soon .dlm-jg-img { object-position: 32% 52%; filter: saturate(0.55) brightness(0.72) contrast(1.08); }
.dlm-jg-card.is-soon::after { background: linear-gradient(270deg, rgba(6, 9, 15, 0.92) 0%, rgba(6, 9, 15, 0.55) 28%, rgba(6, 9, 15, 0) 58%), linear-gradient(180deg, rgba(6, 9, 15, 0.72) 0%, rgba(6, 9, 15, 0) 26%, rgba(6, 9, 15, 0.88) 100%); }
.dlm-jg-card.is-soon .dlm-jg-v { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95); }
.dlm-jg-card.is-on .dlm-jg-img { object-position: 48% 54%; }
@media (max-width: 1023px) { .dlm-jg-card.is-on .dlm-jg-img { object-position: 50% 58%; } }
/* Revisión final (03/11, Gemini + Fable): las pestañas y pantallas viejas con el mismo contenedor que el Resumen. */
.dlm-hx-sub { margin: -10px 0 18px; font-size: 14px; color: #8b9ab5; }
#dlmRoot.is-fino :is(.dlm-plan-hero, .dlm-plan-card, .dlm-coach-callout, .dlm-card) { background: #0a0f1c; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; box-shadow: none; }
#dlmRoot.is-fino .dlm-plan-saving { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--sim-gain); }
#dlmRoot.is-fino .dlm-plan-saving :is(b, span) { color: var(--sim-gain); }
#dlmRoot.is-fino :is(.dlm-phase-pill, .dlm-phase-pill.is-ok, .dlm-phase-pill.is-warn, .dlm-phase-pill.is-loss) { border-top: 1px solid rgba(148, 163, 184, 0.16); background: #070b16; border-radius: 12px; }
#dlmRoot.is-fino .dlm-cl-row > span { text-transform: none; letter-spacing: 0; font-weight: 600; }
.dlm-garage-head .dlm-title, .dlm-cu-home-title { font-size: clamp(36px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
.dlm-cu-home-head { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dlm-ses-card, .dlm-cu-card { background: #0a0f1c; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 16px; box-shadow: none; }
@media (max-width: 640px) {
  .dlm-cu-card-foot { flex-wrap: nowrap; }
  .dlm-cu-personal { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dlm-cu-cta { flex-shrink: 0; }
  .dlm-rp-bigplay > span { width: 52px; height: 52px; }
}

/* ---------- Portada de Sim racing (03/11): Linear + Lando Norris + iRacing, guion de Gemini ---------- */
.pt { --pt-bg: #05070c; position: relative; color: #e2e8f0; }
.pt .dlm-crumbs { margin-bottom: 0; }
.pt-k { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sim-me); }
.pt-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(226, 232, 240, 0.28); background: rgba(10, 15, 28, 0.55); color: #f8fafc; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); transition: transform 0.2s, background 0.2s, border-color 0.2s; }
.pt-btn:hover { border-color: rgba(226, 232, 240, 0.6); transform: translateY(-1px); }
.pt-btn.is-main { border-color: transparent; background: var(--sim-me); color: #04101f; box-shadow: 0 10px 36px rgba(56, 189, 248, 0.35); }
.pt-btn.is-big { height: 60px; padding: 0 32px; font-size: 18px; }
.pt-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pt-ctas.is-center { justify-content: center; margin-top: 44px; }
/* Arranque: foto de cine a todo el ancho, con zoom lento al bajar */
.pt-hero { position: relative; display: flex; align-items: center; min-height: min(86vh, 860px); margin: 0 calc(50% - 50vw); padding: 80px max(24px, calc(50vw - 600px)); overflow: hidden; }
.pt-hero-bg { position: absolute; inset: 0; z-index: 0; }
.pt-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(calc(1.04 + var(--p, 0) * 0.14)); transform-origin: 70% 50%; filter: brightness(calc(1 - var(--p, 0) * 0.5)); }
.pt-hero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.55) 42%, rgba(5, 7, 12, 0) 70%), linear-gradient(180deg, rgba(5, 7, 12, 0) 60%, var(--pt-bg) 100%); }
.pt-hero-in { position: relative; z-index: 2; max-width: 640px; animation: ptIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.pt-hero h1 { margin: 18px 0 0; font-size: clamp(44px, 6.4vw, 92px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; color: #fff; }
.pt-hero p { margin: 22px 0 0; max-width: 520px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #b6c3d8; }
.pt-scroll { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(226, 232, 240, 0.4); border-radius: 14px; }
.pt-scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #e2e8f0; animation: ptScroll 1.8s ease-in-out infinite; }
@keyframes ptScroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes ptIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* Secciones */
.pt-sec { position: relative; padding: clamp(80px, 11vw, 150px) 0 0; }
.pt-h { max-width: 820px; margin: 0 0 clamp(32px, 4vw, 56px); }
.pt-h h2, .pt-coach h2 { margin: 14px 0 0; font-size: clamp(36px, 5.2vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.pt-h p { margin: 18px 0 0; max-width: 640px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #9fb0c8; }
.pt-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--pt-d, 0ms); }
.pt-up.is-in { opacity: 1; transform: none; }
/* La pantalla real, en un marco fino estilo Linear, que entra inclinada y se endereza */
.pt-frame { position: relative; padding: clamp(10px, 1.4vw, 18px); border-radius: 22px; border: 1px solid rgba(148, 163, 184, 0.16); background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(5, 7, 12, 0.9)); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset; }
.pt-tilt { opacity: 0; transform: perspective(1600px) rotateX(18deg) translateY(80px) scale(0.94); transform-origin: 50% 0; transition: opacity 1s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.pt-tilt.is-in { opacity: 1; transform: none; }
.pt-diag .pt-frame::before { content: ''; position: absolute; inset: -40% -10% auto; height: 60%; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(56, 189, 248, 0.16), transparent 70%); pointer-events: none; }
.pt-diag .dlm-rs { margin: 0; }
/* Columna fija: el texto baja y la captura de la derecha cambia */
.pt-st { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); }
.pt-st-txt { padding: 4vh 0 30vh; }
.pt-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s; }
.pt-step.is-on { opacity: 1; }
.pt-step-n { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sim-me); }
.pt-step h3 { margin: 12px 0 0; font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; color: #fff; }
.pt-step p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #9fb0c8; }
.pt-step-img { display: none; }
.pt-st-view { position: sticky; top: calc(var(--dl-hdr, 64px) + 6vh); align-self: start; height: min(70vh, 640px); }
.pt-st-view .pt-frame { height: 100%; overflow: hidden; }
.pt-st-img { position: absolute; inset: clamp(10px, 1.4vw, 18px); width: calc(100% - 2 * clamp(10px, 1.4vw, 18px)); height: calc(100% - 2 * clamp(10px, 1.4vw, 18px)); object-fit: cover; object-position: 0 0; border-radius: 12px; opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.pt-st-img.is-on { opacity: 1; transform: none; }
/* Corte: título gigante que se abre al bajar, el trazado que se dibuja y los números que cuentan */
.pt-corte { overflow: hidden; margin: 0 calc(50% - 50vw); padding: clamp(110px, 14vw, 200px) max(24px, calc(50vw - 600px)); background: radial-gradient(70% 60% at 50% 40%, #121a2b, var(--pt-bg) 70%); text-align: center; }
.pt-corte-art { position: absolute; inset: 8% 0; opacity: 0.22; pointer-events: none; }
.pt-corte-art .dlm-art { width: 100%; height: 100%; }
.pt-corte-art .dlm-art-fg { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s ease; }
.pt-corte.is-in .pt-corte-art .dlm-art-fg { stroke-dashoffset: 0; }
.pt-corte-art .dlm-art-bg { stroke-width: 40; }
.pt-corte-art .dlm-art-fg { stroke-width: 10; }
.pt-giant { position: relative; margin: 0; font-size: clamp(54px, 11vw, 176px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.92; text-transform: uppercase; color: #fff; }
.pt-giant span { display: block; white-space: nowrap; }
.pt-l1 { transform: translateX(calc((0.5 - var(--p, 0.5)) * 30%)); }
.pt-l2 { transform: translateX(calc((var(--p, 0.5) - 0.5) * 30%)); color: transparent; -webkit-text-stroke: 1.5px rgba(226, 232, 240, 0.85); }
.pt-corte-p { position: relative; max-width: 620px; margin: 34px auto 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #b6c3d8; }
.pt-nums { position: relative; display: flex; justify-content: center; gap: clamp(28px, 7vw, 110px); margin-top: 56px; }
.pt-num b { display: block; font-size: clamp(48px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.pt-num span { display: block; margin-top: 8px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #8b9ab5; }
/* Coach por voz: cambio de clima, foto a todo el ancho con paneo */
.pt-coach { position: relative; display: flex; align-items: center; min-height: min(90vh, 820px); margin: clamp(80px, 11vw, 150px) calc(50% - 50vw) 0; padding: 80px max(24px, calc(50vw - 600px)); overflow: hidden; }
.pt-coach-bg { position: absolute; inset: -12% 0; z-index: 0; transform: translateY(calc((var(--p, 0.5) - 0.5) * -14%)); }
.pt-coach-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.pt-coach::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.6) 45%, rgba(5, 7, 12, 0.1) 75%), linear-gradient(180deg, var(--pt-bg) 0%, rgba(5, 7, 12, 0) 18%, rgba(5, 7, 12, 0) 82%, var(--pt-bg) 100%); }
.pt-coach-in { position: relative; z-index: 2; max-width: 560px; }
.pt-coach-in p { margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #b6c3d8; }
.pt-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(15, 23, 42, 0.6); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb0c8; }
.pt-tag.is-trial { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.pt-coach-card { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: 30px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(56, 189, 248, 0.35); background: rgba(5, 10, 20, 0.72); backdrop-filter: blur(10px); }
.pt-coach-card b { font-size: 18px; font-weight: 600; color: #fff; }
.pt-wave { display: flex; align-items: center; gap: 4px; height: 32px; }
.pt-wave i { width: 4px; height: var(--h); border-radius: 2px; background: var(--sim-me); animation: ptWave 1.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ptWave { 0%, 100% { transform: scaleY(0.4); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }
/* Progreso: dos tarjetas grandes */
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pt-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0a0f1c; cursor: pointer; transition: border-color 0.25s, transform 0.25s; }
.pt-card.is-late { transition-delay: 0.12s; }
.pt-card:hover, .pt-card:focus-visible { border-color: rgba(56, 189, 248, 0.55); outline: none; }
.pt-card h3 { margin: 0; font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #fff; }
.pt-card img { width: 100%; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.12); }
.pt-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--sim-me); }
.pt-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pt-mini { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.14); background: rgba(15, 23, 42, 0.5); }
.pt-mini-art { height: 90px; }
.pt-mini-art .dlm-art { width: 100%; height: 100%; }
.pt-mini b { font-size: 17px; font-weight: 600; color: #fff; }
.pt-mini small { font-size: 13.5px; color: #9fb0c8; font-variant-numeric: tabular-nums; }
.pt-mini em { font-style: normal; }
.pt-mini em.is-loss { color: #fb7185; }
/* Lo que viene */
.pt-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pt-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.14); background: linear-gradient(180deg, rgba(15, 23, 42, 0.6), rgba(5, 7, 12, 0.6)); }
.pt-soon-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.22); color: #cbd5e1; }
.pt-soon h3 { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.pt-soon p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #9fb0c8; }
/* Cierre: las tapas entran como un abanico */
.pt-cierre { padding-bottom: clamp(80px, 10vw, 140px); text-align: center; }
.pt-cierre .pt-h { margin-left: auto; margin-right: auto; }
.pt-cierre .pt-h p { margin-left: auto; margin-right: auto; }
.pt-fan .dlm-jg-card { opacity: 0; transform: translateY(60px) rotate(var(--r, 0deg)); transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.pt-fan .dlm-jg-card:nth-child(1) { --r: -6deg; }
.pt-fan .dlm-jg-card:nth-child(2) { --r: -3deg; transition-delay: 80ms; }
.pt-fan .dlm-jg-card:nth-child(3) { transition-delay: 160ms; }
.pt-fan .dlm-jg-card:nth-child(4) { --r: 3deg; transition-delay: 240ms; }
.pt-fan .dlm-jg-card:nth-child(5) { --r: 6deg; transition-delay: 320ms; }
.pt-fan.is-in .dlm-jg-card { opacity: 1; transform: none; }
.pt-cierre .dlm-jg-grid { text-align: left; }
@media (max-width: 1023px) {
  .pt-st { grid-template-columns: 1fr; }
  .pt-st-view { display: none; }
  .pt-st-txt { padding: 0; }
  .pt-step { min-height: 0; opacity: 1; margin-bottom: 56px; }
  .pt-step-img { display: block; width: 100%; margin-top: 20px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.16); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
  .pt-two, .pt-three { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pt-hero { min-height: 88vh; align-items: flex-end; padding-top: 120px; padding-bottom: 90px; }
  .pt-hero-bg img { object-position: 64% 50%; }
  .pt-hero::after { background: linear-gradient(180deg, rgba(5, 7, 12, 0.2) 0%, rgba(5, 7, 12, 0.55) 45%, rgba(5, 7, 12, 0.96) 80%, var(--pt-bg) 100%); }
  .pt-ctas .pt-btn { flex: 1 1 100%; justify-content: center; }
  .pt-diag .pt-frame { padding: 8px; border-radius: 16px; }
  .pt-nums { flex-wrap: wrap; gap: 28px 36px; }
  .pt-coach { align-items: flex-end; min-height: 92vh; }
  .pt-coach::after { background: linear-gradient(180deg, var(--pt-bg) 0%, rgba(5, 7, 12, 0.2) 22%, rgba(5, 7, 12, 0.7) 55%, rgba(5, 7, 12, 0.97) 85%); }
  .pt-giant { font-size: clamp(44px, 14vw, 72px); }
  .pt-l1, .pt-l2 { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-up, .pt-tilt, .pt-fan .dlm-jg-card, .pt-hero-in { opacity: 1; transform: none; animation: none; transition: none; }
  .pt-wave i, .pt-scroll::after { animation: none; }
}
#view-sim { overflow-x: clip; }
/* (08/11) Con la portada, el hero a sangre sale del ancho de la sección: sin el recorte (el body ya recorta el sobrante). */
#view-sim:has(.pt-hero) { overflow-x: visible; }
/* Ajustes de la portada tras medir (03/11): el título gigante entra entero y las fotos se ven en celular. */
.pt-giant { font-size: clamp(48px, 9vw, 150px); }
.pt-l1 { transform: translateX(calc((0.5 - var(--p, 0.5)) * 18%)); }
.pt-l2 { transform: translateX(calc((var(--p, 0.5) - 0.5) * 18%)); }
@media (max-width: 767px) {
  .pt-giant { font-size: 13vw; letter-spacing: -0.05em; }
  .pt-giant span { white-space: normal; }
  .pt-hero::after { background: linear-gradient(180deg, rgba(5, 7, 12, 0) 0%, rgba(5, 7, 12, 0.15) 30%, rgba(5, 7, 12, 0.85) 62%, var(--pt-bg) 100%); }
  .pt-hero-bg img { object-position: 66% 30%; filter: none; transform: none; }
  .pt-coach-bg { inset: 0; transform: none; }
  .pt-coach-bg img { object-position: 72% 50%; }
  .pt-coach::after { background: linear-gradient(180deg, var(--pt-bg) 0%, rgba(5, 7, 12, 0) 14%, rgba(5, 7, 12, 0.1) 38%, rgba(5, 7, 12, 0.88) 66%, var(--pt-bg) 100%); }
}
/* Celular y tablet con efectos (04/11, pedido del dueño): zoom de la foto, título gigante que se abre,
   paneo del coach y la pantalla fija arriba mientras el texto baja. */
@media (max-width: 1023px) {
  .pt-st { display: flex; flex-direction: column; }
  .pt-st-view { order: -1; align-self: stretch; display: block; position: sticky; top: calc(var(--dl-hdr, 56px) + 8px); z-index: 2; height: min(46vh, 380px); margin-bottom: 8px; }
  .pt-st-view .pt-frame { padding: 6px; border-radius: 16px; }
  .pt-st-img { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 10px; }
  .pt-st-txt { padding: 0 0 20vh; }
  .pt-step { min-height: 58vh; margin: 0; opacity: 0.28; justify-content: flex-start; padding-top: 6vh; }
  .pt-step.is-on { opacity: 1; }
  .pt-step-img { display: none; }
}
@media (max-width: 767px) {
  .pt-hero-bg img { object-position: 66% 30%; transform: scale(calc(1.06 + var(--p, 0) * 0.22)); filter: brightness(calc(1 - var(--p, 0) * 0.55)); }
  .pt-giant { font-size: 10.5vw; letter-spacing: -0.05em; }
  .pt-giant span { white-space: nowrap; }
  .pt-l1 { transform: translateX(calc((0.5 - var(--p, 0.5)) * 22%)); }
  .pt-l2 { transform: translateX(calc((var(--p, 0.5) - 0.5) * 22%)); }
  .pt-coach-bg { inset: -10% 0; transform: translateY(calc((var(--p, 0.5) - 0.5) * -16%)); }
}
@media (max-width: 1023px) {
  .pt-st-view .pt-frame { background: #070b14; }
  .pt-step { min-height: 0; justify-content: flex-start; padding: 6vh 0 18vh; }
}

/* (08/11) Sim racing, rediseño de organización (boceto de Gemini como punto de partida, sin neón):
   A) portada corta con vista previa del análisis, B) juego + pista en una pantalla, C) cabecera
   compacta del análisis en celular. Sobrio, como el Live Timing. */
/* A · Portada corta */
.pt.is-short .pt-sec { padding-top: clamp(40px, 4.5vw, 72px); }
.pt-hero.is-short { min-height: min(72vh, 720px); padding-top: 56px; padding-bottom: 56px; }
.pt-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center; width: 100%; }
.pt-hero.is-short .pt-hero-in { max-width: 620px; }
.pt-hero .pt-prev { grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 640px; justify-self: end; padding: 18px; background: rgba(10, 15, 28, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pt-prev-map .dlm-mp { aspect-ratio: auto !important; height: clamp(240px, 42vw, 400px); }
.pt-hero.is-short { padding-bottom: 40px; }
.pt-hero .pt-prev h2 { font-size: clamp(19px, 1.5vw, 24px); }
.pt-hero .pt-prev p { font-size: 15px; }
.pt-hero .pt-prev .pt-prev-note { font-size: 13px; }
.pt-hero .pt-prev .pt-btn { height: 44px; font-size: 14.5px; margin-top: 0; }
.pt-hero .pt-prev-txt { gap: 10px; }
@media (max-width: 1023px) {
  .pt-hero-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-height: 520px) {
  .pt-hero.is-short { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .pt-hero.is-short h1 { font-size: 28px; }
  .pt-hero.is-short p { margin-top: 8px; font-size: 14.5px; }
  .pt-hero.is-short .pt-pillars { margin-top: 10px; }
  .pt-hero.is-short .pt-ctas { margin-top: 14px; }
  .pt-hero.is-short .pt-btn { height: 44px; }
}
.pt-hero.is-short h1 { font-size: clamp(34px, 4.8vw, 68px); letter-spacing: -0.035em; line-height: 1.02; max-width: 760px; }
.pt-hero.is-short p { margin-top: 16px; font-size: clamp(15.5px, 1.35vw, 18px); max-width: 560px; }
.pt-pillars { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 500; color: #cbd5e1; }
.pt-pillars li { display: inline-flex; align-items: center; gap: 7px; }
.pt-pillars li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sim-me); }
.pt-hero.is-short .pt-ctas { margin-top: 24px; }
.pt-prev-sec { padding-top: clamp(28px, 4vw, 56px) !important; }
.pt-prev { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px 36px; align-items: center; padding: clamp(18px, 2.4vw, 32px); border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0a0f1c; }
.pt-prev-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.pt-badge-ej { display: inline-block; padding: 4px 10px; border-radius: 6px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4); color: #fbbf24; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-prev h2 { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: #fff; }
.pt-prev h2 b { font-weight: 600; color: var(--sim-me); }
.pt-prev h2 em { font-style: normal; font-variant-numeric: tabular-nums; }
.pt-prev h2 em.is-loss { color: #fb7185; }
.pt-prev p { margin: 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: #cbd5e1; }
.pt-prev .pt-prev-note { font-size: 13.5px; color: #8fa0c8; }
.pt-prev .pt-btn { margin-top: 6px; height: 48px; font-size: 15px; }
.pt-prev-map { min-width: 0; padding: 12px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.14); background: #070b14; }
.pt-prev-map .dlm-mp { pointer-events: none; background: #0b162f; }
.pt-prev-map .dlm-mp-leg { display: flex; margin-top: 10px; }
.pt.is-short .pt-cierre { text-align: left; padding-bottom: 0; }
.pt.is-short .pt-cierre .pt-h { margin-left: 0; }
.pt.is-short .pt-cierre .pt-h p { margin-left: 0; }
.pt.is-short .pt-prox { padding-bottom: clamp(70px, 9vw, 120px); }
@media (max-width: 1023px) {
  .pt-prev { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pt-hero.is-short { min-height: 0; padding-top: 44px; padding-bottom: 40px; }
  .pt-hero.is-short h1 { font-size: 34px; }
  .pt-hero.is-short .pt-ctas { flex-direction: column; align-items: stretch; }
  .pt-hero.is-short .pt-btn { justify-content: center; height: 48px; }
  .pt-prev { gap: 18px; padding: 16px; }
  .pt-prev h2 { font-size: 21px; }
  .pt-prev .pt-btn { align-self: stretch; justify-content: center; }
  .pt-prev-map { padding: 10px; }
}
/* B · Juego + pista en una pantalla */
.dlm-game-strip { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 2px 0 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-game-strip::-webkit-scrollbar { display: none; }
.dlm-game-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.18); background: #0a0f1c; color: #8b9ab5; font-family: var(--f-ui); font-size: 14px; font-weight: 500; white-space: nowrap; }
.dlm-game-pill.is-on { border-color: var(--sim-me); background: rgba(56, 189, 248, 0.14); color: #f8fafc; font-weight: 600; cursor: default; }
.dlm-game-pill small { font-size: 11.5px; font-weight: 600; color: #64748b; }
.dlm-game-pill.is-on small { color: var(--sim-me); }
.dlm-pg-h.is-pistas { margin-bottom: 22px; }
.dlm-pg-h.is-pistas h1 { font-size: clamp(34px, 4.4vw, 56px); }
.dlm-pg-h.is-pistas p { font-size: clamp(15px, 1.3vw, 18px); }
.dlm-pg-ej { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px !important; }
.dlm-pg-ej .dlm-link-btn { height: 30px; font-size: 13.5px; }
.dlm-pt-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--sim-me); }
/* C · Cabecera compacta del análisis en celular */
.dlm-hx-m { display: none; }
.dlm-hx-ctl > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
/* Celular parado y también celular apaisado (poco alto): la misma cabecera compacta. */
@media (max-width: 767px), (max-width: 1023px) and (max-height: 520px) {
  #dlmRoot.is-fino .dlm-crumbs { display: none; }
  .dlm-score { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; }
  .dlm-score > div { padding: 0; border: 0; }
  .dlm-score .is-me { order: -1; }
  .dlm-score .is-delta { align-items: center; }
  .dlm-score .is-ref { align-items: flex-end; }
  .dlm-hx-d { display: none !important; }
  .dlm-hx-m { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
  .dlm-hx-back { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.24); background: #0b1020; color: #e2e8f0; cursor: pointer; }
  .dlm-hx-sel { flex: 1 1 auto; display: block; min-width: 0; height: 36px; margin: 0; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.24); background: #0b1020 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: #f8fafc; font-family: var(--f-ui); font-size: 15px; font-weight: 600; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
  .dlm-hx-sel.is-static { background-image: none; padding-right: 12px; cursor: default; }
  .dlm-hx-m .dlm-seg { flex: 0 0 auto; padding: 3px; }
  .dlm-hx-m .dlm-seg button { height: 28px; padding: 0 10px; font-size: 13px; }
  .dlm-hx-m .dlm-seg-note { margin: 0; font-size: 12px; }
  .dlm-hx { gap: 8px; margin-bottom: 10px; }
  .dlm-hx-l { gap: 6px; }
  .dlm-score { padding: 7px 12px; border-radius: 10px; background: #0a0f1c; border: 1px solid rgba(148, 163, 184, 0.16); gap: 8px; align-items: center; }
  .dlm-score > div { gap: 1px; }
  .dlm-score small { font-size: 10px; letter-spacing: 0.08em; }
  .dlm-score b { font-size: 16.5px; }
  .dlm-score .is-delta b { font-size: 20px; text-shadow: none; }
  .dlm-score .dlm-glos { width: 15px; height: 15px; margin-left: 4px; font-size: 9.5px; }
  .dlm-hx-sub { margin: -2px 0 8px; font-size: 12.5px; }
  #dlmRoot.is-fino .dlm-sample-bar { margin-bottom: 8px; padding: 6px 10px; font-size: 12px; border-left-width: 3px; }
  #dlmRoot.is-fino .dlm-sample-bar-txt svg { width: 14px; height: 14px; }
  #dlmRoot.is-fino .dlm-coach-subnav { margin-bottom: 12px; }
  #dlmRoot.is-fino .dlm-subnav-btn { height: 44px; padding: 0 10px; font-size: 14.5px; }
  #dlmRoot.is-fino .dlm-subnav-btn i { width: 20px; height: 20px; font-size: 11px; }
}
/* Portada corta en celular: los bloques de abajo, más compactos (lo principal ya está arriba). */
@media (max-width: 767px) {
  .pt.is-short .pt-soon { padding: 18px; gap: 8px; }
  .pt.is-short .pt-soon h3 { font-size: 18px; }
  .pt.is-short .pt-soon p { font-size: 14.5px; }
  .pt.is-short .pt-soon-ico { width: 36px; height: 36px; }
  .pt.is-short .pt-card { padding: 18px; gap: 10px; }
  .pt.is-short .pt-card h3 { font-size: 20px; }
}
/* Pantallas grandes (08/11, pedido del dueño: en su monitor de ~2000 px Sim racing era una columna de
   1280 con franjas negras a los costados). La sección se ensancha hasta 2000 px con 60 px de borde;
   el hero a sangre acompaña; las pistas van en 3 columnas y el calendario plegado en 3. */
@media (min-width: 1600px) {
  main:has(#view-sim:not(.hidden)) { max-width: none; }
  #view-sim { width: min(2000px, calc(100% - 120px)); padding-left: 0; padding-right: 0; }
  .pt-hero { padding-left: max(60px, calc(50vw - 1000px)); padding-right: max(60px, calc(50vw - 1000px)); }
  .pt-h { max-width: 980px; }
  .pt-hero.is-short h1 { max-width: 900px; }
  .pt-hero.is-short p { max-width: 640px; }
  .dlm-pt-grid { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 24px; }
  .dlm-pt-list { columns: 3; }
  .pt-prev { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
@media (max-width: 380px) {
  .dlm-hx-sel { font-size: 14px; padding-left: 10px; }
  .dlm-hx-m .dlm-seg button { padding: 0 8px; font-size: 12.5px; }
  .dlm-score b { font-size: 15.5px; }
  .dlm-score .is-delta b { font-size: 19px; }
}

/* (07/11) Encabezado del Live Timing: las letras chicas (estado de pista, FINAL/EN VIVO,
   subtítulo, clima, DIFERIDO) pasan a Geist, igual que las etiquetas de Dirección de
   carrera (12 px, negrita). Orbitron queda solo en el título grande; números en Rajdhani. */
#view-livetiming .pc-pw-status-label, #view-livetiming #ltLiveText, #view-livetiming .pc-pw-meteo-lbl,
#view-livetiming .pc-pw-tvsync-lbl, #view-livetiming .pc-pw-gp-sub { font-family: var(--f-ui); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; }

/* (07/11) Recuadro grande del Live Timing liso, como Mapa, Dirección de carrera y Noticias:
   sin fibra de carbono, sin raya ni brillo rojo (pedido del dueño, aprobado por Gemini). */
#view-livetiming > .carbon-panel { background: #07090f; background-image: none; border: 1px solid #22293d; box-shadow: none; }
/* (07/11) Cartel de sesión suspendida arriba de la tabla (mismo estilo que Dirección de carrera). */
.pc-pw-suspend { margin-bottom: 10px; }
/* (07/11) RADIOS (team radio) del Live Timing. Diseño de Gemini (director de arte):
   tarjeta de una línea con el chasis de Dirección de carrera (fondo, borde, banda
   izquierda del equipo, chapa de hora en Rajdhani) y la cajita de siglas como
   recorte de la placa de la tabla (Orbitron, color pleno del equipo, tinta
   --team-ink). Sonando: fondo y borde apenas más claros, botón invertido; sin neón. */
#ltRadioFeed { max-height: 440px; }
.pc-pw-radio-item { --rc: rgb(var(--team-rgb, 100, 116, 139)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 3px 10px 10px 3px; background: #0b0e17; border: 1px solid #252d44; border-left: 5px solid var(--rc); transition: background-color 0.15s ease, border-color 0.15s ease; }
.pc-pw-radio-item.is-playing { background: #131b2e; border-color: #3b4868; border-left-color: var(--rc); }
.pc-pw-radio-tla { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 3.3em; padding: 6px 8px 5px; border-radius: 6px; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 13px; line-height: 1; letter-spacing: 0.04em; text-align: center; color: var(--team-ink, #ffffff); background: rgb(var(--team-rgb, 255, 24, 1)); }
.pc-pw-radio-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 8px; background: #131826; border: 1px solid #2a344d; color: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.pc-pw-radio-btn:hover { background: #1c2438; border-color: #3b4868; }
.pc-pw-radio-item.is-playing .pc-pw-radio-btn { background: #f1f5f9; border-color: #f1f5f9; color: #0b0e17; }
.pc-pw-radio-btn svg { width: 15px; height: 15px; fill: currentColor; display: block; }
.pc-pw-radio-player { flex: 1; min-width: 68px; display: flex; flex-direction: column; gap: 5px; }
.pc-pw-radio-track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: #1a2236; overflow: hidden; cursor: pointer; }
.pc-pw-radio-fill { display: block; height: 100%; width: 0; background: var(--rc); border-radius: 3px; transition: width 0.1s linear; }
.pc-pw-radio-time { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 13px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: #94a3b8; }
.pc-pw-radio-item.is-playing .pc-pw-radio-time { color: #e2e8f0; }
/* No se pudo reproducir: el aviso reemplaza al reloj, lo demás queda igual. */
.pc-pw-radio-err { display: none; font-family: var(--f-ui); font-size: 12px; line-height: 1.1; color: #fb923c; }
.pc-pw-radio-item.is-error .pc-pw-radio-time { display: none; }
.pc-pw-radio-item.is-error .pc-pw-radio-err { display: block; }
.pc-pw-radio-when { flex-shrink: 0; align-self: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 17px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0.03em; color: #f1f5f9; background: #131826; border: 1px solid #2a344d; border-top: 2px solid var(--rc); border-radius: 6px; padding: 6px 9px 5px; white-space: nowrap; }
.pc-pw-radio-auto { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 6px; background: #131826; border: 1px solid #2a344d; color: #94a3b8; font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-pw-radio-auto:hover { background: #1c2438; border-color: #3b4868; }
.pc-pw-radio-auto i { position: relative; width: 26px; height: 14px; border-radius: 7px; background: #2a344d; transition: background .15s; }
.pc-pw-radio-auto i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; transition: transform .15s, background .15s; }
.pc-pw-radio-auto[aria-pressed="true"] { color: #f1f5f9; border-color: #3b4868; }
.pc-pw-radio-auto[aria-pressed="true"] i { background: #22c55e; }
.pc-pw-radio-auto[aria-pressed="true"] i::after { transform: translateX(12px); background: #f1f5f9; }
.pc-pw-radio-empty { font-family: var(--f-ui); font-size: 15px; color: #8b93a7; }
@media (min-width: 1024px) {
  .pc-pw-radio-item { padding: 10px 14px; gap: 12px; }
  .pc-pw-radio-tla { font-size: 13.5px; padding: 6px 9px 5px; }
  .pc-pw-radio-btn { width: 36px; height: 36px; }
  .pc-pw-radio-time { font-size: 13.5px; }
  .pc-pw-radio-when { font-size: 18px; padding: 6px 11px 5px; }
}
/* En compu, con Mapa + Dirección de carrera + Radios + Noticias (4 recuadros en una grilla
   de 3 columnas), Noticias baja a todo el ancho (Gemini 07/11). Solo cuando Radios está visible:
   el selector de Gemini (nth-child) lo hacía siempre. */
@media (min-width: 1001px) {
  .pc-pw-below-grid:has(#ltRadioBox:not(.hidden)) > #ltNewsBox:not(.hidden) { grid-column: 1 / -1; }
}

/* ============================================================================
   (08/11) SISTEMA VISUAL ÚNICO DEL LIVE TIMING — decidido por Gemini (director de
   arte) a partir de la auditoría de coherencia (rama prueba/lt-coherencia).
   4 planos de fondo: panel #07090f → recuadros y cajas de consola #0b0e17 →
   tarjetas de mensaje #0f1422 → chapas de hora y botones #151c2e.
   2 grises de borde: #22293d (estructura) y #2a344d (botones y chapas).
   4 radios: panel 14 / recuadros 10 / cajas, tarjetas y cartel 8 / internos 6.
   Títulos de recuadro (Mapa, Dirección de carrera, Radios, Noticias, agentes):
   Geist 700 13 px amarillo #fbbf24. OJO: el título y la leyenda del mapa en
   Geist amplían la excepción del 07/11 de CLAUDE.md (Orbitron en títulos del
   LT): CAMBIO DE REGLA, lo decide el dueño.
   No toca la tabla ni la placa del piloto (diseño aprobado 24/10).
   ========================================================================== */

/* Nivel 0: panel principal */
#view-livetiming > .carbon-panel { background: #07090f; background-image: none; border: 1px solid #22293d; border-radius: 14px; box-shadow: none; }

/* Espaciado: consola → tabla → recuadros, y entre recuadros */
.pc-pw-workspace { gap: 12px; }
.pc-pw-below-grid { gap: 12px; }

/* Nivel 1: recuadros (Mapa, Dirección de carrera, Radios, Noticias, agentes en repetición) */
#ltMapCard, details.pc-pw-fold, .pc-pw-below-grid > div:has(> #ltAgentsFeed) { background: #0b0e17; border: 1px solid #22293d; border-radius: 10px; padding: 12px; }

/* Cabeceras y títulos de recuadro iguales */
.pc-pw-map-head, details.pc-pw-fold > summary { min-height: 20px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#ltMapTitle, .pc-pw-rc-title, .pc-pw-below-grid > div:has(> #ltAgentsFeed) > span {
  font-family: var(--f-ui); font-weight: 700; font-size: 13px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; margin: 0;
}
details.pc-pw-fold[open] > summary { margin-bottom: 10px; }
#ltMapCard > :not(.pc-pw-map-head), .pc-pw-below-grid > div:has(> #ltAgentsFeed) > #ltAgentsFeed { margin-top: 10px; }

/* Leyenda S1/S2/S3 y textos de estado del mapa (misma letra que las etiquetas de los otros recuadros) */
.is-live-mode #ltMapCard.is-map-live .pc-pw-map-legend { gap: 12px; }
.pc-pw-map-lg { font-family: var(--f-ui); font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: 0.06em; color: #94a3b8; gap: 5px; }
.pc-pw-map-lg::before { width: 12px; height: 3px; border-radius: 2px; }
.pc-pw-map-lg-1::before { color: #e11d48; } .pc-pw-map-lg-2::before { color: #38bdf8; } .pc-pw-map-lg-3::before { color: #eab308; }
/* El canvas respeta el relleno del recuadro (antes se salía 4 px por lado); 10 px bajo la cabecera. */
#ltMapCard.is-map-live > .relative { margin: 10px 0 0; }
#ltMapStatus, .pc-pw-map-notice { font-family: var(--f-ui); font-weight: 500; font-size: 12px; line-height: 1.4; color: #94a3b8; }
.pc-pw-map-notice { background: rgba(7, 9, 15, 0.82); border-radius: 8px; }
.pc-pw-map-notice .text-gray-600 { color: #64748b; }

/* Consola: cajas en nivel 1, botones en nivel 3, esquinas 8 / 6 */
.pc-pw-console { --con-r: 8px; border-bottom-color: #22293d; }
.pc-pw-status, .pc-pw-meteo-chip, .pc-pw-lapbox, .pc-pw-seg, .pc-pw-tvsync { background: #0b0e17; border: 1px solid #22293d; border-radius: 8px; }
.pc-pw-status-sep { background: #22293d; }
.pc-pw-tbtn, .pc-pw-tvsync-btn, button.pc-pw-tvsync-val, .pc-pw-back { background: #151c2e; border: 1px solid #2a344d; border-radius: 6px; }
.pc-pw-tvsync-pop { border-color: #2a344d; border-radius: 10px; }
.pc-pw-tvsync-live { border-color: #2a344d; }
/* Diferido apagado: ícono gris como los demás íconos de la consola; se enciende solo con .is-on */
#view-livetiming .pc-pw-tvsync:not(.is-on) .pc-pw-ico { color: #64748b; }
#view-livetiming .pc-pw-tvsync:not(.is-on) .pc-pw-tvsync-lbl { color: #cbd5e1; }

/* Nivel 2 (tarjetas de mensaje) y nivel 3 (chapas y botones) en Dirección de carrera, Radios, Noticias y agentes */
#ltRaceControlFeed, #ltRadioFeed, #ltNewsFeed, #ltAgentsFeed { display: flex; flex-direction: column; gap: 8px; margin-top: 0; }
#ltRaceControlFeed > * + *, #ltRadioFeed > * + *, #ltNewsFeed > * + *, #ltAgentsFeed > * + * { margin-top: 0 !important; }
.pc-pw-rc-item, .pc-pw-radio-item { background: #0f1422; border: 1px solid #22293d; border-left: 4px solid var(--rc, #64748b); border-radius: 3px 8px 8px 3px; }
.pc-pw-rc-when, .pc-pw-radio-when { background: #151c2e; border: 1px solid #2a344d; border-top: 2px solid var(--rc, #64748b); border-radius: 6px; }
/* Botón play: mantiene 38/36 px (tamaño de toque en celular); solo cambia el plano y la esquina. */
.pc-pw-radio-btn { background: #151c2e; border: 1px solid #2a344d; border-radius: 6px; }

/* Celular: cartel "Tocá un piloto" en el mismo sistema, solo el ícono de girar, y filas sin el borde teñido de la regla genérica de escudería */
.pc-pw-rotate-txt { display: none; }
#view-livetiming .pc-pw-row[class*="livery-"] { background-image: none; }
@media (max-width: 700px) {
  .pc-pw-mlegend { margin: 0 6px; padding: 7px 12px; background: #0b0e17; border: 1px solid #22293d; border-radius: 8px; }
  #view-livetiming .pc-pw-row[class*="livery-"] { border-color: #22293d !important; border-left: 4px solid var(--pb-acc, rgb(var(--team-rgb, 255, 24, 1))) !important; }
}
/* Cartel SESIÓN SUSPENDIDA alineado con el cartel "Tocá un piloto" y las tarjetas (revisión final de Gemini 08/11):
   .pc-pw-workspace ya separa con gap 12 px, así que sin margen abajo; en celular, 6 px a los lados. */
.pc-pw-suspend { margin: 0; }
@media (max-width: 700px) { .pc-pw-suspend { margin: 0 6px; } }

/* (08/11) RADIOS con la misma forma que un mensaje de Dirección de carrera (pedido del dueño:
   las cajitas de color no tenían que ver con el resto). Banda del equipo a la izquierda,
   etiqueta "SIGLAS · ESCUDERÍA" en el color del equipo (como "VERDE"), nombre en blanco y la
   misma chapa de hora. La barra de avance aparece solo con la radio sonando o en pausa. */
.pc-pw-radio-item { align-items: flex-start; gap: 12px; padding: 11px 12px; }
.pc-pw-radio-item.is-playing, .pc-pw-radio-item.is-paused { background: #151c2e; border-color: #2a344d; border-left-color: var(--rc); }
.pc-pw-radio-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pc-pw-radio-tla { display: block; min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; font-family: var(--f-ui); font-weight: 700; font-size: 12px; line-height: 1.15; letter-spacing: 0.08em; text-align: left; color: var(--rc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-pw-radio-name { font-family: var(--f-ui); font-weight: 500; font-size: 16px; line-height: 1.35; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-pw-radio-player { display: none; flex-direction: row; align-items: center; gap: 10px; min-width: 0; margin-top: 2px; }
.pc-pw-radio-item.is-playing .pc-pw-radio-player, .pc-pw-radio-item.is-paused .pc-pw-radio-player, .pc-pw-radio-item.is-error .pc-pw-radio-player { display: flex; }
.pc-pw-radio-track { flex: 1; height: 4px; border-radius: 2px; background: #22293d; }
.pc-pw-radio-time { flex-shrink: 0; }
.pc-pw-radio-when { align-self: flex-start; }
@media (min-width: 1024px) {
  .pc-pw-radio-item { padding: 12px 16px 12px 14px; gap: 14px; }
  .pc-pw-radio-tla { font-size: 12.5px; }
  .pc-pw-radio-name { font-size: 17px; }
}

/* (08/11) REPETICIÓN de sesiones terminadas: en lugar del DIFERIDO, la consola
   muestra los controles del replay (PLAY, vuelta anterior/siguiente, barra de
   tiempo y 1x-10x). .is-lt-final = terminada; .is-lt-replay = repitiéndose. */
.is-live-mode.is-lt-final .pc-pw-transport, .is-live-mode.is-lt-replay .pc-pw-transport { display: inline-flex; }
.is-live-mode.is-lt-final .pc-pw-scrub, .is-live-mode.is-lt-replay .pc-pw-scrub { display: block; }
.is-live-mode.is-lt-final .pc-pw-seg, .is-live-mode.is-lt-replay .pc-pw-seg { display: inline-flex; }
.is-live-mode.is-lt-final .pc-pw-timeline, .is-live-mode.is-lt-replay .pc-pw-timeline { flex: 1 1 320px; }
.is-lt-final .pc-pw-tvsync, .is-lt-replay .pc-pw-tvsync { display: none; }

/* (08/11) Controles de REPETICIÓN integrados al sistema visual del Live Timing:
   sin degradés, sin pulso ni neón; PLAY/PAUSA con inversión sobria (como Radios),
   barra plana, velocidades en Rajdhani y reloj 00:00:00 oculto en estado FINAL. */
#view-livetiming .pc-pw-tbtn {
  background: #151c2e;
  border: 1px solid #2a344d;
  border-radius: 6px;
  color: #cbd5e1;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#view-livetiming .pc-pw-tbtn:hover:not(:disabled) {
  background: #1c2438;
  border-color: #3b4868;
  color: #ffffff;
}
#view-livetiming .pc-pw-tbtn:disabled {
  opacity: 0.38;
  cursor: default;
}

#view-livetiming .pc-pw-play {
  min-width: 108px;
  padding: 0 16px;
  background: #151c2e;
  border: 1px solid #2a344d;
  border-radius: 6px;
  box-shadow: none;
  animation: none;
  color: #f1f5f9;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#view-livetiming .pc-pw-play:hover {
  filter: none;
  background: #1c2438;
  border-color: #3b4868;
  color: #ffffff;
}
#view-livetiming .pc-pw-play.is-playing {
  background: #f1f5f9;
  border-color: #f1f5f9;
  box-shadow: none;
  color: #0b0e17;
}
#view-livetiming .pc-pw-play.is-playing:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0b0e17;
}

#view-livetiming .pc-pw-lapbox {
  background: #0b0e17;
  border: 1px solid #22293d;
  border-radius: 8px;
  color: #f1f5f9;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

#view-livetiming .pc-pw-scrub-track {
  background: #22293d;
}
#view-livetiming .pc-pw-scrub-fill {
  background: #e11d48;
  box-shadow: none;
}
#view-livetiming .pc-pw-scrub-ticks i {
  background: rgba(100, 116, 139, 0.35);
}
#view-livetiming .pc-pw-scrub-ticks i.is-ten {
  background: rgba(148, 163, 184, 0.65);
}
#view-livetiming .pc-pw-scrub-thumb {
  background: #f1f5f9;
  border: 2px solid #0b0e17;
  box-shadow: none;
}

#view-livetiming .pc-pw-seg {
  background: #0b0e17;
  border: 1px solid #22293d;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
#view-livetiming .pc-pw-seg-btn {
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0 10px;
}
#view-livetiming .pc-pw-seg-btn:hover {
  color: #f1f5f9;
}
#view-livetiming .pc-pw-seg-btn.active {
  background: #151c2e;
  border-color: #2a344d;
  color: #ffffff;
  box-shadow: none;
}
@media (max-width: 700px) {
  #view-livetiming .pc-pw-seg-btn { padding: 0; }
}

/* Con la sesión terminada (antes de darle PLAY), el reloj en 00:00:00 no aporta nada */
.pc-pw-shell.is-lt-final #ltTrackStatus > .pc-pw-status-sep,
.pc-pw-shell.is-lt-final #ltTrackStatus > .pc-pw-status-item:has(#ltClock) {
  display: none;
}

/* Celular vertical: los controles de la repetición en 2 renglones (eran 3) para dejarle lugar a la tabla.
   Renglón 1: anterior · PLAY · siguiente · 1x-10x. Renglón 2: QUALY / V x/y + barra (+ ícono de girar). */
@media (max-width: 700px) {
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-con-ctrl > .pc-pw-transport { order: 4; width: auto; flex: 1 1 auto; min-width: 0; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-con-ctrl > .pc-pw-seg { order: 5; flex: 0 0 auto; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-seg-btn { flex: 0 0 auto; min-width: 32px; padding: 0 6px; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-con-ctrl > .pc-pw-timeline { order: 6; flex: 1 1 calc(100% - 50px); min-width: 0; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-con-ctrl > .pc-pw-rotate-hint { order: 7; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-play { min-width: 0; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-con-ctrl { column-gap: 8px; }
}
@media (max-width: 400px) {
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-transport { gap: 6px; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-play { padding: 0 10px; }
  #view-livetiming .pc-pw-shell:is(.is-lt-final, .is-lt-replay) .pc-pw-seg-btn { min-width: 28px; padding: 0 3px; }
}
/* Estado de pista en 400 px o menos: bandera + reloj + REPETICIÓN en un renglón (revisión de Gemini 08/11) */
@media (max-width: 400px) {
  #view-livetiming .pc-pw-status {
    padding: 0 10px;
    gap: 6px;
  }
  #view-livetiming .pc-pw-status-item,
  #view-livetiming .pc-pw-live {
    gap: 5px;
  }
  #view-livetiming .pc-pw-live .pc-pw-status-sep {
    margin-right: 2px;
  }
  #view-livetiming .pc-pw-status-label,
  #view-livetiming #ltLiveText {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}
/* 400 px o menos, repitiendo: "REPETICIÓN" ya está en el subtítulo; en el recuadro de estado
   no entraba en el renglón con banderas largas (BANDERA ROJA + reloj) y bajaba solo. */
@media (max-width: 400px) { .pc-pw-shell.is-lt-replay #ltLiveDot { display: none !important; } }

/* (08/11) CELULAR VERTICAL: UN RENGLÓN POR PILOTO (pedido del dueño: "en vertical se podía aprovechar más").
   Placa · GAP · INT · LAST · goma, alineados a la derecha bajo un encabezado (caption de la tabla, hereda
   las variables). Tocando un piloto se abre debajo: MEJOR, mini-sectores, sectores y gomas usadas.
   Antes: 2 renglones por piloto (70 px), entraban 7-8 en pantalla. */
.pc-pw-mcap { display: none; }
@media (max-width: 700px) {
  .pc-pw-table-wrap { --m-gap: 54px; --m-int: 46px; --m-last: 58px; --m-tyre: 38px; --m-cg: 4px; }
  .pc-pw-mlegend { display: none !important; }
  .pc-pw-mcap { display: block; }
  .pc-pw-mcap-in { display: flex; align-items: flex-end; column-gap: var(--m-cg); padding: 2px 26px 3px 10px; font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.2; color: #64748b; }
  .pc-pw-mcap-tip { flex: 1 1 auto; min-width: 0; letter-spacing: 0; color: #fbbf24; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-pw-mcap-c { flex: 0 0 auto; text-align: right; }
  .pc-pw-mcap-c.is-gap { width: var(--m-gap); } .pc-pw-mcap-c.is-int { width: var(--m-int); } .pc-pw-mcap-c.is-last { width: var(--m-last); } .pc-pw-mcap-c.is-tyre { width: var(--m-tyre); }
  #ltTableBody .pc-pw-row { flex-wrap: wrap; column-gap: var(--m-cg); padding-top: 3px; padding-bottom: 3px; }
  #ltTableBody .pc-pw-row::before { order: 6; margin-top: 0; }
  #ltTableBody .pc-pw-row:not(.is-open)::before { display: none; }
  #ltTableBody .pc-pw-row td:nth-child(1) { order: 1; }
  #ltTableBody .pc-pw-row td:nth-child(3) { order: 2; flex: 0 0 var(--m-gap); margin-left: auto; }
  #ltTableBody .pc-pw-row td:nth-child(4) { order: 3; flex: 0 0 var(--m-int); }
  #ltTableBody .pc-pw-row td:nth-child(5) { order: 4; flex: 0 0 var(--m-last); }
  #ltTableBody .pc-pw-row td:nth-child(2) { order: 5; flex: 0 0 var(--m-tyre); }
  #ltTableBody .pc-pw-row td:nth-child(6) { order: 7; flex: 0 0 auto; }
  #ltTableBody .pc-pw-row td:nth-child(16) { order: 7; flex: 0 0 auto; margin-left: auto; }
  #ltTableBody .pc-pw-row:not(.is-open) td:nth-child(6) { display: none !important; }
  #ltTableBody .pc-pw-row td:is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5)) .pc-pw-cell-plain { justify-content: flex-end; text-align: right; margin-left: auto; margin-right: 0; }
  #ltTableBody .pc-pw-row td:nth-child(5) .pc-pw-cell-plain::before { content: none; }
  /* Flechita: a la derecha del renglón (antes iba en MEJOR, que ahora está en la parte que se abre). */
  #ltTableBody .pc-pw-row td:nth-child(6)::after { display: none; }
  #ltTableBody .pc-pw-row td:nth-child(2)::after { content: ''; position: absolute; right: 9px; top: 14px; width: 7px; height: 7px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s; }
  #ltTableBody .pc-pw-row.is-open td:nth-child(2)::after { top: 18px; transform: rotate(-135deg); border-color: #fbbf24; }
}
/* Menos de 390 px: no entran 4 cifras al lado de la placa; INT pasa a la parte que se abre. */
@media (max-width: 389px) {
  .pc-pw-mcap-c.is-int { display: none; }
  #ltTableBody .pc-pw-row td:nth-child(4) { order: 7; flex: 0 0 auto; }
  #ltTableBody .pc-pw-row:not(.is-open) td:nth-child(4) { display: none !important; }
  #ltTableBody .pc-pw-row.is-open td:nth-child(4) .pc-pw-cell-plain:not(.pc-pw-pit-badge)::before { content: 'INT'; margin-right: 3px; font-family: var(--f-ui); font-style: normal; font-size: 11px; font-weight: 700; opacity: .7; }
  #ltTableBody .pc-pw-row td:nth-child(2)::after { right: 6px; }
}
@media (max-width: 420px) { .pc-pw-table-wrap { --m-gap: 52px; --m-last: 56px; --m-cg: 3px; } }
/* (08/11) Sin botón blanco al reproducir (el dueño: "la pausa en blanco es horrible"): PLAY/PAUSA y el
   play de Radios quedan con el mismo plano oscuro; solo cambian el ícono y la palabra. */
#view-livetiming .pc-pw-play.is-playing, #view-livetiming .pc-pw-play.is-playing:hover { background: #151c2e; border-color: #3b4868; color: #f1f5f9; }
#view-livetiming .pc-pw-play.is-playing:hover { background: #1c2438; }
.pc-pw-radio-item.is-playing .pc-pw-radio-btn, .pc-pw-radio-item.is-paused .pc-pw-radio-btn { background: #151c2e; border-color: #3b4868; color: #f1f5f9; }
@media (max-width: 380px) { .pc-pw-mcap-in { padding-right: 18px; } }
/* 390-425 px (iPhone 12 a 16): con INT a la vista el encabezado se cortaba en "para v…" (Gemini 08/11): va corto. */
@media (min-width: 390px) and (max-width: 425px) { .pc-pw-mcap-tip .is-long { display: none; } }
/* Menos de 380 px: MEJOR tiene el renglón de la parte abierta para él solo. */
@media (max-width: 380px) { #ltTableBody .pc-pw-row td:nth-child(6) .pc-pw-cell-plain::before { content: 'MEJOR'; } }

/* (08/11) Mapa desplegable como Dirección de carrera, Radios y Noticias (pedido del dueño). La flechita va
   después de la leyenda S1-S2-S3; cerrado no deja aire abajo. */
#ltMapCard.pc-pw-fold > summary { list-style: none; cursor: pointer; }
#ltMapCard.pc-pw-fold > summary .pc-pw-map-legend { margin-left: auto; }
#ltMapCard.pc-pw-fold:not([open]) > summary { margin-bottom: 0; }
/* Celular parado: los que quedan afuera (rojo) y los eliminados (bordó) se pintan en la tarjeta. La regla de
   la prolijidad que les sacaba el borde teñido a las filas (background-image: none) también les borraba esto. */
@media (max-width: 700px) {
  #view-livetiming .pc-pw-row.qz-out { background-image: linear-gradient(rgba(220,38,38,.38), rgba(220,38,38,.38)); }
  #view-livetiming .pc-pw-row.qz-ko { background-image: linear-gradient(rgba(127,29,29,.55), rgba(127,29,29,.55)); }
}
@media (max-width: 700px) { #view-livetiming .pc-pw-row.qz-cut { border-top: 2px solid rgba(248,113,113,.9) !important; } }
/* (08/11, auditoría pantalla contra pantalla) Menos de 390 px: si el piloto está en boxes, PIT reemplaza a LAST
   en el renglón cerrado (INT, donde vive PIT, va en la parte que se abre). */
@media (max-width: 389px) {
  #ltTableBody .pc-pw-row:not(.is-open):has(td:nth-child(4) .pc-pw-pit-badge) td:nth-child(5) { display: none !important; }
  #ltTableBody .pc-pw-row:not(.is-open):has(td:nth-child(4) .pc-pw-pit-badge) td:nth-child(4) { display: block !important; order: 4; flex: 0 0 var(--m-last); }
}
/* 400 px o menos: el subtítulo sin el lugar (el título ya dice el GP) para que entre la cuenta regresiva. */
@media (max-width: 400px) { .pc-pw-sub-place { display: none; } }
/* Aviso de resultado provisorio (08/11) */
.dl-prov-bar { padding: 10px var(--dl-gut, 16px); text-align: center; font-family: var(--f-ui); font-size: 14px; font-weight: 500; line-height: 1.35; color: #fbbf24; background: #171307; border-bottom: 1px solid rgba(251, 191, 36, .35); }
.dl-prov-bar[hidden] { display: none; }
/* Descarga de la aplicación, arriba de Sim racing (08/11) */
.dl-app { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; padding: 20px 24px; border-radius: 10px; background: #0b0e17; border: 1px solid #22293d; font-family: var(--f-ui); color: #f1f5f9; }
.dl-app h2 { margin: 6px 0 4px; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.dl-app p { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.4; color: #aeb9d1; }
.dl-app-der { flex: 0 0 300px; display: flex; flex-direction: column; gap: 8px; }
.dl-app-der .dlg-btn { justify-content: center; text-decoration: none; }
.dl-app-der small { font-size: 12.5px; line-height: 1.35; color: #94a3b8; }
@media (max-width: 767px) { .dl-app { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; } .dl-app h2 { font-size: 22px; } .dl-app-der { flex: none; } }
/* Tus sesiones (08/11): misma fila de los paneles del Live Timing */
.dlm-mi-box { margin: 4px 0 26px; }
.dlm-mi-box .dlm-title { margin-bottom: 12px; }
.dlm-mi-nota { margin: 0; padding: 14px 16px; border-radius: 10px; background: #0b0e17; border: 1px solid #22293d; font-size: 15px; color: #aeb9d1; }
.dlm-mi-lista { display: flex; flex-direction: column; gap: 8px; }
.dlm-mi { display: grid; grid-template-columns: minmax(0, 1fr) auto 190px; align-items: center; gap: 18px; width: 100%; padding: 14px 16px; border-radius: 3px 10px 10px 3px; background: #0f1422; border: 1px solid #22293d; border-left: 4px solid #475569; color: #f1f5f9; font: inherit; text-align: left; }
.dlm-mi.is-abre { border-left-color: var(--dl-red); cursor: pointer; transition: background .15s, border-color .15s; }
.dlm-mi.is-abre:hover { background: #131b2e; border-color: #3b4868; border-left-color: var(--dl-red); }
.dlm-mi-txt b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.dlm-mi-txt small, .dlm-mi-der small { display: block; margin-top: 2px; font-size: 13px; color: #aeb9d1; }
.dlm-mi-der { text-align: right; }
.dlm-mi-der b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dlm-mi-go { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 14.5px; font-weight: 600; color: #fff; }
.dlm-mi-pronto { text-align: right; font-size: 13px; color: #8b93a7; }
@media (max-width: 767px) { .dlm-mi { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; } .dlm-mi-go, .dlm-mi-pronto { grid-column: 1 / -1; justify-content: flex-start; text-align: left; } }

/* =====================================================================
   MENÚS DESPLEGABLES (08/11, dirección de Gemini): panel de borde a borde
   colgado del encabezado, foto del mundo a la izquierda y los accesos como
   filas tipográficas (sin cajitas ni carteles). En celular, hoja desde abajo
   con una franja de foto arriba. Letra: Geist.
   ===================================================================== */
:root { --hm-bg: #05070c; --hm-panel: #07080d; --hm-line: rgba(148,163,184,.14); --hm-sub: #9fb0c8; --hm-mute: #64748b; --hm-sky: #38bdf8; }
.dl-menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(3,5,10,.72); opacity: 0; pointer-events: none; transition: opacity .18s; }
.dl-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }
.dl-menu { position: fixed; z-index: 45; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; background: var(--hm-panel); color: #f8fafc; font-family: var(--f-ui); }
.dl-menu.is-open { visibility: visible; }
.dl-menu-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(226,232,240,.22); background: rgba(5,7,12,.6); color: #e2e8f0; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dl-menu-close:hover { border-color: rgba(226,232,240,.6); color: #fff; }
.dl-menu-grid { display: grid; gap: 48px; align-items: stretch; }
.dl-menu-visual { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--hm-line); min-height: 264px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; background: var(--hm-bg); box-sizing: border-box; }
.dl-menu-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.75) contrast(1.05); }
.dl-menu-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,13,.1) 0%, rgba(7,8,13,.65) 50%, rgba(7,8,13,.96) 100%); }
.dl-menu-visual > * { position: relative; z-index: 1; }
.dl-menu-world-k { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dl-red); }
.dl-menu-world-t { margin-top: 6px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.dl-menu-world-d { margin-top: 6px; font-size: 15px; line-height: 1.4; color: #b6c3d8; }
.dl-menu-sec { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hm-mute); margin: 0 0 4px; padding: 0 12px; }
.dl-menu-col + .dl-menu-col { margin-top: 28px; }
.dl-menu-row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 13px 12px; box-sizing: border-box; background: none; border: 0; border-bottom: 1px solid var(--hm-line); border-radius: 0; text-align: left; cursor: pointer; color: #f8fafc; font-family: var(--f-ui); transition: background-color .15s; }
.dl-menu-row:hover { background: rgba(255,255,255,.035); }
.dl-menu-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.dl-menu-row-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dl-menu-row-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.dl-menu-row-d { font-size: 14px; color: var(--hm-sub); line-height: 1.3; margin-top: 2px; }
.dl-menu-row-arr { flex-shrink: 0; display: flex; color: var(--hm-mute); transition: transform .15s, color .15s; }
.dl-menu-row:hover .dl-menu-row-arr { transform: translateX(3px); color: #fff; }
.dl-menu-row-emb { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.dl-menu-row-emb img, .dl-menu-row-emb svg { width: 38px; height: 38px; object-fit: contain; }
.dl-menu-lv { font-size: 15px; font-weight: 700; letter-spacing: .06em; color: #f0abfc; }
.dl-menu-row-live { flex-shrink: 0; max-width: 42%; text-align: right; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.dl-menu-row.is-soon .dl-menu-row-live { color: var(--hm-mute); font-weight: 500; }
.dl-menu-row.is-soon .dl-menu-row-emb { opacity: .55; }
.dl-menu-foot { margin: 16px 12px 0; font-size: 13px; line-height: 1.4; color: var(--hm-mute); }
.dl-menu-edit { display: flex; flex-direction: column; justify-content: center; max-width: 560px; height: 100%; box-sizing: border-box; }
.dl-menu-edit .dl-menu-sec { padding: 0; }
.dl-menu-edit h3 { margin: 10px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.dl-menu-edit p { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--hm-sub); }
@media (min-width: 1024px) {
  /* El alto (top) lo pone dlOpenMenu con el borde de abajo del encabezado. */
  .dl-menu { left: 0; right: 0; width: 100vw; max-height: calc(100vh - 64px); border-bottom: 1px solid #22293d; box-shadow: 0 32px 80px rgba(0,0,0,.78); padding: 32px max(28px, calc(50vw - 740px)) 36px; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s cubic-bezier(.22,1,.36,1), visibility 0s .18s; }
  .dl-menu.is-open { opacity: 1; transform: none; transition: opacity .18s ease, transform .18s cubic-bezier(.22,1,.36,1); }
  .dl-menu-handle { display: none; }
  .dl-menu-close { top: 24px; right: max(28px, calc(50vw - 740px)); }
  .dl-menu-grid { grid-template-columns: 400px minmax(0, 1fr); }
  .dl-menu-right.is-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 40px; align-content: start; }
  .dl-menu-right.is-split .dl-menu-col + .dl-menu-col { margin-top: 0; }
  .dl-menu-right.is-two .dl-menu-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .dl-menu-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; }
  .dl-menu-right.is-split { grid-template-columns: 1fr; gap: 24px; }
  .dl-menu-right.is-split .dl-menu-col + .dl-menu-col { margin-top: 24px; }
}
@media (max-width: 1023px) {
  .dl-menu { left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 120px); border-radius: 18px 18px 0 0; border-top: 1px solid #22293d; padding: 0 0 20px; transform: translateY(105%); transition: transform .22s ease, visibility 0s .22s; }
  .dl-menu.is-open { transform: translateY(0); transition: transform .22s ease; }
  .dl-menu-handle { position: absolute; top: 8px; left: 50%; z-index: 2; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.55); }
  .dl-menu-close { top: 10px; right: 12px; width: 36px; height: 36px; }
  .dl-menu-grid { display: block; }
  .dl-menu-visual { min-height: 116px; border-radius: 18px 18px 0 0; border: 0; border-bottom: 1px solid var(--hm-line); padding: 16px 18px; }
  .dl-menu-world-k { display: none; }
  .dl-menu-world-t { font-size: 22px; margin-top: 0; }
  .dl-menu-world-d { font-size: 13.5px; margin-top: 4px; }
  .dl-menu-sec { margin: 14px 18px 4px; padding: 0; }
  .dl-menu-col + .dl-menu-col { margin-top: 10px; }
  .dl-menu-row { min-height: 56px; padding: 12px 18px; }
  .dl-menu-row-t { font-size: 17px; }
  .dl-menu-row-d { font-size: 13.5px; }
  .dl-menu-row-emb, .dl-menu-row-emb img, .dl-menu-row-emb svg { width: 36px; height: 36px; }
  .dl-menu-foot { margin: 14px 18px 0; }
  .dl-menu-edit { padding: 16px 18px 0; }
  .dl-menu-edit h3 { font-size: 24px; }
  .dl-menu-edit p { font-size: 15px; }
}
/* Celular apaisado: sin la franja de foto, para que entren las filas. */
@media (max-width: 1023px) and (max-height: 440px) {
  .dl-menu { max-height: calc(100dvh - 70px); padding-top: 14px; }
  .dl-menu-visual { display: none; }
}

/* =====================================================================
   HOME EDITORIAL (08/11, dirección de Gemini): debajo del escenario del GP,
   secciones a todo el ancho que presentan cada mundo (prode, copas, Live
   Timing, Sim racing, lo que viene) con capturas reales en marco y fotos de
   cine. La misma portada para visitante y usuario; solo cambian los botones.
   ===================================================================== */
.hm-wrap { position: relative; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; background: var(--hm-bg); color: #f8fafc; font-family: var(--f-ui); }
.hm-in { width: min(1480px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px); box-sizing: border-box; }
.hm-sec { padding: clamp(64px, 8vw, 116px) 0; }
.hm-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hm-split.is-rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.hm-split.is-rev .hm-txt { order: 2; }
.hm-split.is-rev .hm-media { order: 1; }
.hm-k { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dl-red); }
.hm-k.is-sky { color: var(--hm-sky); }
.hm-t { margin: 12px 0 0; font-size: clamp(32px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; color: #fff; }
.hm-d { margin: 16px 0 0; max-width: 540px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.5; color: var(--hm-sub); }
.hm-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hm-ctas.is-center { justify-content: center; margin-top: 32px; }
.hm-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(226,232,240,.28); background: rgba(10,15,28,.55); color: #f8fafc; font-family: var(--f-ui); font-size: 16px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .2s, background .2s, border-color .2s; }
.hm-btn:hover { border-color: rgba(226,232,240,.6); transform: translateY(-1px); }
.hm-btn.is-main { border-color: transparent; background: var(--dl-red); color: #fff; box-shadow: 0 10px 36px rgba(255,59,38,.3); }
.hm-btn.is-main:hover { background: #ff5540; }
.hm-btn.is-main.is-sky { background: var(--hm-sky); color: #04101f; box-shadow: 0 10px 36px rgba(56,189,248,.35); }
.hm-btn.is-main.is-sky:hover { background: #5ccbfa; }
.hm-btn.is-big { height: 58px; padding: 0 32px; font-size: 17px; }
.hm-frame { position: relative; isolation: isolate; padding: clamp(8px, 1.1vw, 14px); border-radius: 20px; border: 1px solid rgba(148,163,184,.16); background: linear-gradient(180deg, rgba(15,23,42,.7), rgba(5,7,12,.9)); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.hm-frame > img { display: block; width: 100%; height: auto; border-radius: 12px; }
.hm-frame.is-red::before, .hm-frame.is-blue::before { content: ''; position: absolute; inset: -30% -10% auto; height: 60%; z-index: -1; background: radial-gradient(50% 60% at 50% 100%, rgba(255,59,38,.14), transparent 70%); pointer-events: none; }
.hm-frame.is-blue::before { background: radial-gradient(50% 60% at 50% 100%, rgba(147,197,253,.14), transparent 70%); }
.hm-embs { position: absolute; right: 22px; bottom: -22px; display: flex; gap: 8px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(148,163,184,.2); background: rgba(7,8,13,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hm-embs img, .hm-embs svg { width: 44px; height: 44px; object-fit: contain; }
/* Entradas al bajar */
.hm-up { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--hm-d, 0ms); }
.hm-up.is-in { opacity: 1; transform: none; }
.hm-tilt { opacity: 0; transform: perspective(1600px) rotateX(14deg) translateY(60px) scale(.96); transform-origin: 50% 0; transition: opacity 1s ease, transform 1.2s cubic-bezier(.22,1,.36,1); }
.hm-tilt.is-in { opacity: 1; transform: none; }
/* Fotos de cine a todo el ancho (Live Timing y Sim racing) */
.hm-bleed { position: relative; min-height: clamp(580px, 74vh, 760px); padding: clamp(72px, 9vw, 120px) 0; display: flex; align-items: center; overflow: hidden; background: var(--hm-bg); box-sizing: border-box; }
.hm-bleed-bg { position: absolute; inset: -8% 0; z-index: 0; transform: translateY(calc((var(--p, .5) - .5) * -12%)); }
.hm-bleed-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 45%; }
.hm-bleed::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5,7,12,.94) 0%, rgba(5,7,12,.68) 46%, rgba(5,7,12,.22) 100%), linear-gradient(180deg, var(--hm-bg) 0%, rgba(5,7,12,0) 18%, rgba(5,7,12,0) 82%, var(--hm-bg) 100%); }
.hm-bleed > .hm-in { position: relative; z-index: 2; }
.hm-bleed.is-sim .hm-bleed-bg img { object-position: 70% 50%; }
/* Lo que viene: tres tarjetas sobrias, sin botones */
.hm-h { max-width: 820px; margin-bottom: clamp(28px, 4vw, 48px); }
.hm-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid rgba(148,163,184,.14); background: #0a0f1c; }
.hm-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.8) saturate(.9); }
.hm-card-b { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 26px; }
.hm-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.3); background: rgba(15,23,42,.6); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-sub); }
.hm-card h3 { margin: 4px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.hm-card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--hm-sub); }
/* Cierre */
.hm-end { text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.hm-end .hm-t { font-size: clamp(36px, 5vw, 64px); }
.hm-end .hm-d { margin-left: auto; margin-right: auto; }
@media (max-width: 1023px) {
  .hm-split, .hm-split.is-rev { grid-template-columns: 1fr; gap: 28px; }
  .hm-split.is-rev .hm-txt { order: 1; }
  .hm-split.is-rev .hm-media { order: 2; }
  .hm-bleed { min-height: 0; padding: 64px 0; }
  .hm-bleed::after { background: linear-gradient(180deg, var(--hm-bg) 0%, rgba(5,7,12,.35) 25%, rgba(5,7,12,.88) 65%, var(--hm-bg) 100%); }
  .hm-three { grid-template-columns: 1fr; }
  .hm-embs { right: 12px; bottom: -16px; padding: 6px 10px; }
  .hm-embs img, .hm-embs svg { width: 34px; height: 34px; }
}
@media (max-width: 767px) {
  .hm-sec { padding: 56px 0; }
  .hm-ctas .hm-btn { flex: 1 1 100%; justify-content: center; }
  .hm-ctas.is-center .hm-btn { flex: 0 1 auto; }
  .hm-frame { padding: 6px; border-radius: 14px; }
  .hm-frame > img { border-radius: 9px; }
  .hm-tilt { transform: translateY(40px); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-up, .hm-tilt { transition: none; opacity: 1; transform: none; }
  .hm-bleed-bg { transform: none; }
}

/* Home: el camino (09/11). Portada que presenta todo, franja en movimiento y recorrido hilvanado por los puntos. */
.dlg-stage .dlg-bg { will-change: transform; animation: hcBg 2.2s cubic-bezier(.22,1,.36,1) both; }
@keyframes hcBg { from { opacity: 0; } to { opacity: 1; } }
.dlg-shade { background: linear-gradient(90deg, rgba(5,7,12,.92) 0%, rgba(5,7,12,.7) 36%, rgba(5,7,12,.12) 66%), linear-gradient(0deg, #05070c 0%, rgba(5,7,12,0) 26%); }
.dlg-guestrail { display: none !important; }
.hc-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 9px 16px; border-radius: 999px; background: rgba(12,16,28,.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); opacity: 0; animation: hcFade .8s ease .05s forwards; }
.hc-pill .dlg-event { font-size: 11px; letter-spacing: .12em; gap: 8px; color: #cbd5e1; white-space: nowrap; }
.hc-pill .dlg-gp { margin: 0; flex-direction: row; line-height: 1.2; }
.hc-pill .dlg-gp > span { font-size: 15px; font-weight: 600; font-style: normal; letter-spacing: -.01em; text-transform: none; line-height: 1.2; white-space: nowrap; }
.hc-pill .dlg-gp small { display: none; }
.hc-pill .dlg-count { margin: 0; gap: 7px; align-items: baseline; white-space: nowrap; }
.hc-pill .dlg-count-l { font-size: 11px; color: var(--dl-red); margin-right: 1px; }
.hc-pill .dlg-cell { flex-direction: row; align-items: baseline; gap: 2px; min-width: 0; }
.hc-pill .dlg-cell b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.hc-pill .dlg-cell i { font-size: 11px; color: #94a3b8; margin: 0; }
.hc-pill .dlg-sep { display: none; }
.hc-title { margin: 22px 0 0; max-width: 11.5em; font-size: clamp(46px, 7.2vw, 112px); font-weight: 600; line-height: .98; letter-spacing: -.05em; color: #fff; }
.hc-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em 0; margin-bottom: -.12em; }
.hc-w i { display: inline-block; font-style: normal; transform: translateY(115%); animation: hcWord 1s cubic-bezier(.22,1,.36,1) calc(.15s + var(--i) * 65ms) forwards; }
@keyframes hcWord { to { transform: none; } }
@keyframes hcFade { to { opacity: 1; } }
.hc-lead { margin: 18px 0 0; max-width: 32em; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.4; color: #dbe3ee; opacity: 0; animation: hcFade .9s ease .85s forwards; }
.dlg-stage .dlg-ticket, .dlg-stage .dlg-ctas { opacity: 0; animation: hcFade .9s ease 1s forwards; }

.hc-band { overflow: hidden; background: var(--dl-red); padding: clamp(10px, 1.4vw, 18px) 0; }
.hc-band-in { display: flex; width: max-content; animation: hcBand 34s linear infinite; }
.hc-band span { padding: 0 .55em; font-size: clamp(30px, 5vw, 76px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #05070c; white-space: nowrap; }
.hc-band span:nth-child(even) { color: #fff; }
@keyframes hcBand { to { transform: translate3d(-50%, 0, 0); } }

.hm-sec, .hm-bleed { position: relative; }
.hm-sec::after, .hm-bleed::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(max(0px, (100vw - 1480px) / 2) + clamp(18px, 4vw, 64px) - 16px); width: 2px; background: linear-gradient(180deg, var(--dl-red), #ff7a66); transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.5s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.hm-sec.is-in::after, .hm-bleed.is-in::after { transform: none; }
.hm-bleed.is-sim::after, .hm-next::after { background: linear-gradient(180deg, #ff7a66, var(--hm-sky)); }
.hm-end::after { display: none; }
.hc-pts { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255,59,38,.12); box-shadow: inset 0 0 0 1px rgba(255,59,38,.32); font-size: 14px; font-weight: 600; color: #ffb4a8; opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .6s ease .45s, transform .7s cubic-bezier(.22,1,.36,1) .45s; }
.hc-pts.is-in { opacity: 1; transform: none; }
.hm-h .hc-pts { display: flex; width: max-content; }

.hm-frame { padding: 0; border: 0; background: none; box-shadow: none; clip-path: inset(0 0 100% 0 round 16px); transition: clip-path 1.3s cubic-bezier(.22,1,.36,1) .1s; }
.hm-tilt.is-in .hm-frame { clip-path: inset(0 0 0 0 round 16px); }
.hm-frame::before { display: none; }
.hm-frame > img { border-radius: 16px; transform: scale(1.12); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(.22,1,.36,1) .1s; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 66%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 88%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 66%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 88%, transparent 100%); mask-composite: intersect; }
.hm-tilt.is-in .hm-frame > img { transform: none; }
#hmProde .hm-media { background: radial-gradient(60% 70% at 50% 40%, rgba(255,59,38,.16), transparent 72%); }
#hmCopas .hm-media { background: radial-gradient(60% 70% at 50% 40%, rgba(96,165,250,.14), transparent 72%); }
#hmLive .hm-media { background: radial-gradient(60% 70% at 40% 40%, rgba(168,85,247,.14), transparent 72%); }
#hmSim .hm-media { background: radial-gradient(60% 70% at 50% 40%, rgba(56,189,248,.14), transparent 72%); }
@media (max-width: 767px) {
  .dlg-stage .dlg-bg { height: 380px; object-position: 62% 40%; }
  .dlg-shade { height: 380px; bottom: auto; background: linear-gradient(180deg, rgba(5,7,12,.3) 0%, rgba(5,7,12,.42) 45%, #05070c 100%); }
  .dlg-main { padding-top: 96px; }
  .hc-pill { border-radius: 16px; padding: 8px 12px; gap: 3px 10px; }
  .hc-title { font-size: clamp(42px, 12.2vw, 58px); margin-top: 18px; }
  .hc-lead { font-size: 17px; margin-top: 14px; }
  .hm-sec::after, .hm-bleed::after { left: 6px; }
  .hm-split, .hm-split.is-rev { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-w i { transform: none; animation: none; }
  .hc-pill, .hc-lead, .dlg-stage .dlg-ticket, .dlg-stage .dlg-ctas { opacity: 1; animation: none; }
  .dlg-stage .dlg-bg, .hc-band-in { animation: none; }
  .hm-frame { clip-path: none; transition: none; } .hm-frame > img { transform: none; transition: none; }
  .hm-sec::after, .hm-bleed::after { transform: none; transition: none; }
  .hc-pts { opacity: 1; transform: none; transition: none; }
}

/* Fondos: cada mundo con el suyo, sin repetir el auto. */
#hmLive .hm-bleed-bg img { object-position: 50% 0; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 58%); mask-image: linear-gradient(180deg, #000 30%, transparent 58%); }
#hmSim .hm-bleed-bg img { object-position: 78% 40%; }
.hc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hc-steps li { display: flex; align-items: center; gap: 11px; font-size: 16px; line-height: 1.3; color: #dbe3ee; }
.hc-steps b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 600; color: #fff; }
@media (max-width: 767px) { .dlg-home .dlg-stage .dlg-main { padding-top: 132px; } }

.hm-bleed-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,12,.92) 0%, rgba(5,7,12,.74) 44%, rgba(5,7,12,.3) 78%); }
#hmLive .hm-frame, #hmSim .hm-frame { background: radial-gradient(closest-side, rgba(5,7,12,.9) 70%, rgba(5,7,12,0) 100%); }
.hc-qs { display: flex; flex-direction: column; gap: 14px; max-width: 470px; margin: 0 auto; }
.hc-qs img { display: block; width: min(88%, 426px); height: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(148,163,184,.16); opacity: 0; transform: translateX(46px) scale(.96); transition: opacity .7s ease, transform .95s cubic-bezier(.22,1,.36,1); }
.hc-qs img:nth-child(2) { align-self: center; transition-delay: .14s; } .hc-qs img:nth-child(3) { align-self: flex-end; transition-delay: .28s; }
.hm-tilt.is-in .hc-qs img { opacity: 1; transform: none; }
@media (max-width: 767px) { .hm-bleed-bg::after { background: rgba(5,7,12,.8); } .hc-qs img { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .hc-qs img { opacity: 1; transform: none; transition: none; } }

/* Romper lo recto: Copas en banda, Live Timing a todo el ancho, Sim como foto completa. */
#hmCopas .hm-split, #hmLive .hm-split { grid-template-columns: minmax(0, 1fr); }
#hmCopas .hm-media { order: 1; } #hmCopas .hm-txt { order: 2; }
#hmCopas .hm-frame > img { width: 100%; }
#hmLive .hm-txt { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; margin: 0 auto; }
#hmLive .hm-d { margin-left: auto; margin-right: auto; }
#hmLive .hm-frame, #hmSim .hm-frame { background: none; }
#hmLive .hm-frame > img { width: 100%; }
#hmLive picture { display: block; }
.hm-frame picture > img { display: block; width: 100%; height: auto; border-radius: 16px; }
#hmLive .hm-frame img { transform: scale(1.12); transform-origin: 50% 0; transition: transform 1.6s cubic-bezier(.22,1,.36,1) .1s; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
#hmLive .hm-tilt.is-in .hm-frame img { transform: none; }
#hmCopas .hc-steps, #hmLive .hc-steps { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; }
#hmLive .hc-steps { justify-content: center; }
#hmSim { min-height: clamp(640px, 88vh, 880px); }
#hmSim .hm-split { grid-template-columns: minmax(0, 620px); }
#hmSim .hm-bleed-bg::after { background: linear-gradient(90deg, rgba(5,7,12,.94) 0%, rgba(5,7,12,.7) 42%, rgba(5,7,12,.05) 72%); }
.hm-three { gap: 0 40px; }
.hm-next .hm-card { background: none; border: 0; border-top: 1px solid rgba(148,163,184,.18); border-radius: 0; box-shadow: none; min-height: 0; }
.hm-next .hm-card-b { padding: 20px 0 8px; }
.hm-next .hm-tag { display: none; }
.hm-next { padding-bottom: clamp(32px, 4vw, 56px); }
@media (max-width: 767px) {
  #hmCopas .hc-steps, #hmLive .hc-steps { flex-direction: column; align-items: flex-start; }
  #hmLive .hm-txt { align-items: flex-start; text-align: left; margin: 0; }
  #hmLive .hm-d { margin-left: 0; }
  #hmSim .hm-bleed-bg::after { background: linear-gradient(0deg, rgba(5,7,12,.96) 0%, rgba(5,7,12,.84) 46%, rgba(5,7,12,.06) 80%); }
  #hmSim .hm-bleed-bg img { object-position: 74% 30%; }
  #hmSim { min-height: 0; padding-top: 240px; }
}

/* Mis vueltas (09/11): tarjetas grandes, con la misma pieza que las pistas. */
.dlm-mi-card .dlm-pt-top { flex-wrap: wrap; }
.dlm-mi-card .dlm-pt-top small { flex: 1 1 auto; min-width: 0; }
.dlm-mi-card.is-off { cursor: default; opacity: .72; }
.dlm-mi-card.is-off:hover { transform: none; }
.dlm-mi-sinmapa { display: grid; place-items: center; height: 100%; min-height: 150px; font-size: 15px; color: #8b93a7; }
.dlm-pt-times .is-sin { opacity: .55; }

/* Pantalla de sesión (09/11). */
.hs-panel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.hs-k { font-size: 15px; font-weight: 600; color: #dbe3ee; }
.hs-t { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.hs-t b { font-size: clamp(38px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.hs-t em { font-style: normal; font-size: 20px; font-weight: 600; }
.hs-sub { margin: 4px 0 0; font-size: 15px; color: #94a3b8; }
.hs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(148,163,184,.14); }
.hs-stats span { display: block; font-size: 13px; color: #94a3b8; }
.hs-stats b { display: block; margin-top: 3px; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hs-stats small { display: block; margin-top: 2px; font-size: 13px; color: #94a3b8; }
.dlm-cl-laps { margin-top: 12px; }
.dlm-cl-laps h3 { margin: 0 0 8px; }
@media (max-width: 900px) { .hs-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .hs-stats b { font-size: 18px; } .hs-stats small { font-size: 12px; } }

/* Sesión sin pasos, mapa fijo y destello de curva (09/11). */
.hs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.hs-acc, .hs-volver { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(148,163,184,.26); background: #0b1020; color: #f1f5f9; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hs-acc:hover, .hs-volver:hover { border-color: rgba(148,163,184,.6); }
.hs-acc small { font-size: 14px; color: #4ade80; }
.dlm-map-stage.is-fijo { touch-action: pan-y; }
.hs-flash path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.hs-flash-glow { stroke: #fff; stroke-width: 26px; filter: blur(9px); animation: hsDest 1.1s ease-in-out infinite; }
.hs-flash-line { stroke: #fff; stroke-width: 7px; animation: hsDest 1.1s ease-in-out infinite; }
@keyframes hsDest { 0%, 100% { opacity: .42; } 50% { opacity: 1; } }
.dlm-seg-row:hover { background: rgba(148,163,184,.1); }
.dlm-cl-map-glow, .dlm-cl-map-hot { animation: hsDest 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hs-flash-glow, .hs-flash-line, .dlm-cl-map-glow, .dlm-cl-map-hot { animation: none; } }

/* Ranking por pista, con la tabla del prode (09/11). */
.hs-rk .dlc-row { grid-template-columns: 40px minmax(0, 1fr) 96px 72px; }
.hs-rk .dlc-pts { font-size: 18px; }
.hs-rk .hs-rk-gap { display: block; text-align: right; font-size: 14px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.hs-rk-yo { font-size: 14px; font-weight: 700; color: #fff; }
.hs-rk .dlm-map-hint { margin-top: 10px; }
@media (max-width: 420px) { .hs-rk .dlc-row { grid-template-columns: 34px minmax(0, 1fr) 84px; } .hs-rk .hs-rk-gap { display: none; } .hs-rk .dlc-num { display: none; } }
.hs-rk .dlc-row-h .dlc-pts, .hs-rk .dlc-row-h .hs-rk-gap { font-size: 11.5px; font-style: normal; font-weight: 800; color: #7c88a6; }
.dlm-tbl tr.hs-inv td, .dlm-tbl tr.hs-inv td b { color: #7c88a6; font-weight: 500; cursor: default; }

/* Pantalla de curva: gráficos pegados y mapa que sigue al cursor (10/11). */
.hc-pills { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hc-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,.22); background: #0b1020; color: #cbd5e1; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.hc-pill b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hc-pill.is-loss b { color: var(--sim-loss); }
.hc-pill.is-gain b { color: var(--sim-gain); }
.hc-pill:hover { border-color: rgba(148,163,184,.6); }
.hc-pill.is-on { border-color: #fff; color: #fff; background: #1e293b; }
.hc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.hc-t { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: #f8fafc; }
.hc-frase { margin: 4px 0 0; font-size: 16px; line-height: 1.4; color: #cbd5e1; }
.hc-frase b { color: #fff; font-weight: 600; }
.hc-nav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hc-dif { margin-right: 6px; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; color: #cbd5e1; }
.hc-flecha { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(148,163,184,.26); background: #0b1020; color: #f1f5f9; cursor: pointer; }
.hc-flecha:hover { border-color: rgba(148,163,184,.6); }
.hc-grid { --hc-g: 118px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: 1fr auto; grid-template-areas: "plots mapa" "plots info"; gap: 14px; align-items: start; }
.hc-plots { grid-area: plots; min-width: 0; }
.hc-mapa { grid-area: mapa; align-self: stretch; position: relative; display: flex; flex-direction: column; margin-top: 24px; padding: 8px; }
.hc-info { grid-area: info; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hc-info .dlm-coach-callout { margin: 0; }
.hc-info .dlm-cl-laps { margin: 0; }
.hc-info .dlm-tbl-wrap { max-height: 170px; overflow-y: auto; }
.hc-info .dlm-coach-callout-top b { display: none; }
#view-sim:has(.hc-grid) .dl-app { display: none; }
#view-sim:has(.hc-grid) .dlm-hx h1 { font-size: 40px; }
.hc-tira { display: grid; grid-template-columns: var(--hc-g) minmax(0, 1fr); align-items: end; }
.hc-tira .dlm-legend { font-size: 13px; padding: 0 0 6px 10px; }
.hc-hitos { position: relative; height: 24px; }
.hc-hitos span { position: absolute; bottom: 6px; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: #fbbf24; white-space: nowrap; }
.hc-eje { margin-top: 5px; }
.hc-eje .dlm-x-axis { padding-left: 0; font-size: 12px; }
.dlm-charts-stack.hc-stack { position: relative; gap: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #0a0f1c; border: 1px solid rgba(148,163,184,.2); }
.hc-stack .dlm-chart-box { display: grid; grid-template-columns: var(--hc-g) minmax(0, 1fr); padding: 0; border-bottom: 1px solid rgba(148,163,184,.16); }
.hc-stack .dlm-chart-box:nth-last-of-type(2) { border-bottom: 0; }
.hc-stack .dlm-chart-hdr { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; margin: 0; padding: 0 10px; border-right: 1px solid rgba(148,163,184,.16); font-size: 13px; }
.hc-stack .dlm-chart-label { font-weight: 600; color: #dbe3ee; white-space: nowrap; }
.hc-stack .dlm-chart-label small { font-size: 12px; font-weight: 500; color: #94a3b8; }
.hc-stack .dlm-chart-vals { gap: 10px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hc-stack .dlm-chart-body { display: block; }
.hc-stack .dlm-svg-wrap { border: 0; border-radius: 0; background: #070b16; }
.hc-stack .dlm-fz { fill: rgba(248,113,113,.2); }
.hc-stack .dlm-ch-delta .dlm-svg-wrap { height: 72px; }
.hc-stack .dlm-ch-vel .dlm-svg-wrap { height: 160px; }
.hc-stack .dlm-ch-acel .dlm-svg-wrap, .hc-stack .dlm-ch-freno .dlm-svg-wrap { height: 76px; }
.hc-stack .dlm-ch-volante .dlm-svg-wrap { height: 80px; }
.hc-stack .dlm-ch-marcha .dlm-svg-wrap { height: 54px; }
.hc-lineas { position: absolute; top: 0; bottom: 0; left: var(--hc-g); right: 0; pointer-events: none; }
.hc-lineas i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(251,191,36,.26); }
.hc-fz-tag { position: absolute; top: 80px; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: #3c0a0e; border: 1px solid rgba(248,113,113,.9); color: #fecaca; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-map { display: block; flex: 1 1 230px; width: 100%; min-height: 230px; }
.hc-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hc-road { stroke: #1e293b; stroke-width: 30px; }
.hc-fz { stroke: rgba(248,113,113,.5); stroke-width: 30px; }
.hc-l-ref { stroke: #cbd5e1; stroke-width: 2.5px; }
.hc-l-me { stroke: #38bdf8; stroke-width: 2.5px; }
.hc-car-ref { fill: #cbd5e1; stroke: #070b16; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hc-car-me { fill: #38bdf8; stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.hc-inset { position: absolute; top: 8px; right: 8px; width: 78px; pointer-events: none; }
.hc-inset .dlm-cl-map { height: 66px; }
.hc-inset .dlm-cl-map-txt { display: none; }
.hc-mapa .dlm-live { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 4px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.hc-mapa .dlm-live b { color: #fff; font-weight: 600; }
.hc-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hs-acc.is-on { border-color: #fff; }
.hc-extra { margin-top: 12px; }
@media (max-width: 1024px) {
  .hc-grid { display: block; }
  .hc-mapa { position: sticky; top: 64px; z-index: 5; margin: 0 0 12px; background: #0a0f1c; }
  .hc-map { flex: none; height: 170px; min-height: 0; }
  .hc-info { margin-top: 12px; }
}
@media (max-width: 1024px) and (max-height: 520px) { .hc-mapa { position: relative; top: auto; } }
@media (max-width: 600px) {
  #view-sim:has(.hc-grid) .dlm-hx h1 { font-size: 30px; }
  .hc-more .hs-acc { flex: 1 1 0; justify-content: center; padding: 0 10px; font-size: 14px; white-space: nowrap; }
  .hc-fz-tag { top: 58px; font-size: 12px; }
  .hc-grid { --hc-g: 100px; }
  .hc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t nav" "f f"; align-items: center; gap: 4px 10px; }
  .hc-head > div:first-child { display: contents; }
  .hc-t { grid-area: t; }
  .hc-nav { grid-area: nav; }
  .hc-frase { grid-area: f; margin: 0; }
  .hc-stack .dlm-chart-label small { display: none; }
  .hc-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .hc-pills::-webkit-scrollbar { display: none; }
  .hc-pill { flex-shrink: 0; }
  .hc-t { font-size: 22px; }
  .hc-frase { font-size: 15px; }
  .hc-dif { font-size: 20px; margin-right: 2px; }
  .hc-stack .dlm-chart-hdr { padding: 0 6px 0 8px; font-size: 12px; }
  .hc-stack .dlm-chart-vals { gap: 6px; font-size: 12.5px; }
  .hc-stack .dlm-ch-delta .dlm-svg-wrap { height: 52px; }
  .hc-stack .dlm-ch-vel .dlm-svg-wrap { height: 110px; }
  .hc-stack .dlm-ch-acel .dlm-svg-wrap, .hc-stack .dlm-ch-freno .dlm-svg-wrap, .hc-stack .dlm-ch-volante .dlm-svg-wrap { height: 56px; }
  .hc-stack .dlm-ch-marcha .dlm-svg-wrap { height: 44px; }
  .hc-tira .dlm-legend { padding-left: 8px; font-size: 12px; }
  .hc-hitos span { font-size: 12px; }
}

/* Recorrido 3D de la curva (10/11). */
.hc-3d { position: relative; margin-bottom: 14px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(148,163,184,.2); background: #070b16; }
.hc-3d canvas { display: block; width: 100%; height: 360px; }
.hc3d-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 15px; color: #94a3b8; pointer-events: none; }
.hc-3d.is-listo .hc3d-msg { display: none; }
.hc3d-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.hc3d-cam { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(7,11,22,.82); border: 1px solid rgba(148,163,184,.22); pointer-events: auto; }
.hc3d-cam button, .hc3d-vel { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #cbd5e1; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.hc3d-cam button.is-on, .hc3d-vel.is-on { background: #fff; color: #070b16; }
.hc3d-ley { display: flex; gap: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(7,11,22,.82); font-size: 13px; font-weight: 600; color: #dbe3ee; }
.hc3d-ley span { display: inline-flex; align-items: center; gap: 6px; }
.hc3d-ley i { width: 18px; height: 5px; border-radius: 3px; }
.hc3d-ley i.is-acel { background: linear-gradient(90deg, #14532d, #15803d, #22c55e, #4ade80); }
.hc3d-ley i.is-fr { background: linear-gradient(90deg, #7f1d1d, #b91c1c, #ef4444, #ff6b6b); }
.hc3d-hud { position: absolute; left: 10px; bottom: 58px; display: flex; gap: 8px; pointer-events: none; }
.hc3d-auto { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: baseline; min-width: 128px; padding: 8px 10px; border-radius: 8px; background: rgba(7,11,22,.86); border-left: 3px solid #38bdf8; }
.hc3d-auto.is-ref { border-left-color: #cbd5e1; }
.hc3d-auto b { font-size: 13px; font-weight: 600; color: #38bdf8; }
.hc3d-auto.is-ref b { color: #cbd5e1; }
.hc3d-auto small { justify-self: end; font-size: 13px; font-weight: 600; color: #cbd5e1; }
.hc3d-auto span { grid-column: 1 / -1; font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.hc3d-b { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: rgba(148,163,184,.18); overflow: hidden; }
.hc3d-b u { display: block; height: 100%; width: 0; }
.hc3d-b.is-acel u { background: #4ade80; }
.hc3d-b.is-fr u { background: #ef4444; }
.hc3d-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(7,11,22,.9); border-top: 1px solid rgba(148,163,184,.16); }
.hc3d-play { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: #070b16; cursor: pointer; }
.hc3d-play svg { width: 16px; height: 16px; }
.hc3d-bar input { flex: 1; min-width: 0; accent-color: #38bdf8; }
@media (max-width: 600px) {
  .hc-3d canvas { height: 300px; }
  .hc3d-top { position: static; }
  .hc3d-cam { position: absolute; top: 10px; left: 10px; }
  .hc3d-hud { top: 58px; bottom: auto; }
  .hc3d-ley { position: absolute; top: 58px; right: 10px; bottom: auto; flex-direction: column; gap: 4px; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
  .hc3d-cam button { padding: 0 9px; font-size: 12px; }
  .hc3d-auto { min-width: 92px; gap: 1px 8px; padding: 5px 8px; }
  .hc3d-auto b, .hc3d-auto small { font-size: 11.5px; }
  .hc3d-auto span { font-size: 14px; }
  .hc3d-b { height: 3px; }
  .hc3d-vel { padding: 0 8px; font-size: 12.5px; }
}

/* Tabla de vueltas con su marca, como Track Titan (11/11). */
.hs-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.hs-tag.is-ok { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }
.hs-tag.is-inv { color: #fca5a5; background: rgba(248, 113, 113, 0.14); }
.hs-tag.is-mejor { color: #e9d5ff; background: rgba(168, 85, 247, 0.28); }
.hs-tag.is-record { color: #fde68a; background: rgba(245, 158, 11, 0.2); }
.hs-tag.is-fant { color: #fde68a; background: rgba(250, 204, 21, 0.12); }
.hs-vueltas tr.hs-inv td { color: #64748b; }
.hs-vueltas tr.hs-inv td b { color: #94a3b8; text-decoration: line-through; text-decoration-color: rgba(248, 113, 113, 0.6); }
.hs-vueltas tr.hs-fant td { border-top: 1px dashed rgba(250, 204, 21, 0.3); }
@media (max-width: 520px) { .hs-vueltas .hs-tag { display: block; width: max-content; margin: 3px 0 0 auto; } }

/* Ingeniero DatLap en la pestaña Plan (14/11): mismas tarjetas del plan, sin la columna del mini mapa. */
.dlm-ing-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.dlm-ing-vicio, .dlm-ing-mision { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(9, 13, 26, 0.6); }
.dlm-ing-mision { border-left: 4px solid #fbbf24; }
.dlm-ing-vicio b, .dlm-ing-mision > b { display: block; margin-top: 6px; font-size: 1.15rem; font-weight: 700; color: #fff; }
.dlm-ing-vicio small, .dlm-ing-nota { display: block; margin-top: 6px; font-size: 0.82rem; color: #94a3b8; }
.dlm-ing-mision p { margin: 6px 0 8px; font-size: 0.9rem; line-height: 1.4; color: #cbd5e1; }
.dlm-ing-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 0.88rem; color: #94a3b8; }
.dlm-ing-meta b { font-size: 1.05rem; color: #fff; }
.dlm-plan-card.dlm-ing-card { grid-template-columns: 128px minmax(0, 1fr); }
.dlm-ing-pide { margin: 4px 0 10px; font-size: 0.9rem; line-height: 1.45; color: #94a3b8; }
.dlm-ing-item { padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-ing-hic { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.45; color: #e2e8f0; }
.dlm-ing-mov { margin: 0; font-size: 0.92rem; line-height: 1.45; color: #fff; }
.dlm-ing-mov span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6ee7b7; background: rgba(52, 211, 153, 0.12); }
.dlm-ing-item small { display: block; margin-top: 6px; font-size: 0.78rem; color: #94a3b8; }
@media (max-width: 1023px) { .dlm-ing-hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dlm-plan-card.dlm-ing-card { grid-template-columns: 1fr; } }

/* ---------- Mis vueltas 2.0 (14/11): tarjeta ancha, mapa grande y curvas por prioridad ---------- */
.dlm-mv-grid { grid-template-columns: 1fr !important; gap: 16px; }
.dlm-mv-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.18); background: linear-gradient(160deg, rgba(20, 27, 44, 0.85), rgba(8, 12, 22, 0.95)); cursor: pointer; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.dlm-mv-card:hover, .dlm-mv-card:focus-visible { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 36px rgba(56, 189, 248, 0.12); outline: none; }
.dlm-mv-map { position: relative; min-height: 300px; padding: 18px; background: #070b14; border-right: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-mv-svg { display: block; width: 100%; height: 100%; max-height: 380px; }
.dlm-mv-road { fill: none; stroke: #0b0f17; stroke-linejoin: round; stroke-linecap: round; }
.dlm-mv-line { fill: none; stroke: #475569; stroke-linejoin: round; }
.dlm-mv-seg { fill: none; stroke: #ef4444; stroke-linecap: round; stroke-linejoin: round; } .dlm-mv-seg.is-p2 { stroke: #f97316; } .dlm-mv-seg.is-p3 { stroke: #eab308; }
.dlm-mv-pin circle.dlm-mv-ring { fill: none; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.dlm-mv-start { fill: #fff; }
.dlm-mv-pin circle { fill: #ef4444; stroke: #0b0f17; }
.dlm-mv-pin.is-p2 circle { fill: #f97316; }
.dlm-mv-pin.is-p3 circle { fill: #eab308; }
.dlm-mv-pin text { fill: #fff; font-weight: 700; text-anchor: middle; font-family: Geist, system-ui, sans-serif; }
.dlm-mv-pin.is-p3 text { fill: #111827; }
.dlm-mv-info { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; min-width: 0; }
.dlm-mv-info header h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: #f8fafc; }
.dlm-mv-info header small { display: block; margin-top: 2px; font-size: 14px; color: #8b9ab5; }
.dlm-mv-info header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlm-mv-ver { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #334155; font-size: 13px; font-weight: 500; color: #e2e8f0; white-space: nowrap; }
.dlm-mv-card:hover .dlm-mv-ver { border-color: #64748b; }
.dlm-mv-vig .dlm-kicker { color: #f59e0b; }
.dlm-mv-vig .dlm-btn-chip.is-primary { background: #1e293b; border: 1px solid #334155; color: #f8fafc; }
.dlm-mv-times { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-bottom: 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.14); }
.dlm-mv-times span { display: flex; flex-direction: column; gap: 2px; }
.dlm-mv-times small { font-size: 12.5px; color: #8b9ab5; }
.dlm-mv-times b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; font-variant-numeric: tabular-nums; }
.dlm-mv-times .is-me b { color: #f8fafc; font-weight: 700; } .dlm-mv-times .is-ref b { color: #94a3b8; font-size: clamp(18px, 1.6vw, 23px); }
.dlm-mv-times .is-dif b { color: #e2e8f0; font-weight: 700; } .dlm-mv-times .is-dif.is-loss b { color: #ef4444; } .dlm-mv-times .is-dif.is-gain b { color: #4ade80; }
.dlm-mv-h { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b9ab5; }
.dlm-mv-pri { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dlm-mv-pri li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid #ef4444; background: rgba(148, 163, 184, 0.06); }
.dlm-mv-pri li.is-p2 { border-left-color: #f97316; } .dlm-mv-pri li.is-p3 { border-left-color: #eab308; }
.dlm-mv-pri li.is-p2 em { color: #f97316; } .dlm-mv-pri li.is-p3 em { color: #eab308; }
.dlm-mv-pri i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ef4444; color: #fff; font-style: normal; font-size: 13px; font-weight: 700; }
.dlm-mv-pri .is-p2 i { background: #f97316; } .dlm-mv-pri .is-p3 i { background: #eab308; color: #111827; }
.dlm-mv-pri span { min-width: 0; }
.dlm-mv-pri b { display: block; font-size: 15px; font-weight: 600; color: #f1f5f9; }
.dlm-mv-pri small { display: block; margin-top: 1px; font-size: 13px; line-height: 1.35; color: #94a3b8; }
.dlm-mv-pri em { font-style: normal; font-size: 15px; font-weight: 700; color: #ef4444; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlm-mv-sin { margin: -6px 0 0; font-size: 14px; color: #94a3b8; }
.dlm-mv-mis { margin-top: auto; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, 0.35); border-left: 4px solid #fbbf24; background: rgba(251, 191, 36, 0.06); }
.dlm-mv-mis span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; }
.dlm-mv-mis b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: #fff; }
.dlm-mv-mis small { display: block; font-size: 13px; color: #cbd5e1; }
.dlm-mv-vig { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px 24px; margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.35); border-left: 4px solid #fbbf24; background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(9, 13, 26, 0.6) 60%); }
.dlm-mv-vig-txt b { display: block; margin-top: 4px; font-size: 19px; font-weight: 600; color: #fff; }
.dlm-mv-vig-txt p { margin: 4px 0 0; font-size: 14.5px; color: #cbd5e1; }
.dlm-mv-vig-meta { display: flex; flex-direction: column; gap: 2px; padding-left: 20px; border-left: 1px solid rgba(148, 163, 184, 0.2); }
.dlm-mv-vig-meta span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; }
.dlm-mv-vig-meta b { font-size: 17px; font-weight: 600; color: #fff; }
.dlm-mv-vig-meta small { font-size: 13px; color: #94a3b8; }
@media (max-width: 900px) {
  .dlm-mv-card { grid-template-columns: 1fr; }
  .dlm-mv-map { min-height: 0; height: 200px; padding: 16px; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
  .dlm-mv-info { padding: 14px 14px 16px; gap: 12px; }
  .dlm-mv-vig { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .dlm-mv-vig-meta { padding-left: 0; border-left: 0; }
  .dlm-mv-vig .dlm-btn-chip { justify-self: start; }
}
@media (max-width: 900px) and (orientation: landscape) { .dlm-mv-vig { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; gap: 6px 16px; } .dlm-mv-vig-txt p, .dlm-mv-vig-meta { display: none; } .dlm-mv-vig-txt b { font-size: 16px; margin-top: 2px; } .dlm-mv-vig .dlm-btn-chip { grid-row: 1; grid-column: 2; align-self: center; } .dlm-mv-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dlm-mv-map { height: auto; min-height: 220px; border-right: 1px solid rgba(148, 163, 184, 0.12); border-bottom: 0; } }

/* ---------- Sim racing 2.0, parte 2 (14/11): cabecera fija con pestañas, canales en cuadros y ranking con solapas ---------- */
.s2-head { position: sticky; top: var(--dl-hdr, 64px); z-index: 30; margin: 0 0 16px; padding: 10px 0 0; background: #05070d; border-bottom: 1px solid #1e2433; }
.s2-head .dlm-top { margin-bottom: 8px; }
.s2-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.s2-tab { flex: none; height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: #94a3b8; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.s2-tab:hover { color: #e2e8f0; }
.s2-tab.is-on { color: #f8fafc; border-bottom-color: #ef4444; }
.s2-switch { display: inline-flex; gap: 2px; margin: 0 0 14px; padding: 3px; border-radius: 10px; border: 1px solid #22293d; background: #0b0e17; }
.s2-switch button { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: #94a3b8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.s2-switch button.is-on { background: #1e293b; color: #f8fafc; }
.s2-bajo { margin-top: 18px; }
.dlm-rp-charts.dlm-charts-stack { display: flex; flex-direction: column; gap: 8px; }
.dlm-rp-charts .dlm-chart-box { padding: 6px 10px 8px; border: 1px solid #1e2433; border-radius: 10px; background: #070b14; }
.dlm-rp-charts .dlm-chart-hdr .dlm-chart-label { font-size: 11.5px; letter-spacing: 0.1em; color: #94a3b8; }
.s2-rk-sols { display: inline-flex; gap: 2px; margin: 0 0 10px; padding: 3px; border-radius: 10px; border: 1px solid #22293d; background: #0b0e17; }
.s2-rk-sols button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: #94a3b8; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.s2-rk-sols button.is-on { background: #1e293b; color: #f8fafc; }
.s2-rk-box { max-height: 360px; overflow-y: auto; }
.s2-rk-box .dlc-row-h { position: sticky; top: 0; z-index: 1; background: #0b0e17; }
.s2-rk-box .dlc-row.is-me { position: sticky; bottom: 0; z-index: 1; background: #0f1a2e; box-shadow: inset 3px 0 0 #38bdf8; }
@media (max-width: 640px) { .s2-tab { padding: 0 12px; font-size: 14px; } }
#view-sim.dlm-con-ses > .dl-app { display: none; }
@media (max-width: 640px) { .s2-head .dlm-lap-time { display: none; } .s2-head .dlm-lap-pill { padding: 8px 10px; } }

/* Revisión de Gemini de la sesión 2.0 (14/11) */
#view-sim:has(.s2-head) .dlm-crumbs-links { display: none; }
#view-sim:has(.s2-head) .dlm-hx { padding-top: 6px; padding-bottom: 6px; }
#view-sim:has(.s2-head) .dlm-hx h1 { font-size: 34px; letter-spacing: -0.02em; }
.s2-head .dlm-lap-time b { display: none; }
#dlmTab .dlm-card, #dlmTab section { scroll-margin-top: 150px; }
.s2-rk-box .dlc-row, .s2-rk-box .dlc-row * { font-family: Geist, system-ui, sans-serif !important; font-style: normal !important; }
.s2-rk-box .dlc-num, .s2-rk-box .dlc-flag, .s2-rk-box .dlc-team { display: none; }
.s2-rk-box .dlc-pos, .s2-rk-box .dlc-pts { font-variant-numeric: tabular-nums; font-weight: 600; }
.dlm-ing-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dlm-ing-hero .dlm-plan-target { grid-column: 1 / -1; }
@media (max-width: 640px) { #view-sim:has(.s2-head) .dlm-hx h1 { font-size: 24px; } #dlmTab .dlm-card, #dlmTab section { scroll-margin-top: 132px; } }

/* Objetivos de la tanda (14/11) */
.s2-ob { margin-bottom: 16px; border-left: 4px solid #fbbf24; }
.s2-ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.s2-ob-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(148, 163, 184, 0.06); }
.s2-ob-list li.is-ok { background: rgba(34, 197, 94, 0.08); }
.s2-ob-chk { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #475569; color: #0b0f17; }
.s2-ob-chk.is-ok { border-color: #22c55e; background: #22c55e; }
.s2-ob-txt { min-width: 0; }
.s2-ob-txt em { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fbbf24; }
.s2-ob-txt b { display: block; font-size: 15px; font-weight: 600; color: #f1f5f9; }
.s2-ob-txt small { display: block; font-size: 13px; color: #94a3b8; }
.s2-ob-der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.s2-ob-der small { font-size: 12.5px; color: #94a3b8; white-space: nowrap; }
.s2-ob-list li.is-ok .s2-ob-der small { color: #4ade80; }
.s2-ob-cajas { display: inline-flex; gap: 6px; }
.s2-ob-cajas i { width: 20px; height: 20px; border-radius: 4px; border: 1px solid #334155; }
.s2-ob-cajas i.is-ok { background: #22c55e; border-color: #22c55e; }
.s2-ob-cajas i.is-no { background: rgba(239, 68, 68, 0.25); border-color: #ef4444; }
.s2-ob-nota { margin: 10px 0 0; font-size: 13px; color: #94a3b8; }
.s2-rk-pie { margin-top: 18px; }
@media (max-width: 640px) { .s2-ob-list li { grid-template-columns: 24px minmax(0, 1fr); } .s2-ob-der { grid-column: 2; align-items: flex-start; text-align: left; } }

/* Congruencia (14/11): curvas numeradas en la telemetría y zona de la misión */
.s2-clabels { position: relative; height: 18px; margin: 0 10px 0 58px; }
.s2-clabels b { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #64748b; }
.s2-clabels b.is-mis { color: #fbbf24; }
.s2-cline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(148, 163, 184, 0.22); pointer-events: none; }
.s2-cline.is-mis { background: rgba(251, 191, 36, 0.55); }
.dlm-rp-charts .dlm-fz { fill: rgba(251, 191, 36, 0.12); }
.s2-mis-nota { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 13px; color: #cbd5e1; }
.s2-mis-nota i { width: 14px; height: 10px; border-radius: 2px; background: rgba(251, 191, 36, 0.45); }
.dlm-replay.is-view-curvas .dlm-rp-scale { display: none; }
.dlm-rp-tick.is-mudo { width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 50%; font-size: 0; }
.dlm-rp-bigplay { left: 14px; top: auto; bottom: 14px; transform: none; flex-direction: row; gap: 8px; } .dlm-rp-bigplay > span { width: 46px; height: 46px; box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.16); } .dlm-rp-bigplay > span svg { width: 20px; height: 20px; margin-left: 2px; } .dlm-rp-bigplay:hover > span { box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.2); } @media (max-width: 640px) { .dlm-rp-bigplay > b { display: none; } }

/* ---------- Ronda 4 (14/11, Gemini + Fable + Claude): un color = un significado, la misma curva igual en todos lados ---------- */
.s2-disco { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #475569; color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s2-disco.is-p1 { background: #ef4444; } .s2-disco.is-p2 { background: #f97316; } .s2-disco.is-p3 { background: #eab308; color: #111827; }
.s2-disco.is-mis { box-shadow: 0 0 0 2px #0b0f17, 0 0 0 4px #fff; }
.dlm-mv-pin circle.dlm-mv-ring.is-2 { stroke: rgba(255, 255, 255, 0.45); }
/* objetivos: borde y disco de su curva; sin ámbar */
.s2-ob { border-left: 1px solid #1e2433; }
.s2-ob-list li { grid-template-columns: 26px 26px minmax(0, 1fr) auto; border-left: 3px solid var(--pc, #475569); }
.s2-ob-txt em { color: #f8fafc; }
@media (max-width: 640px) { .s2-ob-list li { grid-template-columns: 24px 26px minmax(0, 1fr); } .s2-ob-der { grid-column: 3; } }
/* misión vigente en Mis vueltas: el color de su curva */
.dlm-mv-vig { grid-template-columns: auto minmax(0, 1fr) auto auto; border-color: rgba(148, 163, 184, 0.22); border-left: 4px solid var(--pc, #94a3b8); background: linear-gradient(90deg, rgba(148, 163, 184, 0.07), rgba(9, 13, 26, 0.6) 60%); }
.dlm-mv-vig .dlm-kicker, .dlm-mv-vig-meta span { color: #94a3b8; }
.dlm-mv-mis { border-color: rgba(148, 163, 184, 0.25); border-left-color: #f8fafc; background: rgba(148, 163, 184, 0.06); } .dlm-mv-mis span { color: #cbd5e1; }
@media (max-width: 900px) { .dlm-mv-vig { grid-template-columns: auto minmax(0, 1fr); } .dlm-mv-vig-meta, .dlm-mv-vig .dlm-btn-chip { grid-column: 2; } }
@media (max-width: 900px) and (orientation: landscape) { .dlm-mv-vig { grid-template-columns: auto minmax(0, 1fr) auto; } .dlm-mv-vig .dlm-btn-chip { grid-column: 3; } }
/* telemetría: etiquetas y líneas con el color de prioridad; el resto gris y en celular solo las priorizadas */
.s2-clabels b.is-p1 { color: #ef4444; } .s2-clabels b.is-p2 { color: #f97316; } .s2-clabels b.is-p3 { color: #eab308; }
.s2-cline.is-p1 { background: rgba(239, 68, 68, 0.6); } .s2-cline.is-p2 { background: rgba(249, 115, 22, 0.55); } .s2-cline.is-p3 { background: rgba(234, 179, 8, 0.5); }
.dlm-rp-charts .dlm-fz { fill: color-mix(in srgb, var(--pc, #94a3b8) 13%, transparent); }
.s2-mis-nota i { background: color-mix(in srgb, var(--pc, #94a3b8) 50%, transparent); }
@media (max-width: 640px) { .s2-clabels b:not([class*="is-p"]) { display: none; } }
/* Por curva: color solo en las 3 que más cuestan */
.hc-pill.is-neutra { border-color: #273042 !important; color: #94a3b8 !important; background: #0b0e17 !important; }
.hc-pill.is-neutra b { color: #94a3b8 !important; }
.hc-pill.is-p1 { border-color: rgba(239, 68, 68, 0.6) !important; color: #fca5a5 !important; } .hc-pill.is-p1 b { color: #ef4444 !important; }
.hc-pill.is-p2 { border-color: rgba(249, 115, 22, 0.6) !important; color: #fdba74 !important; } .hc-pill.is-p2 b { color: #f97316 !important; }
.hc-pill.is-p3 { border-color: rgba(234, 179, 8, 0.6) !important; color: #fde047 !important; } .hc-pill.is-p3 b { color: #eab308 !important; }
/* replay: sin el botón gigante, sin "Tramo 1 de 6" */
.dlm-rp-bigplay { display: none !important; }
.dlm-rp-seg .dlm-kicker { display: none; }
/* sesión propia: la pista ya está en las migas */
#view-sim:has(.s2-head) .dlm-hx { display: none; }
/* ranking: tu fila en tu color (celeste), sin colores de podio */
.s2-rk-box .dlc-row.is-p1 .dlc-pos, .s2-rk-box .dlc-row.is-p2 .dlc-pos, .s2-rk-box .dlc-row.is-p3 .dlc-pos { background: #1e293b !important; color: #f8fafc !important; }
.s2-rk-box .dlc-row.is-me { border-color: #38bdf8 !important; }
.s2-rk-box .dlc-name em { background: transparent !important; color: #38bdf8 !important; border: 1px solid #38bdf8; }

/* Línea de tiempo con los mismos hitos que la telemetría (14/11) */
.dlm-rp-tick.is-c { width: auto; height: 18px; margin-left: 0; transform: translateX(-50%); padding: 0 5px; border-radius: 5px; background: #0b0e17; border: 1px solid #334155; color: #94a3b8; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.dlm-rp-tick.is-c.is-p1 { border-color: #ef4444; color: #fca5a5; } .dlm-rp-tick.is-c.is-p1::before { background: #ef4444; }
.dlm-rp-tick.is-c.is-p2 { border-color: #f97316; color: #fdba74; } .dlm-rp-tick.is-c.is-p2::before { background: #f97316; }
.dlm-rp-tick.is-c.is-p3 { border-color: #eab308; color: #fde047; } .dlm-rp-tick.is-c.is-p3::before { background: #eab308; }
.dlm-rp-tick.is-c:hover { background: #1e293b; color: #f8fafc; }
@media (max-width: 640px) { .dlm-rp-tick.is-c:not([class*="is-p"]) { width: 6px; height: 6px; padding: 0; font-size: 0; border-radius: 50%; top: 20px; } }

/* ---------- Ronda 5 (auditoría de Gemini, Fable y Claude, 14/11) ---------- */
/* Ingeniero: la pérdida con el color de su curva; misión con el color de su curva (sin ámbar propio) */
.dlm-ing-card { border-left-color: var(--pc, #64748b) !important; }
.dlm-ing-card .dlm-plan-gain { color: var(--pc, #e2e8f0) !important; }
.dlm-ing-card .dlm-plan-h .s2-disco { margin-right: 4px; }
.dlm-ing-mision { border-left: 4px solid var(--pc, #94a3b8); }
.dlm-ing-mision > b { display: flex !important; align-items: center; gap: 10px; }
.dlm-ing-hero .dlm-kicker { color: #94a3b8; }
.dlm-ing-mov span { color: #e2e8f0 !important; background: #1e293b !important; border: 1px solid #334155; }
@media (max-width: 1023px) { .dlm-ing-hero { grid-template-columns: 1fr !important; } }
/* Por curva: hitos de pedal en plata (el amarillo es prioridad 3) */
.hc-hitos span { color: #cbd5e1; }
.hc-lineas i { background: rgba(203, 213, 225, 0.35) !important; }
@media (max-width: 640px) { .hc-hitos span { font-size: 11px; } }
/* consistencia de frenada: la dispersión es tuya (celeste) */
.dlm-cons-spread { background: rgba(56, 189, 248, 0.14); border-color: rgba(56, 189, 248, 0.5); }
/* objetivos: un intento fallido en gris (el rojo es prioridad 1) */
.s2-ob-cajas i.is-no { background: #1e293b; border-color: #64748b; }
/* replay: un solo reloj */
.dlm-rp-time { display: none; }
/* frenada: disco de curva en el selector */
.dlm-brk-picker .s2-disco { width: 22px; height: 22px; font-size: 12px; margin-right: 6px; }
/* portada en celu: sin scroll lateral */
@media (max-width: 640px) { .pt-giant span { white-space: normal !important; } #view-sim { overflow-x: clip; } }
.dlm-seg-row.is-p1 .dlm-seg-bar > i { background: #ef4444; } .dlm-seg-row.is-p1 .dlm-seg-diff { color: #ef4444; }
.dlm-seg-row.is-p2 .dlm-seg-bar > i { background: #f97316; } .dlm-seg-row.is-p2 .dlm-seg-diff { color: #f97316; }
.dlm-seg-row.is-p3 .dlm-seg-bar > i { background: #eab308; } .dlm-seg-row.is-p3 .dlm-seg-diff { color: #eab308; }
.dlm-seg-row.is-neutra .dlm-seg-bar > i { background: #475569; } .dlm-seg-row.is-neutra .dlm-seg-diff { color: #94a3b8; }
.dlm-seg-row .s2-disco { width: 24px; height: 24px; font-size: 12px; }
.hc-dif { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.05; } .hc-dif-k { font-size: 11.5px; font-weight: 500; color: #94a3b8; }
.hs-tag.is-fant { background: rgba(203, 213, 225, 0.12) !important; color: #cbd5e1 !important; border-color: rgba(203, 213, 225, 0.35) !important; }

/* Mis vueltas: pista dibujada con asfalto, bordes y escapes; etiquetas modernas (14/11) */
.dlm-mv-asf { fill: #1c2230; stroke: none; }
.dlm-mv-borde { fill: none; stroke: rgba(226, 232, 240, 0.55); stroke-linejoin: round; }
.dlm-mv-esc { fill: none; stroke: rgba(148, 163, 184, 0.16); stroke-linecap: butt; }
.dlm-mv-line.is-fina { stroke: rgba(56, 189, 248, 0.55); }
.dlm-mv-tag rect { fill: #0b0f17; stroke: #ef4444; }
.dlm-mv-tag text { fill: #fca5a5; font-weight: 700; text-anchor: middle; font-family: Geist, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.dlm-mv-tag.is-p2 rect { stroke: #f97316; } .dlm-mv-tag.is-p2 text { fill: #fdba74; }
.dlm-mv-tag.is-p3 rect { stroke: #eab308; } .dlm-mv-tag.is-p3 text { fill: #fde047; }
.dlm-mv-pin circle { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.dlm-mv-plano { opacity: 0.9; } .dlm-mv-svg { overflow: visible; }

/* Mis vueltas con el mismo mapa de la sesión: fondo con puntitos, cinta con borde y pianos, mismo alto en todas (14/11) */
.dlm-mv-map { height: 330px; min-height: 0 !important; padding: 10px; background: radial-gradient(circle, rgba(148, 163, 184, 0.13) 1px, transparent 1.3px) 0 0 / 18px 18px, radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.45), #070b16 78%); }
.dlm-mv-svg { height: 100%; max-height: none; overflow: hidden; }
.dlm-mv-sombra { fill: none; stroke: #060a14; stroke-linejoin: round; opacity: 0.85; }
.dlm-mv-borde2 { fill: none; stroke: #8b9bb4; stroke-linejoin: round; }
.dlm-mv-asf2 { fill: none; stroke: #283349; stroke-linejoin: round; }
.dlm-mv-piano { fill: none; stroke: #f1f5f9; stroke-linejoin: round; } .dlm-mv-piano.is-r { stroke: #dc2626; }
.dlm-mv-card { align-items: stretch; }
@media (max-width: 900px) { .dlm-mv-map { height: 210px !important; } }
.dlm-rp-stage { cursor: zoom-in; } .dlm-rp-stage.is-zoomed { cursor: grab; }
/* Mis vueltas: al pasar el mouse la tarjeta se agranda apenas y el mapa hace un zoom suave, como en una tienda (14/11) */
@media (hover: hover) and (pointer: fine) {
  .dlm-mv-card { transition: transform 0.28s cubic-bezier(.2, .7, .2, 1), border-color 0.2s, box-shadow 0.28s; will-change: transform; }
  .dlm-mv-card:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(56, 189, 248, 0.35); }
  .dlm-mv-svg { transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); transform-origin: 50% 50%; }
  .dlm-mv-card:hover .dlm-mv-svg { transform: scale(1.06); }
  .dlm-mv-map { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .dlm-mv-card, .dlm-mv-card:hover, .dlm-mv-card:hover .dlm-mv-svg { transform: none !important; transition: none !important; } }
.dlm-mv-map { height: auto; min-height: 330px !important; } .dlm-mv-svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); } @media (max-width: 900px) { .dlm-mv-map { min-height: 210px !important; } }

/* Selector de vueltas propio (14/11): la lista entera, como la tabla de Tus vueltas */
.s2-lp { position: relative; flex: 1 1 0; min-width: 0; }
.s2-lp-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.22); border-left: 4px solid #38bdf8; background: #0b1020; color: #f1f5f9; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.s2-lp.is-ref .s2-lp-btn { border-left-color: #cbd5e1; }
.s2-lp-btn:hover, .s2-lp-btn[aria-expanded="true"] { background: #111830; border-color: rgba(148, 163, 184, 0.4); }
.s2-lp-k { flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #38bdf8; }
.s2-lp.is-ref .s2-lp-k { color: #cbd5e1; }
.s2-lp-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s2-lp-main b { font-size: 15px; font-weight: 600; }
.s2-lp-t { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s2-lp-d { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.s2-lp-tags { display: inline-flex; gap: 4px; }
.s2-lp-chev { flex: none; color: #94a3b8; transition: transform 0.15s; }
.s2-lp-btn[aria-expanded="true"] .s2-lp-chev { transform: rotate(180deg); }
.s2-lp-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: 320px; max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; border-radius: 12px; border: 1px solid #273042; background: #0b0f1a; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6); }
.s2-lp-head, .s2-lp-row { display: grid; grid-template-columns: 1.1fr 1fr 1.4fr 0.8fr; align-items: center; gap: 8px; }
.s2-lp-head { padding: 4px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; }
.s2-lp-head span:last-child, .s2-lp-dif { text-align: right; }
.s2-lp-row { width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #e2e8f0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.s2-lp-row b { font-variant-numeric: tabular-nums; font-weight: 700; }
.s2-lp-row:hover { background: #151c2e; }
.s2-lp-row.is-on { background: rgba(56, 189, 248, 0.1); box-shadow: inset 3px 0 0 #38bdf8; }
.s2-lp.is-ref .s2-lp-row.is-on { background: rgba(203, 213, 225, 0.08); box-shadow: inset 3px 0 0 #cbd5e1; }
.s2-lp-row.is-off { opacity: 0.5; cursor: default; } .s2-lp-row.is-off b { text-decoration: line-through; }
.s2-lp-dif { font-variant-numeric: tabular-nums; font-weight: 600; }
.s2-head .dlm-comp-bar { display: flex; gap: 10px; }
@media (max-width: 640px) { .s2-head .dlm-comp-bar { flex-direction: column; gap: 6px; } .s2-lp-k { display: none; } .s2-lp-btn { padding: 8px 12px; } .s2-lp-menu { min-width: 0; } .s2-lp-head, .s2-lp-row { grid-template-columns: 1fr 1fr 1.3fr 0.8fr; font-size: 13px; } }

/* Caminos al 3D (14/11): botón con ícono de cubo en objetivos, Ingeniero y replay; las filas de Por dónde empezar dicen "3D" */
.s2-3d { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid #334155; background: #111830; color: #e2e8f0; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.s2-3d:hover { border-color: #38bdf8; background: #12203a; color: #fff; }
.s2-3d svg { color: #38bdf8; }
.s2-3d-chip svg { color: #38bdf8; vertical-align: -2px; }
.s2-ob-der { gap: 6px; }
.dlm-rp-seg .s2-3d { margin-top: 8px; }
.dlm-seg-row .dlm-seg-cta::before { content: '3D'; margin-right: 4px; font-size: 11px; font-weight: 800; color: #38bdf8; }
.dlm-seg-row .dlm-seg-cta { display: inline-flex; align-items: center; width: auto !important; padding: 0 8px; }
/* Mis vueltas compacto, como Track Titan (14/11, pedido del dueño): tarjetas casi cuadradas, dos por fila; mapa arriba,
   pista y tiempos, y las 3 curvas en una línea cada una (disco, nombre y costo), sin texto largo */
.dlm-mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px; }
.dlm-mv-card { grid-template-columns: 1fr; }
.dlm-mv-map { min-height: 0 !important; height: 250px !important; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.dlm-mv-info { padding: 16px 18px 18px; gap: 12px; }
.dlm-mv-info header h3 { font-size: 21px; }
.dlm-mv-info header small { font-size: 13px; }
.dlm-mv-times { gap: 6px 22px; padding-bottom: 12px; }
.dlm-mv-times b { font-size: 20px; } .dlm-mv-times .is-ref b { font-size: 18px; }
.dlm-mv-h { display: none; }
.dlm-mv-pri { margin: 0; gap: 4px; }
.dlm-mv-pri li { padding: 6px 10px; grid-template-columns: 24px minmax(0, 1fr) auto; }
.dlm-mv-pri i { width: 24px; height: 24px; font-size: 12px; }
.dlm-mv-pri small { display: none; }
.dlm-mv-pri b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlm-mv-pri em { font-size: 14px; }
.dlm-mv-ver { height: 30px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 760px) { .dlm-mv-grid { grid-template-columns: 1fr !important; } .dlm-mv-map { height: 200px !important; } }
.dlm-mv-map { height: 300px !important; } @media (max-width: 760px) { .dlm-mv-map { height: 200px !important; } }

/* Carga de Mis vueltas con tarjetas fantasma del diseño nuevo (14/11) */
.dlm-mv-card.is-sk { cursor: default; pointer-events: none; }
.dlm-mv-card.is-sk .dlm-mv-map, .dlm-mv-card.is-sk .sk-l { background: linear-gradient(90deg, #0e1424 0%, #172036 50%, #0e1424 100%) 0 0 / 200% 100%; animation: dlmSk 1.3s linear infinite; }
.dlm-mv-card.is-sk .sk-l { display: block; height: 14px; border-radius: 6px; margin: 4px 0; width: 70%; }
.dlm-mv-card.is-sk .sk-l.is-a { height: 22px; width: 45%; } .dlm-mv-card.is-sk .sk-l.is-b { width: 35%; } .dlm-mv-card.is-sk .sk-l.is-c { height: 24px; width: 80%; }
@keyframes dlmSk { to { background-position: -200% 0; } }

/* Revisión de los tres (14/11): Por dónde empezar sin pisarse, ranking en la columna, referencia sin etiqueta, mapa acostado */
.dlm-seg-row { grid-template-columns: 28px minmax(0, 1fr) auto 72px auto; }
.dlm-seg-time:empty { display: none; }
.dlm-seg-diff { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .dlm-seg-row { grid-template-columns: 24px minmax(0, 1fr) auto 62px auto; } }
.s2-bajo .dlm-col > .dlm-card + .dlm-card, .s2-bajo .dlm-col > .dlm-card + div { margin-top: 18px; }
.s2-rk-box .dlc-row.is-me, .dlc-row.is-me.is-me { outline: 0; }
.dlm-rp-tag:empty { display: none; }
.dlm-rp-stage { height: 460px; }
.hc-pill .s2-disco { width: 20px; height: 20px; font-size: 11px; margin-right: 2px; }
.hc-pill.is-on { background: #1e293b; border-color: #e2e8f0; color: #fff; }
.hc-pill.is-on b { color: inherit; }
.dlm-cu-card-foot .dlm-cu-personal > i { display: none; }
@media (max-width: 640px) {
  .dlm-cu-card-foot { flex-wrap: wrap; row-gap: 6px; }
  .dlm-mv-info header { flex-wrap: wrap; row-gap: 10px; }
  .dlm-mv-info header > div { flex: 1 1 100%; }
  .dlm-mv-info header .dlm-mv-ver { width: 100%; justify-content: center; }
}

.dlm-rp-car.is-sin-marcha .dlm-rp-gear { display: none; }
.dlm-rp-pedals em { display: none; }
@media (max-width: 640px) {
  .hc-head { grid-template-columns: 1fr; grid-template-areas: "t" "nav" "f"; }
  .hc-nav { justify-content: space-between; }
  .hc-nav .hc-dif { margin-right: auto; text-align: left; }
  .hc3d-ley { display: none; }
}

/* Números de Sim racing estilo Track Titan (pedido del dueño 14/11, con Gemini): la letra de la web, gruesa y apretada,
   el tiempo grande manda, las milésimas un tono más apagadas y las diferencias en pastilla de color. */
#view-sim :is(.dlm-mv-times b, .dlm-mv-pri em, .s2-lp-t, .s2-lp-row > b, .s2-lp-d,
  .dlm-rp-delta > b, .dlm-rp-car-h > b, .dlm-rp-speed b, .dlm-rp-gear b, .dlm-rp-seg-times em, .dlm-rp-seg-times > b, .dlm-rp-clock b, .dlm-rp-clock span,
  .dlm-chart-vals, .hc-dif, .hc-pill b, .dlm-seg-diff, .dlm-seg-time, .hs-vueltas td, .dlm-tbl td, .s2-rk-box .dlc-pts, .s2-rk-box .hs-rk-gap,
  .dlm-plan-gain, .hs-stats b, .dlm-live b, .dlm-live span, .dlm-mv-vig-meta b) {
  font-family: 'Geist', system-ui, sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
#view-sim :is(.dlm-mv-times .is-me b, .dlm-rp-delta > b, .dlm-rp-speed b, .hc-dif, .dlm-plan-gain) { font-weight: 800; letter-spacing: -0.04em; }
#view-sim .dlm-mv-times .is-me b { font-size: clamp(26px, 2.3vw, 32px); }
#view-sim .dlm-rp-delta > b { min-width: 5.2ch; display: inline-block; }
#view-sim .dlm-rp-speed b { min-width: 3ch; display: inline-block; color: #fff; }
#view-sim .dlm-rp-clock b { min-width: 7ch; display: inline-block; }
#view-sim .dlm-ms { opacity: 0.55; font-size: 0.86em; font-weight: 600; letter-spacing: -0.01em; }
/* Diferencias en pastilla */
#view-sim .dlm-mv-times .is-dif b, #view-sim .dlm-seg-diff, #view-sim .dlm-mv-pri em, #view-sim .dlm-pill {
  display: inline-block; padding: 3px 9px; border-radius: 7px; background: rgba(148, 163, 184, 0.10); border: 1px solid rgba(148, 163, 184, 0.2); line-height: 1.15; justify-self: end; width: max-content;
}
#view-sim .dlm-mv-times .is-dif b { font-size: clamp(18px, 1.6vw, 22px); }
#view-sim .dlm-mv-times .is-dif.is-loss b { color: #f87171; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
#view-sim .dlm-mv-times .is-dif.is-gain b { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
#view-sim .dlm-mv-pri .is-p1 em, #view-sim .dlm-seg-row.is-p1 .dlm-seg-diff, #view-sim td.is-loss .dlm-pill { color: #f87171; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
#view-sim .dlm-mv-pri .is-p2 em, #view-sim .dlm-seg-row.is-p2 .dlm-seg-diff { color: #fb923c; background: rgba(249, 115, 22, 0.12); border-color: rgba(249, 115, 22, 0.3); }
#view-sim .dlm-mv-pri .is-p3 em, #view-sim .dlm-seg-row.is-p3 .dlm-seg-diff { color: #facc15; background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.3); }
#view-sim td.is-gain .dlm-pill { color: #4ade80; background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.3); }
#view-sim .hs-vueltas td.is-pb { color: #4ade80; }
#view-sim .dlm-seg-row { grid-template-columns: 30px minmax(0, 1fr) auto auto auto; }
#view-sim .dlm-mv-pri em { font-size: 14px; }

/* Círculos de curva con forma: degradé, brillo arriba, aro de su color; la prioridad 1 late con una onda (Gemini, 14/11) */
.s2-disco { position: relative; width: 30px; height: 30px; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: #e2e8f0;
  background: linear-gradient(165deg, #475569 0%, #1e293b 100%); border: 1.5px solid rgba(226, 232, 240, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 0 2px #0a0e17, 0 0 0 3.5px rgba(148, 163, 184, 0.22), 0 3px 8px rgba(0, 0, 0, 0.55); }
.s2-disco.is-p1 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); background: linear-gradient(165deg, #f87171 0%, #ef4444 48%, #b91c1c 100%); border-color: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 2px #0a0e17, 0 0 0 3.5px rgba(239, 68, 68, 0.65), 0 4px 10px rgba(239, 68, 68, 0.28); animation: s2Late 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.s2-disco.is-p1::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(239, 68, 68, 0.75); pointer-events: none; animation: s2Onda 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.s2-disco.is-p2 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); background: linear-gradient(165deg, #fb923c 0%, #f97316 50%, #c2410c 100%); border-color: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 2px #0a0e17, 0 0 0 3.5px rgba(249, 115, 22, 0.5), 0 3px 8px rgba(0, 0, 0, 0.55); }
.s2-disco.is-p3 { color: #090d16; background: linear-gradient(165deg, #fde047 0%, #eab308 55%, #a16207 100%); border-color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 2px #0a0e17, 0 0 0 3.5px rgba(234, 179, 8, 0.48), 0 3px 8px rgba(0, 0, 0, 0.55); }
.s2-disco.is-mis { width: 34px; height: 34px; font-size: 15.5px; border: 2px solid #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 0 2.5px #0a0e17, 0 0 0 4.5px rgba(239, 68, 68, 0.85), 0 0 0 7px rgba(239, 68, 68, 0.2), 0 6px 14px rgba(0, 0, 0, 0.65); }
.dlm-seg-row .s2-disco { width: 28px; height: 28px; font-size: 13.5px; }
.hc-pill .s2-disco { width: 22px; height: 22px; font-size: 11.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.hc-pill .s2-disco::after { display: none; }
.dlm-brk-picker .s2-disco { width: 24px; height: 24px; font-size: 12px; }
@keyframes s2Late { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.055); } }
@keyframes s2Onda { 0% { transform: scale(0.96); opacity: 0.75; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
/* Pines del mapa (Mis vueltas): aro de su color y onda en la prioridad 1 */
.dlm-mv-pin circle.dlm-mv-aro, .dlm-mv-pin circle.dlm-mv-onda { fill: none; stroke: #ef4444; stroke-width: 1.6px; vector-effect: non-scaling-stroke; opacity: 0.6; filter: none; }
.dlm-mv-pin.is-p2 circle.dlm-mv-aro { stroke: #f97316; } .dlm-mv-pin.is-p3 circle.dlm-mv-aro { stroke: #eab308; }
.dlm-mv-pin circle.dlm-mv-onda { transform-box: fill-box; transform-origin: center; animation: s2Onda 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.dlm-mv-pin text { font-weight: 800; }
/* Onda de la prioridad 1 sobre el mapa del replay */
.s2-onda { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 1.6px solid rgba(239, 68, 68, 0.8); pointer-events: none; animation: s2OndaR 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
@keyframes s2OndaR { 0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.8; } 70%, 100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; } }
/* 24/11 (pedido del dueño, "como Track Titan"): la onda se nota de verdad. Doble onda roja y gruesa en la curva que más
   cuesta, una suave en la 2ª y 3ª, y el tramo rojo de la pista brilla y respira. */
.dlm-mv-pin circle.dlm-mv-onda { stroke-width: 3px; opacity: 0; animation: mvPing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.dlm-mv-pin circle.dlm-mv-onda.is-2 { animation-delay: 0.9s; }
.dlm-mv-pin.is-p2 circle.dlm-mv-onda { stroke: #f97316; stroke-width: 2px; animation-duration: 2.6s; }
.dlm-mv-pin.is-p3 circle.dlm-mv-onda { stroke: #eab308; stroke-width: 2px; animation-duration: 2.6s; }
@keyframes mvPing { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
.dlm-mv-seg.is-p1 { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.9)); animation: mvLate 1.8s ease-in-out infinite; }
@keyframes mvLate { 50% { stroke-opacity: 0.45; } }
.s2-disco.is-p1::after { inset: -3px; border-width: 2.5px; animation: s2Ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes s2Ping { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.s2-onda { border-width: 3px; animation: s2OndaP 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes s2OndaP { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; } 80%, 100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .s2-disco.is-p1, .s2-disco.is-p1::after, .dlm-mv-pin circle.dlm-mv-onda, .s2-onda, .dlm-mv-seg.is-p1 { animation: none !important; } .s2-onda, .dlm-mv-pin circle.dlm-mv-onda { opacity: 0; } }
#view-sim .dlm-ms { display: inline !important; }
#view-sim .dlm-mv-times b { white-space: nowrap; }

/* Globos de curva afuera de la pista, con línea guía y punto en la curva (14/11) */
.dlm-mv-pin line.dlm-mv-guia { stroke: #ef4444; stroke-width: 1.5px; vector-effect: non-scaling-stroke; opacity: 0.85; }
.dlm-mv-pin.is-p2 line.dlm-mv-guia { stroke: #f97316; } .dlm-mv-pin.is-p3 line.dlm-mv-guia { stroke: #eab308; }
.dlm-mv-pin circle.dlm-mv-punto { fill: #ef4444; stroke: #0b0f17; filter: none; }
.dlm-mv-pin.is-p2 circle.dlm-mv-punto { fill: #f97316; } .dlm-mv-pin.is-p3 circle.dlm-mv-punto { fill: #eab308; }

/* Perfil (14/11): botón del encabezado con monedas, licencia y foto; credencial en el panel */
.dl-hp { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 4px 6px 4px 12px; border-radius: 999px; background: rgba(12,16,29,.92); border: 1px solid rgba(148,163,184,.22); color: #f8fafc; font-family: var(--f-ui); cursor: pointer; transition: border-color .16s, background-color .16s; }
.dl-hp:hover, .dl-hp.is-active { background: rgba(19,26,46,.98); border-color: rgba(226,232,240,.45); }
.dl-hp:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dl-coin { width: 16px; height: 16px; flex-shrink: 0; }
.dl-hp-coins { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: #fde68a; font-variant-numeric: tabular-nums; }
.dl-hp-sep { width: 1px; height: 18px; background: rgba(148,163,184,.22); flex-shrink: 0; }
.dl-hp-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; min-width: 0; }
.dl-hp-info strong { font-size: 13px; font-weight: 600; color: #fff; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-hp-info small { font-size: 11px; font-weight: 600; white-space: nowrap; }
.dl-hp-lic { display: flex; flex-shrink: 0; }
.dl-hp-lic img { width: 26px; height: 26px; object-fit: contain; }
.dl-hp-av { position: relative; width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.dl-hp-av svg { position: absolute; inset: 0; width: 34px; height: 34px; transform: rotate(-90deg); }
.dl-hp-av .is-bg { fill: none; stroke: rgba(148,163,184,.22); stroke-width: 2.4; }
.dl-hp-av .is-fg { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.dl-hp-av > span { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #1e2436; display: flex; align-items: center; justify-content: center; }
.dl-hp-av > span img { width: 100%; height: 100%; object-fit: cover; }
.dl-hp-av > span b { font-size: 10.5px; font-weight: 700; color: #e2e8f0; }
@media (max-width: 639px) {
  .dl-hp { height: 38px; gap: 7px; padding: 3px 4px 3px 10px; }
  .dl-hp-info { display: none; }
  .dl-hp-coins { font-size: 12.5px; }
}
.dl-menu-row-emb .dl-coin { width: 30px; height: 30px; }
.dl-menu-row-t.is-out { color: #fca5a5; }
.dl-cred { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; background: linear-gradient(160deg, #10151f 0%, #0a0d15 100%); border: 1px solid #1e2436; }
.dl-cred-top { display: flex; align-items: center; gap: 14px; }
.dl-cred-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #1e2436; border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dl-cred-av img { width: 100%; height: 100%; object-fit: cover; }
.dl-cred-av b { font-size: 18px; font-weight: 700; color: #e2e8f0; }
.dl-cred-id { display: flex; flex-direction: column; min-width: 0; }
.dl-cred-name { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-cred-lic { display: flex; align-items: center; gap: 14px; }
.dl-cred-lic img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.dl-cred-lic-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dl-cred-lic-t i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hm-mute); }
.dl-cred-lic-t b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.dl-cred-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(148,163,184,.18); overflow: hidden; }
.dl-cred-bar span { display: block; height: 100%; background: var(--c); border-radius: 2px; min-width: 4px; }
.dl-cred-lic-t small { margin-top: 6px; font-size: 12.5px; color: var(--hm-sub); }
.dl-cred-coins { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #1e2436; }
.dl-cred-coins .dl-coin { width: 22px; height: 22px; }
.dl-cred-coins b { font-size: 22px; font-weight: 700; color: #fde68a; font-variant-numeric: tabular-nums; }
.dl-cred-coins span { font-size: 13px; color: var(--hm-sub); }
@media (max-width: 1023px) { .dl-cred { padding: 20px 18px 16px; gap: 14px; border-radius: 0; border-width: 0 0 1px; } .dl-cred-name { font-size: 22px; } }
.dl-cred img { position: static; inset: auto; filter: none; }
.dl-cred { justify-content: center; }
/* Replay de la sesión (23/11): hitos de las curvas en los gráficos. Freno: triangulito arriba donde frena cada uno
   (Referencia plata, vos celeste). Con una curva elegida: líneas de frenada, vértice y a fondo y la franja entre las dos frenadas. */
.dlm-rp-charts .rp-ftri { position: absolute; top: 0; width: 0; height: 0; margin-left: -4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid #38bdf8; pointer-events: none; z-index: 2; }
.dlm-rp-charts .rp-ftri.is-ref { border-top-color: #cbd5e1; }
.dlm-rp-charts .rp-hz { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.dlm-rp-charts .rp-hz i { position: absolute; top: 0; bottom: 0; width: 0; margin-left: -1px; border-left: 2px solid #38bdf8; }
.dlm-rp-charts .rp-hz i.is-ref { border-left: 2px dashed #cbd5e1; }
.dlm-rp-charts .rp-hz b { position: absolute; top: 0; bottom: 0; background: rgba(56, 189, 248, 0.12); }
.dlm-rp-tick.is-c.is-mudo { width: 6px; height: 6px; padding: 0; font-size: 0; border-radius: 50%; top: 20px; }
/* Navegación como Track Titan (24/11): Mis vueltas con la última tanda arriba y la tabla de sesiones; botones de curva
   (número con su prioridad, segundos contra la Referencia y Analizar) en Mis vueltas y en la sesión. */
.dlm-mv-ult > .dlm-pt-sub { margin-top: 8px; }
.dlm-mv-ver.is-analizar { border-color: #38bdf8; background: #38bdf8; color: #04121d; font-weight: 700; }
.dlm-mv-card:hover .dlm-mv-ver.is-analizar { border-color: #7dd3fc; background: #7dd3fc; }
@media (min-width: 901px) {
  .dlm-mv-ult .dlm-mv-card { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .dlm-mv-ult .dlm-mv-map { height: 330px !important; border-bottom: 0; border-right: 1px solid rgba(148, 163, 184, 0.12); }
  .dlm-mv-ult .dlm-mv-info { justify-content: center; padding: 22px 24px; }
}
.dlm-mv-cvh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 8px; }
.dlm-mv-cvh b { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b9ab5; }
.dlm-mv-cvh small { font-size: 13px; color: #8b9ab5; }
/* Tira de curvas (24/11): una celda chica por curva, número con su prioridad y segundos debajo; en celular se desliza de costado. */
.s2-tira { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.s2-cvc { flex: 1 0 62px; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 62px; padding: 8px 4px 7px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0b1020; font-family: var(--f-ui); color: #e2e8f0; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.s2-cvc:hover, .s2-cvc:focus-visible { border-color: rgba(56, 189, 248, 0.6); background: rgba(56, 189, 248, 0.08); outline: none; }
.s2-cvc:focus-visible { box-shadow: 0 0 0 2px #38bdf8; }
.s2-cvc .s2-disco { width: 26px; height: 26px; font-size: 12.5px; }
.s2-cvc em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #cbd5e1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s2-cvc em.is-loss { color: #f87171; } .s2-cvc em.is-gain { color: #4ade80; }
.s2-curvas { margin: 14px 0 6px; }
.s2-curvas-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.s2-curvas-h b { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8b9ab5; }
.s2-curvas-h small { font-size: 12.5px; color: #8b9ab5; }
.s2-mom tr[data-mom] { cursor: pointer; }
.s2-mom tr[data-mom]:hover td, .s2-mom tr[data-mom]:focus-visible td { background: rgba(56, 189, 248, 0.06); }
.s2-mom tr[data-mom]:focus-visible { outline: 2px solid #38bdf8; outline-offset: -2px; }
.s2-mom small.s2-mom-nota { display: block; font-size: 11.5px; color: #64748b; }
#view-sim .s2-mom td:nth-child(2), #view-sim .s2-mom th:nth-child(2) { text-align: left; }
.dlm-mt { margin-top: 8px; }
/* Barra de filtros de Tus sesiones (24/11, "un filtro más pro"): una línea, desplegables con el estilo del selector de vueltas. */
.dlm-mf { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0b1020; }
.dlm-mf-items { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.dlm-mf .s2-lp.dlm-mf-dd { flex: none; }
.dlm-mf-dd .s2-lp-btn { gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.22); background: #0e1426; font-size: 13px; white-space: nowrap; }
.dlm-mf-dd .s2-lp-btn b { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.dlm-mf-k { font-size: 12.5px; font-weight: 500; color: #8b9ab5; }
.dlm-mf-dd .s2-lp-menu { right: auto; min-width: 210px; }
.dlm-mf-dd .s2-lp-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.dlm-mf-dd .s2-lp-row small { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.dlm-mf-sw { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 4px; border: 0; background: none; color: #cbd5e1; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.dlm-mf-sw i { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: #334155; transition: background 0.15s; }
.dlm-mf-sw i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #e2e8f0; transition: transform 0.15s; }
.dlm-mf-sw[aria-checked="true"] i { background: #38bdf8; } .dlm-mf-sw[aria-checked="true"] i::after { transform: translateX(12px); }
.dlm-mf-sw:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; border-radius: 6px; }
.dlm-mf-n { flex: none; font-size: 12.5px; color: #8b9ab5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dlm-mf-limpiar { flex: none; padding: 0 4px; border: 0; background: none; color: #38bdf8; font: inherit; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dlm-mf-toggle { display: none; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.22); background: #0e1426; color: #f1f5f9; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dlm-mf-toggle[aria-expanded="true"] { border-color: #38bdf8; }
@media (max-width: 960px) {
  .dlm-mf { flex-wrap: wrap; }
  .dlm-mf-toggle { display: inline-flex; }
  .dlm-mf-n { margin-left: auto; }
  .dlm-mf-items { display: none; order: 3; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .dlm-mf.is-open .dlm-mf-items { display: flex; }
  .dlm-mf .s2-lp.dlm-mf-dd { width: 100%; }
  .dlm-mf-dd .s2-lp-btn { width: 100%; }
  .dlm-mf-dd .s2-lp-btn .s2-lp-chev { margin-left: auto; }
  .dlm-mf-dd .s2-lp-menu { right: 0; min-width: 0; }
  .dlm-mf-sw { margin-left: 0; height: 34px; }
}
.dlm-mt-tbl td, .dlm-mt-tbl th { white-space: nowrap; }
#view-sim .dlm-mt-tbl td { padding: 10px 8px; vertical-align: middle; }
.dlm-mt-row[data-open] { cursor: pointer; }
.dlm-mt-row[data-open]:hover td, .dlm-mt-row[data-open]:focus-visible td { background: rgba(56, 189, 248, 0.06); }
.dlm-mt-row[data-open]:focus-visible { outline: 2px solid #38bdf8; outline-offset: -2px; }
.dlm-mt-row.is-off td { color: #64748b; } .dlm-mt-row.is-off td b { color: #94a3b8; }
.dlm-mt-tbl td.dlm-mt-juego { color: #94a3b8; font-size: 13px; }
.dlm-mt-tbl td.dlm-mt-pista, .dlm-mt-tbl th:nth-child(2) { text-align: left; white-space: normal; }
.dlm-mt-pista b { display: block; font-size: 14.5px; font-weight: 600; }
.dlm-mt-pista small { display: block; font-size: 12.5px; color: #8b9ab5; }
.dlm-mt-pista small:empty { display: none; }
.dlm-mt-pista small.dlm-mt-celu { display: none; }
.dlm-mt-tipo { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #cbd5e1; background: rgba(148, 163, 184, 0.14); }
.dlm-mt-tipo.is-carrera { color: #fecaca; background: rgba(239, 68, 68, 0.16); }
.dlm-mt-tipo.is-clasificacion { color: #e9d5ff; background: rgba(168, 85, 247, 0.2); }
.dlm-mt-tipo.is-practica { color: #bae6fd; background: rgba(56, 189, 248, 0.14); }
.dlm-mt-tipo.is-contrarreloj { color: #fde68a; background: rgba(245, 158, 11, 0.16); }
.dlm-mt-t b, .dlm-mt-dif { font-variant-numeric: tabular-nums; }
#view-sim .dlm-mt-tbl td.dlm-mt-dif.is-loss { color: #f87171; } #view-sim .dlm-mt-tbl td.dlm-mt-dif.is-gain { color: #4ade80; }
.dlm-mt-go { width: 22px; color: #64748b; }
.dlm-mt-row[data-open]:hover .dlm-mt-go { color: #38bdf8; }
@media (max-width: 700px) {
  .dlm-mt-tbl .dlm-mt-juego, .dlm-mt-tbl .dlm-mt-n, .dlm-mt-tbl .dlm-mt-go, .dlm-mt-tbl .dlm-mt-tp { display: none; }
  .dlm-mt-pista small.dlm-mt-celu { display: block; margin-top: 3px; }
  .dlm-mt-celu .dlm-mt-tipo { padding: 1px 7px; font-size: 11px; }
  .dlm-mt-pista small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
  .dlm-mt-pista small.dlm-mt-celu { white-space: normal; line-height: 1.5; }
  #view-sim .dlm-mt-tbl th { padding: 6px 4px; font-size: 11.5px; }
  #view-sim .dlm-mt-tbl td { padding: 9px 4px; }
  .dlm-mt-pista b { font-size: 14px; }
}

/* Grabación y Perfil adentro del programa (24/11): las mismas tarjetas, tablas y botones de la web. */
.dlm-app-hero { position: relative; margin-top: 8px; padding: 26px 28px; overflow: hidden; }
.dlm-app-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 30%, rgba(56, 189, 248, 0.12), transparent 60%); pointer-events: none; }
.dlm-app-hero.is-on { border-color: rgba(239, 68, 68, 0.45); }
.dlm-app-hero.is-on::after { background: radial-gradient(ellipse at 85% 30%, rgba(239, 68, 68, 0.16), transparent 60%); }
.dlm-app-ev { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; }
.dlm-app-ev i { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.dlm-app-hero.is-on .dlm-app-ev { color: #fca5a5; }
.dlm-app-hero.is-on .dlm-app-ev i { background: #ef4444; animation: dlmInBlink 1.4s ease-in-out infinite; }
.dlm-app-hero .dlm-title { font-size: 34px; }
.dlm-app-sub { margin: 6px 0 0; color: #aeb9d1; font-size: 15px; }
.dlm-app-corre { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: #94a3b8; font-size: 14px; }
.dlm-app-corre b { color: #fff; }
.dlm-app-tbl td:last-child, .dlm-app-tbl th:last-child { text-align: right; }
.dlm-app-tbl td.is-loss { color: #f87171; font-weight: 700; }
.dlm-app-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.dlm-app-mis { margin-bottom: 12px; border-left: 3px solid #ef4444; }
.dlm-app-mis.is-ok { border-left-color: #34d399; }
.dlm-app-mis > b { display: block; margin-top: 6px; font-size: 17px; color: #fff; }
.dlm-app-mis p { margin: 6px 0 0; color: #aeb9d1; font-size: 14px; }
.dlm-app-mis small { display: block; margin-top: 8px; color: #94a3b8; }
.dlm-app-meta b { color: #fff; }
.dlm-app-pas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dlm-app-pas span { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(248, 113, 113, 0.14); color: #fca5a5; }
.dlm-app-pas span.is-ok { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.dlm-app-pas i { font-style: normal; margin-right: 6px; opacity: 0.7; }
.dlm-app-pil { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0b1020; }
.dlm-app-pil.is-on { border-color: rgba(168, 85, 247, 0.5); }
.dlm-app-pil span b { display: block; color: #fff; font-size: 15px; }
.dlm-app-pil span small { color: #94a3b8; font-size: 12.5px; }
.dlm-app-nuevo { display: flex; gap: 10px; margin-top: 12px; }
.dlm-app-nuevo input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.3); background: #070b16; color: #fff; font: 500 14px var(--f-ui); }
.dlm-app-nuevo input:focus { outline: none; border-color: var(--sim-me); }
.dlm-app-err { margin: 10px 0 0; color: #fca5a5; font-size: 13.5px; }
.dlm-app-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dlm-app-datos div { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, 0.16); background: #0b1020; }
.dlm-app-datos span { display: block; color: #94a3b8; font-size: 12.5px; }
.dlm-app-datos b { display: block; margin-top: 4px; color: #fff; font-size: 17px; }
.dlm-app-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; color: #94a3b8; font-size: 14px; }
.dlm-app-pie b { color: #fff; }
.dlm-app-radio .dlm-app-acc { margin-top: 12px; }
.dlm-app-radio.is-aire { border-color: rgba(56, 189, 248, 0.5); }
.dlm-app-radio.is-aire .dlm-app-ev { color: #7dd3fc; }
.dlm-app-radio.is-aire .dlm-app-ev i { background: #38bdf8; animation: dlmInBlink 1.4s ease-in-out infinite; }
.dlm-app-meta { margin: 10px 0 0; color: #94a3b8; font-size: 14px; }
.dlm-app-ult { margin: 8px 0 0; color: #94a3b8; font-size: 14px; }
.dlm-app-ult b { color: #e0f2fe; font-weight: 600; }
@media (max-width: 760px) { .dlm-app-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dlm-app-hero .dlm-title { font-size: 26px; } }
