/* only for "There’s a string hanging off my website". Other posts never load this. */

/* ---------- x-ray overlay (drawn inside the shared #cordSvg) ---------- */
#xray line { stroke: var(--fg); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .7; }
#xray circle { fill: var(--orange); stroke: var(--bg); stroke-width: 1.5; }
#xray circle.pin { fill: var(--fg); }
#xray circle.hand { fill: none; stroke: var(--orange); stroke-width: 2.5; }
#xray text { font: 600 10px "JetBrains Mono", ui-monospace, monospace; fill: var(--fg); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.xray-controls { margin-top: 14px; }

/* ---------- live pull chart ---------- */
.pull-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 24px; align-items: center; }
.pull-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pull-chart .grid line { stroke: var(--line); stroke-width: 2; }
.pull-chart .asym { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 5; }
.pull-chart .thresh { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 7 5; }
.pull-chart .curve { fill: none; stroke: var(--fg); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pull-chart .lbl { font: 12px "JetBrains Mono", ui-monospace, monospace; fill: var(--muted); }
.pull-chart .lbl.hot { fill: var(--orange); }
.pull-chart .live circle { fill: var(--orange); stroke: var(--line); stroke-width: 2; }
.pull-chart .live .halo { fill: var(--orange); stroke: none; opacity: 0; transition: opacity .2s; }
.pull-chart .live.over .halo { opacity: .35; }
.pull-side { font-size: 16px; line-height: 1.5; }
.pull-side > * + * { margin-top: 14px; }
.pull-readout output { color: var(--fg); display: inline-block; min-width: 2ch; text-align: right; }
.flips { font-size: 12px; color: var(--muted); }

/* ---------- click sound ---------- */
.click-body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.click-body pre { flex: 1 1 320px; margin: 0 !important; box-shadow: none !important; }
#tck-btn { font-size: 18px; padding: 14px 22px; }

/* ---------- the name moment ---------- */
.namedrop { padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px) 28px; text-align: left; }
.namedrop .name {
  font-size: clamp(76px, 17vw, 200px); font-weight: 700; letter-spacing: -.06em; line-height: .85;
  display: flex; user-select: none;
}
.namedrop .no { display: inline-flex; color: var(--fg); transition: color .6s ease; }
.namedrop .no span { display: inline-block; }
html.dark .namedrop .no { color: var(--card); }
.namedrop .dot { color: var(--orange); }
.namedrop .name-line { font-size: clamp(24px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.035em; margin-top: 26px; }
.namedrop .worse { color: var(--orange); }
.namedrop .name-cta { margin-top: 22px; }
.namedrop figcaption { margin-top: 26px; }

@media (max-width: 860px) {
  .pull-body { grid-template-columns: 1fr; }
  .pull-chart .lbl { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .pull-chart .live .halo { transition: none; }
}
