.bonuses-main {
  position: relative;
  padding-top: 40px;
  margin-bottom: 60px;
}

.bonuses-main__info {
  position: absolute;
  top: 0;
  left: 0;
}

.bonuses-main__free {
  width: fit-content;
  margin-bottom: 8px;
}

.bonuses-main__title {
  max-width: 285px;
  width: 100%;
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--orange-dark);
}

.bonuses-main__title span {
  height: 53px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--gradient-1);
  color: var(--white);
}

.bonuses-main__count {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px;
  border-radius: 12px;
  background-color: var(--blue-light);
}

html[data-theme="dark"] .bonuses-main__count {
  background-color: #1a3152;
}

.bonuses-main__count-text {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.5px;
  text-align: center;
  color: var(--blue);
}

.bonuses-main__count-people {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  background-color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 100%;
  color: var(--white);
}

.bonuses-wheel__wrapper {
  position: relative;
  max-height: 756px;
  overflow: hidden;
}

.bonuses-wheel__wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 30%,
    var(--white) 100%
  );
  transform: translateY(2px);
  pointer-events: none;
  z-index: 3;
}

html[data-theme="dark"] .bonuses-wheel__wrapper::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 30%, #16181d 100%);
}

.bonuses-wheel__stars-group {
  position: absolute;
}

.bonuses-wheel__stars-group.--group-1 {
  top: 204px;
  left: 0;
}

.bonuses-wheel__stars-group.--group-2 {
  top: 190px;
  right: 0;
}

.bonuses-wheel__stars-group img {
  animation: float-star 3s ease-in-out infinite;
}

.bonuses-wheel__stars-group .--small {
  width: 20px;
}

.bonuses-wheel__stars-group .--medium {
  width: 30px;
}

.bonuses-wheel__stars-group .--large {
  width: 50px;
}

.bonuses-wheel__stars-group.--group-1 .--small {
  animation-delay: 0s;
}

.bonuses-wheel__stars-group.--group-1 .--medium {
  animation-delay: 0.8s;
}

.bonuses-wheel__stars-group.--group-1 .--large {
  animation-delay: 1.6s;
}

.bonuses-wheel__stars-group.--group-2 .--small {
  animation-delay: 0.4s;
}

.bonuses-wheel__stars-group.--group-2 .--medium {
  animation-delay: 1.2s;
}

.bonuses-wheel__stars-group.--group-2 .--large {
  animation-delay: 2s;
}

@keyframes float-star {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-15px) scale(1.1);
    opacity: 0.8;
  }
}

.bonuses-wheel__stars-group.--group-1 .--small {
  position: absolute;
  top: 0;
  left: 0;
}

.bonuses-wheel__stars-group.--group-1 .--medium {
  position: absolute;
  top: 4px;
  left: 84px;
}

.bonuses-wheel__stars-group.--group-1 .--large {
  position: absolute;
  top: 84px;
  left: 0;
}

.bonuses-wheel__stars-group.--group-2 .--small {
  position: absolute;
  top: 0;
  right: 0;
}

.bonuses-wheel__stars-group.--group-2 .--medium {
  position: absolute;
  top: 4px;
  right: 87px;
}

.bonuses-wheel__stars-group.--group-2 .--large {
  position: absolute;
  top: 96px;
  right: 0;
}

.wheel-wrapper {
  position: relative;
  width: min(100%, 1108px);
  margin: 10px auto 0;
  aspect-ratio: 1 / 1;
}

.wheel-wrapper::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #36578f;
  opacity: 5%;
}

.wheel-wrapper::after {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("../../assets/lamps.svg") no-repeat;
  z-index: 1;
}

.wheel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    #3573ff 12%,
    #8bc4ff 30%,
    #c1e0ff 52%,
    #8bc4ff 73%,
    #3472ff 89%
  );
  z-index: 1;
}

