/* ==========================================================================
   AXIE CITY 3D — STYLES & CYBERPUNK ARCADE HUD
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #090d16;
  font-family: 'Rajdhani', sans-serif;
  color: #f8fafc;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* Hide OS Mouse Cursor when Pointer Lock is active, leaving only the in-game crosshair */
body.pointer-locked,
body.pointer-locked *,
body.pointer-locked #game-canvas,
body.pointer-locked #game-container {
  cursor: none !important;
}

/* Center Crosshair Pip & Dynamic Reticle */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  transition: width 0.12s ease-out, height 0.12s ease-out, border-color 0.12s ease-out, box-shadow 0.12s ease-out;
}

#crosshair.aiming {
  width: 16px;
  height: 16px;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), inset 0 0 4px rgba(56, 189, 248, 0.5);
}

/* Hitmarker (X-cross flash on enemy hit) */
#hitmarker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%) scale(0.7);
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.05s ease-out, transform 0.05s ease-out;
}

#hitmarker::before,
#hitmarker::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  border-radius: 2px;
}

#hitmarker::before {
  width: 22px;
  height: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
}

#hitmarker::after {
  width: 22px;
  height: 3px;
  transform: translate(-50%, -50%) rotate(-45deg);
}

#hitmarker.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

/* Base HUD Cards with Glassmorphism */
.hud-card {
  position: absolute;
  z-index: 20;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.08);
}

/* Top Left: Player Status */
.top-left-hud {
  top: 20px;
  left: 20px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.profile-icon {
  font-size: 26px;
  background: rgba(255, 183, 3, 0.2);
  border: 1px solid #ffb703;
  border-radius: 8px;
  padding: 2px 6px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.player-title {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #94a3b8;
  font-weight: 700;
}

.player-class-badge {
  font-size: 14px;
  font-weight: 800;
  color: #ffb703;
  letter-spacing: 1px;
}

/* Stat Progress Bars */
.bars-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.stat-icon.heart { color: #ef4444; }
.stat-icon.shield { color: #38bdf8; }
.stat-icon.bolt { color: #fbbf24; }

.stat-track {
  flex: 1;
  height: 9px;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.15s ease-out;
}

.health-fill {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.armor-fill {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.stamina-fill {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.stamina-fill.exhausted {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulse-exhausted 0.5s infinite alternate;
}

@keyframes pulse-exhausted {
  from { opacity: 0.55; }
  to { opacity: 1.0; }
}

.stat-value {
  font-size: 13px;
  font-weight: 700;
  width: 28px;
  text-align: right;
  color: #e2e8f0;
}

/* Top Right: Wanted Stars & Weapon */
.top-right-hud {
  top: 20px;
  right: 20px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wanted-stars-container {
  display: flex;
  gap: 6px;
  font-size: 26px;
}

.wanted-stars-container .star {
  color: #334155;
  transition: all 0.2s ease;
}

.wanted-stars-container .star.active {
  color: #fbbf24;
  text-shadow: 0 0 10px #f59e0b, 0 0 20px #ef4444;
}

.weapon-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.weapon-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}

.weapon-slot {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.weapon-skin-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 4px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  transition: all 0.2s ease;
}

.weapon-name {
  font-size: 14px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.weapon-ammo-display {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Bottom Left: Minimap Radar */
.bottom-left-hud {
  position: absolute;
  bottom: 25px;
  left: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

#minimap-canvas {
  width: 180px;
  height: 180px;
  display: block;
}

.location-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.district-badge {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
  text-align: center;
}

/* Bottom Right: Speedometer */
.speedo-panel {
  position: absolute;
  bottom: 25px;
  right: 20px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.speedo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 140px;
  gap: 12px;
}

.speedo-circle {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.speedo-number {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.speedo-unit {
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
}

.speedo-gear-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.18);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  border-radius: 8px;
  padding: 3px 9px;
  min-width: 42px;
  text-align: center;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}

.speedo-gear-badge.gear-reverse {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.65);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.7);
}

.speedo-gear-badge.gear-neutral {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: none;
  text-shadow: none;
}

.speedo-rpm-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 140px;
}

.speedo-rpm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speedo-rpm-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.speedo-rpm-text {
  font-size: 9px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  color: #38bdf8;
}

.speedo-rpm-track {
  width: 100%;
  height: 6px;
  background: rgba(30, 41, 59, 0.85);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.speedo-rpm-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
  transition: width 0.05s ease-out;
}

.speedo-rpm-fill.rpm-high {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.speedo-rpm-fill.rpm-redline {
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.8);
}

.car-hp-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 140px;
}

.car-hp-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
}

.car-hp-fill {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* Floating Center Prompt */
.interaction-prompt {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid #38bdf8;
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  letter-spacing: 0.5px;
}

/* Notification Banner */
.notification-banner {
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(15, 23, 42, 0.92);
  border-left: 4px solid #38bdf8;
  border-right: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 1px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   CIVIL DEFENSE CATASTROPHE BANNER (Tornado Emergency System)
   ========================================================================== */
.catastrophe-banner {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  min-width: 480px;
  max-width: 90vw;
  background: rgba(15, 7, 12, 0.95);
  border: 2px solid #ef4444;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.6), 0 8px 32px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  animation: catastrophe-pulse 1.2s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes catastrophe-pulse {
  0% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4), 0 8px 32px rgba(0, 0, 0, 0.85);
    border-color: #ef4444;
  }
  100% {
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.85), 0 0 12px rgba(245, 158, 11, 0.7);
    border-color: #f59e0b;
  }
}

.catastrophe-stripe {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #ef4444,
    #ef4444 14px,
    #1e1b4b 14px,
    #1e1b4b 28px
  );
  animation: catastrophe-stripe-slide 2s linear infinite;
}

@keyframes catastrophe-stripe-slide {
  from { background-position: 0 0; }
  to { background-position: 56px 0; }
}

.catastrophe-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
}

.catastrophe-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 26px;
  animation: catastrophe-icon-bounce 0.8s infinite alternate ease-in-out;
}

@keyframes catastrophe-icon-bounce {
  0% { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}

.catastrophe-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.catastrophe-header-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catastrophe-alert-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 2px 8px;
  border-radius: 4px;
}

.catastrophe-level-badge {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  background: #dc2626;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.7);
  transition: all 0.3s ease;
}

.catastrophe-status {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.8px;
}

.catastrophe-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.catastrophe-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
}

