/* ============================================================
   RETROVAULT — style.css
   Dark Neon Retro Aesthetic
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  --bg:        #080c14;
  --bg2:       #0d1220;
  --bg3:       #111827;
  --card:      #0f1623;
  --card2:     #141d2b;
  --border:    rgba(255,255,255,.07);
  --border2:   rgba(255,255,255,.12);

  --neon:      #00f5c8;
  --neon2:     #ff2d6b;
  --neon3:     #7b5cff;
  --neon-dim:  rgba(0,245,200,.15);
  --accent:    #e94560;

  --text:      #e8ecf0;
  --text2:     #8899aa;
  --text3:     #4a5568;

  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'DM Sans', sans-serif;

  --r:   8px;
  --r2:  16px;
  --shadow: 0 4px 24px rgba(0,0,0,.5);
  --glow: 0 0 20px rgba(0,245,200,.3);

  --trans: .2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--neon); color: #000; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--neon3); border-radius: 3px; }

/* ---- UTILITY ---- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header { position: relative; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  height: 64px;
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 20px;
  color: var(--neon);
  filter: drop-shadow(0 0 6px var(--neon));
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}
.logo-text em {
  font-style: normal;
  color: var(--neon);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: .5px;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--neon); }

.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 100px;
  padding: 8px 40px 8px 16px;
  width: 240px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--trans), width var(--trans);
  outline: none;
}
.nav-search::placeholder { color: var(--text3); }
.nav-search:focus {
  border-color: var(--neon);
  width: 300px;
  box-shadow: 0 0 0 2px var(--neon-dim);
}
.search-icon {
  position: absolute;
  right: 14px;
  color: var(--text3);
  font-size: 18px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--trans);
  border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--card2); }
.search-item-cover {
  width: 36px; height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg2);
  flex-shrink: 0;
}
.search-item-info { min-width: 0; }
.search-item-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-meta { font-size: 11px; color: var(--text2); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,200,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,200,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPan 30s linear infinite;
}
@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0,0,0,.15) 3px,
    rgba(0,0,0,.15) 4px
  );
  pointer-events: none;
}

/* radial glow vignette */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,245,200,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--neon);
  border: 1px solid rgba(0,245,200,.3);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-family: var(--font-display);
  line-height: .92;
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: fadeUp .6s ease .1s both;
}
.hero-title .line1 {
  display: block;
  font-size: clamp(48px, 7vw, 96px);
  color: var(--text2);
}
.hero-title .line2 {
  display: block;
  font-size: clamp(100px, 18vw, 220px);
  color: var(--neon);
  text-shadow: 0 0 40px rgba(0,245,200,.5), 0 0 80px rgba(0,245,200,.2);
  line-height: .85;
}
.hero-title .line3 {
  display: block;
  font-size: clamp(36px, 6vw, 80px);
  color: var(--text);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text2);
  letter-spacing: 2px;
  margin-bottom: 40px;
  animation: fadeUp .6s ease .2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeUp .6s ease .3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 14px 32px;
  border-radius: 100px;
  transition: transform var(--trans), box-shadow var(--trans);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,245,200,.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: border-color var(--trans), color var(--trans);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  animation: fadeUp .6s ease .4s both;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--neon);
  letter-spacing: 2px;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  margin-top: 4px;
}

/* MARQUEE */
.hero-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  border-top: 1px solid var(--border);
  background: rgba(13,18,32,.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 3;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 1px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item { padding: 0 32px; }
.marquee-item span { color: var(--neon); }

/* ============================================================
   PLATFORM PILLS
   ============================================================ */
.platforms-bar {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(8,12,20,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.platform-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.platform-pills::-webkit-scrollbar { display: none; }

.pill {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text2);
  background: transparent;
  transition: all var(--trans);
  white-space: nowrap;
}
.pill:hover { border-color: var(--neon); color: var(--neon); }
.pill.active {
  background: var(--neon);
  border-color: var(--neon);
  color: #000;
  box-shadow: 0 0 12px rgba(0,245,200,.3);
}

/* ============================================================
   LAYOUT SPLIT
   ============================================================ */
.main-section { padding: 48px 0 80px; }

.layout-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* SIDEBAR */
.sidebar { position: sticky; top: 132px; }

.sidebar-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
  margin-bottom: 12px;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 14px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background var(--trans), color var(--trans);
  user-select: none;
}
.filter-check:hover { background: var(--card2); color: var(--text); }
.filter-check input { display: none; }
.filter-check-box {
  width: 16px; height: 16px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  transition: all var(--trans);
}
.filter-check.checked .filter-check-box {
  background: var(--neon);
  border-color: var(--neon);
  color: #000;
}
.filter-check-count {
  margin-left: auto;
  font-size: 10px;
  color: var(--text3);
  font-family: var(--font-mono);
}

.select-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899aa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--trans);
}
.select-input:focus { border-color: var(--neon); }

