/* The 65 frames sample the rotation and final pose in the Kimi model. */
@property --athlete-turn-frame {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
.athlete-link-logo {
  display: inline-block;
  width: var(--athlete-logo-size, 64px);
  height: var(--athlete-logo-size, 64px);
  flex: none;
  background: transparent url("athlete-link-turn.webp?v=kimi-final") no-repeat;
  background-size: 6500% 100%;
  background-position: calc(var(--athlete-turn-frame, 0) * 1.5625%) center;
}
@keyframes athlete-link-opening-turn {
  from { --athlete-turn-frame: 0; }
  to { --athlete-turn-frame: 64; }
}
/* One clock for the whole opening, including alternate mobile header layouts. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.athlete-link-logo) {
    animation: athlete-link-opening-turn 6.4s steps(64, end) 1 forwards;
  }
}
@media (max-width: 900px) {
  .athlete-link-logo { --athlete-logo-size: 54px; }
}
@media (max-width: 380px) {
  .athlete-link-logo { --athlete-logo-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .athlete-link-logo { background-position: 100% center; }
}