.catastrophe-detail-item {
  font-weight: 700;
  color: #fcd34d;
}

.catastrophe-sep {
  color: #64748b;
}

.catastrophe-instruction {
  font-weight: 800;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Bottom Center Controls Pill */
.controls-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 4px 16px;
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: #94a3b8;
}

.controls-pill strong {
  color: #38bdf8;
}

/* Medical Emergency Overlay */
.emergency-overlay {
  position: absolute;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.5), inset 0 0 15px rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  animation: pulse-border 1.2s infinite alternate;
}

@keyframes pulse-border {
  from { border-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
  to { border-color: #f87171; box-shadow: 0 0 30px rgba(239, 68, 68, 0.8); }
}

.emergency-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emergency-icon {
  font-size: 22px;
  animation: bounce-icon 0.6s infinite alternate;
}

@keyframes bounce-icon {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.emergency-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ef4444;
}

.emergency-status {
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.emergency-hint {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.emergency-hint strong {
  color: #38bdf8;
}

/* ==========================================================================
   FULL TACTICAL CITY MAP MODAL [M]
   ========================================================================== */
.city-map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.city-map-window {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1350px;
  height: 88vh;
  max-height: 850px;
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), 0 0 25px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: map-appear 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes map-appear {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Header */
.city-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.city-map-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-map-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.city-map-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  margin: 0;
}

.city-map-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #38bdf8;
  display: block;
  margin-top: 2px;
}

.city-map-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-action-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.map-action-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.map-close-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.map-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

/* Body: Map Viewport & Sidebar */
.city-map-body {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
}

.city-map-viewport {
  flex: 1;
  position: relative;
  background: #060a12;
  overflow: hidden;
  user-select: none;
}

#city-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#city-map-canvas.panning {
  cursor: grabbing;
}

/* Viewport Canvas Controls (Zoom & Compass) */
.map-canvas-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.map-zoom-btn {
  width: 34px;
  height: 34px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.15s ease;
}

.map-zoom-btn:hover {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
  color: #38bdf8;
}

.map-compass-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.5);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 1px;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Floating Tooltip */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 189, 248, 0.3);
  z-index: 20;
  max-width: 260px;
  backdrop-filter: blur(4px);
}

