/* =========================================
   VIEW 3: HALAMAN BATTLE (GRID 2 KOLOM)
   ========================================= */
.battle-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b161c 0%, #081116 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 8px 12px;
}

.battle-view::-webkit-scrollbar { width: 4px; }
.battle-view::-webkit-scrollbar-thumb { background: #2c424d; border-radius: 4px; }

.battle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.battle-card {
  height: 118px;
  border-radius: 4px;
  border: 1.5px solid #475569;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
  transition: transform 0.1s, border-color 0.2s;
}

.battle-card:hover {
  border-color: #cbd5e1;
}

.battle-card:active {
  transform: scale(0.97);
}

/* Latar belakang tematik untuk 10 mode Battle */
.bg-league { background: linear-gradient(135deg, #1e3a8a 0%, #d97706 65%, #fef08a 100%); }
.bg-boss { background: linear-gradient(135deg, #450a0a 0%, #b45309 60%, #fde047 100%); }
.bg-epic { background: linear-gradient(135deg, #0f172a 0%, #7c2d12 55%, #ea580c 100%); }
.bg-turf { background: linear-gradient(135deg, #166534 0%, #0284c7 60%, #fef9c3 100%); }
.bg-arena { background: linear-gradient(135deg, #78350f 0%, #d97706 65%, #fed7aa 100%); }
.bg-tower { background: linear-gradient(135deg, #1e293b 0%, #38bdf8 65%, #e0f2fe 100%); }
.bg-team { background: linear-gradient(135deg, #1e1b4b 0%, #0284c7 55%, #f97316 100%); }
.bg-dungeon { background: linear-gradient(135deg, #1c1917 0%, #57534e 65%, #09090b 100%); }
.bg-tap { background: linear-gradient(135deg, #1e1b4b 0%, #2563eb 55%, #facc15 100%); }
.bg-global { background: linear-gradient(135deg, #0f172a 0%, #334155 60%, #94a3b8 100%); }

/* Ilustrasi ikon tengah pada kartu Battle */
.battle-art-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 46px;
  opacity: 0.9;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

/* Footer gelap bertuliskan judul mode di bagian bawah kartu */
.battle-card-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.1) 0%, rgba(10, 14, 20, 0.88) 45%, rgba(6, 9, 13, 0.96) 100%);
  padding: 14px 8px 6px;
}

.battle-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px #000000;
  letter-spacing: 0.2px;
}

/* Lencana Status Biru ("Reset" & "In progress") */
.battle-status-pill {
  display: inline-block;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1px solid #bae6fd;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* Pita Kuning "EVENT ★" pada kartu Arena */
.arena-event-ribbon {
  position: absolute;
  top: 0;
  left: 6px;
  background: linear-gradient(180deg, #facc15 0%, #d97706 100%);
  border-left: 1px solid #fef08a;
  border-right: 1px solid #fef08a;
  color: #451a03;
  font-size: 8.5px;
  font-weight: 900;
  padding: 3px 5px 7px;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}