/* Pokie Mate mobile restoration — scoped fixes for the flattened Angular build. */

/* Keep the complete 50px mobile header pinned to the viewport. */
app-mobile-header {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 10030 !important;
  display: block !important;
  width: 100% !important;
  background: var(--mobile-header-bg, #198a26) !important;
}

/* Fixed positioning removes the header from flow; preserve its exact slot. */
app-mobile-header + mat-sidenav-container {
  margin-top: 50px !important;
}

/* Header logo: the snap kept the offsite /cms URL instead of the local asset. */
.mobile-header .link-logo .logo,
.mobile-header .content.logo-displayed .logo {
  width: 100% !important;
  height: 45px !important;
  background-image: url("/_a/assets/icon-logo-934a9b9a08.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

/* Hero: prevent inherited/flex height from stretching the flattened slide. */
app-main-banner .swiper-container,
app-main-banner .flexslider {
  height: auto !important;
  max-height: none !important;
}

app-main-banner .swiper-wrapper,
app-main-banner .slides {
  width: 100% !important;
  height: 265px !important;
  align-items: flex-start !important;
  transform: none !important;
}

app-main-banner .swiper-slide,
app-main-banner .banner-game {
  display: none !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 265px !important;
  max-height: none !important;
}

app-main-banner .swiper-slide.swiper-slide-active,
app-main-banner .banner-game.swiper-slide-active {
  display: block !important;
}

app-main-banner .swiper-slide img,
app-main-banner .banner-game img {
  display: block !important;
  width: 100% !important;
  height: 265px !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

/* Category strip: search | scrollable tabs | filter, with no overlap. */
.games-grid-control {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) 60px !important;
  grid-template-rows: 40px !important;
  column-gap: 16px !important;
  align-items: center !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #000 !important;
}

.games-grid-control > .menu-wrap {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

.games-grid-control > .filters-wrap {
  display: contents !important;
}

.games-grid-control .search-wrap {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative !important;
  width: 20px !important;
  height: 30px !important;
  margin: 0 !important;
  overflow: visible !important;
  z-index: 4 !important;
}

.games-grid-control .input-container::before {
  left: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

.games-grid-control .search-wrap input {
  width: 20px !important;
  height: 30px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.games-grid-control .search-wrap:focus-within {
  grid-column: 2 / 4 !important;
  width: 100% !important;
  padding: 0 !important;
  background: #000 !important;
}

.games-grid-control:has(.search-wrap:focus-within) > .menu-wrap {
  visibility: hidden !important;
}

.games-grid-control .search-wrap:focus-within::before,
.games-grid-control .search-wrap:focus-within::after {
  display: none !important;
}

.games-grid-control .search-wrap:focus-within input {
  width: 100% !important;
  padding: 0 14px 0 40px !important;
  opacity: 1 !important;
  cursor: text !important;
}

.games-grid-control app-games-grid-filter-button {
  grid-column: 3 !important;
  grid-row: 1 !important;
  width: 60px !important;
  height: 30px !important;
  z-index: 3 !important;
}

.games-grid-control app-games-grid-filter-button .filter-btn {
  width: 60px !important;
  height: 30px !important;
  box-sizing: border-box !important;
}

.games-grid-control .games-menu-slider {
  width: 100% !important;
  height: 32px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}

.games-grid-control .games-menu-slider::-webkit-scrollbar {
  display: none;
}

.games-grid-control .games-menu-slider .swiper-wrapper {
  display: flex !important;
  width: max-content !important;
  min-width: 100% !important;
  transform: none !important;
}

.games-grid-control .games-grid-menu {
  flex: 0 0 auto !important;
  width: auto !important;
  white-space: nowrap !important;
}

/* Hot Games: stable one-slide viewport; JS below restores the offsite loop. */
app-hot-games-carousel .hot-games-swiper {
  overflow: hidden !important;
}

app-hot-games-carousel .swiper-wrapper {
  display: flex !important;
  width: 100% !important;
  z-index: 0 !important;
  will-change: transform;
}

app-hot-games-carousel .swiper-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
}

app-hot-games-carousel .control-panel {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 9 !important;
}

/* Footer must participate in page flow so full-page screenshots include it. */
app-footer {
  position: relative !important;
  bottom: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

footer.app-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 24px 16px calc(78px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  background: #001321 !important;
}

footer.app-footer .x-site-lang-section {
  order: 0 !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 0 22px !important;
}

footer.app-footer .x-site-lang-trigger {
  min-height: 42px !important;
  padding: 8px 16px !important;
  border: 1px solid #2bd5d6 !important;
  border-radius: 10px !important;
  color: #ddd !important;
  background: transparent !important;
  font: 700 14px/1.2 inherit !important;
}

footer.app-footer .x-site-lang-divider {
  display: none !important;
}

footer.app-footer > .links {
  order: 1 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  margin: 0 0 16px !important;
}

footer.app-footer > .content {
  order: 2 !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}

footer.app-footer > .content > .flex-align-c {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

footer.app-footer .content .license {
  flex: 0 0 96px !important;
  width: 96px !important;
}

footer.app-footer .pokiemate-license-seal,
footer.app-footer .content .license img {
  display: block !important;
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  object-fit: contain !important;
  visibility: visible !important;
}

footer.app-footer .content .c-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

footer.app-footer > .secure-label {
  order: 3 !important;
  align-self: center !important;
  margin: 0 !important;
}

/* Recreate the empty flattened quick-menu as the sticky auth bar. */
#pokiemate-sticky-auth {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10020;
  display: flex;
  width: 100%;
  height: calc(50px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  background: #001321;
}

#pokiemate-sticky-auth button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 50px;
  border: 0;
  border-radius: 0;
  color: #262626;
  font: 700 20px/1 inherit;
  text-transform: uppercase;
  cursor: pointer;
}

#pokiemate-sticky-auth .pokiemate-login {
  background: #fed31a;
}

#pokiemate-sticky-auth .pokiemate-join {
  background: #b4fc48;
}

app-common-layout mat-sidenav-content > main {
  min-height: 0 !important;
  padding-bottom: 0 !important;
}

body {
  padding-bottom: 0 !important;
  background: #001321 !important;
}

/* 20.10 конвейер: родная нижняя панель входа прячется — её место занимает липкое меню (V34 «родная панель прилипла к низу экрана») */
#pokiemate-sticky-auth { display: none !important; }
