/* ===== ARENA ===== */
#fight-screen {
  background: #111;
  flex-direction: column;
}

.arena {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.arena canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}
.arena-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* --- Sky with moon --- */
.arena-bg .sky {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,200,255,0.12) 0%, transparent 8%),
    radial-gradient(circle at 80% 20%, rgba(150,150,220,0.06) 0%, transparent 15%),
    linear-gradient(180deg, #05051a 0%, #0c0828 30%, #1a1045 60%, #2a1555 80%, #3a1860 100%);
}
/* Stars */
.arena-bg .sky::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 22%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 70% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 85% 12%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 92% 28%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 33% 42%, rgba(255,220,150,0.5), transparent),
    radial-gradient(1px 1px at 48% 38%, rgba(255,255,255,0.3), transparent);
  animation: starsTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starsTwinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* --- Castle silhouette layer --- */
.arena-bg .city {
  position: absolute;
  bottom: 25%;
  left: 0; right: 0;
  height: 40%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0;
  opacity: 1;
}
.arena-bg .building {
  background: #0d0d1e;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
}
.arena-bg .building::after {
  content: '';
  position: absolute;
  inset: 6px 3px;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px, transparent 8px,
    rgba(255,180,50,0.1) 8px, rgba(255,180,50,0.1) 10px
  );
}
.arena-bg .building.tower::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #0d0d1e 0px, #0d0d1e 6px,
    transparent 6px, transparent 10px
  );
}
.arena-bg .building.gate::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 30px;
  background: #060612;
  border-radius: 10px 10px 0 0;
}
.arena-bg .building.flag::after {
  content: '';
  position: absolute;
  top: -14px; left: 50%;
  width: 2px; height: 18px;
  background: #333;
}

/* --- Stone ground / courtyard --- */
.arena-bg .ground {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 25%;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
      transparent 1px, transparent 32px),
    repeating-linear-gradient(180deg,
      rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px,
      transparent 1px, transparent 16px),
    linear-gradient(180deg, #1a1830 0%, #12122a 40%, #0a0a1a 100%);
}
.arena-bg .ground-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(100,80,60,0.3), rgba(100,80,60,0.4), rgba(100,80,60,0.3), transparent);
}

/* Fighter rendering is now handled by canvas (skeleton.js + renderer.js) */
