/* Touch and pen always pull from the visible grip. The rest of each card keeps
   vertical scrolling available; mouse dragging still works across the card. */
[data-sling] { touch-action: pan-y pinch-zoom; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-sling] .pull-cue { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; gap: 6px; touch-action: none; width: auto; cursor: grab; }
.signal-card.is-pulling { z-index: 12; }
.signal-card.is-pulling .signal-face,
.trial-send-button.is-pulling { transform: translate(var(--pull-x,0px),var(--pull-y,0px)) rotate(var(--pull-r,0deg)) scale(var(--pull-scale-x,1),var(--pull-scale-y,1)); transform-origin: center top; transition: none; }
.is-pulling .pull-cue { cursor: grabbing; }
.signal-card.is-armed .signal-face,
.trial-send-button.is-armed { outline: 3px solid var(--primary); outline-offset: 4px; }
.signal-card.is-cancelled .signal-face,
.trial-send-button.is-cancelled { opacity: .7; }
.sling-hint { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.65; color: var(--muted); margin: -5px 0 17px; }
.sling-hint > svg { width: 17px; height: 17px; color: var(--primary); }
.sling-hint strong { display: block; font-weight: 650; color: var(--ink); }
.sling-hint small { display: block; font-size: 10px; }
.sling-effects { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.sling-tether { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sling-tether path { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 0 #ffffffb3); }
.pull-meter { position: absolute; transform: translateX(-50%); white-space: nowrap; padding: 10px 15px; border-radius: 30px; background: #26352f; color: white; box-shadow: 0 5px 0 #101c172b,0 8px 25px #162a2920; font-size: 12px; font-weight: 700; border: 1px solid #ffffff80; }
.pull-meter::after { content: ''; display: block; height: 3px; border-radius: 3px; background: #ffd483; transform: scaleX(var(--charge,0)); transform-origin: left; margin-top: 5px; }
.pull-meter.ready { background: #ffd473; color: #3c2b10; }
.pull-meter.ready::after { background: #8d5b20; }
.pull-meter.cancelled { background: #665f5b; }
.flying-ping { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 2px solid #ffffffa6; border-radius: 22px; color: #29392f; background: radial-gradient(ellipse at 25% 10%,#ffffffa8,transparent 65%),var(--orb-color,#ffc2a7); box-shadow: inset 0 -5px 0 #00000016,inset 0 2px 1px #ffffffb5,0 8px 12px #27382e33; will-change: transform; }
.flying-ping::after { content: ''; position: absolute; inset: 7px 13px auto 9px; height: 4px; border-radius: 50%; background: #ffffff7d; }
.flying-ping svg { filter: drop-shadow(0 2px 0 #fff8); }
.sound-toggle { min-height: 44px; min-width: 66px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; border-radius: 15px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); }
.sound-setting-note { margin: 7px 0 0; font-size: 10px; color: var(--muted); line-height: 1.7; }
.sling-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theme-dark .flying-ping { color: var(--ink); }
.reduced-motion .is-pulling .signal-face,.reduced-motion .trial-send-button.is-pulling { transform: none !important; }
.reduced-motion .sling-tether,.reduced-motion .flying-ping { display:none; }
@media (prefers-reduced-motion: reduce) {
  .is-pulling .signal-face,.trial-send-button.is-pulling { transform: none !important; }
  .sling-tether,.flying-ping { display: none; }
}
@media(max-width:360px) { .app-header-actions { gap: 2px; } .sound-toggle { padding: 7px; min-width: 60px; } .sling-hint { font-size: 10px; } }
