/* ══════════════════════════════════════════════════════════
   GAMEPORTAL — Main Stylesheet
   Themes: Dark (default) + Light
   Fonts: Orbitron (display) + Nunito (body)
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Nunito:wght@400;600;700;800&display=swap');

/* ── DARK THEME (default) ──────────────────────────────── */
:root {
  --bg:            #080b12;
  --bg2:           #0d1120;
  --surface:       #111827;
  --surface2:      #1a2235;
  --border:        #1e2d45;
  --border2:       #253450;

  --neon:          #00f5ff;
  --neon2:         #ff2d78;
  --neon3:         #aaff00;
  --gold:          #ffd700;
  --purple:        #8b5cf6;

  --text:          #e2e8f4;
  --text-muted:    #6b7a99;
  --text-dim:      #3d4f6e;
  --text-on-neon:  #000000;

  --card-bg:       #0f1929;
  --card-border:   #1c2d47;
  --card-hover:    #152038;

  --header-glass:  rgba(8,11,18,.9);
  --overlay-dark:  rgba(0,0,0,.55);
  --overlay-grad:  rgba(0,0,0,.85);
  --img-filter:    brightness(.35) blur(1px);
  --tag-bg:        rgba(0,245,255,.10);
  --cat-hover-bg:  rgba(0,245,255,.04);
  --focus-ring:    rgba(0,245,255,.12);
  --flash-ok-bg:   rgba(0,245,255,.08);
  --flash-ok-bd:   rgba(0,245,255,.20);
  --flash-er-bg:   rgba(255,45,120,.08);
  --flash-er-bd:   rgba(255,45,120,.20);

  --header-h:      70px;
  --radius:        10px;
  --radius-lg:     16px;
  --font:          'Nunito', sans-serif;
  --font-display:  'Orbitron', monospace;

  --glow-neon:     0 0 20px rgba(0,245,255,.35), 0 0 60px rgba(0,245,255,.12);
  --glow-pink:     0 0 20px rgba(255,45,120,.35), 0 0 60px rgba(255,45,120,.12);
  --glow-card:     0 8px 32px rgba(0,0,0,.50), 0 1px 0 rgba(255,255,255,.03) inset;

  --grid-opacity:  .18;
  --radial-bg:     radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,245,255,.08), transparent 70%);
}

/* ── LIGHT THEME ───────────────────────────────────────── */
html[data-theme="light"] {
  --bg:            #f0f4fa;
  --bg2:           #e5eaf5;
  --surface:       #ffffff;
  --surface2:      #edf1fb;
  --border:        #cdd5e8;
  --border2:       #b8c3dc;

  --neon:          #0077ee;
  --neon2:         #e8005a;
  --neon3:         #3dbe00;
  --gold:          #c89400;
  --purple:        #6d3fd6;

  --text:          #0f1b35;
  --text-muted:    #5a6a8a;
  --text-dim:      #9aaac8;
  --text-on-neon:  #ffffff;

  --card-bg:       #ffffff;
  --card-border:   #d0d9ee;
  --card-hover:    #eef2fc;

  --header-glass:  rgba(240,244,250,.94);
  --overlay-dark:  rgba(0,0,0,.40);
  --overlay-grad:  rgba(0,0,0,.70);
  --img-filter:    brightness(.50) blur(1px);
  --tag-bg:        rgba(0,119,238,.10);
  --cat-hover-bg:  rgba(0,119,238,.05);
  --focus-ring:    rgba(0,119,238,.14);
  --flash-ok-bg:   rgba(0,119,238,.08);
  --flash-ok-bd:   rgba(0,119,238,.22);
  --flash-er-bg:   rgba(232,0,90,.08);
  --flash-er-bd:   rgba(232,0,90,.22);

  --glow-neon:     0 0 14px rgba(0,119,238,.25), 0 0 40px rgba(0,119,238,.10);
  --glow-pink:     0 0 14px rgba(232,0,90,.22),  0 0 40px rgba(232,0,90,.08);
  --glow-card:     0 4px 18px rgba(0,0,0,.08),   0 1px 0 rgba(255,255,255,.90) inset;

  --grid-opacity:  .07;
  --radial-bg:     radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,119,238,.06), transparent 70%);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ── BACKGROUND GRID ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: var(--grid-opacity);
  pointer-events: none;
  transition: opacity .25s ease;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: var(--radial-bg);
  pointer-events: none;
  transition: background .25s ease;
}

/* ── HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: var(--header-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: background .25s ease, border-color .25s ease;
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  width: 100%; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 900;
  letter-spacing: 2px;
  color: var(--neon);
  text-shadow: var(--glow-neon);
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  transition: color .25s, text-shadow .25s;
}
.site-logo .logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px var(--neon));
  transition: filter .25s;
}

/* Search */
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 30px;
  color: var(--text);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .25s, color .25s;
}
.header-search input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search .search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: .9rem; pointer-events: none;
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-nav a {
  padding: 7px 14px;
  font-size: .83rem; font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.header-nav a:hover { color: var(--text); background: var(--surface); }
.header-nav .btn-login {
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
}
.header-nav .btn-register {
  background: var(--neon);
  color: var(--text-on-neon);
  font-weight: 800;
  box-shadow: var(--glow-neon);
}
.header-nav .btn-register:hover { opacity: .88; }
.mob-menu-toggle {
  display: none;
  font-size: 1.3rem; color: var(--text);
  padding: 6px; border-radius: 7px;
  background: var(--surface);
}

/* ── THEME TOGGLE ──────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .2s, box-shadow .2s, background .25s;
}
.theme-toggle:hover { border-color: var(--neon); box-shadow: var(--glow-neon); }

/* ── LAYOUT ────────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  padding: 28px 0 48px;
  align-items: start;
}

/* ── SECTION HEADINGS ──────────────────────────────────── */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: .9rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 3px; height: 18px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: var(--glow-neon);
}
.section-title .tag {
  font-size: .65rem; padding: 2px 8px;
  background: var(--tag-bg);
  color: var(--neon); border-radius: 20px;
  font-family: var(--font); font-weight: 700;
}
.see-all {
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border2);
  padding: 5px 14px; border-radius: 20px;
  transition: color .18s, border-color .18s;
}
.see-all:hover { color: var(--neon); border-color: var(--neon); }

