.cursor-main { max-width: 70rem; margin: auto; padding: clamp(2rem, 5.5vw, 5.4rem) var(--gutter) 3rem; }
.cursor-main h1 { color: var(--green); font-size: clamp(2.05rem, 5.4vw, 4.8rem); line-height: 1.06; letter-spacing: -.075em; text-wrap: balance; }
.cursor-lead { max-width: 50ch; margin: .8rem auto 2rem; text-wrap: balance; color: var(--muted); }
.cursor-lead a, .cursor-bespoke a { color: var(--green); }
.cursor-station { display: grid; grid-template-columns: minmax(12rem, .82fr) minmax(0, 2fr); text-align: left; border-block: 1px solid var(--line); }
.cursor-options { border: 0; border-right: 1px solid var(--line); padding: 1.25rem 1.25rem 1.25rem 0; margin: 0; min-width: 0; }
#cursor-options { display: grid; gap: .4rem; }
.cursor-choice { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; min-height: 60px; position: relative; border: 1px solid transparent; padding: .35rem .6rem; cursor: pointer; font-size: .88rem; }
.cursor-choice input { width: 1px; height: 1px; margin: 0; opacity: 0; position: absolute; }
.cursor-choice:has(input:checked) { border-color: var(--green); background: var(--panel); color: var(--green); }
.cursor-choice:has(input:checked)::after { content: '✓'; margin-left: auto; }
.cursor-choice:has(input:focus-visible) { outline: 2px solid var(--hot); outline-offset: 2px; }
.cursor-choice:hover { background: var(--panel); }
.cursor-choice img {
  display: block; width: 46px; height: 46px; object-fit: contain; flex: none; padding: 3px;
  filter: hue-rotate(var(--sample-hue,0deg)) drop-shadow(0 1px 1px #090e123b);
}
.cursor-choice:is(:hover, :has(input:checked)) img { filter: hue-rotate(var(--sample-hue,0deg)) drop-shadow(0 2px 2px #090e1242); }
.cursor-choice:has(input[value="robot-hand"]), .cursor-pad[data-sample="robot-hand"] { --sample-hue: var(--cursor-hue,30deg); }
.cursor-choice span { text-wrap: balance; }
.cursor-workshop { min-width: 0; padding: 1.4rem 0 1.4rem clamp(1rem, 3.6vw, 2.7rem); }
.cursor-title h2, .cursor-bespoke h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.065em; line-height: 1.15; color: var(--green); }
.cursor-title p, .cursor-bespoke p { margin-top: .36rem; color: var(--muted); text-wrap: pretty; }
.cursor-pad {
  width: 100%; height: clamp(190px, 26vh, 265px); display: block; position: relative;
  overflow: hidden; contain: paint; margin: 1rem 0 .4rem; padding: 0; border: 1px solid var(--edge);
  background: radial-gradient(ellipse at 50% 35%, #33484b48, transparent 75%),
    linear-gradient(#9fc0cb12 1px, transparent 1px), linear-gradient(90deg,#9fc0cb12 1px, transparent 1px),
    linear-gradient(145deg,#192225,#111719 68%,#172024);
  background-size: auto, 24px 24px, 24px 24px, auto; background-position: center;
  box-shadow: inset 0 1px 0 #e2f1ed29, inset 0 0 2rem #0005;
  cursor: default; touch-action: manipulation;
}
.cursor-pad::before, .cursor-pad::after {
  content: ""; position: absolute; left: 7%; right: 7%; height: 4px; pointer-events: none; opacity: .42;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 12px);
  mask-image: linear-gradient(90deg, transparent, black 18% 82%, transparent);
}
.cursor-pad::before { top: 8px; } .cursor-pad::after { bottom: 8px; }
.cursor-pad:not(:disabled):focus-visible { outline-offset: 3px; }
.cursor-pad[data-tracking] { cursor: none; }
.cursor-guides, .cursor-art, .cursor-target { position: absolute; pointer-events: none; }
.cursor-guides { width: clamp(88px, 23%, 144px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 1px solid var(--edge); border-radius: 50%; opacity: .55; box-shadow: 0 0 0 5px color-mix(in srgb, var(--edge) 9%, transparent); }
.cursor-guides::before, .cursor-guides::after { content: ''; position: absolute; background: var(--edge); }
.cursor-guides::before { width: calc(100% + 24px); height: 1px; left: -12px; top: 50%; }
.cursor-guides::after { height: calc(100% + 24px); width: 1px; top: -12px; left: 50%; }
.cursor-art { left: var(--px,50%); top: var(--py,50%); width: var(--art-size,79px); height: var(--art-size,79px); transform-origin: calc(0% - var(--hot-x,-7.031%)) calc(0% - var(--hot-y,-3.281%)); transform: translate(var(--hot-x,-7.031%),var(--hot-y,-3.281%)) scale(var(--art-flip-x,1),var(--art-flip-y,1)); }
.cursor-pad:not([data-located]) .cursor-art { width: clamp(102px,11vw,138px); height: clamp(102px,11vw,138px); transform: translate(-50%,-50%); }
.cursor-pad[data-input=touch]:not([data-located]) .cursor-art { width: var(--art-size); height: var(--art-size); }
.cursor-art img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; filter: hue-rotate(var(--sample-hue,0deg)) drop-shadow(0 3px 2px #05060566); }
.cursor-pad:is([data-tracking],[data-touch-preview],:focus-visible) .cursor-art img { filter: hue-rotate(var(--sample-hue,0deg)) drop-shadow(0 1px 1px #05060577); }
.cursor-pad:is([data-tracking],[data-touch-preview],:focus-visible) .cursor-guides { opacity: .25; }
.cursor-target { width: 18px; height: 18px; left: var(--px,50%); top: var(--py,50%); transform: translate(-50%,-50%); border: 1px solid var(--green); border-radius: 50%; opacity: 0; }
.cursor-pad[data-pose=pressed] .cursor-target { opacity: .88; }
#cursor-instructions { color: var(--muted); font-size: .78rem; min-height: 1.4em; }
.touch-help,.keyboard-help { display: none; }
@media (hover: none), (pointer: coarse) { .mouse-help { display: none; } .touch-help { display: inline; } }
.cursor-pad[data-input=touch] + .cursor-preview-actions .mouse-help { display: none; }
.cursor-pad[data-input=touch] + .cursor-preview-actions .touch-help { display: inline; }
.cursor-pad[data-input=mouse] + .cursor-preview-actions .mouse-help { display: inline; }
.cursor-pad[data-input=mouse] + .cursor-preview-actions .touch-help { display: none; }
.cursor-pad:focus-visible + .cursor-preview-actions :is(.mouse-help,.touch-help) { display: none; }
.cursor-pad:focus-visible + .cursor-preview-actions .keyboard-help { display: inline; }
.cursor-use { margin-top: .8rem; }
.cursor-bespoke { padding: 2rem 0 1.4rem; scroll-margin-top: 1rem; }
.cursor-bespoke .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; }
.cursor-price { color: var(--muted); margin-inline: auto; max-width: 50ch; font-size: .85rem; text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .cursor-guides { transition: opacity 140ms ease-out; }
}
@media (max-width: 650px) {
  .cursor-main { padding-top: 2rem; }
  .cursor-lead { margin-bottom: 1.25rem; }
  .cursor-station { grid-template-columns: 1fr; }
  .cursor-options { border: 0; padding: .8rem 0 0; }
  #cursor-options { grid-template-columns: repeat(6,minmax(0,1fr)); gap: .25rem; }
  .cursor-choice { flex-direction: column; justify-content: start; text-align: center; padding: .4rem .15rem; gap: .3rem; font-size: .76rem; line-height: 1.2; }
  .cursor-choice:has(input:checked)::after { position: absolute; right: 3px; top: 2px; font-size: .67rem; }
  .cursor-choice img { height: 41px; width: 41px; }
  .cursor-choice:last-child:nth-child(6n+1):not(:first-child) {
    grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: center;
  }
  .cursor-workshop { padding: 1.2rem 0; text-align: center; }
  .cursor-title p { font-size: .88rem; min-height: 2.65em; }
  .cursor-pad { height: clamp(145px,23svh,215px); margin-top: .7rem; }
}
@media (max-width: 480px) {
  #cursor-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cursor-choice:last-child:nth-child(3n+1):not(:first-child) {
    grid-column: 1/-1; flex-direction: row; align-items: center; justify-content: center;
  }
}
@media (forced-colors: active) { .cursor-pad[data-tracking] { cursor: crosshair; } .cursor-choice:has(input:checked) { border: 2px solid Highlight; } }
