/* ===== Rarepike — Premium Game Showcase ===== */
:root {
  /* Palette */
  --color-bg: #f0f2f5;
  --color-bg-alt: #ffffff;

  --color-accent: #e8614d;
  --color-accent-soft: rgba(232, 97, 77, 0.07);
  --color-accent-hover: #d9503d;

  --color-blue: #1d3557;
  --color-blue-mid: #2a4a6b;
  --color-blue-light: #457b9d;

  --color-text: #1d3557;
  --color-text-secondary: #5a6a7e;
  --color-text-muted: #94a3b8;

  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Category accent colors */
  --cat-card: #c0392b;
  --cat-card-light: #e74c3c;
  --cat-card-bg: rgba(192, 57, 43, 0.04);

  --cat-board: #1e8449;
  --cat-board-light: #27ae60;
  --cat-board-bg: rgba(30, 132, 73, 0.04);

  --cat-dice: #d4820a;
  --cat-dice-light: #f39c12;
  --cat-dice-bg: rgba(212, 130, 10, 0.04);

  --cat-puzzle: #7d3c98;
  --cat-puzzle-light: #9b59b6;
  --cat-puzzle-bg: rgba(125, 60, 152, 0.04);

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2.5rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;

  /* Typography – Public Sans */
  --font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.7rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 400ms var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }


/* ===============================================
   HERO — Full-bleed dark gradient
   =============================================== */
.hero {
  text-align: center;
  padding: calc(70px + var(--sp-2xl)) var(--sp-lg) 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #121d2e 0%, #1d3557 35%, #264670 65%, #2f5580 100%);
}

/* Subtle grid mesh overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Radial glow accent */
.hero::after {
  content: '';
  position: absolute;
  top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,97,77,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Wave bottom edge */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 3;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* Floating decorative game symbols */
.hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.float {
  position: absolute;
  color: rgba(255,255,255,0.06);
  font-size: 2.5rem;
  animation: floatDrift 20s ease-in-out infinite;
}
.float-1 { top: 18%; left: 6%; font-size: 3.5rem; animation-delay: 0s; }
.float-2 { top: 30%; right: 8%; font-size: 3rem; animation-delay: -4s; }
.float-3 { top: 62%; left: 12%; font-size: 2.2rem; animation-delay: -8s; }
.float-4 { bottom: 28%; right: 12%; font-size: 2.8rem; animation-delay: -12s; }
.float-5 { top: 12%; right: 22%; font-size: 2rem; animation-delay: -6s; }
.float-6 { bottom: 38%; left: 22%; font-size: 2.4rem; animation-delay: -16s; }

@keyframes floatDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(6deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(15px) rotate(-6deg); }
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--sp-lg);
  letter-spacing: -0.025em;
}

.title-line {
  display: block;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.6s var(--ease) forwards;
}
.title-highlight {
  display: block;
  background: linear-gradient(135deg, #ff7b5c 0%, #f0a060 40%, #f7c948 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.6s var(--ease) 0.15s forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--sp-xl);
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease) 0.3s forwards;
  line-height: 1.7;
}

/* Buttons */
.hero-cta {
  display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 0.6s var(--ease) 0.45s forwards;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: var(--text-sm);
  transition: all var(--t-base);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 97, 77, 0.4);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 97, 77, 0.5);
}
.btn-primary svg { transition: transform var(--t-fast); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}


/* ===============================================
   FEATURED — Vivid showcase cards
   =============================================== */
.featured {
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: var(--sp-xl); }

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: linear-gradient(135deg, rgba(232,97,77,0.1), rgba(244,162,97,0.1));
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-blue);
  letter-spacing: -0.015em;
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 160px);
  gap: 16px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; align-items: flex-end;
  transition: all var(--t-base);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.featured-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.featured-large { grid-row: span 2; }

/* Fully visible colored gradient backgrounds */
.featured-bg {
  position: absolute; inset: 0;
  opacity: 1;
  transition: transform var(--t-slow);
}
.featured-card:hover .featured-bg { transform: scale(1.05); }

