.chip-strip {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(4px, 1vw, 25px);
  max-width: 100%;
  margin: 6px auto;
  padding: 0;
  list-style: none;
  font-variant-numeric: tabular-nums;
}
.chip-strip li { min-width: 0; display: grid; justify-items: center; gap: .18em; line-height: 1.2; }
.chip-art {
  display: block;
  position: relative;
  width: 36px;
  width: clamp(24px, min(3.9vw, 6.4vh), 78px);
  max-width: 100%;
}
/* The percentage keeps the image square even when eight chips share a narrow stage. */
.chip-art::before { display: block; padding-top: 100%; content: ""; }
.chip-art > img, .chip-art > .chip-token {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.chip-art > img { border-radius: 50%; object-fit: cover; object-position: center; }
.chip-strip b { font-size: clamp(10px, 1vw, 23px); word-wrap: break-word; overflow-wrap: anywhere; }
.chip-token {
  display: block;
  border-radius: 0;
  background: url("/tv-chip.png") center / contain no-repeat;
  box-shadow: none;
  -webkit-filter: var(--chip-tint, hue-rotate(0deg)) drop-shadow(0 2px 2px rgba(15, 8, 22, .4));
  filter: var(--chip-tint, hue-rotate(0deg)) drop-shadow(0 2px 2px rgba(15, 8, 22, .4));
}
/* Suppress the inset from older server stylesheets when this CSS is bundled in the App. */
.chip-token::after { content: none; }
.token-1 { --chip-tint: hue-rotate(50deg) saturate(1.16); }
.token-2 { --chip-tint: hue-rotate(159deg) saturate(1.35) brightness(1.15); }
.token-3 { --chip-tint: hue-rotate(-112deg) saturate(1.22) brightness(1.13); }
.token-4 { --chip-tint: hue-rotate(96deg) saturate(1.45) brightness(1.18); }
.token-5 { --chip-tint: grayscale(1); }
.token-6 { --chip-tint: hue-rotate(-44deg) saturate(1.4) brightness(1.14); }
.token-7 { --chip-tint: hue-rotate(132deg) saturate(1.22); }

.tv.tv-live { padding-bottom: 4.5vh; padding-bottom: max(4.5vh, env(safe-area-inset-bottom)); }
.tv-live .tv-stage-chips .chip-strip { flex-wrap: nowrap; gap: 0; margin: .7vh auto 0; }
.tv-live .tv-stage-chips .chip-strip li {
  flex: 0 1 11vh;
  width: 11vh;
  margin: 0 .25vw;
}
.tv-live .tv-stage-chips .chip-art { width: 9.6vh; }
.tv-live .tv-stage-chips .chip-strip b { width: 100%; font-size: 2.6vh; margin-top: .15em; }
@media (orientation: landscape) {
  .tv-live.has-chip-strip .tv-stage > h1 {
    font-size: 7.1vh;
    font-size: clamp(24px, min(5.2vw, 7.1vh), 204px);
  }
  .tv-live.has-chip-strip .tv-stage > .leveltag {
    font-size: 3.1vh;
    font-size: clamp(14px, min(2.3vw, 3.1vh), 90px);
  }
  .tv-live.has-chip-strip .timer {
    font-size: 25vh;
    font-size: clamp(34px, min(26vh, 27cqw), 860px);
  }
  .tv-live.has-chip-strip .timer.long-clock {
    font-size: 19vh;
    font-size: clamp(30px, min(24vh, 20cqw), 860px);
  }
  .tv-live.has-chip-strip .tv-stage .blindrow strong {
    font-size: 6vh;
    font-size: min(6.8vh, calc(168cqw / var(--blind-length, 9)));
  }
  .tv-live.has-chip-strip .tv-stage .blindrow small,
  .tv-live.has-chip-strip .tv-stage .blindrow em { font-size: 2.65vh; }
}
@media (max-aspect-ratio: 4/3) {
  .tv-live .tv-stage-chips .chip-art { width: 6.8vw; }
}
@media (orientation: portrait) {
  .tv-live .tv-stage-chips .chip-art { width: 10.5vw; }
  .tv-live .tv-stage-chips .chip-strip b { font-size: 3.1vw; }
}
@media (orientation: landscape) and (max-height: 550px) {
  .tv-live.has-chip-strip .timer { font-size: 19vh; }
  .tv-live.has-chip-strip .timer.long-clock { font-size: 16vh; }
}
