/* ============================================================
   Live strip: the auto-scrolling row of animated game cards right
   above the dashboard (docs/index.html). Data: docs/data/live/,
   built by scripts/build_live_strip.py. Script: live-strip.js.
   ============================================================ */

.ls { max-width: 1180px; margin: 34px auto 22px; padding: 0 24px; box-sizing: border-box; text-align: left; }
.ls[hidden] { display: none !important; }
.ls-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 2px 10px; }
.ls-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: #F5D370; }
.ls-badge i { width: 8px; height: 8px; border-radius: 50%; background: #D4AF37; box-shadow: 0 0 10px rgba(212,175,55,.7); }
.ls-badge.live { color: #ff8b7d; }
.ls-badge.live i { background: #ff4b3a; box-shadow: 0 0 10px rgba(255,75,58,.8); animation: lsPulse 1.3s ease-in-out infinite; }
@keyframes lsPulse { 50% { opacity: .25; } }
.ls-sub { color: #a9a39a; font-size: 13px; }
.ls-hint { color: #6f6a62; font-size: 12px; margin-left: auto; }

/* ticker */
.ls-ticker { overflow: hidden; border-top: 1px solid #2a2721; border-bottom: 1px solid #2a2721; background: rgba(10,10,9,.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); margin-bottom: 12px; }
.ls-ticker-track { display: flex; width: max-content; animation: lsTick 70s linear infinite; }
.ls-ticker:hover .ls-ticker-track { animation-play-state: paused; }
.ls-ticker span { white-space: nowrap; padding: 9px 14px; font: 600 11.5px/1 "Courier New", monospace; letter-spacing: .08em;
  color: #d8d2c4; text-transform: uppercase; }
.ls-ticker b { color: #F5D370; font-weight: 700; }
.ls-ticker .sep { color: #D4AF37; padding: 9px 2px; }
@keyframes lsTick { to { transform: translateX(-50%); } }

/* the scrolling row of cards */
.ls-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #3a362e transparent;
  -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.ls-viewport::-webkit-scrollbar { height: 6px; }
.ls-viewport::-webkit-scrollbar-thumb { background: #3a362e; border-radius: 3px; }
.ls-track { display: flex; gap: 14px; width: max-content; }
.ls-card { width: 300px; flex: 0 0 300px; box-sizing: border-box; padding: 13px 14px 12px; border-radius: 14px;
  background: linear-gradient(160deg, #1b1916 0%, #0c0b0a 80%); border: 1px solid #2c2923; display: flex;
  flex-direction: column; gap: 9px; position: relative; color: #f0f0f0; font-family: Arial, sans-serif; }
.ls-card.wide { width: 360px; flex-basis: 360px; }
.ls-card:hover { border-color: rgba(212,175,55,.55); }
.ls-card-top { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.ls-title { font: 700 10.5px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #a9a39a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-pickers { display: flex; gap: 5px; }
.ls-pickers .ls-select { flex: 1 1 0; min-width: 0; max-width: none; }
.ls-select { appearance: none; -webkit-appearance: none; background: #151412 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='5'><path d='M0 0l4 5 4-5z' fill='%23D4AF37'/></svg>") no-repeat right 6px center;
  border: 1px solid #3a372f; border-radius: 6px; color: #e8e2d4; font: 11px Arial, sans-serif; padding: 3px 18px 3px 7px;
  max-width: 132px; cursor: pointer; }
.ls-select:hover, .ls-select:focus { border-color: #D4AF37; outline: none; }
.ls-select option { background: #151412; color: #e8e2d4; }
.ls-foot { color: #8c867b; font-size: 11.5px; line-height: 1.35; }

/* scoreboard */
.ls-team { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; color: #cfc8ba; }
.ls-team .tri { display: inline-flex; align-items: center; gap: 8px; }
.ls-team .tri i { width: 10px; height: 10px; border-radius: 3px; }
.ls-team .sc { font: 700 30px/1 "Courier New", monospace; color: #cfc8ba; font-variant-numeric: tabular-nums; }
.ls-team.win, .ls-team.win .sc { color: #fff; }
.ls-qtable { width: 100%; border-collapse: collapse; font: 11px/1.4 "Courier New", monospace; color: #bdb6a8; }
.ls-qtable th { color: #7d776c; font-weight: 400; text-align: center; padding: 1px 2px; }
.ls-qtable td { text-align: center; padding: 1px 2px; }
.ls-qtable td:first-child, .ls-qtable th:first-child { text-align: left; }
.ls-qtable td.t { color: #fff; font-weight: 700; }

/* svg charts */
.ls-svg { display: block; width: 100%; height: auto; }
.ls-svg text { font-family: Arial, sans-serif; }
.ls-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: lsDraw 2.4s ease-out forwards; }
@keyframes lsDraw { to { stroke-dashoffset: 0; } }

/* stats rows */
.ls-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ls-stats div { display: grid; gap: 2px; }
.ls-stats span { font: 700 9px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8c867b; }
.ls-stats b { font: 700 17px/1 "Courier New", monospace; color: #fff; font-variant-numeric: tabular-nums; }

/* player card */
.ls-player { display: flex; align-items: center; gap: 10px; }
.ls-player img { width: 64px; height: 47px; object-fit: cover; object-position: top; border-radius: 9px; background: #151412;
  border: 1px solid #2c2923; }
.ls-player .nm { font-family: "Playfair Display", Georgia, serif; font-size: 19px; line-height: 1.1; color: #fff; }
.ls-player .tm { color: #8c867b; font-size: 12px; }

/* race / comparison bars */
.ls-race { position: relative; }
.ls-rrow { position: absolute; left: 0; right: 0; height: 22px; display: grid; grid-template-columns: 78px 1fr 28px;
  gap: 7px; align-items: center; transition: transform .45s ease; font-size: 11.5px; }
.ls-rrow .n { color: #cfc8ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-rrow .b { height: 13px; background: #211f1b; border-radius: 3px; overflow: hidden; }
.ls-rrow .b i { display: block; height: 100%; width: 0; transition: width .25s linear; border-radius: 3px; }
.ls-rrow .v { font: 700 12px "Courier New", monospace; text-align: right; color: #fff; }
.ls-cmp { display: grid; gap: 6px; }
.ls-cmp-row { display: grid; grid-template-columns: 38px 1fr 64px 1fr 38px; gap: 6px; align-items: center; font-size: 11px; }
.ls-cmp-row .l, .ls-cmp-row .r { font: 700 11.5px "Courier New", monospace; color: #fff; }
.ls-cmp-row .r { text-align: right; }
.ls-cmp-row .lbl { text-align: center; color: #8c867b; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.ls-cmp-row .bar { height: 7px; background: #211f1b; border-radius: 4px; overflow: hidden; display: flex; }
.ls-cmp-row .bar.left { justify-content: flex-end; }
.ls-cmp-row .bar i { display: block; height: 100%; width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); border-radius: 4px; }

/* count-up tiles */
.ls-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-tile { background: rgba(255,255,255,.025); border: 1px solid #25221d; border-radius: 10px; padding: 9px 10px; }
.ls-tile b { display: block; font: 700 26px/1 "Courier New", monospace; color: #fff; font-variant-numeric: tabular-nums; }
.ls-tile span { display: block; margin-top: 4px; font: 700 9.5px/1.25 Arial, sans-serif; letter-spacing: .1em;
  text-transform: uppercase; color: #D4AF37; }

@media (max-width: 640px) {
  .ls { padding: 0 14px; margin-top: 26px; }
  .ls-card, .ls-card.wide { width: 82vw; flex-basis: 82vw; max-width: 340px; }
  .ls-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-ticker-track, .ls-badge.live i, .ls-draw { animation: none !important; }
  .ls-draw { stroke-dashoffset: 0; }
  .ls-ticker { overflow-x: auto; }
  .ls-rrow, .ls-rrow .b i, .ls-cmp-row .bar i { transition: none !important; }
}
