/* ==========================================================================
   Peerly Draw — Canvas & remote cursors (Material 3)
   ========================================================================== */

#canvas {
  background: var(--md-sys-color-surface);
  transition: background-color var(--md-sys-motion-duration-medium2) var(--md-sys-motion-easing-standard);
}

/* ==========================================================================
   CURSORS LAYER
   ========================================================================== */

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

.remote-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 70ms linear;
  color: var(--md-sys-color-primary);
  animation: cursor-fade-in var(--md-sys-motion-duration-medium1) var(--md-sys-motion-easing-standard);
}

@keyframes cursor-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.remote-cursor__arrow {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.remote-cursor__label {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: var(--md-sys-spacing-half) var(--md-sys-spacing-1);
  border-radius: var(--md-sys-shape-sm);
  color: #FFFFFF;
  font-family: var(--md-sys-typescale-font);
  font-size: var(--md-sys-typescale-label-small-size);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--md-sys-elevation-2);
  background: var(--md-sys-color-primary);
}