/* Tier Blitz's round (tierplay.js; TIER_BLITZ_SPEC.md 3.3): the ask while you type, then the scale after each guess.
   Everything else on the page is List Blitz's (listblitz.css): the shell, the top bar, the face-off, the pills, the bar
   and the field. The bands step from the round's own level colour (--tier, set on .lp-shell): +100 full, +10 the palest. */
.tp-body { display: flex; flex-direction: column; padding-bottom: 6px; }
/* THE ASK: the prompt and round 1's tip (no set name above it since 2026-11-27: the pill says it). */
.tp-ask { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; }
.tp-prompt { margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.85rem; line-height: 1.15; color: var(--text); max-width: 22ch; }
.tp-side { display: inline-block; max-width: 30ch; padding: 7px 14px; border-radius: 16px; font-size: 0.95rem; color: var(--text);
  background: color-mix(in srgb, var(--tier) 14%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tier) 40%, transparent); }
.tp-side b { color: var(--tier-deep, var(--tier)); }
.tp-side:empty { display: none; }   /* the tip shows on round 1 only (George, 2026-11-25) */
.lp-kb .tp-prompt { font-size: 1.5rem; margin-bottom: 10px; }
/* THE SCALE: shown only while a guess is revealed; the ask steps aside. */
.tp-scale { display: none; }
.tp-revealing .tp-ask { flex: 0 0 auto; padding: 4px 12px 8px; }
.tp-revealing .tp-ask .tp-prompt { font-size: 1.2rem; margin: 0; }
.tp-revealing .tp-ask .tp-side { display: none; }
.tp-revealing .tp-scale { flex: 1; min-height: 220px; display: flex; flex-direction: column; padding: 0 10px; }
.tp-track { position: relative; flex: 1; min-height: 180px; margin: 0 0 2px; }
.tp-in { position: absolute; left: 0; right: 0; top: 14px; bottom: 14px; }
/* No end labels since 2026-11-25: the scale runs from the ask to the result line. */
.tp-revealing .tp-track { margin-top: 4px; }
.tp-band { position: absolute; left: 0; width: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px; line-height: 1; color: #fff; background: color-mix(in srgb, var(--tier) calc(100% - var(--k, 0) * 8.5%), #fff);
  border: 1.5px solid var(--bg); box-sizing: border-box; transition: box-shadow 200ms ease, transform 200ms ease; }
.tp-band.tp-pale { color: var(--tier-deep, var(--text)); }
.tp-band span { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.tp-band.tp-thin span { font-size: 0.82rem; line-height: 1; }
.tp-band.tp-lit { box-shadow: 0 0 0 3px var(--tier-deep, var(--tier)); transform: scale(1.06); z-index: 1; }
.tp-rail { position: absolute; left: 58px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--rule); }
.tp-marks { position: absolute; left: 52px; right: 0; top: 0; bottom: 0; }
/* A mark sits on the rail at its answer's place (top: rank / (n - 1)). */
.tp-mark { position: absolute; left: 0; display: flex; align-items: center; gap: 6px; max-width: 100%;
  margin-top: -14px; height: 28px; white-space: nowrap; }
.tp-mark .tp-mk-t { overflow: hidden; text-overflow: ellipsis; }
.tp-me { z-index: 3; font: 700 0.95rem var(--font-ui); color: #fff; }
.tp-me .tp-mk-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--tier-deep, var(--tier)); box-shadow: 0 0 0 3px #fff; flex-shrink: 0; }
.tp-me .tp-mk-t { background: var(--tier); padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 0 var(--tier-deep, rgba(0, 0, 0, 0.2)); }
.tp-me .tp-mk-p { font-family: var(--font-display); color: var(--tier-deep, var(--tier)); }
/* Theirs sit to the right of the rail, smaller, in their player colour. */
.tp-them-dot { position: absolute; left: 3px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--pcolor, var(--faint));
  box-shadow: 0 0 0 2px #fff; z-index: 2; animation: tp-pop 280ms ease both; }
