.fortune-presence {
  position: fixed;
  left: 14px;
  bottom: 112px;
  z-index: 85;
  width: 68px;
  filter: drop-shadow(0 5px 10px #23053040);
}
.fortune-presence[hidden] {
  display: none;
}
.fortune-presence > a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid #f3d398;
  background: radial-gradient(circle at 35% 20%, #985691, #391548 65%);
  color: #fff1c9;
  text-decoration: none;
  touch-action: none;
  position: relative;
  box-shadow: inset 0 0 12px #ffd08a35;
}
.fortune-presence img {
  width: 66px;
  height: 72px;
  object-fit: contain;
  flex: none;
  transform: translateY(-4px);
  animation: fortune-breathe 4s ease-in-out infinite;
}
.fortune-presence > a > span {
  display: none;
  font: 750 14px var(--app-font);
  white-space: nowrap;
  padding-right: 15px;
}
.fortune-presence small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
  color: #f0d7ac;
}
.fortune-presence .fortune-close {
  position: absolute;
  right: -3px;
  top: -8px;
  z-index: 1;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid #e5c681;
  border-radius: 50%;
  background: #321439;
  color: #ffe8bc;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}
.fortune-presence:focus-within > a {
  width: max-content;
  border-radius: 40px;
}
.fortune-presence:focus-within > a > span {
  display: block;
}
.fortune-presence a:focus-visible,
.fortune-presence button:focus-visible {
  outline: 3px solid #ffda6b;
  outline-offset: 3px;
}
@media (hover: hover) {
  .fortune-presence:hover > a {
    width: max-content;
    border-radius: 40px;
  }
  .fortune-presence:hover > a > span {
    display: block;
  }
}
@keyframes fortune-breathe {
  50% {
    transform: translateY(-8px) rotate(-3deg);
  }
}
@media (max-width: 760px) {
  .fortune-presence {
    left: 10px;
    bottom: 96px;
    width: 50px;
  }
  .fortune-presence > a {
    width: 50px;
    height: 50px;
  }
  .fortune-presence img {
    width: 48px;
    height: 54px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fortune-presence img {
    animation: none;
  }
}
