/* ==========================================
   RETROVERSO - SISTEMA DE DESIGN PREMIUM
   "Todos os Mundos. Todos os Clássicos."
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Orbitron:wght@700;900&display=swap');

:root {
  color-scheme: dark;

  /* Fundo e Superfícies */
  --bg: #030604;
  --card: #090e0b;
  --surface-hover: #121c16;

  /* Neon Glow & Acentos */
  --green-neon: #00ff41;
  --green-glow: rgba(0, 255, 65, 0.4);
  --green-soft: rgba(0, 255, 65, 0.08);
  --green-mid: rgba(0, 255, 65, 0.18);

  /* Bordas */
  --border: #1a261e;
  --border-bright: #00ff41;

  /* Tipografia */
  --text: #ffffff;
  --text-muted: #8e9e94;
  --radius: 16px;

  /* Fontes */
  --font-display: 'Orbitron', 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ═══ Cores Temáticas por Console ═══ */
  --snes-color: #7B2D8E;
  --snes-glow: rgba(123, 45, 142, 0.5);
  --psx-color: #1560BD;
  --psx-glow: rgba(21, 96, 189, 0.5);
  --n64-color: #E4000F;
  --n64-glow: rgba(228, 0, 15, 0.5);
  --sega-color: #003087;
  --sega-glow: rgba(0, 48, 135, 0.5);
  --gba-color: #6B2FA0;
  --gba-glow: rgba(107, 47, 160, 0.5);
  --gbc-color: #00A651;
  --gbc-glow: rgba(0, 166, 81, 0.5);
  --nes-color: #E4002B;
  --nes-glow: rgba(228, 0, 43, 0.5);
  --arcade-color: #00FF41;
  --arcade-glow: rgba(0, 255, 65, 0.5);
  --nds-color: #00BFFF;
  --nds-glow: rgba(0, 191, 255, 0.5);
  --segacd-color: #1A1AFF;
  --segacd-glow: rgba(26, 26, 255, 0.5);
  --gamegear-color: #CC0000;
  --gamegear-glow: rgba(204, 0, 0, 0.5);
  --mastersystem-color: #d32f2f;
  --mastersystem-glow: rgba(211, 47, 47, 0.5);
  --atari2600-color: #b5651d;
  --atari2600-glow: rgba(181, 101, 29, 0.5);
  --cs16-color: #ffb400;
  --cs16-glow: rgba(255, 180, 0, 0.5);
  --retrotv-color: #00bfff;
  --retrotv-glow: rgba(0, 191, 255, 0.5);
  --retroflix-color: #ff4fa3;
  --retroflix-glow: rgba(255, 79, 163, 0.5);
}

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

body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 255, 65, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(123, 45, 142, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 100, 255, 0.06) 0%, transparent 50%),
    #020503;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
}

/* ==========================================
   EFEITO CRT SCANLINES (leve, não bloqueia)
   ========================================== */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.07) 2px,
      rgba(0, 0, 0, 0.07) 4px);
  animation: crtFlicker 8s linear infinite;
}

@keyframes crtFlicker {

  0%,
  100% {
    opacity: 1;
  }

  92% {
    opacity: 1;
  }

  93% {
    opacity: 0.97;
  }

  94% {
    opacity: 1;
  }
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(3, 6, 4, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
  padding: 14px 32px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 1px rgba(0, 255, 65, 0.15);
}

/* --- NAVBAR INDEX (centralizada, com branding) --- */
.navbar:not(.games-navbar) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* BRAND BLOCK */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border: 2px solid var(--green-neon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: var(--green-neon);
  letter-spacing: 1px;
  box-shadow: 0 0 14px var(--green-glow), inset 0 0 10px rgba(0, 255, 65, 0.06);
  transition: all 0.3s ease;
  flex-shrink: 0;
  animation: logoPulseNav 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* CRT scanlines no logo */
.brand-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.15) 2px,
      rgba(0, 0, 0, 0.15) 4px);
  pointer-events: none;
  animation: logoScanline 4s linear infinite;
}

