body.modal-lock {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.modal--active {
  visibility: visible;
  opacity: 1;
}

.modal__overlay {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
  background-color: rgba(31, 41, 55, 0.6);
}

.modal__dialog {
  position: relative;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background-color: var(--bg-color);
}

.modal[data-modal="change-avatar"] .modal__dialog {
  max-width: 600px;
}

.modal[data-modal="steam-gift"] .modal__dialog,
.modal[data-modal="order-history"] .modal__dialog {
  max-width: 485px;
}

html[data-theme="dark"] .modal__dialog {
  background-color: #17191e;
}

.modal__body {
  padding: 30px 20px;
  overflow-y: auto;
  scrollbar-width: none;
}

.modal[data-modal="steam-gift"] .modal__body,
.modal[data-modal="order-history"] .modal__body {
  padding: 35px 20px 30px;
}

.modal__close {
  position: absolute;
  top: 30px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background-color: #f1f3f5;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  z-index: 1;
}

html[data-theme="dark"] .modal__close {
  background-color: #2c3242;
}

.modal__close:hover {
  background-color: var(--blue);
}

.modal__close svg path {
  transition: stroke 0.3s ease-in-out;
}

.modal__close:hover svg path {
  stroke: var(--white);
}

.modal__header {
  margin-bottom: 20px;
}

.modal__header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: #1f2937;
}

html[data-theme="dark"] .modal__header h2 {
  color: var(--white);
}

.modal__logo {
  width: 118px;
  height: 40px;
  margin: 0 auto;
}

.modal__logo img {
  width: 100%;
}

.modal__content h2 {
  margin: 0 auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--text-dark);
}

html[data-theme="dark"] .modal__content h2 {
  color: var(--white);
}

.modal__content h2 span {
  color: var(--orange-dark);
}

.modal[data-modal="win-bonuses"] .modal__content h2 span,
.modal[data-modal="win-key"] .modal__content h2 span,
.modal[data-modal="win-secret"] .modal__content h2 span {
  display: block;
}

.modal__description {
  margin-top: 8px;
}

.modal__description > p {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--gray-dark);
}

.modal[data-modal="change-avatar"] .modal__description > p {
  font-size: 16px;
}

.modal__description > p:last-child {
  margin-bottom: 0;
}

.modal__description > p a {
  color: var(--blue);
  text-decoration: none;
}

.modal__description .modal__button {
  margin: 0 auto;
}

.modal__img {
  position: relative;
  max-width: 448px;
  width: 100%;
  height: 240px;
  margin: 0 auto;
}

.modal[data-modal="win-bonuses"] .modal__img,
.modal[data-modal="win-key"] .modal__img,
.modal[data-modal="win-secret"] .modal__img {
  margin-top: -20px;
}

.modal__prize-art {
  -webkit-mask-image: url("/assets/modal/win-prize-mask.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% auto;
  mask-image: url("/assets/modal/win-prize-mask.svg");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: 100% auto;
}

.modal__prize-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.modal__prize-star {
  position: absolute;
  width: var(--star-width);
  height: var(--star-height);
  background: url("/assets/modal/win-prize-star.svg") no-repeat center / 100% 100%;
  opacity: 0.35;
  transform: translate(-50%, -50%) scale(0.72);
}

.modal--active .modal__prize-star {
  animation: modalPrizeStarTwinkle 1.8s ease-in-out infinite;
}

.modal__prize-star--1 {
  --star-width: 2.5%;
  --star-height: 5%;
  top: 7.2%;
  left: 6.2%;
  animation-delay: 0s;
}

.modal__prize-star--2 {
  --star-width: 4.2%;
  --star-height: 7.8%;
  top: 10%;
  left: 18.4%;
  animation-delay: -0.55s;
}

.modal__prize-star--3 {
  --star-width: 7%;
  --star-height: 12.8%;
  top: 33%;
  left: 8.2%;
  animation-delay: -1.1s;
}

.modal__prize-star--4 {
  --star-width: 4.2%;
  --star-height: 7.8%;
  top: 10.8%;
  left: 78.1%;
  animation-delay: -0.35s;
}

.modal__prize-star--5 {
  --star-width: 2.5%;
  --star-height: 5%;
  top: 8.5%;
  left: 90.7%;
  animation-delay: -0.9s;
}

.modal__prize-star--6 {
  --star-width: 7%;
  --star-height: 12.8%;
  top: 36.7%;
  left: 88.4%;
  animation-delay: -1.45s;
}

@keyframes modalPrizeStarTwinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.72);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal[data-modal="wheel"] .modal__img {
  max-width: unset;
  width: 500px;
  height: 254px;
  margin: 10px -20px -10px;
  overflow: hidden;
}

