/* ══════════════════════════════════════════════════════════
   GAMEPORTAL — Reskin: Brutalist Editorial
   Theme   : Deep Forest · Amber Gold · Cream Parchment
   Fonts   : Playfair Display (display) + DM Sans (body)
   Modes   : Dark default + Light toggle
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=DM+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── DARK THEME (default) ──────────────────────────────── */
:root {
  --bg:            #0c100d;
  --bg2:           #111612;
  --surface:       #161d17;
  --surface2:      #1d2820;
  --border:        #243028;
  --border2:       #2e3e34;

  --neon:          #f0b429;
  --neon2:         #e85d4a;
  --neon3:         #52d68a;
  --gold:          #f0b429;
  --purple:        #a78bfa;

  --text:          #eeeae0;
  --text-muted:    #7a8c80;
  --text-dim:      #3a4a40;
  --text-on-neon:  #0c100d;

  --card-bg:       #141a15;
  --card-border:   #1e2b20;
  --card-hover:    #1a2520;

  --header-glass:  rgba(12,16,13,.94);
  --overlay-dark:  rgba(0,0,0,.55);
  --overlay-grad:  rgba(12,16,13,.9);
  --img-filter:    brightness(.28) blur(1px);
  --tag-bg:        rgba(240,180,41,.12);
  --cat-hover-bg:  rgba(240,180,41,.05);
  --focus-ring:    rgba(240,180,41,.18);
  --flash-ok-bg:   rgba(82,214,138,.08);
  --flash-ok-bd:   rgba(82,214,138,.22);
  --flash-er-bg:   rgba(232,93,74,.08);
  --flash-er-bd:   rgba(232,93,74,.22);

  --header-h:      68px;
  --radius:        4px;
  --radius-lg:     6px;
  --font:          'DM Sans', sans-serif;
  --font-display:  'Playfair Display', serif;
  --font-mono:     'DM Mono', monospace;

  --glow-neon:     0 0 16px rgba(240,180,41,.4), 0 0 50px rgba(240,180,41,.14);
  --glow-pink:     0 0 16px rgba(232,93,74,.38), 0 0 50px rgba(232,93,74,.12);
  --glow-card:     0 2px 0 rgba(255,255,255,.02) inset, 0 8px 32px rgba(0,0,0,.65);

  --grid-opacity:  .22;
  --radial-bg:     radial-gradient(ellipse 80% 45% at 50% -5%, rgba(240,180,41,.06), transparent 65%);
}

/* ── LIGHT THEME ───────────────────────────────────────── */
html[data-theme="light"] {
  --bg:            #f4efe6;
  --bg2:           #ebe4d8;
  --surface:       #fffdf8;
  --surface2:      #f0e9dc;
  --border:        #d8cebf;
  --border2:       #c8baa8;

  --neon:          #b87a00;
  --neon2:         #c43520;
  --neon3:         #1a8c50;
  --gold:          #b87a00;
  --purple:        #6d3fd6;

  --text:          #1a1208;
  --text-muted:    #6a5840;
  --text-dim:      #b8a890;
  --text-on-neon:  #ffffff;

  --card-bg:       #fffdf8;
  --card-border:   #ddd4c4;
  --card-hover:    #f5ede0;

  --header-glass:  rgba(244,239,230,.96);
  --overlay-dark:  rgba(0,0,0,.42);
  --overlay-grad:  rgba(20,12,4,.82);
  --img-filter:    brightness(.45) blur(1px);
  --tag-bg:        rgba(184,122,0,.12);
  --cat-hover-bg:  rgba(184,122,0,.06);
  --focus-ring:    rgba(184,122,0,.18);
  --flash-ok-bg:   rgba(26,140,80,.08);
  --flash-ok-bd:   rgba(26,140,80,.24);
  --flash-er-bg:   rgba(196,53,32,.08);
  --flash-er-bd:   rgba(196,53,32,.24);

  --glow-neon:     0 0 10px rgba(184,122,0,.28), 0 0 30px rgba(184,122,0,.10);
  --glow-pink:     0 0 10px rgba(196,53,32,.25), 0 0 28px rgba(196,53,32,.08);
  --glow-card:     0 1px 0 rgba(255,255,255,.9) inset, 0 4px 20px rgba(80,50,20,.10);

  --grid-opacity:  .10;
  --radial-bg:     radial-gradient(ellipse 80% 45% at 50% -5%, rgba(184,122,0,.07), transparent 65%);
}

