:root {
  --arena-cyan: #80e6ff;
  --arena-gold: #f6b75f;
  --arena-danger: #ff6d72;
  --arena-glass: rgba(7, 13, 18, .72);
  --look-x: 0;
  --look-y: 0;
}

.hero-stage,
.board-stage {
  isolation: isolate;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.hero-stage .room-backdrop,
.hero-stage > picture,
.board-stage .room-backdrop,
.board-stage > picture {
  transform: translate3d(calc(var(--look-x) * -8px), calc(var(--look-y) * -5px), 0) scale(1.035);
  transform-origin: center;
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1), filter 700ms ease;
  will-change: transform;
}

[data-shot="founder-close"] .room-backdrop,
[data-shot="founder-close"] > picture { transform: translate3d(-2.5%, 1.5%, 0) scale(1.12); }
[data-shot="evidence-dolly"] .room-backdrop,
[data-shot="evidence-dolly"] > picture { transform: translate3d(3%, -1%, 0) scale(1.09); filter: saturate(.78) contrast(1.09); }
[data-shot="board-orbit"] .room-backdrop,
[data-shot="board-orbit"] > picture { transform: translate3d(-1.5%, -1.5%, 0) scale(1.075); filter: saturate(.9) contrast(1.08); }
[data-shot="verdict-push"] .room-backdrop,
[data-shot="verdict-push"] > picture { transform: translate3d(0, -2%, 0) scale(1.16); filter: saturate(.64) contrast(1.16) brightness(.72); }

.spatial-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.light-beam {
  position: absolute;
  top: -35%;
  width: 28%;
  height: 130%;
  opacity: .14;
  filter: blur(18px);
  background: linear-gradient(180deg, rgba(255, 238, 196, .62), transparent 72%);
  transform-origin: top;
  animation: arena-beam 9s ease-in-out infinite alternate;
}

.light-beam--left { left: 8%; transform: rotate(13deg); }
.light-beam--right { right: 5%; transform: rotate(-16deg); animation-delay: -4s; }

.dust-field {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image:
    radial-gradient(circle at 14% 22%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 73% 31%, #ffd99c 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 71%, #fff 0 1px, transparent 1.4px),
    radial-gradient(circle at 88% 78%, #ffd99c 0 1px, transparent 1.5px);
  background-size: 190px 170px, 230px 210px, 270px 230px, 310px 290px;
  animation: arena-dust 18s linear infinite;
}

.lens-vignette {
  position: absolute;
  inset: -2px;
  box-shadow: inset 0 0 150px 35px rgba(0, 0, 0, .72), inset 0 -100px 120px rgba(0, 0, 0, .56);
  background: linear-gradient(115deg, rgba(128, 230, 255, .035), transparent 32%, transparent 68%, rgba(246, 183, 95, .05));
}

.arena-hud {
  position: absolute;
  z-index: 18;
  inset: 18px 18px auto;
  color: #f8f5ed;
  pointer-events: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .72);
}

.arena-hud__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font: 800 11px/1.2 system-ui, sans-serif;
  letter-spacing: .16em;
}

.arena-hud__mode,
.arena-hud__shot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: var(--arena-glass);
  backdrop-filter: blur(14px) saturate(1.2);
}

.arena-hud__mode i {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--arena-cyan);
  box-shadow: 0 0 14px var(--arena-cyan);
  animation: arena-live 1.8s ease-in-out infinite;
}

.arena-hud__shot { color: rgba(255, 255, 255, .66); }

.arena-hud__meter {
  width: min(340px, 55vw);
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .15);
}

.arena-hud__meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--arena-cyan), var(--arena-gold));
  box-shadow: 0 0 14px rgba(128, 230, 255, .7);
  transition: width 700ms cubic-bezier(.16, 1, .3, 1);
}

.arena-quest {
  position: absolute;
  top: clamp(56px, 10vh, 92px);
  right: 0;
  display: grid;
  gap: 6px;
  width: min(148px, 24vw);
  margin: 0;
  padding: 0;
  list-style: none;
}

.arena-quest li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 34px;
  padding: 3px 8px 3px 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, .48);
  background: rgba(6, 11, 15, .34);
  backdrop-filter: blur(8px);
  transition: transform 350ms cubic-bezier(.16, 1, .3, 1), color 300ms ease, border-color 300ms ease;
}

.arena-quest li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 9px/1 system-ui, sans-serif;
}

.arena-quest li b { font: 760 11px/1 system-ui, sans-serif; letter-spacing: .04em; }
.arena-quest .is-complete { color: rgba(128, 230, 255, .7); }
.arena-quest .is-current {
  color: #fff;
  border-color: rgba(246, 183, 95, .48);
  background: rgba(16, 21, 25, .74);
  transform: translateX(-8px);
}
.arena-quest .is-current span { color: #18120a; border-color: var(--arena-gold); background: var(--arena-gold); }

body.cinematic-cut::after {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 5%, rgba(0, 0, 0, .94) 95%);
  animation: arena-cut 620ms cubic-bezier(.65, 0, .35, 1) both;
}

body.scene-commit main { animation: arena-commit 360ms cubic-bezier(.16, 1, .3, 1); }

@keyframes arena-cut { 0% { opacity: 0; } 42% { opacity: 1; } 100% { opacity: 0; } }
@keyframes arena-commit { 0% { transform: scale(1); } 38% { transform: scale(.994); } 100% { transform: scale(1); } }
@keyframes arena-live { 50% { opacity: .45; transform: scale(.78); } }
@keyframes arena-beam { to { opacity: .22; transform: rotate(7deg) translateX(8%); } }
@keyframes arena-dust { to { background-position: 90px -170px, -115px -210px, 135px -230px, -155px -290px; } }

@media (max-width: 768px) {
  .arena-hud { inset: 12px 12px auto; }
  .arena-hud__shot { display: none; }
  .arena-hud__meter { width: calc(100vw - 72px); max-width: 290px; }
  .arena-quest {
    position: static;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    max-width: 350px;
    margin-top: 8px;
  }
  .arena-quest li {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    padding: 3px 1px;
    background: transparent;
    backdrop-filter: none;
  }
  .arena-quest li b { font-size: 9px; }
  .arena-quest .is-current { transform: translateY(3px); background: rgba(6, 11, 15, .62); }
  .light-beam { opacity: .09; }
}

@media (hover: none), (pointer: coarse) {
  .hero-stage .room-backdrop,
  .hero-stage > picture,
  .board-stage .room-backdrop,
  .board-stage > picture { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage .room-backdrop,
  .hero-stage > picture,
  .board-stage .room-backdrop,
  .board-stage > picture,
  .arena-hud__meter span,
  .arena-quest li { transition: none !important; transform: none !important; }
  .light-beam,
  .dust-field,
  .arena-hud__mode i,
  body.cinematic-cut::after,
  body.scene-commit main { animation: none !important; }
  .dust-field { display: none; }
}
