/* The coin of the head as a thing in the hand (krony-coin.js): it leans after the mouse, a glint slides over it,
   a click or a tap turns it over. The back says what the front is worth: 100 crowns are one month in a city. */
.kr-coin.kc{cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;
  transform:perspective(900px) rotateX(calc(var(--kx,0) * 1deg)) rotateY(calc((var(--ky,0) + var(--kf,0)) * 1deg));
  transition:transform .7s var(--rise,cubic-bezier(.22,1,.36,1))}
/* following the pointer or mid-turn: the script drives every frame, an ease on top would lag behind it */
.kr-coin.kc.kc-live{transition:none}
/* the back face is hidden from the start, not only once the entrance has ended and .kc is set */
.kr-coin>.kc-b{display:none}
.kr-coin.kc.back>:not(.kc-b):not(.kc-glint){display:none}
.kr-coin.kc.back>.kc-b{display:revert}
.kc-glint{position:absolute;inset:0;border-radius:50%;pointer-events:none;opacity:0;mix-blend-mode:soft-light;transition:opacity .4s var(--ease);
  background:radial-gradient(circle at var(--gx,34%) var(--gy,28%),rgba(255,248,225,.75),rgba(255,248,225,0) 46%)}
.kr-coin.kc.kc-live .kc-glint{opacity:1}
@media (prefers-reduced-motion:reduce){.kr-coin.kc{transition:none}.kc-glint{display:none}}
