/* ============================================================
   安心购彩 守护热爱 · 世界杯科普答题挑战赛
   前台样式 · 绿茵金辉主题
   ============================================================ */
:root {
  --g-deep: #072e17;
  --g-dark: #0a3d1f;
  --g-mid: #0f5c2e;
  --g-bright: #1e8f4a;
  --g-glow: #2fae5f;
  --gold-1: #fff3c4;
  --gold-2: #ffd964;
  --gold-3: #f0b93b;
  --gold-4: #c98a1b;
  --gold-deep: #5b3d00;
  --cream: #fdf9ec;
  --cream-2: #f6efd8;
  --ink: #1c3a27;
  --ink-2: #4a6353;
  --red: #e03e3e;
  --shadow: 0 10px 28px rgba(4, 30, 15, .45);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--g-deep);
  min-height: 100vh;
}
/* 球场背景：草坪条纹 + 顶部灯光 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -8%, rgba(120, 255, 170, .28), transparent 60%),
    radial-gradient(70% 40% at 8% 4%, rgba(255, 240, 160, .12), transparent 65%),
    radial-gradient(70% 40% at 92% 4%, rgba(255, 240, 160, .12), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 44px, transparent 44px 88px),
    linear-gradient(175deg, #0d4a25 0%, #0a3d1f 34%, #08331a 70%, #072e17 100%);
}
.wrap { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ------------ 顶栏（子页面） ------------ */
.topbar { display: flex; align-items: center; height: 50px; padding: 0 10px; color: #fff; }
.topbar .back {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); font-size: 18px; color: #fff; border: 1px solid rgba(255, 255, 255, .18);
}
.topbar .tb-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; letter-spacing: 2px; margin-right: 34px; }

/* ------------ 通用卡片 ------------ */
.card {
  background: var(--cream); border-radius: 18px; padding: 18px 16px; margin: 0 14px 16px;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(201, 138, 27, .25);
  border: 3px solid #e9d9a6;
}
.card.plain { border: none; box-shadow: var(--shadow); }

/* 章节标题：金边绿底胶囊 */
.sec-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; margin: 0 auto 14px; padding: 8px 30px;
  background: linear-gradient(135deg, #16713a, #1e8f4a);
  border: 2px solid var(--gold-2); border-radius: 999px;
  color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  position: relative;
}
.sec-title::before, .sec-title::after { content: "★"; font-size: 11px; color: var(--gold-2); }
.sec-title.sm { font-size: 15px; letter-spacing: 1px; padding: 9px 20px; max-width: 92%; text-align: center; line-height: 1.7; }

/* ------------ 按钮 ------------ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: none; border-radius: 14px; padding: 14px 18px; font-size: 17px; font-weight: 800;
  cursor: pointer; letter-spacing: 2px; transition: transform .12s ease, filter .12s ease;
  font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(180deg, #ffe9a0 0%, var(--gold-2) 45%, var(--gold-3) 100%);
  color: var(--gold-deep);
  box-shadow: 0 6px 0 #b07f18, 0 12px 22px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .7);
}
.btn-green {
  background: linear-gradient(180deg, #23a355 0%, #157a3c 100%);
  color: #fff; box-shadow: 0 6px 0 #0a4d24, 0 12px 22px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 233, 160, .55);
}
.btn-ghost {
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: none; font-weight: 600;
}
.btn[disabled] { filter: grayscale(.55) brightness(.85); pointer-events: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; width: auto; letter-spacing: 1px; }

/* ============================================================
   首页（默认设计版）
   ============================================================ */
