/* Sneket — тёмная тема, неон/градиенты. Системный шрифт, только локальные ресурсы. */

:root {
  --bg: #0b0b0f;
  --panel: #15151b;
  --panel2: #101015;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --pink: #ff2d8d;
  --purple: #7b2cff;
  --green: #22c55e;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(255, 45, 141, 0.12), 0 10px 30px rgba(255, 45, 141, 0.12);
  --sidebar-w: 72px;
  --topbar-h: 64px;
  --bottom-nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; transform: none !important; }
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(123, 44, 255, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 45, 141, 0.08) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
}

/* ---- Sidebar (desktop) ---- */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--panel);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar__search {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
}

.sidebar__toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-top: 8px;
}

.sidebar__item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sidebar__item:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--glow);
}

.sidebar__item--active {
  color: var(--text);
  background: var(--panel2);
}

.sidebar__item--active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--glow);
}

.sidebar__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__social {
  display: flex;
  gap: 8px;
}

.sidebar__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.sidebar__social-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.support-pill--sidebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
}

.support-pill__badge {
  background: var(--green);
  color: #000;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ---- Main ---- */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* ---- Topbar ---- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 11, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.main .content {
  padding-top: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex-shrink: 1;
}

.brand img {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand__logo--desktop {
  height: 36px;
  max-width: 140px;
}

.brand__logo--mobile {
  display: none;
}

.brand__text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn--ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
  background: var(--panel2);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink), #e91e7a);
  color: #fff;
  box-shadow: var(--glow);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ff4da3, var(--pink));
  box-shadow: 0 0 0 1px rgba(255, 45, 141, 0.2), 0 12px 36px rgba(255, 45, 141, 0.25);
}

/* ---- Content ---- */
.content {
  flex: 1;
  padding: 24px;
  padding-bottom: calc(var(--bottom-nav-h) + 24px);
}

