:root {
  --bg: #0b0e13;
  --bg-2: #111621;
  --card: #161c28;
  --card-2: #1c2436;
  --yellow: #ffcc00;
  --yellow-2: #ffe04a;
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --soft: #d1d5db;
  --line: rgba(255, 204, 0, 0.12);
  --shadow: rgba(255, 204, 0, 0.16);
  --max: 1120px;
  --pad: clamp(16px, 4vw, 32px);
  --r: 12px;
  --rl: 18px;
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--soft);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); }
[id] { scroll-margin-top: 92px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--yellow);
  color: #0b0e13;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.site-logo {
  display: flex;
  align-items: center;
  flex: none;
}
.site-logo img {
  width: 148px;
  height: 36px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--yellow);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.main-nav a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: var(--yellow); background: rgba(255, 204, 0, 0.08); }

body.nav-open { overflow: hidden; }

@media (max-width: 1100px) {
  .main-nav { gap: 0; }
  .main-nav a { padding: 0 6px; font-size: 0.82rem; }
  .site-logo img { width: 132px; height: 32px; }
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--yellow);
  color: #0b0e13;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.84rem;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: 0.2s ease;
}
.cta:hover,
.cta:focus-visible {
  background: var(--yellow-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--shadow);
}
.cta.lg { min-height: 52px; padding: 14px 32px; font-size: 0.95rem; }
.cta-wrap {
  margin-top: 20px;
  text-align: center;
}

.hero { padding-top: var(--s4); }
.hero-banner {
  display: block;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}
.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 1350 / 759;
  object-fit: contain;
  object-position: center;
}
.hero-banner:hover,
.hero-banner:focus-visible { border-color: var(--yellow); }

.note {
  margin: var(--s3) 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.page { padding-bottom: var(--s6); }

.intro { padding: var(--s6) 0 var(--s4); text-align: center; }
.intro h1 {
  margin: 0 0 var(--s3);
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.3;
  font-weight: 800;
  max-width: 18em;
  margin-inline: auto;
}
.intro h1 span { color: var(--yellow); }
.intro p {
  margin: 0 auto;
  max-width: 68ch;
  font-size: 1.05rem;
}

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rl);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: var(--s4);
}
.block h2 {
  margin: 0 0 var(--s2);
  color: var(--ink);
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.35;
}
.block h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.02rem;
}
.block p { margin: 0 0 var(--s3); }
.block p:last-child { margin-bottom: 0; }
.block p a { text-underline-offset: 3px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s4);
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
  min-width: 0;
}
.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  color: #0b0e13;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.step a { color: var(--yellow); }

.games-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.games-head p { margin: 0; color: var(--muted); max-width: 52ch; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}
.game-card {
  min-width: 0;
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #0a0c12;
  border: 1px solid var(--line);
}
.game-card a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.game-card img.cover {
  width: 100%;
  aspect-ratio: 325 / 234;
  object-fit: cover;
}
.game-card .mark {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 72px;
  height: 18px;
  pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.7));
}
.game-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
}
.game-card .name {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
}
.game-card .play {
  flex: none;
  color: #0b0e13;
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 10px;
}
.game-card:hover,
.game-card:focus-within { border-color: var(--yellow); }

