/* ═══════════════════════════════════════════════════════════════════
   RigCheck — Global Styles
   Dark Glassmorphism · Space Grotesk · Neon Green/Purple
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors - Dedicated Premium Light Palette */
  --bg-void:       #f8fafc; /* Slate 50 */
  --bg-deep:       #f1f5f9; /* Slate 100 */
  --bg-card:       rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border:        rgba(0, 0, 0, 0.08);
  --border-lit:    rgba(0, 255, 136, 0.4);

  --neon-green:    #00ff88;
  --neon-green-dim: rgba(0, 180, 100, 0.08);
  --neon-purple:   #7c3aed;
  --neon-purple-dim: rgba(124, 58, 237, 0.08);
  --neon-blue:     #3b82f6;
  --neon-red:      #ef4444;
  --neon-amber:    #f59e0b;

  --text-primary:  #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-dim:      #94a3b8; /* Slate 400 */

  /* Fonts */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Status */
  --pass-color: #10b981; 
  --warn-color: #f59e0b;
  --fail-color: #ef4444;
  --unknown-color: #64748b;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Scrollbar ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* ── Utilities ────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Particle Canvas ──────────────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Page Layout ──────────────────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text { color: var(--text-primary); }
.nav-logo-text span { color: var(--neon-green); }

.nav-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--neon-green-dim);
  color: var(--neon-green);
  border: 1px solid rgba(0,255,136,0.2);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 80px; /* Reduced top padding */
  position: relative;
  overflow: hidden;
}

/* Radial glow */
#hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(0,255,136,0.06) 0%, rgba(124,58,237,0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-green);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0,255,136,0.25);
  background: rgba(0,255,136,0.06);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero-title-line1 { display: block; color: var(--text-primary); }
.hero-title-line2 {
  display: block;
  background: linear-gradient(90deg, var(--neon-green), #00d4ff, var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards 0.5s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards 0.65s;
}

/* CTA Button */
#btn-scan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background: linear-gradient(135deg, var(--neon-green), #00d4aa);
  color: #07100f;
  box-shadow: 0 0 40px rgba(0,255,136,0.3);
  letter-spacing: 0.01em;
}

#btn-scan::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

#btn-scan:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(0,255,136,0.5); }
#btn-scan:hover::before { opacity: 1; }
#btn-scan:active { transform: translateY(0); }

#btn-scan.scanning {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: var(--neon-green);
  border: 1px solid rgba(0,255,136,0.3);
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
  animation: scanPulse 1.5s infinite;
}

#btn-scan.done {
  background: linear-gradient(135deg, rgba(0,255,136,0.15), rgba(0,212,170,0.1));
  color: var(--neon-green);
  border: 1px solid rgba(0,255,136,0.3);
  box-shadow: none;
}

.btn-icon { font-size: 1.1rem; }

.hero-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease forwards 0.85s;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}

.feature-chip-icon { font-size: 1rem; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeUp 1s ease forwards 1.2s, scrollBounce 2s infinite 2s;
  opacity: 0;
}

.scroll-arrow {
  width: 20px; height: 30px;
  border: 1.5px solid var(--border-lit);
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: scrollDot 1.5s infinite 2s;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS (common)
   ═══════════════════════════════════════════════════════════════════ */
section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-purple);
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.08);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Revealed animation */
#specs-section, #search-section, #results-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
#specs-section.revealed,
#search-section.revealed,
#results-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════
   SPECS GRID
   ═══════════════════════════════════════════════════════════════════ */
#specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  animation: cardReveal 0.5s ease both;
  position: relative;
  overflow: hidden;
}

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

.spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.spec-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0,255,136,0.15);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.spec-card:hover::before { opacity: 1; }

.spec-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.spec-icon { font-size: 1.3rem; }

.spec-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  flex: 1;
}

.spec-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-pass .spec-badge, .spec-badge.status-pass {
  background: rgba(0,255,136,0.12);
  color: var(--pass-color);
  border: 1px solid rgba(0,255,136,0.2);
}
.status-warn .spec-badge, .spec-badge.status-warn {
  background: rgba(245,158,11,0.12);
  color: var(--warn-color);
  border: 1px solid rgba(245,158,11,0.2);
}
.status-fail .spec-badge, .spec-badge.status-fail {
  background: rgba(239,68,68,0.12);
  color: var(--fail-color);
  border: 1px solid rgba(239,68,68,0.2);
}
.status-unknown .spec-badge, .spec-badge.status-unknown {
  background: rgba(107,114,128,0.12);
  color: var(--unknown-color);
  border: 1px solid rgba(107,114,128,0.2);
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.spec-detail {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH SECTION
   ═══════════════════════════════════════════════════════════════════ */
#search-section {
  position: relative;
  z-index: 100; /* Higher than results-section to prevent clipping */
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.03) 50%, transparent);
}

