:root {
  --bg: #0D0714;
  --bg2: #160B22;
  --ink: #F4F1FF;
  --muted: #B7A8D4;
  --accent: #C8F542;
  --accent2: #A78BFA;
  --card: #1A1028;
  --hair: rgba(167, 139, 250, 0.42);
  --hair-strong: rgba(167, 139, 250, 0.78);
  --lime-glow: rgba(200, 245, 66, 0.28);
  --violet-glow: rgba(167, 139, 250, 0.32);
  --radius: 4px;
  --display: "Syne", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --space: clamp(1.1rem, 3vw, 2.4rem);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.62;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(45deg, rgba(167, 139, 250, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(200, 245, 66, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(var(--accent), var(--accent2));
  z-index: 40;
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  z-index: 80;
  background: var(--accent);
  color: var(--bg);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-weight: 700;
}

.skip:focus {
  top: 0.8rem;
}

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

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
}

.kicker::before {
  content: "// ";
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

h2 .slash {
  color: var(--accent);
  font-weight: 800;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
}

.lede,
.section-lead {
  color: var(--muted);
  max-width: 42rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
  border-bottom: 1px solid var(--hair);
  background: rgba(13, 7, 20, 0.88);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
  position: relative;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wordmark em {
  font-style: normal;
  color: var(--accent);
  margin-left: 0.18em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.burger span {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 5px auto;
  background: var(--accent);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.2rem, 6vw, 4.6rem) 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-frame {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 0 40px var(--violet-glow);
}

.hero-frame img {
  width: 100%;
  height: min(52vw, 420px);
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.05) contrast(1.05);
}

.hero-frame::before,
.hero-frame::after,
.frame-tick {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hero-frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.diamond {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  transform: rotate(45deg);
  margin-right: 0.55rem;
  box-shadow: 0 0 12px var(--lime-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(200, 245, 66, 0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  color: var(--bg);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent2), 0 0 22px var(--lime-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--accent);
  background: rgba(167, 139, 250, 0.08);
}

.btn--small {
  min-height: 2.35rem;
  padding-inline: 0.85rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: 3.4rem 0;
  border-top: 1px solid var(--hair);
}

.section--alt {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.6rem;
}

.games {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.95rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  min-width: 0;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0.85rem;
  width: 1px;
  height: 1.1rem;
  background: var(--accent);
  transform: rotate(18deg);
}

.game-card:hover {
  border-color: var(--accent2);
  box-shadow: 0 0 24px var(--violet-glow);
  transform: translateY(-3px);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.game-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.game-card img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  background: #12081C;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.game-card h3 {
  margin: 0;
}

.rating {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.reco {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: center;
}

.reco-frame {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 0 36px var(--lime-glow);
}

.reco-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.reco-copy {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.35rem;
}

.reco-copy p {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.step {
  padding: 1.25rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.step-index {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-size: 0.78rem;
}

.step p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.styles {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.styles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.style-card {
  padding: 1.1rem 1rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.style-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--lime-glow);
}

.style-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mosaic-frame {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.mosaic-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  filter: contrast(1.08) saturate(1.1);
}

.mosaic-frame figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: rgba(13, 7, 20, 0.82);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tip {
  padding: 1.2rem 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.tip p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.check {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem 1rem;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}

.check i {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--lime-glow);
}

.check p {
  margin: 0;
  color: var(--muted);
}

.check strong {
  color: var(--ink);
  font-family: var(--display);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hair);
  background: var(--bg2);
  padding: 2.4rem 0 5.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  gap: 1.6rem 2rem;
}

.site-footer h2,
.site-footer h3 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.7rem;
}

.policy-list,
.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.policy-list li + li {
  margin-top: 0.35rem;
}

.policy-list a:hover {
  color: var(--accent);
}

.site-footer p,
.site-footer address {
  color: var(--muted);
  font-style: normal;
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.promo code {
  font-family: var(--body);
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  background: var(--bg);
}

.copy {
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--hair);
  margin-top: 1.6rem;
  padding-top: 1rem;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  border-top: 1px solid var(--hair-strong);
  background: rgba(22, 11, 34, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.cookie p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie h2 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}

.legal-hero {
  position: relative;
  z-index: 1;
  padding: 2.6rem 0 1.4rem;
}

.legal {
  position: relative;
  z-index: 1;
  padding-bottom: 3.2rem;
}

.legal-block {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.2rem 1.15rem;
  margin-bottom: 0.8rem;
}

.legal-block h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block ul {
  padding-left: 1.1rem;
}

.legal-block li + li {
  margin-top: 0.3rem;
}

@media (max-width: 1080px) {
  .games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid,
  .reco,
  .styles,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 80;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem var(--space) 1.2rem;
    background: rgba(13, 7, 20, 0.98);
    border-bottom: 1px solid var(--hair);
    transform: none;
  }

  .nav.is-open {
    display: flex;
    transform: none;
  }

  .nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--hair);
    font-size: 0.78rem;
  }

  .steps,
  .tips,
  .styles-grid,
  .checks,
  .games {
    grid-template-columns: 1fr;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .hero-frame img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .game-card,
  .btn,
  .nav {
    transition: none;
  }
}
