:root {
  --gold: #f0b429;
  --gold-2: #ffd45a;
  --ink: #f6f1e6;
  --muted: #c8c0b0;
  --bg: #0c0c0e;
  --card: #141416;
  --header: #000;
  --line: rgba(240, 180, 41, 0.28);
  --font: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 84px;
}

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

html { scroll-behavior: smooth; color-scheme: dark; overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero-shot:hover img,
  .hero > img:hover,
  .figure:hover img { transform: none; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  z-index: 1000;
  font-weight: 800;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(1120px, 100%);
  max-width: 1120px;
  padding-inline: 16px;
  margin-inline: auto;
  min-width: 0;
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--header);
  border-bottom: 3px solid var(--gold);
  overflow: visible;
}

.header-inner {
  position: relative;
  width: min(1280px, calc(100% - 20px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  overflow: visible;
}

.logo { display: block; line-height: 0; flex: 0 0 auto; overflow: visible; padding: 2px 0; }
.logo img { width: 210px; max-width: 52vw; height: auto; display: block; }

.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: nowrap;
}
.site-nav > ul > li { position: relative; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 9px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.chevron {
  width: 0; height: 0; margin-left: 5px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.site-nav ul.sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 196px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #111;
  border: 1px solid var(--gold);
  z-index: 80;
}
.site-nav .has-sub:hover > ul.sub,
.site-nav .has-sub:focus-within > ul.sub,
.site-nav .has-sub.open > ul.sub { display: block; }
.site-nav ul.sub a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid #2a2a2a;
  white-space: normal;
}
.site-nav ul.sub a:hover { background: var(--gold); color: #111; border-bottom-color: var(--gold); }

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

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--gold);
  border: 0;
  color: #111;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: #111;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border: 2px solid var(--gold);
  border-radius: 0;
  color: #111;
  background: var(--gold);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.btn:hover { background: var(--gold-2); color: #111; }
.btn-login {
  min-width: 92px;
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 10px 18px;
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover { background: var(--gold); color: #111; }
.btn-dark {
  background: #111;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-dark:hover { background: var(--gold); color: #111; }
.btn-gold { background: var(--gold); color: #111; }

.hero {
  padding: 28px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
}
.hero > * { min-width: 0; max-width: 100%; }
.hero-shot {
  overflow: hidden;
  border: 1px solid var(--line);
  perspective: 800px;
}
.hero-shot img,
.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.35s ease;
}
.hero img { border: 1px solid var(--line); }
.hero-shot img { border: 0; }
.hero-shot:hover img,
.hero > img:hover {
  transform: scale(1.06) rotateX(2deg) translateZ(16px);
}
.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
  width: 100%;
  max-width: 100%;
}
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 16px; overflow-wrap: anywhere; width: 100%; max-width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 16px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.section { padding: 28px 0; }
.section-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.section-row a { font-weight: 700; text-decoration: none; }
h2 {
  font-size: 1.28rem;
  margin: 0 0 12px;
  font-weight: 800;
}
h3 { font-size: 1.02rem; margin: 0 0 8px; font-weight: 800; }
p { margin: 0 0 12px; }
ul.plain { margin: 0 0 14px; padding-left: 18px; }
ul.plain li { margin: 0 0 6px; }

.prose { max-width: none; }
.prose h2 { margin-top: 22px; }
.prose p,
.prose li { max-width: none; }
.figure {
  margin: 12px auto 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
  perspective: 800px;
}
.figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transform-origin: center 20%;
  transition: transform 0.35s ease;
}
.figure:hover img {
  transform: scale(1.06) rotateX(2deg);
}
.figure-portrait img {
  object-position: center center;
}
.figure-portrait:hover img {
  transform: none;
}
.toc {
  background: var(--card);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  margin: 16px 0 22px;
}
.toc p { margin: 0 0 8px; font-weight: 800; color: var(--gold); }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--gold); }

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid #2a2a2a;
  color: #fff;
  text-decoration: none;
  padding: 12px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}
.cat:hover { border-color: var(--gold); color: var(--gold); }
.cat i { color: var(--gold); font-style: normal; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.game-card {
  background: var(--card);
  border: 1px solid #242424;
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
}
.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 40%;
}
.game-card h3 { padding: 10px 10px 0; margin: 0; }
.game-card p {
  padding: 4px 10px 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  flex: 1;
}
.game-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}
.game-actions .btn {
  padding: 10px 8px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  border-radius: 0;
}
.game-actions .btn-gold { background: var(--gold); color: #111; }
.game-actions .btn-ghost { background: transparent; color: var(--gold); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.stat {
  background: var(--card);
  padding: 14px;
  border-left: 3px solid var(--gold);
}
.stat b { display: block; font-size: 1.15rem; color: var(--gold); }
.stat span { font-size: 0.82rem; color: var(--muted); }

.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  padding: 0 0 14px 42px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq h2 { margin-top: 28px; }
.faq h2:first-child { margin-top: 0; }
.faq details {
  background: var(--card);
  border: 1px solid #2a2a2a;
  margin: 0 0 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 14px;
}
.faq details[open] summary { color: var(--gold); }
.faq details p { padding: 0 14px 12px; }

.cta-band {
  background: var(--gold);
  color: #111;
  padding: 22px;
  margin: 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; color: #111; }
.cta-band p { margin: 6px 0 0; color: #2a220c; }
.cta-band .btn {
  background: #111;
  color: var(--gold);
  border-color: #111;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.site-footer {
  background: #070707;
  border-top: 3px solid var(--gold);
  margin-top: 36px;
  padding: 28px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
}
.site-footer h2 { color: var(--gold); font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.help-bar {
  margin-top: 22px;
}
.help-bar h2 { margin: 0 0 10px; }
.help-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.help-logos li {
  margin: 0;
  flex: 1 1 120px;
  max-width: 220px;
  min-width: 0;
}
.help-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 4px 0;
}
.help-logos a:hover { color: inherit; opacity: 0.86; }
.help-logos img {
  width: auto;
  height: 52px;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  image-rendering: auto;
}
.legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #222;
  font-size: 0.8rem;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #111;
  border: 0;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.to-top.is-on { display: flex; }
.to-top:hover { background: var(--gold-2); color: #111; }

.note {
  background: #16140f;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-frame {
  width: 100%;
  max-width: 100%;
  margin: 12px 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.game-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 700px;
  border: 0;
}

@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { flex: 1 1 100%; order: 3; }
  .site-nav > ul { justify-content: flex-start; flex-wrap: wrap; }
  .nav-toggle { display: none; }
}

@media (max-width: 980px) {
  .hero, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .cats, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header-inner { min-height: 62px; }
  body.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #000;
    border-bottom: 3px solid var(--gold);
    padding: 8px 12px 16px;
  }
  .site-nav > ul { flex-direction: column; align-items: stretch; }
  .site-nav a {
    border-bottom: 1px solid #222;
    min-height: 44px;
    padding: 12px 14px;
  }
  .site-nav ul.sub { position: static; border: 0; background: #141414; }
  .header-actions { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 8px; width: 44px; height: 44px; }
  .btn, .cat, .game-actions .btn, .faq summary {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.28rem; }
  .logo img { width: 154px; }
  .btn-login { min-width: 78px; padding: 9px 14px; }
  .help-logos { gap: 8px; justify-content: center; }
  .help-logos li { flex: 1 1 42%; max-width: 46%; }
  .help-logos img { height: 40px; max-width: 150px; }
  .game-frame { max-width: 100%; }
  .game-frame iframe { height: 420px; min-height: 420px; }
}
