.ss-incense{--ss-frac:1;position:relative;min-width:0;padding:8px 0 0;isolation:isolate}
.ss-incense[hidden]{display:none}
.ss-incense-stage{display:block;position:relative;width:112px;height:230px;isolation:isolate}
/* Small ceramic bowl and ash bed: soft ceramic shading, never a tappable hard shadow. */
.ss-incense-stage::before{content:"";position:absolute;z-index:3;left:16px;bottom:4px;width:80px;height:40px;border:1px solid var(--line,#C9A678);border-radius:9px 9px 32px 32px;background:linear-gradient(100deg,var(--pale-2,#F4E6CC),var(--paper,#FBF6EE) 50%,var(--pale,#EBD3AC));box-shadow:inset 0 -5px 8px #6b534012}
.ss-incense-stage::after{content:"";position:absolute;z-index:4;left:19px;bottom:36px;width:74px;height:12px;border:1px solid var(--line,#C9A678);border-radius:50%;background:radial-gradient(ellipse at 48% 50%,var(--ink-2,#6B5340) 0 3px,transparent 4px),radial-gradient(ellipse at 62% 60%,var(--line,#C9A678) 0 5px,transparent 6px),var(--pale,#EBD3AC)}
.ss-incense-bar{display:block;position:absolute;z-index:5;left:53px;bottom:43px;width:6px!important;max-width:none;height:calc(12px + var(--ss-length,132px) * var(--ss-frac));border-radius:3px 3px 1px 1px;background:linear-gradient(90deg,var(--ink-2,#6B5340),var(--line,#C9A678) 60%,var(--ink-2,#6B5340));overflow:visible}
/* Warm pale gold ember at the moving top; no red or alarm pulse. */
.ss-incense-bar::before{content:"";position:absolute;inset:-2px -1px auto;height:6px;border-radius:50%;background:var(--pale,#EBD3AC);box-shadow:0 0 6px 2px var(--line,#C9A678)}
/* A deterministic fleck falls from the current tip to the bowl. Percentage travel
   references this full-height child of the current stick, so half sticks land correctly. */
.ss-incense-ash{position:absolute;top:0;left:9px;width:3px;height:100%;pointer-events:none;animation:ss-v3-ash 6s linear infinite;opacity:0}
.ss-incense-ash::before{content:"";display:block;width:3px;height:3px;border-radius:1px;background:var(--ink-2,#6B5340)}
.ss-incense>p.sm{margin:12px 0 0;color:var(--ink-2,#6B5340);font-size:14px;line-height:1.65;text-align:center}
.ss-incense.is-out .ss-incense-bar{height:12px;background:var(--ink-2,#6B5340)}
.ss-incense.is-out .ss-incense-bar::before{background:var(--line,#C9A678);box-shadow:none;height:3px;inset:0}
.ss-incense.is-out .ss-incense-smoke,.ss-incense.is-out .ss-incense-ash{display:none}

.ss-incense-stage .ss-incense-bar{transform-origin:50% 100%}
.ss-incense-bar:nth-child(1){left:42px;--ss-length:124px;transform:rotate(-8deg)}
.ss-incense-bar:nth-child(2){left:53px;--ss-length:132px;transform:rotate(0deg)}
.ss-incense-bar:nth-child(3){left:64px;--ss-length:128px;transform:rotate(7deg)}
.ss-incense-smoke{position:absolute;inset:0;width:112px;height:230px;overflow:visible;pointer-events:none;fill:none;stroke:var(--ink-2,#6B5340);stroke-width:1.5;stroke-linecap:round;opacity:.25}
@keyframes ss-v3-ash{0%,55%{transform:translate(0,0);opacity:0}70%{transform:translate(0,0);opacity:.5}96%{transform:translate(0,100%);opacity:.25}100%{transform:translate(0,100%);opacity:0}}
.ss-incense-bar:nth-child(2) .ss-incense-ash{animation-delay:-2s}
.ss-incense-bar:nth-child(3) .ss-incense-ash{animation-delay:-4s}
html.still .ss-incense-smoke{animation:none;opacity:.25}
html.still .ss-incense-ash{animation:none;display:none}
@media(prefers-reduced-motion:reduce){.ss-incense-smoke{animation:none;opacity:.25}.ss-incense-ash{animation:none;display:none}}

/* v5: three independent paths, each anchored to its own tip by paintIncense.
 No merged plume. Ember remains the existing static ::before glow.
 Geometry uses the existing unrounded fraction; no timer or formula change.
 Animation changes transform and opacity only; no canvas or blur. */
.ss-incense-smoke{opacity:1;animation:none;stroke-width:1.25}
.ss-incense-smoke path{opacity:.25;transform-box:fill-box;transform-origin:50% 100%;animation:ss-v5-wisp 8s ease-in-out infinite alternate}
.ss-incense-smoke path:nth-child(2){animation-delay:-3s;animation-duration:10s}
.ss-incense-smoke path:nth-child(3){animation-delay:-6s;animation-duration:9s}
@keyframes ss-v5-wisp{from{transform:skewX(-3deg) scaleY(.96);opacity:.18}to{transform:skewX(4deg) scaleY(1.04);opacity:.3}}
html.still .ss-incense-smoke path{animation:none;opacity:.25}
@media(prefers-reduced-motion:reduce){.ss-incense-smoke,.ss-incense-smoke path,.ss-incense-ash{animation:none!important}.ss-incense-smoke path{opacity:.25}.ss-incense-ash{display:none}}
