#panic-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: grab;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  padding: 6px;
  border-radius: 8px;
}

#panic-float:hover {
  opacity: 1;
}

#panic-float.dragging {
  cursor: grabbing;
  opacity: 1;
}

#panic-float .keycap-img {
  width: 35px;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease, filter 0.15s ease;
}

#panic-float:hover .keycap-img {
  transform: scale(1.08);
  filter: drop-shadow(0 2px 8px rgba(67, 217, 255, 0.6));
}

#panic-float.dragging .keycap-img {
  transform: scale(1.05);
}

#panic-float .label {
  font-size: 10px;
  color: #8d86a8;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  white-space: nowrap;
  background: rgba(23, 19, 41, 0.85);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(67, 217, 255, 0.2);
  pointer-events: none;
}

#panic-float:hover .label {
  color: #fff;
  border-color: rgba(67, 217, 255, 0.5);
}