.wheel {
  width: 100%;
  aspect-ratio: 1 / 1;
  transform-origin: center center;
  will-change: transform;
  animation: wheelSpin 30s linear infinite;
}

.wheel.is-spinning {
  animation: none;
}

@keyframes wheelSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wheel-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--bg-color);
  z-index: 10;
}

html[data-theme="dark"] .wheel-inner {
  background-color: #16181d;
}

.wheel-inner__img {
  position: absolute;
  top: -40px;
  z-index: -1;
  -webkit-user-drag: none;
  user-select: none;
}

.wheel-timer {
  position: absolute;
  top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-timer__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: #96a0bb;
}

.wheel-timer__time {
  font-size: 50px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #858fa9 0%, #d6e1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wheel-button {
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, #ffe69b 15%, #ffb574 80%);
  cursor: pointer;
  user-select: none;
}

.wheel-button:disabled {
  cursor: not-allowed;
}

.wheel-button__text {
  width: 240px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(
    360deg,
    var(--orange-dark) 12%,
    var(--yellow) 90%
  );
  font-size: 30px;
  font-weight: 700;
  line-height: 110%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 0.2s ease-in-out;
}

.wheel-button:not(:disabled):hover .wheel-button__text,
.wheel-button:not(:disabled):active .wheel-button__text {
  transform: scale(0.95);
}

.wheel-info {
  position: absolute;
  right: 90px;
  bottom: 90px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background-color: #fff2e6;
}

html[data-theme="dark"] .wheel-info {
  background: var(--orange-soft);
}

.bonuses-wheel__info {
  margin: 24px 0 60px;
}

.wheel-timer__mobile {
  display: none;
}

.bonuses-wheel__cond {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

.bonuses-wheel__cond-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bonuses-wheel__cond-left {
  display: flex;
  align-items: flex-start;
  column-gap: 12px;
}

.bonuses-wheel__cond-info h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.bonuses-wheel__cond-info p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray-dark);
}

html[data-theme="dark"] .bonuses-wheel__cond-info p {
  color: var(--gray);
}

.bonuses-wheel__cond-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  column-gap: 16px;
}

.bonuses-wheel__cond-arrow {
  cursor: pointer;
}

.bonuses-wheel__cond-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

html[data-theme="dark"] .bonuses-wheel__cond-bottom {
  border-top-color: #2a2e39;
}

.bonuses-wheel__cond-vk,
.bonuses-wheel__cond-tg {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  padding: 10px 10px 10px 16px;
  border-radius: 10px;
  background-color: var(--blue-light);
}

html[data-theme="dark"] .bonuses-wheel__cond-vk,
html[data-theme="dark"] .bonuses-wheel__cond-tg {
  background-color: #2a2e39;
}

.bonuses-wheel__cond-social {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.bonuses-wheel__cond-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.bonuses-wheel__cond-icon img {
  width: 100%;
}

.bonuses-wheel__cond-social h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.bonuses-wheel__cond-sub {
  padding: 0 19px;
}

.bonuses-wheel__cond-or {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray);
}

html[data-theme="dark"] .bonuses-wheel__cond-or {
  border-color: #2a2e39;
}

.bonuses-wheel__referral {
  height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 14px 16px;
  border-radius: 16px;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

.bonuses-wheel__referral-left {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.bonuses-wheel__referral-image {
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background-color: rgba(110, 184, 63, 0.1);
}

html[data-theme="dark"] .bonuses-wheel__referral-image {
  background-color: transparent;
}

.bonuses-wheel__referral-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 21px;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.bonuses-wheel__referral-info p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray-dark);
}

html[data-theme="dark"] .bonuses-wheel__referral-info p {
  color: var(--gray);
}

.bonuses-wheel__referral-button {
  padding: 0 24px;
}

.bonuses-wheel__prizes {
  margin-bottom: 60px;
}

.prizes-head {
  height: auto;
  margin-bottom: 20px;
}

.prizes-head h2 {
  height: 24px;
}