.demo-box {
  position: relative;
  margin: var(--s3) 0;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.demo-game-play {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  padding: var(--s4);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-height: 44px;
}
.demo-launch {
  margin-left: auto;
  flex: none;
}
.demo-cover { position: relative; flex: none; width: min(220px, 38%); }
.demo-cover img { width: 100%; border-radius: 10px; aspect-ratio: 325 / 234; object-fit: cover; }
.demo-play-circle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-play-circle span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 14, 19, 0.72);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.demo-game-play:hover .demo-play-circle span,
.demo-game-play:focus-visible .demo-play-circle span {
  background: var(--yellow);
  color: #0b0e13;
}
.demo-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-info strong { color: var(--ink); font-size: 1.08rem; }
.demo-info span { color: var(--muted); font-size: 0.9rem; }
.demo-box iframe {
  width: 100%;
  aspect-ratio: 955 / 520;
  border: 0;
  display: block;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s4);
  align-items: center;
}
.app-visual {
  background: radial-gradient(circle at 50% 20%, rgba(255, 204, 0, 0.16), transparent 55%), var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 240px;
}
.app-visual img { width: 180px; height: auto; margin-bottom: var(--s3); }
.app-visual p { margin: 0; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s3);
  margin-top: var(--s3);
}
.fact {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
  min-width: 0;
}
.fact p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s3);
}
.why-grid .fact:first-child { grid-row: span 2; }
.why-grid .fact:first-child h3 { font-size: 1.15rem; }

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: var(--s3) 0 var(--s4);
}
.pay-logos span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 88px;
  padding: 0 12px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.pay-logos img {
  height: 22px;
  width: auto;
  max-width: 96px;
}

.table-wrap { overflow: visible; margin: var(--s3) 0 0; }
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.info-table th {
  background: var(--yellow);
  color: #0b0e13;
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
}
.info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.info-table tr:nth-child(even) td { background: var(--bg-2); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: var(--s2);
  background: var(--bg-2);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  min-height: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  background: none;
  border: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  font-family: inherit;
}
.faq-arrow {
  flex: none;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--yellow);
  transition: transform 0.25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p {
  padding: 0 16px 16px;
  color: var(--muted);
  margin: 0;
}

.cta-band {
  text-align: center;
  padding: var(--s6) var(--s4);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 204, 0, 0.12), transparent 40%),
    linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--rl);
  margin-bottom: var(--s4);
}
.cta-band img { width: 160px; height: auto; margin: 0 auto var(--s3); }
.cta-band h2 { margin: 0 0 var(--s2); color: var(--ink); }
.cta-band p { max-width: 58ch; margin: 0 auto var(--s4); color: var(--muted); }

.seo-text p { max-width: 72ch; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: var(--s6) 0 110px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s5);
}
.footer-brand img { width: 148px; height: 36px; margin-bottom: var(--s3); }
.footer-brand p,
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-title {
  margin: 0 0 var(--s2);
  color: var(--ink);
  font-weight: 800;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  color: var(--muted);
  font-size: 0.82rem;
}
.age {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.mobile-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 19, 0.94);
  border-top: 1px solid var(--line);
}
.mobile-cta .cta { width: 100%; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-grid .fact:first-child { grid-column: span 2; grid-row: auto; }
  .app-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 220;
  }
  .header-inner .cta { display: none; }
  .main-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0;
    flex: none;
    align-self: stretch;
    background: #0b0e13;
    border-bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px var(--pad) calc(96px + env(safe-area-inset-bottom));
    gap: 0;
    overflow-y: auto;
    z-index: 210;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    min-height: 52px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding-inline: 8px;
    width: 100%;
  }
  .mobile-cta { display: block; z-index: 215; }
  body { padding-bottom: 76px; }
  body.nav-open { overflow: hidden; }
  .site-footer { padding-bottom: 120px; }
  .demo-launch { margin-left: 0; width: 100%; }
  .hero { padding-top: 12px; }
  .hero-banner {
    border-radius: 12px;
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .intro h1 { max-width: none; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-head { flex-direction: column; align-items: stretch; }
  .games-head .cta { width: 100%; }
  .steps,
  .facts,
  .why-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid .fact:first-child { grid-column: auto; }
  .demo-game-play { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .demo-cover { width: 100%; }
  .info-table thead { display: none; }
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table td { display: block; width: 100%; }
  .info-table tr {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .info-table tr:nth-child(even) td { background: transparent; }
  .info-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    padding: 6px 0;
  }
  .info-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 700;
  }
  .footer-bottom { align-items: flex-start; }
}

@media (max-width: 400px) {
  .site-logo img { width: 128px; height: 31px; }
  .game-card .play { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
