:root {
  --bg: #0d0e22;
  --bg-deep: #090a18;
  --panel: #171936;
  --panel-2: #1d2042;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3fb;
  --muted: #9ea4c9;
  --blue: #63a4f8;
  --violet: #9a74f1;
  --mint: #76efcd;
  --lime: #70ff6b;
  --grad: linear-gradient(100deg, #63a4f8 0%, #9a74f1 100%);
  --grad-logo: linear-gradient(100deg, #76efcd 0%, #70ff6b 100%);
  --radius: 20px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 600px at 78% -10%, rgba(154, 116, 241, 0.22), transparent 62%),
    radial-gradient(760px 520px at 6% 12%, rgba(99, 164, 248, 0.14), transparent 64%),
    linear-gradient(180deg, #0d0e22 0%, #0b0c1d 60%, #090a18 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; color: var(--mint); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--h);
  padding: 0 32px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #0b0c1d;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 30px rgba(99, 124, 248, 0.26);
  white-space: nowrap;
}
.btn:hover { color: #0b0c1d; transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 18px 38px rgba(120, 124, 248, 0.38); }
.btn:active { transform: translateY(0); }
.btn-sm { --h: 44px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-lg { --h: 62px; padding: 0 44px; font-size: 19px; border-radius: 16px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(118, 239, 205, 0.5); filter: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(9, 10, 24, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { flex: 0 0 auto; }
.logo img { width: 108px; height: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 9px 16px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.hero { padding: 28px 0 10px; }
.hero .wrap { position: relative; }
.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: auto; display: block; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, #090a18 4%, rgba(9, 10, 24, 0.9) 32%, rgba(9, 10, 24, 0.12) 72%);
}
.hero-inner {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 58px);
  top: 50%;
  transform: translateY(-50%);
  width: min(48%, 580px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: clamp(11px, 1vw, 12.5px);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(112, 255, 107, 0.16);
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
}
.hero-lead {
  margin: 0 0 26px;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.6;
  color: #c9cde8;
}
.hero-lead strong { color: #fff; font-weight: 600; }

.lobby { padding: 56px 0 10px; }
.lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.lobby-head h2 { margin: 0; border: 0; padding: 0; font-size: clamp(23px, 2.6vw, 31px); display: flex; align-items: center; gap: 14px; }
.lobby-head h2::before {
  content: "";
  width: 5px;
  height: 30px;
  border-radius: 4px;
  background: var(--grad);
}
.lobby-head a { font-size: 15px; color: var(--muted); }
.lobby-head a:hover { color: var(--mint); }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 16px;
}
.game {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.game img { width: 100%; height: 100%; object-fit: cover; }
.game .name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 10px 10px;
  background: linear-gradient(0deg, rgba(9, 10, 24, 0.92) 28%, rgba(9, 10, 24, 0) 100%);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7eaff;
  text-align: center;
  line-height: 1.3;
}
.game::after {
  content: "Play now";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  display: grid;
  place-items: center;
  min-width: 118px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--grad);
  color: #0b0c1d;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.game::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(9, 10, 24, 0.66);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.game:hover { transform: translateY(-5px); border-color: rgba(154, 116, 241, 0.6); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.game:hover::before, .game:hover::after { opacity: 1; }
.game:hover::after { transform: translate(-50%, -50%) scale(1); }
.lobby-more { display: flex; justify-content: center; padding: 34px 0 6px; }

main { padding: 36px 0 20px; }
.article {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 52px 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 25, 54, 0.92) 0%, rgba(14, 15, 36, 0.92) 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.article > section + section { margin-top: 8px; }

h2 {
  margin: 44px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(23px, 2.7vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 { margin: 32px 0 14px; font-size: clamp(18px, 2vw, 22px); line-height: 1.35; font-weight: 600; color: #fff; }
.article h1 {
  margin: 0 0 22px;
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.article h1 strong { font-weight: 700; background: var(--grad-logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 strong, h3 strong { font-weight: inherit; color: var(--mint); }
p { margin: 0 0 18px; color: #d2d7f0; }
p strong, li strong { color: #fff; font-weight: 600; }

ul, ol { margin: 0 0 22px; padding-left: 0; list-style: none; }
ul li, ol li { position: relative; margin: 0 0 12px; padding-left: 34px; color: #d2d7f0; }
ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-logo);
}
ol { counter-reset: step; }
ol li { padding-left: 46px; }
ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(99, 164, 248, 0.14);
  border: 1px solid rgba(99, 164, 248, 0.3);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.table-wrap {
  margin: 0 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 10, 24, 0.5);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 15.5px; }
thead th {
  background: rgba(154, 116, 241, 0.14);
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); color: #cbd0ea; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(99, 164, 248, 0.06); }
tbody td:first-child { color: #fff; font-weight: 600; }



.faq-item {
  margin: 0 0 12px;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 10, 24, 0.45);
}
.faq-item h3 { margin: 0 0 10px; font-size: 18px; }
.faq-item p:last-child { margin-bottom: 0; }

.site-footer {
  margin-top: 56px;
  padding: 44px 0 110px;
  border-top: 1px solid var(--line);
  background: rgba(9, 10, 24, 0.7);
}
.site-footer .wrap { display: grid; gap: 20px; justify-items: center; text-align: center; }
.site-footer .logo img { width: 96px; }
.age { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--mint); color: var(--mint); font-weight: 700; font-size: 15px; }
.disclaimer { max-width: 780px; margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.66; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(9, 10, 24, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game, .btn { transition: none; }
}

@media (max-width: 980px) {
  .article { padding: 38px 28px 44px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .site-header .btn-sm { margin-left: auto; }
  .hero { padding: 16px 0 0; }
  .hero-media { border-radius: 18px; }
  .hero-media::after { background: linear-gradient(0deg, #090a18 3%, rgba(9, 10, 24, 0.1) 58%); }
  .hero-inner { position: static; transform: none; width: 100%; padding: 26px 2px 10px; }
  .games { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
  .article { padding: 28px 18px 34px; border-radius: 16px; }
  h2 { margin-top: 36px; }
  .sticky-cta { display: block; }
}
