#stickman {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  font-family:
    "SFMono-Regular",
    "Menlo",
    "Consolas",
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 14px;
  line-height: 1;
  white-space: pre;
  color: #f6f6fb;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 0 4px rgba(0, 0, 0, 0.45);
  user-select: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

#stickman:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.stickman-art {
  margin: 0;
  display: block;
  transform-origin: center;
}

#stickman.is-flipped .stickman-art {
  transform: scaleX(-1);
}

#stickman.is-controlled .stickman-art {
  filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.45));
}

#stickman-hint {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -8px);
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 14, 0.85);
  color: #f3f3f7;
  font-size: 11px;
  line-height: 1.3;
  max-width: min(240px, 80vw);
  text-align: center;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#stickman-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, -12px);
}

#stickman-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -4px) rotate(45deg);
  background: rgba(10, 10, 14, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  #stickman {
    font-size: 12px;
  }
}
