/* Live classroom: projector (host) and phone (join). Tokens come from base.css. */

.live-host,
.live-join-page {
  --live-display: 'Archivo', 'Public Sans', system-ui, sans-serif;
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
}

.live-host button,
.live-join-page button,
.live-join-page input {
  font: inherit;
}

/* Shared buttons ---------------------------------------------------------- */
.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms, color 120ms;
}
.live-btn:hover:not(:disabled) {
  background: var(--paper);
}
.live-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.live-btn:focus-visible,
.live-seg:focus-visible,
.live-input:focus-visible,
.live-lot-kick:focus-visible,
.live-check:focus-visible {
  outline: 2px solid var(--pub);
  outline-offset: 2px;
}
.live-btn-primary {
  background: var(--ink);
  color: var(--sheet);
}
.live-btn-primary:hover:not(:disabled) {
  background: #24382f;
}
.live-btn-quiet {
  border-color: var(--rule);
  background: transparent;
}
.live-btn-block {
  display: flex;
  width: 100%;
}
.live-btn-xl {
  min-height: 64px;
  padding: 0.75rem 2rem;
  font-size: 1.5625rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
}

.live-banner {
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid var(--ink);
}
.live-banner[hidden] {
  display: none;
}
.live-banner-warn {
  background: var(--res);
  color: var(--ink);
}
.live-banner-bad {
  background: var(--com);
  color: #fff;
}

.live-empty {
  color: var(--ink-2);
  font-size: 1.25rem;
}

