﻿
:root {
  --bg-main: #f0ecff;
  --bg-deep: #e4dcff;
  --bg-secondary: #e9e3ff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f0ff;
  --bg-sidebar: #5500cc;
  --bg-sidebar-item: rgba(255, 255, 255, 0.1);
  --bg-sidebar-card: rgba(255, 255, 255, 0.14);
  --bg-header: #5500cc;
  --bg-input: rgba(0, 0, 0, 0.25);
  --bg-notif: #3a0099;

  --color-primary: #8b5cf6;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #6d28d9;
  --stb-brand-600: 85 0 204;
  --color-accent: #f59e0b;
  --color-accent-light: #fcd34d;
  --color-success: #10b981;
  --color-success-bright: #34d399;
  --color-danger: #ef4444;
  --color-new: #22c55e;

  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --color-text-dim: rgba(255, 255, 255, 0.35);
  --color-border: rgba(255, 255, 255, 0.08);

  --sidebar-icon-width: 42px;
  --sidebar-full-width: 180px;
  --sidebar-width: var(--sidebar-icon-width);
  --header-height: 60px;
  --notif-height: 38px;
  --tabs-height: 52px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 16px rgba(139, 92, 246, 0.35);
  --transition: 0.2s ease;

  --space-x: 16px;
  --space-block: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--color-text);
  font-family:
    "Jost",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-wrapper {
  display: flex;
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  width: var(--sidebar-icon-width);
  background: linear-gradient(180deg, #5800d6 0%, #3e00a0 70%, #2e0080 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  z-index: 200;
  overflow: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 12px;
  margin-left: 10px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar--expanded {
  width: var(--sidebar-full-width);
  overflow: hidden;
  overflow-y: auto;
}

.sidebar__mobile-top {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  overflow: hidden;
}
.sidebar__logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar__logo-text {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}
.sidebar__logo-text em {
  font-style: normal;
  color: #f59e0b;
}

.sidebar__top-group {
  display: none;
  margin: 8px 8px 2px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar--expanded .sidebar__top-group {
  display: block;
}

.sidebar__group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  white-space: nowrap;
}
.sidebar__group-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar__group-item + .sidebar__group-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar__group-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__group-item__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.sidebar__featured {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 8px 4px;
  flex-shrink: 0;
}
.sidebar--expanded .sidebar__featured {
  display: grid;
}

.sidebar__feat-card {
  border-radius: 12px;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 4px 8px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.sidebar__feat-card:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.sidebar__feat-card--crab {
  background: linear-gradient(145deg, #f97316 0%, #dc2626 100%);
}
.sidebar__feat-card--wheel {
  background: linear-gradient(145deg, #eab308 0%, #d97706 100%);
}
.sidebar__feat-card__icon {
  font-size: 26px;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.sidebar__feat-card__img {
  width: 90%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.sidebar__feat-card__label {
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.sidebar__nav {
  width: 100%;
  flex: 1;
  padding: 4px 0;
}

.sidebar__item--icon-only {
  display: flex;
}
.sidebar--expanded .sidebar__item--icon-only {
  display: none;
}

.sidebar__divider--icon {
  display: block;
}
.sidebar--expanded .sidebar__divider--icon {
  display: none;
}

.sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 0;
  cursor: pointer;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.18s ease,
    color 0.18s ease;
  position: relative;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.sidebar__item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar__item.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sidebar__item.active::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.7;
}
.sidebar--expanded .sidebar__item.active::after {
  display: none;
}

.sidebar--expanded .sidebar__item {
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 1px 6px;
}
.sidebar--expanded .sidebar__item.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.8);
}

.sidebar__item__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: var(--sidebar-icon-width);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__item__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.sidebar--expanded .sidebar__item__icon {
  width: 24px;
  font-size: 17px;
}

.sidebar__item__label {
  display: none;
}
.sidebar--expanded .sidebar__item__label {
  display: block;
}

.sidebar__item .badge-new {
  display: none;
  margin-left: auto;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}
.sidebar--expanded .sidebar__item .badge-new {
  display: inline-block;
}

.sidebar__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}
.sidebar--expanded .sidebar__divider {
  margin: 6px 12px;
}

.sidebar__bottom {
  margin-top: auto;
  padding: 8px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-shrink: 0;
}
.sidebar--expanded .sidebar__bottom {
  flex-direction: row;
  gap: 6px;
  padding: 8px 8px 10px;
}

.sidebar__bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  border-radius: 0;
}
.sidebar--expanded .sidebar__bottom-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 7px 4px;
}
.sidebar__bottom-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}
.sidebar__bottom-btn__icon {
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar__bottom-btn__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
.sidebar__bottom-btn__label {
  display: none;
}
.sidebar--expanded .sidebar__bottom-btn__label {
  display: block;
}

.sidebar__close-btn {
  display: none;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
.sidebar__close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.main-area {
  margin-left: 64px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.28s ease;
  background: var(--bg-main);
  
  --color-text: #18064c;
  --color-text-muted: rgba(24, 6, 76, 0.55);
  --color-text-dim: rgba(24, 6, 76, 0.35);
  --color-border: rgba(24, 6, 76, 0.1);
}
.main-area--expanded {
  margin-left: 200px;
}

.notif-bar,
.hero-slide,
.jackpot-banner,
.site-footer,
.cookie-notice {
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-text-dim: rgba(255, 255, 255, 0.4);
  --color-border: rgba(255, 255, 255, 0.1);
}

.site-header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 300;
  justify-content: space-between;
}

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

.site-header__wrapper:last-child {
  gap: 10px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.header__logo img {
  height: 36px;
  width: auto;
}
.header__logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #c084fc, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__search {
  width: 280px;
  position: relative;
}
.header__search input {
  width: 100%;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 8px 14px 8px 38px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}
.header__search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.header__search input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.3);
}
.header__search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-login:hover {
  background: rgba(0, 0, 0, 0.44);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-register:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  transition: var(--transition);
  appearance: none;
}
.header__hamburger:hover {
  background: rgba(0, 0, 0, 0.48);
}
.header__hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.notif-bar {
  background: var(--bg-notif);
  border-bottom: 1px solid var(--color-border);
  height: var(--notif-height);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  font-size: 12px;
}
.notif-bar__badge {
  background: var(--color-primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.notif-bar__text {
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.notif-bar__cta {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.notif-bar__cta:hover {
  background: var(--color-primary-dark);
}
.notif-bar__close {
  color: var(--color-text-dim);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

.main-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-tabs::-webkit-scrollbar {
  display: none;
}
.main-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.main-tab:hover {
  color: var(--color-text);
}
.main-tab.active {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.cat-tabs-wrap {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.cat-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  width: max-content;
}

.cat-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  min-width: 60px;
}
.cat-tab:hover {
  color: var(--color-text);
  background: rgba(139, 92, 246, 0.1);
}
.cat-tab.active {
  color: var(--color-text);
  background: rgba(139, 92, 246, 0.18);
}
.cat-tab img,
.cat-tab svg {
  width: 24px;
  height: 24px;
}

.page-body {
  flex: 1;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: 20px;
  border-radius: 20px;
  height: 400px;
}
.hero-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.hero-slide {
  min-width: 100%;
  background-color: #1a0060;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 0, 40, 0.88) 0%, rgba(8, 0, 40, 0.65) 30%, rgba(8, 0, 40, 0.18) 62%, transparent 100%);
  pointer-events: none;
}
.hero-slide--reverse {
  justify-content: flex-end;
}
.hero-slide--reverse::before {
  background: linear-gradient(270deg, rgba(8, 0, 40, 0.88) 0%, rgba(8, 0, 40, 0.65) 30%, rgba(8, 0, 40, 0.18) 62%, transparent 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 380px;
}
.hero-slide__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  margin-bottom: 10px;
}
.hero-slide__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 8px;
}
.hero-slide__title em {
  font-style: normal;
  color: var(--color-accent);
}
.hero-slide__sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
  line-height: 1.45;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #00c853, #00a041);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.55);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.7);
}

.hero-slide__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}
.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.slider-arrow:hover {
  background: rgba(139, 92, 246, 0.5);
}
.slider-arrow--prev {
  left: 12px;
}
.slider-arrow--next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  background: #fff;
  width: 20px;
  border-radius: var(--radius-full);
}

.cat-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 16px 20px;
  scrollbar-width: none;
  justify-content: center;
}
.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 90px;
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid transparent;
  padding: 10px 8px 10px;
  gap: 6px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(85, 0, 204, 0.07);
}
.cat-card:hover {
  border-color: rgba(85, 0, 204, 0.45);
  box-shadow: 0 4px 16px rgba(85, 0, 204, 0.13);
}
.cat-card.active {
  border-color: #5500cc;
  box-shadow: 0 4px 16px rgba(85, 0, 204, 0.18);
}

