/*
Theme Name: PixelArcade
Theme URI: https://pixelarcade.local
Description: Retro pixel art temalı oyun sitesi
Version: 1.0.0
Author: PixelArcade
Text Domain: pixelarcade
*/

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323:wght@400&family=Orbitron:wght@400;700;900&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  --black:      #0a0a0f;
  --dark:       #0f0f1a;
  --darker:     #080810;
  --panel:      #12121f;
  --panel2:     #1a1a2e;
  --border:     #2a2a4a;
  --neon-cyan:  #00fff5;
  --neon-pink:  #ff006e;
  --neon-yellow:#ffe600;
  --neon-green: #00ff88;
  --neon-purple:#bf00ff;
  --neon-orange:#ff6b00;
  --text:       #e0e0ff;
  --text-dim:   #7070a0;
  --pixel-size: 3px;
  --scan-size:  2px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect x='0' y='0' width='4' height='4' fill='%2300fff5'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%2300fff5'/%3E%3Crect x='8' y='8' width='4' height='4' fill='%2300fff5'/%3E%3Crect x='12' y='12' width='4' height='4' fill='%2300fff5'/%3E%3C/svg%3E"), auto;
}

/* CRT Scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent calc(var(--scan-size) * 2),
    rgba(0,0,0,0.15) calc(var(--scan-size) * 2),
    rgba(0,0,0,0.15) calc(var(--scan-size) * 3)
  );
  pointer-events: none;
  z-index: 9999;
}

/* Screen flicker animation */
@keyframes flicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.97; }
  97% { opacity: 0.99; }
  98% { opacity: 0.96; }
}
body { animation: flicker 8s infinite; }

a { color: var(--neon-cyan); text-decoration: none; }
a:hover { color: var(--neon-pink); }

img { max-width: 100%; height: auto; display: block; }

/* ========== PIXEL BORDER MIXIN (box-shadow trick) ========== */
.pixel-border {
  box-shadow:
    0 0 0 2px var(--border),
    0 0 0 4px var(--panel),
    0 0 0 6px var(--border);
}

.pixel-border-cyan {
  box-shadow:
    0 0 0 2px var(--neon-cyan),
    0 0 0 4px var(--dark),
    0 0 0 6px var(--neon-cyan),
    0 0 20px rgba(0,255,245,0.3);
}

/* ========== TYPOGRAPHY ========== */
.font-pixel  { font-family: 'Press Start 2P', monospace; }
.font-vt323  { font-family: 'VT323', monospace; }
.font-orb    { font-family: 'Orbitron', sans-serif; }

/* ========== SITE WRAPPER ========== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--darker);
  border-bottom: 2px solid var(--neon-cyan);
  box-shadow: 0 2px 20px rgba(0,255,245,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

/* Logo */
.site-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan),
    0 0 40px rgba(0,255,245,0.5);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
}

.site-logo span {
  color: var(--neon-pink);
  text-shadow:
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-pink);
}

@keyframes blink-logo {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.site-logo::after {
  content: '_';
  animation: blink-logo 1s infinite;
  color: var(--neon-yellow);
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,255,245,0.3);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Search */
.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.search-input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 16px;
  padding: 8px 14px;
  outline: none;
  width: 200px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0,255,245,0.2);
}

.search-btn {
  background: var(--neon-cyan);
  border: none;
  color: var(--black);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.search-btn:hover {
  background: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255,0,110,0.5);
}

/* ========== HERO / MARQUEE ========== */
.ticker-bar {
  background: var(--neon-yellow);
  color: var(--black);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ========== MAIN CONTENT ========== */
.site-main {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 24px;
}

/* ========== SECTION TITLES ========== */
.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(255,230,0,0.5);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '▶';
  color: var(--neon-pink);
  animation: blink-logo 1.2s infinite;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin-left: 12px;
}

/* ========== CATEGORY FILTERS ========== */
.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cat-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 8px 16px;
  background: var(--panel);
  border: 2px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
}

.cat-btn:hover, .cat-btn.active {
  background: var(--panel2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,255,245,0.25), inset 0 0 8px rgba(0,255,245,0.05);
  text-shadow: 0 0 8px var(--neon-cyan);
}