@keyframes logoPulseNav {

  0%,
  100% {
    box-shadow: 0 0 14px var(--green-glow), inset 0 0 10px rgba(0, 255, 65, 0.06);
    text-shadow: 0 0 8px var(--green-neon);
  }

  50% {
    box-shadow: 0 0 28px var(--green-glow), 0 0 50px rgba(0, 255, 65, 0.15), inset 0 0 18px rgba(0, 255, 65, 0.12);
    text-shadow: 0 0 16px var(--green-neon);
  }
}

@keyframes logoScanline {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(4px);
  }
}

.brand:hover .brand-logo {
  box-shadow: 0 0 35px var(--green-neon), 0 0 60px rgba(0, 255, 65, 0.2), inset 0 0 22px rgba(0, 255, 65, 0.18);
  animation: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 0 14px var(--green-glow), 0 0 28px rgba(0, 255, 65, 0.18);
  transition: all 0.3s ease;
}

.brand:hover .brand-name {
  color: var(--green-neon);
  text-shadow: 0 0 18px var(--green-neon), 0 0 36px var(--green-glow);
}

.brand-slogan {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--green-neon);
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.75;
}

/* --- NAVBAR GAMES ---
   3 colunas: [voltar] | [CENTRO absoluto] | [spacer]
── */
.games-navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.navbar-spacer {
  min-width: 100px;
}

/* Centro do header de games — centralizado ABSOLUTO na navbar */
.games-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.games-header-brand {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--green-neon);
  text-transform: uppercase;
  opacity: 0.8;
}

.console-header-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--green-glow);
  white-space: nowrap;
  margin: 0;
}

.games-count-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-neon);
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.95;
  white-space: nowrap;
}

/* --- BOTÃO VOLTAR --- */
.btn-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-soft);
  border: 1px solid rgba(0, 255, 65, 0.35);
  color: var(--green-neon);
  padding: 8px 20px 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-back::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: var(--green-neon);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-back:hover {
  background: var(--green-neon);
  color: #030604;
  box-shadow: 0 0 18px var(--green-glow);
  border-color: var(--green-neon);
}

.btn-back:hover::before {
  background-color: #030604;
  transform: translateX(-4px);
}

/* --- BUSCA --- */
.search-box {
  flex-shrink: 0;
  width: 240px;
  position: relative;
}

/* Ícone lupa SVG neon via pseudo-elemento — sem emoji */
.search-box::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 1;
  background-color: var(--text-muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: background-color 0.3s ease;
}

.search-box:focus-within::before {
  background-color: var(--green-neon);
}

.search-box input {
  background: #070c09;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px 9px 36px;
  /* espaço para o ícone à esquerda */
  border-radius: 6px;
  /* retangular com leve arredondamento — mais cyberpunk */
  outline: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  caret-color: var(--green-neon);
}

.search-box input::placeholder {
  color: var(--text-muted);
  opacity: 0.45;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 2px;
}

.search-box input:focus {
  border-color: var(--green-neon);
  box-shadow:
    0 0 0 2px rgba(0, 255, 65, 0.12),
    0 0 16px rgba(0, 255, 65, 0.2);
  background: #070d09;
  color: var(--green-neon);
}

/* ==========================================
   HERO SECTION (Cinematográfico)
   ========================================== */
.hero {
  position: relative;
  padding: 80px 24px 70px;
  text-align: center;
  overflow: hidden;
  min-height: 420px;
}

/* Background animado com gradientes em movimento */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 50%, rgba(123, 45, 142, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(0, 100, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(0, 255, 65, 0.1) 0%, transparent 40%);
  animation: heroGradientShift 12s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroGradientShift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-3%, 2%) scale(1.05);
  }

  100% {
    transform: translate(3%, -2%) scale(1.02);
  }
}

/* Grid de linhas sutis (efeito holográfico) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes gridScroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(60px);
  }
}

/* Partículas decorativas (melhoradas) */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particles span {
  position: absolute;
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  animation: floatParticle 8s infinite ease-in-out;
  opacity: 0;
}

