/* The live zone (web/live.js): top games as they are played, turned into guessing. Since 25
   November 2026. Every colour is one of the site's own tokens (web/look.css). A mark never
   rests on colour alone: a right guess is a tick, a wrong one a cross, the move played is
   ticked in the tally, and the engine's bar carries its number in words. */
.live .puzzle__board { display: flex; flex-direction: column; gap: 4px; }
.lv-boardwrap { position: relative; }
/* The coordinates' strip outside the board (looks.css, .coords-out): the names above and the bar
   below move in with the board. */
.lv-boardwrap.coords-out { margin: 0 0 var(--cg-gutter) var(--cg-gutter); }
.live .puzzle__board:has(.coords-out) > :not(.lv-boardwrap) { margin-left: var(--cg-gutter); }
.lv-seat { display: flex; align-items: baseline; gap: 8px; min-height: 26px; padding: 0 2px; font-size: 14px; color: var(--c-font); }
.lv-seat b { color: var(--c-font-clear); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lv-seat b i { font-style: normal; color: var(--c-font-clearer); font-weight: 700; border: 1px solid var(--c-border); border-radius: 3px; padding: 0 3px; font-size: 0.82em; }
.lv-seat span, .lv-seat em { color: var(--c-font-dim); font-style: normal; font-size: 12.5px; }
.lv-seat time { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-font-clear); background: var(--c-bg-zebra); padding: 1px 8px; border-radius: 4px; }
.lv-seat time:empty { display: none; }
.lv-bar { position: relative; height: 22px; border-radius: 4px; overflow: hidden; background: #403d39; border: 1px solid var(--c-border); }
.lv-bar i { position: absolute; inset: 0 auto 0 0; background: #e8e6e3; display: block; transition: width 0.4s; }
.lv-bar span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; mix-blend-mode: difference; }
.lv-moves { flex: 1 1 120px; min-height: 96px; max-height: 34vh; overflow-y: auto; padding: 10px 14px; line-height: 1.9; font-size: 14.5px; border-bottom: 1px solid var(--c-border); }
.lv-moves i { font-style: normal; color: var(--c-font-dim); margin-right: 2px; }
.lv-moves a { padding: 2px 5px; border-radius: 3px; cursor: pointer; color: var(--c-font); white-space: nowrap; }
.lv-moves a:hover { background: var(--c-bg-zebra); color: var(--c-font-clear); }
.lv-moves a.now { background: var(--c-bg-low); color: var(--c-font-clearer); outline: 2px solid var(--c-primary); font-weight: 600; }
.lv-moves sup { font-size: 0.75em; margin-left: 1px; font-weight: 700; }
/* The tick, the cross and the wavy sign say it by shape, so they take the plain ink. */
.lv-moves sup { color: var(--c-font-clearer); }
.lv-step { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 8px; border-bottom: 1px solid var(--c-border); }
.lv-step .button { padding: 0.45em 0.8em; font-size: 0.85rem; min-height: 36px; }
.lv-on { background: var(--c-bad); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.02em; }
.lv-links { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-links .button { padding: 0.5em 0.9em; font-size: 0.85rem; border: 1px solid var(--c-border); }
.lv-room-form { display: flex; flex-direction: column; gap: 6px; }
.lv-room-form select { font: inherit; padding: 6px; background: var(--c-bg-input); color: var(--c-font-clear); border: 1px solid var(--c-border); border-radius: 4px; }
.lv-clock { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 14px; color: var(--c-font); }
.lv-clock .bar { flex: 1 1 auto; height: 8px; border-radius: 4px; background: var(--c-bg-low); overflow: hidden; display: block; }
.lv-clock .bar i { display: block; height: 100%; background: var(--c-primary); }
.lv-clock b { font-variant-numeric: tabular-nums; color: var(--c-font-clear); white-space: nowrap; }
.lv-last { display: block; margin-top: 6px; }
.lv-tally { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--c-border); }
.lv-tally h4 { margin: 0 0 6px; font-weight: 600; color: var(--c-font-clear); font-size: 14px; }
.lv-tally__row { display: grid; grid-template-columns: 5.2em 1fr 1.6em; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.lv-tally__row .bar { display: block; height: 10px; border-radius: 5px; background: var(--c-bg-low); overflow: hidden; }
.lv-tally__row .bar i { display: block; height: 100%; background: var(--c-font-dim); }
.lv-tally__row.played b { color: var(--c-good); }
.lv-tally__row.played .bar i { background: var(--c-good); }
.lv-tally__row em { font-style: normal; text-align: right; color: var(--c-font-clear); }
.lv-tally__row small { grid-column: 1 / -1; color: var(--c-font-dim); font-size: 12px; }
.lv-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 8px; }
.lv-table th, .lv-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--c-border); }
.lv-table th { color: var(--c-font-dim); font-weight: 600; }
.lv-score { padding: 0 var(--box-pad); margin: 0 0 10px; color: var(--c-font); }
.lv-score b { color: var(--c-font-clear); }
.lv-wait.row.locked { opacity: 0.7; }
.lv-count { color: var(--c-font-clear); }
@media (max-width: 800px) {
  .lv-moves { max-height: 22vh; min-height: 60px; }
  /* On a phone the question and its answer sit right under the board, above the list of moves:
     below the list they were a whole screen down. */
  .live .puzzle__head { order: -2; }
  .live .puzzle__feedback { order: -1; border-bottom: 1px solid var(--c-border); }
}
