/* ---- the championship podium (podium.js): the game's Screens/SplitScreen_Podium -------------
   Its Results container is anchored right and top. The panel: UI/MessageBoxBack_transparent at
   170/255, in three parts from (570, 20), 480 high: the left part 100 wide, the texture's
   0.7..0.8 stretched to 280, the left part mirrored. The heading (font Large) is centred on
   (820, 60). The standings table (VuSplitScreenStandingsTableEntity) starts at (610, 110): rows
   430 x 56 (UI/Table_Row; the player's UI/Table_Row_selected), 62 apart from 2 down; the place
   at 0 and the name at 70 left-aligned, the points right-aligned at 400, all font Large and
   centred on the row's height. Continue (UI/Buttons/Medium, 300 x 90) is at (810, 650),
   anchored right and bottom. Past 6 rows (online rooms race up to 10) the panel grows down and
   the rows close up to 48 apart, so all fit above Continue. */
.podium__catch { position: absolute; inset: 0; }
.podium.can-leave .podium__catch { pointer-events: auto; }    /* any click or touch: Continue */
.podium__tags { position: absolute; inset: 0; overflow: hidden; }
.podium__tag.is-player { color: rgb(255 249 71); }

.podium__panel { width: 0; height: 0; }
.podium__panel-part {
  position: absolute;
  top: 0;
  height: calc(var(--panel-h, 480) * var(--g));
  opacity: .667;
  background: url(../assets/podium/panel.png) 0 0 / 100% 100% no-repeat;
}
.podium__panel-part--left { left: 0; width: calc(100 * var(--g)); }
.podium__panel-part--middle {
  left: calc(100 * var(--g));
  width: calc(280 * var(--g));
  background-size: 1000% 100%;               /* the texture's 0.7 .. 0.8 across its width */
  background-position: 77.778% 0;
}
.podium__panel-part--right { left: calc(380 * var(--g)); width: calc(100 * var(--g)); scale: -1 1; }

.podium__heading {
  margin: 0;
  translate: -50% -50%;
  white-space: nowrap;
  line-height: 1;
}

.podium__table { width: 0; height: 0; }
.podium__row {
  position: absolute;
  left: 0;
  top: calc((2 + var(--step, 62) * var(--i)) * var(--g));
  width: calc(430 * var(--g));
  height: calc(var(--row-h, 56) * var(--g));
  background: url(../assets/ui/table_row.png) center / 100% 100% no-repeat;
}
.podium__row.is-player { background-image: url(../assets/ui/table_row_selected.png); color: rgb(255 249 71); }
.podium__cell { position: absolute; top: 50%; translate: 0 -50%; line-height: 1; white-space: nowrap; }
.podium__cell--place { left: calc(14 * var(--g)); }      /* the data's 0, past the row's clear edge */
.podium__cell--name { left: calc(70 * var(--g)); scale: var(--fit, 1); transform-origin: 0 50%; }
.podium__cell--points { right: calc(30 * var(--g)); }
.podium__cell--name .results__ai { font-size: calc(22 * var(--g)); }

.podium.is-long { --step: 48; --row-h: 44; --panel-h: max(480, 102 + 48 * var(--n)); }
.podium.is-long .podium__cell { font-size: calc(38 * var(--g)); }

.podium__continue { --tx: 150; --ty: 45; --tw: 300; --th: 90; --label-y: 0; }
