:root {
  --surface: #12121d;
  --surface-dim: #12121d;
  --surface-bright: #383845;
  --surface-variant: #343440;
  --surface-container: #1f1e2a;
  --surface-container-low: #1b1a26;
  --surface-container-lowest: #0d0d18;
  --surface-container-highest: #343440;
  --background: #12121d;
  --on-surface: #e3e0f1;
  --on-surface-variant: #c9c3d9;
  --on-background: #e3e0f1;
  --primary: #c9bfff;
  --primary-container: #6842ff;
  --on-primary-container: #ece6ff;
  --secondary: #cbbeff;
  --secondary-container: #4c23c3;
  --on-secondary-container: #bdadff;
  --tertiary: #c4c4e1;
  --on-tertiary: #2d2f46;
  --outline: #938ea2;
  --outline-variant: #484556;
  --accent: #6842ff;
  --accent-hover: #8668ff;
  --body-bg: #0f0f1a;

  --xs: 8px;
  --sm: 16px;
  --md: 24px;
  --lg: 32px;
  --xl: 48px;
  --xxl: 64px;
  --margin-mobile: 16px;
  --margin-desktop: 32px;
  --radius: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  --max: 1440px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--body-bg);
  color: var(--on-surface);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--margin-desktop);
  }
}

.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
  vertical-align: middle;
  user-select: none;
}

.icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.icon-menu { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 6h18v2H3V6zm0 5h18v2H3v-2zm0 5h18v2H3v-2z'/></svg>"); }
.icon-close { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18.3 5.71 12 12l6.3 6.29-1.41 1.42L10.59 13.4 4.29 19.71 2.88 18.3 9.17 12 2.88 5.71 4.29 4.29 10.59 10.6l6.3-6.31z'/></svg>"); }
.icon-chevron { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9.29 6.71 13.59 11l-4.3 4.29L10.7 16.7 16.41 11 10.7 5.29z'/></svg>"); }
.icon-play { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M8 5v14l11-7z'/></svg>"); }
.icon-speed { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20.38 8.57l-1.23 1.66a8 8 0 0 1-.22 9.77H5.07A8 8 0 0 1 15.58 5.8l1.66-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zM10.59 15.41a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z'/></svg>"); }
.icon-devices { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z'/></svg>"); }
.icon-verified { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/></svg>"); }
.icon-update { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3v7.12zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8h1.5z'/></svg>"); }
.icon-swords { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='m6.92 5-1.4 1.41L8.1 9 6.7 10.41 3.29 7 4.7 5.59 6.11 7 6.92 5zm10.16 0 .81 2 1.41-1.41L20.71 7l-3.41 3.41L15.9 9l2.59-2.59L17.08 5zM12 9.5 9.5 12 12 14.5 14.5 12 12 9.5zM8.1 15l1.41 1.41L6.11 19.8 4.7 18.41 8.1 15zm7.8 0 3.41 3.41-1.41 1.41L14.5 16.41 15.9 15zM3 19h4v2H3v-2zm14 0h4v2h-4v-2z'/></svg>"); }
.icon-car { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99zM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13s1.5.67 1.5 1.5S7.33 16 6.5 16zm11 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM5 11l1.5-4.5h11L19 11H5z'/></svg>"); }
.icon-basketball { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 2.07c2.18.34 4.07 1.66 5.2 3.48L13 11.07V4.07zm-2 0v7L6.8 7.55A7.97 7.97 0 0 1 11 4.07zM4.07 13H11v2.07c-2.18-.34-4.07-1.66-5.2-3.48L4.07 13zm7.93 7c-2.18-.34-4.07-1.66-5.2-3.48L11 13v7zm2 0v-7l5.2 3.52A7.97 7.97 0 0 1 13 20zm6.93-7-1.73-1.55A7.97 7.97 0 0 1 13 13h6.93z'/></svg>"); }
.icon-puzzle { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5a2.5 2.5 0 0 0-5 0V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5a2.5 2.5 0 0 0 0-5z'/></svg>"); }
.icon-check { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>"); }

.icon-btn .icon {
  width: 28px;
  height: 28px;
}

.advantage-card .icon {
  color: var(--accent);
  width: 24px;
  height: 24px;
  margin-bottom: var(--sm);
}

.section-head h2 .icon {
  color: var(--accent);
  width: 1.1em;
  height: 1.1em;
}

.text-accent {
  color: var(--accent);
}

.font-label-sm {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.font-label-lg {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.font-body-md {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.font-body-lg {
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
}

.font-headline-md {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.font-headline-lg {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .font-headline-lg {
    font-size: 32px;
    line-height: 40px;
  }
}

.font-headline-xl {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

@media (min-width: 768px) {
  .font-headline-xl {
    font-size: 56px;
    line-height: 64px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--margin-desktop);
  }
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--lg);
}

.logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--md);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--xs);
  padding: var(--xs) var(--lg);
  border-radius: var(--radius-full);
  transition: opacity 0.2s, background 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  padding: var(--md) var(--xl);
  box-shadow: 0 10px 25px rgba(104, 66, 255, 0.2);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  padding: var(--md) var(--xl);
}

.btn-outline:hover {
  background: var(--surface-variant);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--xs);
  border-radius: var(--radius-full);
  color: var(--on-surface);
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--surface-variant);
}



.menu-toggle {
  display: flex;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--surface);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--md) var(--margin-mobile);
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--xl);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--md);
  margin-bottom: var(--xl);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--on-surface);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-dim);
  border-bottom: 1px solid var(--outline-variant);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--xl);
  align-items: center;
  padding-block: var(--xxl);
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
  order: 2;
}

@media (min-width: 768px) {
  .hero-copy {
    order: 1;
  }
}

.hero-media {
  order: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 768px) {
  .hero-media {
    order: 2;
  }
}

.hero-glow {
  position: absolute;
  inset: -40px;
  background: rgba(104, 66, 255, 0.2);
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-2xl);
  object-fit: contain;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  padding: var(--xs) var(--sm);
  border-radius: var(--radius-full);
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  border: 1px solid var(--outline-variant);
  width: fit-content;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  color: var(--on-surface-variant);
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  padding-top: var(--md);
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
  }
}

/* Mobile hero follows the supplied mobile composition: the artwork fills the
   entire first screen and the copy sits over it. */
@media (max-width: 767px) {
  :root {
    --header-h: 74px;
  }

  .header-inner {
    padding-inline: 20px;
  }

  .header-actions {
    gap: 16px;
  }

  .header-actions .btn-primary {
    width: 143px;
    height: 44px;
    padding: 0 20px;
    font-size: 18px;
    line-height: 24px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    background-image:
      linear-gradient(90deg, rgba(18, 18, 29, 0.92) 0%, rgba(18, 18, 29, 0.52) 100%),
      url("/images/hero-m.webp");
    background-size: cover;
    background-position: center;
    border-bottom: 0;
  }

  .hero-inner {
    display: block;
    min-height: calc(100svh - var(--header-h));
    padding: 78px 20px 108px;
  }

  .hero-copy {
    display: block;
  }

  .hero-media {
    display: none;
  }

  .badge {
    min-height: 42px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .hero-title {
    margin: 52px 0 0;
    max-width: 410px;
    font-size: 52px;
    line-height: 1.4;
    letter-spacing: -0.03em;
  }

  .hero-text {
    margin: 38px 0 0;
    max-width: 400px;
    font-size: 18px;
    line-height: 34px;
  }

  .hero-cta {
    gap: 18px;
    margin-top: 56px;
    padding-top: 0;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 88px;
    padding: 20px 28px;
    font-size: 18px;
    line-height: 24px;
  }

  .hero-cta .btn-outline {
    background: rgba(18, 18, 29, 0.38);
  }
}

@media (max-width: 359px) {
  .header-actions .btn-primary {
    width: 112px;
    font-size: 16px;
  }

  .hero-title {
    font-size: 46px;
  }
}

/* Advantages */
.advantages {
  background: var(--surface-container);
  padding-block: var(--xxl);
  text-align: center;
}

.advantages h2 {
  margin: 0 0 var(--xl);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.advantage-card {
  padding: var(--lg);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline-variant);
  text-align: left;
  transition: border-color 0.2s;
}

.advantage-card:hover {
  border-color: var(--primary);
}



.advantage-card h3 {
  margin: 0 0 var(--sm);
}

.advantage-card p {
  margin: 0;
  color: var(--on-surface-variant);
}

/* Sections */
.section {
  padding-block: var(--xxl);
}

.section-panel {
  background: var(--surface-container-low);
  border-radius: var(--radius-3xl);
  padding: var(--lg);
}

.section-panel.alt {
  background: var(--surface-container-highest);
}

@media (min-width: 768px) {
  .section-panel {
    padding: var(--xl);
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--lg);
  gap: var(--sm);
}

.section-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--xs);
}



.view-all {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  color: var(--accent);
  flex-shrink: 0;
}

.view-all:hover {
  text-decoration: underline;
}

/* Game grids */
.games-grid {
  display: grid;
  gap: var(--md);
}

.games-grid.cols-6 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .games-grid.cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

.games-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .games-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--lg);
  }
}

