.share-dock {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 2147483000;
  display: grid;
  gap: 10px;
  width: 132px;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

.share-action {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.share-action > span {
  min-width: 0;
  white-space: nowrap;
}

.share-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .3);
  filter: brightness(1.025);
}

.share-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.share-action svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.share-kakao {
  background: #fee500;
  color: #191600;
  border-color: rgba(25, 22, 0, .08);
}

.share-kakao .kakao-logo {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: none;
}

.share-kakao .kakao-bubble {
  fill: #191919;
}

.share-kakao .kakao-word {
  fill: #fee500;
}

.share-copy {
  background: #202228;
  color: #ffffff;
  border-color: #202228;
}

.share-toast {
  position: fixed;
  right: 22px;
  bottom: 144px;
  z-index: 2147483001;
  max-width: min(330px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #202228;
  border-radius: 3px;
  background: #202228;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }

  .share-dock {
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    width: auto;
    background: #17191d;
  }

  .share-action {
    justify-content: center;
    min-height: calc(56px + env(safe-area-inset-bottom));
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .22);
    font-size: 15px;
  }

  .share-action:hover {
    transform: none;
  }

  .share-toast {
    right: auto;
    left: 50%;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: max-content;
    transform: translate(-50%, 8px);
    text-align: center;
  }

  .share-toast.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-action,
  .share-toast {
    transition: none;
  }
}