.btn-reset {
  width: 100%;
  padding: 10px;
  border-radius: var(--r);
  border: 1px solid var(--border2);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text2);
  letter-spacing: 1px;
  transition: all var(--trans);
}
.btn-reset:hover { border-color: var(--neon2); color: var(--neon2); }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 1px;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  color: var(--text3);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.view-btn.active { border-color: var(--neon); color: var(--neon); background: var(--neon-dim); }
.view-btn:hover { border-color: var(--border2); color: var(--text); }

/* ============================================================
   GAME CARDS — GRID VIEW
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  animation: fadeUp .4s ease both;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,245,200,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(0,245,200,.1);
}

.card-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bg2);
  overflow: hidden;
}
.card-cover {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.game-card:hover .card-cover { transform: scale(1.04); }
.card-cover-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg2) 0%, var(--card2) 100%);
}
.card-cover-placeholder .platform-icon { font-size: 32px; }
.card-cover-placeholder .platform-text {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text3);
  letter-spacing: 1px;
}

.card-platform-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border2);
  color: var(--neon);
  text-transform: uppercase;
}

.card-rating {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  padding: 3px 7px;
  border-radius: 100px;
  color: #fbbf24;
}

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}
.game-card:hover .card-hover-overlay { opacity: 1; }
.card-quick-btn {
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 100px;
  transform: translateY(8px);
  transition: transform var(--trans);
}
.game-card:hover .card-quick-btn { transform: translateY(0); }

.card-body {
  padding: 12px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
}
.card-downloads {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-downloads-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--neon);
  display: inline-block;
}

/* SKELETON */
.skeleton-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  aspect-ratio: 3/5;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 50%, transparent 100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ============================================================
   LIST VIEW
   ============================================================ */
.games-grid.list-view {
  grid-template-columns: 1fr;
  gap: 8px;
}
.games-grid.list-view .game-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 16px;
}
.games-grid.list-view .card-cover-wrap {
  aspect-ratio: 1;
  border-radius: 8px;
  height: 60px;
  flex-shrink: 0;
}
.games-grid.list-view .card-platform-badge { display: none; }
.games-grid.list-view .card-hover-overlay { display: none; }
.games-grid.list-view .card-rating { position: static; background: none; backdrop-filter: none; padding: 0; }
.games-grid.list-view .card-body { padding: 12px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.games-grid.list-view .card-downloads { margin: 0; }

.list-action {
  display: none;
  padding: 12px;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.games-grid.list-view .list-action {
  display: flex;
}
.btn-dl {
  background: var(--neon);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: box-shadow var(--trans);
}
.btn-dl:hover { box-shadow: 0 0 14px rgba(0,245,200,.4); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.page-btn:hover { border-color: var(--neon); color: var(--neon); }
.page-btn.active { background: var(--neon); border-color: var(--neon); color: #000; font-weight: 700; }
.page-btn.dots { border: none; cursor: default; }
.page-btn.dots:hover { border: none; color: var(--text2); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: sticky;
  top: 0; right: 0;
  float: right;
  margin: 16px 16px -40px 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--trans);
}
.modal-close:hover { background: var(--neon2); border-color: var(--neon2); color: #fff; }

.modal-inner {
  padding: 32px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.modal-cover {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg2);
}
.modal-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.modal-cover-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 48px;
}

.modal-meta { display: flex; flex-direction: column; gap: 12px; }

.modal-platform {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--neon);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1;
  color: var(--text);
}

.modal-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border2);
  color: var(--text2);
  font-family: var(--font-mono);
  letter-spacing: .5px;
}
.badge.neon { border-color: rgba(0,245,200,.4); color: var(--neon); }

