/* Cursor modes: copper, race, satellite, pen */
.cu-blob,
.cu-car,
.cu-sat {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
html.pen .cur.m-gold .cu-blob {
  display: block;
}
html.pen .cur.m-race .cu-car {
  display: block;
}
html.pen .cur.m-sat .cu-sat {
  display: block;
}
html.pen .cur:not(.m-pen) .nib {
  display: none !important;
}
.cu-blob {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e3955a;
  will-change: transform;
  transition:
    width 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    border-radius 0.45s,
    opacity 0.3s;
}
html.pen .cur.m-gold {
  mix-blend-mode: difference;
}
html.pen .cur.m-gold.on-paper {
  mix-blend-mode: multiply;
}
html.pen .cur.m-gold.hugging {
  mix-blend-mode: normal;
}
.cur.hugging .cu-blob {
  background: rgba(227, 149, 90, 0.08);
  box-shadow:
    0 0 0 1.5px #e3955a,
    0 0 28px rgba(227, 149, 90, 0.35);
}
.cu-blob {
  transition:
    width 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    height 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    border-radius 0.45s,
    opacity 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.cur.xr .cu-blob {
  opacity: 0;
}
.cu-car svg {
  position: absolute;
  left: -11px;
  top: -7px;
  width: 22px;
  height: 14px;
  transform: rotate(var(--a, 0rad));
}
.cu-sat svg {
  position: absolute;
  left: -15px;
  top: -8px;
  width: 30px;
  height: 16px;
}
.cu-tag {
  position: absolute;
  left: 18px;
  top: 12px;
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #f4e7d7;
  background: rgba(19, 11, 7, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}
.cu-sat .cu-tag {
  color: #8cc4ff;
}
.cu-tag:empty {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  html.pen,
  html.pen * {
    cursor: none !important;
  }
  html.pen input,
  html.pen textarea {
    cursor: text !important;
  }
  html.pen .cur .ring,
  html.pen .cur .dot {
    display: none;
  }
}
.ink-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 98;
  pointer-events: none;
  display: none;
}
html.pen .ink-trail {
  display: block;
}
.cur .nib {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 42px;
  will-change: transform;
}
html.pen .cur .nib {
  display: block;
}
.nib svg {
  position: absolute;
  left: -11px;
  top: -41px;
  width: 22px;
  height: 42px;
  transform-origin: 11px 41px;
  transform: rotate(var(--rot, 32deg)) scale(var(--sc, 1));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}
.nib-body {
  fill: url(#nibG);
  stroke: #3a1c0b;
  stroke-width: 0.8;
}
.nib-slit {
  stroke: #2a1408;
  stroke-width: 1;
  stroke-linecap: round;
}
.nib-hole {
  fill: #2a1408;
}
.nib-ink {
  fill: #1d130d;
  opacity: 0;
  transition: opacity 0.3s;
}
.cur.hov .nib-ink,
.cur.view .nib-ink {
  opacity: 0.9;
}
.cur.hov .nib,
.cur.view .nib {
  --sc: 1.18;
  --rot: 18deg;
}
.nib-lbl {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hot);
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px;
  background: rgba(19, 11, 7, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(16px, 8px) scale(0.9);
  transition:
    opacity 0.25s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.cur.lbl .nib-lbl {
  opacity: 1;
}