.cat-btn[data-color="pink"]:hover, .cat-btn[data-color="pink"].active {
  border-color: var(--neon-pink); color: var(--neon-pink);
  box-shadow: 0 0 12px rgba(255,0,110,0.25);
  text-shadow: 0 0 8px var(--neon-pink);
}
.cat-btn[data-color="green"]:hover, .cat-btn[data-color="green"].active {
  border-color: var(--neon-green); color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0,255,136,0.25);
  text-shadow: 0 0 8px var(--neon-green);
}
.cat-btn[data-color="yellow"]:hover, .cat-btn[data-color="yellow"].active {
  border-color: var(--neon-yellow); color: var(--neon-yellow);
  box-shadow: 0 0 12px rgba(255,230,0,0.25);
  text-shadow: 0 0 8px var(--neon-yellow);
}
.cat-btn[data-color="purple"]:hover, .cat-btn[data-color="purple"].active {
  border-color: var(--neon-purple); color: var(--neon-purple);
  box-shadow: 0 0 12px rgba(191,0,255,0.25);
  text-shadow: 0 0 8px var(--neon-purple);
}
.cat-btn[data-color="orange"]:hover, .cat-btn[data-color="orange"].active {
  border-color: var(--neon-orange); color: var(--neon-orange);
  box-shadow: 0 0 12px rgba(255,107,0,0.25);
  text-shadow: 0 0 8px var(--neon-orange);
}

/* ========== GAME GRID ========== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ========== GAME CARD ========== */
.game-card {
  background: var(--panel);
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,255,245,0.03) 0%,
    transparent 50%,
    rgba(255,0,110,0.03) 100%
  );
  pointer-events: none;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.5),
    0 0 20px rgba(0,255,245,0.2),
    0 0 0 1px var(--neon-cyan);
}

.game-card:hover .card-thumb img {
  transform: scale(1.08);
}

.game-card:hover .play-overlay {
  opacity: 1;
}

/* Card Thumbnail */
.card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--darker);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  image-rendering: pixelated;
}

.card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--panel2), var(--darker));
  font-size: 48px;
}

/* Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.play-btn-icon {
  width: 56px;
  height: 56px;
  background: var(--neon-cyan);
  clip-path: polygon(20% 10%, 20% 90%, 85% 50%);
  filter: drop-shadow(0 0 15px var(--neon-cyan));
}

/* Category Badge */
.card-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.8);
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NEW badge */
.card-new {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  padding: 4px 8px;
  background: var(--neon-pink);
  color: var(--black);
  animation: blink-logo 0.8s infinite;
}

/* Card Info */
.card-info {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-dim);
}

.card-plays {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--neon-yellow);
  font-size: 13px;
}

.card-plays::before { content: '🕹️'; font-size: 11px; }

.card-rating {
  color: var(--neon-yellow);
  font-size: 13px;
}

/* ========== FEATURED GAME (hero card) ========== */
.featured-section {
  margin-bottom: 40px;
}

.featured-card {
  position: relative;
  background: var(--panel);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 30px rgba(255,0,110,0.2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 280px;
}

.featured-card::before {
  content: '★ FEATURED ★';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
  z-index: 2;
  background: var(--darker);
  padding: 4px 12px;
  border: 1px solid var(--neon-pink);
}

.featured-thumb {
  position: relative;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.featured-info {
  padding: 48px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 2px solid var(--border);
  background: var(--panel2);
}

.featured-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}

.featured-desc {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.5;
}

.featured-stats {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.featured-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.featured-stat-val {
  color: var(--neon-cyan);
  font-family: 'VT323', monospace;
  font-size: 22px;
}

.btn-play-featured {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--neon-pink);
  color: var(--black);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 14px 24px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  align-self: flex-start;
  margin-top: 8px;
}

.btn-play-featured:hover {
  background: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0,255,245,0.4);
  transform: translateY(-2px);
  color: var(--black);
}

.btn-play-featured::before { content: '▶ '; }

/* ========== SINGLE GAME PAGE ========== */
.game-page-wrapper {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.back-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.back-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.back-btn::before { content: '◀ '; }

.game-title-h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--text);
  text-shadow: 0 0 15px rgba(0,255,245,0.3);
}