.modal-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--r2);
  border: 1px solid var(--border);
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); font-family: var(--font-mono); }
.info-value { font-size: 14px; font-weight: 600; }

.modal-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}
.star {
  font-size: 22px;
  cursor: pointer;
  color: var(--border2);
  transition: color var(--trans), transform var(--trans);
}
.star.filled, .star:hover { color: #fbbf24; transform: scale(1.1); }
.rating-text {
  font-size: 13px;
  color: var(--text3);
  font-family: var(--font-mono);
  margin-left: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-download {
  flex: 1;
  background: var(--neon);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 16px;
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--trans), box-shadow var(--trans);
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,245,200,.4);
}

.btn-share {
  width: 52px; height: 52px;
  border-radius: var(--r2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.btn-share:hover { border-color: var(--neon3); color: var(--neon3); }

.modal-related { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.modal-related-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--trans), border-color var(--trans);
}
.related-card:hover { transform: translateY(-2px); border-color: rgba(0,245,200,.3); }
.related-cover {
  aspect-ratio: 3/4;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-title {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--card2);
  border: 1px solid var(--neon);
  border-radius: var(--r2);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow), 0 0 20px rgba(0,245,200,.2);
  z-index: 9999;
  animation: toastIn .3s ease;
  max-width: 320px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { font-size: 24px; }
.footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--neon);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-links a, .footer-links > div a {
  display: block;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 8px;
  transition: color var(--trans);
}
.footer-links a:hover, .footer-links > div a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  font-family: var(--font-mono);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .btn-reset { grid-column: span 2; }
  .modal-grid { grid-template-columns: 180px 1fr; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search-wrapper { display: none; }
  .hamburger { display: flex; }

  .hero-title .line2 { font-size: clamp(80px, 24vw, 160px); }

  .hero-stats { gap: 24px; }
  .stat-num { font-size: 28px; }

  .hero-cta { flex-direction: column; align-items: center; }

  .sidebar { grid-template-columns: 1fr; }
  .btn-reset { grid-column: span 1; }

  .games-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-grid { grid-template-columns: 1fr; }
  .modal-cover { max-width: 160px; margin: 0 auto; }

  .footer-top { grid-template-columns: 1fr; }

  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .modal-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 16px; gap: 16px; }
  .container { padding: 0 16px; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 100px 16px 60px; }
}

/* ============================================================
   EMULATOR
   ============================================================ */

/* Botão Jogar no modal */
.btn-play {
  flex: 1;
  background: linear-gradient(135deg, #7b5cff, #00f5c8);
  color: #000;
  font-weight: 800;
  font-size: 15px;
  padding: 16px;
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
  letter-spacing: .5px;
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123,92,255,.5);
}

/* Download vira secundário quando tem botão play */
.btn-download-secondary {
  flex: 0 0 auto;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  font-size: 13px;
  padding: 16px 20px;
}
.btn-download-secondary:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: none;
  transform: none;
}

/* Botão ▶ flutuante no card */
.card-play-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b5cff, #00f5c8);
  color: #000;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transform: translateY(6px);
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
  z-index: 2;
}
.game-card:hover .card-play-btn {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(123,92,255,.6);
}

/* Overlay do emulador — tela cheia */
#emulatorOverlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  animation: fadeIn .2s ease;
}

.emu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.emu-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

.emu-platform {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 2px;
  margin-left: 12px;
  background: var(--neon-dim);
  border: 1px solid rgba(0,245,200,.3);
  padding: 2px 10px;
  border-radius: 100px;
  vertical-align: middle;
}

.emu-controls {
  display: flex;
  gap: 8px;
}

.emu-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.emu-btn:hover { border-color: var(--neon); color: var(--neon); }
.emu-close:hover { border-color: var(--neon2); color: var(--neon2); }

.emu-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

#emulator-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* EmulatorJS injeta canvas aqui — garante que ocupe tudo */
#emulator-container canvas,
#emulator-container video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

#emu-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #000;
  z-index: 2;
}

.emu-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border2);
  border-top-color: var(--neon);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.emu-loading-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--neon);
}

.emu-loading-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
}

.emu-footer {
  padding: 8px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .5px;
  text-align: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .emu-footer { display: none; }
  .emu-title { font-size: 14px; }
}