* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #F5F0E6;
  cursor: none;
}

#grid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#weave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.35;
  pointer-events: none;
}

#motif-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 220, 140, 0.15), rgba(14, 14, 14, 0.98) 70%);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

#cursor-trail {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(242, 210, 105, 0.7);
  pointer-events: none;
  z-index: 10;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  transition: none;
}

#overlay {
  will-change: opacity;
  transition: none;
}

canvas {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