#search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-input-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-dim);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  transition: all 0.2s;
}

#search-input::placeholder { color: var(--text-dim); }

#search-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 4px var(--neon-green-dim), 0 12px 40px rgba(0,0,0,0.08);
}

/* Dropdown */
#search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  animation: dropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover, .dropdown-item.focused {
  background: var(--bg-deep);
  padding-left: 26px;
  color: var(--neon-purple);
}

.dropdown-thumb {
  width: 60px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--bg-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dropdown-name {
  flex: 1;
  font-weight: 500;
  font-size: 0.92rem;
}

.dropdown-appid {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: monospace;
}

.dropdown-loading {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dropdown-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,255,136,0.2);
  border-top-color: var(--neon-green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Popular Chips - hint below search */
.search-hint {
  text-align: center;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   RESULTS SECTION
   ═══════════════════════════════════════════════════════════════════ */
#results-section { padding-top: 40px; padding-bottom: 100px; }

/* Loading state */
.results-loading, .results-noscan {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.loading-game-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
}

.loading-game-thumb {
  width: 184px;
  border-radius: var(--radius-md);
}

.loading-game-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.loading-dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: dotBounce 1.2s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Game header banner */
.game-hero-banner {
  padding: 32px;
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.game-hero-overlay {
  display: flex;
  align-items: center;
  gap: 24px;
}

.game-hero-thumb {
  width: 160px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.game-hero-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.game-hero-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.metacritic-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #6c3;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 8px;
}

/* Results Wrapper */
.results-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

/* Score Hero */
.score-hero {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: linear-gradient(180deg, rgba(0,255,136,0.03), transparent);
  border-bottom: 1px solid var(--border);
}

.score-circles {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.score-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.score-circle {
  position: relative;
  width: 160px; height: 160px;
}

.score-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.score-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}

.score-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.score-fill-excellent, .score-fill-pass { stroke: var(--neon-green); filter: drop-shadow(0 0 8px rgba(0,255,136,0.6)); }
.score-fill-warn                        { stroke: var(--warn-color);  filter: drop-shadow(0 0 8px rgba(245,158,11,0.6)); }
.score-fill-fail                        { stroke: var(--fail-color);  filter: drop-shadow(0 0 8px rgba(239,68,68,0.6)); }
.score-fill-unknown                     { stroke: var(--unknown-color); }

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.score-num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.score-pct {
  font-size: 1rem;
  color: var(--text-dim);
  align-self: flex-end;
  margin-bottom: 6px;
}

.score-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

/* Verdict Panel */
.verdict-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.verdict-excellent, .verdict-pass {
  background: rgba(0,255,136,0.07);
  border-color: rgba(0,255,136,0.2);
}
.verdict-warn {
  background: rgba(245,158,11,0.07);
  border-color: rgba(245,158,11,0.2);
}
.verdict-fail {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.2);
}

.verdict-emoji { font-size: 2.4rem; }

.verdict-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.verdict-excellent .verdict-text, .verdict-pass .verdict-text { color: var(--pass-color); }
.verdict-warn .verdict-text                                    { color: var(--warn-color); }
.verdict-fail .verdict-text                                    { color: var(--fail-color); }

.verdict-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Comparison Section ────────────────────────────────────────────── */
.comparison-section {
  padding: 40px;
  border-bottom: 1px solid var(--border);
}

.comp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.comp-tab {
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.comp-tab:hover { border-color: rgba(0,255,136,0.2); color: var(--text-primary); }
.comp-tab.active {
  background: rgba(0,255,136,0.1);
  border-color: rgba(0,255,136,0.3);
  color: var(--neon-green);
}

/* Check items */
.checks-list { display: flex; flex-direction: column; gap: 12px; }

.check-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.check-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 2px 0 0 2px;
}

.check-pass::before  { background: var(--pass-color); }
.check-warn::before  { background: var(--warn-color); }
.check-fail::before  { background: var(--fail-color); }
.check-unknown::before { background: var(--unknown-color); }

.check-pass  { border-color: rgba(0,255,136,0.12); }
.check-warn  { border-color: rgba(245,158,11,0.12); }
.check-fail  { border-color: rgba(239,68,68,0.12); }

.check-icon { font-size: 1.4rem; text-align: center; }

.check-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 8px;
}

.check-compare {
  display: flex;
  align-items: center;
  gap: 14px;
}

.check-yours, .check-required {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-yours-label, .check-required-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.check-yours-value, .check-required-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: 240px;
}

.check-arrow { color: var(--text-dim); font-size: 0.9rem; }

.check-note {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.check-bar-wrap { display: none; }

/* ── Scanner Status Banner ────────────────────────────────────────── */
.scanner-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(13, 13, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  animation: cardFadeIn 0.4s ease;
  flex-wrap: wrap;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.scanner-banner--native {
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  color: rgba(0,255,136,0.9);
}

.scanner-banner--browser {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.25);
  color: rgba(251,191,36,0.9);
}

.scanner-banner-icon { font-size: 1rem; flex-shrink: 0; }

.scanner-banner-text {
  flex: 1;
  color: var(--text-secondary);
  min-width: 200px;
}

.scanner-banner-text strong { color: var(--text-primary); }

.scanner-banner-btn {
  padding: 5px 14px;
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 8px;
  color: rgba(251,191,36,0.9);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.scanner-banner-btn:hover {
  background: rgba(251,191,36,0.12);
  border-color: rgba(251,191,36,0.6);
}

.scanner-banner-close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: color 0.15s;
  flex-shrink: 0;
}

.scanner-banner-close:hover { color: var(--text-primary); }

/* ── Spec Edit Button ─────────────────────────────────────────────── */
.spec-edit-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.8rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.18s;
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
}

.spec-edit-btn:hover {
  border-color: rgba(0,255,136,0.3);
  color: var(--neon-green);
  background: rgba(0,255,136,0.08);
}

/* Card flash when updated */
@keyframes specFlash {
  0%   { box-shadow: 0 0 0 2px rgba(0,255,136,0); }
  40%  { box-shadow: 0 0 0 3px rgba(0,255,136,0.5); }
  100% { box-shadow: 0 0 0 2px rgba(0,255,136,0); }
}

.spec-card-updated {
  animation: specFlash 0.8s ease !important;
}

/* ── Spec Edit Overlay / Modal ────────────────────────────────────── */
.spec-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(100, 116, 139, 0.4);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}

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

.spec-edit-modal {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  animation: modalSlide 0.22s ease;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}


.spec-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spec-edit-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.spec-edit-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.spec-edit-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.spec-edit-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.spec-edit-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.spec-edit-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.spec-edit-input:focus {
  border-color: rgba(0,255,136,0.4);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.08);
}

