:root {
  --color-bg: #060912;
  --color-bg-soft: #0c1224;
  --color-bg-card: rgba(14, 22, 48, 0.65);
  --color-surface: #111827;
  --color-ice: #a5f3fc;
  --color-aurora-teal: #2dd4bf;
  --color-aurora-violet: #818cf8;
  --color-aurora-pink: #f472b6;
  --color-frost: #e2e8f0;
  --color-text: #f1f5f9;
  --color-text-muted: rgba(226, 232, 240, 0.68);
  --color-border: rgba(129, 140, 248, 0.22);
  --color-accent: #818cf8;
  --color-accent-light: #a5b4fc;
  --color-success: #34d399;
  --color-danger: #fb7185;
  --header-height: 82px;
  --container-max: 1200px;
  --container-wide: 1360px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(129, 140, 248, 0.15);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(45, 212, 191, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(129, 140, 248, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(244, 114, 182, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, #04060f 0%, #0a1020 40%, #060912 100%);
  --gradient-accent: linear-gradient(135deg, #2dd4bf 0%, #818cf8 50%, #f472b6 100%);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.fonts-ready {
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Decorative mesh background */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mesh-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite;
}

.mesh-bg__orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(45, 212, 191, 0.35);
  top: -8%;
  left: -5%;
}

.mesh-bg__orb--2 {
  width: 380px;
  height: 380px;
  background: rgba(129, 140, 248, 0.3);
  top: 20%;
  right: -8%;
  animation-delay: -6s;
}

.mesh-bg__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(244, 114, 182, 0.2);
  bottom: 10%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Header */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10060;
  isolation: isolate;
}

.header {
  position: relative;
  z-index: 3;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  z-index: -1;
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header__logo-img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  display: none;
}

.header__nav {
  display: none;
  min-width: 0;
  flex: 1 1 auto;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.header__nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-frost);
  background: rgba(129, 140, 248, 0.12);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header__auth { display: none; gap: 8px; }

.header__burger {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(129, 140, 248, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header__burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

.header__backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}

.header__backdrop[hidden] {
  display: none !important;
}

.header__mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: rgba(10, 16, 32, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--color-border);
  padding: 28px 24px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  animation: mobileMenuIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__mobile-menu[hidden] {
  display: none !important;
}

@keyframes mobileMenuIn {
  from { transform: translateX(12px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

html.menu-open,
html.menu-open body {
  overflow: hidden !important;
}

.header__mobile-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__mobile-link:hover,
.header__mobile-link--active {
  color: var(--color-frost);
  background: rgba(129, 140, 248, 0.1);
}

main { padding-top: var(--header-height); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-accent);
  color: #060912;
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(129, 140, 248, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--color-frost);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
}

.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Badges & typography */
.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ice);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 999px;
}

.section__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section__subtitle {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
}

.section--aurora {
  background: var(--color-bg-soft);
}

.section--mesh {
  background: var(--gradient-hero);
}

.section--diagonal {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  margin: -1px 0;
  padding: clamp(80px, 12vw, 140px) 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__content { max-width: 680px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  min-height: 2.1em;
}

.hero__title em {
  font-style: italic;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__text {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
}

.hero__visual-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  transform: rotate(2deg);
  aspect-ratio: 16 / 9;
}

.hero__visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-ice);
}

.hero__stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Page hero */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: var(--gradient-hero);
  overflow: hidden;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

.page-hero__subtitle {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  margin-bottom: 36px;
}

.page-hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
  max-height: 420px;
}

.page-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Game launcher */
.game-section {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0;
}

.game-launcher {
  position: relative;
  aspect-ratio: 16/10;
  width: 100%;
  max-width: 960px;
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: #04060f;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.game-launcher__preview,
.game-launcher__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-launcher__iframe {
  z-index: 1;
  pointer-events: none;
}

.game-launcher.is-active .game-launcher__iframe {
  z-index: 3;
  pointer-events: auto;
}

.game-launcher__preview {
  z-index: 2;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
}

.game-launcher__preview-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-launcher__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(6, 9, 18, 0.3) 0%, rgba(6, 9, 18, 0.85) 100%);
  text-align: center;
}