/* Host: frame ------------------------------------------------------------- */
.live-host {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: var(--ink);
  color: var(--sheet);
}
.live-bar-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  min-width: 0;
}
.live-bar-title {
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.live-bar-code,
.live-bar-step {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}
.live-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.live-bar .live-btn {
  min-height: 40px;
  border-color: rgba(248, 250, 246, 0.45);
  color: var(--sheet);
  background: transparent;
}
.live-bar .live-btn:hover:not(:disabled) {
  background: rgba(248, 250, 246, 0.14);
}
.live-bar .live-btn:focus-visible {
  outline-color: var(--sheet);
}
.live-main {
  flex: 1;
  padding: clamp(1rem, 3vw, 2.5rem);
}

/* Host: lobby ------------------------------------------------------------- */
.live-lobby {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.live-join {
  border: 2px solid var(--ink);
  background: var(--sheet);
  padding: clamp(1rem, 2.5vw, 2rem);
}
.live-join-lead {
  margin: 0;
  font-size: 1.5625rem;
}
.live-url {
  margin: 0 0 1rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4375rem);
  overflow-wrap: anywhere;
}
.live-code-label {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.live-code {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: clamp(3rem, 8.5vw, 10rem);
  white-space: nowrap;
}
.live-qr {
  width: min(100%, 18rem);
  margin: 1rem 0 0.5rem;
  border: 2px solid var(--ink);
  background: #fff;
}
.live-qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.live-url-full {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.live-lots {
  display: grid;
  gap: 1rem;
}
.live-lots-count {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: clamp(1.5625rem, 3vw, 2.4375rem);
  letter-spacing: -0.01em;
}
/* One continuous isometric plaza; each student stands on a lot. Rows interlock (half-tile offset). */
.live-lots { container-type: inline-size; min-width: 0; }
.live-lotgrid {
  /* Tiles shrink with the column: 4 tiles + half-tile offset must fit. */
  --tw: min(7.25rem, 100cqi / 4.6);
  list-style: none;
  margin: 0;
  padding: 3.5rem calc(var(--tw) / 2) 3rem 0;
  display: grid;
  grid-template-columns: repeat(4, var(--tw));
  grid-auto-rows: calc(var(--tw) * 0.25);
  justify-content: start;
}
.live-lot {
  position: relative;
  width: var(--tw);
  height: calc(var(--tw) * 0.25);
}
.live-lot.is-odd-row { translate: calc(var(--tw) / 2) 0; }
.live-tile-svg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}
.live-lot-empty .live-tile-svg { opacity: 0.4; }
.live-fig {
  position: absolute;
  z-index: 2;
  top: calc(var(--tw) * 0.28 - 3.3rem);
  left: 50%;
  width: 2.4rem;
  height: 3.36rem;
  margin-left: -1.2rem;
}
.live-fig-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.live-lot-name {
  position: absolute;
  z-index: 3;
  top: calc(var(--tw) * 0.28 + 0.1rem);
  left: 50%;
  translate: -50% 0;
  max-width: calc(var(--tw) * 0.95);
  padding: 0.05rem 0.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sheet);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-lot.is-away { opacity: 0.55; }
.live-lot-kick {
  position: absolute;
  z-index: 4;
  top: calc(var(--tw) * 0.28 - 3.6rem);
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms;
}
.live-lot:hover .live-lot-kick,
.live-lot-kick:focus-visible { opacity: 1; }
.live-lot-kick:hover { color: var(--com); }
@media (hover: none) {
  .live-lot-kick { opacity: 0.6; }
}

/* Host: stage and reveal -------------------------------------------------- */
.live-stage,
.live-reveal {
  max-width: 96rem;
  margin: 0 auto;
}
.live-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}
.live-stage-head:empty {
  display: none;
}
.live-answered {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 800;
  font-size: clamp(1.5625rem, 3vw, 2.4375rem);
}
.live-timer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.live-timer-label {
  font-weight: 600;
  font-size: 1.25rem;
}
.live-segs {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}
.live-seg {
  min-height: 44px;
  min-width: 3.5rem;
  padding: 0.25rem 0.9rem;
  border: 0;
  border-right: 1px solid var(--ink);
  background: var(--sheet);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
}
.live-seg:last-child {
  border-right: 0;
}
.live-seg[aria-pressed='true'] {
  background: var(--ink);
  color: var(--sheet);
}
.live-clock {
  margin: 0;
  min-width: 6ch;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: 1.5625rem;
  font-variant-numeric: tabular-nums;
}
.live-clock-low {
  color: var(--com);
}

/* The stage sheet is rendered by stages/index.js; scale its text for the room. */
.live-sheet {
  font-size: clamp(1.125rem, 1.7vw, 1.75rem);
  line-height: 1.45;
}
.live-host .live-sheet h1,
.live-host .live-sheet h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.6rem);
  line-height: 1.1;
}
.live-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
.live-reveal {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.live-reveal-main {
  min-width: 0;
}
.live-reveal--wide {
  grid-template-columns: minmax(0, 1fr);
}
.live-reveal--wide .live-reveal-side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.live-reveal-side {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}
.live-reveal .live-actions {
  grid-column: 1 / -1;
}
.live-side-title {
  margin: 0 0 0.75rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 800;
  font-size: 1.5625rem;
  letter-spacing: -0.01em;
}

.live-results,
.live-board {
  border: 2px solid var(--ink);
  background: var(--sheet);
  padding: 1rem 1.25rem;
}
.live-results:empty {
  display: none;
}
.live-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.live-bar-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 3rem;
  gap: 0.75rem;
  align-items: start;
}
.live-bar-key {
  display: grid;
  place-items: center;
  height: 2.25rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-family: var(--live-display);
  font-weight: 800;
  font-size: 1.125rem;
}
.live-bar-text {
  margin: 0 0 0.3rem;
  font-size: 1.125rem;
  line-height: 1.3;
}
.live-bar-flag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.45rem;
  background: var(--open);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
}
.live-bar-track {
  height: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.live-bar-fill {
  width: 100%;
  height: 100%;
  background: var(--ink-2);
  transform-origin: 0 50%;
}
.is-correct .live-bar-fill {
  background: var(--open);
}
.is-correct .live-bar-key {
  background: var(--open);
  border-color: var(--open);
  color: #fff;
}
.live-bar-count {
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: 1.5625rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.live-split {
  display: flex;
  height: 3rem;
  border: 2px solid var(--ink);
}
.live-split > div {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.25rem;
  min-width: 2.5rem;
}
.live-split-correct { background: var(--open); color: #fff; }
.live-split-partial { background: var(--res); color: var(--ink); }
.live-split-wrong { background: var(--com); color: #fff; }
.live-split-none { flex: 1; color: var(--ink-2); font-weight: 600 !important; }
.live-split-key {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.live-split-key li::before {
  content: '';
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  margin-right: 0.4rem;
  border: 1px solid var(--ink);
}
.k-correct::before { background: var(--open); }
.k-partial::before { background: var(--res); }
.k-wrong::before { background: var(--com); }

.live-leaders,
.live-ranking {
  list-style: none;
  margin: 0;
  padding: 0;
}
.live-leader,
.live-rank-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
  font-size: 1.25rem;
}
.live-leader:first-child,
.live-rank-row:first-child {
  border-top: 0;
}
.live-leader-rank {
  width: 2rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 800;
  font-size: 1.5625rem;
}
.live-leader-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.live-leader-score {
  font-family: var(--live-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.live-leader-gain {
  color: var(--open);
  font-weight: 600;
  font-size: 1rem;
}
.live-move {
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0 0.4rem;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.live-move-up { color: var(--ok-ink, var(--open)); }
.live-move-down { color: var(--bad-ink, var(--com)); }
.live-leader-extra {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4rem;
}
.live-leader-extra:empty { display: none; }
.live-leader.is-top-mover {
  background: var(--res);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.live-top-tag {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.live-bar-stamp {
  /* Static, under the bar: never over the option text, and the bar widths stay comparable */
  position: static;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0.45rem 0 0;
  padding: 0.15em 0.6em 0.1em;
  border-width: 3px;
  pointer-events: none;
  animation: none; /* GSAP stampSlam drives the entrance */
}
.live-bar-stamp .stamp-text { font-size: 1.1rem; }
.live-bar-stamp .stamp-sub { display: none; }

/* Countdown ring: conic fill driven by --p (1 -> 0), updated once per second */
.live-count-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.live-ring {
  --p: 1;
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--p) * 360deg), var(--rule) 0);
  display: grid;
  place-items: center;
}
.live-ring::before {
  content: '';
  position: absolute;
  inset: 0.4rem;
  border-radius: 50%;
  background: var(--sheet);
}
.live-ring.is-idle { background: var(--rule); }
.live-ring.is-low { background: conic-gradient(var(--com) calc(var(--p) * 360deg), var(--rule) 0); }
.live-ring-n {
  position: relative;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.live-ring.is-low .live-ring-n { color: var(--com); }
.live-answered { display: inline-block; }

/* Reflect wall ------------------------------------------------------------ */
.live-wall {
  margin-top: 1.5rem;
}
.live-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.75rem;
}
.live-note {
  padding: 0.9rem 1rem 0.8rem;
  border: 2px solid var(--ink);
  background: var(--sheet);
  border-left-width: 8px;
}
.live-note-1 { border-left-color: var(--res); }
.live-note-2 { border-left-color: var(--pub); }
.live-note-3 { border-left-color: var(--open); }
.live-note-text {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.live-note-name {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  font-weight: 600;
}

/* Ended ------------------------------------------------------------------- */
.live-ended {
  max-width: 64rem;
  margin: 0 auto;
}
.live-end-title {
  margin: 0 0 2rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: clamp(2.4375rem, 6vw, 4.8rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.live-podium {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
}
.live-pod {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}
.live-pod-who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.25rem 0.5rem;
  text-align: center;
}
.live-pod-name {
  display: block;
  max-width: 100%;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.live-pod-score {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}
.live-pod-block {
  position: relative;
  border: 2px solid var(--ink);
  border-top-width: 0.7rem;
  transform-origin: 50% 100%;
  box-shadow: 0.6rem 0 0 rgba(22, 36, 31, 0.22);
}
.live-pod-1 .live-pod-block { height: 12rem; background: var(--res); }
.live-pod-2 .live-pod-block { height: 8.5rem; background: var(--wat); }
.live-pod-3 .live-pod-block { height: 6rem; background: var(--agr); }
.live-pod-step {
  position: absolute;
  top: 0.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
}
.live-ranking-wrap {
  border: 2px solid var(--ink);
  background: var(--sheet);
  padding: 1rem 1.25rem;
}

/* Join (phone) ------------------------------------------------------------ */
.live-join-page {
  min-height: 100vh;
  background: var(--paper);
}
.live-phone {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.live-card {
  border: 2px solid var(--ink);
  background: var(--sheet);
  padding: 1.25rem;
}
.live-h1 {
  margin: 0 0 0.5rem;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 1.9375rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.live-p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}
.live-form {
  display: grid;
  gap: 0.5rem;
}
.live-label {
  display: grid;
  gap: 0.1rem;
  margin-top: 0.5rem;
  font-weight: 600;
}
.live-hint {
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.live-input {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 1.125rem;
}
.live-input-code {
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 2.4375rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  min-height: 64px;
}
.live-error {
  margin: 0.25rem 0;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--com);
  border-radius: 6px;
  color: var(--com);
  font-weight: 600;
}
.live-error[hidden] {
  display: none;
}
.live-pbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
}
.live-pbar-name {
  overflow-wrap: anywhere;
}
.live-pbar-score {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.live-sheet-phone {
  font-size: 1rem;
  line-height: 1.55;
}
.live-status {
  margin: 0;
  font-weight: 600;
  color: var(--ink-2);
}
.live-status:empty {
  display: none;
}
.live-points {
  border: 2px solid var(--ink);
  background: var(--sheet);
  padding: 1rem 1.25rem;
}
.live-points-main {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 1.9375rem;
  line-height: 1.1;
}
.live-points-main.is-gain {
  color: var(--open);
}
.live-points-rank {
  margin: 0.4rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.live-points-rank .live-move {
  margin-left: 0.4rem;
  vertical-align: 0.1em;
}
/* Full-screen verdict flash on reveal (opacity only, 200 ms) */
.live-flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
}
.live-flash-good { background: var(--open); }
.live-flash-partial { background: var(--res); }
.live-flash-bad { background: var(--com); }
.live-points-total {
  margin: 0.15rem 0 0;
  color: var(--ink-2);
}
.live-countdown {
  position: relative;
  height: 2rem;
  border: 2px solid var(--ink);
  background: var(--sheet);
  overflow: hidden;
}
.live-countdown[hidden] {
  display: none;
}
.live-countdown-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--res);
  transition: width 250ms linear;
}
.live-countdown-low .live-countdown-fill {
  background: var(--com);
}
.live-countdown-text {
  position: relative;
  display: block;
  padding: 0 0.6rem;
  line-height: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.live-countdown-low .live-countdown-text {
  color: #fff;
}

/* Waiting room: a small officer and your name */
.live-wait {
  text-align: left;
}
.live-wait-officer {
  margin: 0.5rem 0 0.75rem;
}
.live-you {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 120;
  font-weight: 800;
  font-size: 1.5625rem;
  overflow-wrap: anywhere;
}
.live-count {
  margin: 0.25rem 0 1rem;
  color: var(--ink-2);
}
.live-final-score {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 3.0625rem;
  line-height: 1;
}
.live-form-officer { margin-bottom: 0.25rem; }
.live-final { text-align: left; }
.live-final-place {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.live-final-big {
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
}
.live-final .stamp { margin: 0.5rem 0 1rem; }
.live-final-rank {
  margin: 0.5rem 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Narrow screens ----------------------------------------------------------- */
@media (max-width: 900px) {
  .live-lobby,
  .live-reveal {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .live-reveal--wide .live-reveal-side { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .live-auto-dock .live-ring { transition: none; }
  .live-lot-kick {
    transition: none;
  }
  .live-countdown-fill {
    transition: none;
  }
}

/* Phone verdict card (top of the reveal screen); the stage's own stamp is not repeated below */
.live-verdict {
  display: grid;
  gap: 0.1rem;
  justify-items: start;
}
.live-verdict .stamp { margin: 0 0 0.6rem; }
.live-sheet-phone .feedback > .stamp { display: none; }

/* Shown when the browser refuses the Fullscreen API. */
.live-fs-hint {
  position: fixed;
  top: 1rem;
  left: 50%;
  translate: -50% 0;
  z-index: 60;
  max-width: min(92vw, 34rem);
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--sheet);
  border: 2px solid var(--ink);
  font-weight: 600;
}

/* Auto-play ---------------------------------------------------------------- */
.live-autopanel {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  background: var(--sheet);
}
.live-autopanel-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
}
.live-check {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.live-autopanel-hint {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}
.live-seg:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.live-btn-auto.is-on {
  background: rgba(248, 250, 246, 0.2);
  border-color: var(--sheet);
}
.live-auto-dock {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem clamp(1rem, 3vw, 2.5rem) 0;
}
.live-auto-dock[hidden] { display: none; }
.live-auto-label {
  margin: 0;
  font-family: var(--live-display);
  font-variation-settings: 'wdth' 110;
  font-weight: 800;
  font-size: 1.5625rem;
  font-variant-numeric: tabular-nums;
}

/* Auto-play owns the timer: hide the manual per-stage choices, keep the seconds-left clock. */
.live-host.is-auto .live-timer--manual .live-timer-label,
.live-host.is-auto .live-timer--manual .live-segs { display: none; }