.spec-edit-input[type="number"] { padding-right: 52px; }

.spec-edit-suffix {
  position: absolute;
  right: 14px;
  color: var(--text-dim);
  font-size: 0.85rem;
  pointer-events: none;
}

.spec-edit-actions {
  display: flex;
  gap: 10px;
}

.spec-edit-save {
  flex: 1;
  padding: 11px;
  background: linear-gradient(135deg, var(--neon-green), #00d4aa);
  color: #07100f;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}

.spec-edit-save:hover { opacity: 0.9; transform: translateY(-1px); }

.spec-edit-cancel {
  padding: 11px 20px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.spec-edit-cancel:hover { background: rgba(255,255,255,0.09); }


.req-table-section {
  padding: 40px;
}

.req-table-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.req-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.req-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.req-col-header {
  padding: 12px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.req-col-min {
  background: rgba(59,130,246,0.12);
  color: var(--neon-blue);
  border-bottom: 1px solid rgba(59,130,246,0.1);
}

.req-col-rec {
  background: rgba(0,255,136,0.08);
  color: var(--neon-green);
  border-bottom: 1px solid rgba(0,255,136,0.1);
}

.req-row {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.req-row:last-child { border-bottom: none; }

.req-field-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.req-field-val {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ── No Scan Message ────────────────────────────────────────────────── */
.noscan-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px;
  text-align: center;
  gap: 12px;
}

.noscan-icon { font-size: 2.5rem; }

.noscan-msg h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.noscan-msg p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Error Card ─────────────────────────────────────────────────────── */
.error-card {
  padding: 60px;
  text-align: center;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-xl);
}

.error-icon { font-size: 3rem; margin-bottom: 16px; }

.error-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.error-card p { color: var(--text-secondary); font-size: 0.9rem; }
.error-detail {
  margin-top: 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--fail-color);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

footer a { color: var(--neon-green); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes scanPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,136,0.15); }
  50%       { box-shadow: 0 0 40px rgba(0,255,136,0.35); }
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}

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

@keyframes scrollDot {
  0%  { opacity: 1; top: 5px; }
  100%{ opacity: 0; top: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar { padding: 14px 16px; }
  .nav-tagline { display: none; }

  section { padding: 60px 0; }

  #specs-grid { grid-template-columns: 1fr 1fr; }

  .game-hero-banner { height: 200px; }
  .game-hero-thumb  { width: 90px; }
  .game-hero-name   { font-size: 1.2rem; }

  .score-circles { gap: 24px; }
  .score-circle  { width: 120px; height: 120px; }
  .score-num     { font-size: 1.8rem; }

  .score-hero    { padding: 32px 24px; }
  .comparison-section { padding: 24px; }
  .req-table-section  { padding: 24px; }

  .check-compare { flex-direction: column; align-items: flex-start; gap: 6px; }
  .check-arrow   { display: none; }

  .verdict-panel { padding: 20px 32px; }
  .verdict-text  { font-size: 1.2rem; }

  .comp-tabs { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  #specs-grid { grid-template-columns: 1fr; }
  .hero-features { flex-direction: column; align-items: center; }
  .check-item { grid-template-columns: 28px 1fr; }
  .check-bar-wrap { display: none; }
}

/*  Trending Games (Epic Style)  */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.game-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  animation: cardReveal 0.5s ease both;
}

.game-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-lit);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  z-index: 5;
}

.game-tile-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16/22;
  overflow: hidden;
}

