:root {
  --bg: #131419;
  --bg-2: #101116;
  --line: #2a2b31;
  --surf: #1a1c23;
  --surf-2: #232632;
  --surf-3: #2e3240;
  --gold: #fde348;
  --gold-2: #f2a007;
  --gold-ink: #1b1c20;
  --txt: #ffffff;
  --txt-2: #c9cdd8;
  --dim: #8b93a3;
  --violet: #7c4dff;
  --mint: #3ddc97;
  --red: #f25f5c;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, #ffe066 0%, var(--gold) 55%, #f6c700 100%);
  color: var(--gold-ink);
  box-shadow: 0 8px 22px rgba(253, 227, 72, .22);
}
.btn--gold:hover { box-shadow: 0 10px 28px rgba(253, 227, 72, .4); }
.btn--ghost { background: var(--surf-2); color: var(--txt); border-color: #3a3d4a; }
.btn--ghost:hover { background: var(--surf-3); }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 15px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 20, 25, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner { height: 74px; display: flex; align-items: center; gap: 26px; }
.topbar__brand { display: flex; align-items: center; line-height: 0; }
.topbar__brand img { height: 30px; width: auto; }
.topbar__nav { display: flex; align-items: center; gap: 22px; }
.topbar__nav a {
  color: var(--txt-2); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.topbar__nav a:hover, .topbar__nav a[aria-current="page"] { color: var(--gold); text-decoration: none; }
.topbar__actions { margin-left: auto; display: flex; gap: 10px; }
.topbar__burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--surf-2); place-items: center;
}
.topbar__burger svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 46px;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(124, 77, 255, .28), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(253, 227, 72, .12), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(253, 227, 72, .1); border: 1px solid rgba(253, 227, 72, .3);
  color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; margin: 18px 0 16px; font-weight: 900; }
.hero h1 span { color: var(--gold); }
.hero__lead { color: var(--txt-2); font-size: 17px; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__bonus {
  position: relative; padding: 30px; border-radius: var(--r-xl);
  background: linear-gradient(145deg, #2b2d6b 0%, #1c1e27 60%);
  border: 1px solid rgba(124, 77, 255, .45); box-shadow: var(--shadow);
}
.hero__bonus small { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.hero__bonus strong { display: block; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; color: var(--gold); margin: 8px 0; font-weight: 900; }
.hero__bonus p { color: var(--txt-2); margin: 0 0 18px; }
.hero__bonus ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.hero__bonus li { display: flex; gap: 10px; color: var(--txt-2); font-size: 15px; }
.hero__bonus li::before { content: "✓"; color: var(--mint); font-weight: 900; }
.hero__bonus .btn { width: 100%; }

.byline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px;
  color: var(--dim); font-size: 14px;
}
.byline img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.byline a { color: var(--txt); font-weight: 700; }
.byline__sep { opacity: .4; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--dim); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--txt-2); }

