:root {
  --bg: #07131c;
  --bg-2: #0a1b27;
  --card: #102736;
  --card-2: #143244;
  --line: rgba(176, 224, 204, 0.14);
  --text: #e8f6ef;
  --muted: #8eaea0;
  --emerald: #2ee59a;
  --emerald-2: #14b874;
  --emerald-ink: #042318;
  --gold: #f0d08a;
  --gold-2: #c9a15b;
  --ink: #041016;
  --danger: #ff6b81;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --header: 74px;
  --max: 1160px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(46, 229, 154, 0.08), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(240, 208, 138, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8ff7c8; }
button, input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--emerald);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(7, 19, 28, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 92px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a, .drawer a.navlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"], .drawer a.navlink:hover, .drawer a.navlink[aria-current="page"] {
  background: rgba(46, 229, 154, 0.12);
  color: var(--emerald);
}
.nav svg, .drawer svg { width: 16px; height: 16px; flex: 0 0 auto; }
.header-cta { display: flex; gap: 8px; margin-left: auto; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary { background: linear-gradient(180deg, #3df0a6, #12b874); color: var(--emerald-ink); }
.btn-primary:hover { color: var(--emerald-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(232, 246, 239, 0.28); }
.btn-ghost:hover { color: var(--text); border-color: var(--emerald); }
.btn-gold { background: linear-gradient(180deg, #ffe3a8, #e0b45d); color: #2a1c04; }
.btn-gold:hover { color: #2a1c04; }
.btn-block { width: 100%; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 50;
}
.drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: #0c1e2b;
  border-right: 1px solid var(--line);
  padding: 18px 16px 28px;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform .22s ease;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer a.navlink { display: flex; width: 100%; border-radius: 12px; padding: 12px; }
.drawer .header-cta { margin: 16px 0 0; flex-direction: column; }

.hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: end;
  background: #041018;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 14, 22, 0.92) 0%, rgba(4, 14, 22, 0.72) 42%, rgba(4, 14, 22, 0.25) 100%),
    linear-gradient(180deg, rgba(4, 14, 22, 0.15), rgba(7, 19, 28, 1));
  z-index: -1;
}
.hero-copy { padding: 72px 0 48px; max-width: 640px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}
.lede { color: #d5ebe2; font-size: 18px; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.section { padding: 56px 0; }
.section h1, .section h2, .section h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; }
.section h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 14px; }
.section h2 { font-size: clamp(26px, 3vw, 36px); margin: 40px 0 16px; }
.prose > h2:first-child,
.wrap > h2:first-child { margin-top: 0; }
.section h3 { font-size: 22px; margin: 28px 0 12px; }
.intro { font-size: 18px; color: #d7eee4; max-width: 760px; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.eyebrow {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.band { background: linear-gradient(180deg, rgba(16, 39, 54, 0.55), rgba(16, 39, 54, 0.2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.split.reverse { grid-template-columns: 0.85fr 1.15fr; }
.stack { display: grid; gap: 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-5 { grid-template-columns: repeat(5, 1fr); }
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.game-card:hover { color: var(--text); border-color: rgba(46, 229, 154, 0.45); transform: translateY(-3px); transition: .18s ease; }
.game-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.game-card .meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
}
.game-card strong { font-family: var(--display); font-size: 16px; }
.game-card span, .game-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.game-card .play {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  margin-top: auto;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--emerald);
  color: var(--emerald-ink);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
}

.shot {
  margin: 0;
  background: #08141d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.prose .shot, .media-block .shot { margin-top: 18px; }
.shot.portrait { width: min(100%, 280px); margin-inline: auto; }
.media-block { align-items: center; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.media-block .shot { margin: 0; }

.table-wrap { overflow: visible; border: 1px solid var(--line); border-radius: 16px; background: rgba(8, 20, 29, 0.65); }
table { width: 100%; border-collapse: collapse; min-width: 0; }
.table-wrap.fit table { table-layout: fixed; }
.table-wrap.fit th:first-child,
.table-wrap.fit td:first-child { width: 38%; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; overflow-wrap: break-word; }
th { color: var(--gold); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(240, 208, 138, 0.05); }
tr:last-child td { border-bottom: 0; }
.facts { min-width: 0; }
.facts td:first-child { color: var(--muted); width: 42%; font-weight: 700; }

.promo-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(240, 208, 138, 0.28);
  background:
    linear-gradient(120deg, rgba(8, 22, 32, 0.92), rgba(8, 22, 32, 0.78)),
    url("../images/banner-promo.webp") center/cover;
}
.code-pill {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 6px 0;
}
.promo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.promo-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promo-card .btn { margin-top: auto; }
.promo-card.primary { border-color: rgba(240, 208, 138, 0.7); background: linear-gradient(180deg, #1a3142, #102736); }
.promo-card .code { font-family: var(--mono); font-size: 22px; color: var(--gold); letter-spacing: 0.06em; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald); }

.steps { display: grid; gap: 18px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}
.num {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(46, 229, 154, 0.12);
  color: var(--emerald);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 8px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; padding: 0 8px; color: #d5ebe2; }

.coins { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.coins button {
  border: 1px solid var(--line);
  background: #0c2030;
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 700;
}
.coins button[aria-pressed="true"] { background: var(--emerald); color: var(--emerald-ink); border-color: transparent; }
.note {
  background: rgba(240, 208, 138, 0.08);
  border: 1px solid rgba(240, 208, 138, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f3e6c8;
  font-size: 15px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}
.filters button[aria-pressed="true"] { background: rgba(46, 229, 154, 0.16); color: var(--emerald); border-color: rgba(46, 229, 154, 0.4); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); }

.footer { border-top: 1px solid var(--line); padding: 42px 0 24px; background: #061018; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 24px; }
.footer h2 { font-family: var(--display); font-size: 16px; margin: 0 0 10px; }
.footer a { color: #d5ebe2; text-decoration: none; display: inline-block; margin: 4px 0; }
.footer a:hover { color: var(--emerald); }
.footer p { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; margin: 0;
}
.legal { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.age {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 12px;
  margin-right: 8px;
}

.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--emerald);
  color: var(--emerald-ink);
  font-size: 20px;
  cursor: pointer;
  z-index: 30;
  box-shadow: var(--shadow);
}
.popup {
  position: fixed;
  z-index: 35;
  right: 16px;
  bottom: 74px;
  width: min(340px, calc(100% - 32px));
  background: #102838;
  border: 1px solid rgba(240, 208, 138, 0.4);
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.popup p { margin: 0 0 8px; }
.popup-x {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text); cursor: pointer; font-size: 20px;
}
.copy.is-copied { background: var(--emerald); color: var(--emerald-ink); }

@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: inline-block; margin-left: 8px; }
  .cards, .cards.cols-4, .cards.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid, .split, .split.reverse, .promo-hero, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .cards, .cards.cols-3, .cards.cols-4, .cards.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 420px; }
  .hero-copy { padding: 48px 0 32px; }
  .section { padding: 40px 0; }
  .header-cta .btn { padding: 0 10px; font-size: 13px; }
  .step { grid-template-columns: 42px 1fr; }
  .num { width: 42px; height: 42px; }
  .facts { min-width: 100%; }
}
@media (max-width: 900px) {
  .table-wrap:not(:has(table.facts)) {
    overflow: visible;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .table-wrap:not(:has(table.facts)) table,
  .table-wrap:not(:has(table.facts)) tbody,
  .table-wrap:not(:has(table.facts)) tr,
  .table-wrap:not(:has(table.facts)) td {
    display: block;
    width: auto;
    min-width: 0;
  }
  .table-wrap:not(:has(table.facts)) thead { display: none; }
  .table-wrap:not(:has(table.facts)) tr {
    border: 1px solid var(--line);
    border-radius: 16px;
    margin: 0 0 12px;
    background: rgba(8, 20, 29, 0.65);
    overflow: hidden;
  }
  .table-wrap:not(:has(table.facts)) td {
    display: grid;
    grid-template-columns: minmax(108px, 38%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 14px;
  }
  .table-wrap:not(:has(table.facts)) td::before {
    content: attr(data-label);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .table-wrap.fit td:first-child { width: auto; }
}
@media (max-width: 380px) {
  .header-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card, .drawer { transition: none; }
}

/* Keep action groups centered and balanced on narrow screens. */
@media (max-width: 720px) {
  .hero-actions, .cta-row { justify-content: center; }
  .hero-actions .btn, .cta-row .btn { text-align: center; }
}

/* Responsive conversion actions */
@media(max-width:640px){.cta-row,.hero-actions{justify-content:center;align-items:center;text-align:center;flex-wrap:wrap}.cta-row .btn,.hero-actions .btn{max-width:100%;text-align:center}}
