/* AlpGameCircle — Glacier Light theme */
:root {
  --c-bg: #f7fafd;
  --c-surface: #ffffff;
  --c-ink: #14253a;
  --c-muted: #5b6b80;
  --c-blue: #1273b8;
  --c-blue-deep: #0d5a94;
  --c-ice: #e3f1fb;
  --c-ice-2: #cfe7f7;
  --c-red: #d92b3a;
  --c-red-2: #f04b4f;
  --c-gold: #f0b429;
  --c-line: rgba(20, 37, 58, .1);
  --c-footer: #101f33;
  --c-grad: linear-gradient(135deg, #d92b3a 0%, #f04b4f 55%, #f0823f 100%);
  --c-grad-ice: linear-gradient(135deg, #1273b8 0%, #3fa3df 60%, #7cc7ee 100%);
  --shadow-soft: 0 10px 34px rgba(18, 60, 105, .1);
  --shadow-lift: 0 22px 50px rgba(18, 60, 105, .16);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  overflow-x: clip;
  width: 100%; max-width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; overflow-wrap: break-word; word-break: break-word; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.18;
  overflow-wrap: break-word;
  word-break: break-word;
  font-weight: 600;
}
p { overflow-wrap: break-word; }
button { font-family: inherit; }
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn, .burger, .chat-toggle, .filter-tabs button, .nav a, .brand {
  -webkit-user-select: none;
  user-select: none;
}
::selection { background: rgba(18, 115, 184, .22); }

.container { max-width: 1240px; margin: 0 auto; padding-inline: 24px; width: 100%; }
@media (max-width: 520px) { .container { padding-inline: 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px;
  border: 0; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary {
  background: var(--c-grad);
  color: #fff;
  box-shadow: 0 12px 28px rgba(217, 43, 58, .32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(217, 43, 58, .4); }
.btn--ghost {
  background: rgba(255, 255, 255, .65);
  color: var(--c-ink);
  border: 2px solid var(--c-blue);
}
.btn--ghost:hover { transform: translateY(-3px); background: var(--c-ice); }
@media (max-width: 520px) { .btn { white-space: normal; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 250, 253, .82);
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
  transition: background .3s var(--ease);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 18px; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.brand span em { font-style: normal; color: var(--c-blue); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 700; font-size: 15px;
  padding: 9px 16px;
  border-radius: 999px;
  position: relative;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.nav a:hover { background: var(--c-ice); color: var(--c-blue); }
.nav a.is-active {
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 37, 58, .24);
}

/* Burger toggle */
.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(20, 37, 58, .05);
  border: 1px solid var(--c-line);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 64px));
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 30px;
    background: linear-gradient(165deg, #ffffff 0%, #e8f3fb 100%);
    border-top: 1px solid var(--c-line);
    box-shadow: 0 18px 40px rgba(18, 60, 105, .18);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a {
    width: 100%;
    padding: 16px 4px;
    font-size: 21px;
    border-radius: 0;
    border-bottom: 1px solid var(--c-line);
  }
  .nav a:hover { background: transparent; }
  .nav a.is-active { background: transparent; color: var(--c-blue); box-shadow: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-image: url('/assets/img/hero/hero-bg.avif');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding-block: clamp(90px, 14vh, 150px) clamp(150px, 20vh, 220px);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247, 250, 253, .42) 0%, rgba(247, 250, 253, .12) 45%, rgba(247, 250, 253, .94) 100%);
}
.hero__aurora {
  position: absolute; inset: -20% -10%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 30%, rgba(124, 199, 238, .5), transparent 70%),
    radial-gradient(34% 40% at 76% 24%, rgba(240, 180, 41, .34), transparent 70%),
    radial-gradient(40% 46% at 58% 70%, rgba(217, 43, 58, .16), transparent 72%);
  mix-blend-mode: screen;
  filter: blur(34px);
  animation: aurora-drift 16s var(--ease) infinite alternate;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); opacity: .8; }
  50%  { transform: translate3d(2%, 3%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.02); opacity: .85; }
}
.hero__ridge {
  position: absolute; left: 0; right: 0; bottom: -2px;
  width: 100%; height: clamp(110px, 16vw, 230px);
  pointer-events: none;
}
.hero__ridge svg { width: 100%; height: 100%; display: block; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(30px, 5.4vw, 64px);
  font-weight: 700;
  max-width: 100%;
  color: var(--c-ink);
  text-shadow: 0 2px 24px rgba(247, 250, 253, .8);
}
.hero h1 em { font-style: normal; color: var(--c-red); }
.hero__lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  color: #243650;
  text-shadow: 0 1px 14px rgba(247, 250, 253, .9);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero__note {
  margin-top: 26px;
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14.5px; color: #2b415e;
}
.hero__note svg { width: 20px; height: 20px; color: var(--c-blue); flex-shrink: 0; }

