:root {
  --sidebar-width: 88px;
  --header-height: 72px;
  --header-bg: #161924;
  --sidebar-bg: var(--header-bg);
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --bg: var(--header-bg);
  --bg-2: var(--header-bg);
  --panel: var(--header-bg);
  --panel-2: var(--header-bg);
  --text: #f5f7ff;
  --muted: #a7aec6;
  --accent: #f4ae00;
  --accent-2: #ffd24d;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--header-bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(1288px, calc(100% - 60px));
  margin: 0 auto;
}

.content-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.site-header {
  position: relative;
  z-index: 2;
  width: calc(100% - 88px);
  margin-left: 88px;
  height: var(--header-height);
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 30px;
}

.layout-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.content-shell {
  min-width: 0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.sidebar__logo {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform .18s ease, filter .18s ease;
}

.sidebar__logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.sidebar__single {
  width: 100%;
  padding-top: 26px;
  display: flex;
  justify-content: center;
}

.sidebar__bottom-group {
  width: 100%;
  margin-top: auto;
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.sidebar__nav {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sidebar__bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sidebar__icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, opacity .18s ease, filter .18s ease;
}

.sidebar__icon-link:hover,
.sidebar__logo:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.sidebar__icon-link img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar__icon-link--top { width: 30px; }
.sidebar__icon-link--support { width: 28px; }
.sidebar__icon-link--telegram { width: 31px; }
.sidebar__icon-link--vk { width: 28px; }
.sidebar__icon-link--x { width: 24px; }
.sidebar__icon-link--bell { width: 25px; }
.sidebar__icon-link--sound { width: 26px; }
.sidebar__icon-link--sun { width: 31px; }

.sidebar__badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4ae00;
  color: #171c2a;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(244, 174, 0, 0.35);
}

.brand img {
  width: 83px;
  height: 32px;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
  margin-left: auto;
}

.header-rocket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.header-rocket img {
  width: 52px;
  height: 42px;
  object-fit: contain;
}

.header-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-image-btn img {
  display: block;
  height: 48px;
  width: auto;
}


.header-image-btn--login {
  margin-right: 3px;
}

.header-image-btn--login img {
  width: 93px;
  height: 56px;
}

.header-image-btn--register img {
  width: 148px;
  height: 56px;
}

.header-rocket:hover,
.header-image-btn:hover {
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.site-footer {
  grid-column: 1 / -1;
  grid-row: 3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-primary {
  color: #111;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-outline {
  border: 1px solid rgba(244, 174, 0, 0.75);
  color: #f8d466;
  background: rgba(255, 183, 0, 0.06);
}
.btn-large { min-height: 56px; min-width: 280px; border-radius: 14px; font-size: 1.05rem; }
.btn-small { min-height: 42px; padding: 0 18px; }

.hero {
  padding: 34px 0 24px;
  background: var(--header-bg);
}
.hero-title-row h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: .98;
  font-weight: 800;
}
.hero-logo-img {
  height: clamp(2rem, 5vw, 3.6rem);
  width: auto;
  display: block;
}
.dragon { filter: drop-shadow(0 0 14px rgba(62, 221, 82, .35)); }

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 30px;
  align-items: stretch;
}

.stat-card {
  position: relative;
  height: 124px;
  min-height: 124px;
  isolation: isolate;
}

.stat-card__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.stat-card--players .stat-card__bg,
.stat-card--money .stat-card__bg {
  width: 100%;
  height: 124px;
}

.stat-card--money .stat-card__bg {
  transform: translateZ(0);
}

.stat-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
}

.stat-card__content::before {
  content: "";
  position: absolute;
  left: 72px;
  right: 18px;
  top: 18px;
  bottom: 18px;
  border-radius: 10px;
  background: var(--header-bg);
  z-index: -1;
}

.stat-card__icon {
  flex: 0 0 auto;
  display: block;
}

.stat-card__icon--players {
  width: 48px;
  height: 48px;
}

.stat-card__icon--money {
  width: 40px;
  height: 40px;
}

