/* tonight/fable-m4 · the ghost arc (Gill's picked style).
   Companion to js/dial.js. Replaces the #ghostdial rules in css/sky.css —
   leave those in place (they only match #ghostdial) or delete them once
   ghostdial.js is no longer loaded.

   Line weights from the options sheet; the arc stays at a free screen edge
   (the live, approved placement — not around the thumb).
   Fade-in is .22s ease (STANDARDS §3 CSS board fade). After release the arc
   lingers, then fades, and is gone about a second later; only then the
   tune drawer fades back in. Reduce Motion skips the fades, same end state.
   Active warm white #e8e4dc; value tick gold #e8c48a with a 4px glow. */

#gjdial{
  --gd-ink:232,228,220;
  --gd-warm:#e8e4dc;
  --gd-gold:#e8c48a;
  --gd-ease:cubic-bezier(.22,.7,.2,1);
  position:fixed;inset:0;width:100%;height:100%;z-index:59;pointer-events:none;overflow:visible;
}
html[data-theme=red] #gjdial{--gd-ink:255,68,87}
#gjdial-ghost{position:absolute;inset:0;width:100%;height:100%;overflow:visible;opacity:0;visibility:hidden}
#gjdial-ghost.on{opacity:1;visibility:visible;transition:opacity .22s ease}
#gjdial-ghost.out{opacity:0;visibility:visible;transition:opacity .72s linear}

#gjdial-ghost .gd-arc{fill:none;stroke:rgba(var(--gd-ink),.34);stroke-width:1}
#gjdial-ghost .gd-end{fill:none;stroke:rgba(var(--gd-ink),.22);stroke-width:1}
#gjdial-ghost .gd-def{fill:none;stroke:rgba(var(--gd-ink),.5);stroke-width:1.4;stroke-linecap:round}
#gjdial-ghost .gd-cur{fill:none;stroke:var(--gd-gold);stroke-width:1.6;stroke-linecap:round;filter:drop-shadow(0 0 4px rgba(232,196,138,.6))}
#gjdial-ghost .gd-name{font:400 7.5px "Julius Sans One",Poppins,sans-serif;letter-spacing:.2em;fill:rgba(var(--gd-ink),.62)}
#gjdial-ghost .gd-val{font:300 8px Poppins,sans-serif;letter-spacing:.06em;fill:rgba(var(--gd-ink),.62)}

/* The whole tune drawer gets out of the way while a slider is held:
   opacity 0 and pointer-events off (not dimmed). Dragging continues via
   setPointerCapture in dial.js. The module adds .gd-away; do not remove it
   from tune.js on pointer-up — the module clears it after the arc has gone. */
#markmenu.gd-away,
[data-gjdial-drawer].gd-away{
  opacity:0!important;
  pointer-events:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transition:none;
}
@media (prefers-reduced-motion:reduce){
  #gjdial-ghost.on,#gjdial-ghost.out,
  #markmenu,#markmenu.gd-away,[data-gjdial-drawer],[data-gjdial-drawer].gd-away{transition:none!important}
}
html.rm #gjdial-ghost.on,html.rm #gjdial-ghost.out,
html.rm #markmenu,html.rm #markmenu.gd-away,
html.rm [data-gjdial-drawer],html.rm [data-gjdial-drawer].gd-away{transition:none!important}
