/* Footer logos: 2x2 layout */
.main-footer__logos.-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  align-items: center;
  justify-items: center;
}

.main-footer__logos.-grid-2x2 a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.main-footer__logos.-grid-2x2 img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.main-footer__logos.-grid-2x2 img:hover {
  opacity: .8;
}

/* Hero CTA background override */
.page-home .hero-block__cta,
.page-app .hero-block__cta,
.page-login .hero-block__cta,
.page-register .hero-block__cta,
.page-no-deposit-bonus .hero-block__cta,
.page-promocode .hero-block__cta {
  background: none;
}

/* TOC section divider */
.toc-wrap {
  border-top: 1px solid #242734;
  margin-top: 5px;
  padding-top: 10px;
}

/* TOC */
details.toc {
  border: 1px solid #242734;
  background: rgba(26, 30, 42, 0.6);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 40px 0 32px;
}

details.toc[open] {
  margin-bottom: 48px;
}

.toc__summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.toc__summary::-webkit-details-marker {
  display: none;
}

.toc__summary::after {
  content: "▾";
  float: right;
  opacity: .8;
}

details.toc[open] .toc__summary::after {
  content: "▴";
}

.toc__list {
  display: grid;
  gap: 3px;
}

details.toc[open] .toc__list {
  border-top: 1px solid #242734;
  padding-top: 12px;
  margin-top: 12px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.toc__list a {
  color: #2f6eff;
  text-decoration: underline;
  text-underline-offset: 4px;
  line-height: 1.35;
}

.toc__list a:hover {
  text-decoration: none;
}

/* Policy cards grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 920px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

.policy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 22px;
}

.policy-card h2 {
  margin: 0 0 12px 0;
}

.policy-card p {
  margin: 0 0 12px 0;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

/* Privacy + Payments: centered hero content */
.page-privacy .hero-block-g,
.page-payments .hero-block-g {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

.page-privacy .hero-block-g > section,
.page-payments .hero-block-g > section {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-privacy .hero-block-g .global-btn-blue,
.page-payments .hero-block-g .global-btn-blue {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  margin: 12px auto 0;
}

.page-privacy .hero-block-g .hero-block__text,
.page-payments .hero-block-g .hero-block__text {
  text-align: center;
}

/* === Bonus bar (floating) === */

.bonus-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.bonus-bar.-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bonus-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(26, 30, 42, 0.92);
  border: 1px solid #242734;
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}

/* left block: logo + text */
.bonus-bar__top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bonus-bar__logo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}

.bonus-bar__logo img {
  width: 75px;
  height: 75px;
  object-fit: contain;
  display: block;
}

/* Если логотип не подставился (переменная/пусто) — прячем весь блок, чтобы не было пустого квадрата */
.bonus-bar__logo:has(img[src*="{{"]),
.bonus-bar__logo:has(img[src=""]),
.bonus-bar__logo:has(img:not([src])) {
  display: none;
}

.bonus-bar__text {
  min-width: 0;
}

.bonus-bar__title {
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.bonus-bar__desc {
  color: #afc3e0;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 4px;
}

.bonus-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bonus-bar__btn {
  background: #2f6eff;
  border-radius: 999px;
  padding: 14px 16px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bonus-bar__btn:hover {
  opacity: .86;
}

.bonus-bar__close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}

.bonus-bar__close:hover {
  opacity: .86;
}

/* Mobile */
@media (max-width: 768px) {
  .bonus-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 520px;
  }

  .bonus-bar__top {
    width: 100%;
  }

  .bonus-bar__actions {
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 10px;
    width: 100%;
  }

  .bonus-bar__btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .bonus-bar__close {
    width: 42px;
    height: 42px;
  }
}

/* Button row: center + manual spacing control */
.text-block .wrapp-flex {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Bottom margin presets (strong override) */
.text-block .wrapp-flex.-mb0 { margin-bottom: 0; }
.text-block .wrapp-flex.-mb8 { margin-bottom: 8px; }
.text-block .wrapp-flex.-mb12 { margin-bottom: 12px; }
.text-block .wrapp-flex.-mb16 { margin-bottom: 16px; }
.text-block .wrapp-flex.-mb24 { margin-bottom: 24px; }
.text-block .wrapp-flex.-mb32 { margin-bottom: 32px; }

/* Optional: top margin presets */
.text-block .wrapp-flex.-mt0 { margin-top: 0; }
.text-block .wrapp-flex.-mt8 { margin-top: 8px; }
.text-block .wrapp-flex.-mt12 { margin-top: 12px; }
.text-block .wrapp-flex.-mt16 { margin-top: 16px; }
.text-block .wrapp-flex.-mt24 { margin-top: 24px; }

/* ===== GAMES TABS — FINAL ===== */

.games-tabs-section {
  --gt-gap: 10px;
  --gt-radius: 12px;
  --gt-border: rgba(255, 255, 255, 0.08);
  --gt-border-hover: rgba(255, 255, 255, 0.14);
  --gt-border-active: rgba(255, 211, 61, 0.32);
  --gt-tab-bg: linear-gradient(180deg, rgba(16, 28, 49, 0.96), rgba(9, 18, 33, 0.96));
  --gt-tab-bg-active:
    linear-gradient(180deg, rgba(255, 211, 61, 0.12), rgba(255, 211, 61, 0.04)),
    linear-gradient(180deg, rgba(16, 28, 49, 0.96), rgba(9, 18, 33, 0.96));
  --gt-card-bg: #0b1220;
  margin: 22px 0 26px;
}

.games-tabs-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.games-tabs-head__content h2 {
  margin: 0 0 6px;
}

.games-tabs-head__text {
  margin: 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
}

.games-tabs-nav-wrap {
  overflow: hidden;
}

.games-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.games-tabs-nav::-webkit-scrollbar {
  display: none;
}

.games-tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--gt-border);
  border-radius: 999px;
  background: var(--gt-tab-bg);
  color: #eaf0fb;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease,
    box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.games-tab-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gt-border-hover);
  color: #fff;
}

