.wheel-wrap {
  background-color: #c91426;
}

.wheel {
  position: relative;
  overflow: clip;
  margin-inline: auto;
  will-change: auto;

  & * {
    will-change: auto;
  }

  & img {
    display: block;
  }
}

.wheel__container {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-block: 2%;

  @media (orientation: landscape) {
    height: calc(100dvh - 40px);
  }
}

.wheel__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  & > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.wheel__heading {
  margin-inline: auto;
  width: 100%;
  min-height: 40px;
  height: 5%;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 1dvh;
}

.wheel__description {
  text-align: center;
  margin-bottom: 4dvh;
  font-size: 1.2rem;
}

.wheel__button {
  all: unset;
  display: block;
  cursor: pointer;
  min-height: 40px;
  height: 5%;
  max-height: 50px;
  margin-bottom: 3dvh;
  opacity: 0;

  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  &:disabled {
    cursor: not-allowed;
  }

  &:disabled > img {
    opacity: 0.5;
  }
}

.wheel__landscape {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  width: 148%;

  & > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.wheel__landscape-foreground {
  z-index: 20;
}

.wheel__landscape-foreground-right {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  object-fit: fill !important;
}

.wheel__landscape-foreground-left {
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  object-fit: fill !important;
}

.wheel__landscape-background {
  z-index: 10;
}

.wheel__wheel-container {
  position: relative;
  margin-inline: auto;
  max-width: 60%;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  pointer-events: none;
}

.wheel__wheel {
  position: absolute;
  inset: 0;
  z-index: 15;
  opacity: 0;

  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .wheel__wheel-border {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
  }

  .wheel__wheel-border-off {
    position: absolute;
    inset: 0;
    z-index: 30;
  }

  & .wheel__wheel-board {
    position: absolute;
    inset: 0;
    z-index: 10;
  }
}

.wheel__coins {
  position: absolute;
  inset: -2%;
  margin-left: -4%;
  z-index: 40;
  opacity: 0;

  & > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
