/* ============================================================
   /live big screen (league nights). Rides the kiosk layout;
   everything namespaced .live- so nothing leaks into member
   pages. Type sized in vh/vw for TV viewing, same approach as
   the kiosk deck. Dark flat field, screen-burn safe.
   ============================================================ */

.live-stage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 4.5vh 4vw;
}

.live-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2vw;
}
.live-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.2vh;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 0.6vh;
}
.live-status {
  display: flex;
  align-items: center;
  gap: 1.4vw;
  padding-bottom: 1vh;
}
.live-state-chip {
  font-size: 2vh;
  padding: 0.4vh 1vw;
}
.live-clock {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.8vh;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3vw;
  margin-top: 3vh;
  align-items: stretch;
}
/* Overflowing rows clip at the bottom of the tower: a fixed big screen
   cannot scroll, and the front of the field is the story. */
.live-tower {
  min-width: 0;
  overflow: hidden;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
}
.live-table td {
  padding: 1vh 0.8vw;
  border-bottom: 1px solid rgba(32, 36, 43, 0.6);
  font-size: 2.9vh;
  line-height: 1.2;
}
.live-table tr:last-child td { border-bottom: 0; }
.live-pos {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  width: 4vw;
}
.live-no {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  width: 5vw;
}
.live-driver {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 26vw;
}
.live-laps {
  text-align: right;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  width: 6vw;
}
.live-pit { width: 5vw; text-align: right; }
.live-pit-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2vh;
  letter-spacing: 0.12em;
  color: var(--warm);
  border: 1px solid rgba(229, 181, 103, 0.4);
  background: var(--warm-soft);
  border-radius: 0.6vh;
  padding: 0.2vh 0.6vw;
}
tr.live-row-p1 { background: var(--accent-soft); }
tr.live-row-p1 td:first-child { box-shadow: inset 6px 0 0 var(--accent-deep); }
tr.live-row-p1 .live-pos { color: var(--accent); }

.live-map {
  align-self: center;
  justify-self: center;
  width: 100%;
  min-width: 0;
}
.live-map svg {
  width: 100%;
  height: auto;
  max-height: 74vh;
  display: block;
}
.live-map-credit {
  margin-top: 1vh;
  font-size: 1.5vh;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-align: center;
}

.live-stage-empty {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.live-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 6vh;
  color: var(--ink);
  margin-top: 2vh;
}
.live-empty-sub {
  font-size: 3vh;
  color: var(--ink-faint);
  margin-top: 1vh;
}
