  left: 0;
  width: 100%;
  height: 100%;
  animation: waveMove 10s ease-in-out infinite;
}

.waves-2 {
  animation: waveMove 15s ease-in-out infinite reverse;
  opacity: 0.7;
}

@keyframes waveMove {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50px);
  }
}

#username-input {
  width: 350px;
  padding: 16px 20px;
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  margin-bottom: 25px;
  margin-top: 25px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

#username-input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

#username-input:focus {
  outline: none;
  border-color: #0ea5e9;
  background: rgba(15, 23, 42, 0.8);
  box-shadow:
    0 0 0 3px rgba(14, 165, 233, 0.2),
    0 10px 15px -3px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

#play-button {
  width: 350px;
  padding: 16px;
  font-size: 22px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 20px -5px rgba(14, 165, 233, 0.4),
    0 0 30px rgba(14, 165, 233, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  z-index: 1;
}

#play-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  pointer-events: none;
  z-index: -1;
}

#play-button:hover::before {
  left: 100%;
}

#play-button:hover {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
  transform: translateY(-3px);
  box-shadow:
    0 20px 30px -8px rgba(14, 165, 233, 0.6),
    0 0 50px rgba(14, 165, 233, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

#play-button:active {
  transform: translateY(-1px);
  box-shadow:
    0 5px 10px -3px rgba(14, 165, 233, 0.5),
    0 0 25px rgba(14, 165, 233, 0.4);
}

/* Settings Button (Login Screen) */
#settings-button {
  width: 350px;
  padding: 14px;
  margin-top: 15px;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

#settings-button:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

#settings-button:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
  display: flex;
}

/* Modal Content */
.modal-content {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.90) 100%);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  width: 500px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(14, 165, 233, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(148, 163, 184, 0.2);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 2px solid rgba(148, 163, 184, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #0ea5e9;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.close-button {
  background: none;
  border: none;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 4px;
}

.close-button:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
}

/* Modal Body */
.modal-body {
  padding: 30px;
}

.settings-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

/* Setting Rows */
.setting-row {
  margin-bottom: 25px;
}

.setting-row > label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.5px;
}

/* Slider Container */
.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-container input[type="range"] {
  flex: 1;
  height: 8px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  transition: all 0.2s;
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.8);
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
  transition: all 0.2s;
}

.slider-container input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.8);
}

.slider-value {
  min-width: 50px;
  text-align: right;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #0ea5e9;
}

/* Checkbox */
.setting-row label input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0ea5e9;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  border-top: 2px solid rgba(148, 163, 184, 0.1);
  gap: 15px;
}

.primary-button, .secondary-button {
  padding: 12px 24px;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-button {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.5);
}

.secondary-button {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.secondary-button:hover {
  background: rgba(148, 163, 184, 0.3);
  border-color: rgba(148, 163, 184, 0.5);
}

#game-container {
  display: none;
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* UI Elements */
#level-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 38px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 41, 59, 0.65) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  z-index: 100;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(14, 165, 233, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

#level-fill {
  height: 100%;
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #0ea5e9 100%);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
  animation: levelShine 3s linear infinite;
  position: relative;
}

#level-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: levelGlide 2s infinite;
}

@keyframes levelShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes levelGlide {
  0% { left: -100%; }
  100% { left: 200%; }
}

#level-text {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(14, 165, 233, 0.5);
  z-index: 1;
}

#points-badge {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e293b;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  z-index: 1;
  box-shadow:
    0 2px 8px rgba(251, 191, 36, 0.5),
    0 0 15px rgba(251, 191, 36, 0.3);
  border: 2px solid rgba(30, 41, 59, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#points-badge.has-points {
  animation: pointsPulse 1.5s ease-in-out infinite;
}

@keyframes pointsPulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow:
      0 2px 8px rgba(251, 191, 36, 0.5),
      0 0 15px rgba(251, 191, 36, 0.3);
  }
  50% {
    transform: translateY(-50%) scale(1.08);
    box-shadow:
      0 4px 12px rgba(251, 191, 36, 0.7),
      0 0 25px rgba(251, 191, 36, 0.5);
  }
}

#leaderboard {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  backdrop-filter: blur(15px);
  padding: 18px;
  border-radius: 16px;
  color: white;
  min-width: 240px;
  z-index: 100;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    0 10px 20px -5px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(251, 191, 36, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#leaderboard h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fbbf24;
  text-shadow:
    0 0 10px rgba(251, 191, 36, 0.6),
    0 2px 4px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  border-bottom: 2px solid rgba(251, 191, 36, 0.3);
  padding-bottom: 8px;
}

.leaderboard-entry {
  margin: 8px 0;
  font-size: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: rgba(15, 23, 42, 0.3);
  border-left: 3px solid transparent;
}

.leaderboard-entry:hover {
  background: rgba(30, 41, 59, 0.5);
  border-left-color: #fbbf24;
  transform: translateX(4px);
}

