* {
  box-sizing: border-box;
}

:root {
  --crosshair-cursor:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.5"><line x1="12" y1="2" x2="12" y2="22"/><line x1="2" y1="12" x2="22" y2="12"/></svg>')
      12 12,
    crosshair;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background:
    conic-gradient(
      oklch(100% 0 0 / 0.1) 90deg,
      transparent 90deg 180deg,
      oklch(100% 0 0 / 0.1) 180deg 270deg,
      transparent 270deg
    ),
    linear-gradient(
      110deg,
      oklch(58% 0.28 255) 0%,
      oklch(42% 0.34 295) 100%
    );
  background-size:
    40px 40px,
    100% 100%;
  user-select: none;
  cursor: var(--crosshair-cursor);
}

#c {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  opacity: 0.9;
  touch-action: none;
}

.reset-btn {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.65rem 1.15rem;

  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);

  backdrop-filter: blur(16px);

  color: rgba(255, 255, 255, 0.95);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.025em;

  cursor: pointer;

  transition:
    background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  svg {
    transition: transform 0.3s ease;
  }

  &:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);

    svg {
      transform: rotate(-45deg);
    }
  }

  &:active {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0) scale(0.97);
  }
}