/* The existing crowd photograph, brought back into colour as its chapter unfolds.
   The fx variables belong to this layer; motion.js keeps every camera transform. */
.arena.arena-effects .arena-stage > img {
  filter: grayscale(0) saturate(1.06) contrast(1.03);
}
.arena-effects .arena-title-lines > br { display: none; }
.arena-effects .arena-word-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: .08em .015em .12em;
  margin: -.08em -.015em -.12em;
  font: inherit;
  font-style: normal;
  color: inherit;
}
.arena-camera-frame {
  position: absolute;
  inset: 24px;
  z-index: 1;
  pointer-events: none;
  opacity: .65;
  background:
    linear-gradient(currentColor,currentColor) top left / 44px 1px no-repeat,
    linear-gradient(currentColor,currentColor) top left / 1px 44px no-repeat,
    linear-gradient(currentColor,currentColor) top right / 44px 1px no-repeat,
    linear-gradient(currentColor,currentColor) top right / 1px 44px no-repeat,
    linear-gradient(currentColor,currentColor) bottom left / 44px 1px no-repeat,
    linear-gradient(currentColor,currentColor) bottom left / 1px 44px no-repeat,
    linear-gradient(currentColor,currentColor) bottom right / 44px 1px no-repeat,
    linear-gradient(currentColor,currentColor) bottom right / 1px 44px no-repeat;
  color: #e9ece2;
}
.arena-city-stamp {
  position: absolute;
  right: 35px;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  writing-mode: vertical-rl;
  color: #f0f0eb;
  font: 10px/1.2 monospace;
  letter-spacing: .22em;
  translate: 0 -50%;
  opacity: .85;
  pointer-events: none;
}
.arena-city-stamp::before {
  content: '';
  width: 3px;
  height: 32px;
  background: #ed292b;
}
.arena-city-stamp small { font: inherit; font-size: 8px; letter-spacing: .15em; }
.arena-scene-meter {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 27px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e7ebdf;
  font: 8px/1 monospace;
  letter-spacing: .13em;
  pointer-events: none;
}
.arena-meter-track { flex: 1; height: 1px; background: #e7ebdf40; overflow: hidden; }
.arena-meter-track > i {
  display: block;
  width: 100%;
  height: 100%;
  background: #e7ebdf;
  transform: scaleX(1);
  transform-origin: left;
}
.next-chapter.next-scene-effects { position: relative; isolation: isolate; }
.next-scene-divider { position: absolute; inset: 0 0 auto; height: 8px; pointer-events: none; }
.next-scene-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #151713;
  transform: scaleX(1);
  transform-origin: left;
}
.next-scene-divider > span {
  position: absolute;
  top: 8px;
  right: 6%;
  padding: 10px 13px 11px;
  background: #151713;
  color: #f0f0eb;
  font: 9px/1 monospace;
  letter-spacing: .16em;
}
.next-scene-effects .next-grid h2 > span { position: relative; }
.next-scene-effects .next-grid h2 > span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.08em;
  height: 2px;
  background: currentColor;
  opacity: .6;
  transform: scaleX(1);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .arena.arena-effects-live .arena-stage > img {
    filter: grayscale(calc(1 - var(--arena-fx-colour,1)))
      saturate(calc(.82 + var(--arena-fx-colour,1) * .24)) contrast(1.03);
  }
  .arena-effects-live .arena-word-line--first {
    clip-path: inset(0 var(--arena-fx-first-cut,0%) 0 0);
  }
  .arena-effects-live .arena-word-line--second {
    clip-path: inset(0 0 0 var(--arena-fx-second-cut,0%));
  }
  .arena-effects-live .arena-camera-frame { opacity: var(--arena-fx-frame,.65); }
  .arena-effects-live .arena-meter-track > i { transform: scaleX(var(--arena-fx-progress,1)); }
  .next-effects-live .next-scene-divider::before,
  .next-effects-live .next-grid h2 > span::after { transform: scaleX(var(--next-fx-arrival,1)); }
  .next-effects-live .next-scene-divider > span {
    opacity: var(--next-fx-arrival,1);
    translate: 0 calc((1 - var(--next-fx-arrival,1)) * 12px);
  }
}
/* Focus never waits for the photograph or its title to finish revealing. */
.arena-effects:focus-within .arena-word-line { clip-path: none; }
.next-scene-effects:focus-within .next-scene-divider > span { opacity: 1; translate: none; }
@media (max-width: 1000px) {
  .arena-camera-frame { inset: 18px; background-size: 28px 1px,1px 28px,28px 1px,1px 28px,28px 1px,1px 28px,28px 1px,1px 28px; }
  .arena-city-stamp { right: 26px; font-size: 8px; gap: 10px; }
}
@media (max-width: 700px) {
  .arena-camera-frame { inset: 14px; }
  .arena-city-stamp { right: 20px; font-size: 7px; letter-spacing: .12em; }
  .arena-city-stamp small { font-size: 7px; }
  .arena-city-stamp::before { height: 22px; width: 2px; }
  .arena-scene-meter { left: 7%; right: 7%; bottom: 24px; gap: 10px; font-size: 6px; letter-spacing: .05em; }
  .next-scene-divider { height: 5px; }
  .next-scene-divider > span { top: 5px; right: 7%; padding: 8px 10px; font-size: 7px; }
  .next-scene-effects .next-grid h2 > span::after { height: 1px; }
}
@media (max-height: 520px), (max-width: 700px) and (max-height: 650px), (prefers-reduced-motion: reduce) {
  .arena.arena-effects .arena-stage > img { filter: grayscale(0) saturate(1.06) contrast(1.03); }
  .arena-effects .arena-word-line { clip-path: none; }
  .arena-effects .arena-camera-frame { opacity: .65; }
  .arena-effects .arena-meter-track > i,
  .next-scene-effects .next-scene-divider::before,
  .next-scene-effects .next-grid h2 > span::after { transform: scaleX(1); }
  .next-scene-effects .next-scene-divider > span { opacity: 1; translate: none; }
}
@media (forced-colors: active) {
  .arena-camera-frame,.arena-city-stamp,.arena-scene-meter,.next-scene-divider { display: none; }
  .arena-effects .arena-word-line { clip-path: none; }
}