/* ── 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 .28s ease, color .28s 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: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ── BACKGROUND TEXTURE ────────────────────────────────── */
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: 48px 48px;
  opacity: var(--grid-opacity);
  pointer-events: none;
  transition: opacity .28s ease;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: var(--radial-bg);
  pointer-events: none;
  transition: background .28s 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: 2px solid var(--border2);
  display: flex; align-items: center;
  transition: background .28s ease, border-color .28s ease;
}
.site-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--neon) 30%, rgba(240,180,41,.2) 70%, transparent 100%);
  opacity: .5;
}
.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.35rem; font-weight: 900;
  letter-spacing: -.5px;
  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.3rem;
  filter: drop-shadow(0 0 6px 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: 1.5px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .28s, color .28s;
}
.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: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: .9rem; pointer-events: none;
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  padding: 7px 13px;
  font-size: .83rem; font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color .18s, background .18s;
  letter-spacing: .01em;
}
.header-nav a:hover { color: var(--text); background: var(--surface2); }
.header-nav .btn-login {
  background: var(--surface2);
  border: 1.5px 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);
  letter-spacing: .02em;
}
.header-nav .btn-register:hover { opacity: .88; }
.mob-menu-toggle {
  display: none;
  font-size: 1.3rem; color: var(--text);
  padding: 6px; border-radius: var(--radius);
  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: 1.5px solid var(--border2);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0; padding: 0;
  transition: border-color .2s, box-shadow .2s, background .28s, transform .2s;
}
.theme-toggle:hover {
  border-color: var(--neon);
  box-shadow: var(--glow-neon);
  transform: rotate(20deg);
}

/* ── 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: 1.2rem; font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  display: flex; align-items: center; gap: 12px;
}
.section-title::before {
  content: '';
  width: 4px; height: 22px;
  background: var(--neon);
  border-radius: 2px;
  box-shadow: var(--glow-neon);
  flex-shrink: 0;
}
.section-title .tag {
  font-family: var(--font-mono);
  font-size: .62rem; padding: 3px 9px;
  background: var(--tag-bg);
  color: var(--neon); border-radius: 2px;
  font-weight: 500; letter-spacing: .05em;
}
.see-all {
  font-family: var(--font-mono);
  font-size: .76rem; font-weight: 500;
  color: var(--text-muted);
  border: 1.5px solid var(--border2);
  padding: 5px 14px; border-radius: var(--radius);
  transition: color .18s, border-color .18s;
  letter-spacing: .02em;
}
.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: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .22s, transform .22s, box-shadow .22s, background .28s;
  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 .38s 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: 46px; height: 46px;
  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(.78); 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: #fff;
  font-size: .58rem; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  font-family: var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase;
}
.game-card-thumb .badge-hot {
  position: absolute; top: 8px; left: 8px;
  background: var(--neon2); color: #fff;
  font-size: .58rem; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  font-family: var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase;
}
.game-card-info { padding: 10px 12px; }
.game-card-title {
  font-size: .87rem; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text); margin-bottom: 4px;
  letter-spacing: .01em;
}
.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: 1.5px solid var(--border2);
  margin-bottom: 28px;
  height: 300px;
}
/* Editorial top accent bar */
.featured-slider::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--neon2) 100%);
  z-index: 10;
  box-shadow: 0 0 12px rgba(240,180,41,.4);
}
.featured-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .65s 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 .28s;
}
.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: var(--radius);
  border: 2px solid var(--neon);
  box-shadow: var(--glow-neon);
  flex-shrink: 0; margin-right: 18px;
}
.featured-info .cat-tag {
  font-family: var(--font-mono);
  font-size: .62rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--neon);
  margin-bottom: 8px;
}
.featured-info h2 {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 900;
  margin-bottom: 10px;
  color: #fff; letter-spacing: -.02em;
}
.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: 9px 20px; border-radius: var(--radius);
  box-shadow: var(--glow-neon);
  transition: opacity .18s, transform .18s;
  letter-spacing: .02em;
}
.featured-info .play-now:hover { opacity: .88; transform: scale(1.03); }
.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,.28);
  cursor: pointer; transition: all .22s;
}
.slider-dot.active { background: var(--neon); width: 20px; border-radius: 3px; box-shadow: var(--glow-neon); }

