/* ================================================
   OYUN MERKEZİ — Premium Game Portal
   ================================================ */

/* --- Design Tokens --- */
:root {
  color-scheme: dark;

  /* Palette */
  --bg-deep: #070a12;
  --bg-surface: rgba(14, 17, 28, 0.75);
  --bg-card: rgba(18, 22, 38, 0.65);
  --bg-card-hover: rgba(24, 29, 50, 0.8);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text: #f0f2f9;
  --text-muted: #8a8fa6;
  --text-dim: #5d6278;
  --accent: #a78bfa;
  --accent-glow: rgba(167, 139, 250, 0.25);
  --accent-secondary: #38bdf8;

  /* Sizing */
  --max-w: 1240px;
  --gutter: 24px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
}

/* --- Warm Theme (Cosy Warm Light Theme) --- */
[data-theme="warm"] {
  color-scheme: light;

  /* Palette */
  --bg-deep: #fdfbf7;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border: rgba(180, 140, 100, 0.12);
  --border-hover: rgba(180, 140, 100, 0.24);
  --text: #3d2b1f;
  --text-muted: #7c6351;
  --text-dim: #a18875;
  --accent: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --accent-secondary: #ea580c;
}

[data-theme="warm"] .bg-orb {
  filter: blur(140px);
}

[data-theme="warm"] .bg-orb--1 {
  background: radial-gradient(circle, #fef3c7, #fde68a);
  opacity: 0.22;
}
[data-theme="warm"] .bg-orb--2 {
  background: radial-gradient(circle, #ffedd5, #fed7aa);
  opacity: 0.18;
}
[data-theme="warm"] .bg-orb--3 {
  background: radial-gradient(circle, #fce7f3, #fbcfe8);
  opacity: 0.12;
}

[data-theme="warm"] .bg-grid {
  background-image:
    linear-gradient(rgba(180, 140, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 140, 100, 0.04) 1px, transparent 1px);
}

[data-theme="warm"] .header {
  background: rgba(253, 251, 247, 0.75);
  border-bottom-color: rgba(180, 140, 100, 0.1);
}

[data-theme="warm"] .logo__icon {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 0 24px rgba(217, 119, 6, 0.2), inset 0 1px 0 rgba(255,255,255,0.25);
}

[data-theme="warm"] .hero__badge {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
  color: #b45309;
}

[data-theme="warm"] .hero__title-accent {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="warm"] .search-box__input {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(180, 140, 100, 0.2);
}

[data-theme="warm"] .search-box__input:focus {
  border-color: rgba(217, 119, 6, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.08);
}

[data-theme="warm"] .filter-btn {
  border-color: rgba(180, 140, 100, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="warm"] .filter-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(180, 140, 100, 0.3);
}

[data-theme="warm"] .filter-btn.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.2);
}

[data-theme="warm"] .count-chip {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
}

[data-theme="warm"] .game-card {
  box-shadow: 0 8px 30px rgba(180, 140, 100, 0.05);
}

[data-theme="warm"] .game-card:hover {
  box-shadow:
    0 20px 48px rgba(139, 92, 26, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="warm"] .game-card:hover .game-card__category {
  border-color: var(--card-accent, #d97706);
  color: var(--card-accent, #d97706);
  background: rgba(217, 119, 6, 0.06);
}

[data-theme="warm"] .btn--primary {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.2), 0 1px 0 inset rgba(255,255,255,0.15);
}

[data-theme="warm"] .btn--primary:hover {
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.3), 0 1px 0 inset rgba(255,255,255,0.2);
}

[data-theme="warm"] .spotlight-card {
  box-shadow:
    0 24px 60px rgba(139, 92, 26, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

[data-theme="warm"] .empty-state__icon {
  background: rgba(217, 119, 6, 0.06);
}

[data-theme="warm"] .empty-state__icon svg {
  stroke: #d97706;
}

[data-theme="warm"] .footer {
  background: rgba(253, 251, 247, 0.7);
  border-top-color: rgba(180, 140, 100, 0.1);
}

[data-theme="warm"] body {
  background: radial-gradient(ellipse at 50% -10%, rgba(217, 119, 6, 0.08), transparent 40rem), #fdfbf7;
}

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

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; border: none; outline: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ================================================
   Animated Background
   ================================================ */
.bg-effects {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--1 {
  width: 600px; height: 600px;
  top: -10%; left: -5%;
  background: radial-gradient(circle, #7c3aed, #6d28d9);
  animation-duration: 22s;
}

.bg-orb--2 {
  width: 500px; height: 500px;
  top: 50%; right: -10%;
  background: radial-gradient(circle, #38bdf8, #0ea5e9);
  animation-duration: 18s;
  animation-delay: -5s;
}

.bg-orb--3 {
  width: 400px; height: 400px;
  bottom: -5%; left: 30%;
  background: radial-gradient(circle, #f472b6, #ec4899);
  opacity: 0.08;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 50px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

.bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: 0.4;
}

/* ================================================
   Header
   ================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(7, 10, 18, 0.7);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}

.header.scrolled {
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.03em;
  transition: opacity var(--duration);
}
.logo:hover { opacity: 0.8; }

.logo__icon {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
  padding: 9px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.logo__icon span {
  width: 8px; height: 8px;
  border-radius: 2.5px;
  background: rgba(255,255,255,0.85);
}
.logo__icon span:nth-child(2),
.logo__icon span:nth-child(3) { opacity: 0.4; }

.logo__text em {
  color: var(--accent);
  font-style: normal;
}

/* Header right */
.header__right {
  display: flex; align-items: center; gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  transform: rotate(15deg);
}

.theme-toggle:active {
  transform: scale(0.92) rotate(15deg);
}

.theme-toggle__icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  transition: all 0.4s var(--ease);
}

/* Default (cool): show moon, hide sun */
.theme-toggle__icon--cool {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.theme-toggle__icon--warm {
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

/* Warm theme: show sun, hide moon */
[data-theme="warm"] .theme-toggle__icon--cool {
  opacity: 0;
  transform: scale(0.5) rotate(90deg);
}

[data-theme="warm"] .theme-toggle__icon--warm {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  stroke: #d97706;
}

[data-theme="warm"] .theme-toggle {
  border-color: rgba(217, 119, 6, 0.2);
  background: rgba(217, 119, 6, 0.06);
}

[data-theme="warm"] .theme-toggle:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
}

.header__count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.status-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 12px; font-weight: 600;
  color: #34d399;
  letter-spacing: 0.02em;
}

.status-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #34d399; }
  50% { opacity: 0.5; box-shadow: 0 0 16px #34d399, 0 0 4px #34d399; }
}

/* ================================================
   Hero
   ================================================ */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: 70vh;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow), 0 1px 0 inset rgba(255,255,255,0.15);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow), 0 1px 0 inset rgba(255,255,255,0.2);
}

.btn--primary:active { transform: translateY(0); }

.btn__icon svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Spotlight (hero right) */
.hero__spotlight {
  position: relative;
  perspective: 1200px;
}

.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
  animation: spotlightIn 1s var(--ease) both;
  animation-delay: 0.3s;
}

.spotlight-card.spotlight-card--exit {
  animation: spotlightOut 0.4s var(--ease) both;
}

@keyframes spotlightIn {
  from { opacity: 0; transform: rotateY(-10deg) rotateX(5deg) translateX(40px); }
  to { opacity: 1; transform: rotateY(-4deg) rotateX(2deg); }
}

@keyframes spotlightOut {
  from { opacity: 1; transform: rotateY(-4deg) rotateX(2deg); }
  to { opacity: 0; transform: rotateY(5deg) rotateX(-2deg) scale(0.96) translateX(-30px); }
}

.spotlight-card:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.spotlight-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.spotlight-card__info {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.spotlight-card__text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.spotlight-card__text p {
  color: var(--text-muted);
  font-size: 13px;
}

.spotlight-card__play {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.spotlight-card__play:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.spotlight-card__play svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* Floating badge on spotlight */
.spotlight-card__badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ================================================
   Library Section
   ================================================ */
.library {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) 100px;
}

.library__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.library__heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 10px;
  margin-left: 8px;
  border-radius: var(--radius-full);
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  vertical-align: middle;
}

/* Search */
.search-box {
  position: relative;
  width: min(320px, 100%);
}

.search-box__icon {
  position: absolute;
  top: 50%; left: 16px;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke var(--duration);
}

.search-box__input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 14px;
  transition: all var(--duration) var(--ease);
}

.search-box__input::placeholder { color: var(--text-dim); }

.search-box__input:focus {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.04);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.08);
}

