/* Донатыч — стиль A «Аркада». Светлая и тёмная тема. */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/static/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/static/fonts/unbounded-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, [data-theme="dark"] {
  --bg: #0D0F1C;
  --surf: #151829;
  --surf2: #1C2036;
  --line: #262B45;
  --text: #F3F4FA;
  --muted: #A3A9C8;
  --soft: #C7CBE0;
  --dim: #8A91B4;
  --acc: #6B4EFF;
  --acc-hover: #5A3DF0;
  --acc-soft: #241F4A;
  --acc-ink: #C9BEFF;
  --link: #C9BEFF;
  --hi: #FFC93C;
  --price: #FFC93C;
  --star: #FFC93C;
  --ok: #3DDC97;
  --ok-bg: #16302A;
  --warn: #FFC93C;
  --warn-bg: #3A2F12;
  --bad: #FF8A8A;
  --bad-bg: #3A1A1F;
  --hero-bg: #1A1640;
  --hero-line: #2E2770;
  --hero-ink: #B9ACFF;
  --scrim: rgba(5, 6, 14, .66);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F5F6FB;
  --surf: #FFFFFF;
  --surf2: #F1F2F8;
  --line: #E3E6F0;
  --text: #14162B;
  --muted: #5A6080;
  --soft: #3C4160;
  --dim: #6B7190;
  --acc: #5B3DF5;
  --acc-hover: #4A2BE6;
  --acc-soft: #EEEAFF;
  --acc-ink: #4B2FE0;
  --link: #4B2FE0;
  --hi: #5B3DF5;
  --price: #B45309;
  --star: #E8A10E;
  --ok: #047857;
  --ok-bg: #E3F6EE;
  --warn: #92400E;
  --warn-bg: #FEF3C7;
  --bad: #B42318;
  --bad-bg: #FDE7E7;
  --hero-bg: #EEEAFF;
  --hero-line: #DCD3FF;
  --hero-ink: #4B2FE0;
  --scrim: rgba(20, 22, 43, .38);
  --shadow: 0 18px 50px rgba(30, 30, 80, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: Unbounded, Manrope, system-ui, sans-serif; letter-spacing: -0.02em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.price { color: var(--price); font-weight: 800; }
.hidden { display: none !important; }

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--acc); color: #FFFFFF; }
.btn--primary:hover { background: var(--acc-hover); }
.btn--ghost { background: var(--surf); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--acc); }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; font-weight: 800; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf);
  display: inline-grid; place-items: center; cursor: pointer; flex: none; position: relative;
}
.icon-btn:hover { border-color: var(--acc); }
.icon { width: 20px; height: 20px; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; color: var(--soft); }
.input {
  height: 50px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf);
  padding: 0 14px; color: var(--text); width: 100%; outline: none;
}
.input:focus { border-color: var(--acc); }
.hint { font-size: 13px; color: var(--dim); }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.badge--auto { color: var(--ok); background: var(--ok-bg); }
.badge--id { color: var(--acc-ink); background: var(--acc-soft); }
.badge--code { color: var(--warn); background: var(--warn-bg); }
.badge--plain { color: var(--soft); background: var(--surf2); }
.card { background: var(--surf); border: 1px solid var(--line); border-radius: 20px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка ---------- */
.header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.header__in { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__text { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surf);
  border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 46px; position: relative; min-width: 0;
}
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surf); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 6px; z-index: 40; max-height: 360px; overflow-y: auto;
}
.search__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.search__item:hover, .search__item.active { background: var(--surf2); }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; color: var(--soft); flex: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { font-weight: 800; }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surf); font-weight: 700; }
.avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 800; }
.dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #F43F5E; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.burger { display: none; }
.theme-ic--sun { display: none; }
[data-theme="dark"] .theme-ic--sun { display: block; }
[data-theme="dark"] .theme-ic--moon { display: none; }
.mobile-menu { display: none; }