.tooltip-header {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-category {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.tooltip-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Sidebar */
.city-map-sidebar {
  width: 360px;
  background: rgba(10, 16, 28, 0.96);
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
  overflow-y: auto;
}

/* Player Status Card */
.map-player-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15);
}

.map-player-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.player-dot-indicator {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.2s infinite alternate;
}

@keyframes pulse-dot {
  from { opacity: 0.6; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}

.map-player-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #86efac;
}

.map-player-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.map-stat-row .label {
  color: #94a3b8;
  font-weight: 700;
}

.map-stat-row .val {
  color: #f8fafc;
  font-weight: 700;
}

.map-stat-row .val.highlight {
  color: #38bdf8;
}

/* POI Directory Section */
.map-poi-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-section-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.map-poi-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom Scrollbar for POI list */
.map-poi-list::-webkit-scrollbar {
  width: 5px;
}

.map-poi-list::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.map-poi-list::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.poi-card {
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.poi-card:hover,
.poi-card.active-highlight {
  background: rgba(30, 41, 59, 0.9);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateX(3px);
}

.poi-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.poi-card-content {
  flex: 1;
  min-width: 0;
}

.poi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.poi-card-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poi-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.poi-card-coords {
  font-size: 10px;
  color: #64748b;
  font-family: monospace;
  margin-bottom: 3px;
}

.poi-card-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

/* Legend Box */
.map-legend-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.legend-dot.emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.legend-dot.purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }
.legend-dot.orange { background: #f97316; box-shadow: 0 0 6px #f97316; }
.legend-dot.yellow { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.legend-dot.blue { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.legend-dot.cyan { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }

/* Footer */
.city-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 12px;
  color: #94a3b8;
}

.map-footer-hints strong {
  color: #38bdf8;
}

.map-footer-key {
  font-size: 11px;
  color: #64748b;
}

.map-footer-key strong {
  color: #f8fafc;
}

/* ==========================================================================
   AURA SYSTEM & LEADERBOARD RANKING STYLES
   ========================================================================== */

/* Aura HUD Pill in Top Right Card */
.aura-hud-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.15);
  transition: all 0.2s ease;
  user-select: none;
}

.aura-hud-pill:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

.aura-icon-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aura-icon-pulse {
  font-size: 16px;
  animation: aura-glow-pulse 2s infinite alternate ease-in-out;
}

@keyframes aura-glow-pulse {
  0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 3px #fbbf24); }
  100% { transform: scale(1.2); opacity: 1.0; filter: drop-shadow(0 0 9px #f59e0b); }
}

.aura-text-col {
  display: flex;
  flex-direction: column;
}

.aura-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  line-height: 1;
}

.aura-value {
  font-family: 'Chakra Petch', monospace;
  font-size: 15px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
}

.aura-rank-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  text-transform: uppercase;
}