.games-tab-btn.is-active {
  border-color: var(--gt-border-active);
  background: var(--gt-tab-bg-active);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.games-tabs-panels {
  position: relative;
  margin-top: 4px;
}

.games-tab-panel {
  display: none;
  animation: gamesPanelFade .18s ease;
}

.games-tab-panel.is-active {
  display: block;
}

.games-tab-panel[hidden] {
  display: none !important;
}

@keyframes gamesPanelFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== GAMES RAIL ===== */

.games-rail-shell {
  position: relative;
}

.games-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.games-rail::-webkit-scrollbar {
  display: none;
}

.games-tabs-section .games-block {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--gt-gap);
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.games-tabs-section .games-block__item,
.games-tabs-section .games-block.-four .games-block__item {
  position: relative;
  flex: 0 0 108px;
  min-width: 108px;
  max-width: 108px;
  display: block;
  overflow: hidden;
  border-radius: var(--gt-radius);
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--gt-card-bg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.games-tabs-section .games-block__item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,211,61,0.16);
  box-shadow: 0 12px 24px rgba(0,0,0,0.20);
}

.games-tabs-section .games-block__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}

/* Десктоп hover-текст */
.games-tabs-section .games-block__overview {
  position: absolute !important;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 54px;
  padding: 14px 8px 8px;
  background: linear-gradient(180deg, rgba(3,7,16,0) 0%, rgba(3,7,16,0.88) 68%, rgba(3,7,16,0.96) 100%) !important;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.games-tabs-section .games-block__item:hover .games-block__overview,
.games-tabs-section .games-block__item:focus-visible .games-block__overview {
  opacity: 1;
  transform: translateY(0);
}

.games-tabs-section .games-block__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.games-tabs-section .games-block__provider {
  display: block;
  overflow: hidden;
  color: #4f7dff;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== DESKTOP ARROWS ===== */

.games-rail-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 28, 49, 0.96), rgba(9, 18, 33, 0.96));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
  transform: translateY(-50%);
  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease,
    border-color .18s ease;
}

.games-rail-arrow:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-50%) scale(1.03);
}

.games-rail-arrow--prev {
  left: -4px;
}

.games-rail-arrow--next {
  right: -4px;
}

