:where([data-cinematic-banner]) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:where([data-cinematic-banner])::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at 58% 48%, transparent 49%, rgb(19 18 13 / .24) 100%);
  box-shadow: inset 0 0 0 1px rgb(240 207 149 / .14);
  pointer-events: none;
  content: "";
}

/* Existing campaign contrast layers sit above the moving light. */
:where([data-cinematic-banner])::after { z-index: 2; }

.cinematic-banner-light {
  position: absolute;
  z-index: 1;
  inset: -18% -24%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(112deg,
    transparent 29%, rgb(237 167 91 / .12) 38%, rgb(255 200 123 / .32) 45%,
    rgb(255 233 190 / .48) 48%, rgb(255 246 220 / .64) 49.5%,
    rgb(255 215 160 / .44) 51%, rgb(242 180 103 / .17) 57%, transparent 67%);
}

[data-cinematic-replay] {
  position: absolute;
  z-index: 3;
  inset-inline-start: clamp(12px, 2.4vw, 34px);
  inset-block-end: clamp(12px, 2.4vw, 34px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-inline-size: calc(100% - 24px);
  min-block-size: 44px;
  padding: 7px 13px;
  border: 1px solid rgb(241 224 194 / .5);
  background: rgb(19 21 15 / .86);
  color: #fff3de;
  font: inherit;
  font-size: .78rem;
  line-height: 1.2;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
}

[data-cinematic-replay] svg { flex: none; inline-size: 15px; block-size: 15px; }
[data-cinematic-replay]:focus-visible { outline: 2px solid #fff3de; outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  [data-cinematic-replay]:hover { background: #29271d; border-color: #fff3de; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-banner-light, [data-cinematic-replay] { display: none; }
}