.chess-bg  { background: linear-gradient(135deg, #1a2a4a 0%, #2d5f7e 50%, #3a8cb5 100%); }
.poker-bg  { background: linear-gradient(135deg, #2d1b3e 0%, #5b2d8e 50%, #7e47b0 100%); }
.pool-bg   { background: linear-gradient(135deg, #1a3a2a 0%, #2d7e5f 50%, #3aab7e 100%); }

/* Dark overlay for text readability */
.featured-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Subtle highlight glow */
.featured-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.featured-content {
  position: relative; z-index: 2;
  padding: var(--sp-xl) var(--sp-lg);
  width: 100%;
}
.featured-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--sp-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.featured-content h3 {
  font-size: var(--text-xl); font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.featured-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 400;
  margin-bottom: var(--sp-md);
  line-height: 1.5;
}

.play-badge {
  display: inline-block;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--t-base);
  letter-spacing: 0.02em;
}
.featured-card:hover .play-badge {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255,255,255,0.4);
}


/* ===============================================
   CATEGORY FILTER TABS
   =============================================== */
.categories {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
  max-width: 1100px;
  margin: 0 auto;
}

.category-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}

.category-tab {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-border);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.category-tab:hover {
  color: var(--color-blue);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.category-tab.active {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
  box-shadow: 0 4px 14px rgba(29, 53, 87, 0.25);
}


/* ===============================================
   GAMES — Individual Card Grid
   =============================================== */
.games {
  padding: var(--sp-md) var(--sp-lg) var(--sp-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Category section headers ---- */
.games-category-header {
  display: flex; align-items: center; gap: var(--sp-sm);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
}
.games-category-header:first-child { margin-top: var(--sp-md); }

.games-category-icon {
  font-size: 1.25rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-text-muted);
}

.games-category-title {
  font-size: var(--text-xl); font-weight: 800;
  color: var(--color-blue);
  margin: 0;
  letter-spacing: -0.01em;
}

.games-category-count {
  font-size: var(--text-xs); font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  margin-left: auto;
}

/* Per-category header icon colors */
[data-category-label="card"]  .games-category-icon { background: linear-gradient(135deg, var(--cat-card-light), var(--cat-card)); }
[data-category-label="board"] .games-category-icon { background: linear-gradient(135deg, var(--cat-board-light), var(--cat-board)); }
[data-category-label="dice"]  .games-category-icon { background: linear-gradient(135deg, var(--cat-dice-light), var(--cat-dice)); }
[data-category-label="puzzle"] .games-category-icon { background: linear-gradient(135deg, var(--cat-puzzle-light), var(--cat-puzzle)); }

.games-category-header.hidden { display: none; }
.games-grid.hidden { display: none; }

/* ---- 3-column individual card grid ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Individual game card */
.game-card {
  display: flex; align-items: center;
  padding: 14px 16px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--t-base);
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

/* Category-colored left accent */
[data-category="card"]   { border-left-color: var(--cat-card); }
[data-category="board"]  { border-left-color: var(--cat-board); }
[data-category="dice"]   { border-left-color: var(--cat-dice); }
[data-category="puzzle"] { border-left-color: var(--cat-puzzle); }

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

/* Category-tinted hover backgrounds */
[data-category="card"]:hover   { background: var(--cat-card-bg); }
[data-category="board"]:hover  { background: var(--cat-board-bg); }
[data-category="dice"]:hover   { background: var(--cat-dice-bg); }
[data-category="puzzle"]:hover { background: var(--cat-puzzle-bg); }

.game-card.hidden { display: none; }

/* Flatten old inner wrapper */
.game-card-inner { display: contents; }

/* ===== Colored gradient icon ===== */
.game-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  margin-right: 12px;
  transition: all var(--t-base);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, #64748b, #475569);
}

/* Per-category icon gradients */
[data-category="card"] .game-icon {
  background: linear-gradient(135deg, var(--cat-card-light) 0%, var(--cat-card) 100%);
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.25);
}
[data-category="board"] .game-icon {
  background: linear-gradient(135deg, var(--cat-board-light) 0%, var(--cat-board) 100%);
  box-shadow: 0 2px 8px rgba(30, 132, 73, 0.25);
}
[data-category="dice"] .game-icon {
  background: linear-gradient(135deg, var(--cat-dice-light) 0%, var(--cat-dice) 100%);
  box-shadow: 0 2px 8px rgba(212, 130, 10, 0.25);
}
[data-category="puzzle"] .game-icon {
  background: linear-gradient(135deg, var(--cat-puzzle-light) 0%, var(--cat-puzzle) 100%);
  box-shadow: 0 2px 8px rgba(125, 60, 152, 0.25);
}

.game-card:hover .game-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* Text block */
.game-info {
  flex: 1; min-width: 0;
}
.game-info h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-blue);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  line-height: 1.3;
}

/* Hide old hover overlay */
.game-hover { display: none; }

/* Play arrow on hover */
.game-card::after {
  content: '\2192';
  position: absolute;
  right: 14px; top: 50%; transform: translateY(-50%) translateX(-6px);
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-accent);
  opacity: 0;
  transition: all var(--t-base);
}
.game-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


