:root {
  --bg1: #0f1014;
  --bg2: #171922;
  --bg3: #090a0d;
  --fg: #f4f1ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 40%,
    var(--bg2) 0%,
    var(--bg1) 55%,
    var(--bg3) 100%
  );
  font-family: Inter, Arial, Helvetica, sans-serif;
  cursor: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4f1ea;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: difference;
  transition:
    width 180ms ease,
    height 180ms ease,
    opacity 180ms ease;
}

.cursor::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.cursor.near {
  width: 16px;
  height: 16px;
}

.cursor.near::after {
  opacity: 1;
  transform: scale(1);
}

.cursor.dragging {
  width: 18px;
  height: 18px;
}

.hint-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 15;
}

.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: unset;
  padding: 7px 12px;
  border-radius: 9px;
  overflow: hidden;

  color: rgba(244, 241, 234, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;

  background: rgba(255, 255, 255, 0.025);

  backdrop-filter: blur(6px) saturate(110%);
  -webkit-backdrop-filter: blur(6px) saturate(110%);
}

.hint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 107, 107, 0.05) 0%,
    rgba(247, 184, 1, 0.05) 16%,
    rgba(107, 203, 119, 0.05) 32%,
    rgba(77, 150, 255, 0.05) 48%,
    rgba(184, 146, 255, 0.05) 64%,
    rgba(255, 143, 171, 0.05) 80%,
    rgba(255, 209, 102, 0.05) 100%
  );
  opacity: 0.8;
  pointer-events: none;
}

.hint span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.18);
}