:root {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --surface: #171a24;
  --surface-2: #1e2230;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --muted: #9aa3b8;
  --yellow: #ffc400;
  --yellow-2: #ffd34d;
  --purple: #c700cb;
  --violet: #8a2dff;
  --magenta: #e11dff;
  --r: 10px;
  --r-sm: 8px;
  --r-lg: 14px;
  --header: 58px;
  --max: 1240px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.wrap {
  width: min(var(--max), calc(100% - 24px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: var(--yellow);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(11, 13, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-in {
  height: var(--header);
  width: min(var(--max), calc(100% - 16px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-txt {
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  font-size: 13px;
}
.logo-txt small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 700;
}

.nav {
  display: none;
  gap: 4px;
  margin-inline: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.nav a:hover,
.nav a.is-on { color: var(--text); }

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: 0.15s transform, 0.15s filter, 0.15s background;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn-y {
  background: var(--yellow);
  color: #111;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--yellow);
}
.btn-p {
  background: linear-gradient(90deg, var(--violet), var(--purple));
  color: #fff;
}
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* Hero */
.hero {
  padding: 12px 0 8px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  min-height: 220px;
  background: #1a1030;
  isolation: isolate;
}
.hero-card img,
.hero-card picture,
.hero-card picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 6, 18, 0.88) 0%, rgba(8, 6, 18, 0.55) 46%, rgba(8, 6, 18, 0.18) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 22px 18px 24px;
  max-width: 640px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4.6vw, 38px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 16px;
  color: #d7dcea;
  font-size: 15px;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* Game nav */
.lobby { padding: 8px 0 10px; }
.game-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.tab.is-on {
  color: #fff;
  background: rgba(199, 0, 203, 0.18);
  box-shadow: inset 0 -2px 0 var(--purple);
}
.tools {
  display: none;
  gap: 8px;
  flex: none;
}
.search,
.prov-btn {
  height: 38px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 9px;
  padding: 0 12px;
  min-width: 0;
}
.search { width: 190px; }
.search::placeholder { color: #7b8499; }
.prov-wrap { position: relative; }
.prov-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.prov-menu.is-open { display: grid; gap: 4px; }
.prov-menu button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.prov-menu button:hover,
.prov-menu button.is-on { background: var(--surface); color: #fff; }

.tools-mobile {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}
.tools-mobile .search { flex: 1; }
.tools-mobile .prov-wrap { flex: none; }

/* Game grid */
.g-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.g-card {
  min-width: 0;
}
.g-thumb {
  position: relative;
  display: block;
  aspect-ratio: 315 / 236;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #1c2030;
  contain: layout paint;
}
.g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.g-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 6px;
}
.g-badge.new { background: var(--violet); }
.g-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 6, 16, 0.55);
  opacity: 0;
  transition: opacity 0.16s;
}
.g-thumb:hover .g-hover,
.g-thumb:focus-visible .g-hover { opacity: 1; }
.g-meta {
  padding: 6px 2px 0;
  display: flex;
  flex-direction: column;
  min-height: 38px;
}
.g-meta b {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.g-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 28px 10px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 8px;
}

/* Bonus */
.section { padding: 18px 0; }
.section h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 62ch;
}
.bonus-grid {
  display: grid;
  gap: 10px;
}
.bonus-card {
  background: linear-gradient(180deg, #1c1630, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.bonus-card::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(199, 0, 203, 0.35), transparent 70%);
  pointer-events: none;
}
.bonus-card h3 { margin: 0 0 6px; font-size: 18px; }
.bonus-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.note {
  margin: 10px 0 0;
  color: #8b93a7;
  font-size: 12px;
}

/* Steps / blocks */
.steps, .pay-grid, .info-grid {
  display: grid;
  gap: 10px;
}
.step, .info-card, .mirror-card, .mobile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
}
.step b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  margin-bottom: 8px;
}
.step h3, .info-card h3 { margin: 0 0 6px; font-size: 16px; }
.step p, .info-card p, .mirror-card p, .mobile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 52px;
  font-size: 13px;
  font-weight: 700;
}
.pay-item svg { width: 36px; height: 24px; flex: none; }

.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  font-size: 14px;
}
.facts th, .facts td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th {
  width: 38%;
  color: var(--muted);
  font-weight: 700;
}
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }

.seo {
  padding: 8px 0 20px;
}
.seo h2 { margin: 22px 0 8px; font-size: 22px; }
.seo h3 { margin: 16px 0 6px; font-size: 17px; }
.seo p { color: #c9d0e0; margin: 0 0 12px; }
.seo ul { margin: 0 0 12px; padding-left: 18px; color: #c9d0e0; }

.faq { padding: 8px 0 28px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  text-align: center;
  padding: 8px 0 28px;
}
.final-cta .hero-cta { justify-content: center; }

.footer {
  background: #08090f;
  border-top: 1px solid var(--line);
  padding: 28px 0 92px;
  color: var(--muted);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  gap: 18px;
}
.foot-nav { display: grid; gap: 6px; }
.foot-nav a:hover { color: #fff; }
.foot-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}
.age {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  margin-right: 8px;
}
.legal { margin-top: 14px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.m-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 13, 20, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.m-cta .btn { width: 100%; min-height: 44px; }

.drawer {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  z-index: 45;
  background: rgba(8, 9, 15, 0.96);
  padding: 16px;
}
.drawer.is-open { display: block; }
.drawer a {
  display: block;
  padding: 12px 8px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  padding: 18px 0 8px;
}
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 5vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (max-width: 480px) {
  .header-actions .btn { min-height: 36px; padding: 0 10px; font-size: 13px; }
  .logo-txt { font-size: 12px; }
  .hero-cta .btn { flex: 1 1 calc(50% - 8px); }
}

@media (min-width: 720px) {
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .bonus-grid, .steps, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 0; aspect-ratio: 16 / 7; }
  .hero-copy { padding: 36px 32px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .m-cta { display: none; }
  .footer { padding-bottom: 28px; }
  .tools-mobile { display: none; }
  .tools { display: flex; }
}

@media (min-width: 1080px) {
  :root { --header: 64px; }
  .nav-toggle { display: none; }
  .nav { display: flex; }
  .g-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bonus-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .steps, .info-grid { grid-template-columns: repeat(3, 1fr); }
  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-card { min-height: 0; aspect-ratio: 2.4 / 1; }
  .logo-txt { font-size: 14px; }
}