/* ---------- Layout / article ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 40px 0 60px; }
.article { min-width: 0; }
.article h2 {
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 46px 0 16px; font-weight: 900;
  scroll-margin-top: 100px;
}
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 21px; line-height: 1.3; margin: 32px 0 12px; scroll-margin-top: 100px; }
.article h4 { font-size: 17px; margin: 24px 0 8px; color: var(--gold); }
.article p { color: var(--txt-2); margin: 0 0 16px; overflow-wrap: break-word; }
.article strong { color: var(--txt); }
.article ul, .article ol { color: var(--txt-2); padding-left: 0; margin: 0 0 20px; list-style: none; }
.article ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.article ul li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--gold); transform: rotate(45deg);
}
.article ol { counter-reset: step; }
.article ol li { position: relative; padding-left: 46px; margin-bottom: 14px; min-height: 32px; }
.article ol li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; background: var(--surf-2); border: 1px solid #3a3d4a;
  color: var(--gold); font-weight: 900; font-size: 14px;
}
.article hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }

.callout {
  margin: 22px 0; padding: 18px 20px 18px 22px; border-radius: var(--r-md);
  background: rgba(253, 227, 72, .07); border: 1px solid rgba(253, 227, 72, .25); border-left: 4px solid var(--gold);
}
.callout p { margin: 0; }
.callout--mint { background: rgba(61, 220, 151, .07); border-color: rgba(61, 220, 151, .25); border-left-color: var(--mint); }
.callout--violet { background: rgba(124, 77, 255, .1); border-color: rgba(124, 77, 255, .35); border-left-color: var(--violet); }

.card {
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.tip-card h3 { margin: 0 0 8px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.tip-card h3 span {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px;
  background: var(--surf-3);
}
.tip-card p { margin: 0; font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--r-md); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); color: var(--txt-2); vertical-align: top; }
th { background: var(--surf-2); color: var(--txt); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar__sticky { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 8px; color: var(--txt-2); font-size: 14px; line-height: 1.35;
}
.toc a:hover, .toc a.is-active { background: var(--surf-2); color: var(--gold); text-decoration: none; }
.side-bonus { text-align: center; background: linear-gradient(160deg, #2b2d6b, #1a1c23 70%); border-color: rgba(124, 77, 255, .4); }
.side-bonus small { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.side-bonus strong { display: block; color: var(--gold); font-size: 26px; line-height: 1.15; margin: 8px 0 14px; }
.side-bonus .btn { width: 100%; }
.side-author { display: flex; gap: 14px; align-items: center; }
.side-author img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--gold); flex: none; }
.side-author b { display: block; color: var(--txt); }
.side-author span { color: var(--dim); font-size: 13px; }

/* ---------- Registration demo (animated phone) ---------- */
.demo {
  padding: 60px 0;
  background:
    radial-gradient(520px 320px at 75% 50%, rgba(124, 77, 255, .22), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.demo__grid { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: center; }
.demo__head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 14px 0 12px; font-weight: 900; }
.demo__head p { color: var(--txt-2); margin: 0 0 24px; }
.flow { display: grid; gap: 10px; }
.flow-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surf); border: 1px solid var(--line); transition: border-color .3s, background .3s, transform .3s;
}
.flow-item p { margin: 0; color: var(--txt-2); font-weight: 600; }
.flow-n {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--surf-3); color: var(--dim); font-weight: 900; transition: background .3s, color .3s;
}
.flow-item.is-active { border-color: rgba(253, 227, 72, .6); background: #1f2029; transform: translateX(6px); }
.flow-item.is-active .flow-n { background: var(--gold); color: var(--gold-ink); }
.flow-item.is-active p { color: var(--txt); }
.flow-item.is-done .flow-n { background: rgba(61, 220, 151, .18); color: var(--mint); }
.demo__replay { margin-top: 18px; }

.stage { display: flex; justify-content: center; min-width: 0; }
.phone {
  position: relative; flex: none; width: 340px; height: 680px; border-radius: 46px; padding: 14px;
  transform-origin: top center;
  background: linear-gradient(160deg, #2e3240, #0c0d11);
  box-shadow: 0 0 0 2px #3a3d4a, 0 40px 80px rgba(0, 0, 0, .55), 0 0 80px rgba(124, 77, 255, .25);
}
.phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.phone .status {
  height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 12px; font-weight: 700; color: var(--txt);
}
.phone .notch { width: 90px; height: 24px; border-radius: 0 0 14px 14px; background: #0c0d11; margin-top: -10px; }
.app-head {
  height: 52px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.app-head img { height: 20px; width: auto; }
.app-head .mini-btns { display: flex; gap: 6px; }
.app-head .mini-btns span {
  font-size: 10px; font-weight: 800; padding: 6px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: .04em;
}
.app-head .mini-btns span:first-child { background: var(--surf-2); }
.app-head .mini-btns span:last-child { background: var(--gold); color: var(--gold-ink); }
.hint-bar {
  flex: none; margin: 10px 12px 0; padding: 8px 12px; border-radius: 10px;
  background: rgba(124, 77, 255, .18); border: 1px solid rgba(124, 77, 255, .45);
  font-size: 12px; font-weight: 700; color: #e4dcff; display: flex; gap: 8px; align-items: center;
}
.hint-bar span:first-child { color: var(--gold); }

.screens { position: relative; flex: 1; overflow: hidden; }
.screen {
  position: absolute; inset: 0; padding: 14px; opacity: 0; transform: translateX(30px);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none;
  display: flex; flex-direction: column;
}
.screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.screen.is-leaving { opacity: 0; transform: translateX(-30px); }

.welcome-hero {
  padding: 20px 16px; border-radius: 18px; text-align: center;
  background: linear-gradient(160deg, #2b2d6b 0%, #1c1e27 75%);
  border: 1px solid rgba(124, 77, 255, .4);
}
.welcome-hero small { display: block; color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.welcome-hero .bonus-num { font-size: 27px; font-weight: 900; color: var(--gold); line-height: 1.1; margin: 8px 0 4px; }
.welcome-hero p { font-size: 12px; color: var(--txt-2); margin: 0 0 14px; }
.welcome-actions { display: grid; gap: 8px; }
.p-btn {
  height: 42px; border-radius: 11px; border: 0; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.p-btn--gold { background: var(--gold); color: var(--gold-ink); }
.p-btn--dark { background: var(--surf-2); color: var(--txt); border: 1px solid #3a3d4a; }
.p-btn--google { background: #fff; color: #1b1c20; display: flex; align-items: center; justify-content: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 700; }
.p-btn.is-pressed { transform: scale(.95); filter: brightness(1.15); box-shadow: 0 0 0 4px rgba(253, 227, 72, .35); }
.quick-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.quick-games img { border-radius: 10px; aspect-ratio: 260 / 344; object-fit: contain; width: 100%; height: auto; }

.modal {
  position: relative; background: var(--surf); border: 1px solid var(--line); border-radius: 18px; padding: 14px;
}
.modal__close {
  position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--surf-2); color: var(--dim); font-size: 15px; line-height: 1;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 11px; margin: 0 34px 14px 0; }
.tabs span { text-align: center; font-size: 12px; font-weight: 800; padding: 7px 0; border-radius: 8px; color: var(--dim); transition: background .3s, color .3s; }
.tabs span.is-on { background: var(--surf-3); color: var(--txt); }
.field { margin-bottom: 9px; }
.field label { display: block; font-size: 10px; color: var(--dim); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.field .box {
  height: 38px; border-radius: 10px; background: var(--bg); border: 1px solid #3a3d4a;
  display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--txt);
  transition: border-color .2s, box-shadow .2s; overflow: hidden; white-space: nowrap;
}
.field .box.is-focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(253, 227, 72, .15); }
.field .box.is-focus::after { content: ""; width: 1px; height: 16px; background: var(--gold); margin-left: 2px; animation: caret 1s steps(1) infinite; }
.field .box:empty::before { content: attr(data-ph); color: #5d6475; }
@keyframes caret { 50% { opacity: 0; } }
.modal .p-btn { width: 100%; margin-top: 4px; }
.modal__alt { text-align: center; font-size: 11px; color: var(--dim); margin: 8px 0; }
.modal__alt b { color: var(--gold); }
.modal__or { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin: 8px 0; }
.modal__or::before, .modal__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.success { text-align: center; padding-top: 10px; }
.success__ico {
  width: 74px; height: 74px; border-radius: 50%; margin: 6px auto 14px; display: grid; place-items: center;
  background: rgba(61, 220, 151, .15); border: 2px solid var(--mint); color: var(--mint); font-size: 34px; font-weight: 900;
  animation: pop .5s ease;
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.success h3 { font-size: 19px; margin: 0 0 6px; }
.success p { font-size: 12px; color: var(--txt-2); margin: 0 0 12px; }
.bonus-ticket {
  border-radius: 14px; padding: 14px; margin-bottom: 12px;
  background: repeating-linear-gradient(135deg, rgba(253, 227, 72, .08) 0 10px, transparent 10px 20px), var(--surf-2);
  border: 1px dashed rgba(253, 227, 72, .6);
}
.bonus-ticket b { display: block; font-size: 22px; color: var(--gold); line-height: 1.1; }
.bonus-ticket span { font-size: 11px; color: var(--txt-2); }
.deposit-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.deposit-row span { padding: 8px 0; border-radius: 9px; background: var(--surf-2); font-size: 12px; font-weight: 800; border: 1px solid #3a3d4a; transition: all .2s; }
.deposit-row span.is-on { border-color: var(--gold); color: var(--gold); background: rgba(253, 227, 72, .08); }

.lobby-title { font-size: 13px; font-weight: 800; margin: 0 0 10px; display: flex; justify-content: space-between; }
.lobby-title span { color: var(--gold); font-size: 11px; }
.lobby-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.lobby-chips span { font-size: 10px; font-weight: 800; padding: 5px 9px; border-radius: 999px; background: var(--surf-2); color: var(--txt-2); }
.lobby-chips span:first-child { background: var(--gold); color: var(--gold-ink); }
.lobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lobby-grid .game { position: relative; border-radius: 11px; overflow: hidden; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.lobby-grid .game img { width: 100%; height: auto; aspect-ratio: 260 / 344; object-fit: contain; }
.lobby-grid .game.is-pressed { border-color: var(--gold); transform: scale(.95); }

.slot { background: linear-gradient(180deg, #2b2d6b, #1a1c23); border-radius: 16px; padding: 12px; border: 1px solid rgba(124, 77, 255, .45); }
.slot__name { text-align: center; font-weight: 900; font-size: 13px; margin-bottom: 8px; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); padding: 6px; border-radius: 12px; }
.reel { height: 74px; overflow: hidden; border-radius: 8px; background: var(--surf); }
.reel-track { display: flex; flex-direction: column; }
.reel-track span { height: 74px; display: grid; place-items: center; font-size: 36px; flex: none; }
.reel.is-spinning .reel-track { animation: reel .18s linear infinite; }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(-222px); } }
.slot-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--txt-2); margin: 10px 2px; }
.slot-meta b { color: var(--txt); }
.slot .p-btn { width: 100%; }
.win-banner {
  margin-top: 12px; padding: 14px; border-radius: 14px; text-align: center;
  background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .5);
  opacity: 0; transform: translateY(14px) scale(.95); transition: all .4s ease;
}
.win-banner.is-on { opacity: 1; transform: none; }
.win-banner span { font-size: 11px; color: var(--txt-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.win-banner strong { display: block; font-size: 26px; color: var(--mint); line-height: 1.2; }

.nav-app {
  flex: none; height: 56px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .06); background: var(--bg-2);
}
.nav-app span { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; color: var(--dim); gap: 2px; }
.nav-app span b { font-size: 16px; line-height: 1; }

.tap {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 5; pointer-events: none;
  margin: -6px 0 0 -10px; opacity: 0;
  transition: transform .7s cubic-bezier(.45, .05, .25, 1), opacity .3s;
}
.tap.is-on { opacity: 1; }
.tap svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.tap::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold); opacity: 0; transform: scale(.4);
}
.tap.is-click::after { animation: ripple .45s ease-out; }
@keyframes ripple { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(2); } }

/* ---------- Games strip ---------- */
.games { padding: 50px 0 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; font-weight: 900; }
.section-head p { margin: 4px 0 0; color: var(--dim); }
.games__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.game-card { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surf); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(253, 227, 72, .5); }
.game-card img { width: 100%; height: auto; aspect-ratio: 260 / 344; object-fit: contain; }
.game-card span { display: block; padding: 8px 10px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--txt-2); overflow-wrap: anywhere; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cat { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 12px; background: var(--surf-2); font-size: 13px; font-weight: 700; color: var(--txt-2); }
.cat img { width: 38px; height: auto; aspect-ratio: 300 / 259; border-radius: 6px; object-fit: contain; }

/* ---------- Author page ---------- */
.author-hero {
  padding: 46px 0;
  background: radial-gradient(520px 260px at 80% 20%, rgba(124, 77, 255, .25), transparent 70%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.author-hero__grid { display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: center; }
.author-hero__photo { width: 180px; height: 180px; border-radius: 50%; border: 4px solid var(--gold); box-shadow: 0 0 0 8px rgba(253, 227, 72, .1); }
.author-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 10px 0 6px; line-height: 1.1; font-weight: 900; }
.author-hero__role { color: var(--gold); font-weight: 700; margin: 0 0 12px; }
.author-hero__lead { color: var(--txt-2); margin: 0; max-width: 720px; }
.author-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.author-stats div { padding: 10px 16px; border-radius: var(--r-md); background: var(--surf); border: 1px solid var(--line); }
.author-stats b { display: block; font-size: 20px; color: var(--gold); line-height: 1.2; }
.author-stats span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(253, 227, 72, .5); transform: translateY(-3px); }
.post-card small { color: var(--violet); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; filter: brightness(1.5); }
.post-card h3 { margin: 0 !important; font-size: 18px !important; color: var(--txt); }
.post-card p { margin: 0 !important; font-size: 14px; }
.post-card em { font-style: normal; font-size: 12px; color: var(--dim); margin-top: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 46px 0 26px; color: var(--dim); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer__brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer__brand p { margin: 0; max-width: 380px; }
.footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--txt); margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--txt-2); }
.footer a:hover { color: var(--gold); }
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--surf); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--txt-2);
}
.badge--18 { border-color: var(--red); color: var(--red); width: 36px; padding: 0; justify-content: center; border-radius: 50%; border-width: 2px; }
.footer__copy { margin-top: 18px; font-size: 13px; }

