/* ==========================================================================
   7games-br.com — template
   style.css
   ========================================================================== */

/* ---------- 1. Переменные ---------- */
:root {
  --bg: #1a1e1c;
  --bg-soft: #1f2421;
  --panel: #252b28;
  --panel-2: #2c3330;
  --panel-3: #343c38;
  --line: #353d39;
  --green: #1f9a52;
  --green-hover: #25b461;
  --green-soft: rgba(31, 154, 82, .16);
  --green-deep: #173d27;
  --green-border: #2e5a3f;
  --yellow: #ffcc29;
  --text: #e9eeeb;
  --muted: #a3ada8;
  --danger: #e5484d;
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-w: 270px;
  --sidebar-mini: 78px;
  --header-h: 64px;
  --bottom-h: 62px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

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

.ico {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 26px; height: 26px; }

@media (min-width: 992px) { .mobile-only { display: none !important; } }
@media (max-width: 991px) { .desktop-only { display: none !important; } }

/* ---------- 3. Плашка приложения (моб.) ---------- */
.app-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #000;
}
.app-bar[hidden] { display: none; }
.app-bar__close { display: flex; color: #fff; }
.app-bar__close .ico { width: 24px; height: 24px; }
.app-bar__icon { width: 36px; height: 36px; border-radius: 8px; }
.app-bar__text { flex: 1; margin: 0; font-size: 12px; line-height: 1.3; color: #fff; }
.app-bar__btn {
  flex: none; padding: 7px 12px;
  border: 1px solid #fff; border-radius: 4px;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; color: #fff;
}

/* ---------- 4. Сайдбар ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sidebar-w);
  padding: 20px 22px 30px;
  background: var(--bg-soft);
  border-right: 1px solid #141816;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-3) transparent;
  transition: width .25s ease, transform .3s ease, padding .25s ease;
}
.sidebar__top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.burger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); background: var(--panel);
  color: var(--muted); transition: color .2s;
}
.burger:hover { color: #fff; }
.logo img { height: 40px; width: auto; }
.gift {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--green); color: #fff;
}
.gift .ico { width: 18px; height: 18px; }
.sidebar__close { margin-left: auto; display: flex; color: var(--muted); }

.side-group, .side-link {
  margin-bottom: 12px;
  background: var(--panel);
  border-radius: var(--radius);
}
.side-group__head, .side-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px;
  font-size: 15px; font-weight: 500; text-align: left;
  transition: color .2s, background .2s;
}
.side-link:hover, .side-group__head:hover { color: #fff; background: var(--panel-2); border-radius: var(--radius); }
.side-group.is-open .side-group__head { font-weight: 700; }
.side-group__chev { margin-left: auto; width: 16px; height: 16px; transition: transform .25s; }
.side-group.is-open .side-group__chev { transform: rotate(180deg); }
.side-group__list { list-style: none; margin: 0; padding: 0 0 8px; }
.side-group:not(.is-open) .side-group__list { display: none; }
.side-group__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  font-size: 14px; color: var(--muted);
  transition: color .2s, background .2s;
}
.side-group__list a:hover { color: #fff; }
.side-group__list a.is-active { color: var(--green-hover); background: var(--green-soft); }
.side-group__list .ico { width: 18px; height: 18px; }

/* компактный режим (desktop) */
@media (min-width: 992px) {
  body.sidebar-mini .sidebar { width: var(--sidebar-mini); padding: 20px 12px; }
  body.sidebar-mini .page { margin-left: var(--sidebar-mini); }
  body.sidebar-mini .sidebar .label,
  body.sidebar-mini .sidebar .logo,
  body.sidebar-mini .sidebar .gift,
  body.sidebar-mini .side-group__chev,
  body.sidebar-mini .side-group__list { display: none; }
  body.sidebar-mini .side-link,
  body.sidebar-mini .side-group__head { justify-content: center; padding: 14px 0; }
  body.sidebar-mini .sidebar__top { justify-content: center; }
}

.overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

/* ---------- 5. Каркас страницы ---------- */
.page {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 100vh;
  margin-left: var(--sidebar-w);
  padding: 0 18px;
  transition: margin-left .25s ease;
}

/* ---------- 6. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--header-h);
  background: var(--bg);
}
.header__logo { display: none; align-items: center; gap: 8px; }
.header__logo img { height: 32px; width: auto; }
.header__tabs { display: flex; gap: 6px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--panel); font-size: 15px; font-weight: 500;
  transition: background .2s;
}
.tab:hover { background: var(--panel-2); }
.tab.is-active { background: var(--green-deep); border-color: var(--green-border); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__more {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 6px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--ghost { border-color: #4a524e; }
.btn--ghost:hover { border-color: var(--green); color: #fff; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-hover); }
.btn--lg { height: 46px; padding: 0 24px; font-size: 15px; }

/* мобильная навигация по разделам */
.cat-nav {
  display: flex; gap: 8px;
  margin: 0 -10px; padding: 8px 10px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--bg-soft);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none; padding: 8px 16px;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--panel);
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}
.cat-nav a.is-active { border-color: var(--green); color: #fff; }

/* ---------- 7. Промо-баннеры ---------- */
.promos-wrap { position: relative; margin-top: 4px; }
.promos {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.promo {
  position: relative; display: block;
  border: 1px solid var(--green-border); border-radius: 6px;
  overflow: hidden;
}
.promo img { width: 100%; aspect-ratio: 390 / 178; object-fit: cover; transition: transform .4s; }
.promo:hover img { transform: scale(1.04); }
.promo__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 50%, transparent 75%);
}
.promo__tag {
  position: absolute; top: 12px; left: 18px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  font-size: 12px; font-weight: 700;
}
.promo__title { font-size: 19px; font-weight: 700; line-height: 1.2; color: #fff; }
.promo__text { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #e6e6e6; }
.promos__counter {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 2px 10px; border-radius: 4px;
  background: rgba(0,0,0,.55); font-size: 13px; font-weight: 500;
}

/* ---------- 8. Поиск ---------- */
.search { position: relative; margin: 18px 0 14px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text); outline: none;
  transition: border-color .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--green); }