.games-rail-shell.is-at-start .games-rail-arrow--prev,
.games-rail-shell.is-at-end .games-rail-arrow--next,
.games-rail-shell:not(.is-scrollable) .games-rail-arrow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1400px) {
  .games-tabs-section .games-block__item,
  .games-tabs-section .games-block.-four .games-block__item {
    flex-basis: 112px;
    min-width: 112px;
    max-width: 112px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 767px) {
  .games-tabs-section {
    --gt-gap: 6px;
    --gt-radius: 9px;
    margin: 18px 0 22px;
  }

  .games-tabs-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .games-tabs-head__content h2 {
    margin-bottom: 5px;
    font-size: 22px;
    line-height: 1.15;
  }

  .games-tabs-head__text {
    max-width: none;
    font-size: 13px;
    line-height: 1.4;
  }

  .games-tabs-nav {
    gap: 6px;
    padding-bottom: 6px;
  }

  .games-tab-btn {
    min-width: 108px;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .games-rail-arrow {
    display: none !important;
  }

  .games-rail {
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .games-tabs-section .games-block {
    justify-content: flex-start;
    min-width: max-content;
  }

  .games-tabs-section .games-block__item,
  .games-tabs-section .games-block.-four .games-block__item {
    flex: 0 0 82px;
    min-width: 82px;
    max-width: 82px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    scroll-snap-align: start;
  }

  .games-tabs-section .games-block__item img {
    aspect-ratio: 3 / 3.75;
  }

  .games-tabs-section .games-block__overview {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .games-tabs-head__content h2 {
    font-size: 20px;
  }

  .games-tabs-head__text {
    font-size: 12px;
  }

  .games-tab-btn {
    min-width: 102px;
    height: 31px;
    font-size: 12px;
  }

  .games-tabs-section .games-block__item,
  .games-tabs-section .games-block.-four .games-block__item {
    flex-basis: 78px;
    min-width: 78px;
    max-width: 78px;
  }
}

.games-tab-btn:focus {
  outline: none;
  box-shadow: none;
}

.games-tab-btn:active {
  outline: none;
  box-shadow: none;
  transform: none;
}

.games-tab-btn:focus-visible {
  outline: 2px solid rgba(255, 211, 61, 0.45);
  outline-offset: 2px;
}

/* ===== Demo Games Section ===== */

.demo-games-section {
  margin: 28px 0 32px;
}

.demo-games-head {
  margin-bottom: 18px;
}

.demo-games-head h2 {
  margin: 0 0 8px;
}

.demo-games-head__text {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  line-height: 1.5;
}

.demo-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.demo-game-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(23,35,56,0.95), rgba(14,22,36,0.96));
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.demo-game-card.is-placeholder {
  opacity: 0.78;
}

.demo-game-card__badge {
  display: inline-flex;
  align-self: center;
  padding: 6px 10px;
  border: 1px solid rgba(255,211,61,0.22);
  border-radius: 999px;
  background: rgba(255,211,61,0.06);
  color: #f7d65d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
  text-align: center;
}

.demo-game-card__image {
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
}

.demo-game-card__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.demo-game-card__title {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}

.demo-game-card__text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.demo-game-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-game-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(255,211,61,0.30);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,211,61,0.16), rgba(255,211,61,0.06));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.demo-game-card__btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,211,61,0.42);
  box-shadow: 0 10px 20px rgba(255,211,61,0.08);
}

/* ===== Demo Modal ===== */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 16px 0;
}

.demo-modal.is-open {
  display: block;
}

.demo-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 15, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14,22,36,0.98), rgba(10,16,28,0.98));
  box-shadow: 0 22px 50px rgba(0,0,0,0.38);
  overflow: hidden;
}

.demo-modal__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(90deg, rgba(16,24,40,0.98), rgba(10,22,46,0.98));
}

.demo-modal__title-wrap {
  min-width: 0;
}

.demo-modal__eyebrow {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.demo-modal__title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.demo-modal__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 40px;
}

.demo-modal__close:hover {
  opacity: .9;
}

.demo-modal__body {
  padding: 0;
}

.demo-modal__frame-wrap {
  position: relative;
  width: 100%;
  min-height: 640px;
  background: #050913;
}

.demo-modal__frame-wrap iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

.demo-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  color: var(--text-soft);
  font-size: 15px;
}

.demo-modal__fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2f6eff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Top CTA */
.demo-modal__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}

