/* Final 10 seconds: the match clock turns gold and pulses once per second (match-juice.js). */
#match .timer.final-count{background:linear-gradient(#fff3c4,#f2c14e);border-color:#fff7dc;border-bottom-color:#a7781c;color:#4a3410}
#match .timer.final-count small{color:#6d4d12}
#match .timer.final-tick{animation:hex-final-tick .5s cubic-bezier(.2,.9,.3,1)}
@keyframes hex-final-tick{0%{transform:translateY(-4px) scale(1.16);box-shadow:0 5px #15152c80,0 0 0 0 #ffd76ab0}100%{transform:translateY(-4px) scale(1);box-shadow:0 5px #15152c80,0 0 0 16px #ffd76a00}}
/* Low health: a clearly visible red edge that beats with the heartbeat (owner: the old 30px edge was barely noticeable). */
body.low-health:is(.hex-match-visible,#match[hidden]) #match::after{box-shadow:inset 0 0 70px 14px #e8284fb8,inset 0 0 160px 30px #b0123a66;background:radial-gradient(ellipse at center,#0000 55%,#c4143c38 100%);animation:hex-low-health-edge .95s ease-out infinite}
@keyframes hex-low-health-edge{0%,30%,100%{opacity:.5}10%,43%{opacity:1}}
/* Once the beat is synced to the heartbeat sound, each beat restarts one lub-dub instead of a free-running loop. */
/* !important: older reduced-motion rules (collection-polish.css, compact-hud.css) follow the menu-only Gentle choice; the beat follows Game animations instead (JS skips it on Minimal or OS reduced motion). */
body.low-health.heart-synced:is(.hex-match-visible,#match[hidden]) #match::after{animation:none;opacity:.5}
body.low-health.heart-synced.heart-beat:is(.hex-match-visible,#match[hidden]) #match::after{animation:hex-low-health-beat .6s ease-out 1!important}
@keyframes hex-low-health-beat{0%{opacity:.5}5%{opacity:1}22%{opacity:.6}30%{opacity:.95}100%{opacity:.5}}
html[data-animation="minimal"] body.low-health #match::after{animation:none!important;opacity:.8!important}
