/* ════════════════════════════════════════════════════════════
   TNT STUDIO — RANK HUD (Military Futuristic Card)
   ════════════════════════════════════════════════════════════ */

.pv2-rank-hud-section {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.pv2-rank-hud {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(120,80,200,.04) 0%, transparent 50%),
    linear-gradient(rgba(120,80,200,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,80,200,.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10,8,20,.95) 0%, rgba(15,12,30,.98) 100%);
  background-size: 100% 100%, 24px 24px, 24px 24px, 100% 100%;
  border: 1px solid rgba(120,80,200,.25);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
  animation: rh-breathe 4s ease-in-out infinite;
  box-shadow:
    0 0 20px rgba(120,80,200,.08),
    inset 0 0 30px rgba(120,80,200,.03);
}

@keyframes rh-breathe {
  0%, 100% {
    border-color: rgba(120,80,200,.25);
    box-shadow: 0 0 20px rgba(120,80,200,.08), inset 0 0 30px rgba(120,80,200,.03);
  }
  50% {
    border-color: rgba(120,80,200,.45);
    box-shadow: 0 0 40px rgba(120,80,200,.15), inset 0 0 40px rgba(120,80,200,.05);
  }
}

/* Corner glow accents */
.pv2-rank-hud::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(120,80,200,.3), transparent 30%, transparent 70%, rgba(255,107,26,.2));
  opacity: 0;
  animation: rh-border-glow 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rh-border-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Scan line effect */
.pv2-rank-hud::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120,80,200,.6), transparent);
  animation: rh-scan 3s linear infinite;
  z-index: 5;
}

@keyframes rh-scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Corner text blocks */
.rh-corner {
  position: absolute;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(255,255,255,.4);
}
.rh-tl { top: 14px; left: 16px; }
.rh-tr { top: 14px; right: 16px; text-align: right; }
.rh-bl { bottom: 14px; left: 16px; }
.rh-br { bottom: 14px; right: 16px; text-align: right; }

.rh-lbl {
  color: rgba(255,255,255,.35);
  font-weight: 400;
}
.rh-val {
  color: rgba(255,255,255,.7);
}
.rh-green {
  color: #4cd964 !important;
}
.rh-bars {
  font-size: 8px;
  letter-spacing: 1px;
  color: rgba(255,107,26,.5);
  margin-bottom: 2px;
  overflow: hidden;
  animation: rh-bars-pulse 2s ease-in-out infinite;
}
@keyframes rh-bars-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.rh-line {
  opacity: 0;
  animation: rh-type-in .3s ease-out forwards;
}
.rh-line:nth-child(1) { animation-delay: .2s; }
.rh-line:nth-child(2) { animation-delay: .5s; }
.rh-line:nth-child(3) { animation-delay: .8s; }
.rh-line:nth-child(4) { animation-delay: 1.1s; }
.rh-line:nth-child(5) { animation-delay: 1.4s; }

@keyframes rh-type-in {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Center content */
.rh-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 20px;
}

.rh-rank-title {
  font-family: Orbitron, 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(120,80,200,.5), 0 0 30px rgba(120,80,200,.2);
  margin-bottom: 16px;
  animation: rh-title-glow 3s ease-in-out infinite;
}
@keyframes rh-title-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(120,80,200,.4), 0 0 30px rgba(120,80,200,.15); }
  50% { text-shadow: 0 0 20px rgba(120,80,200,.7), 0 0 50px rgba(120,80,200,.3); }
}

.rh-rank-img-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Rectangular frame behind rank image */
.rh-rank-img-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 8px;
  border: 2px solid rgba(120,80,200,.25);
  animation: rh-breathe 4s ease-in-out infinite;
  background: rgba(10,5,25,.6);
  box-shadow: 0 0 30px rgba(120,80,200,.1), inset 0 0 20px rgba(120,80,200,.05);
}
.rh-rank-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  border: 1px solid rgba(255,107,26,.08);
}

.rh-rank-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 20px rgba(120,80,200,.4));
  animation: rh-img-float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

@keyframes rh-img-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

.rh-rank-level {
  font-family: Orbitron, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
  text-shadow: 0 0 8px rgba(120,80,200,.3);
}

/* Responsive */
@media (max-width: 600px) {
  .pv2-rank-hud {
    padding: 18px 14px;
  }
  .rh-rank-img-wrap {
    width: 140px;
    height: 140px;
  }
  .rh-rank-img {
    width: 120px;
    height: 120px;
  }
  .rh-rank-title {
    font-size: 13px;
  }
  .rh-corner {
    font-size: 8px;
  }
}
