.tool {
  border-radius: 24px;
  background: linear-gradient(96deg, #66004F 0%, #851D6E 100%);
  box-shadow: 0 619px 173px 0 rgba(0, 0, 0, 0), 0 396px 158px 0 rgba(0, 0, 0, 0.01);
}
.tool__fieldset label {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}
.tool__fieldset label span {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.tool__fieldset label span:has(.tool__tooltip-btn) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool__input {
  border-radius: 24px;
  border: 0.5px solid #E6E6E6;
  background: #F9FAFA;
  box-shadow: 0 32px 9px transparent;
  padding: 13.5px 16px;
  text-align: center;
  color: #645E62;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool__input::placeholder {
  color: #BEBEBE;
}
.tool__input::-webkit-input-placeholder {
  color: #BEBEBE;
}
.tool__input::-moz-placeholder {
  color: #BEBEBE;
}
@media (any-hover: hover) {
  .tool__input:hover {
    border-color: #851D6E;
  }
}
.tool__input:focus {
  box-shadow: 0 32px 9px rgba(206, 111, 177, 0), 0 21px 8px 0 rgba(206, 111, 177, 0.03), 0 12px 7px 0 rgba(206, 111, 177, 0.1), 0 5px 5px 0 rgba(206, 111, 177, 0.17), 0 1px 3px 0 rgba(206, 111, 177, 0.2);
}
.tool__input:disabled {
  background: #F5F5F5;
  color: #909090;
  cursor: not-allowed;
  opacity: 1;
}
.tool__input:disabled::placeholder {
  color: inherit;
}
.tool__input:disabled::-webkit-input-placeholder {
  color: inherit;
}
.tool__input:disabled::-moz-placeholder {
  color: inherit;
}
.tool__input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.tool__input[type=number]::-webkit-outer-spin-button, .tool__input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tool__input.error {
  border-color: #E82E2E;
}
.tool__tooltip-btn {
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
}
.tool__cta {
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 360px;
  background: #C1008D;
  padding: 8px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: inherit;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
  transition: background 0.2s ease, font-size 0.2s ease;
}
@media (any-hover: hover) {
  .tool__cta:not(:disabled):hover {
    background: #E500A7;
  }
}
.tool__cta.loading span {
  font-size: 0;
}
.tool__cta + .tool__error {
  margin-top: 12px;
}
.tool__error {
  padding-left: 18px;
  color: #FFAF5E;
  font-size: 13px;
  line-height: 120%;
  position: relative;
}
.tool__error::before {
  content: url(/files/images/svg/icon-tool-error.svg);
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-block;
  background-size: 14px;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
}

@media screen and (max-width: 1024px) {
  .tool {
    border-radius: 32px;
    background: linear-gradient(238deg, #66004F 0%, #6F0958 100%), linear-gradient(0deg, #7B1364 0%, #7B1364 100%), linear-gradient(13deg, #7B1364 40.61%, #6C0655 59.39%);
  }
  .tool__input {
    padding-inline: 4px;
  }
  .tool__cta + .tool__error {
    margin-top: 8px;
  }
  @supports (-webkit-touch-callout: none) {
    .tool input[type=text],
    .tool input[type=email],
    .tool input[type=number],
    .tool input[type=password],
    .tool input[type=tel],
    .tool textarea,
    .tool select {
      font-size: 16px;
      line-height: 22px;
    }
  }
}
.roulette-calculator--wheel-simulator {
  background: #1B6547;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 619px 173px 0 rgba(0, 0, 0, 0), 0 396px 158px 0 rgba(0, 0, 0, 0.01);
}
.roulette-calculator--wheel-simulator .tool__head {
  display: none;
}

.wheel-simulator {
  display: grid;
  grid-template-columns: 340px 1fr auto;
  gap: 32px;
  padding: 32px 32px 32px 0;
  min-height: 380px;
}
.wheel-simulator__versions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  margin-top: -32px;
  margin-bottom: -32px;
  border-right: 1px solid #104E35;
  align-self: stretch;
  background: #104E35;
}
.wheel-simulator__versions-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}
.wheel-simulator__versions-label {
  display: none;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.wheel-simulator__versions-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}
.wheel-simulator__main {
  display: contents;
}
.wheel-simulator__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.wheel-simulator__result {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  background: #FFF;
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.06);
}
.wheel-simulator__result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 24px;
  padding: 0 4px;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.5px;
}
.wheel-simulator__result-number.result--red {
  background: #E23134;
}
.wheel-simulator__result-number.result--black {
  background: #1A0114;
}
.wheel-simulator__result-number.result--green {
  background: #61BF6D;
}
.wheel-simulator__result-number.result--green-dark {
  background: #58B263;
}
.wheel-simulator__results {
  display: flex;
  max-width: 200px;
  padding: 8px 24px 24px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid #388766;
  background: #1B6547;
  align-self: center;
  min-height: 0;
}
.wheel-simulator__results-title {
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
}

