/* Production VIP layout extracted from the approved sandbox geometry.
   Namespaced so sandbox selectors cannot participate in the live cascade. */
/* Unified 2P presentation: keep the same arena language as the accepted 4P layout. */

.vip-live-arena--2p .battle-score-center {
  display: none !important;
}

.vip-live-arena--2p .battle-arena__meta {
  position: absolute;
  z-index: 12;
  top: 1.2rem;
  left: 2.1rem;
  width: auto;
  min-height: 0;
  align-items: flex-start;
  gap: .1rem;
  margin: 0;
  padding: .12rem 0 .16rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  transform: none;
  pointer-events: none;
}

.vip-live-arena--2p .battle-arena__meta::before,
.vip-live-arena--2p .battle-arena__meta::after {
  content: none;
}

.vip-live-arena--2p .battle-arena__meta .battle-round-label,
.vip-live-arena--2p .battle-arena__meta .battle-ui-state {
  text-align: left;
}

.vip-live-arena--2p .battle-arena__meta .battle-round-label {
  color: #dff8ff;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .17em;
  text-shadow: 0 0 8px rgba(62, 207, 255, .2);
}

.vip-live-arena--2p .battle-arena__meta .battle-ui-state {
  color: rgba(158, 194, 222, .94);
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .11em;
}
.vip-live-arena--2p {
  position: relative;
}

.vip-live-arena--2p .battle-arena__top {
  position: absolute;
  z-index: 8;
  inset: 0;
  min-height: 0;
  pointer-events: none;
}

.vip-live-arena--2p .battle-player {
  position: absolute;
  top: 48%;
  width: 7.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%) scale(.84);
}

.vip-live-arena--2p .battle-player--self {
  left: .55rem;
}

.vip-live-arena--2p .battle-player--right {
  right: .55rem;
}

.vip-live-arena--2p .battle-score-center {
  position: absolute;
  top: 31%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vip-live-arena--2p .battle-arena__stake {
  transform: translateY(-1.2rem);
}

.vip-live-arena--2p.vip-stage,
.vip-live-arena--3p.vip-stage,
.vip-live-arena--4p.vip-stage {
  position: relative;
  width: min(100%, var(--game-arena-width));
  max-width: var(--game-arena-width);
  height: var(--game-arena-height) !important;
  min-height: var(--game-arena-height);
  max-height: var(--game-arena-height);
  padding: var(--game-arena-pad-y) var(--game-arena-pad-x);
  border: 1px solid rgba(62, 207, 255, .2);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(8, 14, 28, .94) 0%, rgba(5, 8, 18, .9) 100%);
  background-size: auto;
  box-shadow:
    0 0 0 1px rgba(126, 232, 255, .04) inset,
    0 0 28px rgba(62, 207, 255, .07),
    0 18px 48px rgba(0, 0, 0, .45);
}

.vip-live-arena--3p {
  --sandbox-3p-top-gesture-y: 30%;
  --sandbox-3p-side-gesture-y: 51%;
  --sandbox-3p-side-gesture-x: 20%;
}

.vip-live-arena--3p .battle-arena__top,
.vip-live-arena--4p .battle-arena__top {
  min-height: 4.6rem;
}

.vip-live-arena--3p .vip-live-hud,
.vip-live-arena--4p .vip-live-hud {
  position: absolute;
  z-index: 8;
  width: 7.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: scale(.84);
}

.vip-live-hud--p1 {
  top: 4.9rem;
  left: 50%;
  transform: translateX(-50%) scale(.84) !important;
}

.vip-live-arena--3p .vip-live-hud--p1 .battle-player__info,
.vip-live-arena--4p .vip-live-hud--p1 .battle-player__info,
.vip-live-arena--4p .vip-live-hud--p4 .battle-player__info {
  position: absolute;
  top: .08rem;
  right: calc(50% + 1.95rem);
  width: max-content;
  max-width: 5.4rem;
  min-height: 0;
  align-items: flex-end;
  gap: .08rem;
  text-align: right;
}

