/* ══════════════════════════════════════════════════════════════════
   Nexeth — Custom Cursor
   Geteilt von index.html, artwork-detail.html, lore-detail.html
   ══════════════════════════════════════════════════════════════════ */

#cur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  will-change: transform;
  font-family: var(--f);
}

/* Maus = obere rechte Ecke; Feld wächst nach unten links; Text zentriert */
.c-box {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-100%, 0);
}

.c-label-wrap {
  position: relative;
  width: 11px;
  min-height: 11px;
  transform-origin: top right;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: scale(1) translate(0, 0);
  transition: width 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    min-height 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.35s,
    opacity 0.2s;
}

.c-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 11px;
  height: 11px;
  background: var(--o, #ff6b00);
  z-index: 2;
  pointer-events: none;
  animation: hb-dot 3.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.c-t {
  position: relative;
  z-index: 1;
  font-family: var(--f);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--o, #ff6b00);
  white-space: nowrap;
  text-align: center;
  width: 100%;
  opacity: 0;
  max-width: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 0.3s 0.06s,
    max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-box.h .c-label-wrap {
  width: 100px;
  min-height: 30px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--o, #ff6b00);
  border-radius: 1px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  animation: c-field-in 0.56s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.c-box.h .c-t {
  opacity: 1;
  max-width: 100%;
  padding: 6px 8px 6px 10px;
}

.c-box.h .c-dot {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .c-box.h .c-label-wrap {
    animation: none;
    width: 100px;
    min-height: 30px;
  }
}

@keyframes hb-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
    background: rgba(255, 107, 0, 0.75);
  }
}

@keyframes c-field-in {
  0% {
    width: 11px;
    min-height: 11px;
    transform: scale(0.52) translate(14px, -12px);
    opacity: 0.92;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    width: 100px;
    min-height: 30px;
    transform: scale(1) translate(0, 0);
    opacity: 1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  }
}