.prizes-head h2 img {
  position: relative;
  top: 7px;
  width: 30px;
  height: 30px;
}

.prizes-head p {
  margin: 8px 0 0 40px;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray-dark);
}

html[data-theme="dark"] .prizes-head p {
  color: var(--gray);
}

.prizes-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.prize-card {
  height: 225px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 12px;
  padding: 10px 10px 16px;
  border: 2px solid transparent;
  border-radius: 20px;
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  cursor: pointer;
}

.prize-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.prize-card.--prize-game,
.prize-card.--prize-discount {
  border-color: #d5edc6;
  background-color: #f1ffe7;
}

.prize-card.--prize-key {
  border-color: #d7e7ff;
  background-color: #eef5ff;
}

.prize-card.--prize-secret {
  border-color: #fae8cc;
  background: radial-gradient(#fff8ed 0%, #fff0d8 31%);
}

.prize-card.--prize-bonus {
  border-color: #f1dcfb;
  background-color: #f6eeff;
}

html[data-theme="dark"] .prize-card {
  border: 0;
  background: #1e222b;
}

.prize-image {
  width: 100%;
  height: 110px;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
}

.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-card.--prize-secret .prize-image img,
.prize-card.--prize-bonus .prize-image img {
  object-fit: contain;
}

.prize-title {
  margin: 0 6px 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.prize-description {
  margin: 0 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: var(--gray-dark);
}

html[data-theme="dark"] .prize-description {
  color: var(--gray);
}

.prize-info {
  display: flex;
  align-items: center;
  column-gap: 8px;
  margin: 0 6px;
}

.prize-card.--prize-key .prize-info {
  justify-content: space-between;
}

.prize-price {
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--green-light);
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--white);
}

.prize-old-price {
  font-size: 12px;
  font-weight: 600;
  line-height: 100%;
  text-decoration: line-through;
  color: var(--gray);
}

.prize-key {
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  background-color: var(--blue);
}

.prize-key img,
.prize-secret img {
  width: 18px;
}

.prize-secret {
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--orange-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--white);
}

.prize-discount {
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--green-light);
}

.prize-bonus {
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0 8px;
  border-radius: 6px;
  background-color: var(--pink);
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--white);
}

