/* =========================================================
   一周年庆采购达标抽奖活动 · H5 大转盘
   设计风格：红漆烫金 · 喜庆质感（红金光泽 + 跑马灯 + 立体层次）
   ========================================================= */

:root {
  --c-red: #E53935;
  --c-red-dark: #C62828;
  --c-red-deep: #8E1B0E;
  --c-orange: #FF6D00;
  --c-yellow: #FFD54F;
  --c-cream: #FFF8E7;
  --c-gold-1: #FFF3C4;
  --c-gold-2: #FFCA28;
  --c-gold-3: #FF8F00;
  --c-text: #5D2410;
  --c-text-light: #8A5A3A;
  --c-white: #FFFFFF;
  --max-w: 480px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  width: 100%; min-height: 100%;
  overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--c-text);
  background: #7A1410;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}

/* 背景装饰：酱酒红漆底 + 顶部金光 */
.page-bg {
  position: fixed; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255,200,90,.28), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(60,10,6,.62), transparent 60%),
    linear-gradient(180deg, #8E1B1B 0%, #A21E1C 28%, #AE2A1E 55%, #971F15 80%, #7A1410 100%);
  pointer-events: none;
}
.page-bg::before {
  content: ""; position: absolute; left: -25%; top: 6%;
  width: 70%; height: 44%;
  background: radial-gradient(circle, rgba(255,235,150,.18), transparent 62%);
  border-radius: 50%;
}
.page-bg::after {
  content: ""; position: absolute; right: -15%; top: 2%;
  width: 50%; height: 36%;
  background: radial-gradient(circle, rgba(255,220,120,.14), transparent 62%);
  border-radius: 50%;
}

