.social-dock {
  position: fixed;
  z-index: 50;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 999px;
  background: rgb(9 13 23 / 80%);
  box-shadow: 0 4px 16px rgb(0 0 0 / 14%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.social-dock__link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: rgb(255 255 255 / 72%);
  text-decoration: none;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease-out;
}

.social-dock__link svg {
  display: block;
  width: 20px;
  height: 20px;
}

.social-dock__link:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 1px;
}

.social-dock__link:active {
  background: rgb(165 180 252 / 12%);
  transform: scale(0.97);
}

@media (max-width: 767px) {
  .social-dock {
    right: max(8px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .social-dock__link {
    width: 44px;
    height: 44px;
    background: rgb(9 13 23 / 55%);
  }

  .social-dock__link svg {
    width: 22px;
    height: 22px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .social-dock__link:hover {
    color: #c7d2fe;
    background: rgb(165 180 252 / 9%);
  }
}

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

  .social-dock__link:active {
    transform: none;
  }
}

@media print {
  .social-dock {
    display: none;
  }
}