.btn-leaderboard-pill {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 800;
  background: rgba(30, 41, 59, 0.9);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-leaderboard-pill:hover {
  background: #fbbf24;
  color: #0f172a;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Tactical Leaderboard Modal [K] */
.leaderboard-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leaderboard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
}

.leaderboard-window {
  position: relative;
  width: 900px;
  max-width: 95vw;
  height: 680px;
  max-height: 92vh;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 45px rgba(251, 191, 36, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.leaderboard-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.leaderboard-icon {
  font-size: 28px;
}

.leaderboard-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 1.5px;
  margin: 0;
}

.leaderboard-subtitle {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 1px;
}

.leaderboard-close-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #475569;
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.leaderboard-close-btn:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

.leaderboard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  gap: 14px;
  overflow: hidden;
}

/* Player Summary Banner */
.leaderboard-my-summary {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.lb-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lb-summary-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lb-summary-pos {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
}

.lb-summary-meta {
  display: flex;
  flex-direction: column;
}

.lb-summary-name {
  font-size: 13px;
  color: #f8fafc;
}

.lb-summary-title {
  font-size: 12px;
  font-weight: 700;
}

.lb-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.lb-summary-aura-label {
  font-size: 10px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.lb-summary-aura-val {
  font-family: 'Chakra Petch', monospace;
  font-size: 22px;
  font-weight: 800;
}

/* Table Container */
.leaderboard-table-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #334155;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  background: rgba(30, 41, 59, 0.95);
  color: #94a3b8;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 14px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #475569;
}

.leaderboard-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 13px;
  color: #e2e8f0;
}

.lb-row {
  transition: background 0.15s ease;
}

.lb-row:hover {
  background: rgba(51, 65, 85, 0.35);
}

.lb-row-player {
  background: rgba(56, 189, 248, 0.15) !important;
  border-left: 3px solid #38bdf8;
  font-weight: 700;
}

.lb-row-player .player-name {
  color: #38bdf8 !important;
}

.col-pos {
  font-family: 'Chakra Petch', monospace;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
}

.col-pos.pos-first { color: #f43f5e; font-size: 18px; }
.col-pos.pos-second { color: #c084fc; font-size: 18px; }
.col-pos.pos-third { color: #38bdf8; font-size: 18px; }

.lb-rank-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.col-aura {
  font-family: 'Chakra Petch', monospace;
  font-weight: 800;
  font-size: 14px;
  text-align: right;
}

.lb-status-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.lb-status-pill.online {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.lb-status-pill.rival {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid #64748b;
}

/* Leaderboard Footer Rules */
.leaderboard-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(251, 191, 36, 0.3);
}

.leaderboard-rule-item {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
}

.leaderboard-rule-item strong {
  color: #fbbf24;
}

/* ==========================================================================
   TOP CENTER HUD: TIME, WEATHER & WEEKLY SEASON PILLS
   ========================================================================== */
.hud-top-center {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 25;
  pointer-events: auto;
}

/* Time & Weather Pill */
.time-weather-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 8px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(56, 189, 248, 0.15);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.weather-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.weather-label {
  font-size: 13px;
  color: #38bdf8;
  text-transform: uppercase;
}

.time-separator {
  color: #64748b;
  font-size: 12px;
}

.calendar-day {
  font-size: 13px;
  color: #f8fafc;
}

.clock-display {
  font-size: 15px;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Weekly Season Pill */
.season-hud-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 24px;
  padding: 6px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(52, 211, 153, 0.12);
}

.season-hud-pill:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #34d399;
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.35);
}

.season-trophy {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}

.season-info-col {
  display: flex;
  flex-direction: column;
}

.season-title-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 1px;
}

.season-countdown-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.season-pass-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.season-pass-badge.pass-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid #fbbf24;
}

.season-pass-badge.pass-active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   SEASON MODAL [J]
   ========================================================================== */
.season-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.season-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.season-window {
  position: relative;
  width: 90%;
  max-width: 760px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(52, 211, 153, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(52, 211, 153, 0.3);
}

.season-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.season-modal-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.7));
}

.season-modal-title {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  color: #34d399;
  letter-spacing: 1.5px;
}

.season-modal-subtitle {
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 1px;
}

.season-close-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #94a3b8;
  font-size: 18px;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: all 0.2s;
}

.season-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.season-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Season Countdown Hero */
.season-hero-card {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.4), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(52, 211, 153, 0.1);
}

.season-countdown-label {
  font-size: 13px;
  color: #a7f3d0;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.season-countdown-timer {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
  margin: 6px 0;
  letter-spacing: 2px;
}

.season-utc-schedule {
  font-size: 12px;
  color: #94a3b8;
}

/* Season Pass Section */
.season-pass-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.season-pass-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pass-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pass-icon {
  font-size: 28px;
}

.pass-title {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 17px;
  color: #fbbf24;
  letter-spacing: 1px;
}

.pass-desc {
  margin: 2px 0 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

.season-pass-badge-large {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 1px;
}

.season-pass-badge-large.status-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid #fbbf24;
}