.modal__img-inner {
  position: absolute;
}

.modal__img-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: url("/assets/wheel-spin.png") no-repeat center;
  background-size: 100%;
  transform: translate(-50%, -50%);
}

.modal__img-arrow {
  position: absolute;
  top: calc(50% - 90px);
  left: 50%;
  width: 26px;
  height: 35px;
  background: url("/assets/wheel/wheel-arrow.svg") no-repeat center;
  background-size: 100%;
  transform: translate(-50%, -50%);
}

.modal[data-modal="wheel"] .modal__img img {
  width: 80%;
  animation: wheelSpin 20s linear infinite;
}

@keyframes wheelSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.modal__img-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(
    180deg,
    rgb(255, 255, 255, 0) 0%,
    var(--bg-color) 100%
  );
}

html[data-theme="dark"] .modal__img-bg {
  background: linear-gradient(180deg, rgb(255, 255, 255, 0) 0%, #17191e 100%);
}

.modal__content .modal__img img {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
}

.modal[data-modal="wheel"] .modal__img img {
  object-fit: contain;
}

.modal__content .modal__icon {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.modal__content .modal__icon--green {
  background-color: var(--lime);
}

.modal__content .modal__icon--orange {
  background-color: var(--orange-light);
}

.modal__content .modal__icon--red {
  background-color: var(--red-light);
}

.modal__content .modal__icon--blue {
  background-color: var(--blue-light);
}

html[data-theme="dark"] .modal__content .modal__icon {
  background-color: var(--field);
}

.modal__content .modal__icon--spinner {
  border-radius: 0;
}

html[data-theme="dark"] .modal__content .modal__icon--spinner {
  background-color: transparent;
}

.spinner {
  width: 56px;
  height: 56px;
  position: relative;
}

.spinner svg {
  width: 100%;
  height: 100%;
  background-color: unset;
}

.spinner .spinner-bg {
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 8;
}

.spinner .spinner-active {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 75.4;
  animation: spin 2s linear infinite;
  transform-origin: center;
}

@keyframes spin {
  0% {
    stroke-dashoffset: 75.4;
    transform: rotate(0deg);
  }
  100% {
    stroke-dashoffset: 75.4;
    transform: rotate(360deg);
  }
}

.modal__inputs {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.modal__input {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.modal__input-heading {
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray-dark);
}

.modal__input-body {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 8px;
  height: 50px;
  padding: 8px 16px;
  border-radius: 10px;
  background-color: var(--gray-light);
}

html[data-theme="dark"] .modal__input-body {
  background-color: #2c3242;
}

.modal__input-body:focus-within {
  box-shadow: var(--focus-ring);
}

.modal__input-icon {
  width: 20px;
  display: flex;
  justify-content: center;
  order: 1;
  opacity: 0.4;
  transition: opacity 0.3s ease-in-out;
}

html[data-theme="dark"] .modal__input-icon {
  filter: brightness(0) invert(1);
}

.modal__input-body input:not(:placeholder-shown) ~ .modal__input-icon {
  opacity: 1;
}

.modal__input-body input {
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  order: 2;
}

.modal__input-body input::placeholder {
  color: var(--gray);
}

.modal__game {
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  background-color: #f8f9fb;
}

html[data-theme="dark"] .modal__game {
  background-color: #2c3242;
}

.modal__game--with-badge {
  margin-top: 36px;
}

.modal__game-badge {
  position: absolute;
  top: -16px;
  right: 50px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--green-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--white);
}

.modal__game-badge--success {
  background-color: var(--green-light);
  color: var(--white);
}

.modal__game-badge--pending {
  background-color: #fffbe3;
  color: #d7a436;
}

.modal__game-badge--cancel {
  background-color: #ffebeb;
  color: #e32d2d;
}

html[data-theme="dark"] .modal__game-badge--pending {
  background-color: #37352d;
}

html[data-theme="dark"] .modal__game-badge--cancel {
  background-color: #462828;
}

.modal__game-image {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.modal__game-body {
  display: flex;
  flex-direction: column;
  margin-right: 12px;
}

.modal__game-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.modal__game-type {
  font-size: 14px;
  font-weight: 600;
  line-height: 10px;
  letter-spacing: -0.5px;
  color: var(--gray);
  white-space: nowrap;
}

.modal__game-prices {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  text-align: right;
}

.modal__game-prices strong {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 100%;
  letter-spacing: -0.5px;
  text-align: right;
  color: var(--text-dark);
  white-space: nowrap;
}

.modal__game-prices del {
  font-size: 14px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: -0.5px;
  text-decoration: line-through;
  color: var(--gray);
}

.modal__list {
  max-width: 380px;
  margin: 16px auto 0;
  padding: 0;
  list-style-type: none;
}

.modal[data-modal="wheel"] .modal__list {
  max-width: unset;
}

.modal__list--square {
  max-width: 384px;
  margin-top: 20px;
}

.modal[data-modal="steam-gift"] .modal__list--square,
.modal[data-modal="order-history"] .modal__list--square {
  max-width: unset;
}

.modal__list-item {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.modal__list-item:not(:last-child) {
  margin-bottom: 12px;
}

.modal[data-modal="steam-gift"]
  .modal__list--square
  .modal__list-item:not(:last-child),
.modal[data-modal="order-history"]
  .modal__list--square
  .modal__list-item:not(:last-child) {
  margin-bottom: 10px;
}

.modal__list--square .modal__list-item {
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 12px;
}

.modal__list-item span {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--orange-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--white);
}

.modal__list--square .modal__list-item span {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--blue);
  font-size: 15px;
  color: var(--white);
}

.modal[data-modal="steam-gift"] .modal__list-item span,
.modal[data-modal="order-history"] .modal__list-item span {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

html[data-theme="dark"] .modal__list--square .modal__list-item span {
  background-color: #2c3242;
  color: #a0a8b5;
}

.modal__list--square .modal__list-item--inactive span {
  background-color: #eef0f3;
  color: #8a94a6;
}

.modal__list-item__content {
  flex: 1;
}

.modal__list-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.modal[data-modal="steam-gift"] .modal__list-item h3,
.modal[data-modal="order-history"] .modal__list-item h3 {
  margin-bottom: 0;
  padding-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 100%;
}

.modal__list-item p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.modal__list--square .modal__list-item p {
  line-height: 120%;
  color: var(--gray-dark);
}

.modal__list-item p strong {
  font-weight: 700;
  color: var(--orange-dark);
}

.modal__list-item__link {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  column-gap: 12px;
  margin-top: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 11px;
  background-color: #f8f9fb;
}

html[data-theme="dark"] .modal__list-item__link {
  background-color: #2c3242;
}

.modal__list-item__link img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.modal__list-item__link a:not(.modal__list-item__button) {
  font-size: 12px;
  font-weight: 700;
  line-height: 100%;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}

.modal__list-item__button {
  height: 26px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.modal__list-item__input {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  column-gap: 12px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 13px;
  background-color: #f1f3f5;
}

html[data-theme="dark"] .modal__list-item__input {
  background-color: #2c3242;
}

.modal__list-item__input:focus-within {
  box-shadow: var(--focus-ring);
}

.modal__list-item__input input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background-color: unset;
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  color: #757575;
  order: 2;
}

html[data-theme="dark"] .modal__list-item__input input {
  color: var(--white);
}

.modal__list-item__input input::placeholder {
  color: #757575;
}

html[data-theme="dark"] input::placeholder {
  color: var(--white);
}

.modal__list-item__input img {
  order: 1;
  opacity: 0.4;
  transition: opacity 0.3s ease-in-out;
}

html[data-theme="dark"] .modal__list-item__input img {
  filter: brightness(0) invert(1);
}

.modal__list-item__input input:not(:placeholder-shown) ~ img {
  opacity: 1;
}

.modal__payments {
  margin-top: 20px;
}

.modal__payments-title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 100%;
  letter-spacing: 0%;
  color: #8a94a6;
}

.modal__payments-list {
  display: grid;
  row-gap: 12px;
}

.modal__payment {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 8px;
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  background-color: #f4f5f7;
  transition: border-color 0.3s ease-in-out;
}

html[data-theme="dark"] .modal__payment {
  background-color: #2a2e39;
}

.modal__payment:hover,
.modal__payment--active {
  border-color: var(--green-light);
}

.modal__payment-left {
  display: flex;
  align-items: center;
  column-gap: 16px;
}

.modal__payment-logo {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background-color: var(--bg-color);
}

.modal__payment[data-payment="sbp"] .modal__payment-logo img {
  width: 25px;
}

.modal__payment[data-payment="mir"] .modal__payment-logo img {
  width: 34px;
}

.modal__payment[data-payment="crypto"] .modal__payment-logo img {
  width: 32px;
}

.modal__payment-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.modal__payment-name {
  height: 20px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -1%;
  color: var(--text-dark);
}

.modal__payment-commission {
  height: 15px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -1%;
  color: #76829b;
}

.modal__payment-right {
  display: flex;
  align-items: center;
  column-gap: 18px;
}

.modal__payment-badge {
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--white);
}

.modal__payment-check {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background-color: #e2e4e7;
}

html[data-theme="dark"] .modal__payment-check {
  background-color: var(--bg-color);
}

.modal__payment--active .modal__payment-check {
  background-color: var(--green-light);
}

.modal__payment-check img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.modal__payment--active .modal__payment-check img {
  opacity: 1;
}

.modal__socials {
  margin-top: 20px;
}

.modal__social {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 10px 16px;
  border-radius: 10px;
  background-color: var(--blue-light);
}

html[data-theme="dark"] .modal__social {
  background-color: #2c3242;
}

.modal__social-info {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.modal__social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.modal__social-icon img {
  width: 100%;
}

.modal__social-info h3 {
  max-width: 150px;
  width: 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.modal__social-sub {
  width: 150px;
  padding: 0 22px;
}

.modal__social-or {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--gray);
}

.modal__steps {
  margin-top: 20px;
}

.modal[data-modal="activation-info"] .modal__steps {
  margin-top: 16px;
}

.modal__steps h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--text-dark);
}