.cat-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #5500cc;
  text-align: center;
  line-height: 1.25;
}

.section {
  padding: var(--space-block) var(--space-x);
}
.section + .section {
  padding-top: 0;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section__title {
  font-size: 22px;
  font-weight: 800;
  color: rgb(var(--stb-brand-600));
}
.section__title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.section__subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.section__subtitle span {
  color: rgb(var(--stb-brand-600));
}
.section__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.section__see-all {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1.5px dashed rgba(109, 40, 217, 0.45);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.section__see-all:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.section__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-primary-dark);
  transition: var(--transition);
  flex-shrink: 0;
}
.section__arrow:hover {
  background: rgba(109, 40, 217, 0.22);
  color: var(--color-primary);
}
.section__arrow svg {
  width: 14px;
  height: 14px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 55px;
}
.games-grid--8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.game-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: #2a1a5e;
  border-radius: var(--radius-md);
  transition: box-shadow 0.22s ease;
}
.game-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.game-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
  z-index: 1;
}

.game-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 8px;
  z-index: 1;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(72, 0, 180, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 4;
  pointer-events: none;
}
.game-card__play-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}
.game-card__demo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.game-card:hover .game-card__overlay {
  opacity: 1;
}
.game-card__name,
.game-card__play {
  display: none;
}

