/* The ancient key: the theme of Hermit. One picture (/key.svg), one motion (it turns like a key in a lock), used wherever Hermit is thinking. */
@keyframes hk-turn{0%{transform:perspective(260px) rotateY(0) rotate(-8deg)}50%{transform:perspective(260px) rotateY(180deg) rotate(-8deg)}100%{transform:perspective(260px) rotateY(360deg) rotate(-8deg)}}
@keyframes hk-glow{0%,100%{filter:drop-shadow(0 0 3px rgba(255,194,26,.25))}50%{filter:drop-shadow(0 0 9px rgba(255,194,26,.65))}}
.hk-key,.loading::before,.hk-busy::before{content:"";display:inline-block;width:1em;height:1em;background:url(/key.svg) center/contain no-repeat;animation:hk-turn 2.6s cubic-bezier(.45,.05,.35,1) infinite,hk-glow 2.6s ease-in-out infinite;vertical-align:-.15em}
.hk-think{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 8px;color:var(--muted,#b3a995);font-size:13px;letter-spacing:.04em}
.hk-think .hk-key{width:44px;height:44px}
.hk-cap{font-variant-numeric:tabular-nums}.hk-cap .hk-x{font-family:ui-monospace,Menlo,Consolas,monospace;color:#ffc21a}
.loading::before{display:block;width:48px;height:48px;margin:0 auto 12px}
.hk-busy::before{width:1.15em;height:1.15em;margin-right:.45em}
.ttl.busy .key{animation:hk-turn 1.6s cubic-bezier(.45,.05,.35,1) infinite}
@media(prefers-reduced-motion:reduce){.hk-key,.loading::before,.hk-busy::before,.ttl.busy .key{animation:hk-glow 3s ease-in-out infinite}}