.game-launcher__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.game-launcher__note {
  max-width: 420px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.game-launcher__play {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #060912;
  font-size: 1.6rem;
  box-shadow: 0 8px 40px rgba(129, 140, 248, 0.5);
  transition: transform var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.game-launcher__play:hover {
  transform: scale(1.08);
}

.game-launcher.is-active .game-launcher__preview {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Dedicated game page */
.game-page {
  padding: clamp(28px, 5vw, 48px) 0 clamp(48px, 8vw, 80px);
}

.game-page__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.game-page__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.game-page__lead {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.game-launcher--page {
  margin-top: 0;
  aspect-ratio: auto;
  min-height: min(72dvh, 620px);
  height: min(72dvh, 620px);
  max-width: 100%;
}

.game-launcher--page .game-launcher__iframe {
  z-index: 3;
  pointer-events: auto;
}

.game-page__notes {
  margin-top: 24px;
}

.game-page__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.game-page__list li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(129, 140, 248, 0.08);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.game-page .disclaimer-banner {
  margin-top: 24px;
}

.game-page__legal {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.game-page__legal a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .game-launcher--page {
    min-height: min(68dvh, 520px);
    height: min(68dvh, 520px);
    border-radius: var(--radius-md);
  }
}

/* Feature cards grid */
.features-grid {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  margin-top: clamp(40px, 6vw, 56px);
  grid-template-columns: 1fr;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: var(--shadow-glow);
}

.feature-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1224;
}

.feature-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-tile__num {
  position: absolute;
  top: 12px;
  left: 16px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-ice);
  background: rgba(6, 9, 18, 0.72);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.feature-tile__body {
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px);
}

.feature-tile__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 10px;
}

.feature-tile__text {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.feature-tile--highlight {
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.12) 0%, rgba(45, 212, 191, 0.06) 100%);
}

.feature-tile--highlight .feature-tile__media {
  aspect-ratio: 16 / 9;
}

/* Content grid */
.content-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.content-grid__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Stats row */
.stats-row {
  display: grid;
  gap: 20px;
}

.stat-card {
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-accent);
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-card__label {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Marquee */
.marquee-strip {
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--color-border);
  background: rgba(129, 140, 248, 0.04);
}

.marquee-strip__track {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-strip__item {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.marquee-strip__item span {
  color: var(--color-ice);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Disclaimer */
.disclaimer-banner {
  padding: 28px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 113, 133, 0.25);
  background: rgba(251, 113, 133, 0.06);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.disclaimer-banner strong {
  color: var(--color-frost);
}

/* Footer */
.footer {
  position: relative;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  background: #04060f;
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  max-width: 280px;
}

.footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ice);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a,
.footer__auth-trigger {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  text-align: left;
  transition: color var(--transition);
}

.footer__links a:hover,
.footer__auth-trigger:hover {
  color: var(--color-frost);
}

.footer__compliance {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(129, 140, 248, 0.04);
  margin-bottom: 32px;
}

.footer__age-mark {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(129, 140, 248, 0.28);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.12) 0%, rgba(45, 212, 191, 0.06) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer__age-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #060912;
  background: var(--gradient-accent);
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 24px rgba(129, 140, 248, 0.35);
}

.footer__age-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.footer__age-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-frost);
  letter-spacing: 0.01em;
}

.footer__age-text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer__compliance p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.footer__compliance p:last-child { margin-bottom: 0; }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer__badge {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-ice);
}

.footer__helplines {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.footer__helpline-link {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-frost);
  transition: background var(--transition);
}

.footer__helpline-link:hover {
  background: rgba(129, 140, 248, 0.1);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__bottom-age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #060912;
  background: var(--gradient-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.25);
}

@media (max-width: 639px) {
  .footer__age-mark {
    flex-direction: row;
    text-align: left;
    padding: 16px 18px;
    gap: 14px;
  }

  .footer__age-badge {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin: 0;
  }

  .footer__age-title {
    font-size: 1rem;
  }

  .footer__age-text {
    font-size: 0.82rem;
  }

  .footer__bottom-age {
    width: 24px;
    height: 24px;
    font-size: 0.55rem;
    order: 0;
    margin-bottom: 0;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  padding: 16px clamp(16px, 4vw, 32px);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: rgba(8, 12, 24, 0.98);
  backdrop-filter: blur(24px);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  display: block;
  transform: translateY(0);
}

body.has-cookie-banner {
  padding-bottom: max(120px, calc(88px + env(safe-area-inset-bottom)));
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-banner__text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-banner__actions .btn {
  min-height: 44px;
  min-width: 120px;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Age gate — 18+ popup */
html.age-locked,
html.age-locked body {
  overflow: hidden !important;
  height: 100%;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.age-gate[hidden] { display: none !important; }

.age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 15, 0.94);
  backdrop-filter: blur(16px) saturate(1.2);
}

.age-gate__card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: linear-gradient(165deg, rgba(14, 22, 48, 0.98) 0%, rgba(8, 12, 28, 0.98) 100%);
  box-shadow: var(--shadow-soft), 0 0 100px rgba(129, 140, 248, 0.2);
  text-align: center;
  animation: ageGateIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ageGateIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #060912;
  background: var(--gradient-accent);
  box-shadow: 0 8px 32px rgba(129, 140, 248, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.25);
}

.age-gate__logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.age-gate__text {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.age-gate__text strong {
  color: var(--color-frost);
}

.age-gate__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  text-align: left;
}

.age-gate__list li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.age-gate__list li + li { margin-top: 6px; }

.age-gate__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-aurora-teal);
  font-size: 0.7rem;
  top: 0.35em;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate__btn {
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.age-gate__fine {
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.45);
  line-height: 1.5;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(8px);
  contain: layout style paint;
}

