:root {
  --secondary: #8d92f4;
  --secondary_500: #8d92f4;
  --secondary_700: #6b70d4;
  --control-primary: #8d92f4;
  --control-primary-hover: #a5a9f7;
}

/* Larger logo without changing the template header structure. */
.header__logo .logo__desktopIcon {
  width: 130px;
  max-height: 62px;
  object-fit: contain;
}

.header__logo .logo__mobileIcon {
  width: 110px;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
}

@media (max-width: 734px) {
  .header__logo .logo__mobileIcon {
    width: 100px;
    height: 48px;
  }
}

body,
.page,
.page__body {
  background-color: #0d0d1a !important;
}

.header,
.header__menu,
.footer {
  background-color: #111122 !important;
}

.header {
  border-bottom: 1px solid rgba(141, 146, 244, 0.18);
  box-shadow: 0 8px 26px rgba(12, 12, 37, 0.22);
}

.header__container {
  height: 88px;
  max-width: 1600px;
  padding: 10px 28px;
}

.header__left {
  flex: 1 1 auto;
  min-width: 0;
}

.header__logo {
  flex: 0 0 auto;
}

.header__logo .logo__icon {
  margin-right: 22px;
}

.header__leftLinks {
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
}

.header__leftItemLink {
  border-radius: 9px;
  font-size: 13px;
  line-height: 18px;
  padding: 9px 10px;
  white-space: nowrap;
}

.header__leftItemLink + .header__leftItemLink {
  margin-left: 0;
}

.header__leftItemLink img {
  height: 22px;
  margin-right: 7px;
  width: 22px;
}

.header__leftItemLink:hover,
.header__leftItemLink.link_hovered {
  background: rgba(141, 146, 244, 0.1);
  color: #b0b4f8;
}

.header__right {
  flex: 0 0 auto;
  gap: 10px;
  margin-left: 14px;
}

.header .userinfo {
  gap: 8px;
}

.header .userinfo .button {
  min-width: auto;
  padding-left: 14px;
  padding-right: 14px;
}

@media (max-width: 1320px) {
  .header__leftLinks {
    display: none;
  }
}

@media (max-width: 734px) {
  .header__container {
    height: 72px;
    padding: 8px 14px;
  }

  .header__logo .logo__icon {
    margin-right: 10px;
  }

  .header__right {
    gap: 6px;
    margin-left: 8px;
  }

  .header .userinfo {
    gap: 6px;
  }

  .header .userinfo .button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  .header .lang-switcher {
    display: none;
  }

  .header__menuBtnFake {
    margin-right: 14px;
  }
}

@media (max-width: 380px) {
  .header__logo .logo__mobileIcon {
    width: 80px;
    height: 42px;
  }

  .header__menuBtnFake {
    margin-right: 8px;
  }

  .header .userinfo .button {
    font-size: 12px;
    padding-left: 7px;
    padding-right: 7px;
  }
}

.button_theme_primary {
  background: linear-gradient(105deg, #7b7ff2 0%, #8d92f4 55%, #a5aaff 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(123, 127, 242, 0.22);
  color: #fff !important;
}

.button_theme_primary .button__content {
  color: #fff !important;
}

.button_theme_primary:hover,
.button_theme_primary:active {
  background: linear-gradient(105deg, #8e92f5 0%, #a6aaf7 52%, #c4bff5 100%) !important;
  box-shadow: 0 10px 30px rgba(130, 134, 243, 0.3);
}

.button_theme_secondary {
  background: rgba(15, 15, 32, 0.9) !important;
  border: 1px solid rgba(141, 146, 244, 0.62) !important;
  color: #fff !important;
}

.button_theme_secondary:hover,
.button_theme_secondary:active {
  background: rgba(20, 19, 48, 0.95) !important;
  border-color: #9ea3f6 !important;
}

.footer__content a,
.menu_theme_header .menu__item:hover > .menu__link,
.menu_theme_header .menu__item_active > .menu__link {
  color: #acb0f7;
}

.footer__content h2,
.footer__content h3 {
  color: #eef0ff;
}

.footer__content .toc {
  background: linear-gradient(135deg, rgba(141, 146, 244, 0.07), rgba(141, 146, 244, 0.05)) !important;
  border: 1px solid rgba(141, 146, 244, 0.2);
}

.footer__content details.faq-item {
  background: rgba(16, 15, 35, 0.72);
  border-color: rgba(141, 146, 244, 0.2) !important;
}

.footer__content details.faq-item[open] {
  border-color: rgba(141, 146, 244, 0.5) !important;
}

.footer__content details.faq-item summary::after {
  color: #9a9ff5 !important;
}

.footer__content table {
  border-color: rgba(141, 146, 244, 0.24) !important;
}

.footer__content table thead th {
  background: linear-gradient(105deg, #111230, #18133a) !important;
  color: #a8acf7 !important;
}

.pageFeature {
  overflow: hidden;
  border: 1px solid rgba(141, 146, 244, 0.24);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3), 0 0 26px rgba(131, 135, 243, 0.08);
}

.pageFeature img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
}

.homeCasino__promoBanner {
  isolation: isolate;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

.carousel_mainPromo .carousel__itemSlide {
  height: 380px;
  max-height: 380px;
  aspect-ratio: unset;
}

.carousel_mainPromo .carousel__slide {
  height: 100%;
  overflow: hidden;
}

.carousel_mainPromo .carousel__slideImageContainer {
  position: absolute;
  inset: 0;
}

.carousel_mainPromo .carousel__slideImageContainer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.carousel_mainPromo .carousel__slide {
  border-color: rgba(141, 146, 244, 0.35);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38), 0 0 26px rgba(131, 135, 243, 0.09);
}

.carousel_mainPromo .carousel__slide::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 10, 28, 0.9) 0%, rgba(18, 16, 52, 0.58) 32%, rgba(14, 14, 36, 0.1) 63%, rgba(10, 10, 24, 0.02) 100%);
}

