/* front_door: the replay player and the thank-you page's "Here's your finish" (replay.py, web/replay.js). Loaded on
   the share page, the board and the thank-you page after site.css and thanks.css. The pixel fonts only at 16, 24 and
   32 px; every line height on the 8 px grid. */

/* The player over the page: one night-blue box with the stepped gold frame, the clip at 16:9 inside it. */
dialog.rp { box-sizing: border-box; width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 24px;
  border: 0; color: var(--text); background: var(--night-1); overflow: auto;
  box-shadow: 0 -4px var(--gold), 0 4px var(--gold-lo), -4px 0 var(--gold), 4px 0 var(--gold), 0 24px 64px rgba(0, 0, 0, .6); }
dialog.rp::backdrop { background: rgba(1, 6, 18, .82); }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.rp-title { margin: 0; font: 24px/32px var(--px-title); color: var(--gold-hi); text-wrap: balance; }
.rp-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.rp-stage:fullscreen { aspect-ratio: auto; }
.rp-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rp-play { position: absolute; inset: 0; margin: auto; width: 176px; height: 64px; display: flex; align-items: center;
  justify-content: center; gap: 16px; border: 0; cursor: pointer; font: 24px/32px var(--px); color: var(--night-0, #01091b);
  background: var(--paper, #e3eaf5); box-shadow: 0 -4px #010a1a, -4px 0 #010a1a, 4px 0 #010a1a, 0 4px var(--paper-lo, #4f6288), 0 8px #010a1a, inset 0 4px #fff; }
.rp-play:hover, .rp-play:focus-visible { background: #fff; }
.rp-play:focus-visible { outline: 4px solid #fff; outline-offset: 12px; }      /* the site's one keyboard ring */
.rp-play[hidden] { display: none; }
.rp-tri { width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 16px; border-color: transparent transparent transparent currentColor; }
.rp-bar { display: flex; justify-content: flex-end; gap: 16px; margin: 16px 0 0; }
.rp-close, .rp-fs { font: 16px/24px var(--px); }
@media (max-width: 700px) {
  dialog.rp { padding: 16px; width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .rp-title { font: 16px/24px var(--px-title); }
  .rp-play { width: 144px; height: 56px; }
}

/* The thank-you page: the player's own clip, first, with the yes or no under it. */
.band.finish { background: var(--night-1); box-shadow: inset 0 4px var(--night-3); }
.finishbox { max-width: 960px; margin: 0 auto; }
.finishbox h2 { margin: 0 0 16px; }
.finishbox p { margin: 0 0 24px; max-width: 64ch; }
.finishvid { background: #000; box-shadow: 0 -4px var(--night-3), 0 4px var(--night-3), -4px 0 var(--night-3), 4px 0 var(--night-3); }
.finishvid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.band.finish form.replay { max-width: 960px; margin: 24px auto 0; }