.hero { text-align: center; padding: 58px 18px 6px; color: #fff; position: relative; overflow: hidden; }
.hero .org-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 22px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 46, 23, .9), rgba(16, 92, 46, .9));
  border: 1.5px solid var(--gold-2); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--gold-1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.hero .year {
  position: absolute; top: 14px; right: 16px; font-size: 22px; font-weight: 900; font-style: italic;
  color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); letter-spacing: 1px;
}
.hero h1 {
  margin: 22px 0 0; font-size: 52px; line-height: 1.22; font-weight: 900; letter-spacing: 6px;
  background: linear-gradient(180deg, #fffbe8 18%, #ffe483 52%, #f4b62e 88%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px rgba(62, 36, 0, .55)) drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}
.hero .sub-banner {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 9px 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 100, .18) 18%, rgba(255, 217, 100, .18) 82%, transparent);
  border-top: 1.5px solid rgba(255, 217, 100, .7); border-bottom: 1.5px solid rgba(255, 217, 100, .7);
  font-size: 17px; font-weight: 800; letter-spacing: 2px; color: var(--gold-1); white-space: nowrap;
}
.hero .balls { font-size: 20px; }
.time-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 22px 14px 20px; padding: 12px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #0c5128, #147038);
  border: 2px solid var(--gold-2); color: var(--gold-1); font-size: 14.5px; font-weight: 700;
  box-shadow: var(--shadow); white-space: nowrap;
}
.rules-text { font-size: 14.5px; line-height: 2.05; color: var(--ink); text-align: justify; padding: 2px 4px; }

/* 首页：整张背景图 + 悬浮图片按钮（按钮区位置后台可调） */
.home-banner-img { display: block; width: 100%; }
.home-stage { position: relative; }
.home-stage .home-bg { display: block; width: 100%; }
.home-btns { position: absolute; left: 13.5%; width: 73%; }
.home-btns a.hb { display: block; margin-bottom: 4%; transition: transform .12s ease; }
.home-btns a.hb:active { transform: scale(.96); }
.home-btns img { width: 100%; display: block; }
.home-btns .hrow { display: flex; gap: 4%; }
.home-btns .hrow a.hb { flex: 1; margin-bottom: 0; }

