/* Skate Bud web demo: touch suggestions (js/hints.js). A fingertip dot on the next thing to tap, like the touch dots
   in a screen recording, and the coach's off switch. The dot sits in #sb-screen over the app (z 70) and never takes
   a tap. It carries no words. Light only. The hero's attract loop (css/attract.css) draws the same dot. */

.hn-touch {
  position: absolute; z-index: 70; left: -100px; top: -100px; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  box-sizing: border-box; border-radius: 50%; pointer-events: none; display: none;
  background: radial-gradient(circle at 50% 50%, rgba(40, 46, 58, 0.55) 0 34%, rgba(255, 255, 255, 0.5) 37% 100%);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(20, 24, 33, 0.4), 0 3px 12px rgba(17, 24, 39, 0.38);
}
/* the spreading ring */
.hn-touch::after {
  content: ""; position: absolute; left: -2px; top: -2px; right: -2px; bottom: -2px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(20, 24, 33, 0.18);
  opacity: 0;
}
.hn-touch.hn-on { display: block; animation: hn-in 0.25s ease-out both, hn-tap 1.6s ease-in-out 0.25s infinite; }
.hn-touch.hn-on::after { animation: hn-ring 1.6s ease-out 0.25s infinite; }
@keyframes hn-in { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: scale(1); } }
@keyframes hn-tap {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(0.84); }
  26% { transform: scale(1); }
}
@keyframes hn-ring {
  0%, 10% { opacity: 0; transform: scale(1); }
  14% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2); }
}
/* a drag: the dot lands, presses, slides to the end, lifts, then starts again */
.hn-touch.hn-on.hn-drag { animation: hn-drag 2.4s ease-in-out infinite; }
.hn-touch.hn-on.hn-drag::after { animation: none; opacity: 0; }
@keyframes hn-drag {
  0% { opacity: 0; transform: translate(0, 0) scale(1.3); }
  10% { opacity: 1; transform: translate(0, 0) scale(1); }
  20% { opacity: 1; transform: translate(0, 0) scale(0.86); }
  70% { opacity: 1; transform: translate(var(--hn-dx, 0px), var(--hn-dy, 0px)) scale(0.86); }
  80% { opacity: 1; transform: translate(var(--hn-dx, 0px), var(--hn-dy, 0px)) scale(1); }
  92%, 100% { opacity: 0; transform: translate(var(--hn-dx, 0px), var(--hn-dy, 0px)) scale(1); }
}
/* reduced motion: a still dot, no pulse, no slide */
.hn-touch.hn-on.hn-still, .hn-touch.hn-on.hn-still.hn-drag { animation: none; opacity: 1; transform: none; }
.hn-touch.hn-on.hn-still::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hn-touch.hn-on, .hn-touch.hn-on.hn-drag { animation: none; opacity: 1; transform: none; }
  .hn-touch.hn-on::after { animation: none; opacity: 0; }
}

/* the switch under the coach's words */
.hn-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; min-height: 40px; box-sizing: border-box;
  background: var(--sb-panel, #fff);
  border: 0.5px solid var(--sb-border, #dadde3);
  border-radius: 14px;
  font: 15px/1.3 var(--sb-font, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif);
  color: var(--sb-text, #1b2130);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.hn-check {
  width: 18px; height: 18px; margin: 0; flex: none; cursor: pointer;
  accent-color: var(--sb-accent, #2563eb);
}
.hn-check:focus-visible { outline: 2px solid var(--sb-accent, #2563eb); outline-offset: 2px; }
.hn-row-text { flex: 1; }