.stat-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.stat-label {
  color: #9a9a9a;
  font-size: clamp(1.05rem, 1.45vw, 1.16rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
}

.stat-value {
  color: #f5f5f7;
  font-size: clamp(1.78rem, 3vw, 2.26rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}


.odometer {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex: 0 0 auto;
}

.odometer-digit {
  position: relative;
  display: inline-block;
  width: 0.66em;
  height: 1em;
  overflow: hidden;
  vertical-align: bottom;
}

.odometer-digit-track {
  display: block;
  will-change: transform;
  transform: translateY(0);
}

.odometer-digit-track.is-animating {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.odometer-digit-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 1em;
  line-height: 1;
}

.odometer-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.odometer-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.16em;
  flex: 0 0 auto;
  line-height: 1;
}

.stat-value,
.game-panel__players-count {
  font-variant-numeric: tabular-nums;
}

.stat-value {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.stat-value .odometer-digit {
  width: 0.64em;
}

.game-panel__players-count {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1;
}

.game-panel__players-count .odometer-digit {
  width: 0.62em;
}

.stat-value[data-counter="money"] .odometer-separator {
  width: 0.26em;
}

.stat-value[data-counter="players"] .odometer-separator,
.game-panel__players-count .odometer-separator {
  width: 0.24em;
}

.hero-copy {
  margin: 18px 0 28px;
  color: #d2d8ef;
  font-size: 1.05rem;
  max-width: 1050px;
}
.hero-actions { display: flex; }

.promo-section { padding: 0 0 28px; background: var(--header-bg); }
.games-section {
  padding: 34px 0 32px;
  background: var(--header-bg);
  color: var(--text);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.game-panel {
  background: var(--header-bg);
  border-radius: 24px;
  padding: 18px;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.08);
}
.game-panel__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.game-panel__header h2 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  color: #fff;
}
.game-panel__header p { margin: 0; color: #adc25c; font-weight: 600; }
.game-panel {
  background: var(--header-bg);
  color: #fff;
}
.image-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.image-frame--banner {
  position: relative;
  aspect-ratio: 1024 / 264;
  background: var(--header-bg);
}

.banner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slide {
  position: absolute;
  inset: 0;
}
.banner-slide[hidden] {
  display: none;
}
.banner-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}
.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}
.image-frame img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}
.game-panel:hover .image-frame img,
.image-frame--banner:hover img { transform: scale(1.02); }

