/* The welcome pill keeps a static brand face until its first interaction. */
.ws-home-pill {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 50%;
  display: block;
  width: 52px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8.5px;
  outline-offset: 3px;
  background: transparent;
  font: inherit;
  line-height: 0;
  perspective: 600px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateX(-50%) scale(1);
  transition: transform 220ms cubic-bezier(.22, 1, .36, 1);
}
/* A comfortable click target also covers the pill during its edge-on turn. */
.ws-home-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
.ws-home-pill:hover { transform: translateX(-50%) scale(1.035); }
.ws-home-pill:active { transform: translateX(-50%) scale(.98); }
.ws-home-pill-canvas,
#workspace-home-pill-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 240%;
  height: 300%;
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.ws-home-pill-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg, #f7f5ef 0%, #eeeae1 80.648%, #f2eee6 100%);
  box-shadow: inset 0 0 0 .5px rgba(77, 65, 42, .14), inset 0 .5px 0 rgba(255, 255, 255, .65);
  transform: translate(-50%, -50%);
  backface-visibility: hidden;
  pointer-events: none;
}
.ws-home-pill-fallback > img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: 90%;
  aspect-ratio: 1;
  object-fit: contain;
  transform: translate(-50%, -50%);
}
.ws-home-pill[data-home-pill-state="mascot"] .ws-home-pill-fallback,
.ws-home-pill[data-home-pill-state="turning"][data-home-pill-face="mascot"] .ws-home-pill-fallback { visibility: hidden; }
.ws-home-pill[data-home-pill-state="mascot"] .ws-home-pill-canvas,
.ws-home-pill[data-home-pill-state="mascot"] #workspace-home-pill-canvas,
.ws-home-pill[data-home-pill-state="turning"][data-home-pill-face="mascot"] .ws-home-pill-canvas,
.ws-home-pill[data-home-pill-state="turning"][data-home-pill-face="mascot"] #workspace-home-pill-canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ws-home-pill { transition: none; }
  .ws-home-pill:hover, .ws-home-pill:active { transform: translateX(-50%); }
}