/* ---------- Cookie bar ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80; max-width: 760px; margin: 0 auto;
  display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg);
  background: var(--surf-2); border: 1px solid #3a3d4a; box-shadow: var(--shadow);
  font-size: 14px; color: var(--txt-2);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie__btns { display: flex; gap: 8px; flex: none; }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sidebar__sticky { position: static; }
  .sidebar { order: -1; }
  .sidebar .toc, .sidebar .side-author { display: none; }
  .sidebar:not(:has(.side-bonus)) { display: none; }
  .games__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .topbar__nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .topbar__burger { display: grid; }
  .topbar__actions .btn--ghost { display: none; }
  .hero__grid, .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 28px; }
  .demo { padding: 44px 0; }
  .demo__grid { gap: 30px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar__inner { height: 60px; gap: 10px; }
  .topbar__brand img { height: 22px; }
  .topbar__actions .btn { padding: 0 12px; font-size: 11px; min-height: 38px; letter-spacing: .04em; }
  .topbar__burger { width: 40px; height: 40px; }
  .hero { padding: 28px 0 26px; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__bonus { padding: 22px 18px; }
  .byline { font-size: 13px; gap: 8px; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .btn--lg { min-height: 50px; padding: 0 20px; font-size: 14px; }
  .layout { padding: 28px 0 40px; }
  .article h2 { margin-top: 34px; }
  .article hr { margin: 28px 0; }
  .card { padding: 18px; }
  .grid-2, .grid-3, .posts { grid-template-columns: 1fr; }
  th, td { padding: 10px 12px; font-size: 14px; }
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td { border: 0; padding: 6px 14px; }
  .table-stack td::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 2px;
  }
  .section-head .btn { width: 100%; }
  .games { padding-top: 34px; }
  .games__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game-card span { font-size: 12px; padding: 6px 8px; }
  .cat { font-size: 12px; padding: 5px 12px 5px 5px; }
  .cat img { width: 32px; }
  .demo__replay { width: 100%; }
  .flow-item { padding: 10px 12px; }
  .flow-item.is-active { transform: none; }
  .author-hero { padding: 30px 0; }
  .author-hero__grid { grid-template-columns: 1fr; gap: 20px; text-align: center; justify-items: center; }
  .author-hero__photo { width: 140px; height: 140px; }
  .author-stats { justify-content: center; }
  .footer { padding: 34px 0 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .cookie { left: 10px; right: 10px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; font-size: 13px; }
  .cookie__btns .btn { flex: 1; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .topbar__brand img { height: 20px; }
  .topbar__actions .btn { padding: 0 10px; font-size: 10px; }
  .games__grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