/* First reveal — pure CSS, above the fold */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.first-reveal { animation: rise-in .8s var(--ease) both; }
.first-reveal--2 { animation-delay: .14s; }
.first-reveal--3 { animation-delay: .28s; }
.first-reveal--4 { animation-delay: .42s; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .first-reveal, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .hero__aurora { animation: none; }
}

/* Generic sections */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section__head { margin-bottom: clamp(34px, 5vw, 56px); }
.section__head h2 { font-size: clamp(25px, 3.4vw, 42px); }
.section__head h2 em { font-style: normal; color: var(--c-blue); }
.section__head p { margin-top: 16px; color: var(--c-muted); font-size: 17.5px; }

/* Feature cards */
.features { position: relative; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  overflow: hidden;
  min-width: 0;
}
.feature-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 199, 238, .25), transparent 65%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.feature-card:hover { box-shadow: var(--shadow-lift); }
.feature-card:hover::after { opacity: 1; }
.feature-card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--c-ice);
  color: var(--c-blue);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 12px; }
.feature-card p { color: var(--c-muted); font-size: 15.5px; }

/* Games grid */
.games-catalog { position: relative; }
.filter-toolbar { position: relative; z-index: 50; margin-bottom: 34px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tabs button {
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-ink);
  font-weight: 800; font-size: 15px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.filter-tabs button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.filter-tabs button.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
  z-index: 1;
}
.game-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  min-width: 0;
}
.game-card:hover { box-shadow: var(--shadow-lift); }
.game-card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 4; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .45s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.06); filter: brightness(.62); }
.game-card__free {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--c-grad);
  color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: .06em;
  box-shadow: 0 6px 14px rgba(217, 43, 58, .35);
}
.game-card__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.game-card:hover .game-card__overlay, .game-card:focus-within .game-card__overlay { opacity: 1; }
.game-card__overlay .btn { transform: translateY(8px); transition: transform .35s var(--ease), box-shadow .3s var(--ease); }
.game-card:hover .game-card__overlay .btn, .game-card:focus-within .game-card__overlay .btn { transform: translateY(0); }
.game-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card__body h3 { font-size: 17px; }
.game-card__body p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game-card__tags span {
  font-size: 12px; font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--c-ice);
  color: var(--c-blue);
}

.game-card.is-hidden { display: none; }
.table-wrap { overflow-x: auto; max-width: 100%; }

