/* Page coordinates (CSS px): no container. One avatar fills the frame: a 504px disc centred at 270,270, status badge on its edge at 45deg. */
.av-page {
  --lemon: #fbea10;
  --ink: #0d0d0d;
  position: relative;
  width: 540px;
  height: 540px;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--lemon);
  font-family: "Unbounded Variable", sans-serif;
}

.av-page * { box-sizing: border-box; }

.av {
  position: absolute;
  top: 18px;
  left: 18px;
  display: block;
  width: 504px;
  height: 504px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  outline: none;
  transition: scale 90ms ease-out;
}

.av:active { scale: 0.98; }

.av:focus-visible .av-status { box-shadow: 0 0 0 10px var(--lemon), 0 0 0 16px var(--ink); }

/* both faces carry the initials at the same weight, so the flood edge cuts cleanly through the letters */
.av-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2px 12px 0 0;
  border-radius: 50%;
  font-size: 168px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: font-weight 640ms cubic-bezier(0.5, 0, 0.2, 1);
}

.av-away { border: 16px solid var(--ink); }

.av-solid {
  background: var(--ink);
  color: var(--lemon);
  clip-path: circle(0px at 85.36% 85.36%);
  transition:
    font-weight 640ms cubic-bezier(0.5, 0, 0.2, 1),
    clip-path 640ms cubic-bezier(0.45, 0, 0.2, 1);
}

.av[data-online] .av-face { font-weight: 900; }
.av[data-online] .av-solid { clip-path: circle(510px at 85.36% 85.36%); }

/* status badge: a lemon ring cuts it out of the avatar; the dot is eclipsed while away */
.av-status {
  position: absolute;
  top: 371px;
  left: 371px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 10px solid var(--lemon);
  border-radius: 50%;
  background: var(--ink);
}

.av-status i {
  position: relative;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--lemon);
}

.av-status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  translate: 15px -13px;
  transition: translate 420ms cubic-bezier(0.5, 0, 0.2, 1);
}

.av[data-online] .av-status i::after { translate: 56px -50px; }