.hero-particles span:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 7s;
  background: #00ff41;
  box-shadow: 0 0 8px #00ff41;
}

.hero-particles span:nth-child(2) {
  left: 25%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 9s;
  background: #7B2D8E;
  box-shadow: 0 0 8px #7B2D8E;
}

.hero-particles span:nth-child(3) {
  left: 45%;
  top: 35%;
  animation-delay: 2s;
  animation-duration: 6s;
  background: #1560BD;
  box-shadow: 0 0 8px #1560BD;
}

.hero-particles span:nth-child(4) {
  left: 70%;
  top: 75%;
  animation-delay: 0.5s;
  animation-duration: 8s;
  background: #00ff41;
  box-shadow: 0 0 8px #00ff41;
}

.hero-particles span:nth-child(5) {
  left: 85%;
  top: 15%;
  animation-delay: 3s;
  animation-duration: 7.5s;
  background: #E4000F;
  box-shadow: 0 0 8px #E4000F;
}

.hero-particles span:nth-child(6) {
  left: 55%;
  top: 85%;
  animation-delay: 1.5s;
  animation-duration: 10s;
  background: #7B2D8E;
  box-shadow: 0 0 8px #7B2D8E;
}

.hero-particles span:nth-child(7) {
  left: 5%;
  top: 50%;
  animation-delay: 4s;
  animation-duration: 6.5s;
  background: #00BFFF;
  box-shadow: 0 0 8px #00BFFF;
}

.hero-particles span:nth-child(8) {
  left: 90%;
  top: 40%;
  animation-delay: 2.5s;
  animation-duration: 9.5s;
  background: #00ff41;
  box-shadow: 0 0 8px #00ff41;
}

.hero-particles span:nth-child(9) {
  left: 38%;
  top: 10%;
  animation-delay: 0.8s;
  animation-duration: 8.5s;
  background: #1560BD;
  box-shadow: 0 0 8px #1560BD;
}

.hero-particles span:nth-child(10) {
  left: 78%;
  top: 55%;
  animation-delay: 3.5s;
  animation-duration: 7s;
  background: #E4000F;
  box-shadow: 0 0 8px #E4000F;
}

.hero-particles span:nth-child(11) {
  left: 15%;
  top: 75%;
  animation-delay: 1.2s;
  animation-duration: 11s;
  background: #00A651;
  box-shadow: 0 0 8px #00A651;
}

.hero-particles span:nth-child(12) {
  left: 62%;
  top: 20%;
  animation-delay: 0.3s;
  animation-duration: 9s;
  background: #FFD700;
  box-shadow: 0 0 8px #FFD700;
}

.hero-particles span:nth-child(13) {
  left: 33%;
  top: 90%;
  animation-delay: 2.8s;
  animation-duration: 7.5s;
  background: #7B2D8E;
  box-shadow: 0 0 8px #7B2D8E;
}

.hero-particles span:nth-child(14) {
  left: 88%;
  top: 65%;
  animation-delay: 4.2s;
  animation-duration: 8s;
  background: #00BFFF;
  box-shadow: 0 0 8px #00BFFF;
}

.hero-particles span:nth-child(15) {
  left: 50%;
  top: 45%;
  animation-delay: 1.8s;
  animation-duration: 10s;
  background: #00ff41;
  box-shadow: 0 0 10px #00ff41;
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0) scale(0.5);
    opacity: 0;
  }

  15% {
    opacity: 0.8;
  }

  50% {
    transform: translateY(-40px) translateX(15px) scale(1);
    opacity: 1;
  }

  85% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) translateX(-10px) scale(0.3);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--green-neon);
  text-transform: uppercase;
  border: 1px solid rgba(0, 255, 65, 0.25);
  padding: 6px 22px;
  border-radius: 30px;
  margin-bottom: 32px;
  background: rgba(0, 255, 65, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroFadeIn 1s ease-out 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: heroFadeIn 1s ease-out 0.4s both;
}

