.w-position { position: absolute; inset: 0; transform: translate3d(var(--w-x, 0px), var(--w-y, 0px), 0); }
.w-drag-handle { position: absolute; inset: 13%; border: 0; border-radius: 25%; background: transparent; padding: 0; pointer-events: auto; z-index: 2; cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.w-drag-handle:focus-visible { outline: 2px dashed #0051ff; outline-offset: 8px; }
.theme-dark .w-drag-handle:focus-visible { outline-color: white; }
.avatar-scene .sculpture-fallback { user-select: none; -webkit-user-drag: none; pointer-events: none; }
.w-grabbed .w-drag-handle { cursor: grabbing; }
.w-grabbed .w-idle { animation-play-state: paused !important; }
.w-resetting .w-position { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.w-controls { position: absolute; bottom: 55px; left: 4vw; z-index: 4; display: flex; gap: 12px; align-items: center; color: #0051ff; font-size: 11px; }
.w-controls > span { opacity: .75; }
.w-reset { min-height: 40px; padding: 8px 13px; border: 1px solid currentColor; border-radius: 99px; background: #fff; color: inherit; font-size: 11px; }
.w-reset[hidden] { display: none; }
.theme-dark .w-controls { color: white; }
.theme-dark .w-reset { background: #0051ff; }
@media (max-width: 600px) { .w-controls { left: 20px; bottom: 49px; font-size: 10px; gap: 8px; } .w-reset { min-height: 44px; font-size: 10px; } }
@media (max-height: 560px) { .w-controls { bottom: 33px; } }
@media (prefers-reduced-motion: reduce) { .w-resetting .w-position { transition: none; } }

/* Reuse the exact silhouette so the dark-mode color filter has no rectangular backdrop. */
.theme-dark .sculpture-fallback {
  -webkit-mask-image: url('/assets/w-negative-mask.png');
  mask-image: url('/assets/w-negative-mask.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
