/* Course virtuelle : piste, peloton, classement en direct, débrief */

.race-live-status {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.race-live-status strong { color: var(--cyan); }

.virtual-track {
  display: grid;
  gap: 5px;
  background:
    linear-gradient(90deg, #17271f 0 24%, #1d3026 24% 25%, #17271f 25% 49%, #1d3026 49% 50%,
      #17271f 50% 74%, #1d3026 74% 75%, #17271f 75% 99%, var(--lime) 99%);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.race-lane { height: 42px; position: relative; border-bottom: 1px dashed #385146; }
.race-lane:last-child { border-bottom: 0; }

.runner-marker {
  position: absolute;
  left: 0;
  top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: left .38s cubic-bezier(.25, .7, .3, 1);
  max-width: 150px;
}

.runner-silk {
  height: 31px;
  width: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #07110e;
  font-weight: 900;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .55);
}

.runner-marker.leader .runner-silk { background: var(--lime); box-shadow: 0 0 15px rgba(200, 255, 98, .55); }

.runner-label { font-size: 10px; font-weight: 800; white-space: nowrap; text-shadow: 0 2px 3px #07110e; }
.runner-rank { font-size: 9px; color: var(--gold); }

.race-progress { height: 6px; background: #20342c; border-radius: 4px; margin-top: 10px; overflow: hidden; }

.race-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #8fc433, var(--lime));
  box-shadow: 0 0 10px rgba(200, 255, 98, .4);
  transition: width .35s;
}

.virtual-podium { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.virtual-podium.finished {
  color: var(--text);
  border-left: 3px solid var(--lime);
  padding: 11px 14px;
  background: #10231a;
  border-radius: 0 9px 9px 0;
  font-size: 12.5px;
}

/* Piste ovale SVG */

.virtual-track.oval { display: block; background: var(--panel); padding: 14px; }

.track-svg { display: block; width: 100%; height: auto; }

.track-venue {
  fill: #f5f3e9;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 3px;
}

.track-info { fill: #91a39a; font-size: 17px; text-anchor: middle; }
.track-info.small { font-size: 13px; fill: #6d7f76; }

.horse-dot { transition: transform .38s linear; }

.horse-dot text {
  fill: #07110e;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
  pointer-events: none;
}

.horse-dot.leader circle {
  stroke: #c8ff62;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 7px #c8ff62);
}

.horse-dot.faulted circle {
  stroke: #ff7c70;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px #ff7c70);
}

.sim-comment.fault-note {
  border-left: 3px solid var(--red);
  padding-left: 12px;
  color: var(--text);
}
.sim-comment.fault-note strong { color: var(--red); }

/* Classement en direct */

.live-standings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.standing-chip {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2cec7;
  background: rgba(13, 27, 22, .6);
}

.standing-chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.standing-chip.top6 {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(243, 199, 97, .07);
}

/* Débrief de la simulation */

.simulation-report {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--panel-2);
}

.simulation-report h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.3px; }

.simulation-report h4 {
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan);
}

.sim-comment {
  margin: 0;
  line-height: 1.7;
  color: #dbe4de;
  border-left: 3px solid var(--cyan);
  padding: 11px 15px;
  background: #11241c;
  border-radius: 0 9px 9px 0;
}

.sim-data { margin: 0; padding-left: 18px; display: grid; gap: 7px; }
.sim-data li { font-size: 13px; line-height: 1.55; color: #c2cec7; }
.sim-data strong { color: var(--text); }

.simulation-report .responsible-note { margin: 14px 0 0; }

@media (max-width: 600px) {
  .runner-label { display: none; }
  .runner-marker { max-width: 40px; }
  .race-lane { height: 38px; }
}