.hero-title-glow {
  position: relative;
  display: inline-block;
  color: var(--green-neon);
  text-shadow:
    0 0 20px rgba(0, 255, 65, 0.8),
    0 0 50px rgba(0, 255, 65, 0.4),
    0 0 100px rgba(0, 255, 65, 0.15);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
  line-height: 1.7;
  animation: heroFadeIn 1s ease-out 0.6s both;
}

.hero-line {
  width: 280px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-neon), transparent);
  margin: 0 auto 10px;
  box-shadow: 0 0 16px var(--green-neon);
  animation: heroFadeIn 1s ease-out 0.8s both;
}

/* Stats (cards glass integrado) */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  background: rgba(10, 22, 14, 0.75);
  border: 1.5px solid rgba(0, 255, 65, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 6px rgba(0, 255, 65, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
  animation: heroFadeIn 1s ease-out 1s both;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(0, 255, 65, 0.18);
  border-radius: 0 !important;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-neon);
  text-shadow: 0 0 18px var(--green-glow);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-stat-divider {
  display: none;
}

/* ==========================================
   SEÇÃO CONSOLES
   ========================================== */
.consoles-section {
  padding: 0 20px 80px;
}

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

.section-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: rgba(0, 255, 65, 0.45);
  text-transform: uppercase;
}

/* ==========================================
   CATEGORIAS DE CONSOLES
   ========================================== */
.category-section {
  margin-bottom: 40px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--green-neon);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--green-glow);
}

.category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.3), transparent);
}

.category-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  background: rgba(0, 255, 65, 0.06);
  border: 1px solid rgba(0, 255, 65, 0.15);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ==========================================
   GRID E CARDS - INDEX (CONSOLES)
   ========================================== */
.grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

/* ═══ Glassmorphism Cards ═══ */
.console-card,
.card {
  background: rgba(8, 14, 10, 0.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Linha neon no topo (temática por console) */
.card-glow-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--console-color, var(--green-neon)), transparent);
  opacity: 0.3;
  transition: opacity 0.4s ease, height 0.4s ease;
}

.console-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, var(--console-glow, rgba(0, 255, 65, 0.06)) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.console-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.console-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--console-color, var(--border-bright));
  background: rgba(12, 20, 15, 0.8);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 40px var(--console-glow, rgba(0, 255, 65, 0.2)),
    0 0 80px var(--console-glow, rgba(0, 255, 65, 0.06)),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.console-card:hover .card-glow-top {
  opacity: 1;
  height: 4px;
}

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

.console-img {
  width: 100%;
  max-width: 160px;
  height: 115px;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0px 8px 20px rgba(0, 0, 0, 0.8)) brightness(0.95);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.console-card:hover .console-img {
  transform: scale(1.38) translateY(-10px);
  filter:
    drop-shadow(0px 16px 35px var(--console-glow, rgba(0, 255, 65, 0.5))) brightness(1.3);
}

