:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  background: linear-gradient(180deg, #020617 0%, #101a34 60%, #16264b 100%);
  color: #e2e8f0;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 35%), linear-gradient(180deg, #020617 0%, #101a34 60%, #16264b 100%);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea, select {
  font: inherit;
}
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%), rgba(8, 16, 37, 0.72);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(12, 23, 50, 0.92);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 20;
}
.brand-bar {
  display: flex;
  flex-direction: column;
}
.brand {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  color: #f8fafc;
}
.brand-tag {
  font-size: 0.85rem;
  color: #94a3b8;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}
.mobile-menu {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}
main {
  flex: 1;
}
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}
.hero-copy {
  max-width: 680px;
}
.hero-copy .eyebrow {
  margin: 0 0 1rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.hero-section h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f8fafc;
}
.hero-section p {
  margin: 1.25rem 0 1.75rem;
  max-width: 44rem;
  color: #cbd5e1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.hero-actions .btn {
  min-width: 170px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stat-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 1.35rem;
  display: grid;
  gap: 0.35rem;
}
.stat-card strong {
  font-size: 1.05rem;
  color: #f8fafc;
}
.stat-card span {
  color: #94a3b8;
  font-size: 0.95rem;
}
.hero-preview {
  display: grid;
  gap: 1rem;
}
.hero-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 100%);
  border: 1px solid rgba(96, 165, 250, 0.18);
  padding: 1.7rem;
  min-height: 150px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}
.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: #ffffff;
}
.hero-card p {
  margin: 0;
  color: #cbd5e1;
}
.hero-card-accent {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(56, 189, 248, 0.16) 100%);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: none;
  padding: 0.95rem 1.6rem;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
  font-weight: 700;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.18);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}
.content-block {
  padding: 2rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.75rem;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.1vw, 2.8rem);
}
.section-header a {
  color: #2563eb;
  font-weight: 700;
}
.game-grid,
.related-grid,
.category-grid {
  display: grid;
  gap: 1rem;
}
.game-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.game-card,
.category-card,
.ad-box,
.leaderboard-card,
.auth-card,
.feature-card {
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(96, 165, 250, 0.14);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}
.game-card {
  display: grid;
  gap: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
  border-color: rgba(59, 130, 246, 0.32);
}
.game-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  background: rgba(59, 130, 246, 0.12);
}
.game-badge::before {
  content: '';
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}
.game-badge.puzzle { background: rgba(219, 234, 254, 0.95); color: #1d4ed8; }
.game-badge.board-games { background: rgba(239, 246, 255, 0.96); color: #2563eb; }
.game-badge.card-games { background: rgba(254, 242, 255, 0.94); color: #7c3aed; }
.game-badge.arcade { background: rgba(254, 243, 199, 0.95); color: #d97706; }
.game-badge.casual { background: rgba(217, 249, 157, 0.95); color: #4d7c0f; }
.game-badge.sports { background: rgba(254, 215, 213, 0.95); color: #b91c1c; }
.game-card h3,
.category-card h3 {
  margin: 0;
}
.game-card p {
  margin: 0;
  color: #475569;
}
.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.game-card small {
  color: #64748b;
}
.category-card {
  display: grid;
  place-items: center;
  padding: 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eff2ff 100%);
  font-weight: 700;
  color: #0f172a;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}
.category-card::before {
  content: '';
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.16);
  color: #2563eb;
  font-size: 1.25rem;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}
.category-card.category-puzzle::before { content: '🧩'; }
.category-card.category-arcade::before { content: '🚀'; }
.category-card.category-casual::before { content: '🎮'; }
.category-card.category-board-games::before { content: '♟️'; }
.category-card.category-card-games::before { content: '🃏'; }
.category-card.category-sports::before { content: '🏀'; }
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.sitemap-grid h2 {
  margin: 0 0 0.85rem;
  color: #0f172a;
}
.sitemap-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sitemap-grid li {
  margin-bottom: 0.75rem;
}
.sitemap-grid a {
  color: #2563eb;
  transition: color 0.2s ease;
}
.sitemap-grid a:hover {
  color: #1d4ed8;
}
.sitemap-note {
  margin-top: 1.5rem;
  color: #475569;
}
.ad-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.ad-box {
  min-height: 140px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px dashed #cbd5e1;
  color: #334155;
  text-align: center;
  padding: 1.25rem;
}
.two-column {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
}
.feature-card {
  display: grid;
  gap: 0.75rem;
}
.feature-card strong {
  font-size: 1.1rem;
}
.category-card {
  display: grid;
  place-items: center;
  padding: 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  font-weight: 700;
  color: #0f172a;
}
.site-footer {
  padding: 2rem 1.5rem;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a {
  color: rgba(226, 232, 240, 0.9);
}
.site-footer p {
  margin: 0;
}
.game-page .game-header {
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1rem;
  background: rgba(8, 15, 31, 0.92);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}
.game-page .game-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}
.game-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.game-container {
  min-height: 560px;
  background: rgba(8, 15, 31, 0.95);
  border-top: 1px solid rgba(96, 165, 250, 0.14);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  padding: 1.5rem;
}
.loading-box {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: #f8fafc;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(8, 15, 31, 0.95));
  border-radius: 24px;
}
.related-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.leaderboard-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.game-details {
  padding: 2rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}
.game-details h2 {
  margin-top: 0;
  color: #f8fafc;
}
.game-details p {
  color: #cbd5e1;
}
.leaderboard-card {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.95);
}
.leaderboard-card ol {
  padding-left: 1.2rem;
  margin: 0;
}
.auth-page {
  padding: 2rem 1.5rem;
  display: grid;
  place-items: center;
}
.auth-card {
  max-width: 460px;
  width: 100%;
  display: grid;
  gap: 1rem;
}
.auth-card label {
  font-weight: 600;
}
.nav-open {
  display: flex !important;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.98);
  position: absolute;
  top: 100%;
  left: 0;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
}
@media (max-width: 940px) {
  .hero-section,
  .two-column {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }
  .site-nav {
    display: none;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .hero-section {
    padding-top: 2rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .content-block {
    padding: 1.5rem;
  }
  .stat-card {
    padding: 1rem;
  }
}

.auth-card input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #d8dee9;
}
.info-box {
  background: #eef3fb;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid #d8e2f5;
}
.hidden {
  display: none;
}
.page-center {
  justify-content: center;
}
footer p {
  margin: 0;
}
@media (max-width: 900px) {
  .hero-section,
  .two-column,
  .leaderboard-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
  }
  .mobile-menu {
    display: inline-flex;
  }
}
.game-card button {
  border: none;
  background: #f8fafd;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  cursor: pointer;
}
.game-card small {
  color: #7c88a3;
}