/* ---------- 9. Горизонтальные ленты ---------- */
.strip { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.arr {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--text);
  transition: background .2s, border-color .2s;
}
.arr:hover { background: var(--panel-3); border-color: #4b5550; }
.arr .ico { width: 16px; height: 16px; }

.track {
  display: flex; gap: 10px; flex: 1; min-width: 0;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color .2s, background .2s;
}
.chip:hover { color: #fff; }
.chip.is-active { background: var(--green); color: #fff; }
.chip .ico { width: 16px; height: 16px; }

.provider {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 110px; height: 34px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel);
}
.provider img { max-height: 22px; width: auto; opacity: .7; transition: opacity .2s; }
.provider:hover img { opacity: 1; }

/* ---------- 10. Секции с играми ---------- */
.row { margin: 14px 0 22px; }
.row__head {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; margin-bottom: 10px; padding: 0 10px 0 14px;
  border-left: 3px solid var(--green); border-radius: 4px;
  background: linear-gradient(90deg, var(--green-deep), var(--panel) 65%);
}
.row__title {
  display: flex; align-items: center; gap: 8px;
  margin: 0; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
}
.row__title .ico { color: var(--yellow); }
.row__nav { display: flex; gap: 8px; margin-left: auto; }
.row__more { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.row__more:hover { color: #fff; }

.game-card {
  flex: none; width: 182px;
  scroll-snap-align: start;
  border-radius: 6px; overflow: hidden;
  background: var(--panel);
  transition: transform .2s;
}
.game-card:hover { transform: translateY(-3px); }
.game-card[hidden] { display: none; }
.game-card__img { position: relative; display: block; }
.game-card__img img { width: 100%; aspect-ratio: 182 / 190; object-fit: cover; }
.game-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s;
}
.game-card__play .ico {
  width: 46px; height: 46px; padding: 13px 11px 13px 15px;
  border-radius: 50%; background: var(--green); color: #fff;
}
.game-card:hover .game-card__play { opacity: 1; }
.game-card__info {
  display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center;
  padding: 8px 10px 10px;
}
.coin {
  grid-row: span 2; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe58a, #e2a400 60%, #9a6b00);
  box-shadow: inset 0 0 0 2px #c78f00;
}
.game-card__label { font-size: 12px; line-height: 1.2; color: var(--muted); }
.game-card__sum { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--yellow); white-space: nowrap; }

.game-card--mini { width: 145px; }
.game-card--mini .game-card__img img { aspect-ratio: 145 / 105; }
.game-card--win { width: 92px; }
.game-card--win .game-card__img img { aspect-ratio: 92 / 80; }
.game-card--win .game-card__info { display: block; padding: 5px 6px; text-align: center; }
.game-card--win .game-card__sum { font-size: 11px; }

/* ---------- 11. Матч (моб.) ---------- */
.match {
  position: relative; overflow: hidden;
  padding: 10px 12px 12px; border-radius: var(--radius);
  background: radial-gradient(circle at 85% 70%, #1d5a35 0, transparent 45%), linear-gradient(135deg, #133f25, #0b2215);
}
.match::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.06); pointer-events: none;
}
.match__top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.match__top .ico { width: 14px; height: 14px; }
.match__extra { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--text); }
.match__league { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 14px; }
.match__teams { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; text-align: center; font-size: 14px; }
.match__team img { width: 30px; height: 30px; margin: 0 auto 4px; }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; position: relative; z-index: 1; }
.odd {
  height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px;
  background: rgba(0,0,0,.35); color: var(--yellow); font-weight: 700;
  transition: background .2s;
}
.odd:hover { background: rgba(31,154,82,.35); }