/* ── GAME CARDS ────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.games-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s, background .25s;
  cursor: pointer;
  box-shadow: var(--glow-card);
}
.game-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: var(--glow-neon), var(--glow-card);
}
.game-card-thumb {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  background: var(--surface2);
}
.game-card-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.game-card:hover .game-card-thumb img { transform: scale(1.08); }
.game-card-thumb .play-overlay {
  position: absolute; inset: 0;
  background: var(--overlay-dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s;
}
.game-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 44px; height: 44px;
  background: var(--neon);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--glow-neon);
  transform: scale(.8); transition: transform .22s;
  color: var(--text-on-neon);
}
.game-card:hover .play-btn { transform: scale(1); }
.game-card-thumb .badge-new {
  position: absolute; top: 8px; left: 8px;
  background: var(--neon3); color: #000;
  font-size: .6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  font-family: var(--font-display); letter-spacing: 1px;
}
.game-card-thumb .badge-hot {
  position: absolute; top: 8px; left: 8px;
  background: var(--neon2); color: #fff;
  font-size: .6rem; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
  font-family: var(--font-display); letter-spacing: 1px;
}
.game-card-info { padding: 10px 12px; }
.game-card-title {
  font-size: .85rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); margin-bottom: 4px;
}
.game-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; color: var(--text-muted);
}
.game-card-plays { display: flex; align-items: center; gap: 4px; }
.game-card-rating { color: var(--gold); }

/* ── FEATURED SLIDER ───────────────────────────────────── */
.featured-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border2);
  margin-bottom: 28px;
  height: 300px;
}
.featured-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  display: flex;
}
.featured-slide.active { opacity: 1; }
.featured-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: var(--img-filter);
  transition: filter .25s;
}
.featured-slide-content {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end;
  padding: 28px;
  background: linear-gradient(to top, var(--overlay-grad) 0%, transparent 60%);
  width: 100%;
}
.featured-thumb {
  width: 120px; height: 90px;
  object-fit: cover; border-radius: 10px;
  border: 2px solid var(--neon);
  box-shadow: var(--glow-neon);
  flex-shrink: 0; margin-right: 18px;
}
.featured-info .cat-tag {
  font-size: .65rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--neon);
  font-family: var(--font-display);
  margin-bottom: 6px;
}
.featured-info h2 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  margin-bottom: 8px;
  color: #fff; /* intentional — always on dark overlay */
}
.featured-info .play-now {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--neon); color: var(--text-on-neon);
  font-weight: 800; font-size: .82rem;
  padding: 8px 18px; border-radius: 20px;
  box-shadow: var(--glow-neon);
  transition: opacity .18s, transform .18s;
}
.featured-info .play-now:hover { opacity: .88; transform: scale(1.04); }
.slider-dots {
  position: absolute; bottom: 14px; right: 20px;
  display: flex; gap: 6px; z-index: 10;
}
.slider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer; transition: all .2s;
}
.slider-dot.active { background: var(--neon); width: 18px; border-radius: 3px; }

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background .25s, border-color .25s;
}
.widget-title {
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--neon);
  display: flex; align-items: center; gap: 8px;
}
.widget-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--neon); border-radius: 2px;
}
.cat-list { padding: 8px 0; }
.cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px;
  font-size: .85rem; font-weight: 600;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.cat-item:hover {
  color: var(--neon);
  border-left-color: var(--neon);
  background: var(--cat-hover-bg);
}
.cat-item .cat-count {
  font-size: .7rem; font-family: var(--font-display);
  background: var(--surface2);
  padding: 2px 8px; border-radius: 10px;
  color: var(--text-dim);
}
.top-game-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  transition: background .18s; cursor: pointer;
}
.top-game-item:last-child { border-bottom: none; }
.top-game-item:hover { background: var(--card-hover); }
.top-rank {
  font-family: var(--font-display); font-size: .7rem;
  font-weight: 900; color: var(--text-dim);
  width: 18px; text-align: center; flex-shrink: 0;
}
.top-rank.gold   { color: var(--gold); }
.top-rank.silver { color: #909090; }
.top-rank.bronze { color: #b06030; }
.top-thumb {
  width: 44px; height: 33px;
  object-fit: cover; border-radius: 6px;
  background: var(--surface2); flex-shrink: 0;
}
.top-info { flex: 1; overflow: hidden; }
.top-title {
  font-size: .82rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-plays { font-size: .7rem; color: var(--text-muted); }
.ad-widget { padding: 14px; }
.ad-widget img { border-radius: 8px; width: 100%; }

/* ── CATEGORY TABS ─────────────────────────────────────── */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-tab {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: .8rem; font-weight: 700;
  color: var(--text-muted);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--text-on-neon);
  box-shadow: var(--glow-neon);
}

/* ── GAME PAGE ─────────────────────────────────────────── */
.game-viewport {
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--glow-card);
  position: relative;
}
.game-viewport iframe { display: block; width: 100%; border: none; }
.game-meta-bar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px; margin-bottom: 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  transition: background .25s, border-color .25s;
}
.game-title-main { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; }
.game-actions { display: flex; gap: 8px; align-items: center; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  font-size: .8rem; font-weight: 700;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text-muted);
  transition: color .18s, border-color .18s, background .25s; cursor: pointer;
}
.action-btn:hover { color: var(--text); border-color: var(--neon); }
.action-btn.liked  { color: var(--neon2); border-color: var(--neon2); }

.game-desc {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 20px;
  transition: background .25s, border-color .25s;
}
.game-desc h3 {
  font-family: var(--font-display); font-size: .8rem;
  letter-spacing: 2px; color: var(--neon); margin-bottom: 12px;
}
.game-desc p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

.comments-section {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px;
  transition: background .25s, border-color .25s;
}
.comment-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--neon), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #000;
}
.comment-body .meta {
  font-size: .75rem; color: var(--text-muted); margin-bottom: 5px;
  display: flex; gap: 10px; align-items: center;
}
.comment-body .meta strong { color: var(--text); font-size: .85rem; }
.comment-body p { font-size: .88rem; color: var(--text-muted); }
.comment-form { margin-top: 20px; }
.comment-form .star-picker { display: flex; gap: 4px; margin-bottom: 12px; }
.comment-form .star-picker span {
  font-size: 1.4rem; cursor: pointer; color: var(--text-dim); transition: color .15s;
}
.comment-form .star-picker span.on { color: var(--gold); }