/* ===============================================
   ABOUT / FEATURES SECTION
   =============================================== */
.about {
  padding: var(--sp-3xl) var(--sp-lg);
  background: linear-gradient(180deg, var(--color-bg) 0%, #e4e8ee 100%);
  border-top: 1px solid var(--color-border);
}

.about-content {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.about-content h2 {
  font-size: var(--text-2xl); font-weight: 800;
  color: var(--color-blue);
  margin-bottom: var(--sp-xl);
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-lg);
}

.feature-card {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29,53,87,0.07), rgba(69,123,157,0.1));
}

.feature-card h4 {
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-blue);
  margin-bottom: var(--sp-sm);
}
.feature-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm); font-weight: 400;
  line-height: 1.6;
}
.feature-card p a { color: var(--color-accent); font-weight: 600; }
.feature-card p a:hover { text-decoration: underline; }

/* SEO content block */
.seo-content {
  margin-top: 48px;
  text-align: left;
  padding: var(--sp-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.seo-content h3 {
  font-size: var(--text-lg); font-weight: 700;
  color: var(--color-blue);
  margin-bottom: var(--sp-sm);
}
.seo-content p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.seo-content strong { color: var(--color-text); font-weight: 600; }


/* ===============================================
   FOOTER (dark, bookends with hero)
   =============================================== */
.footer {
  padding: var(--sp-xl) var(--sp-lg);
  background: var(--color-blue);
  color: rgba(255,255,255,0.7);
}

.footer-content {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-lg);
}

.footer-brand { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-brand p { width: 100%; color: rgba(255,255,255,0.45); font-size: var(--text-sm); margin-top: 4px; }

.footer-links { display: flex; gap: var(--sp-lg); }
.footer-links a { color: rgba(255,255,255,0.6); font-size: var(--text-sm); transition: color var(--t-fast); }
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  max-width: 1100px; margin: var(--sp-lg) auto 0;
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: var(--text-sm); }


/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .featured-large { grid-row: auto; min-height: 200px; }
  .featured-card { min-height: 160px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .games-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(60px + var(--sp-xl)); padding-bottom: 80px; }
  .hero-title { font-size: clamp(1.85rem, 7vw, 2.25rem); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-floats { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-left: var(--sp-md); padding-right: var(--sp-md); }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .games { padding-left: var(--sp-md); padding-right: var(--sp-md); }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-brand { justify-content: center; }
}


/* ===============================================
   REVEAL ANIMATIONS
   =============================================== */
.game-card, .featured-card, .feature-card {
  opacity: 0; transform: translateY(12px);
  animation: revealCard 0.5s var(--ease) forwards;
}
@keyframes revealCard { to { opacity: 1; transform: translateY(0); } }

.game-card:nth-child(1)  { animation-delay: 0.02s; }
.game-card:nth-child(2)  { animation-delay: 0.04s; }
.game-card:nth-child(3)  { animation-delay: 0.06s; }
.game-card:nth-child(4)  { animation-delay: 0.08s; }
.game-card:nth-child(5)  { animation-delay: 0.10s; }
.game-card:nth-child(6)  { animation-delay: 0.12s; }
.game-card:nth-child(7)  { animation-delay: 0.14s; }
.game-card:nth-child(8)  { animation-delay: 0.16s; }
.game-card:nth-child(9)  { animation-delay: 0.18s; }
.game-card:nth-child(10) { animation-delay: 0.20s; }
.game-card:nth-child(11) { animation-delay: 0.22s; }
.game-card:nth-child(12) { animation-delay: 0.24s; }
.game-card:nth-child(13) { animation-delay: 0.26s; }
.game-card:nth-child(14) { animation-delay: 0.28s; }
.game-card:nth-child(15) { animation-delay: 0.30s; }

.featured-card:nth-child(1) { animation-delay: 0.05s; }
.featured-card:nth-child(2) { animation-delay: 0.15s; }
.featured-card:nth-child(3) { animation-delay: 0.25s; }

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }


/* ===============================================
   SIDEBAR LAYOUT (game pages — preserved)
   =============================================== */
.main-layout-container {
  display: flex; align-items: flex-start; gap: 32px;
}
@media (min-width: 901px) {
  .main-layout-container { display: flex; gap: 32px; }
  .sidebar { display: block; width: 300px; min-width: 300px; flex-shrink: 0; }
}
@media (max-width: 900px) {
  .sidebar {
    display: none !important; width: 0 !important; min-width: 0 !important;
    max-width: 0 !important; overflow: hidden !important;
    padding: 0 !important; margin: 0 !important;
  }
  .main-layout-container { gap: 0 !important; }
}
