/* Who's most likely? on the phones and the TV (web/games/likely.js). The line sits on a paper card, the lead-in a
   shade lighter; on the TV the votes land as paper chips stacking over each player's critter, the most picked
   rises, ringed in the accent, and the title lands under the stage on the accent. At the end, everyone's titles on
   cards in their own colours. */

/* The phones. */
.page .lk-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.page .lk-line .timer { font-size: 14px; }
.lk-double {
  padding: 5px 12px; border-radius: 9999px; background: var(--accent); color: var(--accent-text);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.lk-card { padding: 18px 20px 22px; border-radius: var(--radius-tile); background: var(--paper); color: var(--background); }
.lk-q { margin: 0; font-size: 26px; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.lk-lead { font-weight: 600; color: var(--paper-muted); }
.lk-card.mini { padding: 12px 16px 14px; }
.lk-card.mini .lk-q { font-size: 18px; }

/* Picking: everyone's critter, yours marked; the one you picked ringed. */
.lk-choices button { position: relative; }
.lk-you {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.lk-choices .lk-you { margin-top: -6px; }
.lk-picked { display: flex; flex-direction: column; gap: 2px; }

/* Who has picked: small critters, faded until they have, then a check. A wide screen has the list beside. */
.lk-strip { display: flex; flex-direction: column; gap: 10px; }
.lk-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-mini { position: relative; display: block; transition: opacity 0.3s ease; }
.lk-mini:not(.done) { opacity: 0.4; }
.lk-mini-critter { display: block; width: 38px; }
.lk-tick {
  position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 9999px;
  background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--background);
}
.lk-tick svg { width: 12px; height: 12px; }
@media (min-width: 820px) { .lk-strip { display: none; } }

/* The reveal on a phone: a row per player, the votes landing as dots; then the title and how you did. */
.lk-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lk-row {
  min-height: 52px; padding: 6px 12px 6px 8px; border-radius: var(--radius-row); background: var(--surface);
  border: 2px solid transparent; display: flex; align-items: center; gap: 10px;
  transition: opacity 0.4s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.lk-row.top { border-color: var(--accent); background: var(--accent-soft-bg); }
.lk-row.dim { opacity: 0.55; }
.lk-row-critter { width: 38px; }
.lk-row-name { flex-shrink: 0; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.lk-dots { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.lk-dot { display: block; width: 14px; height: 14px; border-radius: 9999px; background: var(--paper); }
.lk-row.top .lk-dot { background: var(--accent); }
.lk-row-n { min-width: 22px; text-align: right; font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--text-muted); }
.lk-row.top .lk-row-n { color: var(--accent); }
.lk-rows.many .lk-row { min-height: 44px; padding: 4px 12px 4px 6px; }
.lk-rows.many .lk-row-critter { width: 32px; }
.lk-rows.many .lk-row-name { font-size: 15px; }

.lk-won {
  padding: 18px 20px 20px; border-radius: var(--radius-tile); background: var(--accent-soft-bg); border: 1px solid var(--accent-soft-border);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.lk-won-heads { display: flex; padding-right: 10px; }
.lk-won-head { display: block; margin-right: -10px; }
.lk-won-critter { display: block; width: 60px; box-shadow: 0 0 0 3px var(--accent); }
.lk-won-for { color: var(--accent); }
.lk-won-text { margin: 0; font-size: 24px; line-height: 1.18; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.lk-won-you { margin: 0; font-size: 15px; font-weight: 600; color: var(--accent); }

.lk-yours {
  padding: 16px 20px 18px; border-radius: var(--radius-tile); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.lk-yours-line { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }
.lk-yours.read .lk-yours-line { color: var(--accent); }
.lk-yours-points { margin: 0; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }

/* Everyone's titles: a card each, in their own colour. Yours first and bigger, made to be photographed. */
.lk-tcard { background: var(--pc); color: var(--background); }
.page .lk-tcard { padding: 14px 16px 16px; border-radius: var(--radius-tile); display: flex; flex-direction: column; gap: 10px; }
.lk-thead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lk-tcritter { box-shadow: 0 0 0 3px var(--background); }
.page .lk-tcritter { width: 44px; }
.lk-tname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; letter-spacing: -0.01em; }
.page .lk-tname { font-size: 20px; }
.lk-tlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lk-tlist li { font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.lk-tlist li + li { border-top: 1px solid color-mix(in srgb, var(--background) 22%, transparent); }
.page .lk-tlist li { padding: 7px 0; font-size: 17px; }
.page .lk-tlist li:first-child { padding-top: 0; }
.page .lk-tlist li:last-child { padding-bottom: 0; }
.lk-tnone { margin: 0; font-weight: 600; opacity: 0.72; }
.page .lk-tnone { font-size: 16px; }
.page .lk-tcard.big { padding: 20px 20px 22px; gap: 14px; }
.page .lk-tcard.big .lk-tcritter { width: 72px; }
.page .lk-tcard.big .lk-tname { font-size: 28px; }
.page .lk-tcard.big .lk-tlist li { padding: 10px 0; font-size: 22px; line-height: 1.18; }
.page .lk-tcard.big .lk-tlist li:first-child { padding-top: 0; }
.page .lk-tcard.big .lk-tnone { font-size: 20px; }

/* The TV. */
.lk-tvq {
  margin: 0; align-self: flex-start; max-width: 100%; padding: calc(30 * var(--u)) calc(40 * var(--u)) calc(36 * var(--u));
  border-radius: calc(32 * var(--u)); background: var(--paper); color: var(--background);
  font-size: calc(60 * var(--u)); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.lk-tvq.mini {
  flex-shrink: 0; padding: calc(14 * var(--u)) calc(26 * var(--u)) calc(16 * var(--u)); border-radius: calc(20 * var(--u));
  font-size: calc(28 * var(--u)); letter-spacing: -0.01em;
}

/* The stage: everyone in a row, their votes stacking above them. */
.lk-stage {
  flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; gap: calc(26 * var(--u));
}
.lk-stage.many { gap: calc(6 * var(--u)); }
.lk-col {
  width: calc(128 * var(--u)); flex-shrink: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  transition: transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.45s ease;
}
.lk-stage.many .lk-col { width: calc(92 * var(--u)); }
.lk-col .lk-n, .lk-col .lk-stack, .lk-col .lk-who { transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }
.lk-col.dim .lk-n, .lk-col.dim .lk-stack, .lk-col.dim .lk-who { opacity: 0.4; }
.lk-col.top .lk-who { transform: translateY(calc(-6 * var(--u))) scale(1.06); }
.lk-n {
  min-height: calc(40 * var(--u)); font-size: calc(32 * var(--u)); line-height: calc(40 * var(--u)); font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--text-soft); transition: color 0.4s ease;
}
.lk-col.top .lk-n { color: var(--accent); }
.lk-stack { display: flex; flex-direction: column-reverse; align-items: center; padding: calc(4 * var(--u)) 0 calc(12 * var(--u)); }
.lk-chip {
  display: block; flex-shrink: 0; width: calc(66 * var(--u)); height: calc(18 * var(--u)); border-radius: 50%;
  background: var(--paper); box-shadow: 0 calc(4 * var(--u)) 0 var(--paper-muted);
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}
.lk-chip + .lk-chip { margin-bottom: calc((var(--step, 14) - 18) * var(--u)); }
.lk-stage.many .lk-chip { width: calc(54 * var(--u)); }
.lk-col.top .lk-chip { background: var(--accent); box-shadow: 0 calc(4 * var(--u)) 0 var(--couch-deep); }
.lk-who { position: relative; }
.lk-critter {
  display: block; width: calc(104 * var(--u)); box-shadow: 0 0 0 calc(4 * var(--u)) var(--background);
  transition: box-shadow 0.4s ease;
}
.lk-stage.many .lk-critter { width: calc(78 * var(--u)); }
.lk-col.top .lk-critter { box-shadow: 0 0 0 calc(5 * var(--u)) var(--accent), 0 0 calc(44 * var(--u)) var(--accent); }
.lk-star {
  position: absolute; top: calc(-8 * var(--u)); right: calc(-10 * var(--u)); width: calc(42 * var(--u)); height: calc(42 * var(--u));
  border-radius: 9999px; background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 calc(4 * var(--u)) var(--background);
}
.lk-star svg { width: 62%; height: 62%; fill: var(--accent-text); }
.lk-stage.many .lk-star { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
.lk-col .name-pill { margin-top: calc(12 * var(--u)); box-shadow: none; }
.lk-stage.many .name-pill { height: calc(30 * var(--u)); padding: 0 calc(10 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(30 * var(--u)); }

/* Under the stage: "The votes are in", then the title, on the accent. */
.lk-caption { flex-shrink: 0; min-height: calc(112 * var(--u)); display: flex; align-items: center; justify-content: center; text-align: center; }
.lk-intro { margin: 0; font-size: calc(40 * var(--u)); font-weight: 800; letter-spacing: -0.01em; color: var(--text-soft); transition: opacity 0.4s ease; }
.lk-intro.quiet { opacity: 0.45; }
.lk-title {
  max-width: calc(1100 * var(--u)); padding: calc(14 * var(--u)) calc(38 * var(--u)) calc(18 * var(--u)); border-radius: calc(28 * var(--u));
  background: var(--accent); color: var(--accent-text); box-shadow: 0 0 calc(80 * var(--u)) var(--glow-lamp);
  display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u));
}
.lk-title-for { margin: 0; font-family: var(--mono); font-size: calc(16 * var(--u)); letter-spacing: 0.08em; text-transform: uppercase; }
.lk-title-text { margin: 0; font-size: calc(42 * var(--u)); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; overflow-wrap: anywhere; }

/* Each player's score under their name: dim while the votes land, then counting up, the round's points beside. */
.lk-total {
  margin-top: calc(8 * var(--u)); min-height: calc(32 * var(--u)); display: flex; align-items: center; gap: calc(6 * var(--u));
  white-space: nowrap; transition: opacity 0.5s ease;
}
.lk-total.wait { opacity: 0.45; }
.lk-total-n { font-size: calc(24 * var(--u)); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.lk-plus {
  padding: calc(2 * var(--u)) calc(9 * var(--u)); border-radius: 9999px; background: var(--pc); color: var(--background);
  font-size: calc(17 * var(--u)); font-weight: 800;
}
.lk-stage.many .lk-total { flex-direction: column; gap: calc(3 * var(--u)); min-height: calc(56 * var(--u)); }
.lk-stage.many .lk-total-n { font-size: calc(20 * var(--u)); }
.lk-stage.many .lk-plus { font-size: calc(15 * var(--u)); }

/* Everyone's titles on the TV: a card each, as big as fits (likely.js sets --fs). */
.lk-titles-h { flex-shrink: 0; }
.lk-board {
  flex: 1; min-height: 0; display: grid; gap: calc(16 * var(--u));
  font-size: calc(var(--fs, 24) * var(--u));
}
.lk-board.cols-1 { grid-template-columns: minmax(0, 1fr); }
.lk-board.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lk-board.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lk-board.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Rows as tall as their fullest card, stretched to fill the screen when there's room. */
.lk-board { overflow: hidden; align-content: stretch; }
.lk-board.rows-1 { grid-template-rows: auto; }
.lk-board.rows-2 { grid-template-rows: repeat(2, auto); }
.lk-board.rows-3 { grid-template-rows: repeat(3, auto); }
.tv .lk-tcard {
  padding: 0.7em 0.85em; border-radius: calc(24 * var(--u));
  display: flex; flex-direction: column; gap: 0.5em;
}
.tv .lk-thead { gap: 0.45em; }
.tv .lk-tcritter { width: 2.1em; box-shadow: 0 0 0 calc(3 * var(--u)) var(--background); }
.tv .lk-tname { font-size: 1.15em; }
.tv .lk-tlist li { padding: 0.32em 0; }
.tv .lk-tlist li:first-child { padding-top: 0; }