.console-info {
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.console-info h2 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.console-card:hover .console-info h2 {
  color: var(--console-color, var(--green-neon));
  text-shadow: 0 0 16px var(--console-glow, var(--green-glow));
}

.console-info p {
  display: inline-block;
  color: var(--console-color, var(--green-neon));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--console-color, rgba(0, 255, 65, 0.25));
  padding: 4px 16px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.console-card:hover .console-info p {
  background: var(--console-color, var(--green-neon));
  color: #000;
  box-shadow: 0 0 16px var(--console-glow, var(--green-glow));
  border-color: var(--console-color, var(--green-neon));
}

/* ═══ Cores Temáticas por Console ═══ */
.console-card.snes {
  --console-color: var(--snes-color);
  --console-glow: var(--snes-glow);
}

.console-card.psx {
  --console-color: var(--psx-color);
  --console-glow: var(--psx-glow);
}

.console-card.n64 {
  --console-color: var(--n64-color);
  --console-glow: var(--n64-glow);
}

.console-card.sega {
  --console-color: var(--sega-color);
  --console-glow: var(--sega-glow);
}

.console-card.gba {
  --console-color: var(--gba-color);
  --console-glow: var(--gba-glow);
}

.console-card.gbc {
  --console-color: var(--gbc-color);
  --console-glow: var(--gbc-glow);
}

.console-card.nes {
  --console-color: var(--nes-color);
  --console-glow: var(--nes-glow);
}

.console-card.arcade {
  --console-color: var(--arcade-color);
  --console-glow: var(--arcade-glow);
}

.console-card.nds {
  --console-color: var(--nds-color);
  --console-glow: var(--nds-glow);
}

.console-card.segacd {
  --console-color: var(--segacd-color);
  --console-glow: var(--segacd-glow);
}

.console-card.gamegear {
  --console-color: var(--gamegear-color);
  --console-glow: var(--gamegear-glow);
}

.console-card.mastersystem {
  --console-color: var(--mastersystem-color);
  --console-glow: var(--mastersystem-glow);
}

.console-card.atari2600 {
  --console-color: var(--atari2600-color);
  --console-glow: var(--atari2600-glow);
}

.console-card.cs16 {
  --console-color: var(--cs16-color);
  --console-glow: var(--cs16-glow);
}

.console-card.retrotv {
  --console-color: var(--retrotv-color);
  --console-glow: var(--retrotv-glow);
}

.console-card.retroflix {
  --console-color: var(--retroflix-color);
  --console-glow: var(--retroflix-glow);
}

/* ==========================================
   GRID E CARDS - GAMES (NOVO — GRADE DE CAPAS)
   Inspiração: Steam / GOG / Nintendo eShop
   Imagem completa, nome embaixo, hover premium
   ========================================== */
.games-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding-top: 24px;
  align-items: start;
}

/* ── Card vertical ── */
.game-card {
  background: #090e0b;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: unset;
  padding: 0;
  gap: 0;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--green-neon);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 255, 65, 0.25),
    0 0 60px rgba(0, 255, 65, 0.08);
}

/* ── Wrapper da imagem — altura fixa, todas iguais ── */
.game-cover-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  /* altura fixa — mesma para todas as capas */
  overflow: hidden;
  background: #0a100d;
  border-radius: 10px 10px 0 0;
}

/* ── Capa — preenche o espaço, centraliza ── */
.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* preenche sem distorcer */
  object-position: center top;
  /* alinha ao topo — mostra a parte importante */
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  border-radius: 0;
  box-shadow: none;
  max-width: unset;
  flex-shrink: unset;
}

.game-card:hover .game-cover-img {
  transform: scale(1.06);
  filter: brightness(1.08);
  box-shadow: none;
}

/* ── Overlay de hover com botão JOGAR ── */
.game-cover-wrap::after {
  content: 'JOGAR ▶';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 255, 65, 0.92) 0%,
      rgba(0, 30, 10, 0.75) 50%,
      transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #000;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 10px 10px 0 0;
}

.game-card:hover .game-cover-wrap::after {
  opacity: 1;
}

/* ── Linha neon no topo do card ── */
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-neon), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
}

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

/* ── Fallback RV quando não há capa ── */
.game-icon {
  width: 100%;
  height: 200px;
  /* mesma altura fixa dos covers */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d1a10, #060c08);
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
  min-width: unset;
  transition: none;
}

.rv-fallback {
  background: linear-gradient(145deg, #0a1a0d, #050c07);
  border: none;
  border-radius: 10px 10px 0 0;
  box-shadow: inset 0 0 30px rgba(0, 255, 65, 0.06);
}

.rv-fallback-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-neon);
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--green-neon), 0 0 40px var(--green-glow);
  opacity: 0.5;
}

.game-card:hover .game-icon {
  transform: none;
}

