@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============ Tokens ============ */
:root {
  --c-bg: #faf7ff;
  --c-bg-2: #f1ebff;
  --c-surface: #ffffff;
  --c-ink: #1b1430;
  --c-muted: #6b6385;
  --c-line: rgba(27, 20, 48, .10);
  --c-violet: #7c3aed;
  --c-violet-d: #6429d4;
  --c-orange: #fb923c;
  --c-pink: #f06595;
  --c-green: #2f9e44;
  --c-grad: linear-gradient(135deg, #7c3aed 0%, #f06595 55%, #fb923c 100%);
  --c-grad-soft: linear-gradient(135deg, #efe6ff 0%, #ffe9d6 100%);
  --shadow-s: 0 4px 16px rgba(95, 61, 196, .08);
  --shadow-m: 0 14px 40px rgba(95, 61, 196, .14);
  --shadow-l: 0 26px 70px rgba(95, 61, 196, .22);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-offset: 70px;
}

/* ============ Reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.12;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: break-word;
}
p { overflow-wrap: break-word; word-break: break-word; }
a { overflow-wrap: break-word; word-break: break-word; }
ul { list-style: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 28px; }
.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;
}

/* ============ Typography helpers ============ */
.section { padding-block: clamp(56px, 8vw, 110px); position: relative; }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head.is-center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.02em; }
.section__lead { margin-top: 18px; color: var(--c-muted); font-size: clamp(16px, 2vw, 20px); }
.grad-text {
  background: var(--c-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 16px;
  white-space: normal;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--primary { background: var(--c-grad); color: #fff; box-shadow: 0 10px 26px rgba(124, 58, 237, .35); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(124, 58, 237, .45); }
.btn--ghost { background: var(--c-surface); color: var(--c-ink); border: 2px solid var(--c-violet); }
.btn--ghost:hover { transform: translateY(-3px); background: var(--c-bg-2); box-shadow: var(--shadow-s); }
.btn--light { background: #fff; color: var(--c-violet-d); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.btn--block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 247, 255, .82);
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--c-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
}
.brand__mark svg { width: 26px; height: 26px; color: #fff; }
.brand b { font-weight: 700; }
.brand i { font-style: normal; color: var(--c-violet); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 15px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  color: var(--c-ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav a:hover { background: var(--c-bg-2); color: var(--c-violet-d); }
.nav a.is-active { background: var(--c-grad); color: #fff; }

.header-cta { margin-left: 6px; }
.nav a.header-cta, .nav a.header-cta:hover { color: #fff; background: var(--c-grad); }

.burger {
  display: none; width: 46px; height: 46px; position: relative; z-index: 110; flex-shrink: 0;
  border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line);
  box-shadow: var(--shadow-s);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2.4px; 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: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; 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, 70px));
    z-index: 100; box-sizing: border-box;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 28px 28px;
    background: linear-gradient(165deg, #ffffff 0%, #f3ecff 100%);
    border-top: 1px solid var(--c-line);
    box-shadow: var(--shadow-l);
    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: 15px 14px; font-size: 19px; border-bottom: 1px solid var(--c-line); border-radius: 12px; }
  .nav a.is-active { color: #fff; }
  .nav .header-cta { margin: 14px 0 0; }
  .nav .btn { width: 100%; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-block: clamp(64px, 10vw, 130px);
  background-image: linear-gradient(180deg, rgba(250, 247, 255, .35), rgba(250, 247, 255, .9) 78%), url('/assets/img/hero/hero-bg.avif');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(40px, 6.6vw, 80px); letter-spacing: -.03em; }
.hero__lead { margin-top: 22px; font-size: clamp(17px, 2.2vw, 22px); color: var(--c-muted); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero visual — animated reel cluster */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.reel-card {
  position: relative;
  width: min(100%, 420px);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--c-line);
}
.reel-card__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reel-cell {
  aspect-ratio: 1;
  background: var(--c-grad-soft);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  overflow: hidden;
}
.reel-cell svg { width: 58%; height: 58%; animation: bob 3.2s var(--ease) infinite; }
.reel-cell:nth-child(2) svg { animation-delay: .35s; }
.reel-cell:nth-child(3) svg { animation-delay: .7s; }
.reel-cell:nth-child(4) svg { animation-delay: .25s; }
.reel-cell:nth-child(5) svg { animation-delay: .55s; }
.reel-cell:nth-child(6) svg { animation-delay: .9s; }
.reel-card__bar { margin-top: 18px; height: 12px; border-radius: var(--r-pill); background: var(--c-bg-2); overflow: hidden; }
.reel-card__bar i { display: block; height: 100%; width: 40%; background: var(--c-grad); border-radius: inherit; animation: fill 3.5s var(--ease) infinite; }
.hero__chip-float {
  position: absolute; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-m); background: var(--c-surface);
}
.hero__chip-float svg { width: 54%; height: 54%; }
.hero__chip-float--a { width: 78px; height: 78px; top: -22px; right: 6%; animation: floaty 5s ease-in-out infinite; }
.hero__chip-float--b { width: 62px; height: 62px; bottom: -18px; left: -4%; animation: floaty 6s ease-in-out infinite .8s; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(-4deg); } }
@keyframes fill { 0% { width: 18%; } 50% { width: 86%; } 100% { width: 18%; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.first-reveal { opacity: 0; animation: rise .8s var(--ease) forwards; }
.first-reveal.d1 { animation-delay: .1s; }
.first-reveal.d2 { animation-delay: .22s; }
.first-reveal.d3 { animation-delay: .34s; }
.first-reveal.d4 { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .first-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .reel-cell svg, .reel-card__bar i, .hero__chip-float { animation: none !important; }
}

/* ============ Features ============ */
.features { background: var(--c-surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature {
  background: var(--c-bg); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-m); }
.feature__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--c-grad-soft); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 30px; height: 30px; color: var(--c-violet); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--c-muted); font-size: 15.5px; }

/* ============ How it works ============ */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.how-step { position: relative; padding: 34px 28px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-s); }
.how-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 28px;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--c-grad); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px;
  display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.how-step__icon { margin: 14px 0 14px; }
.how-step__icon svg { width: 38px; height: 38px; color: var(--c-pink); }
.how-step h3 { font-size: 21px; margin-bottom: 10px; }
.how-step p { color: var(--c-muted); font-size: 15.5px; }

/* ============ Reviews ============ */
.reviews { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%); }
.reviews__viewport { overflow: hidden; }
.reviews__track { display: flex; transition: transform .55s var(--ease); }
.review {
  flex: 0 0 100%; min-width: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow-m);
}
.review__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 8px 20px rgba(124, 58, 237, .25); }
.review__stars { display: flex; gap: 4px; margin-bottom: 12px; }
.review__stars svg { width: 20px; height: 20px; color: #fbbf24; }
.review__text { font-size: clamp(17px, 2.2vw, 21px); font-family: 'Space Grotesk', sans-serif; font-weight: 500; line-height: 1.45; }
.review__name { margin-top: 14px; color: var(--c-muted); font-weight: 600; }
.reviews__nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.reviews__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-line); transition: background .3s, transform .3s; }
.reviews__dot.is-active { background: var(--c-grad); transform: scale(1.25); }

