/* Desktop/mobile layout stabilization for the static Gama snapshot. */
:root {
  --site-ui-font: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --site-menu-width: min(350px, calc(100vw - 24px));
  --site-menu-z: 1200;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--site-ui-font) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: var(--site-ui-font) !important;
}

/* The archived page had an expanded Angular side panel baked into the HTML.
   The content area must never reserve space for that panel. */
#wlcApp,
.wlc-app,
body .wlc-app {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.wlc-app-content,
.wlc-app-content > *,
.wlc-sections__header,
.wlc-sections__banner-section,
.wlc-sections__four-elements,
.wlc-sections__categories,
.wlc-sections__providers,
.section__about,
.container {
  min-width: 0;
}

/* Cancel negative offsets that belonged to the fixed/expanded left-panel mode. */
.wlc-sections__header,
.wlc-sections__email-verification-notification {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Off-canvas navigation: fully hidden by default on desktop as well as mobile. */
[data-wlc-element="section_left-fixed"].wlc-burger-panel {
  --bp-width: var(--site-menu-width) !important;
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--site-menu-width) !important;
  min-width: 0 !important;
  max-width: 350px !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: var(--site-menu-z) !important;
  transform: translate3d(-104%, 0, 0) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  box-shadow: 12px 0 38px rgba(0,0,0,.38) !important;
  transition: transform .24s ease, opacity .2s ease, visibility 0s linear .24s !important;
  will-change: transform;
}

body.menu-open [data-wlc-element="section_left-fixed"].wlc-burger-panel {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: transform .24s ease, opacity .2s ease, visibility 0s linear 0s !important;
}

[data-wlc-element="section_left-fixed"] .wlc-burger-panel__content {
  display: block !important;
  height: calc(100dvh - 58px) !important;
  max-height: calc(100dvh - 58px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

[data-wlc-element="section_left-fixed"] .wlc-burger-panel__inner {
  min-height: 100%;
}

/* Backdrop is inert while the menu is closed. */
.wlc-float-panels__backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: calc(var(--site-menu-z) - 1) !important;
  display: block !important;
  background: rgba(10, 4, 4, .58) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .2s ease, visibility 0s linear .2s !important;
  backdrop-filter: blur(2px);
}
body.menu-open .wlc-float-panels__backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s !important;
}
body.menu-open {
  overflow: hidden;
}

/* New compact menu button. It replaces the huge permanently-open drawer. */
.site-menu-toggle {
  position: fixed;
  top: 15px;
  left: 16px;
  z-index: calc(var(--site-menu-z) + 2);
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  background: rgba(38, 9, 9, .92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.site-menu-toggle:hover {
  background: rgba(62, 15, 15, .98);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.site-menu-toggle:active { transform: scale(.96); }
.site-menu-toggle:focus-visible {
  outline: 3px solid rgba(117,92,252,.55);
  outline-offset: 2px;
}
.site-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
body.menu-open .site-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .site-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .site-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Keep the header clear of the floating menu control. */
.wlc-sections__header > .container {
  padding-left: 76px !important;
  padding-right: 18px !important;
  max-width: 100% !important;
}

/* Stable typography and wrapping: archived Angular components sometimes preserve
   rigid widths that clip Russian text when the original webfont is unavailable. */
h1, h2, h3, h4, h5, h6, p,
.wlc-btn__text,
.wlc-menu__link-text,
.wlc-game-thumb__name,
.wlc-title__main,
.wlc-title__sub,
.wlc-four-elements__text,
.wlc-four-elements__title {
  font-family: var(--site-ui-font) !important;
  overflow-wrap: anywhere;
}

p, .section__about, .section__about * {
  line-height: 1.55;
}

.wlc-total-jackpot__currency,
.wlc-total-jackpot__counter {
  font-family: var(--site-ui-font) !important;
}

img, video {
  max-width: 100%;
}

.site-static-game-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prevent flex/grid children from forcing horizontal page overflow. */
.wlc-games-grid__item,
.wlc-game-thumb,
.wlc-game-thumb__desc,
.wlc-slider,
.wlc-lite-slider,
.wlc-lite-slider__slide,
.wlc-four-elements__item,
.wlc-provider-links__item {
  min-width: 0;
}

.section__about .container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}
.section__about h1,
.section__about h2 {
  line-height: 1.18;
}

@media (max-width: 767px) {
  :root { --site-menu-width: min(320px, calc(100vw - 18px)); }
  [data-wlc-element="section_left-fixed"].wlc-burger-panel {
    max-width: 320px !important;
  }
  .site-menu-toggle {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .wlc-sections__header > .container {
    padding-left: 62px !important;
    padding-right: 10px !important;
  }
  .section__about .container {
    width: min(100% - 24px, 1180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-wlc-element="section_left-fixed"].wlc-burger-panel,
  .wlc-float-panels__backdrop,
  .site-menu-toggle,
  .site-menu-toggle span {
    transition: none !important;
  }
}