/* ── FORMS ─────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .5px; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px; color: var(--text);
  font-size: .9rem; outline: none;
  transition: border-color .18s, box-shadow .18s, background .25s, color .25s;
}
.form-control:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* ── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 8px;
  font-weight: 800; font-size: .88rem;
  transition: opacity .18s, transform .18s; cursor: pointer; border: none;
}
.btn-neon { background: var(--neon); color: var(--text-on-neon); box-shadow: var(--glow-neon); }
.btn-neon:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--neon); color: var(--neon); }
.btn-pink { background: var(--neon2); color: #fff; box-shadow: var(--glow-pink); }

/* ── PAGINATION ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.page-link {
  padding: 7px 14px; border-radius: 8px;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text-muted); transition: all .15s;
}
.page-link:hover, .page-link.active {
  background: var(--neon); border-color: var(--neon);
  color: var(--text-on-neon); box-shadow: var(--glow-neon);
}

/* ── BREADCRUMB ────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 18px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb .sep { color: var(--text-dim); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ── STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 16px 22px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); margin-bottom: 28px;
  transition: background .25s, border-color .25s;
}
.stat-item { text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: var(--neon); }
.stat-lbl { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── AUTH ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-box { width: 100%; max-width: 420px; }
.auth-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  text-align: center; margin-bottom: 6px;
  color: var(--neon); text-shadow: var(--glow-neon);
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 28px; }
.auth-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: background .25s, border-color .25s;
}
.auth-footer { text-align: center; margin-top: 18px; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--neon); font-weight: 700; }

/* ── FLASH MESSAGES ────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius);
  margin-bottom: 18px; font-size: .9rem;
}
.flash-success { background: var(--flash-ok-bg); border: 1px solid var(--flash-ok-bd); color: var(--neon); }
.flash-error   { background: var(--flash-er-bg); border: 1px solid var(--flash-er-bd); color: var(--neon2); }

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 60px;
  transition: background .25s ease, border-color .25s ease;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-display); font-size: .7rem; letter-spacing: 2px; color: var(--neon); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-dim); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--neon); }

/* ── SEARCH PAGE ───────────────────────────────────────── */
.search-hero { padding: 36px 0 24px; text-align: center; }
.search-hero h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; margin-bottom: 18px; color: var(--text); }
.search-hero .big-search { max-width: 560px; margin: 0 auto; position: relative; }
.search-hero .big-search input {
  width: 100%; padding: 14px 60px 14px 22px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 40px; color: var(--text); font-size: 1rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-hero .big-search input:focus { border-color: var(--neon); box-shadow: var(--glow-neon); }
.search-hero .big-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--neon); color: var(--text-on-neon);
  border-radius: 30px; padding: 8px 20px; font-weight: 800; font-size: .85rem;
}
.search-result-count { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.search-result-count strong { color: var(--neon); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .4s ease both; }
.fade-in-delay-1 { animation-delay: .1s; }
.fade-in-delay-2 { animation-delay: .2s; }
.fade-in-delay-3 { animation-delay: .3s; }

@keyframes pulse-neon {
  0%, 100% { box-shadow: var(--glow-neon); }
  50%       { box-shadow: var(--glow-neon), 0 0 60px var(--neon); }
}
.pulse-neon { animation: pulse-neon 2.5s ease-in-out infinite; }

/* ── SKELETON LOADER ───────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── NO RESULTS ────────────────────────────────────────── */
.no-results { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.no-results .icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 2px; color: var(--text); margin-bottom: 8px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .mob-menu-toggle { display: flex; }
  .header-nav {
    display: none; position: absolute;
    top: var(--header-h); right: 0; left: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 20px; gap: 4px;
  }
  .header-nav.open { display: flex; }
  .featured-slider { height: 220px; }
  .featured-thumb { width: 80px; height: 60px; }
  .featured-info h2 { font-size: 1rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .stats-bar { gap: 14px; }
  .game-meta-bar { flex-direction: column; align-items: flex-start; }
}