/* ============ Demo slot ============ */
.demo { background: var(--c-surface); }
.demo__wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.demo__copy h2 { font-size: clamp(28px, 4vw, 46px); }
.demo__copy p { margin-top: 16px; color: var(--c-muted); }
.demo__list { margin-top: 22px; display: grid; gap: 12px; }
.demo__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.demo__list svg { width: 22px; height: 22px; color: var(--c-green); flex-shrink: 0; margin-top: 2px; }

/* Slot machine (shared by demo + modal) */
.slot {
  background: linear-gradient(160deg, #2a1b4e 0%, #3b1f63 100%);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-l);
  color: #fff;
  max-width: 100%;
}
.slot__top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.slot__title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; }
.slot__balance { background: rgba(255, 255, 255, .12); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.slot__balance b { color: #ffd43b; }

.slot__reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  background: rgba(0, 0, 0, .28);
  border-radius: var(--r-md); padding: 14px;
}
.slot-reel {
  position: relative;
  height: clamp(96px, 22vw, 128px);
  background: #fff;
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
}
.slot-reel__strip {
  display: flex; flex-direction: column; align-items: center;
  width: 100%;
  will-change: transform;
}
.slot-symbol {
  height: clamp(96px, 22vw, 128px);
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.slot-symbol svg { width: 58%; height: 58%; max-width: 76px; max-height: 76px; }

.slot__controls { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.slot__bet { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border-radius: var(--r-pill); padding: 6px; }
.slot__bet button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; transition: background .25s; }
.slot__bet button:hover { background: rgba(255, 255, 255, .3); }
.slot__bet svg { width: 18px; height: 18px; }
.slot__bet-val { min-width: 78px; text-align: center; font-weight: 600; font-size: 14px; }
.slot__bet-val span { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.slot__spin {
  background: var(--c-grad); color: #fff; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 16px; padding: 14px 34px; border-radius: var(--r-pill);
  box-shadow: 0 10px 24px rgba(240, 101, 149, .4); transition: transform .25s var(--ease), box-shadow .25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.slot__spin:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(240, 101, 149, .5); }
.slot__spin:disabled { opacity: .6; cursor: default; }
.slot__result {
  margin-top: 16px; text-align: center; min-height: 28px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px;
  transition: opacity .3s;
}
.slot__result.win { color: #ffd43b; }
.slot__result.lose { color: #ff8787; }

/* ============ Community ============ */
.community {
  position: relative; color: #fff;
  background-image: linear-gradient(rgba(36, 18, 64, .82), rgba(36, 18, 64, .86)), url('/assets/img/sections/community-bg.avif');
  background-size: cover; background-position: center;
}
.community__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.community h2 { font-size: clamp(30px, 4.4vw, 52px); }
.community p { margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.community__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.rg-box { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-lg); padding: 30px; backdrop-filter: blur(6px); }
.rg-box h3 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.rg-box h3 svg { width: 30px; height: 30px; }
.rg-box p { margin-top: 0; font-size: 15.5px; color: rgba(255, 255, 255, .82); }
.rg-box ul { margin-top: 14px; display: grid; gap: 8px; }
.rg-box li { display: flex; gap: 10px; font-size: 15px; }
.rg-box li svg { width: 18px; height: 18px; color: #ffd43b; flex-shrink: 0; margin-top: 3px; }

/* ============ Business model ============ */
.bizmodel { background: var(--c-bg-2); }
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 12px; }
.biz-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-s); }
.biz-card span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; color: var(--c-violet); letter-spacing: .04em; }
.biz-card h3 { font-size: 20px; margin: 8px 0 10px; }
.biz-card p { color: var(--c-muted); font-size: 15.5px; }

/* ============ Games page ============ */
.page-hero { background: var(--c-grad-soft); padding-block: clamp(48px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.02em; }
.page-hero p { margin-top: 16px; color: var(--c-muted); font-size: clamp(16px, 2vw, 20px); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.filter-tab {
  padding: 11px 24px; border-radius: var(--r-pill); background: var(--c-surface);
  border: 1px solid var(--c-line); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--c-ink); transition: background .3s var(--ease), color .3s var(--ease), transform .25s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.filter-tab:hover { transform: translateY(-2px); }
.filter-tab.is-active { background: var(--c-grad); color: #fff; }

.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.game-card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-m); }
.game-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .35s; }
.game-card:hover .game-card__media img { transform: scale(1.06); filter: brightness(.55); }
.game-card__free {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--c-green); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .06em; padding: 5px 12px; border-radius: var(--r-pill);
}
.game-card__play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.game-card:hover .game-card__play { opacity: 1; transform: none; }
.game-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.game-card__body h3 { font-size: 19px; margin-bottom: 8px; }
.game-card__body p { color: var(--c-muted); font-size: 14.5px; flex: 1; }
.game-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.game-card__tags span { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); background: var(--c-bg-2); color: var(--c-violet-d); }

