/* =============================================
   DUCTGAMES — Main Stylesheet
   Google AdSense Compliant · Production Ready
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Pacifico&display=swap');

/* ─── CSS Reset & Variables ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #6C3CE1;
  --primary-light: #8B5CF6;
  --primary-dark:  #4C1D95;
  --accent:        #22D1C8;
  --accent2:       #F472B6;
  --bg:            #F4F6FB;
  --bg-card:       #FFFFFF;
  --bg-dark:       #0F0A1E;
  --text-main:     #1A1040;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 3px rgba(108,60,225,0.08);
  --shadow-md:     0 4px 16px rgba(108,60,225,0.12);
  --shadow-lg:     0 8px 32px rgba(108,60,225,0.18);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --transition:    0.22s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Utility ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── HEADER ─── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 34px;
  width: auto;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

/* Hide purple text logo in header — show image only */
.logo .logo-text { display: none; }

/* Footer white logo image */
.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(108,60,225,0.07);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 16px;
  transition: var(--transition);
  min-width: 220px;
  max-width: 300px;
}

.header-search:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108,60,225,0.10);
}

.header-search svg { color: var(--text-muted); flex-shrink: 0; }

.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-main);
  width: 100%;
}

.header-search input::placeholder { color: var(--text-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  background: transparent;
}

.icon-btn:hover { background: var(--bg); color: var(--primary); }

/* ─── HERO BANNER ─── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 60px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(34,209,200,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(244,114,182,0.18) 0%, transparent 60%);
}

.hero-content { position: relative; max-width: 680px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
}

.hero-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-lg);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
}

.hero-search input::placeholder { color: var(--text-light); }

.hero-search button {
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.hero-search button:hover { background: var(--primary-dark); }

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ─── CATEGORY TABS ─── */
.category-section { padding: 32px 0 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-title span { color: var(--primary); }

.see-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.see-all:hover { text-decoration: underline; }

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition);
}

.cat-tab:hover, .cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ─── GAME GRID ─── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  display: block;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.game-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.game-card-body { padding: 12px 14px 14px; }

.game-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.game-card-cat {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.game-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  background: rgba(108,60,225,0.08);
  color: var(--primary);
}

.game-badge.free { background: rgba(34,209,200,0.1); color: #0E9E9A; }
.game-badge.hot { background: rgba(244,114,182,0.1); color: #D6418B; }

/* ─── FEATURED GAME ─── */
.featured-banner {
  background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 32px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.featured-banner::after {
  content: '🎮';
  position: absolute;
  right: 40px;
  font-size: 6rem;
  opacity: 0.15;
}

.featured-banner-content { flex: 1; }

.featured-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.featured-banner h2 {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.featured-banner p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 20px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(34,209,200,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34,209,200,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.92rem;
  transition: var(--transition);
}

.btn-secondary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ─── AD SLOTS ─── */
.ad-slot {
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
  font-style: italic;
}

.ad-slot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text-light);
}

.ad-banner {
  width: 100%;
  min-height: 90px;
  margin: 20px 0;
  background: var(--bg-card);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  font-style: italic;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo-text { color: var(--primary-light); font-size: 1.5rem; }
.footer-brand p {
  margin-top: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 1rem;
}

.social-btn:hover { background: var(--primary); color: #fff; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-links a:hover { color: var(--primary-light); }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 40px 24px;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 8px;
}

.page-header p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

/* ─── PROSE (legal pages) ─── */
.prose-section { padding: 48px 0; }
.prose-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.prose-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 28px 0 10px;
}

.prose-card h2:first-child { margin-top: 0; }

.prose-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px;
}

.prose-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.prose-card ul {
  list-style: disc;
  margin-left: 22px;
  margin-bottom: 14px;
}

.prose-card ul li {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.prose-card a { color: var(--primary); text-decoration: underline; }

.last-updated {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ─── CONTACT PAGE ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 48px 0;
}

.contact-form-card, .contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.contact-form-card h2, .contact-info-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108,60,225,0.1);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(108,60,225,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.contact-info-item p { font-size: 0.88rem; color: var(--text-muted); }

/* ─── GAME PAGE ─── */
.game-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  padding: 28px 0 48px;
}

.game-sidebar-left, .game-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ─── TIC TAC TOE ─── */
.game-main { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.game-title-area { text-align: center; }

.game-title-area h1 {
  font-size: 1.9rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-status-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.player-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(108,60,225,0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.player-dot {
  width: 9px;
  height: 9px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.score-display {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  grid-template-rows: repeat(3, 110px);
  gap: 10px;
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.ttt-cell {
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 900;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  user-select: none;
}

.ttt-cell:hover:not(.taken) {
  background: rgba(108,60,225,0.07);
  border-color: var(--primary-light);
  transform: scale(1.03);
}

.ttt-cell.taken { cursor: not-allowed; }
.ttt-cell.x { color: var(--primary); }
.ttt-cell.o { color: var(--accent); }

.ttt-cell.winning {
  background: rgba(108,60,225,0.1);
  border-color: var(--primary);
  animation: winPulse 0.5s ease;
}

@keyframes winPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-reset {
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-reset:hover { background: var(--primary-dark); transform: translateY(-2px); }

.game-message {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  transition: var(--transition);
}

.game-message.win { background: #22C55E; }
.game-message.lose { background: #EF4444; }
.game-message.draw { background: #F59E0B; }

/* Leaderboard */
.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.lb-rank {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
}

.lb-rank.gold { color: #F59E0B; }
.lb-rank.silver { color: #9CA3AF; }
.lb-rank.bronze { color: #B45309; }

.lb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.lb-name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.lb-score { font-size: 0.85rem; font-weight: 800; color: var(--primary); }

/* How to Play */
.how-step {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Related Games */
.related-game {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.related-game:last-child { border-bottom: none; }
.related-game:hover { transform: translateX(3px); }

.related-thumb {
  width: 56px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.related-info .title { font-size: 0.88rem; font-weight: 700; color: var(--text-main); }
.related-info .cat { font-size: 0.78rem; color: var(--text-muted); }

/* ─── SEARCH RESULTS ─── */
.search-results-banner {
  padding: 20px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.search-results-banner strong { color: var(--text-main); }

/* ─── ABOUT PAGE ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.about-stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: center;
}

.about-stat-card .stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat-card .stat-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1000;
  max-width: 680px;
  width: calc(100% - 40px);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cookie-banner p { font-size: 0.85rem; flex: 1; color: rgba(255,255,255,0.8); }
.cookie-banner a { color: var(--primary-light); text-decoration: underline; }

.cookie-accept {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.cookie-accept:hover { background: var(--primary-light); }

/* ─── MOBILE MENU ─── */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-main);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .game-page-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero h1 { font-size: 1.8rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; }
  .prose-card { padding: 24px 20px; }
  .ttt-board {
    grid-template-columns: repeat(3, 90px);
    grid-template-rows: repeat(3, 90px);
  }
  .ttt-cell { font-size: 2rem; }
  .game-page-layout { padding: 16px 0 36px; }
  /* Stack dual featured banners on mobile */
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease both; }

/* ─── SEARCH PAGE ─── */
.search-page .games-grid { margin-top: 20px; }
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results .icon { font-size: 3rem; margin-bottom: 14px; }
.no-results h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
