/* Origin arc. Signal colour = progress only. Orange only on the tip of a near-graduation token. */
svg.curve { width: 100%; height: auto; overflow: visible; display: block; }
.curve .track { fill: none; stroke: var(--border-hi); stroke-linecap: round; }
.curve .fill { fill: none; stroke: var(--signal); stroke-linecap: round; }
.curve .bloom { fill: none; stroke: var(--signal); stroke-width: 7; stroke-linecap: round; opacity: .07; filter: blur(7px); }
.curve .base { stroke: var(--border); stroke-width: 1; }
.curve .guide { stroke: var(--border-hi); stroke-width: 1; stroke-dasharray: 2 5; }
.curve .notch { fill: var(--text-3); }
.curve .origin-ring { fill: none; stroke: var(--text-3); stroke-width: 1; opacity: .7; }
.curve .origin-dot { fill: var(--signal); }
.curve .grad-ring { fill: var(--bg); stroke: var(--text-3); stroke-width: 1.2; }
.curve .grad-core { fill: var(--text-3); }
.curve .tip-halo { fill: none; stroke: var(--signal); stroke-width: 1; opacity: .3; }
.curve .tip-core { fill: var(--signal); stroke: var(--surface); stroke-width: 2; }
.curve .lock-bg { fill: var(--surface); stroke: var(--border-hi); stroke-width: 1; }
.curve .lock-ico { fill: none; stroke: var(--locked); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.curve.is-heat .tip-core { fill: var(--heat); }
.curve.is-heat .tip-halo { stroke: var(--heat); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .12; } 50% { opacity: .42; } }

.curve.is-grad .tip, .curve.is-grad .grad-ring, .curve.is-grad .grad-core { display: none; }
.curve:not(.is-grad) .lock-g { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.curve-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 12px; gap: 12px; }
.curve-legend > div:nth-child(2) { text-align: center; }
.curve-legend > div:nth-child(3) { text-align: right; }
.curve-legend .label { display: block; margin-bottom: 6px; }
.curve-legend .v { font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; }
.curve-legend .v.sig { color: var(--signal); }

/* Plain progress rail used on cards and rows (not the signature arc) */
.rail-track { position: relative; height: 4px; border-radius: 4px; background: var(--elevated); }
.rail-track::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--text-3); }
.rail-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); border-radius: 4px; background: var(--signal); transition: width .3s var(--ease); }
.rail-dot { position: absolute; top: 50%; left: var(--p, 0%); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--heat); transition: left .3s var(--ease); display: none; }
.is-near .rail-dot { display: block; }
.is-grad .rail-fill { background: var(--text-3); }
.grid.is-first .rail-fill { animation: rail-grow .38s var(--ease) both; }
.grid.is-first .rail-dot { animation: rail-dot .38s var(--ease) both; }
@keyframes rail-grow { from { width: 0; } }
@keyframes rail-dot { from { left: 0; } }

.curve .lead { stroke: var(--border-hi); stroke-width: 1; stroke-dasharray: 2 5; }
.curve-hero .bloom, .curve-heroSm .bloom { stroke-width: 18; opacity: .09; filter: blur(10px); }
.curve.is-grad .lead { display: none; }
.curve-token .bloom, .curve-launch .bloom { stroke-width: 16; opacity: .09; filter: blur(10px); }

/* Hover (mouse) or drag (touch) to read the gain */
.arc-svg { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.arc-svg.dragging { cursor: grabbing; }
@media (hover: hover) { .arc-svg { cursor: crosshair; } .arc-scrub { pointer-events: none; } .arc-scrub .sc-x { display: none; } }
.curve .scrub { pointer-events: none; }
.curve .sc-line { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.curve .sc-ring { fill: var(--bg); stroke: var(--text); stroke-width: 2.4; }
.curve .sc-dot { fill: var(--text); }
.curve .scrub.ahead .sc-ring { stroke: var(--text-2); stroke-dasharray: 3 3; }
.curve .scrub.ahead .sc-dot { fill: var(--text-2); }
.arc-scrub { position: absolute; z-index: 6; width: 212px; padding: 12px 14px 13px; background: var(--card); border: 1px solid var(--border-hi); border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.4); pointer-events: none; }
.arc-scrub[hidden] { display: none; }
.sc-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--text-3); pointer-events: auto; }
.sc-x:hover { color: var(--text); background: var(--elevated); }
.sc-x svg { width: 12px; height: 12px; }
.sc-t { font: 600 10.5px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-right: 22px; }
.sc-v { font: 500 26px/1 var(--f-mono); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; margin: 9px 0 10px; }
.sc-r { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; height: 25px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); align-items: center; }
.sc-r b { font: 600 13px var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.sc-r b em { font: 500 11.5px var(--f-mono); font-style: normal; color: var(--text-3); margin-left: 8px; }
.sc-r b.up { color: var(--up); } .sc-r b.down { color: var(--down); }
.arc-hint { position: absolute; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); white-space: nowrap; pointer-events: none; transition: opacity .3s var(--ease); }
.arc-hint svg { width: 12px; height: 12px; }
.arc-hint.off { opacity: 0; }
