/* ================================================================
   NO PERRY — war-podium-vector-frame-42f.css
   Sole podium frame + flow layout owner (42F).
   Natural document flow; vector corners/rails/ornaments.
   LEGACY_RASTER_FRAME_ACTIVE=False | BORDER_IMAGE=False
   ================================================================ */

#war-ladder .war-podium,
.np-war-ladder .war-podium {
  --wpf-corner: 2.75rem;
  --wpf-rail: 3px;
  --wpf-pad-top: 2.35rem;
  --wpf-pad-x: 1.15rem;
  --wpf-pad-bottom: 1.65rem;
  --wpf-med-size: 5.75rem;
  --wpf-ornament-w: 68%;
  --wpf-rail-glow: rgba(201, 162, 74, 0.35);
  --wpf-rail-core: #8a6b2e;
  --wpf-rail-inner: rgba(168, 184, 106, 0.45);

  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: clamp(200px, 22vw, 320px);
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: var(--wpf-pad-top) var(--wpf-pad-x) var(--wpf-pad-bottom);
  border: none;
  background: transparent;
  overflow: visible;
  isolation: isolate;
  gap: 0.2rem;
}

#war-ladder .war-podium--gold,
.np-war-ladder .war-podium--gold {
  --wpf-med-size: 6.5rem;
  --wpf-ornament-w: 72%;
  --wpf-rail-glow: rgba(201, 162, 74, 0.38);
  --wpf-rail-core: #8a6b2e;
  --wpf-rail-inner: rgba(168, 184, 106, 0.5);
  max-width: clamp(230px, 26vw, 360px);
  z-index: 2;
}

#war-ladder .war-podium--silver,
.np-war-ladder .war-podium--silver {
  --wpf-med-size: 5.5rem;
  --wpf-ornament-w: 66%;
  --wpf-rail-glow: rgba(168, 180, 196, 0.32);
  --wpf-rail-core: #6a7584;
  --wpf-rail-inner: rgba(138, 154, 170, 0.42);
  max-width: clamp(196px, 21vw, 312px);
}

#war-ladder .war-podium--bronze,
.np-war-ladder .war-podium--bronze {
  --wpf-med-size: 5.5rem;
  --wpf-ornament-w: 66%;
  --wpf-rail-glow: rgba(184, 115, 51, 0.32);
  --wpf-rail-core: #7a4a22;
  --wpf-rail-inner: rgba(154, 106, 64, 0.42);
  max-width: clamp(200px, 21.5vw, 318px);
}

/* Retire legacy frame layers */
#war-ladder .war-podium__frame,
#war-ladder .war-podium__base,
#war-ladder .war-podium__frame-img,
.np-war-ladder .war-podium__frame,
.np-war-ladder .war-podium__base,
.np-war-ladder .war-podium__frame-img {
  display: none !important;
}