html[data-theme="dark"] .modal__steps h3 {
  color: var(--white);
}

.modal__steps ul {
  position: relative;
  max-width: 215px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style-type: none;
}

.modal[data-modal="activation-info"] .modal__steps ul,
.modal[data-modal="order-history"] .modal__steps ul {
  max-width: 225px;
}

.modal__steps ul::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 2px;
  height: calc(100% - 30px);
  background-image: linear-gradient(
    to bottom,
    var(--blue) 0%,
    var(--blue) 50%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 2px 9.2px;
  background-repeat: repeat-y;
}

.modal__steps ul li {
  font-size: 15px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.modal__steps ul li:not(:last-child) {
  margin-bottom: 12px;
}

.modal__steps ul li::before {
  content: "";
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background-color: var(--blue);
}

.modal__check {
  margin: 16px 0 0;
  padding: 0;
  list-style-type: none;
}

.modal__check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.modal__check-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.5px;
  color: var(--gray);
}

.modal__check-value {
  font-size: 15px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: -0.5px;
  text-align: right;
  color: var(--text-dark);
}

.modal__copy {
  margin-top: 20px;
}

.modal__copy h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 0;
  color: #8a94a6;
  text-transform: uppercase;
}

html[data-theme="dark"] .modal__copy h3 {
  color: var(--white);
}

