html.scroll-stop {
  overflow: hidden;
}

.deal-wheel {
  --size: clamp(250px, 65vmin, 600px);
  --lg-hs: 0 3%;
  --lg-stop: 50%;
  --lg: linear-gradient(hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
      hsl(var(--lg-hs) 20%) var(--lg-stop) 100%);

  position: relative;
  display: grid;
  grid-gap: calc(var(--size) / 20);
  align-items: center;
  grid-template-areas:
    "spinner"
    "trigger";
  font-family: "Girassol", sans-serif;
  font-size: calc(var(--size) / 21);
  line-height: 1;
  text-transform: lowercase;
  margin-top: 100px;
}

.wheel-rise {
  text-align: center;
}

.pulse-animation {
  animation: pulse 1s ease-out;
  animation-iteration-count: 2;
  animation-fill-mode: forwards;
}

.wheel-table {
  margin-top: 20px;
}

.wheel-table__checkbox {
  cursor: pointer;
  height: 25px;
  width: 24px !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0 !important;
}

.wheel-table__text {
  cursor: pointer;
  transition: color 0.5s ease;
}

.wheel-table__block:hover .wheel-table__text {
  color: #ffd700;
}

.wheel-table__text.gold {
  color: #ffd700 !important;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5) !important;
}

.wheel-table__title {
  text-align: center;
  margin-bottom: 10px;
  font-size: 33px;
}

.wheel-table__blocks {
  display: flex;
  flex-wrap: wrap;
  background:
    linear-gradient(135deg, hsla(55, 85%, 89%, 1) 0%,
      hsla(56, 100%, 50%, 1) 13%,
      hsl(73.27deg 100% 69.9%) 37%,
      hsla(56, 100%, 50%, 1) 59%,
      hsla(55, 85%, 89%, 1) 73%,
      hsla(56, 100%, 50%, 1) 85%,
      hsla(54, 100%, 75%, 1) 100%);
  padding: 15px;
  border-radius: 20px;
  width: 330px;
  margin: 0 auto;
}

.wheel-table__inner {
  display: flex;
  flex-wrap: wrap;
  border-radius: 17px;
  overflow: hidden;
  flex-grow: 1;
}

.wheel-table__block {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 200ms ease-out;
  flex-grow: 1;
  cursor: pointer;
}

.wheel-flex {
  display: flex;
  flex-direction: column;
}

/* Фон секторов */

.wheel-table__block:nth-child(7n + 1) {
  background-color: #d80400;
}

.wheel-table__block:nth-child(7n + 2) {
  background-color: #ff5b5b;
}

.wheel-table__block:nth-child(7n + 3) {
  background-color: #7e61ff;
}

.wheel-table__block:nth-child(7n + 4) {
  background-color: #95e1d3
}

.wheel-table__block:nth-child(7n + 5) {
  background-color: #b3b3f4;
}

.wheel-table__block:nth-child(7n + 6) {
  background-color: #c9c9c9;
}

.wheel-table__block:nth-child(7n + 7) {
  background-color: #f4b3b3;
}

.wheel-table__checkbox:checked+label img {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}



.wheel-table__block div:last-child {
  font-size: 20px;
  user-select: none;
  font-weight: 600;
  color: #fff;
}

.deal-wheel>* {
  grid-area: spinner;
}

.deal-wheel .btn-spin {
  grid-area: trigger;
  justify-self: center;
}

.wheel__desc-block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 0 34px;
}

@media (max-width: 1630px) {
  .wheel-table {
    width: 100%;
    padding: 0 20px;
  }

  .wheel-table table tbody {
    width: 100%;
  }

  .wheel-table table tr {
    justify-content: space-between;
    width: 100%;
  }
}

.fortunewheel-bg {
  position: relative;
}

@media (max-width: 1090px) {
  .wheel__desc-block {
    display: block;
    padding: 0;
  }

  .modal__content {
    width: 80%;
    max-width: 60%;
  }
}

@media (max-width: 680px) {
  .wheel-table__block {
    width: 100%;
  }

  .btn-spin {
    font-size: 16px !important;
  }

  .btn-container {
    width: 100px;
    height: 100px;
  }

  .wheel-table__block div:last-child {
    font-size: 18px;
  }
}

.wheel-text,
.wheel-text-info {
  margin-top: 70px;
  text-align: center;
}

.wheel-text h3,
.wheel-text-info h3 {
  font-size: 33px;
}

.wheel-text h1,
.wheel-text-info h1 {
  font-size: 70px;
  text-align: center;
}

.wheel-text p,
.wheel-text-info p {
  font-size: 22px;
}

.wheel-bg {
  position: absolute;
  text-align: center;
  width: var(--size);
  height: var(--size);
  scale: 1.1;
}

.wheel-block {
  position: relative;
}

.icon__money.spin {
  animation: spin 1s linear;
}

@keyframes spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.spinner {
  transition: transform 1s ease-out;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-areas: "spinner";
  width: var(--size);
  height: var(--size);
  transform: rotate(calc(var(--rotate, 25) * 1deg));
  border-radius: 50%;
  box-shadow: inset 0 0 0 calc(var(--size) / 40) hsl(0deg 0% 0% / 0.06);
}

.spinner.is-spinning {
  animation: start-rotate 4s infinite;
}