.search-box:focus-within .search-box__icon {
  stroke: var(--accent);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ================================================
   Game Cards Grid
   ================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Single Game Card */
.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  transition: all var(--duration) var(--ease);
  animation: cardIn 0.5s var(--ease) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.06) inset;
}

/* Card cover / image area */
.game-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--card-bg, #1a1f35);
}

.game-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.4s;
}

.game-card:hover .game-card__img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

.game-card__cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--duration);
}

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

.game-card__symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: white;
  text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s var(--ease);
}

.game-card:hover .game-card__symbol {
  opacity: 0.6;
  transform: scale(1);
}

/* Play button on hover */
.game-card__play-btn {
  position: absolute;
  right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: white;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
}

.game-card__play-btn svg {
  width: 14px; height: 14px;
  fill: var(--accent);
}

.game-card:hover .game-card__play-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Card body */
.game-card__body {
  padding: 20px 22px 24px;
}

.game-card__meta {
  margin-bottom: 10px;
}

.game-card__category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--duration);
}

.game-card:hover .game-card__category {
  border-color: var(--card-accent, var(--accent));
  color: var(--card-accent, var(--accent));
  background: rgba(167, 139, 250, 0.08);
}

.game-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  transition: color var(--duration);
}

.game-card:hover .game-card__title {
  color: var(--card-accent, var(--accent));
}

.game-card__desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  min-height: 42px;
  margin-bottom: 18px;
}

/* Bottom link */
.game-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--duration);
}

.game-card__link:hover { color: var(--text); }

.game-card__link svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration) var(--ease);
}

.game-card__link:hover svg {
  transform: translateX(5px);
}

/* ================================================
   Empty State
   ================================================ */
.empty-state {
  grid-column: 1 / -1;
  padding: 80px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.08);
  margin-bottom: 20px;
}

.empty-state__icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.5);
  backdrop-filter: blur(10px);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
}

.footer__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.footer__info {
  color: var(--text-dim);
  font-size: 12px;
}

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px var(--gutter) 80px;
    gap: 40px;
    min-height: auto;
  }

  .hero__spotlight {
    max-width: 560px;
  }

  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .header__count { display: none; }

  .hero {
    padding: 48px var(--gutter) 60px;
  }

  .hero__title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero__desc { font-size: 15px; }

  .library__top {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box { width: 100%; }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card__cover { aspect-ratio: 16/9; }

  .spotlight-card {
    transform: none;
  }

  .spotlight-card:hover {
    transform: translateY(-4px);
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ================================================
   Reduced motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