.game-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-dim);
}

.game-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-meta-item strong {
  color: var(--neon-cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
}

/* Game Frame Container */
.game-frame-container {
  position: relative;
  background: var(--darker);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0,255,245,0.15);
  overflow: hidden;
}

.game-frame-header {
  background: var(--panel2);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
}

.frame-dot:nth-child(1) { background: var(--neon-pink); }
.frame-dot:nth-child(2) { background: var(--neon-yellow); }
.frame-dot:nth-child(3) { background: var(--neon-green); }

.frame-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
}

.fullscreen-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.fullscreen-btn:hover {
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
}

.game-iframe-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
}

.game-iframe-wrap.fullscreen-mode {
  position: fixed;
  inset: 0;
  padding-top: 0;
  z-index: 9000;
  background: #000;
}

.game-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Loading screen */
.game-loading {
  position: absolute;
  inset: 0;
  background: var(--darker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 5;
}

.loading-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--neon-cyan);
  animation: blink-logo 0.8s infinite;
}

.loading-bar-wrap {
  width: 200px;
  height: 12px;
  border: 2px solid var(--neon-cyan);
  padding: 2px;
}

.loading-bar {
  height: 100%;
  background: var(--neon-cyan);
  animation: load-progress 2s ease-out forwards;
}

@keyframes load-progress {
  0%   { width: 0%; }
  30%  { width: 45%; }
  60%  { width: 70%; }
  80%  { width: 88%; }
  100% { width: 100%; }
}

/* Fullscreen exit button */
.exit-fullscreen {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9001;
  display: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: rgba(0,0,0,0.8);
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
  padding: 8px 14px;
  cursor: pointer;
}

.game-iframe-wrap.fullscreen-mode ~ .exit-fullscreen,
.fullscreen-mode + .exit-fullscreen {
  display: block;
}

/* ========== SIDEBAR ========== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  overflow: hidden;
}

.widget-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--black);
  background: var(--neon-cyan);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-body { padding: 14px; }

/* Top games list */
.top-game-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}

.top-game-item:last-child { border-bottom: none; }
.top-game-item:hover { color: var(--neon-cyan); }

.top-rank {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-yellow);
  min-width: 20px;
}

.top-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  flex-shrink: 0;
  image-rendering: pixelated;
  background: var(--darker);
}

.top-info { flex: 1; min-width: 0; }

.top-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.top-plays {
  font-size: 13px;
  color: var(--text-dim);
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-item {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 10px 16px;
  background: var(--panel);
  border: 2px solid var(--border);
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.15s;
}

.page-item:hover, .page-item.current {
  background: var(--panel2);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0,255,245,0.2);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--darker);
  border-top: 2px solid var(--border);
  margin-top: 60px;
}

.footer-ticker {
  background: var(--neon-pink);
  color: var(--black);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-heading {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-yellow);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--neon-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 1400px;
  margin: 0 auto;
}

/* ========== PIXEL DECORATIONS ========== */
.pixel-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,245,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,245,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.content-above-grid {
  position: relative;
  z-index: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-info { border-left: none; border-top: 2px solid var(--border); }
}

@media (max-width: 768px) {
  .header-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .site-logo { font-size: 11px; }
  .site-nav { display: none; }
  .search-input { width: 140px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-title { font-size: 7px; }
  .site-main { padding: 20px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .game-title-h1 { font-size: 11px; }
}

/* ========== NOTICE / ADMIN BAR OFFSET ========== */
.admin-bar .site-header { top: 32px; }

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

.game-card {
  animation: fadeInUp 0.4s ease both;
}

.game-card:nth-child(2) { animation-delay: 0.05s; }
.game-card:nth-child(3) { animation-delay: 0.10s; }
.game-card:nth-child(4) { animation-delay: 0.15s; }
.game-card:nth-child(5) { animation-delay: 0.20s; }
.game-card:nth-child(6) { animation-delay: 0.25s; }
.game-card:nth-child(7) { animation-delay: 0.30s; }
.game-card:nth-child(8) { animation-delay: 0.35s; }

/* ========== NO GAMES FOUND ========== */
.no-games {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.no-games-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.no-games-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
}
