#stw-wheel-wrapper {
  width: 90vmin;
  height: 90vmin;
}

@media (width > 1500px) {
  #stw-wheel-wrapper {
    translate: 15% -3%;
  }
}

@media (width > 1024px) {
  #stw-wheel-wrapper {
    translate: 18% -3%;
  }
}

@media (1024px < width <= 1500px) and (height > 768px) {
  #stw-wheel-wrapper {
    position: absolute;
  }
}

@media (width <= 1024px) and (orientation: landscape) {
  #stw-wheel-wrapper {
    margin-inline-end: -30dvw;
    scale: 120%;
  }
}

@media (width <= 1024px) and (orientation: portrait) {
  #stw-wheel-wrapper {
    aspect-ratio: 1;
	  flex: 0 0 auto;
    margin-block: 1dvh;
    margin-inline: auto;
  }
}

@media (width <= 600px) and (orientation: portrait) {
  #stw-wheel-wrapper {
    scale: 140%;
    margin-block: 10dvh;
  }
}




#wrapper.wheel {
  position: relative
}

#wheel {
  background-image: url("../images/skin/wheel1-base.png"); /* MOVE TO THEMES */
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  position: relative
}

#inner-wheel {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  /* transition: all 6s cubic-bezier(0, 0.99, 0.44, 0.99); */
  user-select: none;
  pointer-events: none;
  cursor: default
}

#wheel .inner-wheel-innerring,
#wheel .inner-wheel-innerlight {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  user-select: none;
  pointer-events: none;
  cursor: default;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%
}

#wheel .inner-wheel-innerring {
  background-image: url("../images/skin/wheel1-innerring.png"); /* MOVE TO THEMES */
}

#wheel .inner-wheel-innerlight {
  background-image: url("../images/skin/wheel1-innerlight.png"); /* MOVE TO THEMES */
}

#spin {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  user-select: none
}

#spin .inner-spin-spinner {
  width: 32.70833%;
  height: 32.70833%;
  position: relative;
  background-image: url("../images/skin/wheel1-spinner.png"); /* MOVE TO THEMES */
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#spin-controls {
  text-align: center;
  transition: filter 200ms ease-in-out;
  cursor: pointer;
}

#spin-controls:hover {
  filter: brightness(130%);
}

#spin-controls img {
  width: 100%;
  height: auto;
  pointer-events: none;
}

#spin-count {
  font-size: 120px;
  font-size: 12.8068vmin;
  line-height: 1;
  font-weight: 700;
  color: white;
  pointer-events: none;

  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--key-color, #0095ff), black 60%));
}

/* u0501c [using the custom attribute to toggle off] START */
[data-stw-loggedout=true] #spin-controls > *:not(.loggedout) {
  display: none;
}
[data-stw-loggedout=true] #spin-controls .loggedout {
  display: block;
  font-size: 60px;
  font-size: 6.4034vmin;
  font-weight: 700;
  color: white;
  filter: drop-shadow(0 2px 2px hsla(0deg,100%,0%,0.6667));
}
[data-stw-loggedout=false] #spin-controls .loggedout {
  display: none;
}
/* u0501c ENDS */


#spin-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  font-size: 9.1vmin;
}

#spin-toggle .switch {
  position: relative;
  display: inline-block;
  width: 1.25em;
  height: 0.4166667em
}

#spin-toggle .switch input {
  opacity: 0;
  width: 0;
  height: 0
}

#spin-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border-radius: 0.2083333em;
  background-color: #161616;
  border: 2px solid #444444;
  box-sizing: border-box;
  transition: transform .4s, background-color .4s
}

#spin-toggle .slider:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 50%;
  border-radius: 50vw;
  border: 1px solid #161616;
  left: 0;
  bottom: 0;
  background-color: #a0a0a0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='30' viewBox='0 0 58 30'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %2318191a; fill-rule: evenodd; %7D %3C/style%3E%3C/defs%3E%3Cpath id='toggle_grooves' data-name='toggle grooves' class='cls-1' d='M21,8a2,2,0,0,1,2,2V20a2,2,0,0,1-4,0V10A2,2,0,0,1,21,8Zm8,0a2,2,0,0,1,2,2V20a2,2,0,0,1-4,0V10A2,2,0,0,1,29,8Zm8,0a2,2,0,0,1,2,2V20a2,2,0,0,1-4,0V10A2,2,0,0,1,37,8Z'/%3E%3C/svg%3E%0A");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  transition: transform .4s
}

#spin-toggle input:checked + .slider {
  background-color: var(--key-color, #2196F3);
}

#spin-toggle input:focus + .slider {
  box-shadow: 0 0 1px var(--key-color, #2196F3); /* MOVE TO THEMES */
}

#spin-toggle input:checked+.slider:before {
  transform: translateX(100%);
  border-color: var(--key-color, #2196F3);
  background-color: white;
}

#spin-toggle p {
  font-size: 0.125em;
  font-weight: 700;
  margin-block-start: 0.1em;
  letter-spacing: 0.1em;
  color: #c0c0c0;
  text-transform: uppercase
}

@media (width <= 1024px) and (orientation: landscape) {
  #spin-toggle {
    margin-block-end: -0.5rem;
    scale: 140%;
  }
}

@media (width <= 600px) and (orientation: portrait) {
  #spin-toggle {
    margin-block-end: -0.5rem;
    scale: 140%;
  }
}

@keyframes oscillateFast {
  0% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
  100% { transform: rotate(-15deg); }
}

@keyframes oscillateSlow {
  0% { transform: rotate(-15deg); }
  30% { transform: rotate(10deg); }
  60% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}