/* Live page: the film's canvas sits on top of the H3 video, the start gate on top of both. */
.edition-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 5px; }
.back-link { color: var(--text); font-size: 13px; padding-block: 5px; text-underline-offset: 3px; }
.back-link:hover, .back-link:focus-visible { color: var(--coral); }
@media (max-width: 360px) { .stage { min-width: 0; } }

#tail,
#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Both are letterboxed the same way: the stage has a border, so its content
     box is not exactly 16:9, and the live frame and the H3 video have to be
     drawn in the same rectangle for the handover to line up. */
  object-fit: contain;
}

#tail {
  background: #04050a;
}

#film {
  z-index: 1;
}

.stage .veil {
  z-index: 2;
}

/* Fullscreen: the stage fills the screen, so the 1080p picture is shown at the
   screen's own resolution instead of below the page's header and bar. */
.stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
}

.stage[data-phase='tail'],
.stage[data-phase='end'] {
  border-color: rgba(255, 100, 82, 0.55);
}

.gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border: 0;
  border-radius: inherit;
  background: radial-gradient(70% 70% at 50% 50%, rgba(4, 5, 10, 0.25), rgba(4, 5, 10, 0.78));
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.gate[hidden] {
  display: none;
}

/* The bar is outside the stage, so in fullscreen it is the stage that needs a
   way out. Small and quiet: it sits in the corner over the picture. */
.fs-exit {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.fs-exit:hover,
.fs-exit:focus-visible {
  opacity: 1;
}

.gate:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 14px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease;
}

.gate:hover .gate-pill {
  filter: brightness(1.08);
}

.gate-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gate-sub {
  color: var(--dim);
  font-size: 13px;
}

.chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.stage[data-phase='tail'] ~ .bar .chip,
.stage[data-phase='end'] ~ .bar .chip {
  border-color: rgba(255, 100, 82, 0.55);
  color: var(--text);
}

.bar .clock {
  margin-left: auto;
}
