/* Mobile information architecture carried to desktop without mobile sizing. */
html.resident-desktop-menu-open,
html.resident-desktop-menu-open body {
  overflow: hidden !important;
}

.resident-desktop-menu {
  position: fixed;
  z-index: 100060;
  inset: 0;
  pointer-events: none;
  font-family: Arial, Helvetica, sans-serif;
}

.resident-desktop-menu.is-open { pointer-events: auto; }

.resident-desktop-menu__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .74);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}

.resident-desktop-menu.is-open .resident-desktop-menu__backdrop { opacity: 1; }

.resident-desktop-menu__drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(460px, 100vw);
  max-width: 100%;
  overflow: hidden;
  border-left: 1px solid #2b2c30;
  background: #08090b;
  box-shadow: -18px 0 44px rgba(0, 0, 0, .55);
  color: #fff;
  flex-direction: column;
  transform: translate3d(102%, 0, 0);
  transition: transform .22s ease;
}

.resident-desktop-menu.is-open .resident-desktop-menu__drawer { transform: translate3d(0, 0, 0); }

.resident-desktop-menu__header {
  display: flex;
  min-height: 64px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #292a2e;
  background: #08090b;
  align-items: center;
  justify-content: space-between;
}

.resident-desktop-menu__title {
  margin: 0;
  color: #fff;
  font: 800 15px/1 Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
}

.resident-desktop-menu__close {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 300 30px/1 Arial, Helvetica, sans-serif;
  place-items: center;
}

.resident-desktop-menu__close:hover,
.resident-desktop-menu__close:focus-visible { background: #22242a; outline: 1px solid #454750; }

.resident-desktop-menu__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 16px 30px;
  overscroll-behavior: contain;
  scrollbar-color: #555 transparent;
  scrollbar-width: thin;
}

.resident-desktop-menu__auth,
.resident-desktop-menu__quick,
.resident-desktop-menu__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.resident-desktop-menu__auth { margin-bottom: 11px; }
.resident-desktop-menu__quick { margin-bottom: 22px; }
.resident-desktop-menu__section { margin: 0 0 20px; }

