/* ==========================================================================
   Dragon Ball Clash Action TCG — Online Multiplayer, Auth & Leaderboards
   DBZ Dokkan Cyber Tech Identity for Login, Leaderboards, 2v2 & Raid Boss
   ========================================================================== */

/* Auth Login & Account Modal */
.dbz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease-out;
}

.dbz-auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  border: 2.5px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.15);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.dbz-auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.dbz-auth-title {
  font-family: var(--font-title, 'Outfit', 'Arial Black', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.dbz-auth-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 4px;
}

.dbz-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.dbz-input-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dbz-input {
  width: 100%;
  height: 44px;
  background: #1e293b;
  border: 1.5px solid #334155;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dbz-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.dbz-btn-gold {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #ffe600 0%, #ff9500 100%);
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #000;
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 0.96rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  margin-top: 8px;
  transition: all 0.2s ease;
}

.dbz-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 230, 0, 0.9);
}

.dbz-btn-ghost {
  width: 100%;
  height: 40px;
  background: transparent;
  border: 1.5px solid #475569;
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  margin-top: 8px;
}

/* Leaderboard Modal */
.dbz-leaderboard-card {
  width: 100%;
  max-width: 680px;
  background: #090d16;
  border: 2.5px solid #00f2fe;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.4);
  padding: 24px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  margin-top: 16px;
  padding-right: 4px;
}

.lb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
}

.lb-item.is-current {
  border-color: #ffd700;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, #1e293b 100%);
}

.lb-rank {
  font-weight: 900;
  font-size: 1.1rem;
  color: #ffd700;
  width: 32px;
}

.lb-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.lb-name {
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
}

.lb-division {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 800;
}

.lb-rp {
  font-weight: 900;
  color: #00ff41;
  font-size: 0.9rem;
}

/* Multi-Fighter Raid Boss HUD (Cell Max / Broly / Jiren) */
.raid-boss-hud {
  border-color: #ff0055 !important;
  box-shadow: 0 0 35px rgba(255, 0, 85, 0.8) !important;
  background: linear-gradient(180deg, #450a0a 0%, #180202 100%) !important;
}

.raid-boss-hud .hp-bar-fill {
  background: linear-gradient(90deg, #ef4444 0%, #ff0055 100%) !important;
}
