/* Overlay */
#roulette-overlay {
  position: fixed; display: none;   /* hidden by default */
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'SCDream', 'Pretendard', system-ui, sans-serif;
}
.result-box, .result-box p, .result-box h2, .result-box button, .result-box input {font-family: 'SCDream', 'Pretendard', system-ui, sans-serif;}
.roulette-open-btn {
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}

.policy .poptext .text p {font-size:15px !important;}
.poptext {
    width: 100%;
    height: 497px;
    margin: 44px auto;
    background: #fff;     font-family: 'SCDream';
}
.policy .texthead {
    background: #fff;
       color: rgb(112, 175, 26) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 10px 0;
    text-align: center;     font-family: 'SCDream';
}
.overlay .close_new{
    width: 100%;
    text-align: center;
    height: 50px;
       color: #fff !important;
    font-weight: bold !important;
    font-size: 20px !important;
    line-height: 50px;
    text-decoration: none;
    background: #b11d2a;     font-family: 'SCDream';
}
.policy .poptext .text {
    width: 86%; color:#333;
    margin: 33px auto;
    overflow: auto;
    height: 300px;
    border: 1px solid #ccc;
    padding: 16px;
    line-height: 30px;
    font-size: 15px; text-align:left !important;
}

.roulette-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.overlay.policy {  width:100%;  top: 0px;
    position: fixed;}
.wrap980 {max-width: 980px;
    margin: auto;
    display: block;
    width: 100%;}
/* Popup */
#roulette-popup {
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 32px;
  width: 360px;
  text-align: center;
}

/* Wheel wrapper */
.roulette-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 20px;
}

/* Pointer */
.pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid #f5b23c;
  z-index: 10;
}

/* Wheel */
#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 8px solid #f1e4cc;
  background: #fdf4e1;
  overflow: hidden;
  transition: transform 4.5s cubic-bezier(.17,.67,.28,1.2);
}

/* Center hub */
.center-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  background: #111;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

/* Segments */
.segment {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.segment span {
  transform: rotate(-45deg);
  line-height: 1.3;
}

/* Segment positions */
.seg1 {
  transform: rotate(0deg);
  background: #fff6e6;
}
.seg2 {
  transform: rotate(90deg);
  background: #ffe0b2;
}
.seg3 {
  transform: rotate(180deg);
  background: #fff6e6;
}
.seg4 {
  transform: rotate(270deg);
  background: #ffb86c;
}

/* Spin button */
#spinBtn {
  width: 100%;
  padding: 14px 0;
  background: linear-gradient(180deg, #ff9a3c, #ff7a00); background-color:#ff7a00;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 6px 0 #e56700;
}

#spinBtn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #e56700;
}

/* Result popup */
#result-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 10000;
  text-align: center;
  padding-top: 140px;
}

#result-popup h3 {
  color: #fff;
  margin-bottom: 20px;
}

#result-popup input {
  display: block;
  margin: 10px auto;
  padding: 12px;
  width: 240px;
  border-radius: 8px;
      border: 1px solid #ccc;
    color: #333;
}
#result-popup input::-webkit-input-placeholder { color: #333; } /* Chrome, Safari, Opera */
#result-popup input::-moz-placeholder { color: #333; } /* Firefox 19+ */
#result-popup input:-ms-input-placeholder { color: #333; } /* IE 10+ */
#result-popup input::-ms-input-placeholder { color: #333; } /* Edge */
#result-popup input::placeholder { color: #333; } /* Modern standard */
#submitReward {
    background: #EED309;
    color: #000;
    font-family: 'SCDream';
    border: 0;
    width: 100%;
    max-width: 240px;
    border-radius: 10px;
    padding: 15px;
}
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  background: gold;
  animation: fall 2.5s linear forwards;
  z-index: 20000;
}

@keyframes fall {
  from {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.result-box {
  background: #fff;
  width: 320px;
  margin: auto;
  padding: 26px;
  border-radius: 18px;
}

.reward-card {
  background: #fff6e1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.reward-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.reward-price {
  color: #ff7a00;
  font-weight: 700;
}
