.cache-fab {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 16, 22, 0.62);
  color: #f4f4f8;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

body.has-dock .cache-fab {
  bottom: calc(20px + env(safe-area-inset-bottom) + 68px);
}

.cache-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cache-fab:hover {
  transform: translateY(-2px);
  background: rgba(24, 24, 32, 0.72);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.cache-fab:active {
  transform: translateY(1px) scale(0.98);
}

.cache-fab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.cache-fab__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.cache-fab__text {
  line-height: 1;
}

.cache-fab-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10001;
}

.cache-particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.5),
    0 0 18px rgba(6, 182, 212, 0.35);
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .cache-fab {
    transition: none;
  }

  .cache-fab:hover,
  .cache-fab:active {
    transform: none;
  }
}