/* —— Vector frame (decorative, tracks root height) —— */
#war-ladder .war-podium__vector-frame,
.np-war-ladder .war-podium__vector-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#war-ladder .war-podium__corner,
.np-war-ladder .war-podium__corner {
  position: absolute;
  width: var(--wpf-corner);
  height: var(--wpf-corner);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#war-ladder .war-podium__corner--tl,
.np-war-ladder .war-podium__corner--tl {
  top: 0;
  left: 0;
}

#war-ladder .war-podium__corner--tr,
.np-war-ladder .war-podium__corner--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

#war-ladder .war-podium__corner--bl,
.np-war-ladder .war-podium__corner--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

#war-ladder .war-podium__corner--br,
.np-war-ladder .war-podium__corner--br {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

#war-ladder .war-podium--gold .war-podium__corner,
.np-war-ladder .war-podium--gold .war-podium__corner {
  background-image: url('../assets/podium/vector-frame-42f/corner-gold.svg');
}

#war-ladder .war-podium--silver .war-podium__corner,
.np-war-ladder .war-podium--silver .war-podium__corner {
  background-image: url('../assets/podium/vector-frame-42f/corner-silver.svg');
}

#war-ladder .war-podium--bronze .war-podium__corner,
.np-war-ladder .war-podium--bronze .war-podium__corner {
  background-image: url('../assets/podium/vector-frame-42f/corner-bronze.svg');
}

#war-ladder .war-podium__rail,
.np-war-ladder .war-podium__rail {
  position: absolute;
  pointer-events: none;
}

#war-ladder .war-podium__rail--top,
#war-ladder .war-podium__rail--bottom,
.np-war-ladder .war-podium__rail--top,
.np-war-ladder .war-podium__rail--bottom {
  left: var(--wpf-corner);
  right: var(--wpf-corner);
  height: var(--wpf-rail);
}

#war-ladder .war-podium__rail--top,
.np-war-ladder .war-podium__rail--top {
  top: calc(var(--wpf-corner) * 0.42);
  background:
    linear-gradient(90deg, transparent 0%, var(--wpf-rail-glow) 8%, var(--wpf-rail-core) 50%, var(--wpf-rail-glow) 92%, transparent 100%),
    linear-gradient(90deg, transparent 12%, var(--wpf-rail-inner) 50%, transparent 88%);
  background-size: 100% 100%, 100% 1px;
  background-position: center, center 60%;
  background-repeat: no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

#war-ladder .war-podium__rail--bottom,
.np-war-ladder .war-podium__rail--bottom {
  bottom: calc(var(--wpf-corner) * 0.42);
  background:
    linear-gradient(90deg, transparent 0%, var(--wpf-rail-glow) 8%, var(--wpf-rail-core) 50%, var(--wpf-rail-glow) 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

#war-ladder .war-podium__rail--left,
#war-ladder .war-podium__rail--right,
.np-war-ladder .war-podium__rail--left,
.np-war-ladder .war-podium__rail--right {
  top: var(--wpf-corner);
  bottom: var(--wpf-corner);
  width: var(--wpf-rail);
}

#war-ladder .war-podium__rail--left,
.np-war-ladder .war-podium__rail--left {
  left: calc(var(--wpf-corner) * 0.42);
  background:
    linear-gradient(180deg, var(--wpf-rail-core) 0%, var(--wpf-rail-inner) 45%, var(--wpf-rail-core) 100%);
  box-shadow: inset 1px 0 0 rgba(95, 122, 58, 0.35);
}

#war-ladder .war-podium__rail--right,
.np-war-ladder .war-podium__rail--right {
  right: calc(var(--wpf-corner) * 0.42);
  background:
    linear-gradient(180deg, var(--wpf-rail-core) 0%, var(--wpf-rail-inner) 45%, var(--wpf-rail-core) 100%);
  box-shadow: inset -1px 0 0 rgba(95, 122, 58, 0.35);
}

/* —— Top ornament (independent, not border slice) —— */
#war-ladder .war-podium__top-ornament,
.np-war-ladder .war-podium__top-ornament {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: var(--wpf-ornament-w);
  height: 1.65rem;
  margin: calc(var(--wpf-pad-top) * -0.72) auto 0.15rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

#war-ladder .war-podium--gold .war-podium__top-ornament,
.np-war-ladder .war-podium--gold .war-podium__top-ornament {
  height: 1.85rem;
  background-image: url('../assets/podium/vector-frame-42f/top-ornament-gold.svg');
}

#war-ladder .war-podium--silver .war-podium__top-ornament,
.np-war-ladder .war-podium--silver .war-podium__top-ornament {
  background-image: url('../assets/podium/vector-frame-42f/top-ornament-silver.svg');
}

#war-ladder .war-podium--bronze .war-podium__top-ornament,
.np-war-ladder .war-podium--bronze .war-podium__top-ornament {
  background-image: url('../assets/podium/vector-frame-42f/top-ornament-bronze.svg');
}

/* —— Rank labels (flow, not absolute) —— */
#war-ladder .war-podium__header,
.np-war-ladder .war-podium__header {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  pointer-events: none;
}

#war-ladder .war-podium__rank,
.np-war-ladder .war-podium__rank {
  position: static;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(232, 210, 160, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

#war-ladder .war-podium--silver .war-podium__rank,
.np-war-ladder .war-podium--silver .war-podium__rank {
  color: rgba(200, 216, 232, 0.8);
}

#war-ladder .war-podium--bronze .war-podium__rank,
.np-war-ladder .war-podium--bronze .war-podium__rank {
  color: rgba(220, 180, 130, 0.8);
}

#war-ladder .war-podium__eyebrow,
.np-war-ladder .war-podium__eyebrow {
  position: static;
  margin: 0.12rem 0 0;
  text-align: center;
  font-size: 0.42rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 220, 140, 0.7);
}

/* —— Medallion (flow with restrained overlap) —— */
#war-ladder .war-podium__medallion,
.np-war-ladder .war-podium__medallion {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  width: var(--wpf-med-size);
  height: var(--wpf-med-size);
  margin: -0.35rem auto 0.1rem;
  pointer-events: none;
}

#war-ladder .war-podium__medallion .np-war-portrait,
.np-war-ladder .war-podium__medallion .np-war-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  overflow: visible;
}

#war-ladder .war-podium__medallion .np-avatar-aperture,
.np-war-ladder .war-podium__medallion .np-avatar-aperture {
  inset: 5%;
}

/* —— Body (normal flow content owner) —— */
#war-ladder .war-podium__body,
.np-war-ladder .war-podium__body {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 0 1 auto;
  margin: 0;
  padding: 0.15rem 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  overflow: visible;
  pointer-events: auto;
  text-align: center;
  background: radial-gradient(
    ellipse 88% 72% at 50% 42%,
    rgba(6, 5, 10, 0.22) 0%,
    rgba(6, 5, 10, 0.08) 55%,
    rgba(6, 5, 10, 0) 100%
  );
  border: none;
  box-shadow: none;
}

/* —— Bottom finial —— */
#war-ladder .war-podium__bottom-ornament,
.np-war-ladder .war-podium__bottom-ornament {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  width: 42%;
  height: 1rem;
  margin: 0.35rem auto 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

#war-ladder .war-podium--gold .war-podium__bottom-ornament,
.np-war-ladder .war-podium--gold .war-podium__bottom-ornament {
  background-image: url('../assets/podium/vector-frame-42f/bottom-finial-gold.svg');
}

#war-ladder .war-podium--silver .war-podium__bottom-ornament,
.np-war-ladder .war-podium--silver .war-podium__bottom-ornament {
  background-image: url('../assets/podium/vector-frame-42f/bottom-finial-silver.svg');
}

#war-ladder .war-podium--bronze .war-podium__bottom-ornament,
.np-war-ladder .war-podium--bronze .war-podium__bottom-ornament {
  background-image: url('../assets/podium/vector-frame-42f/bottom-finial-bronze.svg');
}

/* QA-only auto-height probe (removed after QA run) */
#war-ladder .war-podium__qa-extra,
.np-war-ladder .war-podium__qa-extra {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
  line-height: 1.3;
  color: rgba(184, 174, 156, 0.75);
}

@media (max-width: 1100px) {
  #war-ladder .war-podium,
  .np-war-ladder .war-podium {
    max-width: clamp(180px, 20vw, 280px);
  }
  #war-ladder .war-podium--gold,
  .np-war-ladder .war-podium--gold {
    max-width: clamp(210px, 24vw, 320px);
  }
}

@media (max-width: 430px) {
  #war-ladder .war-podium,
  .np-war-ladder .war-podium {
    --wpf-pad-x: 1rem;
    --wpf-corner: 2.5rem;
  }
}

@media (max-width: 390px) {
  #war-ladder .war-podium,
  .np-war-ladder .war-podium {
    --wpf-pad-x: 0.9rem;
  }
}
