/* fortune-exit-popup.css */

#fortuneExitOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  backdrop-filter:blur(8px);
}

.fortune-modal{
  width:100%;
  max-width:560px;
  background:#0d1117;
  border-radius:28px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 70px rgba(0,0,0,.5);
  animation:fortuneShow .4s ease;
}

@keyframes fortuneShow{
  from{
    opacity:0;
    transform:translateY(20px) scale(.95);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.fortune-header{
  text-align:center;
  padding:40px 30px 10px;
  color:#fff;
}

.fortune-header h2{
  font-size:28px;
  margin:15px 0 10px;
  font-weight:900;
}

.fortune-header p{
  font-size:11px;
  color:#cfd6df;
  line-height:1.5;
}

.fortune-badge{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background:linear-gradient(90deg,#ff7a00,#ff0048);
  font-size:11px;
  font-weight:800;
  color:#fff;
}

.fortune-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border-radius:50%;
  border:none;
  background:#1f2937;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.fortune-wheel-wrapper{
  position:relative;
  width:250px;
  height:250px;
  margin:15px auto;
}

.fortune-pointer{
  position:absolute;
  top:-10px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:20px solid transparent;
  border-right:20px solid transparent;
  border-top:40px solid #ff003d;
  z-index:3;
}

.fortune-wheel{
  width:100%;
  height:100%;
  border-radius:50%;
  position:relative;
  overflow:hidden;
  border:10px solid #fff;
  transition:transform 5s cubic-bezier(.17,.67,.13,.99);
  background:
  conic-gradient(
    #ff6b00 0deg 72deg,
    #ff003d 72deg 144deg,
    #005eff 144deg 216deg,
    #00b86b 216deg 288deg,
    #8b00ff 288deg 360deg
  );
}

.fortune-wheel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
  radial-gradient(circle at center,
  transparent 0 36%,
  rgba(255,255,255,.12) 36% 100%);
}

.wheel-center{
  position:absolute;
  inset:50%;
  transform:translate(-50%,-50%);
  width:110px;
  height:110px;
  background:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

#spinWheelBtn{
  width:92px;
  height:92px;
  border-radius:50%;
  border:none;
  background:#111827;
  color:#fff;
  font-weight:900;
  cursor:pointer;
  font-size:11px;
}

.fortune-result{
  display:none;
  text-align:center;
  color:#fff;
  padding:10px 30px 40px;
}

.fortune-win-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:15px;
}

.fortune-win-text{
  font-size:15px;
  line-height:1.6;
  margin-bottom:25px;
}

.fortune-code-wrap{
  background:#111827;
  border:2px dashed #00ff95;
  border-radius:20px;
  padding:8px;
  margin-bottom:20px;
}

.fortune-code-label{
  margin-bottom:10px;
  color:#cbd5e1;
}

.fortune-code{
  font-size:16px;
  font-weight:900;
  color:#00ff95;
  letter-spacing:2px;
}

.fortune-timer{
  font-size:12px;
  font-weight:800;
  margin-bottom:15px;
  color:#fff;
}

.fortune-note{
  color:#b8c0cc;
  font-size:12px;
}

#fortuneStickyBar{
  position:fixed;
  left:20px;
  bottom:20px;
  z-index:99999;
  background:#0f172a;
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:16px 18px;
  color:#fff;
  display:none;
  box-shadow:0 15px 40px rgba(0,0,0,.35);
}

.fortune-sticky-inner{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:17px;
}

#stickyCode{
  color:#00ff95;
}

@media(max-width:768px){

  .fortune-header h2{
    font-size:18px;
  }

  .fortune-header p{
    font-size:11px;
  }

  .fortune-wheel-wrapper{
    width:280px;
    height:280px;
  }

  .fortune-code{
    font-size:14px;
  }

  #fortuneStickyBar{
    left:10px;
    right:10px;
    bottom:10px;
  }

}