/* /tournament paper room. Full-bleed bento under the shared top bar: meta strip, then one
   shared chart beside a column of seat tiles. Every seat trades the coin on that chart.
   An empty seat dims its tile and centers JOIN TO LOBBY. Kit tiles, headers
   and buttons; tn-* only for the paper-room parts app.js paints. Breakpoints live in mobile.css. */
.v2-tour-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1fr) 352px;
  grid-template-rows: var(--v2-nav-h) auto minmax(0, 1fr);
  gap: var(--v2-rule);
  background: var(--v2-line);
}
.v2-tour-grid > .v2-nav {
  grid-column: 1 / -1;
  grid-row: 1;
}
.v2-tour-hero {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
}
.v2-tour-hero .v2-hd .tn-paper {
  margin-left: auto;
  color: var(--acc-hi);
}
.v2-tour-hero .v2-body {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 12px;
  background: var(--tile);
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  -webkit-font-smoothing: none;
}
.v2-tour-title {
  margin: 0;
  font-family: var(--pix);
  font-size: var(--fs-22);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--tx);
  -webkit-font-smoothing: none;
}
.tn-meta b {
  color: var(--tx);
  font-weight: 400;
}
.tn-timer {
  color: var(--tx);
  font-family: var(--mono);
  font-size: var(--fs-13);
  font-feature-settings: "zero" 1, "tnum" 1;
  text-transform: none;
}
.tn-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--mute);
}
.tn-dot.on {
  background: var(--acc);
  animation: tn-blink 480ms var(--st-1) infinite;
}
.tn-main {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.tn-main .v2-body {
  flex: 1 1 auto;
  min-height: 0;
}
.tn-main-lab {
  color: var(--mute);
}
/* Seat column: one row per seat, rows share the height. */
.tn-charts {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(min-content, 1fr);
  gap: var(--v2-rule);
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  background: var(--v2-line);
}
.tn-chart {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tn-chart .v2-body {
  flex: 1 1 auto;
}
.tn-seat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: var(--v2-rule);
  min-height: 124px;
  margin: 0;
  background: var(--line);
}
.tn-seat > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 0 12px;
  background: var(--tile);
}
.tn-seat dt {
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-seat dd {
  margin: 0;
  overflow: hidden;
  color: var(--tx);
  font-family: var(--mono);
  font-size: var(--fs-13);
  font-feature-settings: "zero" 1, "tnum" 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tn-side.long {
  color: var(--acc-hi);
}
.tn-side.short {
  color: var(--bone);
}
.tn-usd.up {
  color: var(--ok);
}
.tn-usd.dn {
  color: var(--crit-tx);
}
.tn-chart[hidden],
.tn-chart.is-off {
  display: none;
}
.tn-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-team[hidden] {
  display: none;
}
.tn-team-sq {
  width: 8px;
  height: 8px;
  background: var(--mute);
}
.tn-chart[data-team="A"] .tn-team-sq {
  background: var(--acc);
}
.tn-chart[data-team="B"] .tn-team-sq {
  background: var(--bone);
}
.tn-chart.yours {
  box-shadow: inset 0 0 0 var(--v2-rule) var(--acc);
}
.tn-chart.yours .tn-hd {
  background: var(--acc-hi);
  color: var(--ink);
}
.tn-chart.yours .tn-hd .v2-idx,
.tn-chart.yours .tn-sym,
.tn-chart.yours .tn-px,
.tn-chart.yours .tn-pnl,
.tn-chart.yours .tn-team {
  color: var(--ink);
}
.tn-chart.win .tn-hd {
  background: var(--ok);
  color: var(--ink);
}
/* On the --ok winner bar a green "up" PnL would vanish: header text goes ink. */
.tn-chart.win .tn-hd .v2-idx,
.tn-chart.win .tn-sym,
.tn-chart.win .tn-px,
.tn-chart.win .tn-pnl,
.tn-chart.win .tn-team {
  color: var(--ink);
}
.tn-chart.yours .tn-team-sq,
.tn-chart.win .tn-team-sq {
  background: var(--ink);
}
.tn-sym {
  color: var(--tx);
}
.tn-px,
.tn-pnl {
  color: var(--tx);
  font-family: var(--mono);
  font-size: var(--fs-12);
  font-feature-settings: "zero" 1, "tnum" 1;
  text-transform: none;
}
.tn-px {
  margin-left: auto;
}
.tn-chart .tn-px {
  color: var(--mute);
}
.tn-pnl.up {
  color: var(--ok);
}
.tn-pnl.dn {
  color: var(--crit-tx);
}
.tn-panel {
  display: flex;
  flex-direction: column;
}
.tn-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.tn-cv {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}
/* Empty seat: chart stays painted, a flat veil sits on top of it. */
.tn-chart.is-empty .tn-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg);
  opacity: 0.62;
  pointer-events: none;
}
.tn-veil,
.tn-pop-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.tn-veil[hidden],
.tn-pop-wrap[hidden],
.tn-trade[hidden],
.tn-taken[hidden],
.tn-bot[hidden],
.tn-reward[hidden] {
  display: none;
}
.tn-lobby {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--acc);
  background: var(--tile);
  color: var(--tx);
  box-shadow: var(--v2-shadow-4) var(--acc);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-lobby:hover {
  background: var(--tile);
  color: var(--tx);
}
.tn-pop {
  display: flex;
  flex-direction: column;
  width: 240px;
  max-width: 100%;
  background: var(--tile);
  border: 1px solid var(--acc);
  box-shadow: var(--v2-shadow-4) var(--acc);
}
.tn-pop-h {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  margin: 0;
  padding: 0 12px;
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-pop-sym {
  color: var(--tx);
}
.tn-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tn-pop .tn-field {
  width: 100%;
  border: 0;
  border-top: var(--v2-rule) solid var(--line);
}
.tn-pop .tn-field:last-of-type {
  border-bottom: var(--v2-rule) solid var(--line);
}
.tn-pop .tn-name {
  text-transform: none;
}
.tn-field::placeholder {
  color: var(--mute);
}
/* Loaded rooms, newest first. The open room is the inverted block. */
.tn-rooms {
  display: flex;
  align-self: stretch;
  gap: var(--v2-rule);
  margin-left: auto;
  overflow-x: auto;
}
.tn-room-b {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-left: var(--v2-rule) solid var(--line);
  background: var(--tile);
  color: var(--mute);
  font: inherit;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.tn-room-b.on {
  background: var(--acc);
  color: var(--ink);
}
.tn-pop-acts {
  display: flex;
}
.tn-pop-acts .tn-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  border: 0;
  box-shadow: none;
}
.tn-pop-acts .tn-cancel {
  border-right: var(--v2-rule) solid var(--line);
  color: var(--bone);
  background: var(--tile);
}
.tn-pop-acts .tn-cancel:hover {
  color: var(--bone);
  background: var(--alt);
}
.tn-trade,
.tn-taken,
.tn-bot,
.tn-reward {
  display: flex;
  align-items: center;
  gap: var(--v2-rule);
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0;
  background: var(--bg);
  border-top: var(--v2-rule) solid var(--line);
}
.tn-lab {
  flex: 0 0 auto;
  padding: 0 12px;
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-field {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-left: var(--v2-rule) solid var(--line);
  background: var(--bg);
  color: var(--tx);
  font-family: var(--mono);
  font-size: var(--fs-16);
  font-weight: 400;
  font-feature-settings: "zero" 1, "tnum" 1;
  text-transform: uppercase;
}
.tn-field:focus {
  outline: var(--v2-rule) solid var(--acc);
  outline-offset: calc(-1 * var(--v2-rule));
}
.tn-trade .tn-btn {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-right: var(--v2-rule) solid var(--line);
  box-shadow: none;
}
.tn-trade .tn-btn:last-child {
  border-right: 0;
}
.tn-btn:active {
  transform: none;
}
.tn-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Side buttons are filled blocks, like LONG / SHORT on /trade: BUY rose, SELL bone, ink text.
   The side you hold gets an ink frame inside the block. */
.tn-trade .tn-buy,
.tn-trade .tn-buy:hover {
  background: var(--acc-hi);
  color: var(--ink);
}
.tn-trade .tn-sell,
.tn-trade .tn-sell:hover {
  background: var(--bone);
  color: var(--ink);
}
.tn-buy.on,
.tn-sell.on {
  box-shadow: inset 0 0 0 3px var(--ink);
}
.tn-taken {
  margin: 0;
  padding: 0 12px;
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-note {
  margin: 0;
  padding: 12px;
  color: var(--mute);
  font-family: var(--mono);
  font-size: var(--fs-12);
}
.tn-bot.tn-note,
.tn-reward.tn-note {
  padding: 0 12px;
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-bot.tn-note {
  color: var(--mute);
}
.tn-reward.tn-note {
  color: var(--acc-hi);
}
.tn-toast {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: none;
  max-width: 320px;
  padding: 12px;
  border: var(--v2-rule) solid var(--acc);
  background: var(--tile);
  color: var(--tx);
  box-shadow: var(--v2-shadow-4) var(--acc);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-toast.on {
  display: block;
}
/* Game feel: hot clock, sound switch, rank chip, leader flash, big banners over the chart. */
.tn-timer.hot {
  color: var(--acc-hi);
  animation: tn-blink 480ms var(--st-1) infinite;
}
.tn-snd {
  min-height: 44px;
  margin-left: auto;
  padding: 0 12px;
  border: 0;
  border-left: var(--v2-rule) solid var(--line);
  background: var(--tile);
  color: var(--tx);
  font: inherit;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.tn-snd[aria-pressed="false"] {
  color: var(--mute);
}
.tn-rank {
  color: var(--mute);
  font-family: var(--mono);
  font-size: var(--fs-12);
  font-feature-settings: "tnum" 1;
}
.tn-rank:empty {
  display: none;
}
.tn-chart.lead .tn-rank {
  padding: 0 4px;
  background: var(--acc-hi);
  color: var(--ink);
}
.tn-chart.yours .tn-rank {
  color: var(--ink);
}
.tn-chart.yours.lead .tn-rank,
.tn-chart.win .tn-rank {
  background: var(--ink);
  color: var(--acc-hi);
}
.tn-chart.tn-flash {
  animation: tn-flash 720ms var(--st-3) 1;
}
/* PnL race strip under the shared chart. Line colors follow the seat swatches. */
.tn-race {
  flex: 0 0 auto;
  border-top: var(--v2-rule) solid var(--line);
}
.tn-race-hd {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 4px 12px;
  color: var(--tx);
  font-family: var(--pix);
  font-size: var(--fs-11);
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-race-sub {
  color: var(--mute);
}
.tn-race-replay {
  margin-left: auto;
  padding: 2px 8px;
  border: var(--v2-rule) solid var(--line);
  background: var(--tile);
  color: var(--tx);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}
.tn-race-replay:hover {
  border-color: var(--acc);
  color: var(--acc-hi);
}
.tn-race-replay[hidden] {
  display: none;
}
.tn-race-cv {
  display: block;
  width: 100%;
  height: 176px;
}
.tn-swatch {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--acc);
}
.tn-chart[data-slot="1"] .tn-swatch {
  background: var(--bone);
}
.tn-chart[data-slot="2"] .tn-swatch {
  background: var(--warn);
}
.tn-chart[data-slot="3"] .tn-swatch {
  background: var(--ok);
}
.tn-chart[data-slot="4"] .tn-swatch,
.tn-chart[data-slot="5"] .tn-swatch,
.tn-chart[data-slot="6"] .tn-swatch,
.tn-chart[data-slot="7"] .tn-swatch {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--acc);
}
.tn-chart[data-slot="5"] .tn-swatch {
  box-shadow: inset 0 0 0 2px var(--bone);
}
.tn-chart[data-slot="6"] .tn-swatch {
  box-shadow: inset 0 0 0 2px var(--warn);
}
.tn-chart[data-slot="7"] .tn-swatch {
  box-shadow: inset 0 0 0 2px var(--ok);
}
/* Five to eight seats: compact tiles; the join popup still gets its full height. */
.tn-charts.many {
  grid-auto-rows: min-content;
}
.tn-charts.many .tn-seat {
  min-height: 56px;
}
.tn-charts.many .tn-chart.is-joining .tn-seat {
  min-height: 220px;
}
.tn-chart.yours .tn-swatch {
  outline: 1px solid var(--ink);
}
/* Lobby guide: sits on the shared chart only, never over a seat, and lets clicks through. */
.tn-guide {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  width: min(420px, calc(100% - 22px));
  padding: 11px 16px;
  border: var(--v2-rule) solid var(--line);
  background: var(--bg);
  box-shadow: var(--v2-shadow-4) var(--ink);
  pointer-events: none;
}
.tn-guide[hidden] {
  display: none;
}
/* Trade feed on the left of the shared chart: plain text, no background, low-key. */
.tn-feed {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(360px, calc(100% - 110px));
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.tn-feed[hidden] {
  display: none;
}
.tn-feed-row {
  overflow: hidden;
  color: var(--mute);
  font-family: var(--mono);
  font-size: var(--fs-12);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.tn-feed-who {
  color: var(--tx);
}
.tn-feed-side.long {
  color: var(--acc-hi);
}
.tn-feed-side.short {
  color: var(--bone);
}
.tn-guide-hd {
  margin: 0 0 11px;
  color: var(--acc-hi);
  font-family: var(--pix);
  font-size: var(--fs-22);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tn-guide-list li {
  display: flex;
  gap: 11px;
  color: var(--tx);
  font-family: var(--mono);
  font-size: var(--fs-13);
  line-height: 1.4;
}
.tn-guide-list b {
  flex: 0 0 22px;
  height: 22px;
  background: var(--acc);
  color: var(--ink);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  line-height: 22px;
  text-align: center;
}
.tn-guide-ft {
  margin: 11px 0 0;
  color: var(--mute);
  font-family: var(--mono);
  font-size: var(--fs-12);
}
.tn-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: none;
  text-align: center;
}
.tn-fx[hidden] {
  display: none;
}
.tn-fx-big,
.tn-fx-sub {
  margin: 0;
  font-family: var(--pix);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-fx-big {
  padding: 11px 33px;
  font-size: var(--fs-66);
  line-height: 1;
  background: var(--bg);
  color: var(--acc-hi);
  box-shadow: var(--v2-shadow-8) var(--ink);
}
.tn-fx-sub {
  position: relative;
  z-index: 1;
  padding: 4px 11px;
  font-size: var(--fs-22);
  background: var(--tile);
  color: var(--tx);
}
.tn-fx-sub:empty {
  display: none;
}
.tn-fx-go .tn-fx-big {
  background: var(--acc-hi);
  color: var(--ink);
}
.tn-fx-timeup .tn-fx-big {
  background: var(--crit);
  color: var(--ink);
}
.tn-fx-leader .tn-fx-big {
  font-size: var(--fs-33);
  background: var(--bone);
  color: var(--ink);
}
.tn-fx-sprint .tn-fx-big {
  font-size: var(--fs-33);
  background: var(--warn);
  color: var(--ink);
}
.tn-fx-win .tn-fx-big {
  background: var(--ok);
  color: var(--ink);
}
/* WINNER / CHAMPION stays up through results; its card takes a click to hide. */
.tn-fx-win .tn-fx-big,
.tn-fx-win .tn-fx-sub,
.tn-fx-win .tn-fx-hint {
  pointer-events: auto;
  cursor: pointer;
}
.tn-fx-hint {
  display: none;
  margin: 0;
  padding: 2px 11px;
  font-family: var(--mono);
  font-size: var(--fs-12);
  background: var(--tile);
  color: var(--mute);
}
.tn-fx-win .tn-fx-hint {
  display: block;
}
.tn-fx.on .tn-fx-big {
  animation: tn-pop 240ms var(--st-3) 1;
}
@keyframes tn-pop {
  0% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes tn-flash {
  0%,
  66% {
    outline: 2px solid var(--acc);
    outline-offset: -2px;
  }
  100% {
    outline: 0 solid var(--acc);
  }
}
@keyframes tn-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tn-dot.on,
  .tn-timer.hot,
  .tn-chart.tn-flash,
  .tn-fx.on .tn-fx-big {
    animation: none;
  }
}
/* Seats 9 to 16 (bracket round 1) repeat the eight swatches. */
.tn-chart[data-slot="9"] .tn-swatch,
.tn-chart[data-slot="13"] .tn-swatch {
  background: var(--bone);
}
.tn-chart[data-slot="10"] .tn-swatch,
.tn-chart[data-slot="14"] .tn-swatch {
  background: var(--warn);
}
.tn-chart[data-slot="11"] .tn-swatch,
.tn-chart[data-slot="15"] .tn-swatch {
  background: var(--ok);
}
/* Live / Bracket tabs over the shared chart. Active = underline bar (same as the book tabs). */
.tn-tabs.x-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 0;
  border: 0;
  border-bottom: var(--v2-rule) solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.tn-tabs .v2-btn {
  position: relative;
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 33px;
  padding: 0 16px;
  border: 0;
  border-right: var(--v2-rule) solid var(--line);
  background: transparent;
  box-shadow: none;
  color: var(--mute);
  font-family: var(--pix);
  font-size: var(--fs-11);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-font-smoothing: none;
}
.tn-tabs .v2-btn:hover,
.tn-tabs .v2-btn.on {
  background: transparent;
  color: var(--tx);
}
.tn-tabs .v2-btn.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--acc);
  pointer-events: none;
}
.tn-tab-n {
  color: var(--acc-hi);
}
.tn-live {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.tn-live[hidden],
.tn-brk[hidden] {
  display: none;
}
/* Race board: during a round the seat cards sort by rank (app.js sets `order`) and the rank turns
   into a starting-grid block (P1, P2, ...) at the front of each header. */
.tn-charts.race .tn-chart .tn-hd .tn-rank {
  order: -1;
  min-width: 33px;
  padding: 0 4px;
  background: var(--line);
  color: var(--tx);
  font-family: var(--pix);
  font-size: var(--fs-11);
  text-align: center;
  -webkit-font-smoothing: none;
}
.tn-charts.race .tn-chart.lead .tn-hd .tn-rank {
  background: var(--acc-hi);
  color: var(--ink);
}
.tn-chart.tn-up {
  animation: tn-up 480ms var(--st-3) 1;
}
@keyframes tn-up {
  0% {
    transform: translateY(22px);
  }
  100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tn-chart.tn-up {
    animation: none;
  }
}
