:root {
  --bg: #070b1a;
  --bg-2: #0d1430;
  --panel: rgba(14, 20, 44, 0.72);
  --ink: #eaf0ff;
  --muted: #8b93bd;
  --accent: #46e0ff;
  --accent-2: #5cf2c2;
  --accent-3: #ff5c8a;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

/* animated background glow + grid */
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(70,224,255,0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255,92,138,0.12), transparent 55%),
    radial-gradient(1000px 700px at 50% 120%, rgba(92,242,194,0.10), transparent 60%),
    var(--bg);
}
.bg::after {
  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: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}

/* header */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 22px 24px;
}
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: 0.14em;
  color: var(--ink); text-decoration: none;
}
.brand span { color: var(--accent); }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; }
.nav a:hover { color: var(--ink); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { text-align: center; padding: 56px 0 36px; }
.hero h1 {
  margin: 0; font-size: clamp(34px, 6vw, 64px); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.05;
}
.hero h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 19px); margin: 18px auto 28px; max-width: 560px; line-height: 1.6; }
.cta {
  display: inline-block; text-decoration: none; font-weight: 700;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; background: rgba(255,255,255,0.04);
  transition: transform 0.08s ease, border-color 0.2s ease, background 0.2s ease;
}
.cta:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(70,224,255,0.08); }

/* ads */
.ad-rail { display: flex; justify-content: center; align-items: center; min-height: 90px; margin: 8px 0 28px; }
.ad-slot { width: 100%; max-width: 728px; }
.ad-placeholder {
  width: 100%; max-width: 728px; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; background: rgba(255,255,255,0.02);
}
.ad-live .ad-placeholder { display: none; }
.ad-rail:not(.ad-live) .ad-slot { display: none !important; }

/* games */
.section-title {
  text-align: center; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); font-size: 14px; margin: 10px 0 22px;
}
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding-bottom: 60px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  backdrop-filter: blur(6px);
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(70,224,255,0.5);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.thumb { display: block; line-height: 0; }
.thumb svg { width: 100%; height: auto; display: block; }
.thumb--soon {
  aspect-ratio: 320 / 200; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px);
}
.thumb--soon span { font-size: 56px; font-weight: 800; color: var(--muted); opacity: 0.5; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 22px; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-body .how { font-size: 12.5px; opacity: 0.82; }
.card-body .how strong { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 11px; letter-spacing: 0.04em; color: var(--accent);
  border: 1px solid rgba(70,224,255,0.3); border-radius: 999px; padding: 3px 9px;
}
.play {
  align-self: flex-start; margin-top: auto; text-decoration: none; font-weight: 700;
  color: #04121b; background: linear-gradient(135deg, var(--accent), #6a7bff);
  border-radius: 11px; padding: 10px 18px;
  transition: filter 0.15s ease, transform 0.06s ease;
}
.play:hover { filter: brightness(1.07); }
.play:active { transform: translateY(1px); }
.card--soon { opacity: 0.82; }
.card--soon .card-body h3 { color: var(--muted); }

/* hero pill */
.pill {
  display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--accent-2);
  border: 1px solid rgba(92,242,194,0.3); background: rgba(92,242,194,0.06);
  border-radius: 999px; padding: 6px 14px;
}

/* features */
.features {
  display: grid; gap: 16px; margin: 4px 0 50px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 18px; text-align: center; backdrop-filter: blur(6px);
}
.ficon {
  width: 46px; height: 46px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 12px; background: rgba(70,224,255,0.1); border: 1px solid rgba(70,224,255,0.25);
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* prose sections (about, faq) */
.prose { padding: 30px 0 10px; max-width: 760px; margin: 0 auto; }
.prose > p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin: 0 auto 16px; text-align: center; }
.faq { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 6px; }
.qa { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.qa h3 { margin: 0 0 8px; font-size: 16px; }
.qa p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.qa a, .prose a { color: var(--accent); }

/* footer */
.site-foot {
  border-top: 1px solid var(--line);
  max-width: 1080px; margin: 56px auto 0; padding: 30px 24px 26px;
  color: var(--muted); font-size: 13px;
}
.foot-cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand.small { font-size: 18px; }
.foot-tag { margin: 8px 0 0; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.foot-base { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); opacity: 0.8; }