.demo-modal__cta[hidden] {
  display: none !important;
}

.demo-modal__cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-modal__cta-text {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  color: #dfe8f8 !important;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.demo-modal__cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2f6eff !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none !important;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.demo-modal__cta-btn:hover {
  transform: translateY(-1px);
  opacity: .96;
  box-shadow: 0 10px 22px rgba(47,110,255,0.18);
}

.demo-modal__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

/* Bottom CTA inside modal */
.demo-modal__footer-cta {
  display: none;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(12,18,31,0.98), rgba(9,14,24,0.98));
}

.demo-modal.is-open .demo-modal__footer-cta:not([hidden]) {
  display: grid;
}

.demo-modal__footer-cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  padding: 7px 11px;
  border: 1px solid rgba(255, 211, 61, 0.24);
  border-radius: 999px;
  background: rgba(255, 211, 61, 0.08);
  color: #f7d65d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.demo-modal__footer-cta-content {
  min-width: 0;
}

.demo-modal__footer-cta-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.demo-modal__footer-cta-text {
  margin: 0;
  color: #b8c7dd;
  font-size: 14px;
  line-height: 1.45;
}

.demo-modal__footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #2f6eff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(47,110,255,0.18);
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.demo-modal__footer-cta-btn:hover {
  transform: translateY(-1px);
  opacity: .96;
  box-shadow: 0 14px 28px rgba(47,110,255,0.24);
}

@media (max-width: 1100px) {
  .demo-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .demo-games-section {
    margin: 22px 0 26px;
  }

  .demo-games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .demo-game-card {
    min-height: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .demo-game-card__title {
    font-size: 20px;
  }

  .demo-modal__dialog {
    width: calc(100% - 16px);
    margin: 0 auto;
    border-radius: 16px;
  }

  .demo-modal__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px;
    align-items: start;
  }

  .demo-modal__title-wrap {
    grid-column: 1 / 2;
    grid-row: 1;
  }

  .demo-modal__close {
    grid-column: 2 / 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 0;
  }

  .demo-modal__title {
    font-size: 18px;
  }

  .demo-modal__cta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between !important;
    width: 100%;
    padding-top: 4px !important;
  }

  .demo-modal__cta-text {
    font-size: 13px;
    white-space: normal;
  }

  .demo-modal__cta-btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    flex: 0 0 auto;
  }

  .demo-modal__frame-wrap,
  .demo-modal__loading {
    min-height: 72vh;
  }

  .demo-modal__frame-wrap iframe {
    height: 72vh;
  }

  .demo-modal__footer-cta {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .demo-modal__footer-cta-badge {
    justify-self: start;
  }

  .demo-modal__footer-cta-title {
    font-size: 16px;
  }

  .demo-modal__footer-cta-text {
    font-size: 13px;
  }

  .demo-modal__footer-cta-btn {
    width: 100%;
    min-height: 44px;
  }
}

/* ===== Bonus attention effects v2 ===== */

/* HERO CTA */
.hero-block__cta {
  position: relative;
  overflow: visible;
}

.hero-block__cta__icon {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform, filter;
  animation: heroGiftSwing 2.8s ease-in-out infinite;
}

.hero-block__cta__icon::before,
.hero-block__cta__icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  pointer-events: none;
}

.hero-block__cta__icon::before {
  background: radial-gradient(circle, rgba(47,110,255,.24) 0%, rgba(47,110,255,.10) 45%, rgba(47,110,255,0) 72%);
  animation: heroGiftPulse 1.8s ease-out infinite;
}

.hero-block__cta__icon::after {
  border: 1px solid rgba(79,125,255,.22);
  animation: heroGiftRing 1.8s ease-out infinite;
}

.hero-block__cta__title,
.hero-block__cta__bonus {
  text-align: center;
}

.hero-block__cta .global-btn-yellow.-f {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  animation: heroBtnNudge 2.6s ease-in-out infinite;
}

.hero-block__cta .global-btn-yellow.-f::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 61, .24);
  opacity: 0;
  pointer-events: none;
  animation: heroBtnRing 2.6s ease-out infinite;
}

.hero-block__cta .global-btn-yellow.-f:hover {
  animation: none;
  transform: translateY(-2px);
}

