/* ---------- the phone's league page (Avi 11/1, notes/mock-phone-leagues-v8.html; league.js draws it, web.mjs writes it
   into the HTML): the league row (chrome.css .lgs) pinned, the column heads once under it, then a card per game: its
   kickoff and line count over a rule, a row per team (the line over the best price and its book), then the vig row
   (board.css .tdg .ft's face: both best sides over $1, green under); the card one link into the game. Shown on a phone's
   Odds tab while no game is open (html.lg: set by the server, taken off for a game, boot.js); a desktop never shows it ---------- */
.lgv {
  display: none;
}
@media (max-width: 640px) {
  html.lg body[data-view='board'] .lgv {
    display: block;
  }
  html.lg body[data-view='board'] :is(.slatebar, .lgbar, .layout) {
    display: none;
  }
  .lgvbar {
    position: sticky;
    top: 0;
    z-index: 21;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .lgg {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 82px 82px;
    column-gap: 4px;
    align-items: center;
  }
  .lgh {
    position: sticky;
    top: 41px; /* under the league row (40px and its rule) */
    z-index: 20;
    background: var(--ground);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: calc(var(--gutter) + 11px); /* the cards' hairline and padding: the heads over their columns */
  }
  .lgh span {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 10px/1 var(--body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .lgvw {
    padding-bottom: 24px;
  }
  /* the card: one link into the game (Avi 11/1), pressed as a whole */
  .lgx {
    row-gap: 4px;
    padding: 0 10px 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 100ms ease-out,
      background-color 150ms ease-out;
  }
  .lgx:active {
    background: color-mix(in srgb, var(--surface) 50%, var(--raised)); /* halfway: the tiles still stand out */
    transform: scale(0.99);
  }
  .lgx + .lgx {
    margin-top: 8px;
  }
  .lgk,
  .lgn {
    height: 34px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
  }
  .lgk {
    grid-column: 1 / 4;
    display: flex;
    align-items: center;
    font: 500 12px/1 var(--body);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
  .lgk .livechip {
    font: 600 var(--t-xs)/1 var(--body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bad);
    background: var(--flash-down);
    padding: 3px 6px;
    border-radius: var(--r-sm);
  }
  .lgn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    font: 500 12px/1 var(--body);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
  }
  .lgn svg {
    flex: none;
    margin-right: -4px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }
  .lgt {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font: 600 15px/1 var(--body);
    color: var(--ink);
  }
  .lgt img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }
  /* a price: the line over the best price and its book, on its tile (Avi 11/1: the tiles stay; the card is what's pressed) */
  .lgc {
    height: 50px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border-radius: var(--r);
    background: var(--raised);
    color: var(--ink);
    overflow: hidden;
  }
  .lgc > b {
    font: 500 14px/1 var(--num);
    color: var(--ink);
  }
  .lgc > i {
    display: flex;
    align-items: center;
    gap: 4px;
    font: 400 12px/1 var(--num);
    font-style: normal;
    color: var(--muted);
  }
  .lgc > i .bk {
    width: 13px;
    height: 13px;
    border-radius: 3px;
    object-fit: contain;
  }
  .lgc.ml > i {
    font: 500 14px/1 var(--num);
    color: var(--ink);
    gap: 5px;
  }
  .lgc.ml > i .bk {
    width: 14px;
    height: 14px;
  }
  .lgc.none {
    background: none;
  }
  .lgc.none > i {
    color: var(--faint);
  }
  .lgf {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 var(--t-sm)/1 var(--num);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
  }
  .lgf.l {
    justify-content: flex-start;
    font: 500 var(--t-xs)/1 var(--body);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .lgf.pos {
    color: var(--pos);
  }
}
