.reaction-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 46;
}

.reaction-dock {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%) translateY(-8px);
  z-index: 62;
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 18, 30, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0.2;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.reaction-dock::before {
  content: "";
  position: absolute;
  left: -28px;
  right: -28px;
  top: -28px;
  bottom: -18px;
  z-index: -1;
}

.reaction-dock:hover,
.reaction-dock:focus-within {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  background: rgba(13, 18, 30, 0.7);
  border-color: rgba(255, 255, 255, 0.24);
}

.reaction-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.reaction-btn span {
  font-size: 22px;
  line-height: 1;
  transform: translateY(1px);
}

.reaction-btn:hover,
.reaction-btn:focus-visible {
  outline: none;
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.reaction-btn:active {
  transform: scale(0.94);
}

.floating-reaction {
  position: absolute;
  left: 0;
  top: 0;
  font-size: clamp(72px, 12vw, 150px);
  line-height: 1;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
  transform: translate3d(-9999px, -9999px, 0);
  will-change: transform, opacity;
}

@media (max-width: 720px) {
  .reaction-dock {
    top: 10px;
    gap: 6px;
    padding: 6px;
  }

  .reaction-btn {
    width: 38px;
    height: 38px;
  }

  .reaction-btn span {
    font-size: 20px;
  }
}
