/*
 * NX-44 Release 2, D8 — the public board at live.actimori.com/<slug>.
 *
 * A COPY of dashboard/components/events/venue.module.css (the venue screen's
 * layout), with the class names plain. Change that file first, then copy the
 * rule here. Only the last section, "Phones", is this page's own.
 * No outside font (runbook L.8's CSP): Lexend if the device has it, else the
 * system font.
 */

*,
*::before,
*::after {
  box-sizing: border-box; /* as nexusdash's Tailwind base: the stage's 1280 px includes its padding */
}

html,
body {
  margin: 0;
  height: 100%;
  background: #0d3b6e;
}

.waiting {
  margin: 0;
  padding: 24px;
  color: #c9def2;
  font: 22px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

.viewport {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d3b6e;
  color: #ffffff;
}

.stage {
  width: 1280px;
  height: 720px;
  flex: none;
  transform-origin: center center;
  display: grid;
  grid-template-rows: 96px minmax(0, 1fr) 84px;
  padding: 0 36px;
  font-family: Lexend, "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.2;
}

/* ── the top bar ──────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.title {
  font-size: 40px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.title span {
  color: #f5a84b;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #07254a;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  flex: none;
}

/* ── the boards ───────────────────────────────────────────────────────────── */

.cols {
  display: grid;
  grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr));
  gap: 28px;
  min-height: 0;
}

.col {
  background: #07254a;
  border-radius: 22px;
  padding: 16px 18px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.game {
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 190px;
}

.step {
  border-radius: 14px 14px 6px 6px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2px;
  padding: 10px 4px;
  text-align: center;
  color: #14202e;
  min-width: 0;
}

.place {
  font-size: 26px;
  font-weight: 700;
}

.name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.score {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.first {
  height: 100%;
  background: #f5a84b;
}

.second {
  height: 80%;
  background: #c9def2;
}

.third {
  height: 64%;
  background: #e87a1e;
}

/* An empty step: fewer than three played. */
.vacant {
  background: rgba(255, 255, 255, 0.08);
}

.rows {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  font-size: 21px;
  align-items: center;
  padding: 2px 6px;
  white-space: nowrap;
}

.row > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 700;
}

.rowScore {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* "Player 17": a walk-in, or a senior who didn't opt in (EV5). */
.player {
  color: #c9def2;
}

/* ── one board: it fills the screen, podium left, 4th–10th right ─────────── */

.solo {
  grid-template-columns: minmax(0, 1fr);
}

.solo .col {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 40px;
  padding: 18px 30px 22px;
}

.solo .game {
  grid-column: 1 / -1;
  font-size: 30px;
}

.solo .podium {
  height: 430px;
  gap: 14px;
  align-self: end;
}

.solo .step {
  border-radius: 18px 18px 8px 8px;
  padding: 16px 6px;
  gap: 6px;
}

.solo .place {
  font-size: 44px;
}

.solo .name {
  font-size: 24px;
}

.solo .score {
  font-size: 24px;
  font-weight: 700;
}

.solo .rows {
  gap: 8px;
  align-content: center;
}

.solo .row {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  font-size: 26px;
  padding: 4px 10px;
}

.solo .rank {
  width: 40px;
  height: 40px;
  font-size: 19px;
}

/* Three or more boards: tighter type so each column still fits. */
.many .game {
  font-size: 24px;
}

.many .name {
  font-size: 16px;
}

.many .row {
  font-size: 18px;
}

/* ── Up next, Playing now, and nothing yet ───────────────────────────────── */

.hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  min-height: 0;
}

.eyebrow {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5a84b;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.dot {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f5a84b;
  animation: pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.big {
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 1100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.when {
  font-size: 32px;
  color: #c9def2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  background: #07254a;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 30px;
  font-weight: 700;
}

.quiet {
  font-size: 28px;
  color: #c9def2;
}

/* ── the foot ─────────────────────────────────────────────────────────────── */

.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  color: #c9def2;
}

.updated {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* No fresh board for over a minute. */
.stale {
  color: #f5a84b;
  font-weight: 700;
}

/* ── Phones: below 900 px the board flows down the page (live.actimori.com is
   opened on phones in the hall; the venue screen itself never takes this). ── */

.fluid .viewport {
  position: static;
  display: block;
  overflow: visible;
  min-height: 100%;
}

.fluid .stage {
  width: auto;
  height: auto;
  display: block;
  padding: 16px;
  transform: none;
}

.fluid .top {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.fluid .title {
  font-size: 24px;
  white-space: normal;
}

.fluid .pill {
  font-size: 16px;
  padding: 6px 14px;
}

.fluid .cols,
.fluid .solo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.fluid .col,
.fluid .solo .col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  padding: 16px;
}

.fluid .game,
.fluid .solo .game,
.fluid .many .game {
  font-size: 22px;
}

.fluid .podium,
.fluid .solo .podium {
  height: 180px;
  gap: 8px;
}

.fluid .step,
.fluid .solo .step {
  padding: 8px 4px;
  gap: 2px;
}

.fluid .place,
.fluid .solo .place {
  font-size: 22px;
}

.fluid .name,
.fluid .solo .name,
.fluid .many .name {
  font-size: 15px;
}

.fluid .score,
.fluid .solo .score {
  font-size: 15px;
}

.fluid .row,
.fluid .solo .row,
.fluid .many .row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  font-size: 18px;
  padding: 2px 4px;
}

.fluid .solo .rank {
  width: 30px;
  height: 30px;
  font-size: 15px;
}

.fluid .hero {
  padding: 32px 0;
}

.fluid .big {
  font-size: 36px;
  white-space: normal;
}

.fluid .when,
.fluid .quiet {
  font-size: 20px;
}

.fluid .chip {
  font-size: 18px;
  padding: 8px 16px;
}

.fluid .foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
}
