* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #0a0a0a;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(0,0,0,0.05) 1px,
    rgba(0,0,0,0.05) 2px
  );
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Glitch effect */
@keyframes glitch {
  0% { text-shadow: 2px 0 #ff2244, -2px 0 #3388ff; }
  20% { text-shadow: -2px 0 #ff2244, 2px 0 #3388ff; }
  40% { text-shadow: 2px -1px #ff2244, -2px 1px #3388ff; }
  60% { text-shadow: -1px 2px #ff2244, 1px -2px #3388ff; }
  80% { text-shadow: 1px 0 #ff2244, -1px 0 #3388ff; }
  100% { text-shadow: 2px 0 #ff2244, -2px 0 #3388ff; }
}

.glitch-text {
  animation: glitch 0.3s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse-glow { animation: pulse-glow 1.5s ease-in-out infinite; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.shake { animation: shake 0.5s ease-in-out; }

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

.slide-in { animation: slideInUp 0.3s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in { animation: fadeIn 0.5s ease-out; }

@keyframes statFlash {
  0% { filter: brightness(1); }
  50% { filter: brightness(2); }
  100% { filter: brightness(1); }
}

.stat-flash { animation: statFlash 0.4s ease-out; }

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

.ticker-scroll {
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}

/* Neon borders */
.neon-border-green { border: 1px solid rgba(0,255,136,0.3); box-shadow: 0 0 10px rgba(0,255,136,0.1); }
.neon-border-red { border: 1px solid rgba(255,34,68,0.3); box-shadow: 0 0 10px rgba(255,34,68,0.1); }
.neon-border-blue { border: 1px solid rgba(51,136,255,0.3); box-shadow: 0 0 10px rgba(51,136,255,0.1); }
.neon-border-gold { border: 1px solid rgba(255,170,0,0.3); box-shadow: 0 0 10px rgba(255,170,0,0.1); }
.neon-border-purple { border: 1px solid rgba(170,68,255,0.3); box-shadow: 0 0 10px rgba(170,68,255,0.1); }

/* Progress bar glow */
.bar-glow-green { box-shadow: 0 0 6px rgba(0,255,136,0.4); }
.bar-glow-red { box-shadow: 0 0 6px rgba(255,34,68,0.4); }
.bar-glow-blue { box-shadow: 0 0 6px rgba(51,136,255,0.4); }
.bar-glow-gold { box-shadow: 0 0 6px rgba(255,170,0,0.4); }
.bar-glow-purple { box-shadow: 0 0 6px rgba(170,68,255,0.4); }

/* Modal overlay */
.modal-overlay {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

/* Action button hover */
.action-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}
.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.2);
}
.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Stat bar transition */
.stat-bar-fill {
  transition: width 0.5s ease-out;
}

/* News ticker container */
.ticker-container {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}