.game-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #3b00aa 0%, #5800d6 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px 6px 38px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.game-card:hover .game-card__bar {
  opacity: 0;
  transform: translateY(6px);
}

.game-card__badge {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-accent);
  color: #000;
  z-index: 5;
}
.game-card__badge--new {
  background: var(--color-new);
  color: #fff;
}
.game-card__badge--hot {
  background: var(--color-danger);
  color: #fff;
}
.game-card__badge--live {
  background: var(--color-primary);
  color: #fff;
}
.game-card__badge--jackpot {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}
.game-card--grand .game-card__badge--jackpot {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000;
}
.game-card--major .game-card__badge--jackpot {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}
.game-card--mini .game-card__badge--jackpot {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.game-card__jackpot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  color: #fcd34d;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  padding: 40px 4px 14px;
  z-index: 4;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  letter-spacing: 0.02em;
}
.game-card--grand .game-card__jackpot {
  background: linear-gradient(0deg, rgba(120, 53, 15, 0.95) 0%, rgba(120, 53, 15, 0.5) 60%, transparent 100%);
  color: #fbbf24;
}
.game-card--major .game-card__jackpot {
  background: linear-gradient(0deg, rgba(127, 29, 29, 0.95) 0%, rgba(127, 29, 29, 0.5) 60%, transparent 100%);
  color: #fca5a5;
}
.game-card--mini .game-card__jackpot {
  background: linear-gradient(0deg, rgba(6, 78, 59, 0.95) 0%, rgba(6, 78, 59, 0.5) 60%, transparent 100%);
  color: #6ee7b7;
}

