body.support-center-open {
  overflow: hidden;
}

body.summer-redesign .support__icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: #8ea2bf;
  -webkit-mask: url("../assets/ui/messages-square.svg") center / contain no-repeat;
  mask: url("../assets/ui/messages-square.svg") center / contain no-repeat;
}

body.summer-redesign .support__icon::before,
body.summer-redesign .support__icon::after {
  content: none;
}

.support-center[hidden] {
  display: none;
}

.support-center {
  position: fixed;
  z-index: 2000;
  inset: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.support-center__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, .7);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 220ms ease;
}

.support-center__drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(430px, 100vw);
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border-left: 1px solid rgba(124, 157, 205, .14);
  outline: 0;
  background: #0c1627;
  box-shadow: -28px 0 70px rgba(0, 0, 0, .42);
  transform: translate3d(28px, 0, 0);
  opacity: 0;
  transition: transform 220ms cubic-bezier(.22, .7, .24, 1), opacity 180ms ease;
}

.support-center.is-open .support-center__backdrop {
  opacity: 1;
}

.support-center.is-open .support-center__drawer {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.support-center__header {
  display: grid;
  min-height: 104px;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 13px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(123, 151, 193, .1);
  background: #0e1a2d;
}

.support-center__mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(68, 184, 255, .22);
  border-radius: 8px;
  background: #142a43;
}

.support-center__mark::before {
  content: "";
  width: 23px;
  height: 23px;
  background: #50bdff;
  -webkit-mask: url("../assets/ui/messages-square.svg") center / contain no-repeat;
  mask: url("../assets/ui/messages-square.svg") center / contain no-repeat;
}

.support-center__heading {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.support-center__heading strong {
  color: #f6f9ff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.support-center__heading small {
  color: #8798b2;
  font-size: 12px;
  line-height: 1.35;
}

.support-center__close {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 8px;
  background: #142238;
  color: #93a5be;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.support-center__close span {
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("../assets/ui/x.svg") center / contain no-repeat;
  mask: url("../assets/ui/x.svg") center / contain no-repeat;
}

.support-center__close:hover,
.support-center__close:focus-visible {
  border-color: rgba(77, 186, 255, .35);
  background: #1a2c47;
  color: #fff;
  outline: 0;
}

.support-center__tabs {
  display: grid;
  min-height: 58px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px;
  border-bottom: 1px solid rgba(123, 151, 193, .1);
  background: #0e192b;
}

.support-center__tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: #7f91ab;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.support-center__tabs button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #36b5ff;
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity 160ms ease, transform 180ms ease;
}

.support-center__tabs button[aria-selected="true"] {
  color: #f4f8ff;
}

.support-center__tabs button[aria-selected="true"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.support-center__tabs button:focus-visible {
  outline: 2px solid #42b9ff;
  outline-offset: -5px;
}

.support-center__body {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: #28405f transparent;
}

.support-center__panel {
  padding: 22px 18px 36px;
}

.support-center__panel[hidden] {
  display: none;
}

.support-center__topics {
  display: grid;
  gap: 9px;
}

.support-topic {
  display: grid;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 157, 202, .12);
  border-radius: 8px;
  background: #121f33;
  color: #eef5ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.support-topic:hover,
.support-topic:focus-visible {
  border-color: rgba(66, 182, 255, .35);
  outline: 0;
  background: #162740;
  transform: translateY(-1px);
}

.support-topic > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.support-topic strong {
  font-size: 13px;
  font-weight: 850;
}

.support-topic small {
  color: #8192aa;
  font-size: 11px;
  line-height: 1.35;
}

.support-topic__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #183653;
}

.support-topic__icon::before {
  content: "";
  width: 21px;
  height: 21px;
  background: #55c1ff;
  -webkit-mask: var(--support-topic-icon) center / contain no-repeat;
  mask: var(--support-topic-icon) center / contain no-repeat;
}

.support-topic__icon.is-account { --support-topic-icon: url("../assets/ui/user-round.svg"); }
.support-topic__icon.is-payments { --support-topic-icon: url("../assets/ui/wallet-cards.svg"); }
.support-topic__icon.is-games { --support-topic-icon: url("../icons/category/slot.svg"); }

.support-topic > i,
.support-center__telegram i {
  width: 17px;
  height: 17px;
  background: #6f829d;
  -webkit-mask: url("../assets/ui/chevron-right.svg") center / contain no-repeat;
  mask: url("../assets/ui/chevron-right.svg") center / contain no-repeat;
}

.support-center__section-title {
  margin: 27px 0 10px;
  color: #eef4fd;
  font-size: 14px;
  font-weight: 850;
}

.support-faq {
  border-top: 1px solid rgba(124, 154, 198, .1);
}

.support-faq details {
  border-bottom: 1px solid rgba(124, 154, 198, .1);
}

.support-faq summary {
  display: grid;
  min-height: 56px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  color: #dce6f5;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.support-faq summary::-webkit-details-marker {
  display: none;
}

.support-faq summary span {
  width: 15px;
  height: 15px;
  background: #70839e;
  -webkit-mask: url("../assets/ui/chevron-right.svg") center / contain no-repeat;
  mask: url("../assets/ui/chevron-right.svg") center / contain no-repeat;
  transition: transform 160ms ease;
}

.support-faq details[open] summary span {
  transform: rotate(90deg);
}

.support-faq p {
  margin: -2px 30px 17px 0;
  color: #8495ac;
  font-size: 11px;
  line-height: 1.55;
}

.support-center__contact {
  min-height: 100%;
  padding-top: 60px;
  text-align: center;
}

.support-center__telegram-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 23px;
  place-items: center;
  border: 1px solid rgba(70, 183, 255, .22);
  border-radius: 50%;
  background: #142944;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}

.support-center__telegram-mark img {
  width: 38px;
  height: 38px;
}

.support-center__contact h3 {
  margin: 0;
  color: #f6f9ff;
  font-size: 22px;
  font-weight: 850;
}

.support-center__contact > p {
  max-width: 335px;
  margin: 12px auto 26px;
  color: #8798b0;
  font-size: 12px;
  line-height: 1.55;
}

.support-center__telegram {
  display: grid;
  width: 100%;
  min-height: 54px;
  grid-template-columns: 25px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #159be9;
  border-radius: 8px;
  background: #159be9;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.support-center__telegram:hover,
.support-center__telegram:focus-visible {
  border-color: #4dc1ff;
  outline: 0;
  background: #20aaf6;
  transform: translateY(-1px);
}

.support-center__telegram img {
  width: 23px;
  height: 23px;
}

.support-center__telegram i {
  background: rgba(255, 255, 255, .75);
}

.support-center__handle {
  display: block;
  margin-top: 12px;
  color: #687d99;
  font-size: 10px;
}

@media (max-width: 620px) {
  .support-center__drawer {
    top: 10px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: auto;
    border: 1px solid rgba(124, 157, 205, .14);
    border-radius: 8px;
  }

  .support-center__header {
    min-height: 88px;
    grid-template-columns: 40px minmax(0, 1fr) 38px;
    padding: 14px;
  }

  .support-center__mark {
    width: 40px;
    height: 40px;
  }

  .support-center__heading strong {
    font-size: 18px;
  }

  .support-center__tabs,
  .support-center__panel {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-center__backdrop,
  .support-center__drawer,
  .support-topic,
  .support-center__telegram {
    transition-duration: .01ms;
  }
}
