:root {
  --bg: #0b1020;
  --bg-2: #121a33;
  --card: #161f3d;
  --border: #24305385;
  --text: #e8ecf8;
  --muted: #9aa6c8;
  --accent: #6c5ce7;
  --accent-2: #38d6f0;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #1c2a55 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }
.brand-logo { border-radius: 8px; object-fit: contain; flex: none; }

.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); font-weight: 600; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 84px 0 64px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 780px; margin: 0 auto 28px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

.section { padding: 56px 0; }
.section.alt { background: rgba(255, 255, 255, 0.03); border-block: 1px solid var(--border); }

.section h2 { font-size: 1.9rem; margin: 0 0 22px; }
.section h3 { font-size: 1.2rem; margin: 28px 0 10px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.game-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.game-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card h3 { margin: 0; font-size: 1.15rem; }
.game-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.game-niche {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(56, 214, 240, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.game-play { margin-top: auto; color: var(--accent-2); font-weight: 700; }

.niche-list { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.niche-list a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.niche-list a:hover { color: var(--text); border-color: var(--accent-2); text-decoration: none; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.why h3 { margin-top: 0; }

.game-hero { text-align: left; padding-top: 40px; }
.game-hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center; }
.game-hero-media img { width: 100%; border-radius: var(--radius); display: block; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.game-hero-info h1 { margin: 8px 0 10px; }
.tagline { font-size: 1.15rem; color: var(--accent-2); font-weight: 600; }

.breadcrumb { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--muted); opacity: 0.6; }

.controls-list, .feature-list { padding-left: 20px; }
.controls-list li, .feature-list li { margin-bottom: 8px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 18px;
}
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq-item p { color: var(--muted); margin: 0 0 14px; }

.site-footer { border-top: 1px solid var(--border); padding: 30px 0 44px; text-align: center; }
.site-footer p { color: var(--muted); font-size: 0.9rem; max-width: 760px; margin: 0 auto 14px; }
.site-footer nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 0.9rem; }

@media (max-width: 820px) {
  .game-hero-inner { grid-template-columns: 1fr; }
  .site-header nav { gap: 12px; }
}