.vip-live-arena--3p .vip-live-hud--p1 .battle-player__label,
.vip-live-arena--3p .vip-live-hud--p1 .battle-player__name,
.vip-live-arena--4p .vip-live-hud--p1 .battle-player__label,
.vip-live-arena--4p .vip-live-hud--p1 .battle-player__name,
.vip-live-arena--4p .vip-live-hud--p4 .battle-player__label,
.vip-live-arena--4p .vip-live-hud--p4 .battle-player__name {
  width: auto;
  text-align: right;
}

.vip-live-arena--3p .vip-live-hud--p1 .battle-player__score,
.vip-live-arena--4p .vip-live-hud--p1 .battle-player__score,
.vip-live-arena--4p .vip-live-hud--p4 .battle-player__score {
  position: absolute;
  top: 1.55rem;
  right: calc(50% + 1.95rem);
  width: auto;
  text-align: right;
}

/* 3P/4P use one readable name/score rhythm on every slot. */
.vip-live-arena--3p .battle-player__score,
.vip-live-arena--4p .battle-player__score {
  margin-top: .24rem;
}

/* P1/P4 use absolute info placement; give them the same visible name→score
   breathing room as the side HUDs instead of pinning 0 against the name. */
.vip-live-arena--3p .vip-live-hud--p1 .battle-player__score,
.vip-live-arena--4p .vip-live-hud--p1 .battle-player__score,
.vip-live-arena--4p .vip-live-hud--p4 .battle-player__score {
  top: 2.08rem;
}

.vip-live-arena--3p .battle-arena__stake,
.vip-live-arena--4p .battle-arena__stake {
  transform: translateY(-1.2rem);
}

.vip-live-hud--p2 {
  top: 52%;
  right: .55rem;
  transform: translateY(-50%) scale(.84) !important;
}

.vip-live-hud--p3 {
  top: 52%;
  left: .55rem;
  transform: translateY(-50%) scale(.84) !important;
}