#upgrade-menu {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 100;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.upgrade-button {
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(14, 165, 233, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  overflow: visible;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.upgrade-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

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

.upgrade-name {
  letter-spacing: 1px;
}

.upgrade-key {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.upgrade-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  color: #94a3b8;
  position: relative;
  z-index: 2;
  min-height: 18px;
}

.stat-value {
  color: #0ea5e9;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.stat-value.positive {
  color: #22c55e;
  animation: statIncrease 0.5s ease;
}

.stat-value.negative {
  color: #ef4444;
}

.stat-separator {
  opacity: 0.5;
  font-size: 10px;
}

@keyframes statIncrease {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    color: #4ade80;
  }
  100% {
    transform: scale(1);
  }
}

.upgrade-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.2));
  opacity: 0;
  transition: opacity 0.3s;
}

.upgrade-button:not(.disabled):hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(6, 182, 212, 0.25) 100%);
  border-color: #0ea5e9;
  transform: translateY(-4px);
  box-shadow:
    0 10px 20px -5px rgba(14, 165, 233, 0.4),
    0 0 40px rgba(14, 165, 233, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.upgrade-button:not(.disabled):hover::before {
  opacity: 1;
}

.upgrade-button:not(.disabled):active {
  transform: translateY(-2px);
}

.upgrade-button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.stat-level {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  box-shadow:
    0 2px 8px rgba(14, 165, 233, 0.5),
    0 0 15px rgba(14, 165, 233, 0.4);
  border: 2px solid rgba(15, 23, 42, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 2px 8px rgba(14, 165, 233, 0.5),
      0 0 15px rgba(14, 165, 233, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow:
      0 2px 12px rgba(14, 165, 233, 0.7),
      0 0 25px rgba(14, 165, 233, 0.6);
  }
}

/* Upgrade Preview Tooltip */
.upgrade-preview {
  position: fixed;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(14, 165, 233, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 280px;
  max-width: 400px;
  z-index: 150;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(14, 165, 233, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: tooltipSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Rajdhani', sans-serif;
}

.upgrade-preview.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

@keyframes tooltipSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.preview-header {
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 12px;
  text-align: center;
}

.preview-header #preview-points {
  color: #0ea5e9;
  font-weight: 700;
  font-size: 16px;
}

#preview-stats-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.preview-stat-row:last-child {
  border-bottom: none;
}

.preview-stat-name {
  color: #cbd5e1;
  font-weight: 500;
}

.preview-stat-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.preview-current {
  color: #94a3b8;
}

.preview-arrow {
  color: #64748b;
  font-size: 12px;
}

.preview-new {
  color: #0ea5e9;
}

.preview-delta {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.preview-delta.positive {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.preview-delta.negative {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.preview-tier-warning {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 6px;
  font-size: 13px;
  color: #fbbf24;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.preview-tier-warning::before {
  content: '⚠️';
  font-size: 16px;
  flex-shrink: 0;
}

.preview-tier-warning.hidden {
  display: none;
}

#health-display {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  backdrop-filter: blur(15px);
  padding: 14px 20px;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  z-index: 100;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(239, 68, 68, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#health-display span {
  color: #ef4444;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Kill Feed */
#kill-feed {
  position: fixed;
  top: 220px;
  right: 20px;
  width: 280px;
  pointer-events: none;
  font-family: 'Rajdhani', monospace;
  font-size: 13px;
  z-index: 100;
  animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.kill-msg {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.90) 100%);
  backdrop-filter: blur(15px);
  color: #fff;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  border-left: 3px solid;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  animation: slideInFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.kill-msg.kill {
  border-left-color: #ef4444;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(239, 68, 68, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.kill-msg.death {
  border-left-color: #94a3b8;
}

.kill-msg.levelup {
  border-left-color: #4ade80;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(74, 222, 128, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Network Stats Panel */
#network-stats {
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.82) 100%);
  backdrop-filter: blur(15px);
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  min-width: 220px;
  z-index: 100;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    0 8px 16px -4px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(14, 165, 233, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Rajdhani', monospace;
}

#network-stats.hidden {
  display: none;
}

#network-stats h4 {
  margin-bottom: 8px;
  font-size: 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #0ea5e9;
  text-shadow:
    0 0 8px rgba(14, 165, 233, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  padding-bottom: 6px;
}

.net-stat {
  margin: 5px 0;
  font-size: 12px;
  font-family: 'Rajdhani', monospace;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  padding: 2px 4px;
  border-radius: 4px;
}

.net-stat-label {
  color: rgba(203, 213, 225, 0.75);
  font-size: 11px;
}

.net-stat-value {
  color: #fff;
  font-weight: 600;
  font-family: monospace;
  font-size: 12px;
}

.net-stat-value.good {
  color: #4ade80;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.net-stat-value.warn {
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

.net-stat-value.bad {
  color: #f87171;
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.5);
}

/* Mobile Controls */
#mobile-controls {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 200;
}

#mobile-controls.active {
  display: block;
}

#mobile-shoot-button {
  position: fixed;