.features-section {
  padding: 0 0 52px;
  background: var(--header-bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--header-bg);
  border-radius: 22px;
  padding: 24px;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.08);
}
.feature-card h3 { margin: 0 0 10px; font-size: 1.2rem; color: #f5f7ff; }
.feature-card p { margin: 0; color: #c9d0e8; }

.site-footer {
  padding: 28px 0;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
.footer-inner p { color: var(--muted); margin: 6px 0 0; }
.footer-links { display: flex; gap: 18px; color: #dbe1f3; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .cards-grid, .features-grid, .stats-grid { grid-template-columns: 1fr; }
  .game-panel__header h2 { font-size: 1.6rem; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: 74px; }
  body {
    background: var(--header-bg);
  }
  .container { width: min(100% - 24px, 1288px); }
  .sidebar__top { padding-top: 8px; padding-bottom: 12px; }
  .sidebar__logo, .sidebar__logo img { width: 50px; height: 50px; }
  .sidebar__single { padding-top: 16px; }
  .sidebar__nav { padding-bottom: 18px; }
  .site-header { position: relative; }
  .header-inner {
    min-height: 72px;
    gap: 10px;
  }
  .brand img { width: 88px; }
  .header-right { gap: 0; }
  .header-rocket { margin-right: 12px; }
  .header-rocket img {
    width: 34px;
    height: 28px;
  }
  .header-image-btn img { height: 38px; }
  .header-image-btn--login img {
    width: 70px;
    height: 38px;
  }
  .header-image-btn--register img {
    width: 108px;
    height: 38px;
  }
  .hero { padding-top: 22px; }
  
.hero-copy { font-size: .98rem; }
  .btn-large { width: 100%; min-width: 0; }
  .game-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-inner,
  .footer-links { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --sidebar-width: 68px; }
  .container { width: min(100% - 16px, 1288px); }
  .header-inner { min-height: 64px; }
  .sidebar__logo, .sidebar__logo img { width: 44px; height: 44px; }
  .sidebar__icon-link--top { width: 26px; }
  .sidebar__icon-link--support { width: 24px; }
  .sidebar__icon-link--telegram { width: 27px; }
  .sidebar__icon-link--vk { width: 24px; }
  .sidebar__icon-link--x { width: 20px; }
  .sidebar__icon-link--bell, .sidebar__icon-link--sound { width: 22px; }
  .sidebar__icon-link--sun { width: 28px; }
  .sidebar__badge { min-width: 20px; height: 20px; font-size: 10px; right: -9px; }
  .brand img { width: 78px; }
  .header-right { gap: 0; }
  .header-rocket img {
    width: 30px;
    height: 24px;
  }
  .header-image-btn--login img {
    width: 60px;
    height: 33px;
  }
  .header-image-btn--register img {
    width: 92px;
    height: 33px;
  }
  .stat-card { padding: 18px; }
  .stat-value { font-size: 1.8rem; }
  .feature-card { padding: 20px; }
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 72px 1fr;
  }
  :root { --sidebar-width: 72px; }
  .header-inner { padding: 0 16px; }
  .container { width: min(100%, calc(100% - 32px)); }
}

@media (max-width: 900px) {
  .content-wrapper {
    margin-left: 0;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .sidebar__top,
  .sidebar__nav,
  .sidebar__bottom {
    width: auto;
    padding: 0;
    margin: 0;
    flex-direction: row;
    gap: 14px;
  }

  .sidebar__single {
    padding-top: 0;
  }
}


.stat-card__content::before, .site-header, .sidebar, .games-section, .features-section, .promo-section, .hero, .site-footer, .game-panel, .feature-card { background-color: var(--header-bg); }
.game-panel__header p { color: #d2d8ef; }


.hero-register-image-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero-register-image-btn img {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
}


.banner-carousel {
  position: relative;
  overflow: hidden;
}

.banner-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.banner-nav img {
  width: 36px;
  height: 36px;
  display: block;
}

.banner-nav--prev {
  left: 12px;
}

.banner-nav--next {
  right: 12px;
}

.banner-nav:hover {
  transform: translateY(-50%) scale(1.04);
  filter: brightness(1.08);
}

.banner-nav:active {
  transform: translateY(-50%) scale(0.98);
}

.banner-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
  border-radius: 999px;
}


.cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.game-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #161d33;
  padding: 22px 24px 24px;
  border: none;
  box-shadow: none;
}

.game-panel--slots {
  min-height: 326px;
  isolation: isolate;
}

.game-panel__bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 420ms ease;
  will-change: transform;
}

.game-panel:hover .game-panel__bg-art,
.game-panel:focus-within .game-panel__bg-art {
  transform: scale(1.035);
}

.game-panel__header,
.game-panel__games-list {
  position: relative;
  z-index: 1;
}

.game-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.game-panel__header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.game-panel__players {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eef2ff;
  font-size: 14px;
  line-height: 1.2;
}

.game-panel__players img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.game-panel__play-image {
  display: inline-flex;
  flex: 0 0 auto;
}

.game-panel__play-image img {
  width: 132px;
  height: 48px;
  display: block;
}

.game-panel__games-list img {
  width: 100%;
  height: auto;
  display: block;
}

.game-panel > .image-frame {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 20px;
}

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

.game-panel--live {
  min-height: 326px;
  isolation: isolate;
}


/* footer full-width alignment like reference */
.site-footer .container.footer-inner {
  width: calc(100% - 64px);
  max-width: none;
  margin: 0 auto;
}

.site-footer {
  padding: 20px 0 28px;
}

@media (max-width: 760px) {
  .site-footer .container.footer-inner {
    width: calc(100% - 24px);
  }
}


.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}