/* ---- Hero ---- */
.hero {
  margin-bottom: 32px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__slider {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: 0;
}

.slider {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.slider__track {
  position: relative;
  width: 100%;
  height: 200px;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.slider__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slider__link {
  display: block;
  width: 100%;
  height: 100%;
}

.slider__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slider__dot--active {
  background: var(--pink);
  transform: scale(1.2);
  box-shadow: 0 0 12px var(--pink);
}

.hero__sidecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  grid-column: 2 / -1;
}

.hero__card {
  height: 200px;
  min-height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: block;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.hero__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__card-img--mobile {
  display: none;
}

.hero__card-label {
  position: absolute;
  bottom: 44px;
  left: 16px;
  right: 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

.hero__card-cta {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Десктоп: длиннее главный баннер, уже маленькие; картинка в маленьких без обрезки */
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 2.2fr 0.7fr 0.7fr;
  }
  .slider__track {
    height: 280px;
  }
  .hero__card {
    height: 280px;
    min-height: 280px;
  }
  .hero__card img.hero__card-img--desktop {
    object-fit: contain;
    transform: scale(1.08);
  }
}

/* ---- Hero filters ---- */
.hero__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.chip:hover {
  background: var(--panel2);
  border-color: rgba(255, 255, 255, 0.12);
}

.chip--active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}

.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  min-width: 0;
}

.search__icon-link {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  z-index: 1;
}

.search__icon-link:hover {
  color: var(--text);
}

.search__icon {
  pointer-events: none;
}

.search__input {
  width: 100%;
  min-width: 0;
  padding: 12px 16px 12px 44px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.search__input::placeholder {
  color: var(--muted);
}

.search__input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(255, 45, 141, 0.2);
}

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

/* ---- Sections ---- */
.section {
  margin-bottom: 40px;
  contain: layout style;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.section__title::after {
  content: " ›";
  color: var(--muted);
  font-weight: 400;
}

.section__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.pill--muted {
  background: var(--panel);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pill--muted:hover {
  background: var(--panel2);
}

.arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.arrow:hover {
  background: var(--panel2);
}

/* ---- Cards grid (slots) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cards-grid--slots {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.game-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  contain: layout style paint;
}

@media (hover: hover) {
  .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 45, 141, 0.15);
  }
}

.game-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.game-card__img-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000;
  font-weight: 700;
}

.game-card__provider {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-card__title {
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.game-card__sub {
  padding: 0 14px 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- Cards row (horizontal scroll) ---- */
.cards-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.cards-row .game-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .cards-row .game-card {
    flex: 0 0 180px;
  }
}

/* ---- Promo wide (Новые игры) ---- */
.promo-wide {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  box-shadow: var(--shadow), 0 0 60px rgba(123, 44, 255, 0.3);
}

.promo-wide__content {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.promo-wide__title {
  margin: 0 0 20px;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.promo-wide__thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -32px -16px;
  padding-left: 32px;
  padding-right: 32px;
}

.promo-wide__thumbs .game-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.promo-wide__thumbs .game-card__img-wrap {
  aspect-ratio: 4 / 3;
}

/* ---- Wins row ---- */
.online {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.online__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .online__dot { animation: none; }
}

.wins-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.win-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.win-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.win-card__info {
  flex: 1;
  min-width: 0;
}

.win-card__game {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.win-card__player {
  font-size: 0.8rem;
  color: var(--muted);
}

.win-card__payout {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.win-card__payout--plus {
  background: rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.win-card__payout--minus {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* ---- Providers ---- */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.provider-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.provider-card:hover {
  background: var(--panel2);
  border-color: rgba(255, 45, 141, 0.2);
  transform: translateY(-2px);
}

.provider-card img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---- Table section ---- */
.section--table .section__head {
  flex-wrap: wrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__ui {
  width: 44px;
  height: 24px;
  background: var(--panel);
  border-radius: 999px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.switch__ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.switch input:checked + .switch__ui::after {
  transform: translateX(20px);
}

.switch input:checked + .switch__ui {
  background: rgba(255, 45, 141, 0.2);
  border-color: var(--pink);
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.tab:hover {
  background: var(--panel2);
}

.tab--active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.game-table th,
.game-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.game-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.game-table .payout--plus {
  color: var(--green);
  font-weight: 600;
}

.table-cards {
  display: none;
}

/* ---- SEO text ---- */
.seo-text {
  margin-bottom: 40px;
}

.seo-text__wrap {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.seo-text__content {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.seo-text.seo-text--expanded .seo-text__content {
  max-height: none;
}

.seo-text__content h1,
.seo-text__content h2,
.seo-text__content p,
.seo-text__table-wrap,
.seo-text__table-caption {
  margin-top: 0;
  margin-bottom: 1em;
}

.seo-text__content h2 { margin-top: 1.5em; }
.seo-text__content h2:first-of-type { margin-top: 0; }

.seo-text__h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.seo-text__h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.seo-text__content p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.seo-text__table-caption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.seo-text__table-wrap {
  overflow-x: auto;
  margin: 1em 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-text__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.seo-text__table th,
.seo-text__table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.seo-text__table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.seo-text__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  height: 72px;
  background: linear-gradient(to top, var(--panel) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 0;
}

.seo-text.seo-text--expanded .seo-text__fade {
  opacity: 0;
  pointer-events: none;
}

.seo-text__toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  border: none;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(123, 44, 255, 0.35);
}

.seo-text__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(123, 44, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.seo-text__toggle:active {
  transform: translateY(0);
}

.seo-text__toggle .seo-text__toggle-icon {
  transition: transform 0.25s ease;
}

.seo-text.seo-text--expanded .seo-text__toggle .seo-text__toggle-icon {
  transform: rotate(180deg);
}

/* FAQ accordion */
.faq {
  margin-top: 1em;
}

.faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.faq__item[open] {
  border-color: rgba(255, 45, 141, 0.25);
}

.faq__question {
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  margin: 0;
  padding: 0 18px 14px;
  padding-top: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.faq__answer::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 24px 24px;
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.lang-pill--flag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel2);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer__col h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.footer__col .footer__link {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__col .footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.rg {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Bottom nav (mobile) ---- */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: rgba(21, 21, 27, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 90;
  padding: 8px 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  transition: color 0.2s;
}

.bottom-nav__item svg {
  flex-shrink: 0;
}

.bottom-nav__item--active,
.bottom-nav__item--active span {
  color: var(--pink);
}

.bottom-nav__item--active svg {
  filter: drop-shadow(0 0 8px rgba(255, 45, 141, 0.5));
}

/* ---- Drawer ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.drawer[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer[aria-hidden="false"] .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--panel);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.drawer[aria-hidden="false"] .drawer__panel {
  transform: translateY(0);
}

.drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--panel2);
  color: var(--text);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.drawer__title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.drawer__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.drawer__section {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 0 8px;
}

.drawer__item {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.drawer__item:hover {
  color: var(--pink);
}

.drawer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.drawer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ---- Modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  visibility: hidden;
}

.modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.25s;
}

.modal[aria-hidden="false"] .modal__overlay {
  opacity: 1;
}

.modal__panel {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
}

.modal[aria-hidden="false"] .modal__panel {
  transform: scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--panel2);
  color: var(--text);
  font-size: 1.25rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.modal__panel h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.modal__panel .muted {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  .brand__logo--mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    display: none;
  }

  .topbar {
    left: 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__sidecards {
    grid-column: 1 / -1;
    min-height: 160px;
  }

  .hero__card {
    min-height: 160px;
    height: auto;
  }

  /* Мобильные картинки для мелких баннеров (планшет и телефон) */
  .hero__card-img--desktop {
    display: none !important;
  }

  .hero__card-img--mobile {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .content {
    padding: 16px;
    padding-bottom: calc(var(--bottom-nav-h) + 16px);
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
  }

  .topbar {
    padding: 0 12px 0 16px;
    height: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .brand__logo--desktop {
    display: none !important;
  }

  .brand__logo--mobile {
    display: block !important;
    height: 64px;
    width: auto;
    max-width: 200px;
  }

  .hero__card-img--desktop {
    display: none !important;
  }

  .hero__card-img--mobile {
    display: block !important;
  }

  .hero__sidecards {
    min-height: 0;
  }

  .hero__card {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
  }

  .hero__card img.hero__card-img--mobile {
    object-fit: contain;
  }

  .topbar__actions {
    flex-shrink: 0;
    gap: 8px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero__filters {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
  }

  .seo-text__wrap {
    padding: 16px;
  }

  .seo-text__table-wrap {
    margin: 0.75em 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .seo-text__table {
    font-size: 0.65rem;
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  .seo-text__table th,
  .seo-text__table td {
    padding: 5px 4px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .seo-text__table th {
    font-size: 0.6rem;
  }

  .seo-text__table-caption {
    font-size: 0.75rem;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section__title {
    font-size: 1.25rem;
  }

  .cards-grid--slots {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cards-grid--slots .game-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
  }

  .promo-wide {
    padding: 28px 20px;
  }

  .promo-wide__title {
    font-size: 1.5rem;
  }

  .promo-wide__thumbs {
    margin: 0 -20px -12px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .win-card {
    padding: 12px 14px;
  }

  .win-card__thumb {
    width: 48px;
    height: 48px;
  }

  .bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
  }

  /* Таблица Игр на мобильных — компактная таблица привычного вида */
  .table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-cards {
    display: none;
  }

  .section--table .game-table {
    font-size: 0.7rem;
    table-layout: fixed;
    width: 100%;
    min-width: 0;
  }

  .section--table .game-table th:nth-child(1) { width: 26%; }
  .section--table .game-table th:nth-child(2) { width: 18%; }
  .section--table .game-table th:nth-child(3) { width: 18%; }
  .section--table .game-table th:nth-child(4) { width: 14%; }
  .section--table .game-table th:nth-child(5) { width: 24%; }

  .section--table .game-table th,
  .section--table .game-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section--table .game-table th {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
  }

  .section--table .game-table .payout--plus {
    color: var(--green);
    font-weight: 600;
  }

  .section--table .section__head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section--table .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .section--table .tabs::-webkit-scrollbar {
    display: none;
  }

  .section--table .tab {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 389px) {
  .hero__sidecards {
    flex-direction: column;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }
}