@media only screen and (max-width: 600px) {
  .spinner.is-spinning {
    animation: none;
  }
}

.spinner * {
  grid-area: spinner;
}

.prize {
  position: relative;
  display: flex;
  align-items: center;
  width: 50%;
  height: 50%;
  transform-origin: center right;
  transform: rotate(var(--rotate));
  user-select: none;
  background: url(../img/betnew/stars.png) no-repeat;
  background-position: 50%;
}

.icon__money {
  max-width: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  margin-left: 10px;
}

.text__wheel {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  width: calc(var(--size) / 4);
  text-align: center;
  transform: rotate(180deg);
  font-size: 22px;
}

.cap {
  --cap-size: calc(var(--size) / 4);
  position: relative;
  justify-self: center;
  width: var(--cap-size);
  height: var(--cap-size);
}

/* Hide select dropdown from SVG import file */
.cap select {
  display: none;
}

.cap svg {
  width: 100%;
}

.ticker {
  position: absolute;
  top: 43%;
  right: -65px;
  width: 140px;
  height: 140px;
  transform: rotate(90deg);
  background: url(../img/tooth.png) no-repeat;
}

.btn-spin {
  color: hsl(0deg 0% 100%);
  background: var(--lg);
  border: none;
  font-family: inherit;
  font-size: 1em;
  line-height: inherit;
  text-transform: uppercase;
  padding: 0.9rem 2rem 1rem;
  cursor: pointer;
  transition: opacity 200ms ease-out;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transition: .3s;
  align-items: center;
  justify-content: center;
  display: flex;
  background: url(../img/betnew/spin-yellow.png), no-repeat;
  background-size: cover;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 600;
}

.btn-spin:hover {
  transform: scale(1.1);
}

.btn-spin:focus {
  outline-offset: 2px;
}

.btn-spin:active {
  transform: translateY(1px);
}

.btn-spin:disabled {
  cursor: progress;
  opacity: 0.25;
}

.wheel-freespins {
  padding: 0 10px;
}

/* Spinning animation */
/* .is-spinning .spinner {
  transition: transform 12s cubic-bezier(0.1, -0.01, 0, 1);
} */

.is-spinning .spinner {
  transition: transform 12s cubic-bezier(0.1, -0.01, 0, 1);
}

@keyframes tick {
  40% {
    transform: rotate(-12deg);
  }
}

/* Selected prize animation */
.prize.selected .text__wheel {
  color: white;
  animation: selected 800ms ease;
}

.wheel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  height: 25%;
}

@keyframes selected {
  25% {
    transform: scale(1.25);
    text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
  }

  40% {
    transform: scale(0.92);
    text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
  }

  60% {
    transform: scale(1.02);
    text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
  }

  75% {
    transform: scale(0.98);
  }

  85% {
    transform: scale(1);
  }
}

/* Start animation */

@keyframes start-rotate {
  0% {
    transform: rotate(915deg);
  }

  50% {
    transform: rotate(935deg);
  }

  100% {
    transform: rotate(915deg);
  }
}

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal.hidden {
  display: none !important;
  animation: fadeOut 0.5s forwards;
}

.modal__content {
  background: linear-gradient(to bottom, #ffff00f0 0%, #1b1b6ced 100%);
  margin: 50px auto 0;
  padding: 20px;
  border-radius: 20px;
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 200px;
  left: 50%;
  min-height: 210px;
  transform: translate(-50%, 50%);
  text-align: center;

  h2 {
    color: #fff;
  }
}

.modal__close {
  color: #fff;
  float: right;
  text-align: right;
  width: 100%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-win__img {
  width: 200px;
}

.modal__btn {
  border: none;
  background: #fff;
  font-size: 15px;
  border-radius: 30px;
  padding: 10px;
  cursor: pointer;
  transition: .2s;
}

.modal__btn.hidden {
  display: none;
}

.modal__btn:hover {
  opacity: 0.7;
}

.modal-again__timer {
  font-size: 22px;
}

@media (max-width: 768px) {
  .modal__content {
    width: 90%;
    bottom: 50vh;
  }
}

@media(max-height: 500px) {
  .text__wheel {
    font-size: 10.5px !important;
  }

  .icon__money {
    max-width: 19px;
  }
}

@media (max-width: 480px) {
  .modal__content {
    width: 95%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1) rotate(180deg);
    color: initial;
  }

  50% {
    transform: scale(1.5) rotate(180deg);
    color: #FFD700;
  }
}

@media (max-width: 768px) {
  .ticker {
    top: 39%;
    right: -50px;
    transform: rotate(90deg) scale(0.8);
  }

  .text__wheel {
    font-size: 19px;
  }
}

@media (max-width: 750px) {
  .prize {
    background-position: 49%;
  }
}

@media (max-width: 600px) {
  .text__wheel {
    font-size: 15px;
  }

  .icon__prize {
    max-width: 18px;
  }

  .wheel-text h1 {
    font-size: 60px;
  }
}

@media (max-width: 500px) {
  .prize {
    background-position: 48%;
  }

  .icon__prize {
    max-width: 10px;
  }

  .ticker {
    top: 37%;
  }

  .btn-container {
    width: 80px;
    height: 80px;
  }

  .text__wheel {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .ticker {
    top: 35%;
  }
}