/* ── Info (nome + subtítulo) — altura fixa para alinhar todos ── */
.game-info {
  flex: 0 0 auto;
  height: 54px;
  /* altura fixa: espaço para nome + subtítulo */
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* centraliza verticalmente */
  gap: 2px;
  background: linear-gradient(180deg, #0b1309 0%, #080d0a 100%);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  text-align: left;
}

.game-info h3 {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.25s ease;
}

.game-card:hover .game-info h3 {
  color: var(--green-neon);
}

/* Subtítulo — sempre reserva espaço, mesmo quando vazio */
.game-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1em;
  /* reserva espaço mesmo sem conteúdo */
}

/* ── Botão JOGAR — removido do HTML, substituído pelo overlay ── */
.play-btn {
  display: none;
}

/* ==========================================
   SEÇÃO CONTINUE JOGANDO / FAVORITOS
   ========================================== */
.user-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 10px;
}

.user-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding: 0 4px;
}

.user-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-section-title .icon {
  font-size: 1rem;
  opacity: 0.8;
}

.user-section-clear {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-section-clear:hover {
  color: #ff4444;
  border-color: rgba(255, 68, 68, 0.3);
  background: rgba(255, 68, 68, 0.05);
}

/* Grid horizontal scrollável para continue/favoritos */
.user-games-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.user-games-row::-webkit-scrollbar {
  display: none;
}

.user-game-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-decoration: none;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(8, 14, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.user-game-card:hover {
  transform: translateY(-4px) scale(1.00);
  border-color: var(--green-neon);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(0, 255, 65, 0.2);
}

.user-game-cover {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.user-game-fallback {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d1a10, #060c08);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green-neon);
  letter-spacing: 2px;
  opacity: 0.4;
}

.user-game-info {
  padding: 8px 10px;
}

.user-game-name {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-game-console {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-neon);
  text-transform: uppercase;
  opacity: 0.7;
}

/* Botão de favorito nos game cards */
.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.fav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.15);
}

.fav-btn .heart {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease, transform 0.2s ease;
}

.fav-btn.active .heart {
  color: #ff3355;
  text-shadow: 0 0 8px rgba(255, 51, 85, 0.6);
}

.fav-btn.active:hover .heart {
  color: #ff5577;
}

/* Empty state para seções vazias */
.user-section-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

/* Filtros na página de jogos */
.games-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(0, 255, 65, 0.3);
}

.filter-btn.active {
  color: #000;
  background: var(--green-neon);
  border-color: var(--green-neon);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* ═══ Busca global na navbar da home ═══ */
.global-search-bar {
  position: sticky;
  top: 73px;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(4, 10, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.25);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
}

/* hero padding-top já compensa navbar + search bar (160px) */

/* Navbar da home com perfil — logo à ESQUERDA, perfil à DIREITA em
   qualquer tamanho de tela (antes só o mobile tinha space-between) */
.navbar:not(.games-navbar).navbar-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Chip do jogador na home: nome ao lado do ícone de perfil */
.home-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.home-user-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--green-glow);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .home-user-name { max-width: 130px; font-size: 0.6rem; letter-spacing: 1px; }
}

.profile-link {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid var(--green-neon);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-neon);
  background: rgba(10, 22, 14, 0.85);
  box-shadow: 0 0 14px var(--green-glow), inset 0 0 10px rgba(0, 255, 65, 0.06);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0.95;
}

.profile-link:hover {
  opacity: 1;
  border-color: var(--green-neon);
  box-shadow: 0 0 25px var(--green-neon), 0 0 45px rgba(0, 255, 65, 0.25), inset 0 0 15px rgba(0, 255, 65, 0.15);
  transform: scale(1.05);
}

.profile-link svg {
  width: 22px;
  height: 22px;
}
.profile-link.has-avatar { background-size: contain; background-position: center; background-repeat: no-repeat; background-color: #090e0b; }
.profile-link.has-avatar svg { display: none; }

.global-search {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.global-search input {
  background: rgba(10, 22, 14, 0.88);
  border: 1.5px solid rgba(0, 255, 65, 0.35);
  color: var(--text);
  padding: 10px 18px 10px 42px;
  border-radius: 12px;
  outline: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5), inset 0 1px 4px rgba(0, 255, 65, 0.08);
}

.global-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.global-search input:hover {
  border-color: rgba(0, 255, 65, 0.65);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.2), inset 0 1px 4px rgba(0, 255, 65, 0.12);
}

