/* =========================================================
   每日 · 惊喜转盘（docs/产品文档/05-日常与回顾.md 第 23 章）
   入口 banner 沿用学习挑战那一族的通栏与圆角，但收成一条矮 banner；
   整页只有一层盘面 + 一行今日状态 + 一个光点落点。配色走 18 章视觉令牌，金色只留给能量。
   ========================================================= */

/* ---------- 入口 banner ---------- */
.sp-card{margin-bottom:12px}
.sp-banner{display:flex;align-items:center;gap:12px;width:100%;min-height:128px;padding:14px 16px;
  border:0;border-radius:22px;text-align:left;font:inherit;color:#fff;cursor:pointer;
  background:linear-gradient(120deg,#1f4a35,#3f7d58 62%,#5b9c72);
  box-shadow:0 6px 18px rgba(31,74,53,.16);transition:transform .15s,box-shadow .15s}
.sp-banner:active{transform:scale(.99)}
.sp-banner:focus-visible{outline:2px solid #2f7a4f;outline-offset:3px}
.sp-banner.is-off{background:linear-gradient(120deg,#4a5348,#6b7366);cursor:default;box-shadow:none}
.sp-banner.is-off:active{transform:none}
.sp-art{width:64px;height:64px;flex:none}
.sp-banner.is-ready .sp-art{animation:sp-art-turn 9s linear infinite}
@keyframes sp-art-turn{to{transform:rotate(360deg)}}
.sp-banner-txt{flex:1 1 auto;min-width:0}
.sp-banner-kicker{font-size:11px;letter-spacing:.14em;opacity:.76}
.sp-banner-title{font-size:16px;font-weight:700;line-height:1.3;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sp-banner-sub{font-size:12px;line-height:1.5;margin-top:6px;opacity:.92}
.sp-banner-cta{flex:none;display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border-radius:999px;
  background:#fff;color:#1f4a35;font-size:13px;font-weight:600}
.sp-banner-cta svg{width:12px;height:12px}
.sp-banner-flag{flex:none;width:22px;height:22px;color:#ffe4b3}
.sp-banner-flag svg{width:22px;height:22px}

/* ---------- 整页 ---------- */
.sp-page{display:flex;flex-direction:column;align-items:center;padding:6px 0 8px;position:relative}
.sp-empty{padding:40px 16px;font-size:13px;color:var(--ink-3);text-align:center;line-height:1.7}
.sp-stage{position:relative;width:min(320px,84vw);aspect-ratio:1;margin-top:6px}
.sp-wheel{position:absolute;inset:16px;border-radius:50%;overflow:hidden;will-change:transform;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.14),0 12px 26px rgba(30,40,25,.22)}
.sp-wheel svg{width:100%;height:100%;display:block}
/* 走马灯：米黄扇面 + 木色框，交替深一档 */
.sp-sec{fill:#f0e3c4;stroke:#b8873f;stroke-width:1.2}
.sp-sec.alt{fill:#e6d3ab}
/* 获奖那一格：亮一档 + 一圈暖光；其余压到三分之一，一眼能看出停在哪 */
.sp-sec.win{fill:#fdf4dd;stroke:#c8912f;stroke-width:2.6;filter:drop-shadow(0 0 7px rgba(240,190,90,.6))}
.sp-sec.dim{opacity:.32}
.sp-rim{fill:none;stroke:#8f5a24;stroke-width:8}
.sp-labels{position:absolute;inset:0}
.sp-sec-label{position:absolute;left:50%;top:50%;width:138px;height:28px;margin-top:-14px;transform-origin:0 14px;
  display:flex;align-items:center;justify-content:flex-end;padding-right:14px;pointer-events:none;
  font-size:13px;font-weight:700;color:#3c2f18;line-height:1}
.sp-sec-label.flip span{transform:rotate(180deg)}
.sp-pointer{position:absolute;left:50%;top:-4px;margin-left:-11px;width:22px;height:30px;z-index:4;transform-origin:50% 6px;
  filter:drop-shadow(0 2px 3px rgba(60,40,10,.35))}
.sp-pointer svg{width:22px;height:30px;display:block}
.sp-pointer.tick{animation:sp-tick .12s ease-out}
@keyframes sp-tick{0%{transform:rotate(0)}40%{transform:rotate(9deg)}100%{transform:rotate(0)}}
.sp-rays{position:absolute;inset:-10px;border-radius:50%;pointer-events:none;opacity:0;transition:opacity .4s;
  background:conic-gradient(from 0deg,rgba(255,225,150,.5),transparent 12%,rgba(255,225,150,.42) 24%,transparent 36%,
    rgba(255,225,150,.5) 48%,transparent 60%,rgba(255,225,150,.4) 72%,transparent 84%,rgba(255,225,150,.5) 96%);
  -webkit-mask:radial-gradient(circle,transparent 46%,#000 52%,#000 62%,transparent 68%);
          mask:radial-gradient(circle,transparent 46%,#000 52%,#000 62%,transparent 68%)}
.sp-rays.on{opacity:.85;animation:sp-rays-spin 20s linear infinite}
@keyframes sp-rays-spin{to{transform:rotate(360deg)}}
.sp-hub{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border:0;border-radius:50%;
  font:inherit;font-size:19px;font-weight:800;color:#1f4a35;cursor:pointer;
  background:radial-gradient(circle at 34% 30%,#fffdf3,#f0e6cd 60%,#d9c9a2);
  box-shadow:0 8px 18px rgba(30,40,25,.3),inset 0 0 0 2px rgba(31,74,53,.16)}
.sp-hub:active:not(:disabled){transform:scale(.94)}
.sp-hub:disabled{color:#8b8877;cursor:default}
.sp-hub.pop{animation:sp-hub-pop .28s cubic-bezier(.18,1.5,.42,1)}
@keyframes sp-hub-pop{0%{transform:scale(1.05)}100%{transform:scale(1)}}
.sp-state{margin-top:18px;font-size:14px;color:var(--ink-2);text-align:center;min-height:20px}
.sp-state.is-done{color:var(--ink)}
.sp-retry{display:inline-flex;align-items:center;gap:6px;border:0;background:none;font:inherit;font-size:14px;
  color:var(--ink-2);cursor:pointer;padding:6px 8px}
.sp-retry svg{width:16px;height:16px;color:#c98a2b}
/* 光点落点：这一页没有 3D 树，用一枚小树标记接住 */
.sp-tree{width:44px;height:56px;margin:14px auto 0}
.sp-tree svg{width:44px;height:56px;display:block}

/* ---------- 结果卡的四色（能量金 / 果实红 / 草药与魔法粉各一档） ---------- */
.tge-gather.sp-energy{--c1:#fff3c9;--c2:#f3c34e;--c3:#e0a52c;--glow:rgba(243,195,78,.55);--ring:rgba(243,195,78,.85)}
.tge-gather.sp-fruits{--c1:#ffe6dd;--c2:#e2664f;--c3:#c94b38;--glow:rgba(226,102,79,.5);--ring:rgba(226,102,79,.8)}
.tge-gather.sp-herb{--c1:#dff0e0;--c2:#5fa471;--c3:#3f7d58;--glow:rgba(95,164,113,.45);--ring:rgba(95,164,113,.8)}
.tge-gather.sp-powder{--c1:#e9e0f7;--c2:#9c7fd0;--c3:#7a5aa8;--glow:rgba(156,127,208,.45);--ring:rgba(156,127,208,.8)}
.tge-gather.sp-none{--c1:#eef0e9;--c2:#a9b6a2;--c3:#8fa07f;--glow:rgba(143,160,127,.35);--ring:rgba(143,160,127,.7)}
/* 安静卡：没拿到东西不出光束亮斑，圆盘也换成中性色 */
.tge-prize.sp-quiet .tge-prize-icon{background:radial-gradient(circle at 50% 42%,#f2f4ee,#e3e8de 72%);box-shadow:0 8px 22px rgba(90,110,85,.16)}

/* ---------- 平板与横屏：盘面别被拉大，保持手机上的手感 ---------- */
@media (min-width:900px){
  .sp-stage{width:340px}
  .sp-banner{min-height:132px;padding:16px 20px}
  .sp-banner-title{font-size:17px}
}
@media (max-height:520px) and (orientation:landscape){
  .sp-stage{width:min(300px,62vh)}
  .sp-tree{margin-top:6px}
  .sp-state{margin-top:10px}
}

/* ---------- 减少动效：留形状不留循环（转盘直接出结果，指针与光束不跑） ---------- */
@media (prefers-reduced-motion:reduce){
  .sp-banner.is-ready .sp-art,.sp-rays.on,.sp-pointer.tick,.sp-hub.pop,.tge-gather-dot,.tge-gather-ring,.tge-gather-flash{animation:none}
  .sp-rays{transition:none}
}