.tp-them { z-index: 2; left: 22px; font: 600 0.85rem var(--font-ui); color: var(--text); animation: tp-pop 280ms cubic-bezier(.3, 1.4, .5, 1) both; }
.tp-them .tp-mk-p { font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); }
.tp-them .tp-mk-t { background: #fff; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--pcolor, var(--rule)); }
.tp-av { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: var(--pcolor, var(--faint)); color: #fff; font: 700 0.82rem var(--font-ui); }
.tp-av img { width: 100%; height: 100%; object-fit: cover; }
.tp-missed { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding-top: 4px; }
.tp-miss-me, .tp-miss-them { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; color: var(--muted); }
.tp-miss-me { padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule); text-decoration: line-through; animation: tp-fall 700ms ease-in both; }
.tp-miss-them { animation: tp-pop 280ms ease both; }
@keyframes tp-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes tp-fall { 0% { transform: translateX(0); } 15% { transform: translateX(-6px); } 30% { transform: translateX(6px); } 45% { transform: translateX(0); } 100% { transform: translateY(6px); opacity: 0.85; } }
.tp-line { min-height: 1.5em; margin: 8px 8px 0; text-align: center; font-size: 0.95rem; color: var(--text); }
.tp-line b { font-weight: 700; }
.tp-plus { font-family: var(--font-display); font-weight: 700; color: var(--tier-deep, var(--tier)); }
.tp-zero { font-family: var(--font-display); font-weight: 700; color: var(--danger, #b42318); }
/* The field and Submit side by side; the clock row and the wake button across both. Not during the face-off:
   listblitz.css hides the controls under .lp-pre, and this must not outrank it (George, 2026-11-24: the compose box
   showed at the foot of the face-off). */
.tp-shell:not(.lp-pre) .lp-controls { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; }
.tp-shell .lp-controls > .lp-timerow, .tp-shell .lp-controls > .lp-wake { grid-column: 1 / -1; }
.tp-go.t-btn { padding: 0 16px; min-height: 48px; font-size: 1rem; }
.tp-shake { animation: tp-shake 360ms ease; }
@keyframes tp-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
/* LANES (George, 2026-11-25: players spread across the screen in the order of the avatars at the bottom). Each player's
   answer is an avatar in their own column at the answer's place, its words and points under it (over it near the foot,
   .tp-up); a dot on the rail and a faint line join the two. Overrides the row-shaped .tp-mark above. */
.tp-mark.tp-lane { flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; height: auto; margin-top: 0;
  white-space: normal; text-align: center; padding: 0; box-sizing: border-box; }
.tp-mark.tp-lane.tp-up { flex-direction: column-reverse; }
.tp-lane .tp-av { width: 24px; height: 24px; box-shadow: 0 0 0 2px #fff; font-size: 0.82rem; }
.tp-lane.tp-me .tp-av { width: 26px; height: 26px; border-radius: 50%; background: var(--tier-deep, var(--tier)); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--tier); }
.tp-lane .tp-mk-t { width: max-content; max-width: 8.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  white-space: normal; word-break: normal; overflow-wrap: normal;
  font-size: 0.82rem; line-height: 1.2; padding: 3px 6px; border-radius: 10px; box-sizing: border-box; }
.tp-lane.tp-me .tp-mk-t { padding: 4px 7px; }
/* A word is never broken: a label may run past its lane, centred under its avatar; the first lane's runs right (off
   the bands), the last lane's left (on screen). */
.tp-lane.tp-first .tp-mk-t { align-self: flex-start; }
.tp-lane.tp-last .tp-mk-t { align-self: flex-end; }
.tp-lane .tp-mk-p { font-size: 0.82rem; line-height: 1; }
.tp-lane-dot { position: absolute; left: 3px; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--pcolor, var(--faint));
  box-shadow: 0 0 0 2px #fff; z-index: 2; }
.tp-lane-dot-me { background: var(--tier-deep, var(--tier)); }
.tp-them.tp-lane, .tp-lane-dot:not(.tp-lane-dot-me) { animation: tp-pop 280ms cubic-bezier(.3, 1.4, .5, 1) both; }
/* A reveal's opponents drop with yours (tierplay.js drawOpp): the drop is the motion, no pop on top of it. */
.tp-them.tp-lane.tp-drop { animation: none; }
.tp-lane.tp-still, .tp-lane-dot.tp-still { animation: none; }
/* Answered: the compose box goes with the keyboard until the next step (George, 2026-11-27). */
.tp-shell.tp-answered:not(.lp-pre) .lp-controls { display: none; }
/* And the players' pills below it (George, 2026-11-27: "Hide bottom avatars"): on the scale every answer already
   wears its player's avatar in that player's lane, and the running totals come back with the next step. */
.tp-shell.tp-answered:not(.lp-pre) .lp-players { display: none; }
/* A live room: who is still answering, under the result line. */
.tp-wait { min-height: 1.3em; margin: 2px 8px 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.tp-wait:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .tp-them, .tp-miss-me, .tp-miss-them, .tp-shake, .tp-lane-dot { animation: none; } .tp-band { transition: none; } }

/* THE ANSWER SHEET (George, 2026-11-25: "show the scale all the way down the side of the answers ... and simply have my
   answer shown at the top and then highlight in the list"). Your answer (and a friend's) in the score strip on top, then
   every answer in a block per points value, the block's band down its left side in the scale's own colour (.tp-band's
   formula). Drawn into #screen-results, outside .lp-shell, so .tp-review carries --tier itself. */
.tp-review { padding: 4px 16px 32px; }
.tp-rv-ask { font: 600 1.25rem/1.25 var(--font-display); color: var(--text); text-align: center; margin: 8px 0 12px; }
.tp-rv-top .tp-rv-cell[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tp-rv-top .tp-rv-ans { font-size: 1rem; color: var(--text); margin: 2px 4px 0; overflow-wrap: anywhere; }
.tp-rv-top .tp-rv-ans.tp-rv-none { color: var(--muted); font-weight: 500; }
.tp-sheet { padding: 14px 0 0; }
.tp-sh-scale { display: flex; flex-direction: column; gap: 6px; }
.tp-sh-band { display: flex; align-items: stretch; gap: 10px; }
.tp-sh-rail { flex: 0 0 46px; border-radius: 8px; color: #fff; background: color-mix(in srgb, var(--tier) calc(100% - var(--k, 0) * 8.5%), #fff); }
.tp-sh-rail.tp-pale { color: var(--tier-deep, var(--text)); }
/* The band's points stay in view down a long band, below the sheet's sticky header. */
.tp-sh-rail span { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); display: block; padding: 12px 0; text-align: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1; }
.tp-sh-rows { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tp-sh-row { display: flex; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; }
.tp-sh-row .as-opt-text { min-width: 0; overflow-wrap: anywhere; }
.tp-sh-row.tp-sh-mine { background: color-mix(in srgb, var(--tier) 16%, #fff); border-color: var(--tier-deep, var(--tier)); font-weight: 700;
  box-shadow: 0 2px 0 var(--tier-deep, var(--tier)); }
.tp-sh-row.tp-sh-theirs:not(.tp-sh-mine) { border-color: var(--pcolor, var(--faint)); border-style: dashed; }
.tp-sh-me, .tp-sh-them { margin-left: auto; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.tp-sh-me { color: var(--tier-deep, var(--accent)); }
.tp-sh-them { color: var(--muted); }
.tp-sh-me + .tp-sh-them { margin-left: 0; }
.tp-still { animation: none; }