.season-pass-badge-large.status-active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.season-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.perk-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.perk-icon {
  font-size: 18px;
}

.perk-text {
  font-size: 12px;
  color: #e2e8f0;
}

.perk-text strong {
  color: #38bdf8;
}

/* Web3 / Blockchain Bar */
.season-blockchain-bar {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-status-row, .season-tx-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.wallet-label {
  color: #94a3b8;
}

.wallet-address, .tx-hash {
  font-family: monospace;
  color: #38bdf8;
  word-break: break-all;
}

.season-action-buttons {
  margin-top: 6px;
}

.btn-pay-season-usdt {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-pay-season-usdt:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.6);
}

.btn-pay-season-usdt:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Prizes Card */
.season-prizes-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
}

.prizes-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.prizes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prize-pill {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.prize-pill.gold {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.prize-pill.silver {
  background: rgba(203, 213, 225, 0.2);
  color: #e2e8f0;
  border: 1px solid rgba(203, 213, 225, 0.4);
}

.prize-pill.bronze {
  background: rgba(217, 119, 6, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.prize-pill.top10 {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Season Footer */
.season-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   HUD MISSION TRACKER (TOP LEFT)
   ========================================================================== */
.hud-mission-tracker {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.hud-mission-tracker:hover {
  border-color: #f43f5e;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

.mission-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracker-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mission-tracker-icon {
  font-size: 14px;
}

.mission-tracker-chapter {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #f43f5e;
  letter-spacing: 1px;
}

.btn-missions-pill {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fca5a5;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.mission-tracker-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.mission-tracker-objective {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.25;
}

/* ==========================================================================
   MISSION DIALOGUE OVERLAY (CINEMATIC)
   ========================================================================== */
.mission-dialogue-overlay {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 720px;
  z-index: 950;
  display: flex;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.dialogue-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid #38bdf8;
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
}

.dialogue-speaker {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.dialogue-text {
  font-size: 16px;
  color: #ffffff;
  line-height: 1.4;
  font-weight: 600;
}

.dialogue-prompt {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ==========================================================================
   MISSIONS & WEEKLY EVENTS MODAL [O]
   ========================================================================== */
.missions-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.missions-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.missions-window, .missions-dialog {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(244, 63, 94, 0.5);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(244, 63, 94, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  color: #f8fafc;
}

#rpg-modal .missions-dialog, #rpg-modal .missions-window {
  border: 2px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(168, 85, 247, 0.35);
}

#gym-modal .missions-dialog, #gym-modal .missions-window {
  border: 2px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(56, 189, 248, 0.35);
}

#hotel-modal .missions-dialog, #hotel-modal .missions-window {
  border: 2px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(251, 191, 36, 0.35);
}

.missions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid rgba(244, 63, 94, 0.3);
}

#rpg-modal .missions-header {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
}

#hotel-modal .missions-header {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.95), rgba(15, 23, 42, 0.95));
  border-bottom: 1px solid rgba(251, 191, 36, 0.4);
}

.missions-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.missions-modal-icon, .missions-logo-icon {
  font-size: 30px;
}

.missions-modal-title, .missions-main-title {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 20px;
  color: #f8fafc;
  letter-spacing: 1.5px;
}

#missions-modal .missions-modal-title {
  color: #f43f5e;
}

#rpg-modal .missions-main-title {
  color: #c084fc;
}

#gym-modal .missions-main-title {
  color: #38bdf8;
}

#hotel-modal .missions-main-title {
  color: #fbbf24;
}

.missions-modal-subtitle, .missions-sub-title {
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 0 0;
}

.missions-close-btn, .btn-close-missions {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.missions-close-btn:hover, .btn-close-missions:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.missions-tabs-nav {
  display: flex;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.missions-tab-btn {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.missions-tab-btn:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.5);
}

.missions-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.missions-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-chapters-list, .weekly-events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-chapter-card, .weekly-event-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.mission-chapter-card.active-chapter {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.25);
}

.mission-chapter-card.completed-chapter {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.weekly-event-card.today-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.weekly-event-card.completed-event {
  border-color: #10b981;
  opacity: 0.85;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.card-badge {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-badge.status-done {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid #10b981;
}

.card-badge.status-current {
  background: rgba(244, 63, 94, 0.25);
  color: #fca5a5;
  border: 1px solid #f43f5e;
}

.card-badge.status-locked {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid #64748b;
}

.card-badge.status-today {
  background: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  border: 1px solid #fbbf24;
}

.card-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.35;
}

.card-reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  font-size: 12px;
}

.card-reward-val {
  color: #facc15;
  font-weight: 700;
}

.events-schedule-banner {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #bae6fd;
}

.missions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(244, 63, 94, 0.3);
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   INTERACTIVE MULTI-TAB CHAT SYSTEM (GLOBAL, LOCAL, CLAN, PRIVADO, SISTEMA)
   ========================================================================== */
.chat-container {
  position: absolute;
  left: 20px;
  bottom: 245px;
  width: 400px;
  height: 260px;
  max-width: calc(100vw - 40px);
  z-index: 850;
  display: flex;
  flex-direction: column;
  background: rgba(11, 19, 36, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.85), 0 0 16px rgba(56, 189, 248, 0.18);
  opacity: 0.96;
  transition: opacity 0.2s ease, background 0.2s ease, height 0.25s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: text;
  pointer-events: auto !important;
}

.chat-container,
.chat-container * {
  pointer-events: auto !important;
}

.chat-container:hover {
  opacity: 1;
  background: rgba(11, 19, 36, 0.96);
  border-color: rgba(56, 189, 248, 0.65);
}

.chat-container.chat-focused {
  opacity: 1 !important;
  background: rgba(11, 19, 36, 0.98) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.95), 0 0 24px rgba(56, 189, 248, 0.55) !important;
}

.chat-container.chat-collapsed {
  height: 38px;
  overflow: hidden;
}

.chat-container.chat-collapsed .chat-messages-area,
.chat-container.chat-collapsed .chat-input-row {
  display: none !important;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 11px 11px 0 0;
  user-select: none;
  gap: 4px;
}

.chat-title-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 2px;
  flex-shrink: 0;
}