.hero-block__cta .global-btn-yellow.-f .icon-bonus {
  display: inline-block;
  transform-origin: center center;
  backface-visibility: hidden;
  animation: heroGiftIconJolt 2.6s ease-in-out infinite;
}

/* BONUS BAR */
.bonus-bar.-show .bonus-bar__inner {
  animation: bonusBarLift 3.4s ease-in-out infinite;
}

.bonus-bar.-show .bonus-bar__btn {
  position: relative;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  animation: bonusBarBtnNudge 2.4s ease-in-out infinite;
}

.bonus-bar.-show .bonus-bar__btn::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(47,110,255,.26);
  opacity: 0;
  pointer-events: none;
  animation: bonusBarBtnRing 2.4s ease-out infinite;
}

.bonus-bar.-show .bonus-bar__btn:hover {
  animation: none;
  transform: translateY(-2px);
}

/* Убираем мыло и странные тап-эффекты */
.hero-block__cta__icon,
.hero-block__cta .global-btn-yellow.-f,
.hero-block__cta .global-btn-yellow.-f .icon-bonus,
.bonus-bar__btn,
.bonus-bar__close {
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
}

/* Keyframes: подарок */
@keyframes heroGiftSwing {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  10% { transform: translateY(-3px) rotate(-8deg); }
  20% { transform: translateY(0) rotate(7deg); }
  30% { transform: translateY(-2px) rotate(-5deg); }
  40% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(0) rotate(0deg); }
}

@keyframes heroGiftPulse {
  0% { opacity: .15; transform: scale(1); }
  45% { opacity: .65; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes heroGiftRing {
  0% { opacity: .35; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.16); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* Keyframes: hero button */
@keyframes heroBtnNudge {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  18% {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(255,211,61,.20);
  }
  28% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  38% {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255,211,61,.14);
  }
  48% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
}

@keyframes heroBtnRing {
  0%, 22% { opacity: 0; transform: scale(1); }
  30% { opacity: .45; transform: scale(1); }
  55% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes heroGiftIconJolt {
  0%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(-14deg); }
  24% { transform: rotate(12deg); }
  30% { transform: rotate(-8deg); }
  36% { transform: rotate(0deg); }
}

/* Keyframes: bonus bar */
@keyframes bonusBarLift {
  0%, 100% { transform: translateY(0); }
  22% { transform: translateY(-3px); }
  34% { transform: translateY(0); }
  46% { transform: translateY(-2px); }
  58% { transform: translateY(0); }
}

@keyframes bonusBarBtnNudge {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  20% {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(47,110,255,.22);
  }
  32% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
  44% {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(47,110,255,.16);
  }
  56% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }
}

@keyframes bonusBarBtnRing {
  0%, 24% { opacity: 0; transform: scale(1); }
  32% { opacity: .42; transform: scale(1); }
  58% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

@media (max-width: 768px) {
  .hero-block__cta__icon {
    margin-bottom: 16px;
  }

  .hero-block__cta .global-btn-yellow.-f,
  .bonus-bar.-show .bonus-bar__btn {
    animation-duration: 2.8s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-block__cta__icon,
  .hero-block__cta__icon::before,
  .hero-block__cta__icon::after,
  .hero-block__cta .global-btn-yellow.-f,
  .hero-block__cta .global-btn-yellow.-f::after,
  .hero-block__cta .global-btn-yellow.-f .icon-bonus,
  .bonus-bar.-show .bonus-bar__inner,
  .bonus-bar.-show .bonus-bar__btn,
  .bonus-bar.-show .bonus-bar__btn::after {
    animation: none !important;
  }
}

/* ===== Final fix: hero bonus icon position ===== */

.hero-block__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-block__cta .hero-block__cta__icon {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 0 18px 0 !important;
  display: block !important;
}

.hero-block__cta .hero-block__cta__title,
.hero-block__cta .hero-block__cta__bonus,
.hero-block__cta .global-btn-yellow.-f {
  position: static;
  z-index: auto;
  align-self: center;
  text-align: center;
}

.hero-block__cta .global-btn-yellow.-f {
  margin: 0 auto;
}

.hero-block__cta .hero-block__cta__icon {
  animation: heroGiftSwing 2.8s ease-in-out infinite;
}