.modal__copy-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  align-items: stretch;
  column-gap: 10px;
}

.modal__copy-wrapper .modal__key-info {
  margin-bottom: 0;
}

.modal__copy-wrapper .modal__key-info--single {
  flex: 1;
  min-width: 0;
  grid-template-columns: 1fr;
}

.modal__copy-wrapper .modal__key-info span {
  width: 94px;
}

.modal[data-modal="order-history"]
  .modal__key-info:not(.modal__key-info--single) {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}

.modal[data-modal="order-history"]
  .modal__key-info:not(.modal__key-info--single)
  span {
  width: auto;
  min-width: 0;
  padding: 0 clamp(4px, 1.4vw, 12px);
  overflow: hidden;
  font-size: clamp(12px, 3.4vw, 18px);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modal__copy-wrapper .modal__key-info--single span {
  min-height: 46px;
  height: auto;
  width: auto;
  justify-content: flex-start;
  line-height: 120%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.modal__copy-wrapper .modal__button {
  width: auto;
  min-width: 0;
}

.modal__copy--full-width-button .modal__copy-wrapper {
  grid-template-columns: 1fr;
  row-gap: 10px;
}

.modal__copy--full-width-button .modal__copy-wrapper .modal__button {
  width: 100%;
}

.modal__badge {
  display: flex;
  align-items: center;
  column-gap: 8px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border-radius: 7px;
  background-color: var(--gray-light);
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--gray);
}

.modal[data-modal="order-history"] .modal__badge {
  margin-top: 8px;
}

.modal[data-modal="order-history"] .modal__steps ul li {
  position: relative;
  padding-left: 18px;
}

.modal[data-modal="order-history"] .modal__steps ul li::before {
  position: absolute;
  top: 3px;
  left: 0;
  margin-right: 0;
}

.modal[data-modal="order-history"] .modal__check-value {
  max-width: 58%;
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .modal__badge {
  background-color: #2c3242;
}

.modal__avatar {
  margin-top: 12px;
}

.modal__avatar-current {
  width: 198px;
  height: 198px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
}

.modal__avatar-current img {
  width: 166px;
  object-fit: contain;
}

.modal__avatar-current img.modal__avatar-image--padded {
  width: 198px;
}

.modal__avatar-list {
  position: relative;
}

.modal__avatar-list::before,
.modal__avatar-list::after {
  content: "";
  position: absolute;
  top: 0;
  width: 230px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.modal__avatar-list::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

html[data-theme="dark"] .modal__avatar-list::before {
  background: linear-gradient(90deg, #17191e 0%, rgba(255, 255, 255, 0) 100%);
}

.modal__avatar-list::after {
  right: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
}

html[data-theme="dark"] .modal__avatar-list::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #17191e 100%);
}

.modal__avatar-list .swiper-slide {
  width: 70px;
}

.modal__avatar-list__item {
  min-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 6px;
  cursor: pointer;
}

.modal__avatar-list__item img {
  width: 58px;
}

.modal__avatar-list__item img.modal__avatar-image--padded {
  width: 70px;
}

.modal__avatar-list__item span {
  font-size: 13px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--green-light);
}

.modal__avatar-arrows {
  top: 14px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  pointer-events: none;
  z-index: 3;
}

html[data-theme="dark"] .modal__avatar-arrows {
  background-color: transparent;
}

.modal__avatar-arrows button {
  width: 40px;
  pointer-events: all;
  opacity: 1;
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

.modal__avatar-arrows button:not(.swiper-button-disabled):hover:first-of-type {
  transform: translateX(-10px);
}

.modal__avatar-arrows button:not(.swiper-button-disabled):hover:last-of-type {
  transform: translateX(10px);
}

.modal__avatar-arrows button:first-of-type {
  left: 15px;
}

.modal__avatar-arrows button:last-of-type {
  right: 15px;
}

.modal__avatar-arrows button.swiper-button-disabled {
  opacity: 0;
}

.modal__footer {
  margin-top: 20px;
}

.modal__key {
  margin-top: 16px;
}

.modal[data-modal="win-key"] .modal__key {
  margin-top: 18px;
}

.modal__key p {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--text-dark);
}

.modal__key-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2px;
  margin-bottom: 10px;
}

.modal__key-info span {
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  background-color: var(--gray-light);
  font-size: 18px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray);
}