.chat-title-icon {
  font-size: 13px;
  line-height: 1;
}

.chat-title-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  text-transform: uppercase;
}

.chat-tabs {
  display: flex;
  gap: 2px;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-tabs::-webkit-scrollbar {
  display: none;
}

.chat-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 6px;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.chat-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
}

.chat-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.chat-tab-btn#chat-tab-local.active {
  color: #4ade80;
  border-bottom-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}

.chat-tab-btn#chat-tab-clan.active {
  color: #f59e0b;
  border-bottom-color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.chat-tab-btn#chat-tab-private.active {
  color: #ec4899;
  border-bottom-color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
}

.chat-tab-btn#chat-tab-system.active {
  color: #c084fc;
  border-bottom-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
}

.chat-unread-badge {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

.chat-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.chat-toggle-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  line-height: 1.35;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) transparent;
  background: rgba(8, 14, 26, 0.85);
}

.chat-messages-area::-webkit-scrollbar {
  width: 5px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 4px;
}

.chat-msg-row {
  word-break: break-word;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.1s ease;
}

.chat-msg-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chat-timestamp {
  color: #64748b;
  font-size: 11px;
  margin-right: 2px;
}

.chat-channel-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-right: 4px;
  letter-spacing: 0.5px;
}

.chat-clan-tag {
  color: #f59e0b;
  font-weight: 700;
  font-size: 11px;
  margin-right: 3px;
}

.chat-sender-name {
  font-weight: 700;
  color: #cbd5e1;
  margin-right: 4px;
}

.chat-sender-name.is-me {
  color: #38bdf8;
}

.chat-msg-body {
  color: #f8fafc;
}

.chat-msg-body.system-text {
  font-style: italic;
}

.chat-whisper-target,
.chat-whisper-sender {
  color: #f472b6;
  font-weight: 800;
}

.chat-input-row {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1.5px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 0 0 11px 11px;
}

.chat-channel-select {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
}

