:root {
  color-scheme: dark;
  --bg: #0b0c15;
  --surface: #131522;
  --surface-raised: #1a1d2e;
  --text: #f7f7fb;
  --muted: #a0a3b7;
  --soft: #72768e;
  --line: #292c3e;
  --accent: #b8a6ff;
  --accent-bright: #d0c4ff;
  --lime: #d7ff63;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse 60% 380px at 76% 3%, rgba(91, 63, 168, .19), transparent 75%),
    radial-gradient(ellipse 45% 420px at 0% 20%, rgba(58, 48, 115, .12), transparent 75%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
main, .header-inner, .site-footer {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

/* Navigation */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(11,12,21,.72);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 44px;
}
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img { display: block; width: 42px; height: 42px; }
.brand-wordmark {
  font-size: 1.53rem;
  font-weight: 950;
  letter-spacing: -.065em;
  line-height: 1;
}
.brand-dot, .heading-dot { color: var(--lime); }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
}
.primary-nav a, .site-footer nav a {
  color: var(--muted);
  font-size: .91rem;
  font-weight: 700;
  transition: color .2s ease;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"], .site-footer nav a:hover { color: var(--text); }
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid #545075;
  border-radius: 10px;
  color: #e7e0ff;
  background: #211d36;
  font-size: .86rem;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}
.header-cta:hover { background: #302947; transform: translateY(-2px); }
.header-cta span { font-size: 1.12rem; font-weight: 400; }

/* Shared type and actions */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-bright);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-line { width: 22px; height: 2px; background: var(--lime); }
h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  font-weight: 950;
  letter-spacing: -.075em;
  line-height: .99;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.055em; line-height: 1.12; }
h3 { letter-spacing: -.035em; }
.hero-text {
  max-width: 570px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.17rem);
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 49px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 850;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.07); }
.button-primary { color: #161720; background: var(--lime); }
.button-secondary { color: var(--text); border-color: #484459; background: #211f30; }
.button span { font-size: 1.1rem; font-weight: 400; }
.text-link, .section-link {
  color: var(--text);
  font-size: .91rem;
  font-weight: 800;
}
.text-link span, .section-link span { margin-left: 6px; color: var(--lime); }
.text-link:hover, .section-link:hover { color: var(--lime); }

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .91fr);
  align-items: center;
  gap: clamp(32px, 5vw, 82px);
  min-height: 505px;
  padding: 48px 0 58px;
}
.home-hero h1 span { color: var(--accent); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 41px;
  color: var(--soft);
  font-size: .8rem;
  font-weight: 650;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px var(--lime); }