/* 背景上浮金粒（JS 注入 .mote） */
.bg-motes { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: radial-gradient(circle, #FFF8E7 0%, rgba(255,213,79,.55) 50%, transparent 72%);
  opacity: 0;
  animation: moteFloat var(--d, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes moteFloat {
  0%   { transform: translateY(0) scale(.5); opacity: 0; }
  12%  { opacity: .85; }
  88%  { opacity: .6; }
  100% { transform: translateY(-104vh) scale(1.05); opacity: 0; }
}

.app {
  position: relative; z-index: 3;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 16px 24px;
}

/* ========== 右侧悬浮按钮 ========== */
.side-btns {
  position: fixed; right: 0; top: 236px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
}
.side-btn {
  width: 36px; padding: 9px 0;
  font-size: 12px; font-weight: 700; line-height: 1.2;
  color: #7A1410;
  background: linear-gradient(180deg, #FFE8A0, #FFB300);
  border: none; border-radius: 10px 0 0 10px;
  box-shadow: -2px 2px 10px rgba(0,0,0,.22);
  cursor: pointer;
}
.side-btn:active { transform: scale(.95); }

/* ========== 顶部标题 ========== */
.header {
  text-align: center;
  padding: 14px 0 20px;
  animation: fadeDown .7s ease both;
}
.header-top {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.5px;
  color: rgba(255,255,255,.9);
  padding: 4px 16px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  margin-bottom: 18px;
}
.header-title {
  margin: 0 0 16px;
  font-size: 40px; font-weight: 900; letter-spacing: 3px; line-height: 1.15;
  background: linear-gradient(180deg, #FFFCE8 0%, #FFE082 35%, #FFB300 72%, #FF8F00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(110,16,8,.6)) drop-shadow(0 6px 14px rgba(0,0,0,.32));
  animation: titleFloat 4.5s ease-in-out infinite;
}
.ht-line { display: block; }
.header-sub {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.header-sub::before, .header-sub::after {
  content: ""; display: block; width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,224,130,.85), transparent);
}
.header-tag {
  display: inline-block;
  font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #B71C1C;
  padding: 5px 22px;
  background: linear-gradient(180deg, #FFF3C4, #FFCA28);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,.2), inset 0 1px 2px rgba(255,255,255,.85);
}

@keyframes titleFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* ========== 转盘区 ========== */
.wheel-section {
  position: relative;
  display: flex; justify-content: center;
  padding: 22px 0 12px;
  animation: fadeUp .8s ease .1s both;
}
.wheel-box {
  position: relative;
  width: min(88vw, 360px);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}

/* 旋转光晕（盘后散射光线） */
.wheel-rays {
  position: absolute; inset: -22%; border-radius: 50%; z-index: 0;
  background: repeating-conic-gradient(from 0deg,
    rgba(255,214,100,.18) 0deg 3deg, transparent 3deg 24deg);
  filter: blur(1px); opacity: .75;
  animation: raySpin 48s linear infinite;
}

/* 金质外圈（金属环） */
.wheel-ring {
  position: absolute; inset: -4%; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 200deg,
    #FFE082, #FFB300, #FFF6D1, #FF8F00, #FFCA28, #FFD54F, #FFE082);
  box-shadow:
    0 14px 34px rgba(0,0,0,.38),
    0 0 34px rgba(255,160,30,.42),
    inset 0 0 0 2px rgba(255,255,255,.28);
}
.wheel-ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: linear-gradient(180deg, #8E1B0E, #5E1209);
  box-shadow: inset 0 0 10px rgba(0,0,0,.55);
}

/* 跑马灯灯泡（JS 注入 .lamp） */
.lamp-ring { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.lamp {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFCEF, #FFCA28 55%, #FF8F00);
  box-shadow: 0 0 5px 1px rgba(255,214,100,.95), 0 0 11px 3px rgba(255,170,30,.5);
  transform: rotate(calc(var(--i, 0) * 1turn / var(--n, 16))) translateY(calc(var(--lamp-r, 160px) * -1));
  animation: lampBlink var(--lamp-dur, 1.5s) linear infinite;
  animation-delay: calc(var(--lamp-dur, 1.5s) / var(--n, 16) * var(--i, 0) * -1);
}
.lamp-ring.is-fast { --lamp-dur: .28s; }
@keyframes lampBlink {
  0%, 100% { opacity: 1; filter: brightness(1.3); }
  50%      { opacity: .22; filter: brightness(.55); }
}

.wheel-canvas {
  position: relative; z-index: 3;
  width: 92%; height: 92%;
  border-radius: 50%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.3));
}

/* 顶部指针（金边红芯 + 光晕） */
.wheel-pointer {
  position: absolute; top: -7%; left: 50%; z-index: 5;
  width: 34px; height: 46px; margin-left: -17px;
  background: linear-gradient(180deg, #FFD54F, #FFB300);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)) drop-shadow(0 0 9px rgba(255,180,40,.7));
  animation: pointerGlow 2.2s ease-in-out infinite;
}
.wheel-pointer::before {
  content: ""; position: absolute; inset: 4px 4px 0 4px;
  background: linear-gradient(180deg, #EF5350, #C62828);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.wheel-pointer::after {
  content: ""; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF6D1, #FFCA28 58%, #FF8F00);
  box-shadow: 0 2px 5px rgba(0,0,0,.35), inset 0 -2px 4px rgba(150,60,0,.45);
}
@keyframes pointerGlow {
  0%, 100% { filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)) drop-shadow(0 0 6px rgba(255,180,40,.55)); }
  50%      { filter: drop-shadow(0 3px 5px rgba(0,0,0,.4)) drop-shadow(0 0 13px rgba(255,200,80,.95)); }
}

/* 中心按钮（金质立体 + 呼吸光 + 高光扫光） */
.wheel-center {
  position: absolute; z-index: 6;
  width: 22%; aspect-ratio: 1 / 1;
  border: none; border-radius: 50%;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #FFF6D1, #FFD54F 44%, #FFB300 72%, #FB8C00);
  color: #B71C1C;
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.8),
    inset 0 -6px 10px rgba(150,60,0,.5),
    0 6px 0 #B0640C,
    0 11px 18px rgba(0,0,0,.3);
  filter: drop-shadow(0 0 8px rgba(255,180,40,.6));
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
  animation: centerGlow 2.6s ease-in-out infinite;
}
.wheel-center::before {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 50%; height: 100%; z-index: 1;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: shine 3.8s ease-in-out infinite;
}
.wheel-center .wc-text,
.wheel-center .wc-count { position: relative; z-index: 2; }
.wheel-center:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.8),
    inset 0 -6px 10px rgba(150,60,0,.5),
    0 2px 0 #B0640C,
    0 4px 10px rgba(0,0,0,.3);
}
.wheel-center:disabled {
  filter: grayscale(.55) brightness(.85);
  cursor: not-allowed; animation: none;
}
.wc-text { font-size: 23px; font-weight: 900; letter-spacing: 2px; text-shadow: 0 1px 1px rgba(255,255,255,.5); }
.wc-count { font-size: 12px; font-weight: 700; opacity: .85; margin-top: 2px; }

@keyframes centerGlow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,170,30,.35)); }
  50%      { filter: drop-shadow(0 0 15px rgba(255,200,70,.9)); }
}
@keyframes shine { 0% { left: -60%; } 58%, 100% { left: 150%; } }
@keyframes raySpin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 两侧装饰（已弱化：突出转盘主体） */
.wheel-decor { display: none; }
.wheel-decor-left, .wheel-decor-right { display: none; }
.wheel-decor-left { left: -6px; }
.wheel-decor-right { right: -6px; transform: scaleX(-1); }
.wheel-decor::before {
  content: ""; position: absolute; bottom: 10px; left: 10px;
  width: 36px; height: 36px;
  background: radial-gradient(circle at 35% 30%, #FFE082, #FF8F00);
  border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.wheel-decor::after {
  content: ""; position: absolute; bottom: 14px; left: 8px;
  width: 40px; height: 70px;
  background: linear-gradient(180deg, #FFCC80, #FF8F00);
  border-radius: 20px 20px 10px 10px; opacity: .55;
}

/* ========== 获取抽奖次数 ========== */
.action-section {
  padding: 22px 14px 16px; text-align: center;
  animation: fadeUp .7s ease .2s both;
}
.btn-get {
  position: relative; overflow: hidden;
  width: 100%; padding: 15px 0;
  font-size: 18px; font-weight: 800; letter-spacing: 1px; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  background: linear-gradient(180deg, #FF7043, #E53935);
  border: none; border-radius: 999px;
  box-shadow: 0 6px 0 #A8171B, 0 10px 20px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-get::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.4s ease-in-out infinite;
}
.btn-get:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #A8171B, 0 4px 10px rgba(0,0,0,.22);
}
@keyframes btnShine { 0% { left: -60%; } 55%, 100% { left: 150%; } }

.action-path {
  font-size: 12px; color: #fff; line-height: 1.6; opacity: .92;
  margin: 12px 0 0;
}

/* ========== 任务卡片 ========== */
.task-section {
  padding: 0 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.task-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,248,231,.94));
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(0,0,0,.12);
  overflow: hidden;
  animation: fadeUp .6s ease both;
}
.task-card:nth-child(1) { animation-delay: .25s; }
.task-card:nth-child(2) { animation-delay: .34s; }
.task-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, #FFCA28, #E53935);
}
.task-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #5D2410;
  border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #FFF3C4, #FFCA28 60%, #FF8F00);
  box-shadow: inset 0 -3px 6px rgba(150,60,0,.35), 0 2px 5px rgba(0,0,0,.15);
}
.task-body { flex: 1; }
.task-title { margin: 0 0 6px; font-size: 14px; color: #5D2410; line-height: 1.4; }
.task-em { color: #E53935; font-weight: 800; }
.task-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; color: #fff;
  padding: 3px 11px;
  background: linear-gradient(90deg, #FF7043, #E53935);
  border-radius: 999px;
}

/* ========== 品牌区 ========== */
.brand-section {
  padding: 0 14px 16px;
  animation: fadeUp .7s ease .3s both;
}
.brand-title {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: #fff;
  margin-bottom: 14px; letter-spacing: 1px;
}
.brand-line {
  display: block; width: 42px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,224,130,.85), transparent);
}
.brand-grid {
  display: flex; justify-content: space-around;
  padding: 18px 10px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  backdrop-filter: blur(4px);
}
.brand-item { text-align: center; color: #fff; }
.brand-icon {
  width: 38px; height: 38px; margin: 0 auto 6px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #B71C1C;
  background: radial-gradient(circle at 35% 30%, #FFF6D1, #FFCA28 60%, #FF8F00);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.brand-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.brand-desc { font-size: 11px; opacity: .85; }

/* ========== 底部提示 ========== */
.risk-tip {
  text-align: center;
  font-size: 12px; color: rgba(255,255,255,.78);
  padding: 8px 0 20px; letter-spacing: 1px;
}

/* ========== 弹窗公共 ========== */
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  background: rgba(40,6,4,.7);
  backdrop-filter: blur(3px);
  padding: 20px;
}
.modal-mask.show { display: flex; animation: maskIn .2s ease; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }

.confetti-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* 中奖弹窗旋转光线 */
.modal-rays {
  position: absolute; left: 50%; top: 42%;
  width: 160vmax; height: 160vmax; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(255,214,100,.12) 0deg 4deg, transparent 4deg 24deg);
  animation: raySpin 30s linear infinite;
  opacity: 0; transition: opacity .45s; pointer-events: none;
}
.modal-mask.show .modal-rays { opacity: 1; }

.modal-card {
  position: relative; z-index: 2;
  width: min(82vw, 340px);
  padding: 30px 22px 24px;
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFF8E7, #FFE8C2);
  border: 2px solid rgba(255,200,80,.7);
  box-shadow: 0 18px 44px rgba(0,0,0,.34), 0 0 30px rgba(255,180,40,.35);
  animation: cardPop .4s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes cardPop { from { opacity: 0; transform: scale(.8) translateY(22px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-close {
  position: absolute; top: 8px; right: 12px;
  width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.08); color: #8D6E63;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal-tag { font-size: 14px; color: var(--c-text-light); margin-bottom: 8px; }
.modal-icon {
  width: 132px; height: 132px; margin: 6px auto 10px;
  border-radius: 16px; overflow: hidden;
  display: grid; place-items: center;
  background: #FFF3C4;
  box-shadow: 0 8px 20px rgba(0,0,0,.28), 0 0 0 4px rgba(255,255,255,.7), 0 0 0 7px rgba(255,200,80,.85);
}
.modal-prize-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-prize-fallback {
  font-size: 46px; font-weight: 900; color: #B71C1C;
  background: radial-gradient(circle at 35% 30%, #FFF3C4, #FFCA28 55%, #FF8F00);
  width: 100%; height: 100%; display: grid; place-items: center;
}
.modal-prize-name {
  margin: 6px 0 6px;
  font-size: 25px; font-weight: 900;
  background: linear-gradient(180deg, #FF8F00, #E53935);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.modal-prize-desc { margin: 0 0 18px; font-size: 13px; color: var(--c-text-light); }
.modal-btn {
  position: relative; overflow: hidden;
  width: 100%; padding: 13px 0;
  font-size: 16px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.22);
  background: linear-gradient(180deg, #FF7043, #E53935);
  border: none; border-radius: 999px;
  box-shadow: 0 5px 0 #C62828, 0 7px 14px rgba(0,0,0,.16);
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.modal-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #C62828, 0 3px 8px rgba(0,0,0,.16); }
.modal-btn--ghost {
  margin-top: 10px;
  color: #E53935; background: transparent;
  border: 1px solid #E53935; box-shadow: none;
}

/* 规则弹窗 */
.modal-card--rule { text-align: left; }
.rule-title { text-align: center; font-size: 18px; font-weight: 800; color: #E53935; margin: 0 0 14px; }
.rule-body { font-size: 13px; line-height: 1.8; color: var(--c-text); max-height: 50vh; overflow-y: auto; }
.rule-body p { margin: 0 0 8px; }

/* 中奖记录 */
.record-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; margin-bottom: 8px;
  background: rgba(255,255,255,.78);
  border-radius: 12px;
}
.record-item .ri-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #B71C1C;
  background: radial-gradient(circle at 35% 30%, #FFF3C4, #FFCA28 60%, #FF8F00);
  box-shadow: 0 0 0 1px rgba(255,200,80,.7), 0 2px 5px rgba(0,0,0,.12);
}
.record-item .ri-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.record-item .ri-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.record-item .ri-name {
  font-size: 14px; font-weight: 700; color: var(--c-text); line-height: 1.35;
  word-break: break-word; white-space: normal;
}
.record-item .ri-time { font-size: 11px; color: var(--c-text-light); }
.record-item .ri-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #E53935; color: #fff; }
.record-empty { text-align: center; color: var(--c-text-light); font-size: 13px; padding: 24px 0; }

/* 我的奖励：当前激活账号行 */
.reward-account {
  font-size: 12px; color: var(--c-text-light);
  background: rgba(255,200,80,.18);
  border: 1px dashed rgba(255,143,0,.5);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
}

/* ========== 兑换码激活弹窗 ========== */
.auth-input {
  display: block; width: 100%;
  padding: 13px 14px;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  color: var(--c-text); text-align: center;
  background: #fff;
  border: 2px solid rgba(255,143,0,.55);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.auth-input:focus { border-color: #E53935; box-shadow: 0 0 0 3px rgba(229,57,53,.15); }
.auth-input::placeholder { color: #C9A98F; letter-spacing: 0; font-weight: 400; }
/* 图形验证码行 */
.auth-captcha { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.auth-captcha-input {
  flex: 1; min-width: 0;
  padding: 11px 10px;
  font-size: 16px; font-weight: 700; letter-spacing: 4px;
  color: var(--c-text); text-align: center; text-transform: uppercase;
  background: #fff;
  border: 2px solid rgba(255,143,0,.55);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.auth-captcha-input:focus { border-color: #E53935; box-shadow: 0 0 0 3px rgba(229,57,53,.15); }
.auth-captcha-input::placeholder { color: #C9A98F; letter-spacing: 0; font-weight: 400; }
.auth-captcha-img {
  width: 110px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255,143,0,.4);
  background: #FFF6E0;
  cursor: pointer;
  visibility: hidden;
}
.auth-captcha-refresh {
  width: 34px; height: 44px; flex-shrink: 0;
  border: none; border-radius: 10px;
  background: linear-gradient(180deg, #FFE8A0, #FFB300);
  color: #7A1410; font-size: 13px; font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.auth-captcha-refresh:active { transform: scale(.95); }
.auth-current {
  margin-top: 10px;
  font-size: 12px; color: #8E1B0E;
  background: rgba(255,200,80,.28);
  border-radius: 8px;
  padding: 7px 10px;
}
.auth-current + .modal-btn { margin-top: 14px; }
#authModal .modal-btn { margin-top: 16px; }
#authModal .modal-btn:disabled { filter: grayscale(.4) brightness(.92); cursor: not-allowed; }

/* ========== Toast ========== */
.toast-box {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 99;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
  padding: 0 24px;
}
.toast {
  max-width: 86%;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  color: #FFF3C4; text-align: center;
  background: rgba(90,14,8,.92);
  border: 1px solid rgba(255,200,80,.65);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.32);
  animation: toastIn .25s ease both;
}
.toast-success {
  color: #5D2410;
  background: linear-gradient(180deg, #FFF3C4, #FFCA28);
  border-color: rgba(255,143,0,.6);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ========== 演示模式角标 ========== */
.mock-badge {
  position: fixed; left: 10px; bottom: 10px; z-index: 99;
  padding: 3px 9px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* ========== 页面初始化 Loading 遮罩 ========== */
.page-loading-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255,200,90,.3), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(60,10,6,.8), transparent 60%),
    linear-gradient(180deg, #7A1410 0%, #971F15 50%, #7A1410 100%);
  opacity: 1;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loading-mask.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loading-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 40px;
  background: rgba(93, 16, 12, 0.76);
  border: 1px solid rgba(255, 213, 79, 0.45);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 235, 160, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}
.page-loading-spinner {
  position: relative;
  width: 54px; height: 54px;
  margin-bottom: 16px;
}
.spinner-ring {
  box-sizing: border-box;
  width: 100%; height: 100%;
  border: 3.5px solid rgba(255, 213, 79, 0.22);
  border-top-color: #FFCA28;
  border-right-color: #FFE082;
  border-radius: 50%;
  animation: spinnerRotate 0.9s linear infinite;
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.4);
}
.spinner-core {
  position: absolute; inset: 13px;
  background: linear-gradient(135deg, #FFE082, #FF8F00);
  border-radius: 50%;
  animation: corePulse 1.4s ease-in-out infinite alternate;
}
.page-loading-text {
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  color: #FFF3C4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 6px;
}
.page-loading-sub {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px;
  color: rgba(255, 243, 196, 0.75);
}

/* 全局 [hidden] 强隐保障：防止 Class display 规则覆盖 HTML hidden 属性 */
[hidden] {
  display: none !important;
}

/* ========== 大转盘抽奖校验 Loading 遮罩 ========== */
.wheel-loading-mask {
  position: absolute; inset: 0; z-index: 15;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(110, 16, 8, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: inset 0 0 24px rgba(0,0,0,.6), 0 0 16px rgba(255, 200, 80, 0.35);
}
.wheel-loading-mask:not([hidden]) {
  display: flex;
  animation: wheelLoadingFadeIn .25s ease both;
}
.wheel-loading-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px;
  text-align: center;
}
.wheel-loading-spinner {
  position: relative;
  width: 44px; height: 44px;
  margin-bottom: 12px;
}
.wls-ring {
  box-sizing: border-box;
  width: 100%; height: 100%;
  border: 3px solid rgba(255, 224, 130, 0.22);
  border-top-color: #FFE082;
  border-right-color: #FFB300;
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
  box-shadow: 0 0 12px rgba(255, 179, 0, 0.5);
}
.wls-core {
  position: absolute; inset: 10px;
  background: radial-gradient(circle, #FFE8A0 0%, #FF8F00 100%);
  border-radius: 50%;
  animation: corePulse 1.2s ease-in-out infinite alternate;
}
.wheel-loading-text {
  font-size: 14px; font-weight: 800; letter-spacing: 1px;
  color: #FFF3C4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
}
.wheel-loading-sub {
  font-size: 11px; font-weight: 500;
  color: rgba(255, 243, 196, 0.8);
}

/* 记录与按钮加载态 */
.record-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 24px 0; font-size: 13px; color: var(--c-text-light);
}
.mini-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(138, 90, 58, 0.25);
  border-top-color: var(--c-text-light);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes corePulse {
  0% { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}
@keyframes wheelLoadingFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