.resident-desktop-menu__auth-button,
.resident-desktop-menu__quick-link,
.resident-desktop-menu__link {
  appearance: none;
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  border: 1px solid #303238;
  border-radius: 7px;
  background: #101115;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  align-items: center;
  gap: 9px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.resident-desktop-menu__auth-button:hover,
.resident-desktop-menu__quick-link:hover,
.resident-desktop-menu__link:hover,
.resident-desktop-menu__auth-button:focus-visible,
.resident-desktop-menu__quick-link:focus-visible,
.resident-desktop-menu__link:focus-visible {
  border-color: #62656e;
  background: #1b1d22;
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.resident-desktop-menu__auth-button {
  min-height: 66px;
  padding: 9px 11px;
  justify-content: center;
  font-size: 13px;
}

.resident-desktop-menu__auth-button--register {
  border-color: #ff7a91;
  background: #ff1744;
  box-shadow: 0 7px 18px rgba(255, 23, 68, .28);
}

.resident-desktop-menu__auth-button--register:hover,
.resident-desktop-menu__auth-button--register:focus-visible { background: #ff365e; border-color: #ffd8df; }

.resident-desktop-menu__auth-icon,
.resident-desktop-menu__quick-link i,
.resident-desktop-menu__icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
  color: inherit;
  font-family: BetConstruct-Icons !important;
  font-size: 18px;
  line-height: 1;
  place-items: center;
}

.resident-desktop-menu__auth-button--register .resident-desktop-menu__auth-icon { background: rgba(255, 255, 255, .18); }

.resident-desktop-menu__quick-link,
.resident-desktop-menu__link {
  min-height: 52px;
  padding: 7px 10px;
  font-size: 12px;
}

.resident-desktop-menu__section-title {
  margin: 0 0 9px 2px;
  color: #f5f5f6;
  font: 800 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .065em;
}

.resident-desktop-menu__link-label {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-resident-desktop-menu-trigger] { cursor: pointer; }
[data-resident-desktop-menu-trigger]:focus-visible { outline: 2px solid #ff365e; outline-offset: 2px; }

@media (min-width: 768px) {
  .riva-desktop-title-menu > a,
  .riva-desktop-title-menu > a.riva-menu-bonus {
    flex: 1 1 0 !important;
    min-width: 104px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 11px !important;
    letter-spacing: .02em !important;
  }

  .resident-desktop-mobile-home {
    box-sizing: border-box;
    width: 100%;
    padding: 0 10px 24px;
  }

  .resident-desktop-mobile-home > .hm-row-bc,
  .resident-desktop-mobile-home > .resident-home-tournaments,
  .resident-desktop-mobile-home > .resident-modern-section-heading {
    width: 100%;
    max-width: 1720px;
    box-sizing: border-box;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .resident-desktop-mobile-home .resident-home-tournaments,
  .resident-desktop-mobile-home .games-content {
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 5px;
    background: rgba(6, 7, 9, .9);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  }

  .resident-desktop-mobile-home .games-content {
    margin: 14px 0;
    padding: 10px 12px 14px;
  }

  .resident-desktop-mobile-home .games-content .resident-modern-section-heading {
    min-height: 58px !important;
    margin: 0 0 10px !important;
    padding: 7px 2px 10px !important;
  }

  .resident-desktop-mobile-home .resident-modern-section-heading .view-title-more {
    font-size: 15px !important;
  }

  .resident-desktop-mobile-home .resident-section-subtitle { font-size: 11px !important; }

  .resident-desktop-mobile-home .games-horiz-scroll {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: auto !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .resident-desktop-mobile-home .games-horiz-scroll .resident-home-game-card {
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 0 3px !important;
    flex-direction: column !important;
    color: #fff !important;
    text-decoration: none !important;
  }

  .resident-desktop-mobile-home .resident-home-game-card .casino-game-item {
    overflow: hidden !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.34 / 1;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 7px !important;
    background: #15161a !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24) !important;
  }

  .resident-desktop-mobile-home .resident-home-game-card .casino-game-item-image-bc {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .resident-desktop-mobile-home .resident-home-game-meta {
    display: flex;
    min-width: 0;
    height: 48px;
    padding: 8px 2px 3px;
    flex-direction: column;
    gap: 3px;
  }

  .resident-desktop-mobile-home .resident-home-game-meta strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resident-desktop-mobile-home .resident-home-game-meta small {
    overflow: hidden;
    color: #a5a7ad;
    font-size: 10px;
    line-height: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .resident-desktop-mobile-home .resident-home-game-play {
    display: grid;
    height: 36px;
    margin-top: 3px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 7px;
    background: linear-gradient(#fff, #e8e8e8);
    color: #111;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    place-items: center;
  }

  .resident-desktop-mobile-home .resident-home-game-card:hover .resident-home-game-play,
  .resident-desktop-mobile-home .resident-home-game-card:focus-visible .resident-home-game-play {
    border-color: #ff7a91;
    background: #ff1744;
    color: #fff;
  }

  .resident-desktop-mobile-home .resident-quick-menu-title {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255, 255, 255, .09) !important;
    border-bottom: 0 !important;
    border-radius: 5px 5px 0 0 !important;
    background: rgba(6, 7, 9, .9) !important;
  }

  .resident-desktop-mobile-home .resident-quick-menu-title + .hm-row-bc {
    margin-top: 0 !important;
    padding: 0 12px 13px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    background: rgba(6, 7, 9, .9);
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .resident-desktop-mobile-home .games-horiz-scroll { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (min-width: 1101px) and (max-width: 1380px) {
  .resident-desktop-mobile-home .games-horiz-scroll { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
  .resident-desktop-menu__drawer { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .resident-desktop-menu__backdrop,
  .resident-desktop-menu__drawer { transition: none; }
}