.game-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-tile:hover .game-tile-img {
  transform: scale(1.1);
}

.game-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248,250,252,0.98) 0%, rgba(248,250,252,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

.game-tile-content {
  padding: 12px 16px;
  background: var(--bg-deep);
  flex: 1;
}

.game-tile-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.game-tile-score {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}

.score-text-pass { color: var(--pass-color); border-color: var(--pass-color); }
.score-text-warn { color: var(--warn-color); border-color: var(--warn-color); }
.score-text-fail { color: var(--fail-color); border-color: var(--fail-color); }

.game-tile-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.status-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
}
.status-tag-pass { background: var(--pass-color); color: #000; }
.status-tag-warn { background: var(--warn-color); color: #000; }
.status-tag-fail { background: var(--fail-color); color: #fff; }


/*  Skeleton Loading for Trending  */
.game-tile--loading {
  pointer-events: none;
  opacity: 0.7;
}

.game-tile-score-placeholder {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

/* Requirement Empty State */
.req-empty-state {
  padding: 48px 32px;
  background: var(--bg-deep);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-secondary);
  margin-top: 20px;
}

.req-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.req-empty-state p {
  margin-bottom: 8px;
  font-weight: 500;
}

.req-empty-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.req-empty-sub a {
  color: var(--neon-purple);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Data Source Badges */
.source-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; margin-left: 10px; vertical-align: middle; }
.source-steam { background: rgba(0, 102, 255, 0.1); color: #0066ff; }
.source-rawg { background: rgba(255, 102, 0, 0.1); color: #ff6600; }
.source-cache { background: rgba(0, 255, 136, 0.1); color: var(--neon-green); }
/* ===================================================================
   PERFORMANCE INSIGHTS
   =================================================================== */
#performance-section {
  position: relative;
  z-index: 5;
}

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .perf-grid {
    grid-template-columns: 1fr;
  }
}

.perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.perf-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.perf-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.perf-game-select-wrap {
  margin-bottom: 20px;
}

.perf-game-select {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.perf-game-display {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .perf-game-display {
    flex-direction: column;
  }
}

.perf-game-img-wrap {
  flex: 0 0 160px;
}

.perf-game-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: block;
}

.perf-fps-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perf-fps-box {
  background: var(--bg-void);
  border: 1px dashed var(--border-lit);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.perf-fps-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--neon-blue);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.perf-fps-box:last-child::before {
  background: var(--neon-purple);
  border-color: rgba(124,58,237,0.4);
}
.perf-fps-box:last-child {
  border-color: rgba(124,58,237,0.4);
}

.perf-fps-res {
  font-weight: 700;
  font-size: 1.1rem;
}

.perf-fps-setting {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.perf-fps-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.perf-fps-val span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.perf-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
}

.perf-scores-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perf-scores-row {
  display: flex;
  gap: 16px;
}

.perf-score-box {
  flex: 1;
  background: var(--bg-void);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.perf-score-box--main {
  border: 1px solid var(--border-lit);
  background: rgba(0,255,136,0.03);
}

.perf-score-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.perf-score-box--main .perf-score-label {
  color: var(--text-primary);
}

.perf-score-val {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

#performance-section.revealed {
  opacity: 1;
  transform: translateY(0);
}
#performance-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

