/* The flame lives in the registered tool SVG, so every pose keeps it in hand. */
#scene{--tool-fire-pulse:0}
.combo-crest{position:absolute;right:24px;top:20px;z-index:4;min-width:72px;color:#f8e4ba;text-align:right;filter:drop-shadow(0 2px 2px #24190f);pointer-events:none;transform-origin:100% 55%}
.combo-crest[hidden]{display:none}
.combo-crest small{display:block;font:9px/1.2 Arial,sans-serif;letter-spacing:1px;color:#efdab3}.combo-crest b{display:block;font:52px/1 Quarry,Impact,sans-serif;margin-top:3px;font-variant-numeric:tabular-nums}
.combo-crest[data-charged=true]{color:#ffd17c;filter:drop-shadow(0 2px 2px #24190f) drop-shadow(0 0 8px #ff962766)}.combo-crest[data-charged=true] small{color:#ffe1a0}
@media(max-width:740px){.combo-crest{top:14px;right:14px;min-width:55px}.combo-crest b{font-size:38px}.combo-crest small{font-size:8px}.quarry-page .location-sign{max-width:calc(100% - 100px)}}
.tool-anchor>svg{overflow:visible}
.charged-tool-fire{opacity:0;pointer-events:none;transition:opacity 80ms linear}
.charged-tool-heat{opacity:0;pointer-events:none;filter:sepia(1) saturate(3.4) hue-rotate(-13deg) brightness(1.3);transition:opacity 80ms linear}
#scene[data-charged=true] .charged-tool-heat{opacity:.75}#scene[data-fire-burst=true] .charged-tool-heat{opacity:1}
.tool-fire-tongue,.tool-fire-halo,.tool-fire-core{transform-box:fill-box;transform-origin:50% 100%}
.tool-fire-halo{opacity:calc(.34 + var(--tool-fire-pulse)*.22);transform:scale(calc(1 + var(--tool-fire-pulse)*.12))}
.tool-fire-core{opacity:.85}
.fire-ember{opacity:0}
#scene[data-charged=true] .charged-tool-fire,#scene[data-fire-burst=true] .charged-tool-fire{opacity:1}
#scene[data-charged=true] .tool-anchor,#scene[data-fire-burst=true] .tool-anchor{filter:drop-shadow(0 0 3px #ffd898aa) drop-shadow(0 0 8px #ff962766)}
#scene[data-charged=true] .tool-fire-tongue,#scene[data-fire-burst=true] .tool-fire-tongue{animation:held-fire .47s ease-in-out infinite alternate}
#scene[data-charged=true] .fire-left,#scene[data-fire-burst=true] .fire-left{animation-duration:.61s;animation-delay:-.18s}
#scene[data-charged=true] .fire-right,#scene[data-fire-burst=true] .fire-right{animation-duration:.53s;animation-delay:-.36s}
#scene[data-charged=true] .fire-ember,#scene[data-fire-burst=true] .fire-ember{animation:held-ember .72s ease-out infinite}
#scene .ember-two{animation-delay:-.26s!important}
#scene .ember-three{animation-delay:-.51s!important}
#scene[data-fire-burst=true] .charged-tool-fire{transition:none}
#scene[data-fire-burst=true] .tool-fire-core{opacity:1}
#scene[data-fire-paused=true] .charged-tool-fire *{animation-play-state:paused!important}
.rhythm-lane[data-charged=true] .combo-stones i{background:#ffbc4f;border-color:#ffe6a6;box-shadow:inset 0 2px #fff1c6,0 0 5px #ffae4877}
.rhythm-lane[data-charged=true] #rhythm-charge{color:#a44821;text-shadow:0 0 8px #ffc97366}
.rhythm-lane[data-charged=true] .rhythm-road b{border-color:#bb5727;background:#ffd794;box-shadow:0 0 12px #f1ad5066}
.quarry-companion:hover>img,.quarry-companion:active>img{translate:none;scale:none}
@keyframes held-fire{from{transform:scale(.97,.87) skewX(-2deg)}to{transform:scale(1.02,1.03) skewX(2deg)}}
@keyframes held-ember{0%{opacity:0;transform:translate(0,6px) scale(.6)}20%{opacity:.9}100%{opacity:0;transform:translate(3px,-9px) scale(.35)}}
@media(prefers-reduced-motion:reduce){
 .charged-tool-fire{transition:none}
 #scene .charged-tool-fire *{animation:none!important;transform:none}
 #scene[data-charged=true] .fire-ember{opacity:.65}
 .tool-fire-halo{opacity:.42}
}

#calibration-tap{display:block;width:100%;min-height:90px;margin:12px 0;border:2px solid #ab8651;border-bottom-width:6px;border-radius:14px;background:#e3c89b;color:#57432d;font:30px Impact, sans-serif;touch-action:manipulation}#calibration-tap[hidden]{display:none}#calibration-tap:active{background:#f1d8ad;transform:translateY(2px)}#calibration-status{min-height:1.4em;font-size:13px;line-height:1.4}.music-sync #music-calibrate{margin-top:12px;font-size:17px}
