@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Bebas+Neue&display=swap');

:root {
  --void: #000000;
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --border: #1c1c1c;
  --border-red: #2a0a0a;
  --text: #737373;
  --text-dim: #404040;
  --text-bright: #d4d4d4;
  --blood: #8b1a1a;
  --blood-bright: #c41e1e;
  --blood-glow: rgba(139, 26, 26, 0.35);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--void);
}

html {
  font-size: 20px;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--void);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

/* noise + scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
}

.hero-void {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(139, 26, 26, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 0% 50%, rgba(139, 26, 26, 0.06), transparent),
    var(--bg);
}

.header-bar {
  background: var(--void);
  border-bottom: 1px solid var(--border-red);
  box-shadow: 0 1px 0 rgba(139, 26, 26, 0.2), 0 4px 24px rgba(0, 0, 0, 0.8);
}

.blink {
  animation: blink 2.4s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.site-favicon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--void);
  object-fit: contain;
}

.site-favicon.failed {
  opacity: 0.15;
}

.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  min-width: 2rem;
}

.rank-num.top {
  color: var(--blood-bright);
  text-shadow: 0 0 12px var(--blood-glow);
}

.rank-num.pick {
  color: #2dd4a0;
  text-shadow: 0 0 16px rgba(45, 212, 160, 0.4);
  font-size: 2rem;
}

.top-pick {
  border: 1px solid rgba(45, 212, 160, 0.25);
  background: linear-gradient(135deg, #0a0f0d 0%, #0a0a0a 50%, #0d0505 100%);
  box-shadow: inset 0 0 40px rgba(45, 212, 160, 0.04), 0 0 24px rgba(45, 212, 160, 0.06);
}

.top-pick-favicon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(45, 212, 160, 0.3);
  background: var(--void);
  object-fit: contain;
}

.badge-excellent {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2dd4a0;
  border: 1px solid rgba(45, 212, 160, 0.35);
  padding: 3px 10px;
  background: rgba(45, 212, 160, 0.08);
  box-shadow: 0 0 12px rgba(45, 212, 160, 0.15);
}

.badge-pick {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blood-bright);
  border: 1px solid var(--border-red);
  padding: 3px 10px;
  background: rgba(139, 26, 26, 0.12);
}

.table-row-pick {
  background: linear-gradient(90deg, rgba(45, 212, 160, 0.06) 0%, transparent 60%);
  border-bottom-color: rgba(45, 212, 160, 0.15) !important;
}

.table-row-pick:hover {
  background: linear-gradient(90deg, rgba(45, 212, 160, 0.1) 0%, #0d0505 60%) !important;
}

.table-row-pick td:first-child {
  box-shadow: inset 3px 0 0 #2dd4a0;
}

.ad-label-excellent {
  color: #2dd4a0 !important;
}

.ad-bar {
  height: 4px;
  width: 20px;
  background: var(--border);
  display: inline-block;
}

.ad-bar.lit-1 { background: #1a4d2e; box-shadow: 0 0 4px rgba(26, 77, 46, 0.5); }
.ad-bar.lit-2 { background: #4d3a1a; box-shadow: 0 0 4px rgba(77, 58, 26, 0.5); }
.ad-bar.lit-3 { background: var(--blood); box-shadow: 0 0 4px var(--blood-glow); }

.btn-blood {
  background: transparent;
  border: 1px solid var(--blood);
  color: var(--blood-bright);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-blood:hover {
  background: var(--blood);
  color: #fff;
  box-shadow: 0 0 20px var(--blood-glow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  color: var(--text-bright);
}

.input-dark {
  background: var(--void);
  border: 1px solid var(--border);
  color: var(--text-bright);
  transition: border-color 0.15s;
}

.input-dark:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 0 1px var(--blood-glow);
}

.input-dark::placeholder {
  color: var(--text-dim);
}

.table-row-hover:hover {
  background: #0d0505;
}

.table-row-hover:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--blood);
}

.no-results { display: none; }
.no-results.visible { display: flex; }

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.25s ease;
  background: var(--void);
  border-left: 1px solid var(--border-red);
}

.mobile-menu.open { transform: translateX(0); }

.overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.divider-red {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
  opacity: 0.4;
}

.stat-block {
  border-left: 2px solid var(--blood);
  padding-left: 12px;
}

.tag {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blood-bright);
  border: 1px solid var(--border-red);
  padding: 4px 10px;
  background: rgba(139, 26, 26, 0.08);
}
