/* Full screens stay fixed. On longer secondary screens, the arrows and a
   vertical swipe turn between fixed pages without a browser scroll. */
.view-stack > .view.view-pages {
  overflow-y: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  touch-action: pan-x;
  padding-bottom: 12px;
}
.view-stack > .view.view-pages.has-view-pages { bottom: 48px; }
.view-page-controls {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.view-page-controls[hidden] { display: none; }
.view-page-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-btn);
  background: transparent;
  color: var(--green-text, var(--green-deep));
  font: 600 26px / 1 system-ui, sans-serif;
  cursor: pointer;
}
.view-page-controls button:active { background: var(--accent-2); }
.view-page-controls button[aria-disabled="true"] { color: var(--ink-faint); opacity: .45; cursor: default; }

/* The agreement flows across pages like the rest of its screen. */
.view-pages #agreement-body { max-height: none !important; overflow-y: visible !important; }

/* Keep sign-in and the demo entry together on short phones. The campus
   photograph can be read on the next page. */
@media (max-height: 700px) {
  #view-auth .bingo-banner { margin-top: 8px; padding-block: 8px; }
  #view-auth .brand-lockup { --s: 200px !important; }
  #view-auth .view-header { padding-bottom: 8px; }
  #view-auth .auth-tabs { padding-bottom: 8px; }
  #view-auth > section { margin-bottom: 10px; }
  #auth-form-signin > .card { padding-block: 12px !important; }
  #view-auth .demo-entry { margin-top: 6px; }
  #view-auth .de-or { margin-block: 6px; }
}

/* The event board is also a single screen. Fit all five rows in the
   available height before its footer; tall screens keep the full board. */
.bingo-screen {
  display: flex;
  flex-direction: column;
  overflow-y: hidden;
}
.bingo-screen :is(.bg-head, .bg-win, .bg-foot) { flex: none; }
.bingo-screen .bg-grid {
  width: min(100%, 480px);
  max-height: min(calc((100vw - 32px) * 1.12), 540px);
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: repeat(5, minmax(0, 1fr));
}
.bingo-screen .bg-cell { aspect-ratio: auto; }
