/* ════════════════════════════════════════════════════════════════════
   ONBOARDING TUTORIAL — Vitalité · 双语入门导览
   Fixed high-z overlay: dim veil + spotlight ring around the element being
   explained + a bilingual step card with Prev/Back/Next/Done controls.
   Colors follow the page theme (falls back to neutral when vars absent).
   ════════════════════════════════════════════════════════════════════ */
.tut-root{position:fixed;top:0;left:0;right:0;bottom:0;z-index:2147483000;}
.tut-veil{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(8,14,24,.55);}
.tut-root.has-spot .tut-veil{display:none;} /* the ring's giant shadow dims, no veil over the highlighted element */
.tut-spot{position:fixed;border:2px solid #7c3aed;border-radius:12px;
  box-shadow:0 0 0 4px rgba(124,58,237,.28),0 0 28px rgba(124,58,237,.35),
             0 0 0 9999px rgba(8,14,24,.55);
  transition:all .28s ease;display:none;pointer-events:none;z-index:2147483100;}
.tut-card{position:fixed;width:min(92vw,460px);z-index:2147483200;
  background:var(--surface,#ffffff);color:var(--text,#1a2332);
  border:1px solid var(--border,rgba(20,40,65,.16));
  border-radius:18px;box-shadow:0 24px 80px rgba(4,10,20,.45);
  padding:1.35rem 1.5rem 1.15rem;box-sizing:border-box;
  font-family:var(--font,Georgia,"Times New Roman","Songti SC","SimSun",'PingFang SC',serif);
  line-height:1.55;}
.tut-badge{font-size:1.9rem;line-height:1;margin-bottom:.55rem;}
.tut-title{font-size:1.18rem;font-weight:800;margin-bottom:.4rem;letter-spacing:.01em;}
.tut-title .tut-l-en{display:block;}
.tut-title .tut-l-zh{display:block;font-size:.92rem;font-weight:600;color:var(--accent,#7c3aed);
  margin-top:.18rem;opacity:.9;}
.tut-body{font-size:.95rem;opacity:.92;margin-bottom:.85rem;}
.tut-body .tut-l-en{display:block;}
.tut-body .tut-l-zh{display:block;margin-top:.35rem;padding-top:.3rem;color:var(--text2,#35435c);
  border-top:1px dashed var(--border2,rgba(20,40,65,.15));opacity:1;}
.tut-dots{display:flex;gap:.32rem;align-items:center;margin-bottom:.85rem;}
.tut-dot{width:7px;height:7px;border-radius:50%;
  background:var(--border3,rgba(20,40,65,.25));
  transition:all .2s;}
.tut-dot.on{width:20px;border-radius:4px;background:var(--accent,#7c3aed);}
.tut-btns{display:flex;gap:.55rem;align-items:center;justify-content:flex-end;}
.tut-btn{border:1px solid var(--border,rgba(20,40,65,.2));
  background:var(--surface2,#f4f6fa);color:var(--text,#1a2332);
  border-radius:999px;padding:.5rem 1.05rem;font-size:.86rem;cursor:pointer;
  font-family:inherit;transition:all .18s;}
.tut-btn:hover{filter:brightness(.96);transform:translateY(-1px);}
.tut-btn.ghost{opacity:.75;}
.tut-btn.primary{background:var(--accent,#7c3aed);border-color:var(--accent,#7c3aed);
  color:#fff;font-weight:700;}
.tut-btn.primary:hover{filter:brightness(1.08);}
@media (max-width:520px){
  .tut-card{width:min(94vw,460px);padding:1.05rem 1.1rem .95rem;}
  .tut-badge{font-size:1.55rem;}
}
/* Respect dark theme even when the page's own vars are absent */
body.dark .tut-card{background:#151e2e;color:#eef2f8;
  border-color:rgba(160,180,215,.22);}
body.dark .tut-dot{background:rgba(160,180,215,.28);}
body.dark .tut-btn{background:#243248;color:#eef2f8;border-color:rgba(160,180,215,.25);}

/* ═══ Replay affordance — small ↻ pill, top-left, after the tour is done ═══ */
.tut-replay{
  display:inline-flex;align-items:center;gap:.34rem;
  border:1px solid var(--border,rgba(20,40,65,.2));
  background:var(--surface2,#f4f6fa);color:var(--text,#1a2332);
  border-radius:999px;padding:.28rem .62rem;font-size:.78rem;
  font-weight:600;line-height:1;cursor:pointer;font-family:inherit;
  white-space:nowrap;opacity:.92;transition:all .18s;
}
.tut-replay:hover{opacity:1;filter:brightness(.97);transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(0,0,0,.10);}
.tut-replay:focus-visible{outline:2px solid var(--accent,#7c3aed);outline-offset:2px;}
body.dark .tut-replay{background:#243248;color:#eef2f8;
  border-color:rgba(160,180,215,.25);}
/* Compact flanks on narrow screens: shrink the label away, keep the icon. */
@media (max-width:600px){
  .lin-topleft .tut-replay, .header-inner .tut-replay{padding:.3rem .42rem;}
  .lin-topleft .tut-replay .tut-replay-text, .header-inner .tut-replay .tut-replay-text{display:none;}
}
/* ═══ Soft Glass refresh — matches soft-glass.css ════════════════════════════
   Frosted card, a fogged veil with a clear window over the spotlit element, a
   warm glow ring that glides between targets, content that fogs in from the
   direction you're moving, and a whole-tour fog in/out. */
/* ring + veil window share these, so they glide together (registered so they animate) */
@property --tut-x{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-y{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-w{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-h{syntax:'<length>';inherits:true;initial-value:0px}
.tut-root{opacity:0;
  transition:opacity .45s cubic-bezier(.16,1,.3,1),--tut-x .5s cubic-bezier(.16,1,.3,1),--tut-y .5s cubic-bezier(.16,1,.3,1),
             --tut-w .5s cubic-bezier(.16,1,.3,1),--tut-h .5s cubic-bezier(.16,1,.3,1)}
.tut-root.tut-first{transition:opacity .45s cubic-bezier(.16,1,.3,1)}   /* first step: appear in place, don't fly in from 0,0 */
.tut-root.tut-live{opacity:1}
.tut-root.tut-out{opacity:0;transition:opacity .35s ease}
.tut-root.tut-out .tut-card{opacity:0;scale:.97;transition:opacity .3s,scale .35s}

/* veil: a plain dim with a window where the ring is. No backdrop blur — a
   full-screen blur re-renders every frame the page scrolls under it (lag). */
.tut-veil{background:rgba(6,14,28,.5)}
body:not(.dark) .tut-veil{background:rgba(16,32,58,.34)}
.tut-root.has-spot .tut-veil{display:block;
  -webkit-mask:linear-gradient(#000 0 0),linear-gradient(#000 0 0) var(--tut-x) var(--tut-y)/var(--tut-w) var(--tut-h) no-repeat;
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0),linear-gradient(#000 0 0) var(--tut-x) var(--tut-y)/var(--tut-w) var(--tut-h) no-repeat;
  mask-composite:exclude}

/* the ring: moved by transform, sized by the shared vars; the breathing glow
   is a separate layer that only changes opacity (no repainting shadows) */
.tut-spot{border:0;border-radius:18px;left:0;top:0;width:var(--tut-w);height:var(--tut-h);
  transform:translate3d(var(--tut-x),var(--tut-y),0);
  box-shadow:0 0 0 2px rgba(224,102,108,.95),0 0 0 7px rgba(224,102,108,.16),inset 0 0 0 1px rgba(255,255,255,.35);
  transition:none;animation:none}
.tut-spot::after{content:"";position:absolute;inset:-6px;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 36px 4px rgba(224,102,108,.5);opacity:.55;animation:tut-breathe 2.6s ease-in-out infinite}
@keyframes tut-breathe{50%{opacity:1}}

/* the card: frosted glass, glides to its new spot */
.tut-card{
  background:rgba(236,241,247,.78)!important;color:#0E1E33!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid rgba(255,255,255,.7)!important;border-radius:26px;
  box-shadow:0 30px 80px -24px rgba(8,20,40,.55),inset 0 1px 0 rgba(255,255,255,.85);
  padding:1.3rem 1.45rem 1.1rem;
  will-change:transform;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.tut-root.tut-first .tut-card{transition:none}
body.dark .tut-card{background:rgba(15,28,49,.8)!important;color:#EEF3F9!important;
  border-color:rgba(160,195,240,.18)!important;box-shadow:0 30px 80px -24px rgba(0,0,0,.8),inset 0 1px 0 rgba(170,200,240,.14)}
.tut-root.tut-first .tut-card{animation:tut-card-in .6s cubic-bezier(.16,1,.3,1) both}
@keyframes tut-card-in{from{opacity:0;translate:0 18px;scale:.95;filter:blur(12px)}}
/* content swap: fog in from the side you're heading */
.tut-card.tut-in .tut-title,.tut-card.tut-in .tut-body,.tut-card.tut-in .tut-badge{animation:tut-fog .5s cubic-bezier(.16,1,.3,1) both}
.tut-card.tut-in .tut-body{animation-delay:.05s}
.tut-card[data-dir="next"]{--tut-from:14px}.tut-card[data-dir="prev"]{--tut-from:-14px}
@keyframes tut-fog{from{opacity:0;translate:var(--tut-from,14px) 0;filter:blur(6px)}}

.tut-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.7rem}
.tut-badge{width:52px;height:52px;margin:0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.55rem;
  background:#E9EEF4;box-shadow:-4px -4px 9px rgba(255,255,255,.9),4px 5px 11px rgba(24,44,78,.18)}
body.dark .tut-badge{background:#12213A;box-shadow:-3px -3px 8px rgba(120,162,218,.1),4px 5px 11px rgba(0,0,0,.55)}
.tut-count{font-size:.72rem;font-weight:700;letter-spacing:.16em;color:rgba(14,30,51,.5)}
body.dark .tut-count{color:rgba(220,232,244,.55)}
.tut-title .tut-l-zh{color:#C7434B}
body.dark .tut-title .tut-l-zh{color:#EE7A7F}
.tut-body .tut-l-zh{border-top:1px solid rgba(24,44,78,.12);color:inherit;opacity:.78}
body.dark .tut-body .tut-l-zh{border-top-color:rgba(160,195,240,.14)}

/* progress: a sunk track with a warm fill (dots stay as ticks for a11y/count) */
.tut-dots{position:relative;height:8px;gap:0;margin:.2rem 0 1rem;border-radius:99px;overflow:hidden;
  background:#DEE5ED;box-shadow:inset 2px 2px 4px rgba(24,44,78,.18),inset -2px -2px 4px rgba(255,255,255,.9)}
body.dark .tut-dots{background:#0F1C31;box-shadow:inset 2px 2px 4px rgba(0,0,0,.55),inset -2px -2px 4px rgba(120,162,218,.1)}
.tut-dots::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--tut-p,0%);border-radius:inherit;
  background:linear-gradient(90deg,#E0666C,#C7434B);box-shadow:0 0 10px rgba(199,67,75,.5);
  transition:width .55s cubic-bezier(.16,1,.3,1)}
.tut-dot{display:none}

/* buttons: soft pills, warm lens for the primary */
.tut-btn{border:0!important;background:#E9EEF4!important;color:#3E4E63!important;
  box-shadow:-2px -2px 5px rgba(255,255,255,.9),2px 3px 6px rgba(24,44,78,.18);
  transition:box-shadow .3s cubic-bezier(.16,1,.3,1),transform .3s cubic-bezier(.16,1,.3,1)!important}
.tut-btn:hover{filter:none;transform:translateY(1px) scale(.985);
  box-shadow:inset 2px 2px 4px rgba(24,44,78,.18),inset -2px -2px 4px rgba(255,255,255,.9)}
body.dark .tut-btn{background:#12213A!important;color:#B9C6D6!important;
  box-shadow:-2px -2px 5px rgba(120,162,218,.1),2px 3px 6px rgba(0,0,0,.55)}
body.dark .tut-btn:hover{box-shadow:inset 2px 2px 4px rgba(0,0,0,.55),inset -2px -2px 4px rgba(120,162,218,.1)}
.tut-btn.primary,body.dark .tut-btn.primary{color:#fff!important;
  background:radial-gradient(120% 140% at 30% 0%,rgba(255,255,255,.28),transparent 55%),linear-gradient(180deg,#E0666C,#C7434B 55%,#8E1F2A)!important;
  box-shadow:4px 6px 14px rgba(142,31,42,.35),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -2px 4px rgba(80,10,20,.25)}
.tut-btn.primary:hover,body.dark .tut-btn.primary:hover{box-shadow:2px 3px 7px rgba(142,31,42,.3),inset 2px 3px 6px rgba(70,8,18,.28)}
.tut-btn.ghost{opacity:.8;background:transparent!important;box-shadow:none}
.tut-replay{border:0;box-shadow:-2px -2px 5px rgba(255,255,255,.9),2px 3px 6px rgba(24,44,78,.18)}
body.dark .tut-replay{box-shadow:-2px -2px 5px rgba(120,162,218,.1),2px 3px 6px rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){
  .tut-spot,.tut-card,.tut-card *,.tut-root{animation:none!important;transition:none!important}
}

/* the semicircle sidebar step: ring the half-disc, not its bounding box */
.tut-spot.tut-semi{border-radius:0 9999px 9999px 0}

/* ═══ Hands-on tour: try-it tasks, a ghost cursor that shows you how, a
   closing quiz, and a little confetti when you get it ═════════════════════ */
/* while a task is waiting the page stays usable: only the card catches clicks */
.tut-root.tut-taskmode{pointer-events:none}
.tut-root.tut-taskmode .tut-card{pointer-events:auto}
.tut-root.tut-taskmode .tut-veil{pointer-events:none}
.tut-root.tut-clear .tut-veil{opacity:0;transition:opacity .4s}
.tut-task{display:flex;align-items:center;gap:.55rem;margin:-.2rem 0 .9rem;padding:.55rem .75rem;border-radius:14px;font-size:.86rem;font-weight:700;
  background:rgba(199,67,75,.1);color:#8E1F2A;animation:tut-nudge 2.4s ease-in-out .8s infinite}
body.dark .tut-task{background:rgba(238,122,127,.12);color:#F2A3A7}
.tut-task-i{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;flex:none;background:rgba(199,67,75,.16);animation:tut-point 1.2s ease-in-out infinite}
.tut-task.ok{background:rgba(34,139,84,.14);color:#1C6B44;animation:tut-okpop .5s cubic-bezier(.3,1.6,.5,1)}
body.dark .tut-task.ok{background:rgba(74,190,128,.16);color:#8FE0B4}
.tut-task.ok .tut-task-i{background:#2E9E62;color:#fff;animation:none}
@keyframes tut-nudge{0%,100%{translate:0 0}50%{translate:0 -2px}}
@keyframes tut-point{0%,100%{translate:0 0}50%{translate:3px 0}}
@keyframes tut-okpop{0%{scale:.92}60%{scale:1.03}100%{scale:1}}
/* quiz */
.tut-quiz{display:grid;gap:.45rem;margin:-.2rem 0 .9rem}
.tut-quiz-q{font-weight:800;margin-bottom:.15rem}
.tut-quiz-o{font:inherit;font-size:.88rem;text-align:left;padding:.6rem .85rem;border-radius:14px;cursor:pointer;border:0;color:inherit;
  background:rgba(255,255,255,.55);box-shadow:-2px -2px 5px rgba(255,255,255,.8),2px 3px 6px rgba(24,44,78,.16);
  animation:tut-optin .45s cubic-bezier(.16,1,.3,1) both;transition:transform .25s,background .2s}
body.dark .tut-quiz-o{background:rgba(18,33,58,.8);box-shadow:-2px -2px 5px rgba(120,162,218,.08),2px 3px 6px rgba(0,0,0,.5)}
.tut-quiz-o:hover{transform:translateX(3px)}
.tut-quiz-o.ok{background:#2E9E62!important;color:#fff;animation:tut-okpop .5s cubic-bezier(.3,1.6,.5,1)}
.tut-quiz-o.no{animation:tut-shake .4s}
.tut-quiz.solved .tut-quiz-o:not(.ok){opacity:.45}
@keyframes tut-optin{from{opacity:0;translate:-12px 0}}
@keyframes tut-shake{0%,100%{translate:0}25%{translate:-6px}50%{translate:5px}75%{translate:-3px}}
/* words drift in */
.tut-card.tut-in .tut-w{display:inline-block;animation:tut-word .45s cubic-bezier(.16,1,.3,1) both}
@keyframes tut-word{from{opacity:0;translate:0 6px;filter:blur(3px)}}
/* the badge bounces in */
.tut-badge.tut-pop{animation:tut-badge .7s cubic-bezier(.3,1.6,.5,1) both!important}
@keyframes tut-badge{0%{scale:.4;rotate:-25deg;opacity:0}60%{scale:1.12;rotate:8deg;opacity:1}100%{scale:1;rotate:0deg}}
/* ghost cursor: glides from the card to the thing to press, presses it, ripples */
.tut-ghost{position:fixed;left:0;top:0;width:0;height:0;z-index:2147483150;pointer-events:none;display:none}
.tut-root.tut-demo .tut-ghost{display:block}
.tut-ghost-hand{position:absolute;left:0;top:0;width:26px;height:26px;margin:-4px 0 0 -8px;
  background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.6L9.6 18z' fill='%23fff' stroke='%230E1E33' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.35));animation:tut-ghost 2.6s cubic-bezier(.45,0,.2,1) .5s infinite both}
.tut-ghost-ring{position:absolute;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:2px solid #E0666C;opacity:0;
  translate:var(--gx1) var(--gy1);animation:tut-ripple 2.6s ease-out .5s infinite}
@keyframes tut-ghost{
  0%{translate:var(--gx0) var(--gy0);opacity:0;scale:1}
  12%{opacity:1}
  55%{translate:var(--gx1) var(--gy1);scale:1}
  63%{translate:var(--gx1) var(--gy1);scale:.8}
  72%{translate:var(--gx1) var(--gy1);scale:1;opacity:1}
  90%,100%{translate:var(--gx1) var(--gy1);opacity:0}}
@keyframes tut-ripple{0%,60%{opacity:0;scale:.3}64%{opacity:.9}90%,100%{opacity:0;scale:1.7}}
/* confetti */
.tut-confetti{position:fixed;width:0;height:0;z-index:2147483300;pointer-events:none}
.tut-confetti i{position:absolute;left:-4px;top:-3px;width:8px;height:6px;border-radius:2px;animation:tut-conf 1.1s cubic-bezier(.2,.7,.3,1) both}
@keyframes tut-conf{0%{translate:0 0;rotate:0deg;opacity:1}100%{translate:var(--dx) calc(var(--dy) + 90px);rotate:var(--r);opacity:0}}
@media (prefers-reduced-motion:reduce){.tut-ghost{display:none!important}.tut-task,.tut-task-i{animation:none}}

/* Phone: this pill was a 22x22 target, well under a comfortable thumb size,
   and it is one of the few controls on login/index. Grow the hit area with a
   pseudo-element so the painted pill keeps its compact look. */
@media (max-width:600px){
  .tut-replay{position:relative;min-height:40px;min-width:44px;padding:.6rem .6rem}
  .tut-replay::before{content:"";position:absolute;left:0;right:0;top:50%;height:40px;transform:translateY(-50%)}
}
  .lin-topleft .tut-replay .tut-replay-text, .header-inner .tut-replay .tut-replay-text{display:none;}
}
/* ═══ Soft Glass refresh — matches soft-glass.css ════════════════════════════
   Frosted card, a fogged veil with a clear window over the spotlit element, a
   warm glow ring that glides between targets, content that fogs in from the
   direction you're moving, and a whole-tour fog in/out. */
/* ring + veil window share these, so they glide together (registered so they animate) */
@property --tut-x{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-y{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-w{syntax:'<length>';inherits:true;initial-value:0px}
@property --tut-h{syntax:'<length>';inherits:true;initial-value:0px}
.tut-root{opacity:0;
  transition:opacity .45s cubic-bezier(.16,1,.3,1),--tut-x .5s cubic-bezier(.16,1,.3,1),--tut-y .5s cubic-bezier(.16,1,.3,1),
             --tut-w .5s cubic-bezier(.16,1,.3,1),--tut-h .5s cubic-bezier(.16,1,.3,1)}
.tut-root.tut-first{transition:opacity .45s cubic-bezier(.16,1,.3,1)}   /* first step: appear in place, don't fly in from 0,0 */
.tut-root.tut-live{opacity:1}
.tut-root.tut-out{opacity:0;transition:opacity .35s ease}
.tut-root.tut-out .tut-card{opacity:0;scale:.97;transition:opacity .3s,scale .35s}

/* veil: a plain dim with a window where the ring is. No backdrop blur — a
   full-screen blur re-renders every frame the page scrolls under it (lag). */
.tut-veil{background:rgba(6,14,28,.5)}
body:not(.dark) .tut-veil{background:rgba(16,32,58,.34)}
.tut-root.has-spot .tut-veil{display:block;
  -webkit-mask:linear-gradient(#000 0 0),linear-gradient(#000 0 0) var(--tut-x) var(--tut-y)/var(--tut-w) var(--tut-h) no-repeat;
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0),linear-gradient(#000 0 0) var(--tut-x) var(--tut-y)/var(--tut-w) var(--tut-h) no-repeat;
  mask-composite:exclude}

/* the ring: moved by transform, sized by the shared vars; the breathing glow
   is a separate layer that only changes opacity (no repainting shadows) */
.tut-spot{border:0;border-radius:18px;left:0;top:0;width:var(--tut-w);height:var(--tut-h);
  transform:translate3d(var(--tut-x),var(--tut-y),0);
  box-shadow:0 0 0 2px rgba(224,102,108,.95),0 0 0 7px rgba(224,102,108,.16),inset 0 0 0 1px rgba(255,255,255,.35);
  transition:none;animation:none}
.tut-spot::after{content:"";position:absolute;inset:-6px;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 36px 4px rgba(224,102,108,.5);opacity:.55;animation:tut-breathe 2.6s ease-in-out infinite}
@keyframes tut-breathe{50%{opacity:1}}

/* the card: frosted glass, glides to its new spot */
.tut-card{
  background:rgba(236,241,247,.78)!important;color:#0E1E33!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4);
  border:1px solid rgba(255,255,255,.7)!important;border-radius:26px;
  box-shadow:0 30px 80px -24px rgba(8,20,40,.55),inset 0 1px 0 rgba(255,255,255,.85);
  padding:1.3rem 1.45rem 1.1rem;
  will-change:transform;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.tut-root.tut-first .tut-card{transition:none}
body.dark .tut-card{background:rgba(15,28,49,.8)!important;color:#EEF3F9!important;
  border-color:rgba(160,195,240,.18)!important;box-shadow:0 30px 80px -24px rgba(0,0,0,.8),inset 0 1px 0 rgba(170,200,240,.14)}
.tut-root.tut-first .tut-card{animation:tut-card-in .6s cubic-bezier(.16,1,.3,1) both}
@keyframes tut-card-in{from{opacity:0;translate:0 18px;scale:.95;filter:blur(12px)}}
/* content swap: fog in from the side you're heading */
.tut-card.tut-in .tut-title,.tut-card.tut-in .tut-body,.tut-card.tut-in .tut-badge{animation:tut-fog .5s cubic-bezier(.16,1,.3,1) both}
.tut-card.tut-in .tut-body{animation-delay:.05s}
.tut-card[data-dir="next"]{--tut-from:14px}.tut-card[data-dir="prev"]{--tut-from:-14px}
@keyframes tut-fog{from{opacity:0;translate:var(--tut-from,14px) 0;filter:blur(6px)}}

.tut-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.7rem}
.tut-badge{width:52px;height:52px;margin:0;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.55rem;
  background:#E9EEF4;box-shadow:-4px -4px 9px rgba(255,255,255,.9),4px 5px 11px rgba(24,44,78,.18)}
body.dark .tut-badge{background:#12213A;box-shadow:-3px -3px 8px rgba(120,162,218,.1),4px 5px 11px rgba(0,0,0,.55)}
.tut-count{font-size:.72rem;font-weight:700;letter-spacing:.16em;color:rgba(14,30,51,.5)}
body.dark .tut-count{color:rgba(220,232,244,.55)}
.tut-title .tut-l-zh{color:#C7434B}
body.dark .tut-title .tut-l-zh{color:#EE7A7F}
.tut-body .tut-l-zh{border-top:1px solid rgba(24,44,78,.12);color:inherit;opacity:.78}
body.dark .tut-body .tut-l-zh{border-top-color:rgba(160,195,240,.14)}

/* progress: a sunk track with a warm fill (dots stay as ticks for a11y/count) */
.tut-dots{position:relative;height:8px;gap:0;margin:.2rem 0 1rem;border-radius:99px;overflow:hidden;
  background:#DEE5ED;box-shadow:inset 2px 2px 4px rgba(24,44,78,.18),inset -2px -2px 4px rgba(255,255,255,.9)}
body.dark .tut-dots{background:#0F1C31;box-shadow:inset 2px 2px 4px rgba(0,0,0,.55),inset -2px -2px 4px rgba(120,162,218,.1)}
.tut-dots::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--tut-p,0%);border-radius:inherit;
  background:linear-gradient(90deg,#E0666C,#C7434B);box-shadow:0 0 10px rgba(199,67,75,.5);
  transition:width .55s cubic-bezier(.16,1,.3,1)}
.tut-dot{display:none}

/* buttons: soft pills, warm lens for the primary */
.tut-btn{border:0!important;background:#E9EEF4!important;color:#3E4E63!important;
  box-shadow:-2px -2px 5px rgba(255,255,255,.9),2px 3px 6px rgba(24,44,78,.18);
  transition:box-shadow .3s cubic-bezier(.16,1,.3,1),transform .3s cubic-bezier(.16,1,.3,1)!important}
.tut-btn:hover{filter:none;transform:translateY(1px) scale(.985);
  box-shadow:inset 2px 2px 4px rgba(24,44,78,.18),inset -2px -2px 4px rgba(255,255,255,.9)}
body.dark .tut-btn{background:#12213A!important;color:#B9C6D6!important;
  box-shadow:-2px -2px 5px rgba(120,162,218,.1),2px 3px 6px rgba(0,0,0,.55)}
body.dark .tut-btn:hover{box-shadow:inset 2px 2px 4px rgba(0,0,0,.55),inset -2px -2px 4px rgba(120,162,218,.1)}
.tut-btn.primary,body.dark .tut-btn.primary{color:#fff!important;
  background:radial-gradient(120% 140% at 30% 0%,rgba(255,255,255,.28),transparent 55%),linear-gradient(180deg,#E0666C,#C7434B 55%,#8E1F2A)!important;
  box-shadow:4px 6px 14px rgba(142,31,42,.35),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -2px 4px rgba(80,10,20,.25)}
.tut-btn.primary:hover,body.dark .tut-btn.primary:hover{box-shadow:2px 3px 7px rgba(142,31,42,.3),inset 2px 3px 6px rgba(70,8,18,.28)}
.tut-btn.ghost{opacity:.8;background:transparent!important;box-shadow:none}
.tut-replay{border:0;box-shadow:-2px -2px 5px rgba(255,255,255,.9),2px 3px 6px rgba(24,44,78,.18)}
body.dark .tut-replay{box-shadow:-2px -2px 5px rgba(120,162,218,.1),2px 3px 6px rgba(0,0,0,.55)}
@media (prefers-reduced-motion:reduce){
  .tut-spot,.tut-card,.tut-card *,.tut-root{animation:none!important;transition:none!important}
}

/* the semicircle sidebar step: ring the half-disc, not its bounding box */
.tut-spot.tut-semi{border-radius:0 9999px 9999px 0}
