* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: #f3f4f6; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; }
.phone { max-width: 390px; margin: 0 auto; min-height: 844px; background: #fff; position: relative; padding-bottom: 24px; }
.topbar { height: 54px; display: flex; align-items: center; justify-content: center; position: relative;
  background: linear-gradient(135deg, #f59e0b, #f43f5e); color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(244,63,94,.25); }
.topbar .back { position: absolute; left: 14px; font-size: 22px; }
.topbar .sub { position: absolute; right: 14px; font-size: 12px; opacity: .85; font-weight: 400; }
.banner { background: linear-gradient(135deg, #fff7ed, #fff1f2); margin: 14px; border-radius: 16px;
  padding: 16px; border: 1px solid #fee2e2; }
.banner h1 { font-size: 18px; color: #be123c; }
.banner p { font-size: 12px; color: #9f1239; margin-top: 6px; line-height: 1.6; }
.section-title { font-size: 13px; color: #6b7280; margin: 18px 16px 10px; font-weight: 600; }
.btn { display: block; width: calc(100% - 32px); margin: 16px; padding: 14px; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f59e0b, #f43f5e);
  box-shadow: 0 6px 18px rgba(244,63,94,.35); cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { filter: grayscale(.4); opacity: .7; }

/* 大转盘 */
.wheel-wrap { display: flex; justify-content: center; margin: 22px 0 8px; position: relative; }
.wheel-ring { width: 300px; height: 300px; border-radius: 50%; padding: 12px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e); box-shadow: 0 10px 30px rgba(244,63,94,.4); }
.wheel { width: 100%; height: 100%; border-radius: 50%; position: relative; overflow: hidden;
  transition: transform 4.2s cubic-bezier(.17,.67,.27,1.2);
  background: conic-gradient(#fff1f2 0 60deg, #fee2e2 60deg 120deg, #ffedd5 120deg 180deg,
    #fef3c7 180deg 240deg, #ffedd5 240deg 300deg, #fee2e2 300deg 360deg); }
.prize-label { position: absolute; left: 50%; top: 50%; width: 90px; text-align: center;
  font-size: 12px; font-weight: 700; color: #be123c; transform-origin: 0 0; }
.prize-label span { display: inline-block; transform: translate(-50%, -120px); }
.pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid #f43f5e; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.wheel-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 74px; height: 74px; border-radius: 50%; background: #fff; border: 4px solid #f43f5e;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  color: #be123c; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* 九宫格 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 16px; }
.cell { aspect-ratio: 1/1; border-radius: 14px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: #fff7ed; border: 2px solid #fed7aa; font-size: 13px; font-weight: 700;
  color: #c2410c; text-align: center; padding: 4px; }
.cell .emo { font-size: 26px; margin-bottom: 4px; }
.cell.lit { background: linear-gradient(135deg, #f59e0b, #f43f5e); color: #fff; border-color: #f43f5e;
  box-shadow: 0 4px 14px rgba(244,63,94,.4); transform: scale(1.04); transition: .12s; }
.cell.start { background: linear-gradient(135deg, #fb7185, #f43f5e); color: #fff; border: none;
  font-size: 16px; cursor: pointer; }

/* 中奖弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: center;
  justify-content: center; z-index: 50; }
.modal { width: 300px; background: #fff; border-radius: 20px; padding: 26px 20px 20px; text-align: center;
  position: relative; animation: pop .35s cubic-bezier(.2,1.3,.4,1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .crown { font-size: 46px; }
.modal h2 { font-size: 20px; color: #be123c; margin: 8px 0; }
.modal .prize { font-size: 16px; font-weight: 700; color: #f43f5e; margin: 6px 0 14px; }
.modal p { font-size: 12px; color: #6b7280; line-height: 1.6; }
.modal .btn { width: 100%; margin: 14px 0 0; }
.confetti { position: absolute; inset: 0; overflow: hidden; border-radius: 20px; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: .9;
  animation: fall 1.6s linear infinite; }
@keyframes fall { to { transform: translateY(340px) rotate(360deg); opacity: 0; } }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.tag { font-size: 12px; background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; padding: 6px 10px; border-radius: 20px; }
.note { font-size: 11px; color: #9ca3af; text-align: center; margin: 20px 16px 0; line-height: 1.7; }
