/* PokeScan — ARENA Mode Styles */

.arena-hud {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 500px;
  z-index: 10;
  pointer-events: none;
}

.arena-vs-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.arena-slot {
  flex: 1;
  min-height: 180px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.arena-slot.empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}

.arena-slot-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
}

.arena-slot-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.arena-slot-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.arena-slot-name {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.arena-slot-types {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.arena-type-chip {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.arena-vs-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 4px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
}

/* ── Fight Stage ─────────────────────── */
.arena-stage {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: auto;
  background: radial-gradient(ellipse at center, rgba(30, 10, 40, 0.5), rgba(0, 0, 0, 0.85));
  overflow: hidden;
}

.arena-fighter {
  position: absolute;
  width: 45%;
  max-width: 220px;
  top: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arena-p1 { left: 4%; }
.arena-p2 { right: 4%; }

.arena-hp-bar {
  width: 100%;
  height: 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.arena-hp-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  transition: width 0.5s ease;
  border-radius: 4px;
}

.arena-name {
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  margin-top: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}

.arena-hp-txt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
}

.arena-sprite {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-top: 20px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s;
}

.arena-sprite-p1 {
  /* face right */
  transform: scaleX(-1);
}

.arena-log {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 520px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  min-height: 60px;
  max-height: 120px;
  overflow-y: auto;
}

.arena-log-msg {
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  margin: 2px 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.arena-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* ── Result Screen ───────────────────── */
.arena-result {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.arena-result-inner {
  text-align: center;
  max-width: 90%;
  padding: 24px;
}

.arena-result-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 0 30px rgba(250, 204, 21, 0.8), 0 4px 12px rgba(0, 0, 0, 0.9);
  letter-spacing: 4px;
  margin-bottom: 20px;
  animation: arena-victory-pulse 1.5s ease-in-out infinite;
}

@keyframes arena-victory-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.arena-result-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(250, 204, 21, 0.6)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8));
  margin: 0 auto;
}

.arena-result-name {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  margin-top: 12px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.arena-result-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin-top: 6px;
  font-weight: 500;
}

.arena-result-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

.arena-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.2s;
  min-height: 48px;
  min-width: 140px;
}

.arena-btn:hover, .arena-btn:active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.arena-btn-primary {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.arena-btn-primary:hover, .arena-btn-primary:active {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}
