.santa-logo {
  color: var(--color-black);
}

/* pathLength={1} normalizes the path length, so dasharray/dashoffset work in [0, 1]. */
.santa-logo-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: santa-logo-draw 2s ease-in-out forwards;
}

.santa-logo-loop .santa-logo-path {
  animation: santa-logo-draw-loop 2s ease-in-out infinite alternate;
}

.santa-logo-static .santa-logo-path {
  animation: none;
  stroke-dashoffset: 0;
}

@keyframes santa-logo-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* The loop alternates draw and reverse-draw so each cycle boundary has matching dashoffset. */
@keyframes santa-logo-draw-loop {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .santa-logo-path,
  .santa-logo-loop .santa-logo-path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
.cursor-status-hud {
  --cursor-popup-inline-start-clearance: var(--cursor-default-visible-inline-end);
  --cursor-popup-inline-end-clearance: var(--cursor-default-visible-inline-start);

  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  translate: calc(var(--cursor-popup-inline-start-clearance) + var(--cursor-popup-gap)) -50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.cursor-status-hud[data-cursor="crosshair"] {
  --cursor-popup-inline-start-clearance: var(--cursor-crosshair-visible-inline-radius);
  --cursor-popup-inline-end-clearance: var(--cursor-crosshair-visible-inline-radius);
}

.cursor-status-hud[data-visible="true"] {
  opacity: 1;
}

.cursor-status-hud[data-side="left"] {
  translate: calc(-100% - var(--cursor-popup-inline-end-clearance) - var(--cursor-popup-gap)) -50%;
}

.cursor-status-hud-label {
  display: block;
  padding: 2.5px 7.5px;
  border-radius: 10px;
  background: rgb(255 255 255 / 50%);
  color: #181818;
  box-shadow: var(--shadow-cursor-status);
  backdrop-filter: blur(var(--cursor-status-blur));
  -webkit-backdrop-filter: blur(var(--cursor-status-blur));
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--font-weight-regular);
  line-height: normal;
  letter-spacing: -0.12px;
  white-space: nowrap;
}

.cursor-status-hud[data-tone="danger"] .cursor-status-hud-label {
  background: var(--color-red);
  color: var(--color-white-subtle);
}

@media (prefers-reduced-transparency: reduce) {
  .cursor-status-hud-label {
    background: #f5f5f5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cursor-status-hud[data-tone="danger"] .cursor-status-hud-label {
    background: var(--color-red);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-status-hud {
    transition: none;
  }
}
.context-menu-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.context-menu-backdrop {
  position: absolute;
  inset: 0;
}

.context-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  border-radius: var(--radius-menu);
  background: rgb(245 245 245 / 50%);
  box-shadow: var(--shadow-menu);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-origin: top left;
}

.context-menu--dark {
  background: #181818;
  color: #f5f5f5;
}

.context-menu-top-slot {
  width: 200px;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  padding: 10px;
  border: none;
  border-radius: var(--radius-menu-item);
  background: none;
  color: var(--color-black);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-tight);
  text-align: left;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.context-menu--dark .context-menu-item {
  color: #f5f5f5;
}

.context-menu--dark .context-menu-icon {
  color: #f5f5f5;
}

.context-menu-item:hover:not(:disabled),
.context-menu-item.context-menu-item-active {
  background: var(--color-black);
  color: var(--color-white);
}

.context-menu--dark .context-menu-item:hover:not(:disabled),
.context-menu--dark .context-menu-item.context-menu-item-active {
  background: rgb(245 245 245 / 12%);
  color: #f5f5f5;
}

.context-menu-item-danger:hover:not(:disabled),
.context-menu-item-danger.context-menu-item-active {
  background: var(--color-red);
  color: var(--color-white);
}

.context-menu--dark .context-menu-item-danger:hover:not(:disabled),
.context-menu--dark .context-menu-item-danger.context-menu-item-active {
  background: var(--color-red);
  color: #f5f5f5;
}

.context-menu-item:disabled {
  cursor: var(--cursor-default);
  opacity: 0.5;
}

.context-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.context-menu-icon svg,
.context-menu-icon svg * {
  width: 12px;
  height: 12px;
  stroke-width: 1;
}
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Frosted backdrop: the blur itself animates in, Apple style. */
.modal-shell-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 40%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modal-shell-backdrop-in 400ms ease both;
}

.modal-shell-card {
  position: relative;
  max-width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-pop);
  animation: modal-shell-card-in 350ms var(--ease-fluid) both;
}

.modal-shell-closing .modal-shell-backdrop {
  animation: modal-shell-backdrop-out 250ms ease both;
}

.modal-shell-closing .modal-shell-card {
  animation: modal-shell-card-out 250ms ease both;
}

@keyframes modal-shell-backdrop-in {
  from {
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }

  to {
    background: rgb(255 255 255 / 40%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

@keyframes modal-shell-backdrop-out {
  from {
    background: rgb(255 255 255 / 40%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  to {
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes modal-shell-card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modal-shell-card-out {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-shell-backdrop,
  .modal-shell-card {
    animation: none;
  }
}
