/* The projector is a stage bounded by the available browser height. */
.host-app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.host-app .app-header {
  flex: none;
  height: clamp(64px, 9dvh, 94px);
  padding-block: 10px;
}
.projector-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: clip;
  margin-bottom: 25px;
}
.projector-canvas {
  position: absolute;
  top: var(--projector-top, 0px);
  left: 50%;
  width: 100%;
  transform: translateX(-50%) scale(var(--projector-scale, 1));
  transform-origin: center top;
}
.host-app:is([data-screen="s-pick"], [data-screen="s-podium"]) {
  background: var(--stage);
}
.host-app .screen {
  min-height: 0;
  padding-block: clamp(16px, 3dvh, 36px);
}
.host-app .pick-screen { padding: 0; }
.host-app .pick-layout {
  min-height: 0;
  padding-block: clamp(18px, 3dvh, 36px);
}
.host-app .pick-intro { min-height: clamp(340px, 57dvh, 540px); }
.host-app .pick-mascot-stage { height: clamp(260px, 44dvh, 410px); bottom: 0; }
.host-app .game-library { padding-top: 0; }
.host-app .quiz-item { padding-block: clamp(12px, 2dvh, 21px); }
.host-app .lobby-top { margin-bottom: clamp(14px, 2dvh, 24px); }
.host-app .pin-ticket { padding: clamp(18px, 3dvh, 30px); }
.host-app .players-zone { margin-top: 20px; padding-top: 16px; }
.host-app .player-chips { gap: 8px; }
.host-app .chip { padding: 8px 12px; }
.host-app .timebar-wrap { margin-bottom: clamp(16px, 3dvh, 35px); }
.host-app .question-title {
  font-size: clamp(30px, 4.4dvh, 46px);
  margin-bottom: clamp(18px, 3dvh, 36px);
}
.host-app .answer {
  min-height: clamp(70px, 12dvh, 110px);
  padding: clamp(14px, 2.5dvh, 24px);
}
.host-app .q-image { max-height: min(200px, 24dvh); }
.host-app .reveal-layout,
.host-app .board-layout { margin-top: clamp(12px, 2dvh, 24px); }
.host-app .reveal-content > .display,
.host-app .board-layout .display {
  font-size: clamp(36px, 7dvh, 76px);
  margin-bottom: clamp(12px, 2dvh, 22px);
}
.host-app .reveal-reaction .reaction-stage,
.host-app .board-aside .reaction-stage { height: clamp(170px, 30dvh, 340px); }
.host-app .reveal-reaction .reaction-gif img { height: clamp(65px, 10dvh, 110px); }
.host-app .reaction-caption { font-size: clamp(22px, 3.5dvh, 32px); }
.host-app .cloud {
  font-size: clamp(8px, 1.4dvh, 12px);
  gap: 10px;
  padding: 18px 16px;
}
.host-app .open-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.host-app .open-list:has(.open-row:nth-child(13)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.host-app .open-row { min-width: 0; overflow-wrap: anywhere; padding: 8px; gap: 8px; }
@media (min-width: 801px) {
  .host-app .reveal-layout:has(.cloud, .open-list) {
    grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 300px);
    gap: clamp(24px, 3vw, 48px);
  }
}
.host-app .stage-actions,
.host-app .question-actions { margin-top: clamp(16px, 2.5dvh, 30px); padding-top: 16px; }
.host-app .podium-screen > .display { font-size: clamp(36px, 6.5dvh, 64px); margin-top: 12px; }
.host-app .podium-stage { margin-top: 36px; }
.host-app .podium .p1 .bar { height: clamp(100px, 19dvh, 195px); }
.host-app .podium .p2 .bar { height: clamp(75px, 14dvh, 140px); }
.host-app .podium .p3 .bar { height: clamp(55px, 10dvh, 100px); }
.host-app .podium-rest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 800px);
  max-width: 800px;
  margin: 16px 0 6px;
}
.host-app .podium-rest .board-row { margin: 0; padding-block: 6px; }
.host-app .podium-screen .btn { margin-top: 12px; }
.podium-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.host-app .board-screen { align-items: center; }
.host-app .board-screen .stage-actions { width: min(100%, 1120px); }
.checkpoint-ranking {
  width: min(100%, 1120px);
  text-align: left;
}
.checkpoint-ranking > .display {
  font-size: clamp(30px, 5.5dvh, 56px);
  text-align: center;
}
.ranking-range {
  text-align: center;
  color: var(--ink-dim);
  margin: 12px 0 20px;
  font-size: clamp(14px, 2dvh, 18px);
  font-weight: 650;
}
.ranking-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(clamp(44px, 7dvh, 72px), auto));
  gap: clamp(6px, 1dvh, 12px) 20px;
}
.ranking-rows .ranking-row {
  display: grid;
  align-items: center;
  border-radius: 7px;
  font-weight: 750;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  font-size: clamp(16px, 2.5dvh, 25px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: none;
}
.ranking-rows .ranking-row[data-winner="true"] {
  background: var(--mint);
  border-color: var(--ink);
}
.ranking-rows .pos { font-size: 1.15em; font-weight: 800; }
.ranking-rows .nm { min-width: 0; overflow-wrap: anywhere; }
.ranking-rows .score { font-size: .8em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ranking-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  margin-top: 18px;
}
.host-app .ranking-pagination .btn { margin-top: 0; min-width: 155px; }
.ranking-pagination [role="status"] { font-weight: 750; font-variant-numeric: tabular-nums; }
.arrow-back { transform: rotate(180deg); }
@media (max-width: 700px) {
  .ranking-rows { column-gap: 10px; }
  .ranking-rows .ranking-row { padding: 8px; gap: 6px; font-size: 14px; }
  .ranking-pagination { gap: 12px; }
  .host-app .ranking-pagination .btn { min-width: 0; padding: 12px; }
}
@media (max-width: 600px) {
  .host-app .podium-rest { grid-template-columns: 1fr; }
}