/* ---------- 12. Табы ---------- */
.tabs__nav { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.tabs__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 6px; border-bottom: 2px solid transparent;
  font-size: 14px; font-weight: 500; text-transform: uppercase; color: var(--muted);
}
.tabs__btn .ico { color: var(--yellow); }
.tabs__btn.is-active { color: #fff; border-color: var(--green); }
.tabs__panel[hidden] { display: none; }

/* ==========================================================================
   13. КОНТЕНТНАЯ ЧАСТЬ — main.content
   Пишите обычный HTML внутри <main class="content">, без обёрток.
   ========================================================================== */
.content {
  min-width: 0;
  margin: 10px 0 30px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  font-size: 16px; line-height: 1.75;
  color: var(--text);
  overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: #fff; font-weight: 700; line-height: 1.3;
}
.content h1 { font-size: 32px; margin: 0 0 20px; }
.content h2 { font-size: 26px; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--green); }
.content h3 { font-size: 21px; margin: 30px 0 12px; }
.content h4 { font-size: 18px; margin: 24px 0 10px; }
.content h5, .content h6 { font-size: 16px; margin: 20px 0 8px; }

.content p { margin: 0 0 16px; }
.content a { color: var(--green-hover); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #3fd27c; }
.content strong, .content b { color: #fff; font-weight: 700; }
.content mark { padding: 0 4px; border-radius: 3px; background: var(--yellow); color: #111; }
.content small { font-size: 13px; color: var(--muted); }

.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--green-hover); }
.content ol li::marker { color: var(--green-hover); font-weight: 700; }

.content img {
  display: block;
  max-width: 100%; height: auto;
  margin: 24px auto;
  border-radius: var(--radius);
}
.content figure { margin: 24px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--muted); }

.content table {
  width: 100%; margin: 24px 0;
  border-collapse: collapse; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-soft);
  font-size: 15px; line-height: 1.5;
}
.content caption { padding: 0 0 10px; font-size: 14px; color: var(--muted); text-align: left; }
.content th {
  padding: 12px 16px; text-align: left; font-weight: 700;
  background: var(--green); color: #fff;
}
.content td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.content tbody tr:hover { background: var(--green-soft); }

.content blockquote {
  margin: 24px 0; padding: 16px 22px;
  border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--green-soft); font-style: italic;
}
.content blockquote p:last-child { margin-bottom: 0; }

.content hr { height: 1px; margin: 32px 0; border: 0; background: var(--line); }

.content code { padding: 2px 6px; border-radius: 4px; background: var(--panel-3); font-size: .9em; }
.content pre { margin: 24px 0; padding: 16px; overflow-x: auto; border-radius: var(--radius); background: var(--bg); }
.content pre code { padding: 0; background: none; }

.content iframe, .content video {
  display: block; width: 100%; max-width: 100%; height: auto;
  aspect-ratio: 16 / 9; margin: 24px 0; border: 0; border-radius: var(--radius);
}