.game-card--c1 {
  background: linear-gradient(160deg, #7c3aed, #4f46e5);
}
.game-card--c2 {
  background: linear-gradient(160deg, #1d4ed8, #0891b2);
}
.game-card--c3 {
  background: linear-gradient(160deg, #b45309, #92400e);
}
.game-card--c4 {
  background: linear-gradient(160deg, #047857, #065f46);
}
.game-card--c5 {
  background: linear-gradient(160deg, #be185d, #9d174d);
}
.game-card--c6 {
  background: linear-gradient(160deg, #c2410c, #9a3412);
}

.game-card--grand {
  background: linear-gradient(160deg, #92400e, #78350f);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.game-card--major {
  background: linear-gradient(160deg, #991b1b, #7f1d1d);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.22);
}
.game-card--mini {
  background: linear-gradient(160deg, #065f46, #064e3b);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}
.game-card--c7 {
  background: linear-gradient(160deg, #1e40af, #1e3a8a);
}
.game-card--c8 {
  background: linear-gradient(160deg, #6b21a8, #581c87);
}

.jackpot-banner {
  margin: 0 var(--space-x) var(--space-block);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2d1465 0%, #4a1fa6 50%, #2d1465 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.jackpot-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

.jackpot-banner__left {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.jackpot-banner__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-light);
  margin-bottom: 4px;
}
.jackpot-banner__amount {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.jackpot-banner__sub {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.jackpot-banner__games {
  flex: 1;
  display: flex;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.jackpot-mini-card {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.jackpot-mini-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 4px;
}

.jackpot-banner__stats {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.jackpot-stat {
  text-align: center;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  min-width: 80px;
}
.jackpot-stat__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-accent-light);
}
.jackpot-stat__label {
  font-size: 9px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jackpot-ticker {
  background: rgba(78, 31, 166, 0.07);
  border-top: 1px solid var(--color-border);
  padding: 6px 16px;
  overflow: hidden;
  position: relative;
}
.jackpot-ticker__inner {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  width: max-content;
}
.jackpot-ticker__item {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.jackpot-ticker__item strong {
  color: var(--color-accent);
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.sport-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2/3;
  position: relative;
  transition: transform 0.2s ease;
}
.sport-card:hover {
  transform: scale(1.04);
}

.sport-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 8px;
  position: relative;
}
.sport-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  z-index: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.sport-card--live {
  background: linear-gradient(160deg, #1d4ed8 0%, #0891b2 100%);
}
.sport-card--football {
  background: linear-gradient(160deg, #15803d 0%, #166534 100%);
}
.sport-card--tennis {
  background: linear-gradient(160deg, #d97706 0%, #92400e 100%);
}
.sport-card--basketball {
  background: linear-gradient(160deg, #c2410c 0%, #9a3412 100%);
}
.sport-card--hockey {
  background: linear-gradient(160deg, #1e40af 0%, #1e3a8a 100%);
}
.sport-card--tennis2 {
  background: linear-gradient(160deg, #6d28d9 0%, #4c1d95 100%);
}
.sport-card--american {
  background: linear-gradient(160deg, #b45309 0%, #78350f 100%);
}
.sport-card--baseball {
  background: linear-gradient(160deg, #047857 0%, #064e3b 100%);
}

.spin-rally-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.spin-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  grid-template-rows: 1fr auto;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-width: 0;
}
.spin-card__thumb-wrap {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.spin-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
}
.spin-card__info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 8px 10px 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.spin-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 5px;
}
.spin-card__fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 0;
}
.spin-card__field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}
.spin-card__field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.spin-card__field-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.spin-card__field-value--green {
  color: #22c55e;
}
.btn-opt {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  text-align: center;
  background: #22c55e;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 7px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 10px;
}
.btn-opt:hover {
  background: #16a34a;
}

.gameshows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gameshow-card {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gameshow-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gameshow-card:hover .gameshow-card__thumb {
  transform: scale(1.04);
}

.gameshow-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(72, 0, 180, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gameshow-card:hover .gameshow-card__overlay {
  opacity: 1;
}

.gameshow-card__play-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.gameshow-card__demo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.exclusive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.excl-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.excl-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.excl-card:hover .excl-card__thumb {
  transform: scale(1.04);
}

.excl-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(72, 0, 180, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.excl-card:hover .excl-card__overlay {
  opacity: 1;
}

.excl-card__play-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.excl-card__demo {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.excl-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #7c3aed, #5500cc);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.promo-banner-wrap {
  padding: 0 var(--space-x) var(--space-block);
}

.promo-banner {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.promo-banner__img {
  display: block;
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: center;
}

.promo-banner__cta {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background: rgba(60, 0, 140, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 200px;
}

.promo-banner__cta-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.promo-banner__cta-amount {
  font-size: 42px;
  font-weight: 900;
  color: #fcd34d;
  line-height: 1;
}

.promo-banner__cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #00c853, #00a041);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(0, 200, 83, 0.55);
  transition: var(--transition);
  margin-top: 4px;
  white-space: nowrap;
}

.promo-banner__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.7);
}

.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--color-border);
  padding: 32px var(--space-x) 20px;
  margin: var(--space-block) var(--space-x) 0 var(--space-x);
}

.footer__lang-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.footer__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: var(--transition);
}
.footer__lang-btn:hover,
.footer__lang-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--color-primary);
}
.footer__lang-btn svg {
  width: 16px;
  height: 16px;
}

.footer__chat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success-bright);
  cursor: pointer;
  transition: var(--transition);
}
.footer__chat-btn:hover {
  background: rgba(16, 185, 129, 0.22);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px 16px;
  margin-bottom: 28px;
}

.footer__col-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.footer__col-title--link a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}
.footer__col-title--link a:hover {
  opacity: 0.8;
}
.footer__col-title--link {
  margin-bottom: 10px;
}
.footer__col ul li {
  margin-bottom: 8px;
}
.footer__col ul li a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.footer__col ul li a:hover {
  color: var(--color-text);
}

.footer__payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  min-width: 80px;
  height: 44px;
  transition: var(--transition);
}
.payment-badge:hover {
  background: rgba(255, 255, 255, 0.16);
}
.payment-badge img {
  height: 24px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .payment-badge {
    padding: 6px 10px;
    min-width: 60px;
    height: 36px;
  }
  .payment-badge img {
    height: 18px;
    max-width: 44px;
  }
}
@media (max-width: 420px) {
  .footer__payments {
    gap: 6px;
  }
  .payment-badge {
    padding: 5px 8px;
    min-width: 52px;
    height: 32px;
  }
  .payment-badge img {
    height: 16px;
    max-width: 38px;
  }
}
.footer__payments-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 6px 10px;
  transition: var(--transition);
}
.footer__payments-more:hover {
  color: var(--color-text);
}

.footer__bottom {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-text-muted);
  font-size: 14px;
  font-weight: 900;
  color: var(--color-text-muted);
}

.footer__disclaimer {
  font-size: 14px;
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: center;
}
.footer__copyright {
  font-size: 14px;
  color: var(--color-text-dim);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 40, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 350;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  :root {
    --space-x: 12px;
    --space-block: 20px;
  }
  
  .sidebar {
    width: 240px !important;
    top: 0;
    height: 100dvh;
    margin: 0;
    border-radius: 0 16px 16px 0;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 400;
    box-shadow: 6px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .spin-rally-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .spin-card__name {
    font-size: 13px;
  }
  .spin-card__field-label {
    font-size: 11px;
  }
  .spin-card__field-value {
    font-size: 11px;
  }
  .exclusive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gameshows-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banner__img {
    height: 320px;
  }

  
  .sidebar__mobile-top {
    display: flex;
  }
  .sidebar__close-btn {
    display: flex;
  }
  .sidebar-overlay {
    display: block;
    pointer-events: none;
  }

  
  .sidebar__item--icon-only {
    display: none;
  }
  .sidebar__divider--icon {
    display: none;
  }
  .sidebar__top-group {
    display: block;
  }
  .sidebar__featured {
    display: grid;
  }
  .sidebar__item {
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    margin: 1px 6px;
  }
  .sidebar__item.active {
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.8);
  }
  .sidebar__item.active::after {
    display: none;
  }
  .sidebar__item__icon {
    width: 22px;
    font-size: 18px;
  }
  .sidebar__item__label {
    display: block;
  }
  .sidebar__item .badge-new {
    display: inline-block;
  }
  .sidebar__bottom {
    flex-direction: row;
    gap: 6px;
    padding: 8px 8px 12px;
  }
  .sidebar__bottom-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 8px 4px;
  }
  .sidebar__bottom-btn__label {
    display: block;
  }
  .sidebar__divider {
    margin: 6px 12px;
  }

  
  .main-area {
    margin-left: 0 !important;
  }

  
  .header__search {
    display: none;
  }
  .btn-login {
    padding: 6px 12px;
    font-size: 12px;
  }
  .btn-register {
    padding: 5px 12px;
    font-size: 12px;
  }

  
  .hero-slider {
    height: 260px;
    margin: 12px;
  }
  .hero-slide {
    padding: 24px 20px;
    background-position: right center;
  }
  .hero-slide--reverse {
    background-position: left center;
  }
  .hero-slide__title {
    font-size: 22px;
  }
  .hero-slide__sub {
    font-size: 11px;
  }

  
  .cat-strip {
    justify-content: flex-start;
  }

  
  .games-grid,
  .games-grid--8 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .sports-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  
  .jackpot-banner {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 var(--space-x) var(--space-block);
    gap: 12px;
  }
  .jackpot-banner__games {
    width: 100%;
  }
  .jackpot-banner__stats {
    flex-direction: row;
    width: 100%;
  }

  
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
  }
}

@media (max-width: 600px) {
  :root {
    --space-x: 10px;
    --space-block: 16px;
  }
  .games-grid,
  .games-grid--8 {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .spin-rally-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .spin-card__thumb-wrap {
    padding: 4px;
  }
  .spin-card {
    grid-template-columns: 60px 1fr;
  }
  .spin-card__name {
    font-size: 12px;
  }
  .spin-card__field-label {
    font-size: 10px;
  }
  .spin-card__field-value {
    font-size: 10px;
  }
  .exclusive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .gameshows-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .promo-banner__img {
    height: 220px;
  }
  .promo-banner__cta {
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 85%;
  }
  .section__header {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .jackpot-banner {
    padding: 14px 16px;
  }
  .jackpot-banner__stats {
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  :root {
    --space-x: 8px;
    --space-block: 12px;
  }
  .btn-login {
    display: none;
  }
  .games-grid,
  .games-grid--8 {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spin-rally-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .spin-card {
    grid-template-columns: 56px 1fr;
  }
  .spin-card__thumb-wrap {
    padding: 4px;
  }
  .exclusive-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .promo-banner__img {
    height: 180px;
  }
  .promo-banner__cta {
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 85%;
    padding: 12px 16px;
    gap: 6px;
    min-width: 130px;
  }
  .promo-banner__cta-amount {
    font-size: 26px;
  }
  .promo-banner__cta-label {
    font-size: 11px;
  }
  .promo-banner__cta-btn {
    font-size: 12px;
    padding: 9px 20px;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.seo-block {
  margin: 0 var(--space-x) var(--space-block);
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.seo-block__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.seo-block__body.open {
  max-height: 4000px;
}
.seo-block__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  background: none;
  border: none;
  color: rgb(var(--stb-brand-600));
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.seo-block__toggle-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.seo-block__toggle[aria-expanded="true"] .seo-block__toggle-icon {
  transform: rotate(180deg);
}

.content h2 {
  font-size: 18px;
  font-weight: 700;
  color: rgb(var(--stb-brand-600));
  margin-bottom: 14px;
  line-height: 1.4;
}
.content h3 {
  font-size: 16px;
  font-weight: 700;
  color: rgb(var(--stb-brand-600));
  margin: 28px 0 10px;
  line-height: 1.4;
}
.content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.content strong {
  color: var(--color-text);
  font-weight: 700;
}
.content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content ul li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}
.content ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: rgb(var(--stb-brand-600));
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}
.content img {
  display: block;
  width: 50%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  margin: 20px auto;
}
.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin: 16px 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--stb-brand-600), 0.25);
  background: var(--bg-card);
}
.content table thead tr {
  background: linear-gradient(90deg, rgba(var(--stb-brand-600), 0.35) 0%, rgba(var(--stb-brand-600), 0.15) 100%);
}
.content table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--stb-brand-600));
  white-space: nowrap;
  border-bottom: 1px solid rgba(var(--stb-brand-600), 0.35);
}
.content table th:not(:last-child) {
  border-right: 1px solid rgba(var(--stb-brand-600), 0.15);
}
.content table td {
  padding: 12px 20px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  white-space: nowrap;
  font-size: 13px;
  vertical-align: middle;
}
.content table td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
.content table td:first-child {
  font-weight: 700;
  color: var(--color-text);
}
.content table tbody tr:nth-child(odd) {
  background: rgba(var(--stb-brand-600), 0.07);
}
.content table tbody tr:nth-child(even) {
  background: rgba(var(--stb-brand-600), 0.02);
}
.content table tbody tr:hover {
  background: rgba(var(--stb-brand-600), 0.15);
  transition: background 0.15s;
}

@media (max-width: 600px) {
  .seo-block {
    padding: 20px 18px;
  }
  .content h2 {
    font-size: 16px;
  }
  .content img {
    width: 100%;
  }
  .content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content table th,
  .content table td {
    padding: 9px 12px;
    font-size: 12px;
  }
}

.faq {
  margin: 0 var(--space-x) var(--space-block);
}
.faq__title {
  font-size: 22px;
  font-weight: 800;
  color: rgb(var(--stb-brand-600));
  margin-bottom: 16px;
  padding: 0 4px;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq__item:has(.faq__q[aria-expanded="true"]) {
  border-color: rgba(var(--stb-brand-600), 0.45);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
}
.faq__q:hover {
  color: rgb(var(--stb-brand-600));
}
.faq__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgb(var(--stb-brand-600));
  transition: transform 0.3s;
}
.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__a.open {
  max-height: 400px;
}
.faq__a p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

@media (max-width: 600px) {
  .faq__title {
    font-size: 18px;
  }
  .faq__q {
    font-size: 14px;
    padding: 14px 16px;
  }
  .faq__a p {
    padding: 12px 16px 14px;
    font-size: 13px;
  }
}

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 13, 61, 0.97);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  padding: 12px 16px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
}
.cookie-notice a {
  color: var(--color-primary-light);
  text-decoration: underline;
}
.cookie-notice__text {
  flex: 1;
}
.btn-cookie {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.btn-cookie:hover {
  background: var(--color-primary-dark);
}
.cookie-notice.hidden {
  display: none;
}

.float-chat {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  z-index: 100;
  background: var(--color-primary);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 14px 8px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: -2px 0 12px rgba(139, 92, 246, 0.4);
}
.float-chat:hover {
  background: var(--color-primary-dark);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.55);
}
