/* ---------- 回到原点：小罗盘按钮 ---------- */
.pan-handle>span{width:calc(34px * var(--ui-scale,1))!important;height:calc(34px * var(--ui-scale,1))!important;border-radius:50%;
  background:linear-gradient(160deg,#fffdf9,#f1ebe3)!important;box-shadow:0 1px 0 #fff inset,0 0 0 1px #e3d9cd,0 4px 12px #4a382614;
  transition:transform .35s cubic-bezier(.3,.7,.3,1),box-shadow .25s!important}
.pan-handle svg{width:62%;height:62%;fill:none;stroke:#4a443d;stroke-linecap:round}
.pan-handle .ph-ring{stroke-width:1.4;stroke-dasharray:2.2 2.4;transform-origin:12px 12px;transition:transform .6s cubic-bezier(.3,.7,.3,1)}
.pan-handle .ph-ticks{stroke-width:1.5}
.pan-handle .ph-dot{fill:#c5683a;stroke:none;transition:transform .3s}
.pan-handle:hover>span{transform:translateY(-1px)!important;box-shadow:0 1px 0 #fff inset,0 0 0 1px #d8c9b8,0 7px 16px #4a38262a}
.pan-handle:hover .ph-ring{transform:rotate(90deg)}
.pan-handle:hover .ph-dot{transform:scale(1.25);transform-origin:12px 12px}
.pan-handle small{font-weight:500!important;color:#6f665c!important;letter-spacing:.04em;opacity:.85}
.pan-handle.away .ph-dot{animation:phPulse 1.8s ease-in-out infinite;transform-origin:12px 12px}
@keyframes phPulse{50%{transform:scale(1.45);opacity:.7}}
@media(max-width:700px){.pan-handle>span{width:24px!important;height:24px!important}}

/* ---------- 玩法 ---------- */
.sheet.guide{max-width:760px;padding:26px 30px 22px;border-radius:18px;background:#fbf8f3;
  background-image:radial-gradient(#e6ddd1 .8px,transparent .8px);background-size:14px 14px}
.g-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.g-head h3{font-size:22px!important;font-weight:650!important;letter-spacing:.02em;margin:0!important;color:#24221f}
.g-x{background:none!important;border:0!important;font-size:22px!important;padding:0 6px!important;color:#9b9085;font-weight:300!important}
.g-steps{list-style:none;margin:0!important;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:12px;counter-reset:g}
.g-steps li{counter-increment:g;position:relative;background:#fff;border-radius:12px;padding:10px 10px 12px;
  box-shadow:0 1px 0 #fff inset,0 0 0 1px #ece4d9,0 6px 16px #4a38260c;opacity:0;transform:translateY(10px)}
#howModal.show .g-steps li{animation:gIn .5s cubic-bezier(.2,.8,.2,1) forwards}
#howModal.show .g-steps li:nth-child(2){animation-delay:.07s}#howModal.show .g-steps li:nth-child(3){animation-delay:.14s}
#howModal.show .g-steps li:nth-child(4){animation-delay:.21s}#howModal.show .g-steps li:nth-child(5){animation-delay:.28s}
@keyframes gIn{to{opacity:1;transform:none}}
.g-steps li::before{content:counter(g);position:absolute;top:8px;left:10px;z-index:2;font:600 11px/1 "Space Grotesk",system-ui;color:#b0a597}
.g-steps b{display:block;font-size:15px;font-weight:650;color:#24221f;margin:10px 0 4px}
.g-steps p{font-size:12px!important;line-height:1.6!important;color:#6a625a!important;margin:0!important}
.g-steps em{font-style:normal;color:#c5683a;font-weight:600}
.g-art{position:relative;height:96px;margin:0;border-radius:8px;overflow:hidden;background:#f5f0e9}
.g-art img{position:absolute;pointer-events:none;user-select:none}

/* 1 逛：两张卡，一张被双击放大 */
.g-t{width:44px;height:44px;object-fit:cover;border-radius:4px;box-shadow:0 3px 8px #0002}
.g-t1{left:14px;top:30px;transform:rotate(-6deg)}
.g-t2{left:62px;top:22px;animation:gZoom 3.2s ease-in-out infinite;transform-origin:50% 50%}
@keyframes gZoom{0%,30%{transform:scale(1) rotate(4deg)}45%,75%{transform:scale(1.55) rotate(0);box-shadow:0 10px 22px #0003}90%,100%{transform:scale(1) rotate(4deg)}}
.g-tap{position:absolute;left:84px;top:44px;width:16px;height:16px;border-radius:50%;border:1.5px solid #c5683a;opacity:0;animation:gTap 3.2s infinite}
@keyframes gTap{18%{opacity:0;transform:scale(.4)}24%{opacity:1;transform:scale(1)}30%{opacity:0;transform:scale(1.8)}31%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1)}41%,100%{opacity:0;transform:scale(1.8)}}
.g-cur{position:absolute;left:92px;top:54px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:13px solid #2b2826;transform:rotate(-28deg);filter:drop-shadow(0 1px 0 #fff)}

/* 2 下锅：卡片画弧线飞入 */
.g-pan{width:92px;left:50%;bottom:-8px;margin-left:-38px}
.g-fly{width:30px;height:30px;object-fit:cover;border-radius:3px;box-shadow:0 3px 8px #0003;animation:gFly 2.6s cubic-bezier(.4,0,.2,1) infinite}
@keyframes gFly{0%{left:6px;top:6px;transform:rotate(-10deg) scale(1);opacity:1}55%{left:52px;top:4px;transform:rotate(8deg) scale(.9)}80%{left:66px;top:52px;transform:rotate(20deg) scale(.55);opacity:1}88%,100%{left:66px;top:58px;transform:scale(.3);opacity:0}}

/* 3 Cooking：颠锅，便签飞出 */
.g-toss{animation:gToss 1.4s cubic-bezier(.4,0,.2,1) infinite;transform-origin:30% 80%}
@keyframes gToss{0%,100%{transform:rotate(0)}30%{transform:rotate(-9deg) translateY(-4px)}55%{transform:rotate(4deg)}}
.g-n{position:absolute;width:20px;height:16px;border-radius:2px;left:50%;top:56px;opacity:0;box-shadow:0 2px 4px #0002;animation:gPop 2.8s ease-out infinite}
.g-n1{background:#f6e7a8}.g-n2{background:#f3d3c2;animation-delay:.25s}.g-n3{background:#d8e6cf;animation-delay:.5s}
@keyframes gPop{0%,30%{opacity:0;transform:translate(-50%,0) rotate(0)}45%{opacity:1}85%{opacity:1;transform:translate(var(--dx,-38px),-48px) rotate(var(--r,-14deg))}100%{opacity:0;transform:translate(var(--dx,-38px),-48px) rotate(var(--r,-14deg))}}
.g-n2{--dx:-8px;--r:6deg}.g-n3{--dx:20px;--r:16deg}

/* 4 深入研究：便签上放大镜扫过，行变成报告 */
.g-sheet{position:absolute;left:50%;top:12px;width:66px;height:72px;margin-left:-33px;background:#f6e7a8;border-radius:2px;box-shadow:0 4px 10px #0002;padding:12px 8px;display:flex;flex-direction:column;gap:7px}
.g-sheet i{display:block;height:3px;border-radius:2px;background:#a59466;opacity:.5;transform-origin:left;animation:gLine 3s infinite}
.g-sheet i:nth-child(1){width:80%}.g-sheet i:nth-child(2){animation-delay:.2s}.g-sheet i:nth-child(3){width:70%;animation-delay:.4s}.g-sheet i:nth-child(4){width:55%;animation-delay:.6s}
@keyframes gLine{0%,20%{transform:scaleX(.25)}50%,100%{transform:scaleX(1)}}
.g-lens{position:absolute;width:22px;height:22px;border:2.5px solid #2b2826;border-radius:50%;background:#ffffff55;animation:gLens 3s ease-in-out infinite}
.g-lens::after{content:"";position:absolute;width:3px;height:11px;background:#2b2826;border-radius:2px;right:-6px;bottom:-9px;transform:rotate(-45deg)}
@keyframes gLens{0%{left:38px;top:16px}30%{left:76px;top:30px}60%{left:44px;top:46px}100%{left:38px;top:16px}}

/* 5 圈 & 丢 */
.g-note{position:absolute;width:38px;height:32px;border-radius:2px;box-shadow:0 2px 6px #0002}
.g-keep{left:12px;top:30px;background:#f6e7a8}
.g-keep svg{position:absolute;inset:-12px -14px;width:66px;height:56px;fill:none;stroke:#d3452e;stroke-width:2.6;stroke-linecap:round;stroke-dasharray:240;stroke-dashoffset:240;animation:gCircle 3.4s ease-in-out infinite}
@keyframes gCircle{0%,8%{stroke-dashoffset:240}40%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:0;opacity:0}}
.g-toss2{left:66px;top:8px;background:#e6dccf;animation:gBin 3.4s cubic-bezier(.5,0,.3,1) infinite}
@keyframes gBin{0%,40%{transform:none;opacity:1}75%{transform:translate(28px,42px) rotate(40deg) scale(.4);opacity:1}82%,100%{transform:translate(28px,48px) rotate(40deg) scale(.2);opacity:0}}
.g-bin{width:36px;right:4px;bottom:2px;animation:gBinBump 3.4s infinite}
@keyframes gBinBump{0%,76%,100%{transform:none}82%{transform:scale(1.14)}}
.g-mk{width:44px;left:28px;top:4px;transform:rotate(-30deg);animation:gMk 3.4s ease-in-out infinite}
@keyframes gMk{0%,8%{translate:0 0}25%{translate:-18px 28px}40%{translate:-26px 8px}55%,100%{translate:0 0}}

.g-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px}
.g-kinds{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#6a625a}
.g-kinds i{font-style:normal;display:inline-flex;align-items:center;gap:6px}
.g-kinds i::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--k)}
.sheet.guide .primary{background:#282624!important;padding:10px 24px!important}

@media(max-width:760px){
  .sheet.guide{padding:20px 18px 18px}
  .g-steps{grid-template-columns:1fr;gap:8px}
  .g-steps li{display:grid;grid-template-columns:118px 1fr;column-gap:12px;align-items:center;padding:8px}
  .g-steps li .g-art{grid-row:1 / span 2;height:80px}
  .g-steps b{margin:0 0 2px}
  .g-foot{flex-direction:column;align-items:stretch}
}
@media(prefers-reduced-motion:reduce){.sheet.guide *,.pan-handle *{animation:none!important}.g-steps li{opacity:1;transform:none}}
