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

:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --accent-lime: #b5ff4d;
  --accent-pink: #ff3b8b;
  --accent-orange: #ff8c42;
  --accent-blue: #4d79ff;
  --accent-purple: #a855f7;
  --text-primary: #e8e8f0;
  --text-muted: #6b6b8a;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(181, 255, 77, 0.3), 0 0 60px rgba(181, 255, 77, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(181, 255, 77, 0.5), 0 0 80px rgba(181, 255, 77, 0.2);
    transform: scale(1.02);
  }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
}

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

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

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

@keyframes rainbow {
  0% { color: #ff3b8b; }
  16% { color: #ff8c42; }
  33% { color: #b5ff4d; }
  50% { color: #4d79ff; }
  66% { color: #a855f7; }
  83% { color: #ff3b8b; }
  100% { color: #ff3b8b; }
}

@keyframes counter-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes bg-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.wobble-text {
  animation: wobble 3s ease-in-out infinite;
  display: inline-block;
}

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

.pulse-button:hover {
  animation: none;
  box-shadow: 0 0 40px rgba(181, 255, 77, 0.6), 0 0 100px rgba(181, 255, 77, 0.3);
  transform: scale(1.05);
}

.pulse-button:active {
  transform: scale(0.92) !important;
  transition: transform 0.08s;
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

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

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

.rainbow-text {
  animation: rainbow 1.5s linear infinite;
}

.counter-pop {
  animation: counter-pop 0.3s ease-out;
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 3s linear forwards;
  pointer-events: none;
  z-index: 9999;
}

.bg-animated {
  background-size: 400% 400%;
  animation: bg-shift 15s ease infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* Comment thread styling */
.comment-thread {
  border-left: 2px solid #2a2a4a;
  margin-left: 12px;
  padding-left: 16px;
}

.upvote-btn {
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}
.upvote-btn:hover {
  color: var(--accent-orange);
}