.chat-input {
  flex: 1;
  background: rgba(11, 19, 36, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  padding: 5px 8px;
  outline: none;
  cursor: text !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.chat-send-btn {
  background: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer !important;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn:hover {
  background: #0ea5e9;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.chat-tab-btn,
.chat-toggle-btn,
.chat-channel-select {
  cursor: pointer !important;
}

@media (max-height: 800px) {
  .chat-container {
    height: 220px;
    bottom: 235px;
  }
}

/* Responsive adjustments for narrow screens and mobile/split viewports (<= 900px) */
@media (max-width: 900px) {
  .top-left-hud {
    top: 10px;
    left: 10px;
    min-width: 180px;
    max-width: 220px;
    padding: 8px 10px;
    gap: 6px;
  }

  .top-left-hud .hud-profile-badge {
    padding-bottom: 4px;
    gap: 6px;
  }

  .top-left-hud .profile-icon {
    font-size: 20px;
    padding: 1px 4px;
  }

  .top-left-hud .player-class-badge {
    font-size: 12px;
  }

  .top-left-hud .stat-row {
    gap: 4px;
  }

  .top-left-hud .stat-track {
    height: 7px;
  }

  .top-left-hud .stat-value {
    font-size: 11px;
    width: 24px;
  }

  .top-right-hud {
    top: 10px;
    right: 10px;
    min-width: 140px;
    gap: 6px;
    padding: 8px 10px;
  }

  .top-right-hud .wanted-stars-container {
    font-size: 18px;
    gap: 3px;
  }

  .top-right-hud .weapon-ammo-display {
    font-size: 18px;
  }

  .hud-top-center {
    top: 8px;
    gap: 6px;
    transform: translateX(-50%) scale(0.85);
    transform-origin: top center;
    max-width: 90vw;
  }

  .time-weather-pill {
    padding: 4px 10px;
    gap: 5px;
    font-size: 11px;
  }

  .time-weather-pill .weather-icon {
    font-size: 16px;
  }

  .season-hud-pill {
    padding: 4px 10px;
    gap: 6px;
  }

  .season-hud-pill .season-trophy {
    font-size: 16px;
  }

  .season-hud-pill .season-title-badge {
    font-size: 10px;
  }

  .catastrophe-banner {
    min-width: 320px;
    max-width: 95vw;
    top: 10px;
  }

  .chat-container {
    width: 320px;
    max-width: calc(100vw - 20px);
    left: 10px;
    bottom: 215px;
    height: 200px;
  }
}

@media (max-width: 720px) {
  .hud-top-center {
    top: 6px;
    transform: translateX(-50%) scale(0.75);
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-left-hud {
    min-width: 150px;
    max-width: 180px;
  }

  .top-right-hud {
    min-width: 110px;
  }

  .chat-container {
    width: 290px;
    bottom: 205px;
    height: 180px;
  }

  .chat-tabs {
    overflow-x: auto;
  }

  .bottom-left-hud {
    left: 10px;
    bottom: 10px;
    transform: scale(0.85);
    transform-origin: bottom left;
  }

  .speedo-panel {
    right: 10px;
    bottom: 10px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
}

@media (max-width: 640px) {
  .chat-container {
    width: calc(100vw - 20px);
    left: 10px;
  }
}

/* =========================================================================
   WEATHER EXPOSURE & AFFLICTION HUD & SCREEN OVERLAYS
   ========================================================================= */
.weather-screen-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 140;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.frost-overlay {
  background: radial-gradient(circle at center, rgba(186, 230, 253, 0) 55%, rgba(147, 197, 253, 0.45) 85%, rgba(191, 219, 254, 0.78) 100%);
  box-shadow: inset 0 0 80px rgba(125, 211, 252, 0.55);
}

.heat-overlay {
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.05) 50%, rgba(245, 158, 11, 0.22) 80%, rgba(239, 68, 68, 0.38) 100%);
  box-shadow: inset 0 0 70px rgba(245, 158, 11, 0.35);
}

.weather-exposure-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  pointer-events: none;
}

.affliction-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.2); }
}