.carousel_mainPromo .carousel__slideContent {
  z-index: 2;
  left: clamp(24px, 3.3vw, 52px);
  width: calc(100% - clamp(48px, 6.6vw, 104px));
}

.carousel_mainPromo .carousel__textWrapper,
.carousel_mainPromo .carousel__buttonsRow {
  max-width: 520px;
}

.carousel_mainPromo .carousel__title {
  margin-bottom: 12px;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.16;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.carousel_mainPromo .carousel__description {
  max-width: 500px;
  color: #e4e7f5;
  font-size: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.carousel_mainPromo .carousel__buttonsRow {
  margin-top: 34px;
}

.carousel_mainPromo .carousel__slideImageContainer,
.carousel_mainPromo .carousel__slideImageContainer img {
  width: 100%;
  height: 100%;
}

.carousel_mainPromo .carousel__slideImageContainer img {
  display: block;
  object-fit: contain;
  object-position: center center;
  background: #090b18;
}

@media (max-width: 768px) {
  .carousel_mainPromo .carousel__itemSlide {
    height: auto;
  }

  .carousel_mainPromo .carousel__title {
    font-size: 26px;
  }

  .carousel_mainPromo .carousel__description {
    font-size: 15px;
  }
}

@media (max-width: 627px) {
  .carousel_mainPromo .carousel__itemSlide {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .carousel_mainPromo .carousel__slide {
    display: block;
    position: relative;
  }

  .carousel_mainPromo .carousel__link {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .carousel_mainPromo .carousel__slideImageContainer {
    order: 1;
    position: relative;
    inset: auto;
    height: auto;
    padding: 0;
    aspect-ratio: 1628 / 697;
  }

  .carousel_mainPromo .carousel__slideImageContainer img {
    position: static;
    width: 100%;
    height: 100%;
    max-height: none;
    transform: none;
    object-fit: contain;
    object-position: center center;
  }

  .carousel_mainPromo .carousel__slide::after {
    display: none;
  }

  .carousel_mainPromo .carousel__slideContent {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 20px 16px;
    justify-content: flex-start;
    background: linear-gradient(135deg, #0f1230 0%, #131033 100%);
  }

  .carousel_mainPromo .carousel__contentWrapper {
    height: auto;
    justify-content: flex-end;
  }

  .carousel_mainPromo .carousel__textWrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
  }

  .carousel_mainPromo .carousel__mobRowTitle {
    position: static;
  }

  .carousel_mainPromo .carousel__label_empty {
    display: none;
  }

  .carousel_mainPromo .carousel__title {
    margin-bottom: 6px;
    font-size: 24px;
    line-height: 1.2;
  }

  .carousel_mainPromo .carousel__description {
    max-height: none;
    font-size: 14px;
  }

  .carousel_mainPromo .carousel__buttonsRow {
    position: static;
    z-index: 3;
    flex-direction: row;
    gap: 10px;
    margin-top: 16px;
  }

  .carousel_mainPromo .carousel__buttonsRow .carousel__button,
  .carousel_mainPromo .carousel__buttonsRow .carousel__button:first-child {
    width: 50%;
    margin: 0;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .carousel_mainPromo .carousel__itemSlide {
    height: auto;
  }

  .carousel_mainPromo .carousel__buttonsRow {
    flex-direction: column;
  }

  .carousel_mainPromo .carousel__buttonsRow .carousel__button,
  .carousel_mainPromo .carousel__buttonsRow .carousel__button:first-child {
    width: 100%;
  }
}