.vip-live-arena--3p .vip-live-combat-anchor,
.vip-live-arena--4p .vip-live-combat-anchor {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.vip-live-arena--3p .vip-live-combat-anchor .vip-gesture,
.vip-live-arena--4p .vip-live-combat-anchor .vip-gesture {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
}

.vip-live-arena--3p .vip-live-combat-anchor.vip-player--p1 {
  top: calc(var(--sandbox-3p-top-gesture-y) - 15.35px);
  left: calc(50% - .5px);
  transform: none;
}

.vip-live-arena--3p .vip-live-combat-anchor.vip-player--p2 {
  top: var(--sandbox-3p-side-gesture-y);
  right: var(--sandbox-3p-side-gesture-x);
  left: auto;
  transform: none;
}

.vip-live-arena--3p .vip-live-combat-anchor.vip-player--p3 {
  top: var(--sandbox-3p-side-gesture-y);
  left: var(--sandbox-3p-side-gesture-x);
  right: auto;
  transform: none;
}

.vip-live-arena--3p .battle-player__score,
.vip-live-arena--4p .battle-player__score {
  display: block;
  font-size: .72rem;
  line-height: 1;
}

.vip-live-arena--2p .battle-arena__center,
.vip-live-arena--3p .battle-arena__center,
.vip-live-arena--4p .battle-arena__center {
  position: static;
  z-index: 4;
}

.vip-live-arena--2p .battle-action-stage,
.vip-live-arena--3p .battle-action-stage,
.vip-live-arena--4p .battle-action-stage {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: 5.75rem;
  height: 5.75rem;
  min-height: 5.75rem;
  max-height: 5.75rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.vip-live-arena--3p .battle-arena__meta,
.vip-live-arena--4p .battle-arena__meta {
  position: absolute;
  z-index: 12;
  top: 1.2rem;
  left: 2.1rem;
  width: auto;
  min-height: 0;
  align-items: flex-start;
  gap: .1rem;
  margin: 0;
  padding: .12rem 0 .16rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
  transform: none;
  pointer-events: none;
}

.vip-live-arena--3p .battle-arena__meta::before,
.vip-live-arena--4p .battle-arena__meta::before {
  content: none;
}

.vip-live-arena--3p .battle-arena__meta::after,
.vip-live-arena--4p .battle-arena__meta::after {
  content: none;
}

.vip-live-arena--3p .battle-arena__meta .battle-round-label,
.vip-live-arena--3p .battle-arena__meta .battle-ui-state,
.vip-live-arena--4p .battle-arena__meta .battle-round-label,
.vip-live-arena--4p .battle-arena__meta .battle-ui-state {
  text-align: left;
}

.vip-live-arena--3p .battle-arena__meta .battle-round-label,
.vip-live-arena--4p .battle-arena__meta .battle-round-label {
  color: #dff8ff;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .17em;
  text-shadow: 0 0 8px rgba(62, 207, 255, .2);
}

.vip-live-arena--3p .battle-arena__meta .battle-ui-state,
.vip-live-arena--4p .battle-arena__meta .battle-ui-state {
  color: rgba(158, 194, 222, .94);
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .11em;
}

.vip-live-arena--3p.vip-live-arena--result .battle-round-label {
  color: #dff8ff;
  font-size: .78rem;
}

.vip-live-arena--3p.vip-live-arena--result .battle-ui-state {
  max-width: 19rem;
  margin-inline: auto;
  color: rgba(164, 190, 218, .9);
  font-size: .58rem;
  line-height: 1.45;
}

.vip-live-round-result {
  position: absolute;
  z-index: 13;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(25rem, calc(100% - 2rem));
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.vip-live-round-result[hidden] {
  display: none;
}

.vip-live-round-result__title,
.vip-live-round-result__detail {
  display: block;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(62, 207, 255, .24);
}

.vip-live-round-result__title {
  color: #e9f9ff;
  font-size: clamp(.76rem, 2.2vw, .92rem);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: .09em;
  white-space: nowrap;
  text-shadow:
    0 0 10px rgba(126, 232, 255, .27),
    0 0 18px rgba(168, 85, 247, .1);
}

.vip-live-round-result__detail {
  margin-top: .18rem;
  color: rgba(164, 190, 218, .92);
  font-size: .61rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
}

.vip-live-arena--3p.vip-live-arena--combat-only .battle-arena__meta,
.vip-live-arena--4p.vip-live-arena--combat-only .battle-arena__meta,
.vip-live-arena--3p.vip-live-arena--combat-only .battle-status,
.vip-live-arena--4p.vip-live-arena--combat-only .battle-status {
  visibility: hidden;
}

.vip-live-arena--4p .vip-live-hud--p1 {
  top: 4.9rem;
  left: 50%;
  transform: translateX(-50%) scale(.84) !important;
}

.vip-live-arena--4p .vip-live-hud--p2 {
  top: 52%;
  right: .55rem;
  transform: translateY(-50%) scale(.84) !important;
}

.vip-live-arena--4p .vip-live-hud--p3 {
  top: 52%;
  left: .55rem;
  transform: translateY(-50%) scale(.84) !important;
}

.vip-live-arena--4p .vip-live-hud--p4 {
  top: auto;
  bottom: 7.5rem;
  left: 50%;
  transform: translateX(-50%) scale(.84) !important;
}

.vip-live-arena--4p .vip-live-combat-anchor.vip-player--p1 {
  top: 34%;
  left: 50%;
}

.vip-live-arena--4p .vip-live-combat-anchor.vip-player--p2 {
  top: 52%;
  right: 24%;
  left: auto;
}

.vip-live-arena--4p .vip-live-combat-anchor.vip-player--p3 {
  top: 52%;
  left: 24%;
}

.vip-live-arena--4p .vip-live-combat-anchor.vip-player--p4 {
  top: 70%;
  left: 50%;
}

.vip-live-arena--4p.vip-live-layout-home .vip-live-combat-anchor .vip-gesture,
.vip-live-arena--4p.vip-live-layout-reveal .vip-live-combat-anchor .vip-gesture {
  width: 4.15rem;
  height: 4.15rem;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1.04);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vip-live-arena--4p.vip-live-layout-home .vip-live-combat-anchor .match-gesture,
.vip-live-arena--4p.vip-live-layout-home .vip-live-combat-anchor img,
.vip-live-arena--4p.vip-live-layout-home .vip-live-combat-anchor svg,
.vip-live-arena--4p.vip-live-layout-reveal .vip-live-combat-anchor .match-gesture,
.vip-live-arena--4p.vip-live-layout-reveal .vip-live-combat-anchor img,
.vip-live-arena--4p.vip-live-layout-reveal .vip-live-combat-anchor svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vip-live-arena--3p .battle-moves,
.vip-live-arena--4p .battle-moves {
  position: relative;
  z-index: 9;
}

.vip-live-arena--3p::before,
.vip-live-arena--3p::after,
.vip-live-arena--4p::before,
.vip-live-arena--4p::after {
  content: none;
  display: none;
}

@media (max-width: 920px) {
  .vip-live-arena--2p .battle-player {
    top: 49%;
    transform: translateY(-50%) scale(.82);
  }

  .vip-live-arena--2p .battle-player--self { left: .15rem; }
  .vip-live-arena--2p .battle-player--right { right: .15rem; }
  .vip-live-arena--2p .battle-score-center { top: 31%; }

  .vip-live-arena--3p .vip-live-hud {
    transform: scale(.82);
  }

  .vip-live-arena--3p .vip-live-hud--p1 {
    top: 4.9rem;
    transform: translateX(-50%) scale(.82) !important;
  }

  .vip-live-arena--3p .vip-live-hud--p2,
  .vip-live-arena--3p .vip-live-hud--p3 {
    top: 52%;
  }

  .vip-live-arena--3p .vip-live-hud--p2 {
    right: .15rem;
  }

  .vip-live-arena--3p .vip-live-hud--p3 {
    left: .15rem;
  }

  .vip-live-arena--3p .vip-live-combat-anchor.vip-player--p2 {
    right: 17%;
  }

  .vip-live-arena--3p .vip-live-combat-anchor.vip-player--p3 {
    left: 17%;
  }

  .vip-live-arena--4p .vip-live-hud {
    width: 7rem;
  }

  .vip-live-arena--4p .vip-live-hud--p2 {
    right: .15rem;
  }

  .vip-live-arena--4p .vip-live-hud--p3 {
    left: .15rem;
  }
}

/* Patch 36 — 2P is now a true projection of the accepted 3P/4P VIP scene. */
.vip-live-arena--2p .battle-arena__meta {
  top: 1.2rem !important;
  left: 2.1rem !important;
  transform: none !important;
}
.vip-live-arena--2p .battle-arena__stake { transform: translateY(-1.2rem); }

.vip-live-arena--2p .vip-live-hud {
  position: absolute;
  z-index: 6;
  width: 7rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.vip-live-arena--2p .vip-live-hud--p1 {
  top: 52%;
  left: .55rem;
  right: auto;
  transform: translateY(-50%) scale(.84) !important;
}
.vip-live-arena--2p .vip-live-hud--p2 {
  top: 52%;
  right: .55rem;
  left: auto;
  transform: translateY(-50%) scale(.84) !important;
}

.vip-live-arena--2p .vip-live-combat-anchor {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 1px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.vip-live-arena--2p .vip-live-combat-anchor .vip-gesture {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  overflow: visible;
}
.vip-live-arena--2p .vip-live-combat-anchor.vip-player--p1 {
  top: 52%;
  left: 24%;
  right: auto;
  transform: none;
}
.vip-live-arena--2p .vip-live-combat-anchor.vip-player--p2 {
  top: 52%;
  right: 24%;
  left: auto;
  transform: none;
}
.vip-live-arena--2p .battle-action-stage {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: 5.75rem;
  height: 5.75rem;
  min-height: 5.75rem;
  transform: translate(-50%, -50%);
}
.vip-live-arena--2p .battle-moves { position: relative; z-index: 9; }
.vip-live-arena--2p::before,
.vip-live-arena--2p::after { content: none; display: none; }

/* VIP 3P/4P responsive containment.
   Only the presentation shell scales; combat targets remain percentage-based. */
@media (max-width: 480px) and (orientation: portrait) {
  .vip-live-arena--3p.vip-stage,
  .vip-live-arena--4p.vip-stage {
    --game-arena-pad-y: .75rem;
    --game-arena-pad-x: .7rem;
  }

  .vip-live-arena--3p .vip-live-hud,
  .vip-live-arena--4p .vip-live-hud {
    width: 6.3rem;
  }

  .vip-live-arena--3p .vip-live-hud--p1,
  .vip-live-arena--4p .vip-live-hud--p1 {
    top: 4.25rem;
    transform: translateX(-50%) scale(.72) !important;
  }

  .vip-live-arena--3p .vip-live-hud--p2,
  .vip-live-arena--4p .vip-live-hud--p2 {
    top: 50%;
    right: -.3rem;
    transform: translateY(-50%) scale(.72) !important;
  }

  .vip-live-arena--3p .vip-live-hud--p3,
  .vip-live-arena--4p .vip-live-hud--p3 {
    top: 50%;
    left: -.3rem;
    transform: translateY(-50%) scale(.72) !important;
  }

  .vip-live-arena--4p .vip-live-hud--p4 {
    bottom: 6.15rem;
    transform: translateX(-50%) scale(.72) !important;
  }

  .vip-live-arena--3p .battle-arena__meta,
  .vip-live-arena--4p .battle-arena__meta {
    top: .7rem;
    left: .8rem;
  }

  .vip-live-arena--3p .vip-live-lifecycle-status,
  .vip-live-arena--4p .vip-live-lifecycle-status {
    width: min(calc(100% - 5.5rem), 15rem);
  }

  .vip-live-arena--3p .vip-live-round-result,
  .vip-live-arena--4p .vip-live-round-result {
    width: calc(100% - 1rem);
  }

  .vip-live-arena--4p .vip-live-round-result {
    top: 30% !important;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .vip-live-arena--3p.vip-stage,
  .vip-live-arena--4p.vip-stage {
    --game-arena-pad-y: .45rem;
    --game-arena-pad-x: .7rem;
    border-radius: 12px;
  }

  .vip-live-arena--3p .vip-live-hud,
  .vip-live-arena--4p .vip-live-hud {
    width: 6.1rem;
  }

  .vip-live-arena--3p .vip-live-hud--p1,
  .vip-live-arena--4p .vip-live-hud--p1 {
    top: 2.65rem;
    transform: translateX(-50%) scale(.62) !important;
  }

  .vip-live-arena--3p .vip-live-hud--p2,
  .vip-live-arena--4p .vip-live-hud--p2 {
    top: 47%;
    right: -.75rem;
    transform: translateY(-50%) scale(.62) !important;
  }

  .vip-live-arena--3p .vip-live-hud--p3,
  .vip-live-arena--4p .vip-live-hud--p3 {
    top: 47%;
    left: -.75rem;
    transform: translateY(-50%) scale(.62) !important;
  }

  .vip-live-arena--4p .vip-live-hud--p4 {
    bottom: 2.5rem;
    transform: translateX(-50%) scale(.62) !important;
  }

  .vip-live-arena--3p .battle-arena__stake,
  .vip-live-arena--4p .battle-arena__stake {
    transform: translateY(-.35rem) scale(.82);
  }

  .vip-live-arena--3p .battle-arena__meta,
  .vip-live-arena--4p .battle-arena__meta {
    top: .45rem;
    left: .65rem;
    transform: scale(.78);
    transform-origin: top left;
  }

  .vip-live-arena--3p .battle-action-stage,
  .vip-live-arena--4p .battle-action-stage {
    width: 4.5rem;
    height: 4.5rem;
    min-height: 4.5rem;
    max-height: 4.5rem;
  }

  .vip-live-arena--4p.vip-live-layout-home .vip-live-combat-anchor .vip-gesture,
  .vip-live-arena--4p.vip-live-layout-reveal .vip-live-combat-anchor .vip-gesture {
    width: 3.25rem;
    height: 3.25rem;
    transform: translate(-50%, -50%) scale(.94);
  }

  .vip-live-arena--3p .vip-live-round-result,
  .vip-live-arena--4p .vip-live-round-result {
    top: 46%;
    width: min(46%, 19rem);
  }

  .vip-live-match.vip-live-arena--3p .battle-moves,
  .vip-live-match.vip-live-arena--4p .battle-moves {
    right: 4px;
    bottom: 4px;
    width: 38%;
    padding: .22rem;
  }

  .vip-live-match.vip-live-arena--3p .move-btn,
  .vip-live-match.vip-live-arena--4p .move-btn {
    min-height: 44px;
  }

  .vip-live-match.vip-live-arena--3p .move-btn__icon,
  .vip-live-match.vip-live-arena--4p .move-btn__icon {
    height: 24px;
  }
}