@media (max-width: 767px) {
  .bonuses-main {
    padding-top: 0;
    margin-bottom: 40px;
  }

  .bonuses-main__info {
    position: static;
    margin-bottom: 24px;
  }

  .bonuses-main__free {
    max-width: 164px;
    height: 42px;
    flex-direction: row;
    margin-bottom: 22px;
    border-radius: 6px;
  }

  .bonuses-main__title {
    max-width: unset;
    font-size: 24px;
  }

  .bonuses-main__title span {
    height: 36px;
    padding: 0 12px;
  }

  .bonuses-main__count {
    max-width: 128px;
    height: 42px;
    display: flex;
    align-items: center;
    border-radius: 6px;
  }

  .bonuses-main__count-text {
    margin-bottom: 0;
    font-size: 12px;
    text-align: left;
  }

  .bonuses-main__count-people {
    width: auto;
    height: 18px;
    flex-direction: row-reverse;
    column-gap: 2px;
    padding: 0 5.5px;
    border-radius: 5px;
    font-size: 12px;
  }

  .bonuses-main__count-people img {
    width: 12px;
    height: 12px;
  }

  .bonuses-wheel__wrapper {
    max-height: clamp(250px, 71.8vw, 542px);
    margin: 0 calc(var(--mobile-gutter) * -1);
    overflow: hidden;
  }

  .bonuses-wheel__wrapper::after {
    height: clamp(150px, 42vw, 320px);
  }

  .bonuses-wheel__stars-group {
    display: none;
  }

  .wheel-wrapper {
    margin-top: 5px;
  }

  .wheel-wrapper::before {
    top: -5px;
  }

  .wheel-wrapper::after {
    top: -5px;
    left: -5px;
    background-size: calc(100% + 10px);
  }

  .wheel-inner {
    width: auto;
    height: clamp(160px, 44.44vw, 340px);
    aspect-ratio: 1 / 1;
  }

  .wheel-inner__img {
    width: clamp(26px, 7.22vw, 55px);
    top: -10%;
  }

  .wheel-timer {
    display: none;
  }

  .wheel-button {
    width: auto;
    height: clamp(140px, 38.89vw, 298px);
    aspect-ratio: 1 / 1;
  }

  .wheel-button__text {
    width: auto;
    height: clamp(120px, 33.33vw, 255px);
    aspect-ratio: 1 / 1;
    font-size: clamp(14px, 3.89vw, 30px);
  }

  .wheel-info {
    top: calc(100% + 16px);
    right: -90px;
  }

  .bonuses-wheel__info {
    margin: 30px 0 40px;
  }

  .wheel-timer__mobile {
    position: relative;
    display: block;
    margin: 16px 0 30px;
  }

  .wheel-timer__mobile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wheel-timer__mobile-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -0.5px;
    color: #96a0bb;
  }

  .wheel-timer__mobile-time {
    font-size: 40px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #858fa9 0%, #d6e1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .wheel-info__mobile {
    position: absolute;
    right: 0;
    top: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background-color: #fff2e6;
    transform: translateY(-50%);
  }

  html[data-theme="dark"] .wheel-info__mobile {
    background: var(--orange-soft);
  }

  .bonuses-wheel__cond {
    position: relative;
    margin-bottom: 12px;
    padding: 12px 12px 66px;
  }

  .bonuses-wheel__cond-left {
    column-gap: 10px;
  }

  .bonuses-wheel__cond-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .bonuses-wheel__cond-info p {
    font-size: 15px;
  }

  .bonuses-wheel__cond-right .success-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100% - 24px);
    height: 38px;
    font-size: 15px;
  }

  .bonuses-wheel__cond-arrow {
    display: none;
  }

  .bonuses-wheel__cond-bottom {
    flex-direction: column;
    column-gap: 0;
    row-gap: 10px;
    margin-top: 0;
    padding-top: 12px;
    border-top: 0;
  }

  .bonuses-wheel__cond-vk,
  .bonuses-wheel__cond-tg {
    width: 100%;
    height: 60px;
    padding: 5px 5px 5px 12px;
  }

  .bonuses-wheel__cond-icon {
    width: 30px;
    height: 30px;
  }

  .bonuses-wheel__cond-social h3 {
    font-size: 16px;
  }

  .bonuses-wheel__cond-sub {
    padding: 0 14px;
  }

  .bonuses-wheel__cond-or {
    width: auto;
    height: auto;
    border: 0;
  }

  .bonuses-wheel__referral {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    column-gap: 0;
    row-gap: 16px;
    padding: 12px;
  }

  .bonuses-wheel__referral-left {
    align-items: flex-start;
  }

  .bonuses-wheel__referral-info p {
    font-size: 15px;
  }

  .bonuses-wheel__referral-button {
    width: 100%;
  }

  .prizes-head {
    margin-bottom: 16px;
  }

  .prizes-head h2 {
    height: 18px;
    font-size: 18px;
  }

  .prizes-head h2 img {
    top: 4px;
  }

  .prizes-head p {
    font-size: 15px;
  }

  .prizes-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .prize-card {
    height: 200px;
    padding: 6px 6px 16px;
  }

  .prize-image {
    height: 100px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .prize-title {
    margin: 0 6px 4px;
    font-size: 14px;
  }

  .prize-description {
    font-size: 12px;
  }

  .prize-info {
    column-gap: 5px;
  }
}

@media (max-width: 359.98px) {
  .wheel-timer__mobile-wrapper {
    margin-right: 30px;
  }

  .wheel-timer__mobile-text {
    font-size: 14px;
  }

  .wheel-timer__mobile-time {
    font-size: 30px;
  }
}