/* 答题页主按钮 · 胶囊光泽造型（与首页金色块按钮差异化） */
.btn-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border-radius: 999px; padding: 13px 14px; font-size: 16px; font-weight: 800;
  letter-spacing: 1px; cursor: pointer; font-family: inherit; transition: transform .12s ease;
  white-space: nowrap;
}
.btn-cta:active { transform: scale(.97); }
.btn-cta .ci {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .28); font-size: 18px;
}
.btn-cta::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; width: 38px; left: -90px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: rotate(20deg);
  animation: cta-sweep 3s ease-in-out infinite;
}
@keyframes cta-sweep { 0% { left: -90px; } 55% { left: 115%; } 100% { left: 115%; } }
.btn-cta.cta-green {
  background: linear-gradient(135deg, #22a557, #0c6330); color: #fff;
  border: 2px solid #8fe0ae;
  box-shadow: 0 8px 18px rgba(6, 50, 25, .5), inset 0 -3px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .25);
}
.btn-cta.cta-gold {
  background: linear-gradient(135deg, #ffdf7e, #f2ae2a); color: #5b3d00;
  border: 2px solid #fff3c4;
  box-shadow: 0 8px 18px rgba(90, 60, 0, .35), inset 0 -3px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.btn-cta[disabled] { filter: grayscale(.55) brightness(.85); pointer-events: none; }

/* 任务卡 · 图片模式 */
.task-img {
  flex: 1; position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3); transition: transform .12s ease;
}
.task-img:active { transform: scale(.96); }
.task-img img { width: 100%; display: block; }
.task-img.done { filter: grayscale(.65); opacity: .82; }
.task-img .done-badge {
  position: absolute; top: 8px; right: 8px; background: #1e8f4a; color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 99px;
}

/* 大转盘 · 图片模式 */
.wheel-hero { position: relative; }
.wheel-hero .wh-bg { display: block; width: 100%; }
.wh-stage { position: absolute; left: 10%; width: 80%; top: 37%; }
.wh-stage .disc { width: 100%; display: block; }
.wh-go {
  position: absolute; left: 50%; top: 50%; width: 30%;
  transform: translate(-50%, -55.5%);
  background: none; border: none; padding: 0; cursor: pointer;
}
.wh-go img { width: 100%; display: block; }
.wh-go[disabled] { filter: brightness(.85); }
.wh-more { position: absolute; left: 50%; transform: translateX(-50%); top: 88%; width: 68%; }
.wh-more img { width: 100%; display: block; }
.topbar.float { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }

/* 中奖记录滚动列表 */
.win-scroll { max-height: 396px; overflow: hidden; position: relative; }
.win-scroll ul { list-style: none; }
.win-scroll.rolling ul { animation: win-roll var(--dur, 30s) linear infinite; }
@keyframes win-roll { to { transform: translateY(-50%); } }
.win-scroll li {
  display: flex; align-items: center; gap: 10px; padding: 11px 6px;
  border-bottom: 1px dashed #e5dbb8; font-size: 14.5px;
}
.win-scroll li .wp { flex: 1; font-weight: 700; color: var(--ink); }
.win-scroll li .wn { color: #c96a10; font-weight: 700; }
.win-scroll li .wd { font-size: 12px; color: var(--ink-2); }

/* 活动入口按钮 */
.entry-btns { padding: 2px 4px; }
.entry-btn {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; margin-bottom: 14px;
  background: linear-gradient(180deg, #ffedad 0%, #ffd964 55%, #f2bb3e 100%);
  border-radius: 16px; border: 2px solid #fff3c4;
  box-shadow: 0 5px 0 #b07f18, 0 10px 20px rgba(0, 0, 0, .3), inset 0 2px 0 rgba(255, 255, 255, .8);
  transition: transform .12s ease;
}
.entry-btn:active { transform: scale(.97); }
.entry-btn:last-child { margin-bottom: 2px; }
.entry-btn .ico { font-size: 30px; }
.entry-btn .txt { flex: 1; font-size: 18px; font-weight: 900; color: #33430b; letter-spacing: 1px; text-align: center; white-space: nowrap; }
.entry-btn .go {
  min-width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, #2fae5f, #0d5229 78%); color: #ffefad;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; border: 2px solid var(--gold-2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

/* 特别声明 */
.notice-list { counter-reset: n; }
.notice-list li {
  list-style: none; position: relative; padding: 5px 0 5px 30px; font-size: 13.8px; line-height: 1.75; color: var(--ink);
}
.notice-list li::before {
  counter-increment: n; content: counter(n);
  position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #157a3c, #1e8f4a); color: #ffe9a0;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.notice-list li.warn { color: var(--red); font-weight: 700; }
.notice-list li.warn::before { background: linear-gradient(135deg, #c22, #e05252); color: #fff; }

/* 底部红色警示 */
.warn-card {
  margin: 0 14px 18px; border-radius: 18px; padding: 18px 16px; color: #fff;
  background: linear-gradient(135deg, #8f1d1d, #c22b2b);
  border: 3px solid #ffb3a0; box-shadow: var(--shadow); text-align: center;
}
.warn-card .wt { font-size: 21px; font-weight: 900; letter-spacing: 2px; margin-bottom: 10px; }
.warn-card .wt .no { display: inline-block; transform: translateY(2px); margin-right: 6px; }
.warn-card p { font-size: 13.5px; line-height: 1.9; text-align: left; }
.warn-card p .tag { margin-right: 6px; }

.tech-support { text-align: center; padding: 6px 20px 0; }
.tech-support a { font-size: 11px; color: rgba(255, 255, 255, .32); letter-spacing: .3px; }
.tech-support a:active { color: rgba(255, 255, 255, .5); }

.footer-note { text-align: center; color: rgba(255, 255, 255, .85); font-size: 14.5px; font-weight: 600; padding: 10px 20px 0; line-height: 1.8; }

/* ============================================================
   答题首页
   ============================================================ */
.quiz-cover {
  margin: 12px 14px 16px; border-radius: 18px; overflow: hidden; position: relative;
  border: 3px solid var(--gold-2); box-shadow: var(--shadow);
}
.quiz-cover img { width: 100%; }
.quiz-cover .cover-cg {
  padding: 34px 20px 30px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -22%, rgba(140, 255, 185, .32), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 30px, transparent 30px 60px),
    linear-gradient(160deg, #12602f, #0b4321 75%);
}
.quiz-cover .cover-cg .co { font-size: 12.5px; letter-spacing: 3px; color: var(--gold-1); opacity: .9; }
.quiz-cover .cover-cg h2 {
  font-size: min(27px, 7vw); font-weight: 900; letter-spacing: 3px; margin: 10px 0 12px;
  background: linear-gradient(180deg, #fffbe8 20%, #ffe483 55%, #f4b62e 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(62, 36, 0, .5));
}
.quiz-cover .cover-cg .line { font-size: 14px; letter-spacing: 5px; color: #d9f5e3; }
.quiz-cover .cover-cg .deco { position: absolute; font-size: 46px; opacity: .18; }

.chance-bar {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 14px 14px; padding: 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 217, 100, .5);
  color: #fff; font-size: 15px;
}
.chance-bar b { color: var(--gold-2); font-size: 20px; margin: 0 2px; }
.chance-bar .nick-edit { margin-left: 8px; font-size: 12.5px; color: var(--gold-1); border-bottom: 1px dashed var(--gold-1); opacity: .85; }

.quiz-actions { padding: 4px 2px 2px; }
.quiz-actions .btn { margin-bottom: 12px; }
.quiz-actions .btn:last-child { margin-bottom: 0; }

/* 任务卡 */
.task-row { display: flex; gap: 12px; margin: 0 14px 16px; }
.task-card {
  flex: 1; text-align: center; padding: 16px 10px; border-radius: 16px;
  background: linear-gradient(180deg, #ffedad, #f8ce58);
  border: 2px solid #fff3c4; box-shadow: 0 4px 0 #b07f18, 0 8px 18px rgba(0, 0, 0, .28);
  transition: transform .12s ease;
}
.task-card:active { transform: scale(.96); }
.task-card .t-ico { font-size: 30px; }
.task-card .t-name { font-size: 16px; font-weight: 800; color: #33430b; margin: 6px 0 3px; }
.task-card .t-tip { font-size: 12px; color: #7a6410; }
.task-card.done { filter: grayscale(.5); opacity: .75; }
.task-hint { text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px; margin: -4px 14px 12px; }
/* 任务页说明：深色药丸底，避免压在浅色长图上看不清 */
.task-hint.chip {
  background: rgba(7, 46, 23, .9); border: 1px solid rgba(255, 217, 100, .5);
  color: #ffe9a0; width: fit-content; max-width: 88%;
  margin: 20px auto 0; padding: 8px 18px; border-radius: 999px; font-size: 13.5px;
}

/* 排行榜 */
.rank-list { padding: 4px 2px; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed #e5dbb8; }
.rank-row:last-child { border-bottom: none; }
.rank-row .rk {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; background: #9db3a4; flex: none;
}
.rank-row.top1 .rk { background: linear-gradient(135deg, #ffd964, #e09b12); box-shadow: 0 2px 6px rgba(224, 155, 18, .5); }
.rank-row.top2 .rk { background: linear-gradient(135deg, #d9dee3, #97a5b3); }
.rank-row.top3 .rk { background: linear-gradient(135deg, #edb98a, #b96f35); }
.rank-row .rname { flex: 1; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .racc { font-size: 15px; font-weight: 800; color: var(--g-mid); }
.rank-row .rtime { font-size: 12.5px; color: var(--ink-2); min-width: 64px; text-align: right; }
.rank-empty { text-align: center; color: var(--ink-2); font-size: 14px; padding: 18px 0; }
.my-rank {
  margin: 10px 4px 2px; padding: 10px 14px; border-radius: 12px; background: #eef7ee;
  border: 1px dashed #9fcc9f; font-size: 13.5px; color: var(--g-mid); text-align: center;
}

/* ============================================================
   答题页
   ============================================================ */
.play-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 16px 12px; color: #fff; }
.play-head .prog { font-size: 15px; font-weight: 700; letter-spacing: 1px; }
.play-head .prog b { color: var(--gold-2); font-size: 22px; }
.play-head .timer {
  display: flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 217, 100, .5);
  font-size: 15px; font-weight: 700; color: var(--gold-1); font-variant-numeric: tabular-nums;
}
.prog-track { height: 8px; margin: 0 16px 16px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.prog-track .prog-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold-3)); transition: width .3s ease; }

.q-card { min-height: 320px; }
.q-title { font-size: 18.5px; font-weight: 800; line-height: 1.65; margin-bottom: 18px; }
.q-title .q-badge {
  display: inline-flex; align-items: center; justify-content: center; padding: 2px 10px; margin-right: 8px; border-radius: 8px;
  background: linear-gradient(135deg, #157a3c, #1e8f4a); color: #ffe9a0; font-size: 13px; vertical-align: 3px;
}
.opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 12px;
  background: #fff; border: 2px solid #e2d9ba; border-radius: 14px; cursor: pointer;
  font-size: 16px; line-height: 1.5; transition: all .15s ease;
}
.opt .letter {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: #eef3ea; color: var(--g-mid); font-weight: 800; font-size: 14px;
}
.opt.sel { border-color: var(--g-bright); background: #f0faf2; }
.opt.right { border-color: #2fae5f; background: #e8f8ee; }
.opt.right .letter { background: #2fae5f; color: #fff; }
.opt.wrong { border-color: #e05252; background: #fdeeee; }
.opt.wrong .letter { background: #e05252; color: #fff; }
.opt.dim { opacity: .55; }
.opt-fb { text-align: center; font-size: 14.5px; font-weight: 700; min-height: 22px; }
.opt-fb.good { color: #1e8f4a; }
.opt-fb.bad { color: #e05252; }

/* 成绩页 */
.result-card { text-align: center; padding-top: 26px; }
.score-ring {
  width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, var(--cream) 78%, transparent 79% 100%),
    conic-gradient(var(--gold-3) calc(var(--pct) * 1%), #e7dfc2 0);
}
.score-ring .sc { font-size: 44px; font-weight: 900; color: var(--g-mid); line-height: 1; }
.score-ring .sc small { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.score-ring .st { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.result-title { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.result-title.pass { color: #d8271c; }
.result-sub { font-size: 14px; color: var(--ink-2); line-height: 1.9; margin-bottom: 16px; }
.result-sub b { color: var(--g-mid); }

/* ============================================================
   大转盘
   ============================================================ */
.wheel-stage { position: relative; width: 320px; height: 320px; margin: 44px auto 6px; }
.wheel-stage .ring {
  position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, #1c8a46, #0b4321 72%);
  border: 3px solid var(--gold-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5), inset 0 0 24px rgba(0, 0, 0, .45);
}
.wheel-stage .dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-1); box-shadow: 0 0 8px rgba(255, 230, 150, .9); }
.wheel-stage canvas { position: absolute; inset: 0; border-radius: 50%; }
.wheel-pointer {
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%); z-index: 5;
  width: 0; height: 0; border: 16px solid transparent; border-top: 40px solid var(--gold-3);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4));
}
.wheel-pointer::after {
  content: ""; position: absolute; left: -10px; top: -38px; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3c4, var(--gold-3));
}
.wheel-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff3c4;
  background: radial-gradient(circle at 35% 28%, #ffe9a0, var(--gold-3) 70%);
  color: var(--gold-deep); font-size: 19px; font-weight: 900; letter-spacing: 2px; line-height: 1.4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .8); cursor: pointer;
  font-family: inherit;
}
.wheel-btn[disabled] { filter: grayscale(.5) brightness(.9); }
.draw-left { text-align: center; color: #fff; font-size: 15px; margin: 16px 0 4px; }
.draw-left b { color: var(--gold-2); font-size: 20px; }

/* 我的奖品 */
.myprize-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed #e5dbb8; font-size: 14px; }
.myprize-row:last-child { border-bottom: none; }
.myprize-row .pn { flex: 1; font-weight: 700; }
.myprize-row .ps { font-size: 12px; color: var(--ink-2); }
.myprize-row .fill-btn {
  padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, #ffe08a, #f0b93b);
  color: var(--gold-deep); font-size: 12.5px; font-weight: 700; border: none; cursor: pointer; font-family: inherit;
}
.myprize-row .ok-tag { font-size: 12px; color: #1e8f4a; font-weight: 700; }

/* ============================================================
   任务页（视频/图文）
   ============================================================ */
.media-box { margin: 0 14px 14px; border-radius: 16px; overflow: hidden; border: 3px solid var(--gold-2); box-shadow: var(--shadow); background: #000; }
.media-box video { width: 100%; display: block; max-height: 60vh; }
.count-pill {
  position: sticky; bottom: 96px; z-index: 5; width: fit-content; margin: 26px auto 0;
  padding: 9px 22px; border-radius: 999px; background: rgba(7, 46, 23, .92); border: 1.5px solid var(--gold-2);
  color: var(--gold-1); font-size: 14.5px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.claim-bar { position: sticky; bottom: 14px; z-index: 6; padding: 0 14px; margin-top: 22px; }
.claim-bar + .footer-note, .wrap .claim-bar ~ .footer-note { margin-top: 26px; }
.article-body { font-size: 15.5px; line-height: 2; }
.article-body h3 { color: var(--g-mid); margin: 14px 0 8px; font-size: 17px; }
.article-body p { margin-bottom: 10px; text-align: justify; }
.article-body img { border-radius: 10px; margin: 8px auto; }

/* 指南页 */
.guide-hero {
  margin: 12px 14px 16px; padding: 30px 20px; border-radius: 18px; text-align: center; color: #fff;
  background:
    radial-gradient(110% 80% at 50% -18%, rgba(140, 255, 185, .3), transparent 60%),
    linear-gradient(160deg, #12602f, #0b4321 78%);
  border: 3px solid var(--gold-2); box-shadow: var(--shadow);
}
.guide-hero .gt {
  font-size: 27px; font-weight: 900; letter-spacing: 3px;
  background: linear-gradient(180deg, #fffbe8 20%, #ffe483 55%, #f4b62e 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(62, 36, 0, .5));
}
.guide-hero .gs { font-size: 13px; letter-spacing: 3px; color: #d9f5e3; margin-top: 8px; }

/* ============================================================
   弹窗 / 提示
   ============================================================ */
.mask {
  position: fixed; inset: 0; z-index: 50; background: rgba(4, 22, 11, .72);
  display: flex; align-items: center; justify-content: center; padding: 26px;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.mask.show { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 380px; background: var(--cream); border-radius: 20px; padding: 22px 20px;
  border: 3px solid #e9d9a6; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: translateY(16px) scale(.96); transition: transform .22s ease; max-height: 82vh; overflow-y: auto;
}
.mask.show .modal { transform: none; }
.modal .m-title { text-align: center; font-size: 19px; font-weight: 900; color: var(--g-mid); margin-bottom: 14px; letter-spacing: 2px; }
.modal .m-body { font-size: 14.5px; line-height: 2; color: var(--ink); white-space: pre-wrap; }
.modal .m-close {
  display: block; margin: 18px auto 0; padding: 10px 44px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, #ffe08a, #f0b93b); color: var(--gold-deep);
  font-size: 15px; font-weight: 800; cursor: pointer; letter-spacing: 2px; font-family: inherit;
}
.modal .form-item { margin-bottom: 12px; }
.modal .form-item label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 5px; }
.modal .form-item input, .modal .form-item textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid #dcd2ae; border-radius: 10px;
  font-size: 15px; background: #fff; font-family: inherit;
}
.modal .form-item input:focus, .modal .form-item textarea:focus { outline: none; border-color: var(--g-bright); }

.prize-pop { text-align: center; }
.prize-pop .pp-ico { font-size: 60px; animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.3); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.prize-pop .pp-name { font-size: 21px; font-weight: 900; color: #d8271c; margin: 8px 0 4px; }
.prize-pop .pp-tip { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

#kp-toast {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%); z-index: 99;
  max-width: 78vw; padding: 11px 22px; border-radius: 999px; background: rgba(10, 30, 18, .92);
  color: #fff; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .25s;
  border: 1px solid rgba(255, 217, 100, .4);
}
#kp-toast.show { opacity: 1; }

/* 通用留白 */
.gap-8 { height: 8px; } .gap-16 { height: 16px; } .gap-24 { height: 24px; }
.center { text-align: center; }