.affliction-badge.hyperthermia {
  background: rgba(220, 38, 38, 0.85);
  border: 1px solid #ef4444;
  color: #fee2e2;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}

.affliction-badge.cold {
  background: rgba(217, 119, 6, 0.85);
  border: 1px solid #f59e0b;
  color: #fef3c7;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.affliction-badge.hypothermia {
  background: rgba(2, 132, 199, 0.88);
  border: 1px solid #38bdf8;
  color: #e0f2fe;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.affliction-badge.sheltered {
  background: rgba(16, 185, 129, 0.85);
  border: 1px solid #34d399;
  color: #ecfdf5;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  animation: none;
}

.affliction-badge.exposure-warn {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
  font-size: 10px;
  animation: none;
}

/* =========================================================================
   Performance & Network Telemetry Badge (FPS & Latency / Ping)
   ========================================================================= */
.perf-telemetry-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  user-select: none;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.perf-telemetry-badge:hover {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(56, 189, 248, 0.3);
}

.perf-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.perf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px #10b981;
  display: inline-block;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.perf-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.perf-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #10b981;
  min-width: 20px;
  transition: color 0.25s;
}

.perf-divider {
  width: 1px;
  height: 14px;
  background: rgba(148, 163, 184, 0.25);
}

/* ==========================================================================
   CHARACTER SELECTION MODAL [F1] & SPECIAL ABILITY HUD [Q]
   ========================================================================== */

#character-modal .character-modal-window {
  max-width: 1080px;
  width: 95%;
  max-height: 92vh;
  border: 2px solid rgba(236, 72, 153, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(236, 72, 153, 0.35);
}

.character-modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(92vh - 100px);
}

.character-select-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.character-select-card:hover {
  transform: translateY(-3px);
  border-color: var(--char-color, #ec4899);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(236, 72, 153, 0.2);
  background: rgba(30, 41, 59, 0.85);
}

.character-select-card.selected {
  border-color: var(--char-color, #10b981);
  box-shadow: 0 0 0 1px var(--char-color, #10b981), 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(16, 185, 129, 0.3);
  background: rgba(15, 23, 42, 0.95);
}

.char-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.char-header-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.char-role-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.char-name {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.char-title {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.char-equipped-badge {
  background: #10b981;
  color: #0f172a;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.char-description {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
}

.char-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 8px;
}

.char-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.char-stat-label {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}

.char-stat-label strong {
  color: #f8fafc;
}

.char-stat-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.char-stat-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.char-ability-box {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.char-ability-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.char-ability-key {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
}

.char-ability-icon {
  font-size: 15px;
}

.char-ability-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

.char-ability-cd {
  margin-left: auto;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 700;
}

.char-ability-desc {
  margin: 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.35;
}

.char-card-footer {
  margin-top: auto;
}

.btn-select-character {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.7), rgba(168, 85, 247, 0.7));
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-character:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(168, 85, 247, 0.95));
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.btn-select-character.btn-selected {
  background: #10b981;
  border-color: #34d399;
  color: #0f172a;
}

/* HUD Ability Widget (Floating Key Q Pill) */
.hud-ability-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 20px;
  padding: 4px 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(245, 158, 11, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hud-ability-widget:hover {
  border-color: #fbbf24;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 16px rgba(251, 191, 36, 0.4);
  transform: scale(1.03);
}

.hud-ability-key {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 900;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
}

.hud-ability-icon {
  font-size: 18px;
}

.hud-ability-info {
  display: flex;
  flex-direction: column;
}

.hud-ability-name {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.hud-ability-status {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
}

.hud-ability-widget.on-cooldown {
  opacity: 0.8;
  border-color: rgba(148, 163, 184, 0.4);
}

.hud-ability-widget.on-cooldown .hud-ability-status {
  color: #f59e0b;
}

/* ==========================================================================
   PERFORMANCE BENCHMARK A/B TESTING TOGGLES (Fase 1)
   ========================================================================== */
body.disable-hud-blur .hud-card,
body.disable-hud-blur .chat-container,
body.disable-hud-blur .time-weather-pill,
body.disable-hud-blur .season-hud-pill,
body.disable-hud-blur .speedo-panel,
body.disable-hud-blur .controls-pill,
body.disable-hud-blur .perf-telemetry-badge,
body.disable-hud-blur .modal-window,
body.disable-hud-blur [class*="modal"],
body.disable-hud-blur [class*="hud"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