.wheel-version-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: #14563B;
  border: 1px solid transparent;
  align-self: stretch;
}
.wheel-version-card input {
  display: none;
}
.wheel-version-card .wheel-thumbnail {
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  border-radius: 360px;
}
.wheel-version-card__label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  flex: 1 0 0;
}
.wheel-version-card.active {
  background: #146142;
  border-color: #388766;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.08);
}
@media (any-hover: hover) {
  .wheel-version-card:not(.active):hover {
    background: #146142;
    border-color: #388766;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.08);
  }
}

.wheel-holder {
  position: relative;
  width: 100%;
  max-width: 321px;
  aspect-ratio: 1/1;
  padding: 23px;
  border-radius: 50%;
  border: 4px solid #257E5A;
  background: radial-gradient(50% 50% at 50% 50%, #2C8F67 72.12%, #0F6542 97.12%);
  box-shadow: 0 0 78px 0 rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.wheel-pointer {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 34px;
  height: 32px;
}

.wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.wheel-svg__canvas {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: none;
  background: #FFF;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s ease;
  box-sizing: border-box;
}
.wheel-spin-btn__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 1px));
}
.wheel-spin-btn__spin, .wheel-spin-btn__stop {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wheel-spin-btn__spin > span:not(.wheel-spin-btn__icon), .wheel-spin-btn__stop > span:not(.wheel-spin-btn__icon) {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
  text-transform: uppercase;
}
.wheel-spin-btn__spin {
  background: #079159;
}
.wheel-spin-btn__spin .wheel-spin-btn__icon {
  width: 79px;
  height: 79px;
  fill: #1C6547;
}
.wheel-spin-btn__stop {
  display: none;
  background: #E23134;
}
.wheel-spin-btn__stop .wheel-spin-btn__icon {
  width: 92px;
  height: 92px;
  fill: #2C8F67;
}
.wheel-spin-btn.pressed .wheel-spin-btn__spin {
  display: none;
}
.wheel-spin-btn.pressed .wheel-spin-btn__stop {
  display: flex;
}
@media (any-hover: hover) {
  .wheel-spin-btn:hover {
    box-shadow: 0 0 20px rgba(56, 134, 101, 0.4);
  }
}

.past-results__grid {
  display: flex;
  width: 142px;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.past-results__grid::-webkit-scrollbar {
  width: 4px;
}
.past-results__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.past-results__grid::-webkit-scrollbar-track {
  background: transparent;
}

.wheel-simulator__results.wheel-simulator__results--scrollable {
  align-self: stretch;
}
.wheel-simulator__results.wheel-simulator__results--scrollable .past-results__grid {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.past-results__item {
  display: flex;
  width: 22px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.past-results__item--empty {
  background: #14563B;
}
.past-results__item--red {
  background: #E23134;
}
.past-results__item--black {
  background: #1A0114;
}
.past-results__item--green {
  background: #61BF6D;
}
.past-results__item--green-dark {
  background: #58B263;
}

@media screen and (max-width: 1024px) {
  .wheel-simulator {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }
  .wheel-simulator__versions {
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    border-right: none;
    background: transparent;
  }
  .wheel-simulator__versions-title {
    display: none;
  }
  .wheel-simulator__versions-label {
    display: block;
  }
  .wheel-simulator__versions-cards {
    flex-direction: row;
    gap: 8px;
  }
  .wheel-simulator__center {
    width: 100%;
    max-width: 321px;
    align-self: center;
  }
  .wheel-simulator__results {
    display: none;
    width: 321px;
    max-width: 321px;
    margin: 0 auto;
    align-self: center;
  }
  .wheel-simulator__results--visible {
    display: flex;
  }
  .wheel-version-card {
    flex: 1 0 0;
    min-width: 147px;
    padding: 12px;
    border-radius: 12px;
    background: #14563B;
    border: 1px solid transparent;
    box-shadow: none;
  }
  .wheel-version-card.active {
    background: #146142;
    border-color: #388766;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.08);
  }
  .wheel-simulator__result {
    top: -18px;
  }
  .wheel-pointer {
    top: 5px;
    width: 30px;
    height: 30px;
  }
  .wheel-pointer svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.16));
  }
  .wheel-holder {
    max-width: 321px;
    padding: 18px;
  }
  .wheel-spin-btn {
    width: 104px;
    height: 104px;
    padding: 9px;
  }
  .wheel-spin-btn__spin, .wheel-spin-btn__stop {
    width: 86px;
    height: 86px;
  }
  .wheel-spin-btn__spin .wheel-spin-btn__icon {
    width: 74px;
    height: 74px;
  }
  .wheel-spin-btn__stop .wheel-spin-btn__icon {
    width: 86px;
    height: 86px;
  }
  .past-results__grid {
    width: auto;
    justify-content: center;
    gap: 8px 12px;
  }
  .past-results__item--empty {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .roulette-calculator--wheel-simulator {
    background: #104E35;
  }
  .wheel-simulator {
    gap: 0;
    padding: 0;
  }
  .wheel-simulator__versions {
    padding: 16px;
    gap: 8px;
    background: transparent;
  }
  .wheel-simulator__versions-cards {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .wheel-simulator__versions-cards::-webkit-scrollbar {
    display: none;
  }
  .wheel-simulator__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 16px 16px;
    background: #1B6547;
    border-radius: 0 0 24px 24px;
  }
  .wheel-simulator__center {
    width: 100%;
    max-width: 321px;
  }
  .wheel-simulator__results {
    display: none;
    width: 100%;
    max-width: 321px;
    margin: 0 auto;
    align-self: center;
  }
  .wheel-simulator__results--visible {
    display: flex;
  }
  .wheel-version-card {
    flex: 1 0 0;
    min-width: 147px;
    padding: 12px;
    border-radius: 12px;
    background: #14563B;
    border: 1px solid transparent;
    box-shadow: none;
    flex-shrink: 0;
  }
  .wheel-version-card.active {
    background: #146142;
    border-color: #388766;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.08);
  }
  .wheel-holder {
    max-width: 300px;
    padding: 16px;
  }
  .wheel-spin-btn {
    width: 94px;
    height: 94px;
    padding: 8px;
  }
  .wheel-spin-btn__spin, .wheel-spin-btn__stop {
    width: 78px;
    height: 78px;
  }
  .wheel-spin-btn__spin > span:not(.wheel-spin-btn__icon), .wheel-spin-btn__stop > span:not(.wheel-spin-btn__icon) {
    font-size: 11px;
  }
  .wheel-spin-btn__spin .wheel-spin-btn__icon {
    width: 67px;
    height: 67px;
  }
  .wheel-spin-btn__stop .wheel-spin-btn__icon {
    width: 78px;
    height: 78px;
  }
  .past-results__grid {
    width: auto;
    justify-content: center;
    gap: 8px 12px;
  }
}