:root{
  --bg0:#03050a;
  --bg1:#050a16;
  --blue:#4fb6ff;
  --blue2:#7ee6ff;
  --teal:#21ffd6;
  --text:#e9f5ff;
  --muted:#a8c6e6;
  --card: rgba(10, 18, 34, .62);
  --card2: rgba(7, 12, 24, .72);
  --border: rgba(120, 220, 255, .28);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(79,182,255,.22), transparent 55%),
    radial-gradient(900px 520px at 18% 20%, rgba(33,255,214,.12), transparent 60%),
    radial-gradient(900px 520px at 82% 30%, rgba(126,230,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
  overflow-x:hidden;
}

.bg-stars{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 75%, rgba(255,255,255,.45) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.5) 0 1px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.38) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 55%, rgba(255,255,255,.35) 0 1px, transparent 2px);
  opacity:.55;
  filter: drop-shadow(0 0 10px rgba(79,182,255,.25));
  animation: drift 12s ease-in-out infinite;
}

.bg-glow{
  position:fixed;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(600px 260px at 50% 15%, rgba(79,182,255,.25), transparent 58%),
    radial-gradient(520px 220px at 50% 40%, rgba(126,230,255,.16), transparent 60%),
    radial-gradient(620px 260px at 50% 70%, rgba(33,255,214,.10), transparent 65%);
  opacity:.9;
}

@keyframes drift{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(0,-10px,0) scale(1.01); }
  100%{ transform: translate3d(0,0,0) scale(1); }
}

.wrap{
  width:100%;
  max-width:980px;
  margin:0 auto;
  padding:26px 18px 56px;
  position:relative;
  z-index:1;
}

.card-header{
  display:flex;
  align-items:center;
  justify-content:center;
  margin: -8px -8px 12px;
  padding: 2px 8px 0;
}

.logo{
  width:min(340px, 86vw);
  height:auto;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.55))
    drop-shadow(0 0 22px rgba(79,182,255,.35));
  user-select:none;
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow:
    0 18px 60px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  position:relative;
  overflow:hidden;
}

.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: conic-gradient(from 180deg, rgba(79,182,255,.0), rgba(79,182,255,.35), rgba(33,255,214,.25), rgba(79,182,255,.0));
  opacity:.55;
  filter: blur(12px);
  z-index:0;
}

.card > *{
  position:relative;
  z-index:1;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(126,230,255,.35);
  background: rgba(6, 12, 25, .35);
  color: var(--muted);
  letter-spacing:.5px;
  font-size: 13px;
  margin-bottom:10px;
}

.title{
  margin:0;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height:1.1;
  letter-spacing:1px;
  text-shadow: 0 0 24px rgba(79,182,255,.18);
}

.desc{
  margin:10px 0 0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}

.cta{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cta-text{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:12px;
}

.cta-strong{
  font-size: 18px;
  color: var(--muted);
}

.cta-amount{
  font-weight:800;
  font-size: clamp(28px, 5vw, 46px);
  line-height:1;
  background: linear-gradient(90deg, var(--blue2), var(--blue), var(--teal));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  text-shadow:
    0 0 20px rgba(79,182,255,.22),
    0 0 42px rgba(33,255,214,.14);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width: 420px;
  padding:14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(126,230,255,.45);
  background: linear-gradient(180deg, rgba(17, 40, 80, .55), rgba(8, 20, 45, .45));
  color: var(--text);
  text-decoration:none;
  font-weight: 700;
  letter-spacing:.5px;
  box-shadow:
    0 18px 45px rgba(0,0,0,.35),
    0 0 30px rgba(79,182,255,.18);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(126,230,255,.7);
  box-shadow:
    0 24px 60px rgba(0,0,0,.40),
    0 0 44px rgba(79,182,255,.22);
}

.steps{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step{
  border-radius: 14px;
  background: rgba(6, 12, 25, .30);
  border: 1px solid rgba(126,230,255,.18);
  padding: 14px 12px;
  min-height: 72px;
}

.step-ico{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color: #061226;
  background: linear-gradient(180deg, rgba(126,230,255,.95), rgba(79,182,255,.75));
  box-shadow: 0 0 18px rgba(79,182,255,.35);
}

.step-txt{
  margin-top:10px;
  color: var(--text);
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
}

.fineprint{
  margin: 16px 0 0;
  color: rgba(168,198,230,.85);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ===== 转盘 ===== */
.wheel-section{
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.wheel-stage{
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 1;
}

.modal-card-wheel{
  width: min(400px, 100%);
  padding: 22px 18px 20px;
}

.wheel-pointer{
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ffd56a;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}

.wheel-pointer:after{
  content: "";
  position: absolute;
  top: -22px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 0 0 10px rgba(255,213,106,.7);
}

.wheel{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  border: 4px solid rgba(126,230,255,.55);
  box-shadow:
    0 0 0 6px rgba(6, 12, 25, .55),
    0 18px 40px rgba(0,0,0,.45),
    0 0 36px rgba(79,182,255,.22);
  background: conic-gradient(
    from -90deg,
    #123a66 0deg 60deg,
    #0b5c5a 60deg 120deg,
    #1a2f6b 120deg 180deg,
    #123a66 180deg 240deg,
    #0b5c5a 240deg 300deg,
    #1a2f6b 300deg 360deg
  );
  transition: transform 4.2s cubic-bezier(0.12, 0.75, 0.08, 1);
  will-change: transform;
}

.wheel-label{
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  transform: rotate(calc(var(--i) * 60deg + 30deg));
  pointer-events: none;
}

.wheel-label span{
  display: block;
  margin-top: 14%;
  max-width: 42%;
  text-align: center;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 800;
  line-height: 1.2;
  color: #f2fbff;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
  transform: rotate(0deg);
}

.wheel-center{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18%;
  height: 18%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #9fe9ff, #4fb6ff);
  border: 3px solid rgba(255,255,255,.55);
  box-shadow: 0 0 18px rgba(79,182,255,.55);
  z-index: 2;
}

.spin-btn{
  max-width: 280px;
  cursor: pointer;
  font: inherit;
}

.spin-btn:disabled{
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* ===== 中奖弹窗 ===== */
.modal[hidden]{
  display: none !important;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, .72);
  backdrop-filter: blur(6px);
}

.modal-card{
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 28px 22px 22px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 24, 48, .96), rgba(7, 14, 28, .98));
  border: 1px solid rgba(126,230,255,.4);
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    0 0 40px rgba(79,182,255,.18);
  animation: modal-in .35s ease;
}

@keyframes modal-in{
  from{ opacity: 0; transform: translateY(12px) scale(.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.modal-eyebrow{
  margin: 0;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--teal);
}

.modal-title{
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.modal-prize{
  margin: 14px 0 22px;
  font-size: clamp(26px, 6vw, 34px);
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--blue2), var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-btn{
  max-width: none;
}

body.modal-open{
  overflow: hidden;
}

@media (max-width: 720px){
  .wrap{ padding: 20px 14px 44px; }
  .card{ padding: 20px 14px; }
  .card-header{ margin: -8px -6px 10px; padding: 2px 6px 0; }
  .steps{ grid-template-columns: 1fr; }
  .step{ min-height: auto; }
  .wheel-stage{ width: min(280px, 84vw); }
}