/* ── SIDEBAR ────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background .28s, border-color .28s;
}
.widget-title {
  font-family: var(--font-display);
  font-size: .85rem; font-weight: 900;
  letter-spacing: -.01em;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--border);
  color: var(--neon);
  display: flex; align-items: center; gap: 10px;
}
.widget-title::before {
  content: ''; width: 4px; height: 16px;
  background: var(--neon); border-radius: 2px;
  box-shadow: var(--glow-neon);
  flex-shrink: 0;
}
.cat-list { padding: 6px 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-family: var(--font-mono); font-size: .68rem;
  background: var(--surface2);
  padding: 2px 8px; border-radius: 2px;
  color: var(--text-dim);
}
.top-game-item {
  display: flex; align-items: center; gap: 12px;
  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-mono); font-size: .75rem;
  font-weight: 600; 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: var(--radius);
  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: var(--radius); 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: 1.5px solid var(--border2);
  border-radius: var(--radius);
  font-size: .8rem; font-weight: 700;
  color: var(--text-muted);
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
  letter-spacing: .02em;
}
.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: 1.5px 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: 1.5px 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 .28s, border-color .28s;
}
.game-title-main {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 900;
  letter-spacing: -.02em;
}
.game-actions { display: flex; gap: 8px; align-items: center; }
.action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: .8rem; font-weight: 700;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text-muted);
  transition: color .18s, border-color .18s, background .28s; cursor: pointer;
  letter-spacing: .02em;
}
.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: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 20px;
  transition: background .28s, border-color .28s;
}
.game-desc h3 {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 900; letter-spacing: -.01em;
  color: var(--neon); margin-bottom: 12px;
}
.game-desc p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

.comments-section {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px;
  transition: background .28s, border-color .28s;
}
.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(--neon2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: #0c100d;
}
.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: .76rem; font-weight: 700;
  letter-spacing: .06em; color: var(--text-muted);
  text-transform: uppercase; margin-bottom: 7px;
  font-family: var(--font-mono);
}
.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius); color: var(--text);
  font-size: .9rem; outline: none;
  transition: border-color .18s, box-shadow .18s, background .28s, color .28s;
}
.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: var(--radius);
  font-weight: 800; font-size: .88rem;
  transition: opacity .18s, transform .18s; cursor: pointer; border: none;
  letter-spacing: .02em;
}
.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: 1.5px 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: var(--radius);
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  background: var(--surface2); border: 1.5px 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;
  font-family: var(--font-mono);
}
.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: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); margin-bottom: 28px;
  transition: background .28s, border-color .28s;
}
.stat-item { text-align: center; }
.stat-val {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  color: var(--neon); letter-spacing: -.02em;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: .68rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em;
}

/* ── 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.6rem; font-weight: 900;
  text-align: center; margin-bottom: 6px;
  color: var(--neon); text-shadow: var(--glow-neon);
  letter-spacing: -.02em;
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: .88rem; margin-bottom: 28px; }
.auth-card {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: background .28s, border-color .28s;
}
.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: 1.5px solid var(--flash-ok-bd); color: var(--neon3); }
.flash-error   { background: var(--flash-er-bg); border: 1.5px solid var(--flash-er-bd); color: var(--neon2); }

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 2px solid var(--border2);
  padding: 48px 0 24px; margin-top: 60px;
  transition: background .28s ease, border-color .28s 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-mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 14px; font-weight: 600;
}
.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-family: var(--font-mono);
  font-size: .78rem; 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.8rem; font-weight: 900;
  margin-bottom: 18px; color: var(--text); letter-spacing: -.03em;
}
.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: 1.5px solid var(--border2);
  border-radius: var(--radius); 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: 0 0 0 3px var(--focus-ring); }
.search-hero .big-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: var(--neon); color: var(--text-on-neon);
  border-radius: var(--radius); padding: 8px 20px;
  font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.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 .42s ease both; }
.fade-in-delay-1 { animation-delay: .08s; }
.fade-in-delay-2 { animation-delay: .16s; }
.fade-in-delay-3 { animation-delay: .26s; }

@keyframes pulse-neon {
  0%, 100% { box-shadow: var(--glow-neon); }
  50%       { box-shadow: var(--glow-neon), 0 0 50px var(--neon); }
}
.pulse-neon { animation: pulse-neon 2.8s 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.5s 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; opacity: .4; }
.no-results h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 900; color: var(--text); margin-bottom: 8px;
  letter-spacing: -.01em;
}

/* ── 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;
    z-index: 100;
  }
  .header-nav.open { display: flex; }
  .featured-slider { height: 220px; }
  .featured-thumb { width: 80px; height: 60px; }
  .featured-info h2 { font-size: 1.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; }
}