.footer-warning {
  display: grid;
  grid-template-columns: 1fr minmax(420px, 760px) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

.footer-warning__logo {
  width: auto;
  height: auto;
  flex: 0 0 auto;
}

.footer-warning__logo--left {
  width: 42px;
  height: 42px;
  justify-self: start;
}

.footer-warning__logo--right {
  width: 40px;
  height: 40px;
  justify-self: end;
}

.footer-warning__text {
  margin: 0;
  text-align: center;
  color: rgba(245, 247, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .footer-warning {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .footer-warning__text {
    max-width: 780px;
    font-size: 15px;
  }
}


.admin-entry-link {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 30;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  backdrop-filter: blur(8px);
}
.admin-entry-link:hover { color: rgba(255,255,255,0.9); }


/* responsive refinements for tablet and phone */
html, body {
  overflow-x: hidden;
}

.site-header,
.content-wrapper,
.layout-main,
.content-shell,
.hero,
.promo-section,
.games-section,
.site-footer {
  min-width: 0;
}

.stat-card,
.game-panel,
.footer-warning,
.header-inner,
.sidebar,
.header-right {
  min-width: 0;
}

.hero-title-row,
.stat-card__text,
.game-panel__header > div,
.footer-warning__text {
  min-width: 0;
}

.hero-copy,
.stat-value,
.game-panel__players,
.footer-warning__text {
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .container {
    width: min(100% - 40px, 1288px);
  }

  .header-inner {
    padding: 0 20px;
  }

  .hero {
    padding: 28px 0 22px;
  }

  .stats-grid {
    gap: 14px;
  }

  .stat-card {
    height: 116px;
    min-height: 116px;
  }

  .stat-card--players .stat-card__bg,
  .stat-card--money .stat-card__bg {
    height: 116px;
  }

  .stat-card__content {
    gap: 14px;
    padding: 0 22px;
  }

  .stat-card__content::before {
    left: 62px;
    right: 14px;
    top: 14px;
    bottom: 14px;
  }

  .cards-grid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
  }

  .site-header {
    width: 100%;
    margin-left: 0;
    height: auto;
  }

  .content-wrapper {
    margin-left: 0;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    scrollbar-width: none;
  }

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

  .sidebar__top,
  .sidebar__bottom-group,
  .sidebar__nav,
  .sidebar__bottom,
  .sidebar__single {
    width: auto;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
  }

  .sidebar__bottom-group {
    margin-top: 0;
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .sidebar__nav {
    flex-wrap: nowrap;
  }

  .sidebar__logo,
  .sidebar__logo img {
    width: 46px;
    height: 46px;
  }

  .header-inner {
    min-height: auto;
    padding: 14px 16px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .header-brand {
    flex: 0 0 auto;
  }

  .header-right {
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .brand img {
    width: 96px;
    height: auto;
  }

  .header-rocket {
    margin-right: 14px;
  }

  .header-rocket img {
    width: 38px;
    height: 30px;
  }

  .header-image-btn--login img {
    width: 74px;
    height: auto;
  }

  .header-image-btn--register img {
    width: 112px;
    height: auto;
  }

  .hero-title-row h1 {
    margin-bottom: 18px;
  }

  .hero-copy {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .image-frame--banner {
    aspect-ratio: 16 / 7;
  }

  .banner-nav {
    width: 32px;
    height: 32px;
  }

  .banner-nav img {
    width: 32px;
    height: 32px;
  }

  .game-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .game-panel__header {
    gap: 14px;
    margin-bottom: 14px;
  }

  .game-panel__header h2 {
    font-size: 22px;
  }

  .game-panel__play-image img {
    width: 116px;
    height: auto;
  }

  .footer-warning {
    grid-template-columns: 1fr;
    gap: 16px;
    justify-items: center;
  }

  .footer-warning__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-warning__text {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.6;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1288px);
  }

  .site-header {
    border-bottom-color: rgba(255,255,255,0.06);
  }

  .header-inner {
    align-items: center;
  }

  .header-brand {
    width: 100%;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .header-rocket {
    margin-right: 0;
    order: 1;
  }

  .header-image-btn--login {
    order: 2;
    margin-right: 3px;
  }

  .header-image-btn--register {
    order: 3;
  }

  .hero {
    padding: 20px 0 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .stat-card {
    height: 102px;
    min-height: 102px;
  }

  .stat-card--players .stat-card__bg,
  .stat-card--money .stat-card__bg {
    height: 102px;
  }

  .stat-card__content {
    gap: 12px;
    padding: 0 16px;
  }

  .stat-card__content::before {
    left: 52px;
    right: 10px;
    top: 10px;
    bottom: 10px;
  }

  .stat-card__icon--players {
    width: 40px;
    height: 40px;
  }

  .stat-card__icon--money {
    width: 34px;
    height: 34px;
  }

  .stat-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-value .odometer-digit,
  .game-panel__players-count .odometer-digit {
    width: 0.58em;
  }

  .hero-register-image-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-register-image-btn img {
    max-width: min(100%, 300px);
  }

  .image-frame--banner {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
  }

  .banner-nav--prev {
    left: 8px;
  }

  .banner-nav--next {
    right: 8px;
  }

  .games-section {
    padding: 26px 0 24px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-panel {
    padding: 16px;
  }

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

  .game-panel__header h2 {
    font-size: 20px;
  }

  .game-panel__players {
    font-size: 13px;
  }

  .game-panel__play-image {
    width: 100%;
  }

  .game-panel__play-image img {
    width: min(132px, 100%);
  }

  .footer-warning__logo--left,
  .footer-warning__logo--right {
    width: 36px;
    height: 36px;
  }

  .admin-entry-link {
    right: 10px;
    bottom: 10px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 16px, 1288px);
  }

  .sidebar {
    padding: 12px 10px;
    gap: 10px;
  }

  .sidebar__top,
  .sidebar__bottom-group,
  .sidebar__nav,
  .sidebar__bottom,
  .sidebar__single {
    gap: 10px;
  }

  .sidebar__icon-link--top { width: 24px; }
  .sidebar__icon-link--support { width: 22px; }
  .sidebar__icon-link--telegram { width: 24px; }
  .sidebar__icon-link--vk { width: 22px; }
  .sidebar__icon-link--x { width: 18px; }
  .sidebar__icon-link--bell,
  .sidebar__icon-link--sound { width: 20px; }
  .sidebar__icon-link--sun { width: 24px; }
  .sidebar__badge {
    min-width: 18px;
    height: 18px;
    top: -4px;
    right: -7px;
    font-size: 9px;
  }

  .header-inner {
    padding: 12px 10px;
  }

  .brand img {
    width: 82px;
  }

  .header-right {
    justify-content: flex-start;
  }

  .header-rocket img {
    width: 32px;
    height: 26px;
  }

  .header-image-btn--login img {
    width: 64px;
  }

  .header-image-btn--register img {
    width: 96px;
  }

  .hero-logo-img {
    max-width: 100%;
    height: auto;
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .stat-card {
    height: 94px;
    min-height: 94px;
  }

  .stat-card--players .stat-card__bg,
  .stat-card--money .stat-card__bg {
    height: 94px;
  }

  .stat-card__content {
    gap: 10px;
    padding: 0 12px;
  }

  .stat-card__content::before {
    left: 46px;
    right: 8px;
    top: 8px;
    bottom: 8px;
  }

  .stat-label {
    font-size: 0.88rem;
  }

  .stat-value {
    font-size: 1.18rem;
  }

  .game-panel {
    border-radius: 16px;
  }

  .game-panel__header h2 {
    font-size: 18px;
  }

  .game-panel__players {
    gap: 6px;
  }

  .game-panel__players img {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .footer-warning__text {
    font-size: 14px;
  }
}

.dm-lang-switcher{position:relative;z-index:20}


/* mobile optimization pack */
@media (max-width: 900px) {
  .hero-register-image-btn {
    width: 100%;
  }

  .hero-register-image-btn img {
    width: min(100%, 320px);
  }

  .game-panel--slots,
  .game-panel--live {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .sidebar {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .sidebar__bottom-group {
    flex: 0 1 auto;
    justify-content: flex-end;
  }

  .sidebar__nav {
    gap: 10px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(10px);
  }

  .header-right {
    align-items: center;
  }

  .hero-copy {
    margin: 16px 0 22px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-register-image-btn,
  .hero-register-image-btn img {
    width: 100%;
  }

  .banner-video {
    object-position: center;
  }

  .game-panel__games-list {
    margin-top: 8px;
  }

  .footer-warning {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 10px 8px;
  }

  .sidebar__nav {
    gap: 8px;
  }

  .sidebar__icon-link--bell,
  .sidebar__icon-link--sound,
  .sidebar__icon-link--sun,
  .sidebar__icon-link--vk,
  .sidebar__icon-link--x {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .header-right {
    justify-content: space-between;
  }

  .header-image-btn--login img {
    width: 58px;
  }

  .header-image-btn--register img {
    width: 90px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-title-row h1 {
    margin-bottom: 14px;
  }

  .hero-copy {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .stat-card {
    height: 88px;
    min-height: 88px;
  }

  .stat-card--players .stat-card__bg,
  .stat-card--money .stat-card__bg {
    height: 88px;
  }

  .stat-card__content {
    padding: 0 10px;
    gap: 8px;
  }

  .stat-card__content::before {
    left: 42px;
    right: 7px;
    top: 7px;
    bottom: 7px;
  }

  .stat-card__icon--players {
    width: 34px;
    height: 34px;
  }

  .stat-card__icon--money {
    width: 30px;
    height: 30px;
  }

  .stat-label {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  .stat-value {
    font-size: 1.04rem;
  }

  .banner-nav {
    width: 28px;
    height: 28px;
  }

  .banner-nav img {
    width: 28px;
    height: 28px;
  }

  .games-section {
    padding-top: 22px;
  }

  .game-panel {
    padding: 14px;
  }

  .game-panel__header h2 {
    font-size: 17px;
  }

  .game-panel__players {
    font-size: 12px;
  }

  .game-panel__play-image img {
    width: 120px;
  }

  .footer-warning__text {
    font-size: 13px;
    line-height: 1.5;
  }
}




.header-right{
margin-left:auto;
display:flex;
align-items:center;
gap:10px;
}

}




.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
flex-wrap:wrap;
}

/* buttons right */
.header-right{
margin-left:auto;
display:flex;
gap:10px;
order:2;
}

/* logo row */
.logo,
.site-logo,
.header-logo{
width:100%;
order:3;
margin-top:14px;
font-size:28px;
font-weight:700;
}

}


/* SEO helpers */
.seo-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


/* ===== STABLE MOBILE HEADER ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
    --header-height: auto;
  }

  .sidebar,
  .sidebar__top,
  .sidebar__bottom-group,
  .sidebar__nav,
  .sidebar__bottom,
  .sidebar__single {
    display: none !important;
  }

  .content-wrapper {
    margin-left: 0 !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    margin-left: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    background: var(--header-bg) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .header-inner {
    min-height: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 8px !important;
  }

  .header-brand,
  .brand {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    line-height: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .header-brand img,
  .brand img {
    width: 108px !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .header-rocket {
    display: none !important;
  }

  .header-right {
    margin-left: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .header-image-btn,
  .header-right a {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 4 !important;
    pointer-events: auto !important;
  }

  .header-image-btn img,
  .header-right a img {
    display: block !important;
    width: auto !important;
    height: 30px !important;
    max-width: none !important;
  }

  .page-bg,
  .hero::before,
  .hero::after {
    pointer-events: none !important;
  }
}
