.racing-sans-one-regular {
  font-family: Racing Sans One, serif;
  font-weight: 400;
  font-style: normal;
}
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  font-family: Racing Sans One, serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
body:before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../bg.webp);
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
  z-index: -1;
  filter: blur(2px) contrast(1);
}
canvas {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Racing Sans One, serif;
}
#wheelCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  z-index: 20;
  pointer-events: none;
}
#selected-track {
  z-index: -50;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  text-align: center;
  background: #000000b3;
  padding: 15px 30px;
  border-radius: 10px;
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
#selected-track.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 50;
}
#spin-button {
  background: linear-gradient(to bottom, #5a5a5a, #3d3d3d);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 40px;
  font-size: 26px;
  cursor: pointer;
  z-index: 900;
  font-family: Racing Sans One, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  top: 82%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 65px;
  box-shadow: 0 6px 12px #0000004d, 0 0 0 2px #ff28024d, inset 0 1px 1px #fff3;
  overflow: hidden;
  transition: all 0.3s ease;
}
#spin-button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    white,
    white 10px,
    transparent 10px,
    transparent 20px
  );
  transform: translateY(-50%);
  opacity: 0.8;
  pointer-events: none;
  animation: dash-move 15s linear infinite;
}
#spin-button:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #ff2802, #ff6b00);
  opacity: 0.9;
}
#spin-button:hover {
  background: linear-gradient(to bottom, #ff3812, #d92200);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px #0006, 0 0 0 2px #ff280280, inset 0 1px 1px #ffffff4d;
}
#spin-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 6px #0000004d, 0 0 0 1px #ff280280,
    inset 0 1px 3px #0000004d;
}
#spin-button:focus {
  outline: none;
  box-shadow: 0 6px 12px #0000004d, 0 0 0 3px #ffffff80, 0 0 0 1px #ff280280,
    inset 0 1px 1px #fff3;
}
#spin-button:disabled {
  background: linear-gradient(to bottom, #7a7a7a, #5d5d5d);
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: 0 2px 4px #0003;
}
@keyframes dash-move {
  0% {
    background-position: 0 0;
  }
  to {
    background-position: 400px 0;
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  to {
    transform: scale(1);
  }
}
.ready-to-spin {
  animation: pulse 1.5s ease-in-out infinite;
}
#loading {
  font-family: Racing Sans One, serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: #fff;
  display: none;
}