.modal-overlay.is-visible {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-soft);
}

.modal-overlay--auth {
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal--auth {
  max-width: 360px;
  width: 100%;
  margin: auto;
  padding: 22px 20px 20px;
  max-height: min(90dvh, 680px);
}

.modal--auth .modal__title {
  font-size: 1.35rem;
  margin-bottom: 6px;
  padding-right: 36px;
}

.modal--auth .form-card__subtitle {
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.modal--auth .form-group {
  margin-bottom: 12px;
}

.modal--auth .form-group label {
  font-size: 0.8rem;
  margin-bottom: 5px;
}

.modal--auth .form-group input,
.modal--auth .form-group select,
.modal--auth .form-group textarea {
  padding: 10px 12px;
  font-size: 0.9rem;
}

.modal--auth .form-group--checkbox label {
  font-size: 0.78rem;
  line-height: 1.45;
}

.modal--auth .form-note {
  font-size: 0.8rem;
  margin-top: 12px;
}

.modal--auth .btn--block {
  padding: 12px 16px;
  font-size: 0.88rem;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.1);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text-muted);
  transition: background var(--transition);
}

.modal__close:hover {
  background: rgba(129, 140, 248, 0.2);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal__text {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--color-success);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-frost);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(6, 9, 18, 0.6);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

.form-group--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-group--checkbox input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--color-accent);
}

.form-card__subtitle {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.form-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-switch {
  color: var(--color-accent-light);
  text-decoration: underline;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-frost);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item__question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.is-open .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.is-open .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer p {
  padding: 0 28px 22px;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* Legal content */
.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--color-frost);
}

.legal-content h2:first-of-type { margin-top: 24px; }

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content a {
  color: var(--color-accent-light);
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.contact-card a {
  color: var(--color-accent-light);
}

.form-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(129, 140, 248, 0.5);
  background: linear-gradient(145deg, rgba(129, 140, 248, 0.12) 0%, rgba(45, 212, 191, 0.06) 100%);
}

.pricing-card__tag {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient-accent);
  color: #060912;
  border-radius: 999px;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.pricing-card__period {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.pricing-card__features {
  margin-bottom: 28px;
}

.pricing-card__features li {
  padding: 8px 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(129, 140, 248, 0.08);
}

.pricing-card__features li::before {
  content: "✦ ";
  color: var(--color-aurora-teal);
}

/* Auth pages */
.auth-page {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 48px) 0;
  background: var(--gradient-hero);
}

.auth-page__card {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.auth-page .form-card {
  width: 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 640px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .header__logo-text { display: block; }
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-tile--highlight { grid-column: span 2; }
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .cookie-banner__text { flex: 1; }
  .cookie-banner__actions { flex-shrink: 0; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .header__nav { display: block; }
  .header__auth { display: flex; }
  .header__burger { display: none; }
  .header__inner { gap: 16px; }
  .header__nav-link {
    padding: 9px 11px;
    font-size: 0.84rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .header__inner { gap: 24px; }
  .header__nav-list { gap: 4px; }
  .header__nav-link {
    padding: 10px 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1023px) {
  .header__auth { display: none; }
}

@media (max-width: 767px) {
  .game-launcher {
    aspect-ratio: auto;
    min-height: min(70dvh, 520px);
    height: min(70dvh, 520px);
  }

  .game-launcher.is-active {
    min-height: min(75dvh, 580px);
    height: min(75dvh, 580px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
