:root {
  --bg-a: #04070d;
  --bg-b: #0b1422;
  --bg-c: #0d1020;
  --panel: rgba(10, 18, 32, 0.78);
  --line: rgba(65, 109, 166, 0.5);
  --glow-cyan: rgba(0, 209, 255, 0.65);
  --glow-red: rgba(255, 74, 74, 0.55);
}

body {
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 209, 255, 0.11), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(255, 74, 74, 0.12), transparent 30%),
    linear-gradient(145deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
  min-height: 100vh;
  overflow-x: hidden;
}

.font-arena {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.04em;
}

.arena-body::before,
.arena-body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.arena-body::before {
  inset: -20% auto auto -12rem;
  width: 30rem;
  height: 30rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.16), transparent 65%);
  filter: blur(16px);
}

.arena-body::after {
  inset: auto -12rem -16rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 74, 74, 0.18), transparent 65%);
  filter: blur(20px);
}

.arena-shell {
  position: relative;
}

.arena-header,
.arena-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(16, 26, 45, 0.88), rgba(11, 18, 32, 0.76)),
    linear-gradient(90deg, rgba(0, 209, 255, 0.05), transparent 38%, rgba(255, 74, 74, 0.04));
  backdrop-filter: blur(7px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(0, 209, 255, 0.08);
}

.arena-logo-ring {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(140deg, rgba(0, 209, 255, 0.9), rgba(255, 74, 74, 0.85));
  box-shadow: 0 0 24px rgba(0, 209, 255, 0.35);
}

.arena-logo-core {
  display: grid;
  place-items: center;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 9999px;
  background: #050b16;
  font-size: 0.7rem;
  font-weight: 900;
  color: #f8fbff;
}

.arena-status-pill {
  border: 1px solid rgba(0, 209, 255, 0.42);
  border-radius: 9999px;
  padding: 0.38rem 0.72rem;
  background: linear-gradient(125deg, rgba(0, 209, 255, 0.24), rgba(0, 209, 255, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.arena-eyebrow {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  padding: 0.2rem 0.55rem;
  background: rgba(0, 209, 255, 0.09);
}

.arena-cta {
  position: relative;
  border: 1px solid rgba(255, 74, 74, 0.58);
  background: linear-gradient(132deg, #ff4343, #d82f50);
  box-shadow:
    0 0 24px rgba(255, 74, 74, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.arena-cta:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
  box-shadow:
    0 0 30px rgba(255, 74, 74, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.arena-cta:active {
  transform: translateY(0);
}

.arena-rule-item {
  position: relative;
  padding-left: 1rem;
}

.arena-rule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #00d1ff, #4be6ff);
  box-shadow: 0 0 10px rgba(0, 209, 255, 0.7);
}

.hud-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.arena-video-frame {
  border-radius: 0.9rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.38);
  position: relative;
}

.arena-video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.local-frame::before {
  box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.35), 0 0 28px rgba(0, 209, 255, 0.12);
}

.enemy-frame::before {
  box-shadow: inset 0 0 0 1px rgba(255, 74, 74, 0.35), 0 0 28px rgba(255, 74, 74, 0.12);
}

.countdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 209, 255, 0.12), transparent 35%),
    radial-gradient(circle at 50% 55%, rgba(255, 74, 74, 0.15), transparent 38%),
    rgba(0, 0, 0, 0.76);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.countdown-value {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(3.8rem, 14vw, 10rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px var(--glow-cyan), 0 0 36px var(--glow-red);
  transform: scale(1);
  animation: pulse 900ms ease forwards, flicker 1200ms linear infinite;
}

.fade-enter {
  animation: fadeEnter 360ms ease;
}

@keyframes fadeEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.88);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes flicker {
  0% {
    opacity: 1;
  }

  15% {
    opacity: 0.96;
  }

  17% {
    opacity: 0.9;
  }

  18% {
    opacity: 1;
  }

  55% {
    opacity: 0.95;
  }

  57% {
    opacity: 1;
  }

  100% {
    opacity: 0.98;
  }
}

@media (max-width: 640px) {
  .arena-status-pill {
    width: 100%;
    text-align: center;
  }
}
