:root {
  --bg: #011213;
  --bg-2: #06201c;
  --bg-3: #0a1c1a;
  --surface: #142425;
  --surface-2: #1b2e2c;
  --border: #1f3b36;
  --green-deep: #00221f;
  --green: #056643;
  --green-bright: #0cca7e;
  --green-glow: rgba(12, 202, 126, .45);
  --gold: #ffd301;
  --gold-2: #ffc400;
  --gold-dark: #e0b400;
  --on-gold: #04211d;
  --text: #f3f8f6;
  --text-dim: #9bb1ab;
  --text-mut: #7d938d;
  --brand-pink: #ff79c9;
  --brand-cyan: #58d4ff;
  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--font); font-weight: 700; font-size: 15px;
  line-height: 1.2; text-align: center; cursor: pointer; border: 0;
  border-radius: 999px; padding: 14px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  max-width: 100%;
}
.reg-mobile, .cta-desktop { white-space: nowrap; }
.btn--primary {
  background: linear-gradient(180deg, #ffe04a 0%, var(--gold) 45%, var(--gold-2) 100%);
  color: var(--on-gold); box-shadow: 0 10px 22px -10px rgba(255, 211, 1, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(255, 211, 1, .85); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--lg { padding: 17px 40px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 18, 19, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 59, 54, .6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cta-desktop { display: none; }
.reg-mobile { padding: 9px 15px; font-size: 13px; }
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); cursor: pointer; padding: 0 10px;
}
.burger span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
  background: var(--bg-2); border-left: 1px solid var(--border);
  transform: translateX(105%); transition: transform .3s ease; z-index: 70;
  display: flex; flex-direction: column; padding: 22px 20px; gap: 6px; overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.nav-drawer__close { background: none; border: 0; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer; }
.nav-drawer a { padding: 13px 12px; border-radius: 10px; color: var(--text-dim); font-weight: 600; font-size: 15px; }
.nav-drawer a:hover, .nav-drawer a.is-active { background: var(--surface); color: var(--text); }
.nav-drawer .btn { margin-top: 14px; }
.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; visibility: hidden;
  transition: opacity .3s ease; z-index: 60;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 70% 30%, #0a6a48 0%, #034031 38%, var(--green-deep) 70%, var(--bg) 100%); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; z-index: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(95deg, rgba(1, 18, 19, .92) 8%, rgba(1, 22, 20, .55) 38%, rgba(1, 18, 19, 0) 60%);
}
.hero__inner { position: relative; z-index: 3; display: flex; align-items: center; min-height: 340px; padding: 48px 18px; }
.hero__copy { max-width: 460px; }
.hero__title {
  font-weight: 800; font-size: clamp(26px, 5.4vw, 46px); line-height: 1.08;
  letter-spacing: -.5px; color: var(--gold); text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.hero__title span { color: #fff; }
.hero__cta { margin-top: 24px; }

/* ---------- Section shell ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section-title {
  text-align: center; font-weight: 700; font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 30px; color: #fff;
}

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.game-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--surface); box-shadow: var(--shadow);
  transition: transform .18s ease;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card:hover { transform: translateY(-4px) scale(1.02); }
.game-card::after {
  content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; background: rgba(3, 25, 21, .55); opacity: 0;
  transition: opacity .2s ease;
}
.game-card:hover::after { opacity: 1; }
.center-cta { text-align: center; margin-top: 30px; }

/* ---------- Promo banner ---------- */
.promo {
  position: relative; margin: 40px 0 14px; border-radius: 22px; overflow: visible;
  background: radial-gradient(90% 130% at 50% 0%, #0c7a52 0%, #064634 45%, #03281f 100%);
  text-align: center; padding: 44px 22px 44px; box-shadow: var(--shadow);
}
.promo__img {
  width: 172px; height: auto; margin: -82px auto 14px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .5)); position: relative; z-index: 1;
}
.promo__title {
  font-weight: 800; font-size: clamp(20px, 3.4vw, 30px); text-transform: uppercase;
  color: var(--gold); line-height: 1.18; letter-spacing: .3px;
}
.promo__title span { color: #fff; }
.promo .btn { margin-top: 22px; }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: 1fr; gap: 34px; text-align: center; }
.reason__icon {
  width: 124px; height: 110px; object-fit: contain; margin: 0 auto 10px;
  filter: drop-shadow(0 10px 18px var(--green-glow));
}
.reason h3, .reason__name { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.reason p { color: var(--text-dim); max-width: 280px; margin: 0 auto; font-size: 14.5px; }

/* ---------- SEO content ---------- */
.seo { background: var(--bg); padding: 18px 0 60px; }
.seo .container { max-width: 920px; }
.seo h1 {
  font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; line-height: 1.15;
  margin: 22px 0 18px; color: #fff; letter-spacing: -.3px;
}
.seo h2 {
  font-size: clamp(21px, 3vw, 27px); font-weight: 700; line-height: 1.25;
  margin: 42px 0 14px; padding-left: 16px; position: relative; color: #fff;
}
.seo h2::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px;
  border-radius: 4px; background: linear-gradient(180deg, var(--gold), var(--green-bright));
}
.seo h3 { font-size: clamp(17px, 2.2vw, 20px); font-weight: 700; margin: 28px 0 10px; color: var(--gold); }
.seo p { color: var(--text-dim); margin: 0 0 16px; }
.seo strong { color: #fff; font-weight: 700; }
.seo a { color: var(--brand-cyan); text-decoration: underline; text-underline-offset: 3px; }
.seo ul, .seo ol { margin: 0 0 18px; padding-left: 4px; }
.seo ul li, .seo ol li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-dim); }
.seo ul li::before {
  content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 3px rgba(12, 202, 126, .18);
}
.seo ol { counter-reset: li; }
.seo ol li { counter-increment: li; }
.seo ol li::before {
  content: counter(li); position: absolute; left: 0; top: .05em;
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--border); color: var(--gold); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.seo em { color: var(--text); font-style: italic; }

.table-scroll { overflow-x: auto; margin: 0 0 22px; border-radius: 12px; border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 14.5px; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table-scroll thead th { background: var(--green); color: #fff; font-weight: 700; white-space: nowrap; }
.table-scroll tbody tr:nth-child(even) { background: rgba(20, 36, 37, .5); }
.table-scroll tbody td { color: var(--text-dim); }
.table-scroll tbody tr:hover { background: rgba(12, 202, 126, .07); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col p { color: var(--text-mut); font-size: 13px; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-dim); font-size: 14px; }
.footer-col ul a:hover { color: var(--gold); }
.footer-disclaimer p { color: var(--text-mut); font-size: 12.5px; line-height: 1.7; }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.footer-bottom p { color: var(--text-mut); font-size: 12.5px; }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12.5px;
}
.age-badge b {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 2px solid #ff5a5a; color: #ff7a7a; font-size: 12px; font-weight: 800;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(940px, calc(100% - 28px)); background: #fff; color: #1a1a1a;
  border-radius: 16px; padding: 16px 20px; display: flex; gap: 16px; align-items: center;
  flex-wrap: wrap; justify-content: space-between; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6);
  z-index: 80;
}
.cookie p { font-size: 13px; line-height: 1.5; flex: 1 1 380px; }
.cookie a { color: #0a7a4f; text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie .btn { padding: 11px 24px; font-size: 14px; }
.cookie .btn--ghost { background: #eee; color: #1a1a1a; border: 1px solid #ddd; }
.cookie[hidden] { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 0; }
.notfound__code {
  font-size: clamp(80px, 18vw, 150px); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--brand-pink), var(--brand-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { font-size: clamp(22px, 4vw, 32px); margin: 12px 0 10px; color: #fff; }
.notfound p { color: var(--text-dim); max-width: 460px; margin: 0 auto 26px; }
.notfound__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .reasons { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 880px) {
  .games-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .hero__inner { min-height: 420px; }
  .promo { padding: 52px 22px 56px; }
  .promo__img { width: 208px; margin-top: -100px; }
}
@media (min-width: 980px) {
  .burger, .reg-mobile { display: none; }
  .cta-desktop { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