.games-grid.cols-3 {
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 640px) {
  .games-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.game-card {
  display: block;
  cursor: pointer;
  color: inherit;
}

.game-card-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-variant);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover .game-card-media {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(104, 66, 255, 0.2);
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-title {
  margin-top: var(--xs);
  text-align: center;
  color: var(--on-surface);
}

/* Reviews */
.reviews h2 {
  text-align: center;
  margin: 0 0 var(--xl);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--lg);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  position: relative;
  padding: var(--lg);
  background: var(--surface-container);
  border-radius: var(--radius-xl);
  border: 1px solid var(--outline-variant);
}

.review-card p {
  margin: 0 0 var(--md);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--sm);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar.a {
  background: var(--accent);
}

.avatar.b {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.avatar.c {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.review-author .role {
  font-size: 12px;
  color: var(--on-surface-variant);
  margin: 0;
}

.review-author .name {
  margin: 0;
}

/* Footer */
.site-footer {
  width: 100%;
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  margin-top: var(--xxl);
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: var(--lg);
  padding-block: var(--xl);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}

@media (min-width: 768px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding-inline: var(--margin-desktop);
  }
}

.footer-brand {
  max-width: 24rem;
}

.footer-brand h2 {
  margin: 0 0 var(--md);
  font-weight: 700;
}

.footer-brand > p {
  margin: 0;
  color: var(--on-surface-variant);
}

.footer-contact {
  margin-top: var(--sm);
  color: var(--on-surface-variant);
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-cols {
  display: grid;
  gap: var(--xxl);
}

@media (min-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h4 {
  margin: 0 0 var(--sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col li + li {
  margin-top: var(--xs);
}

.footer-col a {
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bar {
  background: var(--surface-dim);
  border-top: 1px solid var(--outline-variant);
  padding: var(--md) var(--margin-mobile);
  text-align: center;
}

.footer-bar-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--sm);
}

@media (min-width: 768px) {
  .footer-bar-inner {
    flex-direction: row;
  }
}

.footer-bar p {
  margin: 0;
  color: var(--on-surface-variant);
}

.age-badge {
  padding: 4px var(--sm);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  color: var(--on-surface-variant);
}

.footer-notice {
  background: #000;
  padding: var(--xs) var(--margin-mobile);
  text-align: center;
}

.footer-notice p {
  margin: 0;
  font-size: 10px;
  color: #52525b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
}

/* Legal pages */
.page-hero {
  padding: var(--xxl) 0 var(--lg);
  border-bottom: 1px solid var(--outline-variant);
  background: var(--surface-dim);
}

.page-hero h1 {
  margin: 0 0 var(--sm);
}

.page-hero p {
  margin: 0;
  color: var(--on-surface-variant);
  max-width: 40rem;
}

.legal-content {
  padding-block: var(--xxl);
  max-width: 800px;
}

.legal-content h2 {
  margin: var(--xl) 0 var(--sm);
  font-size: 20px;
  line-height: 28px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--on-surface-variant);
  margin: 0 0 var(--sm);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: var(--md);
}

.legal-content a {
  color: var(--primary);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Dialogs */
.dialog-lock {
  overflow: hidden;
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  overflow-y: auto;
  background: rgba(8, 8, 17, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.dialog-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.dialog {
  position: relative;
  width: min(100%, 434px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  border-radius: 22px;
  background: #fff;
  color: #17171d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.dialog-overlay.is-open .dialog {
  transform: translateY(0);
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #5c5b65;
}

.dialog-close:hover {
  background: #f1f0f5;
}

.consent-dialog {
  padding: 38px 38px 36px;
}

.consent-logo {
  width: auto;
  height: 34px;
  margin-bottom: 34px;
}

.consent-dialog h2 {
  margin: 0 0 22px;
  font-size: 21px;
  line-height: 29px;
  font-weight: 600;
}

.consent-copy {
  margin: 0;
  color: #5c5b65;
  font-size: 20px;
  line-height: 1.58;
  font-weight: 500;
}

.consent-actions {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.dialog-action {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: var(--radius-full);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.dialog-action:active {
  transform: scale(0.98);
}

.dialog-action-primary {
  background: #6842ff;
  color: #fff;
}

.dialog-action-primary:hover {
  background: #5933ef;
}

.dialog-action-secondary {
  border: 1.5px solid #6a6873;
  background: #fff;
  color: #5c5b65;
}

.dialog-action-secondary:hover {
  background: #f7f6fa;
}

.consent-footnote {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1.5px solid #7b7983;
  color: #5c5b65;
  font-size: 12px;
  line-height: 14px;
}

.consent-footnote p {
  margin: 0;
}

.consent-footnote a {
  color: inherit;
  text-decoration: underline;
}

.consent-preferences {
  display: none;
}

.consent-dialog.show-preferences .consent-main {
  display: none;
}

.consent-dialog.show-preferences .consent-preferences {
  display: block;
}

.preference-intro {
  margin: 0 0 24px;
  color: #5c5b65;
  font-size: 16px;
  line-height: 24px;
}

.preference-list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.preference-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #dedde3;
}

.preference-row strong {
  display: block;
  margin-bottom: 2px;
}

.preference-row small {
  color: #6b6972;
}

.preference-toggle {
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
  accent-color: #6842ff;
}

.preference-required {
  color: #6842ff;
  font-size: 13px;
  font-weight: 700;
}

/* Sign up / log in */
.auth-dialog {
  width: min(100%, 460px);
  padding: 40px;
}

.auth-logo {
  width: auto;
  height: 34px;
  margin-bottom: 30px;
}

.auth-dialog h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 38px;
}

.auth-subtitle {
  margin: 0 0 28px;
  color: #686671;
  font-size: 15px;
  line-height: 23px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: #efedf5;
}

.auth-tab {
  min-height: 44px;
  border-radius: var(--radius-full);
  color: #696672;
  font-weight: 700;
}

.auth-tab.is-active {
  background: #6842ff;
  color: #fff;
}

.auth-fields {
  display: grid;
  gap: 16px;
}

.auth-field[hidden] {
  display: none;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  font-size: 14px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #cac8d1;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #17171d;
  font: inherit;
}

.auth-field input:focus {
  border-color: #6842ff;
  box-shadow: 0 0 0 3px rgba(104, 66, 255, 0.13);
}

.auth-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border-radius: var(--radius-full);
  background: #6842ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.auth-submit:hover {
  background: #5933ef;
}

.auth-success {
  display: none;
  padding: 34px 0 16px;
  text-align: center;
}

.auth-success.is-visible {
  display: block;
}

.auth-success-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #6842ff;
  color: #fff;
}

.auth-success-icon .icon {
  width: 38px;
  height: 38px;
}

.auth-success h2 {
  margin-bottom: 8px;
}

.auth-success p {
  margin: 0;
  color: #686671;
}

.auth-form.is-hidden,
.auth-intro.is-hidden {
  display: none;
}

@media (min-width: 768px) {
  .dialog-overlay {
    overflow: hidden;
  }

  .dialog {
    max-height: none;
    overflow: visible;
  }

  .consent-dialog {
    width: min(100%, 600px);
    padding: 30px 40px 28px;
  }

  .consent-logo {
    height: 30px;
    margin-bottom: 20px;
  }

  .consent-dialog h2 {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 28px;
  }

  .consent-copy {
    font-size: 16px;
    line-height: 25px;
  }

  .consent-actions {
    gap: 12px;
    margin-top: 26px;
  }

  .dialog-action {
    min-height: 56px;
    padding-block: 12px;
    font-size: 17px;
    line-height: 22px;
  }

  .consent-footnote {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 11px;
    line-height: 14px;
  }

  .preference-intro {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .preference-list {
    gap: 6px;
    margin-bottom: 18px;
  }

  .preference-row {
    min-height: 48px;
    padding-block: 8px;
  }
}

@media (min-width: 768px) and (max-height: 650px) {
  .consent-dialog {
    width: min(100%, 680px);
    padding: 22px 34px 20px;
  }

  .consent-logo {
    height: 27px;
    margin-bottom: 14px;
  }

  .consent-dialog h2 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 24px;
  }

  .consent-copy {
    font-size: 14px;
    line-height: 20px;
  }

  .consent-actions {
    gap: 9px;
    margin-top: 18px;
  }

  .dialog-action {
    min-height: 46px;
    font-size: 15px;
  }

  .consent-footnote {
    margin-top: 13px;
    padding-top: 10px;
    font-size: 10px;
    line-height: 12px;
  }

  .auth-dialog {
    padding-block: 24px;
  }

  .auth-logo {
    height: 28px;
    margin-bottom: 16px;
  }

  .auth-dialog h2 {
    font-size: 25px;
    line-height: 32px;
  }

  .auth-subtitle {
    margin-bottom: 16px;
  }

  .auth-tabs {
    margin-bottom: 14px;
  }

  .auth-fields {
    gap: 10px;
  }

  .auth-field input {
    min-height: 44px;
  }

  .auth-submit {
    min-height: 48px;
    margin-top: 16px;
  }
}

@media (min-width: 768px) and (max-height: 600px) {
  .dialog-overlay {
    padding-block: 12px;
  }

  .auth-dialog {
    width: min(100%, 680px);
  }

  .auth-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-field:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .dialog-overlay {
    align-items: flex-start;
  }

  .consent-dialog {
    padding: 38px 38px 36px;
  }

  .auth-dialog {
    padding: 34px 24px 28px;
  }
}

@media (max-width: 390px) {
  .dialog-overlay {
    padding-inline: 12px;
  }

  .consent-dialog {
    padding: 30px 26px 28px;
  }

  .consent-logo {
    margin-bottom: 28px;
  }

  .consent-copy {
    font-size: 17px;
    line-height: 1.5;
  }

  .consent-actions {
    margin-top: 34px;
  }

  .dialog-action {
    min-height: 66px;
    font-size: 17px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile performance */
.section,
.advantages,
.reviews,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.game-card-media img {
  content-visibility: auto;
}

@media (max-width: 767px) {
  .hero-glow {
    display: none;
  }
}
