.cursor-demo { margin: 48px 0 32px; }
.cursor-demo-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.cursor-demo-heading h3 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.7px; }
.cursor-demo-heading p { max-width: 270px; color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.cursor-demo-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; border: 1px solid var(--line-2); border-radius: 16px; background: #151517; padding: 16px 20px; }
.cursor-demo-controls[hidden] { display: none; }
.cursor-demo-toggle { display: flex; gap: 16px; align-items: center; border: 0; background: none; color: var(--text); font: 500 15px var(--sans); min-height: 44px; cursor: pointer; }
.cursor-demo-toggle span { display: block; width: 40px; height: 24px; border-radius: 20px; background: #555; position: relative; }
.cursor-demo-toggle span::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: #fff; }
.cursor-demo-toggle[aria-checked="true"] span { background: var(--blue); }
.cursor-demo-toggle[aria-checked="true"] span::after { left: 19px; }
.cursor-demo fieldset { border: 0; padding: 0 0 0 20px; margin: 0; border-left: 1px solid var(--line-2); min-width: 0; }
.cursor-demo legend { float: left; color: var(--muted); font-size: 14px; line-height: 44px; margin-right: 16px; padding: 0; }
.cursor-demo-presets { display: flex; gap: 4px; }
.cursor-demo-presets label { position: relative; cursor: pointer; }
.cursor-demo-presets input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cursor-demo-presets span { display: block; padding: 12px 16px; font-size: 14px; border-radius: 9px; color: var(--muted); }
.cursor-demo-presets input:checked + span { color: #fff; background: #35353b; }
.cursor-demo-presets label:hover span { color: #fff; }
.cursor-demo :focus-visible, .cursor-demo-presets input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 3px; }
.cursor-playground { position: relative; height: 260px; overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: radial-gradient(ellipse at center, #131315 0, #030303 75%); }
.cursor-playground.is-enabled { cursor: none; }
.cursor-demo-pointer { position: absolute; left: 0; top: 0; pointer-events: none; filter: drop-shadow(0 3px 3px #000); transform: translate(40px, 40px); }
.cursor-demo-target { position: absolute; width: 8px; height: 8px; top: -3px; left: -3px; border: 1px solid #777; border-radius: 50%; pointer-events: none; opacity: 0; }
.cursor-playground.is-active .cursor-demo-target { opacity: .7; }
.cursor-demo-hint { position: absolute; inset: 0; display: grid; place-items: center; color: #777; font: 13px var(--mono); pointer-events: none; }
.cursor-playground.is-active .cursor-demo-hint { opacity: 0; }
.cursor-playground:not(.is-enabled) .cursor-demo-pointer, .cursor-playground:not(.is-enabled) .cursor-demo-target { visibility: hidden; }
#cursor-demo-help, .cursor-demo-status, .cursor-demo noscript { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 14px 0 0; }
.cursor-demo-status:empty { display: none; }
@media (max-width: 700px) {
  .cursor-demo-heading { align-items: start; flex-direction: column; gap: 10px; }
  .cursor-demo-controls { padding: 12px; gap: 8px; }
  .cursor-demo fieldset { border: 0; padding: 0; width: 100%; }
  .cursor-demo legend { float: none; line-height: 1.5; text-align: center; margin: 0 0 8px; width: 100%; }
  .cursor-demo-presets { justify-content: center; }
  .cursor-demo-presets span { padding: 12px; }
  .cursor-playground { height: 210px; }
}