/* ---------- Главная ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 60px; padding-bottom: 36px; }
.hero__text { flex: 1 1 480px; min-width: 0; }
.hero__side { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.hero h1 { font-weight: 800; font-size: 54px; line-height: 1.08; margin: 20px 0 18px; }
.hero h1 span { color: var(--hi); }
.lead { margin: 0 0 28px; color: var(--muted); font-size: 19px; max-width: 540px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 560px; font-size: 14px; color: var(--soft); }
.trust b { display: block; color: var(--text); }
.hot { grid-column: span 2; background: var(--hero-bg); border: 1px solid var(--hero-line); border-radius: 22px; padding: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; min-height: 170px; }
.hot__kicker { font-size: 13px; font-weight: 800; color: var(--hero-ink); text-transform: uppercase; letter-spacing: .08em; }
.mini { background: var(--surf); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-height: 140px; display: block; }
.mini:hover, .hot:hover { border-color: var(--acc); }
.section { padding-top: 36px; padding-bottom: 36px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.section__head h2, .h2 { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 32px; margin: 0; letter-spacing: -0.02em; }
.section__head a { font-weight: 700; color: var(--link); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; background: var(--surf); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.tile:hover { transform: translateY(-3px); border-color: var(--acc); }
.tile__art { height: 132px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tile__art img { width: 100%; height: 100%; object-fit: cover; }
.tile__mono { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 44px; color: rgba(255, 255, 255, .94); }
.tile__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { padding: 24px; }
.step__n { width: 44px; height: 44px; border-radius: 12px; background: var(--acc); color: #fff; display: grid; place-items: center; font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 18px; }
.step h3 { margin: 16px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surf); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.review { padding: 22px; }
.stars { color: var(--star); letter-spacing: 2px; }

/* ---------- Каталог ---------- */
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head h1 { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 40px; margin: 0 0 6px; letter-spacing: -0.02em; }
.crumbs { font-size: 14px; color: var(--dim); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surf); color: var(--soft); }
.chip[aria-pressed="true"], .chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.grow { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.grow:hover { transform: translateY(-2px); border-color: var(--acc); }
.gicon { width: 64px; height: 64px; flex: none; border-radius: 16px; color: #fff; display: grid; place-items: center; font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 22px; overflow: hidden; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Страница игры ---------- */
.gpage { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 20px; padding-bottom: 56px; }
.gpage__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.gpage__side { flex: 1 1 340px; min-width: 0; position: sticky; top: 92px; }
.ghead { padding: 24px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.ghead .gicon { width: 104px; height: 104px; border-radius: 24px; font-size: 44px; }
.ghead h1 { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 36px; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags .badge { font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.h3 { font-size: 20px; margin: 0 0 14px; font-weight: 800; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.opt {
  position: relative; text-align: left; cursor: pointer; border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 2px; background: var(--surf); border: 2px solid var(--line); color: var(--text);
}
.opt:hover { border-color: var(--acc); }
.opt[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.opt[disabled] { opacity: .5; cursor: default; }
.opt__big { font-family: Unbounded, Manrope, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; }
.opt__sub { color: var(--muted); font-size: 13px; font-weight: 600; }
.opt__tag { position: absolute; top: -9px; right: 10px; background: var(--hi); color: #241B00; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
[data-theme="light"] .opt__tag { color: #fff; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ways .opt { gap: 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.buy { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.buy__sel { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surf2); border-radius: 14px; padding: 14px 16px; }
.buy__total { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.buy__total b { font-family: Unbounded, Manrope, sans-serif; font-size: 28px; }
.pays { display: flex; flex-direction: column; gap: 8px; }
.pays .opt { padding: 12px 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { text-transform: uppercase; height: 46px; }
.assure { display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 14px; }
.assure div { display: flex; gap: 10px; align-items: center; }
.msg { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.msg--bad { background: var(--bad-bg); color: var(--bad); }
.msg--ok { background: var(--ok-bg); color: var(--ok); }
.msg--info { background: var(--acc-soft); color: var(--acc-ink); }
.prose { color: var(--soft); }
.prose h2 { color: var(--text); font-size: 22px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--soft); }
.mbar { display: none; }

/* ---------- Вход, оплата, кабинет ---------- */
.center-page { display: grid; place-items: center; padding: 48px 16px 64px; }
.panel { width: 100%; max-width: 460px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.chat { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat__head .dim { font-size: 13px; flex-basis: 100%; }
.chat__list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding: 2px; }
.chat__empty { font-size: 14px; text-align: center; padding: 14px; background: var(--surf2); border-radius: 12px; }
.chat__form { display: flex; flex-direction: column; gap: 8px; }
.chat__form textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 64px; }
.cmsg { max-width: 86%; display: flex; flex-direction: column; gap: 3px; }
.cmsg__b { padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; background: var(--surf2); }
.cmsg__m { font-size: 11px; color: var(--dim); padding: 0 4px; }
.cmsg--customer { align-self: flex-end; text-align: right; }
.cmsg--customer .cmsg__b { background: var(--acc); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.cmsg--staff .cmsg__b { border-bottom-left-radius: 4px; }
.cmsg--system { align-self: center; max-width: 100%; text-align: center; }
.cmsg--system .cmsg__b { background: var(--warn-bg); color: var(--warn); font-size: 13px; }
.panel h1 { font-family: Unbounded, Manrope, sans-serif; font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code-inputs input { height: 60px; text-align: center; border-radius: 14px; border: 2px solid var(--line); background: var(--surf); font-family: Unbounded, Manrope, sans-serif; font-size: 24px; font-weight: 800; width: 100%; outline: none; }
.code-inputs input:focus { border-color: var(--acc); }
.orb { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); margin: 0 auto; }
.orb--ok { background: var(--ok-bg); color: var(--ok); }
.orb--bad { background: var(--bad-bg); color: var(--bad); }
.codebox { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 17px; word-break: break-all; }
.acc { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.acc__side { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.acc__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.side-nav { padding: 8px; display: flex; flex-direction: column; }
.side-nav a, .side-nav button { padding: 11px 12px; border-radius: 12px; font-weight: 600; text-align: left; background: none; border: 0; cursor: pointer; }
.side-nav a[aria-current="page"] { background: var(--acc-soft); color: var(--acc-ink); font-weight: 800; }
.side-nav a:hover, .side-nav button:hover { background: var(--surf2); }
.wallet { background: var(--hero-bg); border: 1px solid var(--hero-line); border-radius: 22px; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.order { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.order .gicon { width: 56px; height: 56px; font-size: 20px; }
.order__main { flex: 1 1 240px; min-width: 0; }
.order__right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.order__actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.st { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 8px; }
.st--run { color: var(--acc-ink); background: var(--acc-soft); }
.st--ok { color: var(--ok); background: var(--ok-bg); }
.st--wait { color: var(--warn); background: var(--warn-bg); }
.st--bad { color: var(--bad); background: var(--bad-bg); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- Окна, уведомления, чат-кнопка ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: var(--scrim); }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surf); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.modal__box h2 { margin: 0; font-size: 22px; }
.notif { padding: 14px 16px; border-radius: 14px; background: var(--surf2); }
.notif--new { box-shadow: inset 3px 0 0 var(--acc); }
.notif p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.toasts { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 24px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow); max-width: 520px; }
.toast--bad { background: var(--bad); color: #fff; }
body:has([data-chat]) .chat-fab { display: none; }
.chat-fab { position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px; border-radius: 20px; background: var(--acc); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(20, 16, 60, .35); z-index: 25; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 36px; padding-bottom: 20px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; font-size: 14px; color: var(--soft); }
.footer__nav a:hover { color: var(--text); }
.footer__copy { color: var(--dim); font-size: 13px; padding-bottom: 28px; }

/* ---------- Телефон ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__in { flex-wrap: wrap; gap: 10px; }
  .logo { flex: 1; }
  .search { order: 5; flex: 1 1 100%; }
  .balance-chip { display: none; }
  .mobile-menu.open { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 14px; border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 8px; font-weight: 700; border-radius: 10px; }
  .mobile-menu a:hover { background: var(--surf2); }
  .gpage__side { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header__in { padding-top: 12px; padding-bottom: 12px; }
  .logo__text { font-size: 19px; }
  .header__actions .btn { padding: 0 14px; }
  .hero { padding-top: 28px; gap: 28px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .hero .btn--lg { width: 100%; }
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; gap: 8px; font-size: 12px; }
  .trust > div { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; }
  .hero__side { display: none; }
  .section__head h2, .h2 { font-size: 22px; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__art { height: 96px; }
  .tile__mono { font-size: 30px; }
  .tile__body { padding: 10px 12px 12px; }
  .tile__body .muted, .tile__row .badge { display: none; }
  .page-head h1 { font-size: 28px; }
  .ghead { padding: 18px; gap: 14px; }
  .ghead .gicon { width: 72px; height: 72px; font-size: 26px; border-radius: 18px; }
  .ghead h1 { font-size: 22px; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .opt__big { font-size: 17px; }
  .gpage { padding-bottom: 120px; }
  .buy__submit { display: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surf); border-top: 1px solid var(--line); align-items: center; gap: 12px; }
  .mbar b { font-family: Unbounded, Manrope, sans-serif; font-size: 20px; }
  .chat-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .has-mbar .chat-fab { bottom: 96px; }
  .footer__nav { gap: 10px 20px; }
  .panel { padding: 22px; }
  .acc__side { max-width: none; flex-basis: 100%; }
}