.global-search input:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.15), 0 0 22px rgba(0, 255, 65, 0.25);
  background: rgba(12, 28, 17, 0.95);
  color: var(--green-neon);
}

.global-search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
  background-color: var(--green-neon);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: background-color 0.3s ease;
}

.global-search:focus-within::before {
  background-color: var(--green-neon);
}

/* Resultados da busca global */
.global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(8, 14, 10, 0.95);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 350px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.global-search-results.visible {
  display: block;
}

.gsr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.gsr-item:hover {
  background: rgba(0, 255, 65, 0.06);
}

.gsr-item-console {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green-neon);
  text-transform: uppercase;
  background: rgba(0, 255, 65, 0.08);
  border: 1px solid rgba(0, 255, 65, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 50px;
  text-align: center;
}

.gsr-item-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsr-item-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.gsr-empty {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ═══ Games Toolbar (busca + filtros sticky abaixo da navbar) ═══ */
.games-toolbar {
  position: sticky;
  top: 73px;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(4, 10, 6, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.25);
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7);
  width: 100%;
}

.games-toolbar .search-box {
  position: relative;
  flex: 1;
  max-width: 450px;
  width: 100%;
  display: flex;
  align-items: center;
}

.games-toolbar .search-box::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
  background-color: var(--green-neon);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-4.35-4.35M17 11A6 6 0 1 1 5 11a6 6 0 0 1 12 0z' stroke='white' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Padroniza busca dos games com glow da index */
.games-toolbar .search-box input {
  background: rgba(10, 22, 14, 0.88);
  border: 1.5px solid rgba(0, 255, 65, 0.35);
  color: var(--text);
  padding: 10px 18px 10px 42px;
  border-radius: 12px;
  outline: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.5), inset 0 1px 4px rgba(0, 255, 65, 0.08);
}

.games-toolbar .search-box input:hover {
  border-color: rgba(0, 255, 65, 0.65);
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.2), inset 0 1px 4px rgba(0, 255, 65, 0.12);
}

.games-toolbar .search-box input:focus {
  border-color: var(--green-neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.15), 0 0 22px rgba(0, 255, 65, 0.25);
  background: rgba(12, 28, 17, 0.95);
  color: var(--green-neon);
}

/* Badge na toolbar */
.toolbar-badge {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filtros à direita */
.games-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex: 1;
}

.games-filters button[data-sort="fav"],
.filter-btn.filter-fav-btn {
  margin-left: auto !important;
}

/* games-grid padding normal */
.games-grid {
  padding-top: 36px !important;
  margin-top: 16px;
}

/* ═══ Grid de jogos com margem ═══ */
.grid-container.games-grid {
  padding-left: 24px;
  padding-right: 24px;
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-top: 50px;
  letter-spacing: 1px;
}

/* ==========================================
   FOOTER
   ========================================== */
.rv-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  margin-top: 20px;
}

.rv-footer--mini {
  padding: 20px 24px;
  margin-top: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 255, 65, 0.4);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(0, 255, 65, 0.5);
  margin-bottom: 10px;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