/* ============ Game modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(27, 20, 48, .6); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
  scrollbar-gutter: stable;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.modal__box {
  width: min(540px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: scale(.94); transition: transform .35s var(--ease);
  border-radius: var(--r-lg);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; display: grid; place-items: center; transition: background .25s;
}
.modal__close:hover { background: rgba(255, 255, 255, .3); }
.modal__close svg { width: 22px; height: 22px; }

/* ============ Chat widget ============ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-grad); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-l);
  transition: transform .3s var(--ease);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-fab svg { width: 30px; height: 30px; }
.chat-fab__ping { position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-orange); border: 2px solid #fff; }

.chat-panel {
  position: fixed; bottom: 100px; right: 24px; z-index: 150;
  width: 360px; height: 460px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 130px);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-l); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility 0s linear .3s;
}
.chat-panel.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--c-grad); color: #fff; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.chat-head b { font-family: 'Space Grotesk', sans-serif; font-size: 16px; display: block; }
.chat-head small { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #69db7c; }
.chat-head .chat-close { margin-left: auto; color: #fff; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; transition: background .25s; }
.chat-head .chat-close:hover { background: rgba(255, 255, 255, .2); }
.chat-head .chat-close svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--c-bg); }
.chat-msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-bottom-left-radius: 5px; }
.chat-msg--user { align-self: flex-end; background: var(--c-grad); color: #fff; border-bottom-right-radius: 5px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-muted); animation: typing 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: var(--r-pill); background: var(--c-bg); }
.chat-form input:focus { outline: none; border-color: var(--c-violet); }
.chat-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--c-grad); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.chat-form button svg { width: 20px; height: 20px; }

/* ============ Forms (contact) ============ */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-m); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: none; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.info-card { background: var(--c-grad-soft); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.info-item:last-child { border-bottom: none; }
.info-item__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c-surface); display: grid; place-items: center; flex-shrink: 0; }
.info-item__icon svg { width: 24px; height: 24px; color: var(--c-violet); }
.info-item b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.info-item span { color: var(--c-muted); font-size: 15px; }

