:root {
  --accent: #5e9c88;
  --accent-glow: rgba(94, 156, 136, 0.18);
  --bg-dark: #141923;
  --bg-panel: #1b2230;
  --bg-card: #202838;
  --bg-card-hover: #263144;
  --border-color: rgba(216, 222, 233, 0.09);
  --text-main: #d8dee9;
  --text-muted: #94a3b8;
}

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

body {
  position: relative;
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 12% 18%, var(--accent-glow), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(91, 132, 177, 0.14), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(136, 192, 168, 0.08), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Animated Ambient Gamer Aura Orbs */
body::before {
  content: "";
  position: fixed;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
  animation: gamerAuraFloat 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -140px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 144, 185, 0.14) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: gamerAuraFloat 14s ease-in-out infinite alternate-reverse;
}

@keyframes gamerAuraFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-45px, 35px) scale(1.14);
  }
}

/* Override harsh pure-white Tailwind utility classes to soft eye-friendly Nord off-white */
.text-white {
  color: #e6ecf5 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #141923;
}
::-webkit-scrollbar-thumb {
  background: #2e3846;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Dynamic Gamer Hero Banner with Animated Scanline & Border Glow */
.hero-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, var(--accent-glow), transparent 60%),
    linear-gradient(135deg, rgba(29, 36, 48, 0.96) 0%, rgba(21, 27, 38, 0.98) 100%);
  border: 1px solid rgba(136, 192, 168, 0.22);
  border-left: 4px solid var(--accent);
  box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #88c0a8, transparent);
  animation: cyberScanline 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cyberScanline {
  0% {
    left: -100%;
  }
  60%, 100% {
    left: 140%;
  }
}

/* Animated Gamer HUD Card */
.gamer-hud-card {
  position: relative;
  background: linear-gradient(145deg, rgba(31, 39, 53, 0.95) 0%, rgba(23, 30, 42, 0.97) 100%);
  border: 1px solid rgba(136, 192, 168, 0.16);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.gamer-hud-card:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 34px -10px var(--accent-glow);
}

.showcase-card {
  background: linear-gradient(155deg, rgba(33, 41, 56, 0.92) 0%, rgba(24, 31, 43, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s ease;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px -10px var(--accent-glow);
}

/* Live Status Pulse Dot */
.live-pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #88c0a8;
}

.live-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #88c0a8;
  animation: pulseRing 1.8s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.game-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.62rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-nav-item:hover {
  background: rgba(216, 222, 233, 0.05);
  color: var(--text-main);
  transform: translateX(3px);
}

.game-nav-item.active {
  background: linear-gradient(90deg, var(--accent-glow) 0%, rgba(216, 222, 233, 0.03) 100%);
  border-color: var(--accent);
  color: #e5e9f0;
  box-shadow: inset 3px 0 0 var(--accent);
}

.accent-badge {
  background: var(--accent-glow);
  color: #e5e9f0;
  border: 1px solid var(--accent);
}

.accent-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #4b8371 100%);
  color: #f3f5f8;
  font-weight: 600;
  transition: all 0.22s ease;
  box-shadow: 0 4px 14px -3px var(--accent-glow);
}

.accent-btn:hover {
  filter: brightness(1.09);
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px -4px var(--accent-glow);
}

.issue-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.issue-card:hover {
  border-color: rgba(136, 192, 168, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
}

.forum-quote-box {
  background: rgba(20, 25, 35, 0.68);
  border-left: 3px solid #748cab;
  border-radius: 0.5rem;
}

.ai-root-box {
  background: linear-gradient(135deg, rgba(94, 156, 136, 0.11) 0%, rgba(56, 94, 82, 0.15) 100%);
  border: 1px solid rgba(94, 156, 136, 0.28);
  border-radius: 0.75rem;
}

.vote-btn-active {
  background: rgba(94, 156, 136, 0.24) !important;
  border-color: rgba(94, 156, 136, 0.58) !important;
  color: #a3d9c6 !important;
}

.tab-btn {
  position: relative;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: #e5e9f0;
  border-bottom-color: var(--accent);
  background: linear-gradient(180deg, transparent 0%, var(--accent-glow) 100%);
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Markdown Output Styling */
.ai-markdown h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #e5e9f0;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.ai-markdown h3:first-child {
  margin-top: 0;
}
.ai-markdown p {
  margin-bottom: 0.75rem;
  color: #c8d0de;
}
.ai-markdown ol, .ai-markdown ul {
  padding-left: 1.35rem;
  margin-bottom: 0.85rem;
  color: #d0d7e3;
}
.ai-markdown li {
  margin-bottom: 0.45rem;
}
.ai-markdown code {
  background: rgba(216, 222, 233, 0.09);
  color: #d9c382;
  padding: 0.12rem 0.4rem;
  border-radius: 0.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
}
.ai-markdown pre {
  background: #141922;
  border: 1px solid rgba(216, 222, 233, 0.1);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.ai-markdown pre code {
  background: transparent;
  color: #8fbcbb;
  padding: 0;
}
.ai-markdown blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(216, 222, 233, 0.03);
  padding: 0.6rem 0.9rem;
  border-radius: 0.35rem;
  margin: 0.6rem 0;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
.animate-pulse-glow {
  animation: pulseGlow 2.2s infinite ease-in-out;
}