/* Reviews */
.reviews { background: linear-gradient(180deg, #ecf4fb 0%, var(--c-bg) 100%); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.review-card__stars {
  color: var(--c-gold);
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
}
.review-card blockquote {
  flex: 1;
  font-size: 15.5px;
  color: #31486a;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--c-ice-2);
}
.review-card__author strong { display: block; font-size: 15px; }
.review-card__author span { color: var(--c-muted); font-size: 13.5px; }
@media (max-width: 820px) {
  .reviews__grid { grid-template-columns: 1fr; }
}

/* Community */
.community {
  position: relative;
  background-image: url('/assets/img/sections/community-bg.avif');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(10, 24, 42, .84) 0%, rgba(10, 24, 42, .56) 55%, rgba(13, 42, 68, .42) 100%);
}
.community__inner { position: relative; z-index: 1; color: #fff; padding-block: clamp(70px, 10vw, 120px); }
.community h2 { font-size: clamp(25px, 3.4vw, 42px); color: #fff; }
.community h2 em { font-style: normal; color: #7cc7ee; }
.community__text { margin-top: 18px; font-size: 17.5px; color: rgba(255, 255, 255, .88); }
.community__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.responsible {
  margin-top: 44px;
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: 24px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.responsible svg { width: 34px; height: 34px; color: #7cc7ee; flex-shrink: 0; }
.responsible h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.responsible p { color: rgba(255, 255, 255, .82); font-size: 15px; }

/* Home games preview strip */
.home-games { background: linear-gradient(180deg, var(--c-bg) 0%, #ecf4fb 100%); }
.home-games__cta { margin-top: 40px; display: flex; justify-content: center; }

/* Steps (how it works) */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 42px; font-weight: 700;
  color: var(--c-ice-2);
  display: block;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.step-card p { color: var(--c-muted); font-size: 15.5px; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(58px, 8vw, 92px) clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 52px); }
.page-hero h1 em { font-style: normal; color: var(--c-blue); }
.page-hero p { margin-top: 16px; color: var(--c-muted); font-size: 17.5px; }

/* About */
.about-banner { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.about-banner img { width: 100%; height: auto; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-story h2 { font-size: clamp(23px, 3vw, 36px); margin-bottom: 18px; }
.about-story p + p { margin-top: 14px; }
.about-story p { color: #31486a; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.team-card h3 { font-size: 17px; }
.team-card span { display: block; margin-top: 6px; color: var(--c-blue); font-weight: 800; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
.team-card p { margin-top: 14px; color: var(--c-muted); font-size: 15px; }
.platform-facts { background: linear-gradient(180deg, #ecf4fb 0%, var(--c-bg) 100%); }
.platform-facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.fact-card svg { width: 30px; height: 30px; color: var(--c-blue); flex-shrink: 0; margin-top: 3px; }
.fact-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.fact-card p { color: var(--c-muted); font-size: 15px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4vw, 48px); align-items: start; }
.contact-form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  min-width: 0;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 800; font-size: 14px; min-width: 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1.5px solid var(--c-line);
  background: #fbfdff;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--c-ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-form textarea { resize: none; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(18, 115, 184, .14);
}
.contact-info { display: grid; gap: 16px; min-width: 0; }
.contact-info__card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.contact-info__card svg { width: 26px; height: 26px; color: var(--c-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info__card h3 { font-size: 15.5px; margin-bottom: 6px; }
.contact-info__card p, .contact-info__card a { color: var(--c-muted); font-size: 15px; }
.contact-info__card a:hover { color: var(--c-blue); }

/* Contact map */
.contact-map { padding-top: 0; }
.contact-map__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--c-line);
  line-height: 0;
}
.contact-map__frame iframe {
  width: 100%;
  height: clamp(300px, 42vw, 460px);
  border: 0;
  display: block;
}

/* Legal pages */
.legal-content { padding-bottom: clamp(64px, 9vw, 110px); }
.legal-content h2 { font-size: clamp(20px, 2.4vw, 28px); margin: 38px 0 14px; }
.legal-content h3 { font-size: 18px; margin: 26px 0 10px; }
.legal-content p { margin-bottom: 13px; color: #31486a; }
.legal-content ul { margin: 0 0 16px 22px; color: #31486a; }
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--c-blue); }
.legal-meta { color: var(--c-muted); font-size: 14.5px; font-weight: 700; }
.cookies-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 15px; }
.cookies-table th, .cookies-table td { border: 1px solid var(--c-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.cookies-table th { background: var(--c-ice); font-weight: 800; }

/* Footer */
.site-footer { background: var(--c-footer); color: #c6d4e6; margin-top: auto; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 7vw, 72px) clamp(30px, 4vw, 44px);
}
.site-footer__about { min-width: 0; }
.site-footer__about .brand { color: #fff; margin-bottom: 18px; }
.site-footer__about p { font-size: 14.5px; color: #9fb2ca; }
.site-footer h3 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-nav, .footer-legal-nav { display: grid; gap: 11px; }
.footer-nav a, .footer-legal-nav a { color: #c6d4e6; font-size: 15px; font-weight: 600; transition: color .3s var(--ease), transform .3s var(--ease); width: fit-content; }
.footer-nav a:hover, .footer-legal-nav a:hover { color: #7cc7ee; transform: translateX(4px); }

.footer-rg { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 26px; }
.footer-rg__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 34px; }
.footer-rg__badge { flex-shrink: 0; }
.footer-rg__badge img { width: 38px; height: 38px; border-radius: 50%; }
.rg-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #9fb2ca; font-size: 14px; font-weight: 700;
  transition: color .3s var(--ease);
}
.rg-link:hover { color: #fff; }
.rg-link svg { width: 26px; height: 26px; flex-shrink: 0; }
.rg-link img { width: auto; height: 28px; flex-shrink: 0; }

.footer-disclaimer {
  background: #0a1626;
  text-align: center;
  padding-block: 18px;
}
.footer-disclaimer p { font-size: 13.5px; color: #8da1bb; }
.footer-disclaimer strong { color: #d7e4f4; }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; text-align: center; }
.footer-copy p { font-size: 13.5px; color: #74879f; }

/* Chat widget */
.chat-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 130;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--c-grad-ice);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px rgba(18, 115, 184, .4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.chat-toggle:hover { transform: translateY(-3px) scale(1.04); }
.chat-toggle svg { width: 27px; height: 27px; }
.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 130;
  width: 360px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100dvh - 120px);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s linear .35s;
}
.chat-panel[data-open="true"] {
  transform: translateY(0) scale(1);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform .35s var(--ease), opacity .3s var(--ease), visibility 0s linear 0s;
}
.chat-panel__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--c-grad-ice);
  color: #fff;
}
.chat-panel__head img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); flex-shrink: 0; }
.chat-panel__title { min-width: 0; }
.chat-panel__title strong { display: block; font-size: 15px; }
.chat-panel__title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .92; }
.chat-panel__title span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #7df0a8; }
.chat-panel__close {
  margin-left: auto;
  width: 34px; height: 34px;
  border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s var(--ease);
}
.chat-panel__close:hover { background: rgba(255, 255, 255, .32); }
.chat-panel__close svg { width: 16px; height: 16px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f2f7fc; }
.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14.5px;
  line-height: 1.5;
  overflow-wrap: break-word; word-break: break-word;
  animation: rise-in .4s var(--ease) both;
}
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: var(--c-blue); color: #fff; border-bottom-right-radius: 5px; }
.chat-msg--typing { display: inline-flex; gap: 5px; align-items: center; }
.chat-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb2ca; animation: chat-dot 1s infinite; }
.chat-msg--typing i:nth-child(2) { animation-delay: .16s; }
.chat-msg--typing i:nth-child(3) { animation-delay: .32s; }
@keyframes chat-dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--c-line); background: #fff; }
.chat-form input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--c-line);
  border-radius: 999px;
  padding: 11px 16px;
  font-family: inherit; font-size: 14.5px;
  color: var(--c-ink);
}
.chat-form input:focus { outline: none; border-color: var(--c-blue); }
.chat-form button {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 0; border-radius: 50%;
  background: var(--c-grad);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.chat-form button:hover { transform: scale(1.07); }
.chat-form button svg { width: 18px; height: 18px; }

/* Game modal */
body[data-modal-open="true"] { overflow: hidden; }
.gmodal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.gmodal[data-open="true"] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .35s var(--ease), visibility 0s linear 0s;
}
.gmodal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 18, 32, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gmodal__panel {
  position: relative;
  width: min(960px, 100%, calc((100dvh - 32px) * 4 / 3));
  aspect-ratio: 4 / 3;
  background: #0e1c30;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(5, 15, 30, .55);
  overflow: hidden;
  transform: translateY(22px) scale(.96);
  transition: transform .4s var(--ease);
}
.gmodal[data-open="true"] .gmodal__panel { transform: translateY(0) scale(1); }
.gmodal__frame { width: 100%; height: 100%; border: 0; display: block; position: relative; z-index: 1; }
.gmodal__loader {
  position: absolute; top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 4px solid rgba(124, 199, 238, .25);
  border-top-color: #7cc7ee;
  animation: gmodal-spin .9s linear infinite;
}
.gmodal.is-loaded .gmodal__loader { display: none; }
@keyframes gmodal-spin { to { transform: rotate(360deg); } }
.gmodal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: rgba(8, 18, 32, .6);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.gmodal__close:hover { background: var(--c-red); transform: rotate(90deg); }
.gmodal__close svg { width: 17px; height: 17px; }

/* Toast */
.toast-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(8, 18, 32, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.toast-overlay[data-open="true"] {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity .3s var(--ease), visibility 0s linear 0s;
}
.toast-card {
  background: var(--c-surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: 30px 34px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  transform: translateY(14px) scale(.95);
  transition: transform .35s var(--ease);
}
.toast-overlay[data-open="true"] .toast-card { transform: translateY(0) scale(1); }
.toast-card__icon {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-ice);
  color: var(--c-blue);
}
.toast-card__icon svg { width: 28px; height: 28px; }
.toast-card.is-error .toast-card__icon { background: #fdeaec; color: var(--c-red); }
.toast-card h3 { font-size: 18px; margin-bottom: 8px; }
.toast-card p { color: var(--c-muted); font-size: 15px; }

/* Responsive */
@media (max-width: 1220px) {
  .features__grid, .values__grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-facts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .steps__grid, .team__grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .platform-facts__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__about { grid-column: 1 / -1; }
  .hero { background-position: 62% 30%; }
}
@media (max-width: 520px) {
  .features__grid, .values__grid, .games-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .responsible { flex-direction: column; }
  .chat-panel { right: 16px; }
  .chat-toggle { right: 16px; bottom: 18px; }
}
@media (max-width: 430px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .gmodal { padding: 10px; }
}
@media (max-width: 360px) {
  .filter-tabs button { padding: 10px 18px; font-size: 14px; }
}
