/* 기본 */
body {
  margin: 0;
  background: #fff;
}

/* 공 */
.ball_top {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.ball_top.active {
  transform: scale(1.2);
  box-shadow: 0 0 20px #fff;
}

/* 캔버스 */
canvas {
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* 버튼 */
.rouletter-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(145deg, #ff512f, #dd2476);
  box-shadow: 0 0 20px rgba(255, 80, 80, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* AI 박스 */
#aiBox {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 15px;
  backdrop-filter: blur(10px);
  margin-top: 20px;
  display: none;
}

.ai-score {
  font-size: 12px;
  color: #aaa;
}

#aiScoreValue {
  font-size: 36px;
  font-weight: bold;
  color: #00ffd5;
}

#aiGrade {
  font-size: 18px;
  margin-top: 5px;
  color: #ffcc00;
}

/* 포인터 */
#pointer {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

#pointer::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 26px solid #ffcc00;
  filter: drop-shadow(0 0 6px rgba(255, 204, 0, 0.8));
}

#pointer::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  margin: -4px auto 0;
  box-shadow: 0 0 10px #fff;
}

#pointer.active {
  animation: tick 0.2s infinite linear;
}

@keyframes tick {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(3deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

/* 레이아웃 */
.score {
  display: flex;
  justify-content: center;
}

.won {
  display: flex;
  gap: 5px;
}

.cont {
  text-align: center;
}

.spin-area {
  margin: 20px 0;
  padding-top: 10px;
  position: relative;
}

/* 구매 버튼 */
.buy_btn {
  display: none;
  margin-top: 15px;
  cursor: pointer;
}

/* 모달 */
.modal.hidden {
  display: none;
}

.modal__background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal__content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
}