.content dl { margin: 0 0 18px; }
.content dt { font-weight: 700; color: #fff; }
.content dd { margin: 0 0 10px 18px; color: var(--muted); }

.content details { margin: 0 0 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--panel-2); }
.content summary { cursor: pointer; font-weight: 700; color: #fff; }
.content details[open] summary { margin-bottom: 10px; }

/* ---------- 14. Футер ---------- */
.footer {
  margin: auto -18px 0;
  padding: 36px 18px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px; }
.footer__brand .logo img { height: 40px; }
.footer__about { margin: 14px 0; font-size: 14px; color: var(--muted); }
.footer__age { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.badge-18 {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border: 2px solid var(--danger); border-radius: 50%;
  font-weight: 900; color: var(--danger);
}
.footer__title { margin: 0 0 14px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__list a:hover { color: var(--green-hover); }
.footer__list .ico { width: 14px; height: 14px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--green-hover); }

/* ---------- 15. Нижнее меню (моб.) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(7, 1fr); align-items: center;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: #1d2220;
}
.bottom-nav a { display: flex; align-items: center; justify-content: center; height: 100%; color: #cfd6d2; }
.bottom-nav a.is-active { color: var(--green-hover); }
.bottom-nav .bottom-nav__center {
  width: 54px; height: 54px; margin: -22px auto 0;
  border: 3px solid var(--bg); border-radius: 14px;
  background: linear-gradient(180deg, var(--green-hover), #13693a);
  color: #fff;
}

/* ---------- 16. Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top:hover { background: var(--green-hover); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 17. Страница 404 ---------- */
.error-page {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 16px; text-align: center;
}
.error-page__code {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: clamp(96px, 20vw, 180px); font-weight: 900; line-height: 1;
  color: var(--green-hover); text-shadow: 0 8px 30px rgba(31,154,82,.35);
}
.error-chip {
  position: relative; width: .8em; height: .8em; border-radius: 50%;
  background: radial-gradient(circle, var(--green) 0 38%, #0f3d22 39% 52%, var(--green) 53%);
  border: .06em dashed #fff;
  animation: spin 9s linear infinite;
}
.error-chip::after {
  content: "7"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .4em; color: #fff; font-style: italic;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-page h1 { margin: 24px 0 10px; font-size: clamp(24px, 4vw, 34px); color: #fff; }
.error-page p { max-width: 520px; margin: 0 0 26px; color: var(--muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.error-page__links a { padding: 7px 14px; border-radius: 999px; background: var(--panel); font-size: 14px; color: var(--muted); }
.error-page__links a:hover { color: #fff; background: var(--panel-2); }

/* ==========================================================================
   18. Адаптив
   ========================================================================== */
@media (min-width: 992px) {
  .bottom-nav, .app-bar, .overlay { display: none; }
}

@media (max-width: 1280px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  .sidebar {
    width: min(86vw, 300px);
    transform: translateX(-100%);
    box-shadow: var(--shadow);
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { transform: none; }
  body.menu-open .overlay { opacity: 1; visibility: visible; }

  .page { margin-left: 0; padding: 0 10px calc(var(--bottom-h) + 10px); }

  .header { margin: 0 -10px; padding: 0 10px; min-height: 58px; background: var(--bg-soft); }
  .header__logo { display: flex; }
  .btn { height: 34px; padding: 0 12px; }
  .header .btn--ghost { border-color: transparent; padding: 0 6px; font-weight: 500; font-size: 15px; }

  .promos-wrap { margin-top: 12px; }
  .promos {
    display: flex; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .promos::-webkit-scrollbar { display: none; }
  .promo { flex: 0 0 100%; scroll-snap-align: center; }
  .promo__title { font-size: 17px; }

  .game-card { width: 136px; }
  .game-card--mini { width: 128px; }
  .game-card--win { width: 86px; }
  .game-card__info { column-gap: 6px; padding: 7px 7px 9px; }
  .game-card__sum { font-size: 11.5px; }
  .game-card--win .game-card__sum { font-size: 10.5px; }
  .coin { width: 18px; height: 18px; }
  .row { margin: 12px 0 16px; }
  .row__head { min-height: 40px; }

  .footer { margin: auto -10px 0; padding: 30px 14px 20px; }

  .to-top { right: 14px; bottom: calc(var(--bottom-h) + 14px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}

@media (max-width: 768px) {
  .content { padding: 22px 16px; font-size: 15px; line-height: 1.7; border-radius: var(--radius); }
  .content h1 { font-size: 25px; }
  .content h2 { font-size: 21px; margin-top: 30px; }
  .content h3 { font-size: 18px; }
  .content h4 { font-size: 16px; }

  /* таблицы на телефоне скроллятся по горизонтали, а не растягивают экран */
  .content table {
    display: block;
    width: 100%; max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 14px;
  }
  .content th, .content td { padding: 10px 12px; }

  .content blockquote { padding: 14px 16px; }
}

@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .app-bar__text { font-size: 11px; }
  .header__logo img { height: 28px; }
  .header__actions { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- Site informativo independente ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.logo-tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid #4a524e;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.site-disclosure {
  margin: 0;
  padding: 8px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid #2c322f;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 520px) {
  .header__actions .btn--ghost { display: none; }
  .hide-sm { display: none; }
  .logo-tag { font-size: 9px; padding: 2px 6px; }
}

/* Nome do jogo no lugar dos valores */
.game-card__info--name { display: block; }
.game-card__title {
  display: block;
  font-size: 13px; font-weight: 700; line-height: 1.3; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.game-card--win .game-card__label { font-size: 11px; }
