/* Track timeslip card: shared by practice and head-to-head. Sharp, monospace, no neon. */
.ptl-timeslip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  background: #0a0c0e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: #e8ece8;
  max-width: 340px;
  width: 100%;
  margin: 12px auto 0;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
  text-align: left;
}
.ptl-timeslip[hidden] { display: none !important; }
.ptl-timeslip__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 8px 12px;
  background: #12161c;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 10px; letter-spacing: .04em; color: #8a939c;
  text-transform: none; font-weight: 600;
}
.ptl-timeslip__brand { color: #cfd6df; font-weight: 700; }
.ptl-timeslip__lane {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 6px;
  font-size: 12px; color: #cfd6df;
}
.ptl-timeslip__lane-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 4px;
  background: #1a1f26; border: 1px solid rgba(255,255,255,.14);
  font-weight: 800; font-size: 12px; color: #f2f5f2;
}
.ptl-timeslip__car {
  font-size: 11px; color: #8a939c;
}
.ptl-timeslip__car b { color: #e6c66e; font-weight: 700; }
.ptl-timeslip__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ptl-timeslip__cell {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-right: 1px solid rgba(255,255,255,.06);
}
.ptl-timeslip__cell:nth-child(2n) { border-right: none; }
.ptl-timeslip__k {
  font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  color: #5b646e; font-weight: 700; margin-bottom: 3px;
}
.ptl-timeslip__v {
  font-size: 18px; font-weight: 700; color: #f2f5f2; line-height: 1.15;
}
.ptl-timeslip__v.foul { color: #ff4436; }
.ptl-timeslip__v.win { color: #d4a72c; }
.ptl-timeslip__v.amber { color: #ffb020; }
.ptl-timeslip__foot {
  padding: 8px 12px 10px;
  font-size: 11px; color: #8a939c;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ptl-timeslip__foot b { color: #f2f5f2; font-weight: 700; }
.ptl-timeslip--foul .ptl-timeslip__head { border-bottom-color: rgba(255,68,54,.35); }
.ptl-timeslip--win .ptl-timeslip__head { border-bottom-color: rgba(212,167,44,.28); }

/* Seven-segment lane RT under the tree (practice + race boards already use canvas;
   this is a CSS fallback strip for solo when the board art is hidden). */
.ptl-seg {
  display: flex; justify-content: center; gap: 10px;
  margin: 8px auto 0; max-width: 320px;
}
.ptl-seg__lane {
  flex: 1; min-width: 0;
  background: #050607;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 6px 8px 8px;
  text-align: center;
}
.ptl-seg__lbl {
  font-family: 'Saira', system-ui, sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: .06em;
  color: #5b646e; margin-bottom: 4px; text-transform: uppercase;
}
.ptl-seg__digits {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px; font-weight: 700; letter-spacing: .06em;
  color: #ffb01e;
  text-shadow: none;
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}
.ptl-seg__digits.foul { color: #ff4436; }
.ptl-seg__digits.empty { color: rgba(255,176,30,.22); }

/* Practice win cue (solo): small amber bar above the tree when RT is clean and strong */
.ptl-solo-win {
  display: none; justify-content: center; gap: 6px; margin: 0 auto 6px;
}
.ptl-solo-win.on { display: flex; }
.ptl-solo-win i {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a2a2a; border: 1px solid #444;
}
.ptl-solo-win.on i {
  background: radial-gradient(circle at 40% 35%, #ffe9a8, #ffb020 55%, #8a5a00);
  border-color: #c48910;
  box-shadow: 0 0 6px rgba(255,176,32,.35);
  transition: none;
}

@media (max-width: 390px) {
  .ptl-timeslip { max-width: 100%; margin-left: 0; margin-right: 0; }
  .ptl-timeslip__v { font-size: 16px; }
  .ptl-seg__digits { font-size: 18px; }
}

.ptl-timeslip__actions {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ptl-timeslip__actions .ptl-again {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 10px 14px;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: Saira, system-ui, sans-serif; font-weight: 800; font-size: 14px;
  letter-spacing: .02em; background: #e3263b; color: #ffffff;
}

/* Quiet post-run bar (practice arena): View timeslip + Run it again, no layout jump */
.ptl-slip-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 6px auto 0;
  max-width: 560px;
  width: 100%;
}
.ptl-slip-bar:not([hidden]) { display: flex; }
.ptl-slip-bar[hidden] { display: none !important; }
.ptl-slip-bar__view {
  height: 36px; padding: 0 14px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.16); background: #12161c; color: #cfd6df;
  font-family: Inter, system-ui, sans-serif; font-size: 12px; font-weight: 700;
  cursor: pointer;
}
.ptl-slip-bar__view:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.ptl-slip-bar .ptl-again {
  height: 36px; padding: 0 16px; border-radius: 6px; border: none; cursor: pointer;
  font-family: Saira, system-ui, sans-serif; font-weight: 800; font-size: 13px;
  background: #e3263b; color: #ffffff;
}

/* White paper timeslip modal */
.ptl-timeslip-paper {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  padding: 24px 16px;
}
.ptl-timeslip-paper.open,
.ptl-timeslip-paper:not([hidden]) { display: flex; }
.ptl-timeslip-paper[hidden] { display: none !important; }
.ptl-timeslip-paper__scrim {
  position: absolute; inset: 0; background: rgba(0,0,0,.62);
  cursor: pointer;
}
.ptl-timeslip-paper__sheet {
  position: relative; z-index: 1;
  width: min(360px, 92vw);
  background: #f7f4ea;
  color: #111;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  box-shadow: 0 18px 48px rgba(0,0,0,.45);
  padding: 0 0 14px;
}
.ptl-timeslip-paper__x {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  height: 28px; padding: 0 10px; border-radius: 4px;
  border: 1px solid #bbb; background: #fff; color: #333;
  font-family: Inter, system-ui, sans-serif; font-size: 11px; font-weight: 700;
  cursor: pointer;
}
.ptl-timeslip-paper__tear {
  height: 10px;
  background:
    linear-gradient(135deg, #f7f4ea 33.33%, transparent 33.33%) 0 0 / 12px 10px,
    linear-gradient(225deg, #f7f4ea 33.33%, transparent 33.33%) 0 0 / 12px 10px;
  background-color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.08));
}
.ptl-timeslip-paper__tear--bot {
  transform: rotate(180deg);
  margin-top: 8px;
}
.ptl-timeslip-paper__body { padding: 8px 22px 4px; }
.ptl-paper__brand {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-align: center; color: #111; margin-bottom: 4px;
}
.ptl-paper__when {
  font-size: 10px; text-align: center; color: #444; margin-bottom: 10px;
}
.ptl-paper__lane {
  font-size: 12px; font-weight: 700; text-align: center; margin-bottom: 8px;
}
.ptl-paper__rule {
  border-top: 1px dashed #999; margin: 8px 0;
}
.ptl-paper__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 4px 0; color: #111;
}
.ptl-paper__row span:first-child { color: #555; font-size: 11px; letter-spacing: .04em; }
.ptl-paper__row span:last-child { font-weight: 800; font-size: 16px; }
.ptl-paper__row .foul { color: #c01818; }
.ptl-paper__note { font-size: 11px; color: #666; margin-top: 6px; text-align: center; }
.ptl-paper__foot { font-size: 9px; color: #777; text-align: center; margin-top: 4px; }
