.topbar{
  position:static;   /* 原来是 sticky */
  top:auto;
  z-index:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
}
.brand{
  color:#fff;
  font-weight:900;
  letter-spacing:1px;
  font-size:16px;
  text-shadow:0 2px 10px rgba(0,0,0,0.18);
}

.user{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
}
.user__avatar{
  width:28px; height:28px;
  border-radius:999px;
  border:2px solid rgba(206,115,30,0.85);
  background:#fff;
}
.user__name{
  max-width:90px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800;
  font-size:13px;
}

.hero{ position:relative; padding-top:10px; }


.panel{
  margin-top:160px;
  position:relative;
  background:var(--card);
  border-radius:18px;
  padding:14px 14px 18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(206,115,30,0.35);
}
.panel__title{
  font-weight:900;
  color:#7a1400;
  text-align:center;
  margin:4px 0 12px;
  letter-spacing:1px;
}

.prize-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin:10px 0 12px;
}

.prize-item{
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.75));
  border:1px solid rgba(184,22,22,0.12);
  padding:10px 8px 8px;
  position:relative;
  overflow:hidden;
  min-height:112px;
}
.prize-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(120px 60px at 50% 0%, rgba(206,115,30,0.45), transparent 62%);
  opacity:.45;
}
.prize-item__img{
  width:64px;
  height:64px;
  margin:0 auto 6px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(206,115,30,0.55);
  background:#fff;
  position:relative;
  z-index:1;
}
.prize-item__name{
  position:relative;
  z-index:1;
  text-align:center;
  font-weight:800;
  color:#5a1d00;
  font-size:12px;
  line-height:1.2;
  min-height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.prize-item.active{
  border-color: rgba(206,115,30,0.95);
  box-shadow: 0 0 0 2px rgba(206,115,30,0.45), 0 10px 20px rgba(184,22,22,0.18);
  transform: translateY(-1px);
}
.prize-item.active::before{
  opacity:.75;
}

.action{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:6px;
}
.action .btn-primary{
  width:100%;
  max-width:260px;   /* 你想按钮多宽可调；不要就删 */
  padding:12px 14px;
  border-radius:14px;
  font-size:15px;
}
.chances{
  text-align:center;
  font-weight:900;
  color:#6a1a1a;
}
.chances__label{ font-weight:800; opacity:.85; }
.chances__value{ font-size:16px; margin-left:2px; }

.meta{
  flex:0 0 auto;
  background:rgba(184,22,22,0.06);
  border:1px solid rgba(184,22,22,0.10);
  color:#6a1a1a;
  padding:10px 10px;
  border-radius:14px;
  min-width:110px;
  text-align:center;
  font-weight:900;
}
.meta__label{ font-weight:800; opacity:.85; }
.meta__value{ display:block; font-size:16px; margin-top:2px; }

.note{
  margin-top:12px;
  color:#4a2a2a;
  font-size:13px;
  line-height:1.6;
  background:rgba(246,211,123,0.16);
  border:1px solid rgba(184,22,22,0.18);
  border-radius:14px;
  padding:10px 12px;
}
.note h3{ margin:0 0 6px; color:#7a1400; font-size:14px; }
.note p{ margin:6px 0; color:#5a3434; }

/* active 闪光：更像抽奖机灯带 */
.prize-item.active{
  border-color: rgba(255, 214, 120, 0.95);
  box-shadow:
    0 0 0 2px rgba(206,115,30,0.55),
    0 0 18px rgba(255, 214, 120, 0.55),
    0 10px 20px rgba(184,22,22,0.18);
  transform: translateY(-1px);
  animation: activeGlow 0.55s linear infinite;
}

.prize-item.active::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:16px;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.0),
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.0),
    rgba(255,214,120,0.45),
    rgba(255,255,255,0.0)
  );
  filter: blur(6px);
  opacity: .75;
  animation: ringSpin 0.9s linear infinite;
  pointer-events:none;
}

@keyframes activeGlow{
  0%   { filter: brightness(1) saturate(1); }
  50%  { filter: brightness(1.15) saturate(1.2); }
  100% { filter: brightness(1) saturate(1); }
}

@keyframes ringSpin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 彩带画布 */
.confetti-canvas{
  position: fixed;
  inset: 0;
  z-index: 10000; /* 比 modal 还高，弹窗也一起“庆祝” */
  pointer-events: none;
}

/* 停住后：中奖灯效（更强烈闪烁），持续 3 秒由 JS 控制 */
.prize-item.jackpot{
  animation: jackpotFlash 0.12s steps(2, end) infinite;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.75),
    0 0 28px rgba(255, 214, 120, 0.95),
    0 0 42px rgba(255, 60, 0, 0.55);
  border-color: rgba(255, 214, 120, 1);
}

.prize-item.jackpot::after{
  opacity: 1;
  filter: blur(4px);
  animation-duration: 0.25s; /* 环形更快 */
}

@keyframes jackpotFlash{
  0%   { filter: brightness(1.0) saturate(1.0); }
  50%  { filter: brightness(1.8) saturate(1.6) contrast(1.2); }
  100% { filter: brightness(1.0) saturate(1.0); }
}

.post-guide{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding:12px 12px;
  border-radius:14px;
  background: rgba(184,22,22,0.06);
  border: 1px solid rgba(184,22,22,0.12);
}

.post-guide__text{
  min-width: 0;
}

.post-guide__title{
  font-weight: 900;
  color:#7a1400;
  font-size: 14px;
  line-height: 1.2;
}

.post-guide__sub{
  margin-top: 4px;
  font-weight: 800;
  color:#5a3434;
  opacity: .9;
  font-size: 12px;
  line-height: 1.2;
}

/* 次要按钮：明显弱于 btn-primary（立即抽奖） */
.btn-secondary{
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(206,115,30,0.35);
  color: #7a1400;
  box-shadow: none;
  font-weight: 900;
  padding:10px 12px;
  border-radius:12px;
  white-space: nowrap;
}

.btn-secondary:active{
  transform: scale(0.98);
}

.footer-section{
  width: 100%;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-qrcode{
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(45, 50, 70, 0.75);
  border: 1px solid rgba(240, 230, 210, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-qrcode img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-text{
  font-size: 14px;
  color: rgba(240, 230, 210, 0.75);
}