/* ── TABLET ── */
@media (max-width: 768px) {
  .hero {
    padding: 50px 20px 44px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .hero-stats {
    gap: 0;
    max-width: 100%;
    border-radius: 14px;
    flex-wrap: nowrap;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }

  /* Grid de jogos tablet — 4 colunas */
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .game-cover-wrap,
  .game-icon {
    height: 160px;
  }

  /* Navbar games: compacta o centro */
  .games-header-brand {
    font-size: 0.52rem;
    letter-spacing: 3px;
  }

  .console-header-title {
    font-size: 1.05rem;
  }

  .games-count-badge {
    font-size: 0.55rem;
    letter-spacing: 1px;
  }
}

/* ── MOBILE (≤ 600px) ── */
@media (max-width: 600px) {

  /* ── Navbar base ── */
  .navbar {
    padding: 10px 14px;
  }

  /* ── Navbar Index (home) ── */
  .navbar:not(.games-navbar) {
    justify-content: space-between;
  }

  .brand-logo,
  .profile-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .profile-link svg {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }

  .brand-slogan {
    font-size: 0.55rem;
    letter-spacing: 3px;
  }

  /* ── Navbar Games (mobile) ── */
  .games-navbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  .navbar-spacer {
    display: none;
  }

  .games-header-center {
    align-items: flex-end;
    text-align: right;
  }

  .games-header-brand {
    font-size: 0.5rem;
    letter-spacing: 3px;
  }

  .console-header-title {
    font-size: 0.92rem;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .games-count-badge {
    font-size: 0.52rem;
    letter-spacing: 1px;
  }

  /* Toolbar (busca + filtros) */
  .games-toolbar {
    padding: 12px 14px;
    top: 60px;
    flex-direction: column;
    gap: 12px;
  }

  .games-toolbar .search-box {
    max-width: 100%;
    width: 100%;
  }

  .games-toolbar .search-box input {
    font-size: 0.7rem;
    padding: 10px 16px 10px 42px;
    letter-spacing: 1.5px;
  }

  .games-filters {
    width: 100%;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .games-filters::-webkit-scrollbar {
    display: none;
  }

  /* ── Grid de jogos — 3 colunas no mobile ── */
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 36px !important;
    margin-top: 16px;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Altura menor no mobile */
  .game-cover-wrap,
  .game-icon {
    height: 130px;
  }

  .game-info {
    height: 46px;
    padding: 6px 8px;
  }

  .game-info h3 {
    font-size: 0.72rem;
  }

  .game-subtitle {
    font-size: 0.60rem;
  }

  /* ── Hero ── */
  .hero {
    padding: 32px 16px 28px;
  }

  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 4px 14px;
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-particles {
    display: none;
  }

  /* ── Busca global e stats na home (mobile) ── */
  .global-search-bar {
    top: 60px;
    padding: 10px 14px;
    background: rgba(6, 14, 9, 0.96);
    border-bottom: 1px solid rgba(0, 255, 65, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  }

  .global-search {
    max-width: 100%;
    width: 100%;
  }

  .global-search input {
    padding: 10px 16px 10px 42px;
    font-size: 0.72rem;
    letter-spacing: 1px;
    border-radius: 10px;
  }

  .hero-stats {
    gap: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    flex-wrap: nowrap;
  }

  .hero-stat {
    padding: 14px 8px;
    gap: 4px;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }

  /* ── Grid consoles ── */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 0 30px;
  }

  .console-card {
    padding: 22px 14px 18px;
  }

  .console-img {
    height: 80px;
    margin-bottom: 14px;
  }

  .console-info h2 {
    font-size: 1rem;
  }

  .console-info p {
    font-size: 0.62rem;
    letter-spacing: 1px;
    padding: 2px 10px;
  }
}

/* ── MOBILE XS (≤ 380px) ── */
@media (max-width: 380px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .console-img {
    height: 70px;
  }

  .console-info h2 {
    font-size: 0.88rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .game-cover-wrap,
  .game-icon {
    height: 110px;
  }

  .game-info {
    height: 42px;
    padding: 5px 6px;
  }

  .game-info h3 {
    font-size: 0.62rem;
  }

  .game-subtitle {
    font-size: 0.55rem;
  }
}
/* Iconografia consistente: substitui emojis por SVGs do sistema visual. */
.rv-inline-icon {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.16em;
  object-fit: contain;
  filter: drop-shadow(0 0 3px rgba(0,255,65,.58));
}
.home-user-cloud { width: .95em; height: .95em; margin-right: 4px; }
.achievements-title .rv-inline-icon { width: 1.18em; height: 1.18em; vertical-align: -0.22em; margin-right: 5px; }
.user-section-title .rv-inline-icon { width: 1em; height: 1em; margin-right: 4px; }