.featured-panel {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #4b4668;
  border-radius: 22px;
  background: #1a1b2c;
  box-shadow: 0 27px 90px rgba(0,0,0,.28), 0 0 55px rgba(115,92,201,.11);
  transition: transform .25s ease, border-color .25s ease;
}
.featured-panel:hover { transform: translateY(-5px); border-color: #8a78cb; }
.featured-panel:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: linear-gradient(180deg, rgba(0,0,0,.22), transparent);
  z-index: 1;
  pointer-events: none;
}
.featured-panel > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.62;
  object-fit: cover;
  background: #17172a;
}
.featured-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(14,13,27,.82);
  color: var(--text);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.featured-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 25px 25px;
}
.featured-genre { color: var(--accent-bright); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.featured-info h2 { margin: 7px 0 5px; font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.featured-info p { margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.4; }
.featured-arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #171720;
  background: var(--lime);
  font-size: 1.3rem;
}
.section-block { padding: 28px 0 75px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; }
.section-link { padding-bottom: 6px; white-space: nowrap; }

/* Scalable game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 19px;
}
.single-game-grid { grid-template-columns: minmax(0, 420px); }
.related-games .game-grid, .category-results .game-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2a2d3e;
  border-radius: 17px;
  background: var(--surface);
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: #696085; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.game-cover-link { position: relative; display: block; overflow: hidden; }
.game-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #17172a; transition: transform .3s ease; }
.game-card:hover .game-cover { transform: scale(1.035); }
.cover-status {
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #151721;
  background: var(--lime);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.cover-status-soon { color: var(--text); background: rgba(30,29,45,.9); border: 1px solid #706982; }
.game-card-body { padding: 18px 19px 20px; }
.game-kicker { margin-bottom: 9px; color: var(--accent-bright); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-kicker span { padding: 0 3px; color: var(--soft); }
.game-card h3 { margin: 0 0 7px; font-size: 1.28rem; }
.game-card h3 a:hover { color: var(--accent-bright); }
.game-tagline { min-height: 2.9em; margin-bottom: 16px; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: .81rem; font-weight: 850; }
.card-link span { color: var(--lime); font-size: 1rem; }
.card-link:hover { color: var(--lime); }

/* Categories */
.category-section { padding-top: 11px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.category-card {
  display: block;
  min-height: 178px;
  padding: 23px 26px;
  border: 1px solid #343146;
  border-radius: 17px;
  background: linear-gradient(135deg, #242034, #161824 72%);
  transition: border-color .2s ease, transform .2s ease;
}
.category-card:nth-child(even) { background: linear-gradient(135deg, #23293b, #161824 72%); }
.category-card:hover { transform: translateY(-3px); border-color: #8e7dc4; }
.category-index { color: var(--accent-bright); font-size: .7rem; font-weight: 850; letter-spacing: .13em; }
.category-title { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; font-size: 1.33rem; font-weight: 850; letter-spacing: -.035em; }
.category-title span { color: var(--lime); font-weight: 400; }
.category-card p { max-width: 420px; margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }

/* Game catalog and supporting pages */
.page-intro, .hero.compact-hero { max-width: 790px; padding: 72px 0 30px; }
.page-intro h1, .compact-hero h1 { margin-bottom: 17px; font-size: clamp(3rem, 6.4vw, 5.5rem); }
.catalog-section { padding-top: 21px; min-height: 360px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.catalog-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #141621;
  font-size: .84rem;
  font-weight: 750;
}
a.catalog-chip:hover { color: var(--text); border-color: #696080; }
.catalog-chip-active { color: #1a1b20; border-color: var(--lime); background: var(--lime); }
.catalog-chip b { font-size: .75rem; }
.search-box {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  width: min(100%, 270px);
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--soft);
  background: #151723;
}
.search-box:focus-within { border-color: var(--accent); color: var(--text); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: .85rem; }
.search-box input::placeholder { color: var(--soft); }
.no-results { padding: 60px 16px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }

/* Game pages */
.game-detail-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(310px,.8fr);
  align-items: center;
  gap: clamp(28px,5vw,70px);
  padding: 68px 0 55px;
}
.game-detail-hero h1 { color: var(--text); }
.detail-cover { display: block; width: 100%; border: 1px solid #454155; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.fact-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 28px; }
.fact-row span { padding: 8px 11px; border: 1px solid #3e3b50; border-radius: 8px; color: var(--accent-bright); background: #1b1a2a; font-size: .78rem; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-bottom: 74px; }
.content-panel { padding: 27px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.content-panel h2 { margin: 0 0 14px; font-size: 1.4rem; }
.content-panel p, .content-panel li { color: var(--muted); line-height: 1.72; }
.content-panel a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.content-panel a:hover { color: var(--lime); }
.content-panel strong { color: var(--text); }
.content-panel ol, .content-panel ul { padding-left: 21px; margin-bottom: 0; }
.content-panel li + li { margin-top: 8px; }
.faq-item + .faq-item { margin-top: 18px; }
.faq-item h3 { margin-bottom: 6px; font-size: 1rem; }
.prose-panel { max-width: 850px; margin: 0 0 70px; }
.prose-panel h2:not(:first-child) { margin-top: 27px; }
.prose-panel p:last-child { margin-bottom: 0; }
.policy-updated { margin: -9px 0 0; color: var(--soft); font-size: .83rem; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 33px 0 29px;
  border-top: 1px solid var(--line);
}
.site-footer .brand img { width: 38px; height: 38px; }
.site-footer .brand-wordmark { font-size: 1.36rem; }
.footer-main p { margin: 14px 0 0; color: var(--muted); font-size: .87rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; padding-top: 11px; }
.copyright { grid-column: 1 / -1; margin: 14px 0 0; color: var(--soft); font-size: .76rem; }

@media (max-width: 950px) {
  .home-hero { grid-template-columns: 1fr 1fr; gap: 27px; }
  .home-hero h1 { font-size: clamp(2.65rem, 5.4vw, 5rem); }
  .primary-nav { gap: 17px; }
  .header-inner { gap: 25px; }
  .header-cta { display: none; }
}
@media (max-width: 720px) {
  main, .header-inner, .site-footer { width: min(var(--max), calc(100% - 34px)); }
  .header-inner { min-height: 73px; flex-wrap: wrap; gap: 0 20px; padding: 11px 0 0; }
  .brand img { width: 37px; height: 37px; }
  .brand-wordmark { font-size: 1.35rem; }
  .primary-nav { width: 100%; flex: auto; gap: 23px; overflow-x: auto; padding: 14px 0; white-space: nowrap; }
  .primary-nav a { font-size: .82rem; }
  .home-hero, .game-detail-hero { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; padding: 50px 0 52px; gap: 35px; }
  .home-hero h1 { font-size: clamp(3.1rem, 11.5vw, 5.5rem); }
  .hero-note { margin-top: 25px; }
  .featured-panel > img { aspect-ratio: 16 / 10; }
  .section-block { padding: 18px 0 58px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .category-grid, .detail-layout { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column-reverse; align-items: stretch; }
  .search-box { width: 100%; }
  .page-intro, .hero.compact-hero { padding-top: 49px; }
  .game-detail-hero { padding: 48px 0 37px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; padding-top: 0; }
  .copyright { margin-top: 0; }
}
@media (max-width: 520px) {
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 1.85rem; }
  .section-link { font-size: .8rem; }
  .game-card-body { padding: 13px 13px 15px; }
  .game-kicker { font-size: .63rem; }
  .game-card h3 { font-size: 1.05rem; }
  .game-tagline { font-size: .77rem; }
  .cover-status { top: 8px; right: 8px; padding: 5px 7px; font-size: .58rem; }
  .featured-info { padding: 17px; }
  .featured-info p { font-size: .83rem; }
  .featured-arrow { width: 34px; height: 34px; }
  .content-panel { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