html[data-theme="dark"] .modal__key-info span {
  background-color: #2c3242;
}

.modal__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 12px;
}

.modal__button {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  font-size: 18px;
}

.modal[data-modal="activation-info"] .modal__button {
  border-radius: 10px;
  font-size: 16px;
}

.modal[data-modal="order-history"] .modal__button.custom-button--green {
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
}

.modal__footer small {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--gray);
}

@media (max-width: 767px) {
  .modal__copy-wrapper {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .modal__copy-wrapper .modal__button {
    width: 100%;
  }

  .modal[data-modal="wheel"] .modal__dialog {
    max-width: 400px;
  }

  .modal[data-modal="wheel"] .modal__body {
    padding: 20px 16px;
    overflow-x: hidden;
  }

  .modal[data-modal="wheel"] .modal__close {
    top: 20px;
    right: 16px;
  }

  .modal[data-modal="wheel"] .modal__header {
    margin-bottom: 18px;
  }

  .modal[data-modal="wheel"] .modal__content h2 {
    font-size: 18px;
  }

  .modal[data-modal="wheel"] .modal__description > p {
    margin: 0 0 8px;
    font-size: 15px;
  }

  .modal[data-modal="wheel"] .modal__list {
    max-width: unset;
    margin-top: 18px;
  }

  .modal[data-modal="wheel"] .modal__list-item {
    align-items: flex-start;
  }

  .modal[data-modal="wheel"] .modal__list-item:not(:last-child) {
    margin-bottom: 16px;
  }

  .modal[data-modal="wheel"] .modal__list-item p {
    font-size: 15px;
  }

  .modal[data-modal="wheel"] .modal__img {
    max-width: 336px;
    width: 100%;
    height: 224px;
    margin: 10px auto;
  }

  .modal[data-modal="wheel"] .modal__button {
    height: 50px;
    border-radius: 10px;
    font-size: 16px;
  }

  .modal[data-modal="wheel"] .modal__footer {
    margin-top: 18px;
  }

  .modal[data-modal="wheel"] .modal__footer small {
    font-size: 12px;
    line-height: 120%;
  }
}