/* ============ Toast ============ */
.toast-backdrop {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(27, 20, 48, .5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.toast-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.toast {
  background: var(--c-surface); border-radius: var(--r-lg); padding: 36px 40px; text-align: center;
  max-width: 380px; box-shadow: var(--shadow-l); transform: scale(.9); transition: transform .35s var(--ease);
}
.toast-backdrop.is-open .toast { transform: none; }
.toast__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--c-grad-soft); }
.toast__icon svg { width: 34px; height: 34px; color: var(--c-green); }
.toast.err .toast__icon { background: #ffe3e3; }
.toast.err .toast__icon svg { color: #e03131; }
.toast h3 { font-size: 22px; margin-bottom: 8px; }
.toast p { color: var(--c-muted); font-size: 15px; }

/* ============ Legal pages ============ */
.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal-content h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 38px 0 14px; }
.legal-content h3 { font-size: 20px; margin: 26px 0 10px; }
.legal-content p { margin-bottom: 14px; color: var(--c-muted); }
.legal-content ul { margin: 0 0 16px; display: grid; gap: 8px; }
.legal-content li { position: relative; padding-left: 26px; color: var(--c-muted); }
.legal-content li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-grad); }
.legal-content a { color: var(--c-violet-d); font-weight: 600; }
.legal-updated { color: var(--c-muted); font-size: 14px; font-style: italic; }

/* ============ About ============ */
.about-banner { aspect-ratio: 21 / 8; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-m); margin-bottom: 12px; }
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-block { margin-top: 40px; }
.about-block h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 14px; }
.about-block p { color: var(--c-muted); margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.value { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-s); }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { font-size: 15px; margin-bottom: 0; }

/* ============ Footer ============ */
.site-footer { background: #19112e; color: rgba(255, 255, 255, .8); margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 60px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer-social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--c-grad); transform: translateY(-3px); border-color: transparent; }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-family: 'Space Grotesk', sans-serif; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col p { color: rgba(255, 255, 255, .7); font-size: 15px; transition: color .25s; }
.footer-col a:hover { color: var(--c-orange); }
.footer-rg-list { display: grid; gap: 10px; }
.footer-rg-list li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.footer-rg-list svg { width: 18px; height: 18px; color: #ffd43b; flex-shrink: 0; margin-top: 3px; }

.footer-logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-logos__label { font-size: 13px; color: rgba(255, 255, 255, .55); width: 100%; margin-bottom: 4px; }
.rg-logo {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 10px 16px; transition: background .25s, transform .25s;
}
.rg-logo:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.rg-logo svg { width: 26px; height: 26px; color: #fff; }
.rg-logo b { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: #fff; }
.rg-logo small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); }
.rg-logo .rg-logo__txt { line-height: 1.2; }
.age-badge { display: inline-flex; align-items: center; gap: 8px; }
.age-badge svg { width: 36px; height: 36px; color: #ffd43b; }

.footer-disclaimer {
  background: #110a20; padding-block: 22px; font-size: 14px;
  color: rgba(255, 255, 255, .82); border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-disclaimer p { text-align: center; }
.footer-disclaimer b { color: #ffd43b; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed; bottom: 20px; right: 20px; z-index: 170;
  width: min(380px, calc(100vw - 40px));
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-l); padding: 22px;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.cookie-banner.is-open { transform: none; }
.cookie-banner p { font-size: 14px; color: var(--c-muted); margin-bottom: 16px; }
.cookie-banner a { color: var(--c-violet-d); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__actions .btn { flex: 1; padding: 11px 18px; font-size: 14px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .feature-grid, .how-grid, .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1220px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; min-height: 320px; }
  .community__inner, .demo__wrap, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .feature-grid, .how-grid, .biz-grid, .values-grid { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 30px 24px; }
  .review__avatar { margin: 0 auto; }
  .review__stars { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; padding-block: 44px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .games-grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .community__actions .btn { flex: 1; }
  .hero__stats { gap: 24px; }
  .slot__controls { justify-content: center; }
  .slot__spin { flex: 1; }
}
@media (max-width: 380px) {
  .container { padding-inline: 14px; }
  .chat-panel { right: 12px; bottom: 92px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .slot__top { justify-content: center; text-align: center; }
}
