/* =====================================================================
   ArtistBots — Home page (logged-out) live-animation styles
   Loaded only by templates/index.html. Uses variables from style.css.
   ===================================================================== */

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-c), var(--accent-a), var(--accent-b));
  pointer-events: none;
}

/* ---------- Hero (sky-blue gradient panel) ---------- */
.hero-wrap {
  position: relative; overflow: hidden;
  width: min(1240px, calc(100% - 32px)); margin: 14px auto 0; border-radius: 40px;
  background:
    radial-gradient(900px 380px at 50% 100%, rgba(229,35,27,.28), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #ffeceb 34%, #ffc9c4 72%, #ff9f97 100%);
  box-shadow: 0 30px 70px -40px rgba(229,35,27,.55);
}
#heroParticles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-wrap .hero { position: relative; z-index: 2; }
.hero-wrap::after { content: none; }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(18,161,80,.7); animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(18,161,80,.6); }
  70% { box-shadow: 0 0 0 10px rgba(18,161,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(18,161,80,0); }
}

.hero-typed { font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 600; margin-bottom: 14px; color: var(--navy); }
.typed-word { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent-a); }
.caret, .t-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: text-bottom;
  background: var(--accent-a); animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.btn-glow { position: relative; animation: glowPulse 2.8s ease-in-out infinite; }
@keyframes glowPulse {
  0%,100% { box-shadow: 0 8px 26px -8px rgba(229,35,27,.55); }
  50%     { box-shadow: 0 10px 40px -4px rgba(255,90,77,.85); }
}
.btn-glow:hover { transform: translateY(-2px); }

/* Equalizer */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 54px; margin: 46px auto 0; max-width: 520px; }
.eq i {
  flex: 1; max-width: 8px; height: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent-c), var(--accent-a), var(--accent-b));
  transform-origin: bottom; transform: scaleY(.15); opacity: .9;
  animation: eqBar var(--dur, 1s) ease-in-out var(--del, 0s) infinite alternate;
}
@keyframes eqBar { from { transform: scaleY(.12); } to { transform: scaleY(var(--h, 1)); } }

/* Floating chips (desktop only) */
.float-chip {
  position: absolute; z-index: 1; display: none; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px rgba(120,20,20,.55);
  animation: chipFloat 7s ease-in-out infinite;
}
.float-chip i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip-yt { top: 22%; left: 6%;  color: #ff4d4d; }
.chip-sp { top: 58%; left: 10%; color: #1db954; animation-delay: -2s; }
.chip-tg { top: 26%; right: 7%; color: #2aabee; animation-delay: -4s; }
.chip-dc { top: 60%; right: 9%; color: #6f82ff; animation-delay: -1s; }
.float-chip { color: var(--text); }
.float-chip i { color: inherit; }
.chip-yt i { color: #ff4d4d; } .chip-sp i { color: #1db954; } .chip-tg i { color: #2aabee; } .chip-dc i { color: #6f82ff; }
@keyframes chipFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@media (min-width: 1150px) { .float-chip { display: inline-flex; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 16px 0; margin-top: 28px; border-block: 1px solid var(--card-border);
  background: rgba(255,255,255,.7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { white-space: nowrap; color: var(--text-dim); font-weight: 700; font-size: .95rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Stats ---------- */
.hstats { max-width: 1000px; margin: 0 auto; padding: 60px 24px 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hstat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--shadow); transition: border-color .25s, transform .25s, box-shadow .25s; }
.hstat:hover { border-color: #eeb0aa; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hstat-num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-c)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat-label { color: var(--text); font-weight: 700; font-size: .92rem; margin-top: 6px; }
.hstat-label small { color: var(--text-dim); font-weight: 400; font-size: .78rem; }

/* ---------- Section helpers ---------- */
.section-sub { text-align: center; color: var(--text-dim); max-width: 560px; margin: -22px auto 32px; }
.demo, .steps-section, .code-section, .final-cta { max-width: 1000px; margin: 0 auto; padding: 50px 24px 30px; }
.demo-note { text-align: center; color: var(--text-dim); font-size: .8rem; margin-top: 14px; }

/* ---------- Terminal demo (legacy block, kept in sync) ---------- */
.terminal {
  background: var(--ink); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(10,42,148,.6);
}
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ink-bar); border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; }
.d-r { background: #ff5f57; } .d-y { background: #febc2e; } .d-g { background: #28c840; }
.term-tabs { display: flex; gap: 6px; flex: 1; }
.term-tab {
  background: transparent; border: 1px solid transparent; color: rgba(219,230,255,.7); cursor: pointer;
  padding: 5px 12px; border-radius: 8px; font: 700 .8rem var(--font-body); transition: all .2s;
}
.term-tab:hover { color: #fff; }
.term-tab.active { color: #fff; background: rgba(74,141,255,.24); border-color: rgba(120,170,255,.55); }
.term-status { display: inline-flex; align-items: center; gap: 7px; font: 600 .75rem 'Menlo','Consolas',monospace; color: rgba(219,230,255,.7); }
.term-status i { width: 8px; height: 8px; border-radius: 50%; background: #7f8fbd; }
.term-status[data-state="loading"] { color: #fbbf24; } .term-status[data-state="loading"] i { background: #fbbf24; animation: livePulse 1s infinite; }
.term-status[data-state="ok"] { color: #4ade80; }      .term-status[data-state="ok"] i { background: #4ade80; }
.term-body {
  padding: 22px 22px 26px; min-height: 250px; font: .88rem/1.7 'Menlo','Consolas',monospace;
  color: #d6e2ff; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.t-line { animation: lineIn .25s ease both; }
@keyframes lineIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.t-prompt { color: #8fc0ff; font-weight: 700; }
.tok-method { color: #93c5fd; font-weight: 700; }
.tok-path { color: #fde68a; }
.tok-dim { color: #8fa0cc; }
.tok-num { color: #fbbf24; }
.t-ok { color: #4ade80; font-weight: 700; }
.t-wait { color: #fbbf24; }
.t-dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%,100% { content: '...'; } }
.term-progress { height: 3px; background: rgba(255,255,255,.08); }
.term-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0a2a94, #1553f5, #4a8dff); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 66px; }
.steps-line { position: absolute; top: 24px; left: 16.6%; right: 16.6%; height: 2px; background: rgba(229,35,27,.14); z-index: 0; }
.steps-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-c), var(--accent-b)); transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.steps.in-view .steps-line i { width: 100%; }
.step { position: relative; z-index: 1; text-align: center; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 26px 20px; box-shadow: var(--shadow); }
.step-num {
  position: absolute; top: -66px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font: 800 1.3rem var(--font-head); color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 24px -8px rgba(229,35,27,.7); border: 4px solid var(--bg);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .9rem; }
.step code, .feature-card code { background: rgba(229,35,27,.08); color: var(--accent-c); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.steps-section .steps { margin-top: 20px; }

/* ---------- Feature cards: cursor spotlight + icon float ---------- */
.feature-card.spot { position: relative; overflow: hidden; }
.feature-card.spot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(229,35,27,.10), transparent 60%);
}
.feature-card.spot:hover::before { opacity: 1; }
.feature-card .feature-icon { display: flex; align-items: center; width: fit-content; min-height: 36px; animation: iconBob 4.5s ease-in-out infinite; }
.feature-card:nth-child(2n) .feature-icon { animation-delay: -1.5s; }
.feature-card:nth-child(3n) .feature-icon { animation-delay: -3s; }
@keyframes iconBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Line-icon feature cards get a light-blue tile so they read as deliberate
   "logo" marks, matching the two branded (YouTube / Spotify) icons above. */
.feature-card .feature-icon:not(.icon-svg) {
  width: 40px; height: 40px; border-radius: 12px; justify-content: center;
  background: linear-gradient(135deg, #fdeceb, #f6cdc9);
  border: 1px solid #f1bcb7; color: var(--accent-a);
}
.feature-card:nth-child(3n) .feature-icon:not(.icon-svg) {
  background: linear-gradient(135deg, #fbdedb, #f4c3be); border-color: #eaa8a2; color: var(--accent-c);
}

/* ---------- Code card ---------- */
.code-card { background: var(--ink); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -36px rgba(10,42,148,.6); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--ink-bar); border-bottom: 1px solid rgba(255,255,255,.08); }
.code-tabs { display: flex; gap: 6px; }
.code-tab { background: transparent; border: 1px solid transparent; color: rgba(219,230,255,.7); cursor: pointer; padding: 5px 12px; border-radius: 8px; font: 700 .8rem var(--font-body); transition: all .2s; }
.code-tab:hover { color: #fff; }
.code-tab.active { color: #fff; background: rgba(74,141,255,.22); border-color: rgba(120,170,255,.5); }
.code-pane { display: none; margin: 0; padding: 22px; overflow-x: auto; font: .86rem/1.7 'Menlo','Consolas',monospace; color: #d6e2ff; }
.code-pane.active { display: block; animation: lineIn .35s ease both; }

/* ---------- Locked code teaser (signed-out) ---------- */
.code-locked { position: relative; }
.code-locked .code-tab { cursor: default; }
.lock-chip { font: 700 .78rem var(--font-body); color: #fbbf24; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.32); padding: 4px 10px; border-radius: 999px; }
.code-ghost { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 290px; filter: blur(2px); opacity: .55; }
.code-ghost i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(74,141,255,.65), rgba(143,192,255,.4)); animation: ghostPulse 2.4s ease-in-out infinite; }
.code-ghost i:nth-child(2n) { animation-delay: -.8s; } .code-ghost i:nth-child(3n) { animation-delay: -1.6s; }
@keyframes ghostPulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.code-lock-overlay {
  position: absolute; inset: 49px 0 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px 26px; background: linear-gradient(to bottom, rgba(11,20,51,.25), rgba(11,20,51,.9) 55%);
  color: #fff;
}
.lock-icon { font-size: 2rem; margin-bottom: 8px; animation: iconBob 3.5s ease-in-out infinite; }
.code-lock-overlay h3 { font-size: 1.15rem; margin-bottom: 8px; }
.code-lock-overlay p { color: rgba(219,230,255,.8); font-size: .92rem; max-width: 460px; margin-bottom: 18px; }

/* ---------- Telegram live chat additions ---------- */
.tg-body { min-height: 268px; justify-content: flex-start; }
.tg-input { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #17212b; border-top: 1px solid rgba(255,255,255,.06); font-size: .85rem; color: #6c7883; min-height: 46px; }
.tg-input-text { flex: 1; color: #e9edf1; }
.tg-input-text.placeholder { color: #6c7883; }
.tg-send { color: var(--tg-blue-a); font-size: 1rem; transition: transform .2s; }
.tg-send.pulse { transform: scale(1.35); }
.typing-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing-bubble i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85); animation: typingBounce 1s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; } .typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.wf { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.wf i { flex: 1; min-width: 2px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .12s; }
.wf i.played { background: #fff; }
.tg-play.playing { background: rgba(255,255,255,.4); }

/* ---------- Final CTA ---------- */
.final-cta { padding-bottom: 90px; }
.final-cta-inner {
  position: relative; isolation: isolate; text-align: center; padding: 56px 28px;
  border-radius: 34px; overflow: hidden;
}
.final-cta-inner::before {           /* animated gradient border */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: conic-gradient(from var(--ang, 0deg), var(--accent-c), var(--accent-a), var(--accent-b), var(--accent-c));
  animation: spinBorder 6s linear infinite;
}
.final-cta-inner::after {            /* inner surface */
  content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: 32px;
  background: linear-gradient(160deg, #ffffff 0%, #ffe6e4 70%, #ffd2ce 100%);
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --ang: 360deg; } }
.final-cta-inner h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 10px; color: var(--navy); }
.final-cta-inner p { color: var(--text-dim); margin-bottom: 26px; }

/* ---------- Pricing (home): deep-red panel; shared card base lives in style.css ---------- */
.pricing {
  position: relative; overflow: hidden;
  width: min(1240px, calc(100% - 32px)); max-width: none; margin: 50px auto 30px; padding: 70px 32px 56px;
  border-radius: 40px; color: #fff;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(255,90,77,.55), transparent 70%),
    radial-gradient(600px 300px at 90% 100%, rgba(255,90,77,.35), transparent 70%),
    linear-gradient(160deg, #7a0e0e 0%, #c81f18 52%, #7a0e0e 100%);
  box-shadow: 0 40px 80px -40px rgba(120,10,10,.75);
}
.pricing .section-title { color: #fff; }
.pricing .gradient-text { color: #ffb3a8; }
.pricing .pricing-toggle-note { color: rgba(255,224,219,.8); }
.pricing .slider-arrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; box-shadow: none; }
.pricing .slider-arrow:hover { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.5); }
.pricing .pricing-dot { background: rgba(255,255,255,.3); }
.pricing .pricing-dot.active { background: #fff; }
.pricing .pricing-swipe-hint, .pricing .pricing-foot { color: rgba(255,224,219,.78); }
.pricing .pricing-foot a { color: #fff; }
.pricing .pricing-empty { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: rgba(255,224,219,.9); }
.pricing .pricing-empty a { color: #fff !important; text-decoration: underline; }

.pricing .price-card {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.26); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 20px 44px -26px rgba(60,6,4,.8);
}
.pricing .price-card:hover { border-color: rgba(255,255,255,.55); box-shadow: 0 28px 56px -24px rgba(60,6,4,.9); }
.pricing .price-card.best {
  background: linear-gradient(180deg, #4a0d0d, #2a0a0a);
  border-color: rgba(255,140,120,.55);
  box-shadow: 0 28px 60px -22px rgba(40,3,2,.9);
}
.pricing .price-card.best:hover { box-shadow: 0 34px 66px -20px rgba(40,3,2,.95); }
.pricing .price-flag { background: #fff; color: #4a0d0d; }
.pricing .price-icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); color: #fff; }
.pricing .price-card.best .price-icon { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); border-color: transparent; }
.pricing .price-desc, .pricing .price-amount small { color: rgba(255,224,219,.75); }
.pricing .price-specs li { color: #fff; }
.pricing .price-specs .i { color: #ffb3a8; }
.pricing .price-card .btn-primary { background: #fff; color: var(--accent-a); box-shadow: 0 10px 22px -12px rgba(40,3,2,.7); }
.pricing .price-card .btn-primary:hover { background: #ffece9; }
.pricing .price-card.best .btn-primary { background: linear-gradient(180deg, var(--accent-b), var(--accent-a)); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hstats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 80px; padding-top: 40px; }
  .steps-line { display: none; }
  .hero-wrap .hero { padding-top: 60px; }
  .hero-wrap { border-radius: 30px; }
  .pricing { padding: 56px 16px 44px; border-radius: 30px; }
  .term-tabs { order: 3; flex-basis: 100%; }
  .term-body { min-height: 220px; font-size: .8rem; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-chip, .eq i, .btn-glow, .live-dot, .caret, .t-caret,
  .feature-card .feature-icon, .final-cta-inner::before, .typing-bubble i, .code-ghost i, .lock-icon { animation: none !important; }
  .eq i { transform: scaleY(.5); }
  .steps-line i { transition: none; }
}

/* ---------- Behind-the-scenes pipeline (deep-red panel, matches pricing) ---------- */
.pipe {
  color: #fff; overflow: hidden; border-radius: 32px; border: 1px solid rgba(255,255,255,.18);
  background:
    radial-gradient(600px 260px at 85% 0%, rgba(255,90,77,.5), transparent 70%),
    linear-gradient(160deg, #7a0e0e 0%, #c81f18 55%, #7a0e0e 100%);
  box-shadow: 0 34px 80px -36px rgba(120,10,10,.75);
}
.pipe-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.14); flex-wrap: wrap; }
.pipe-bar .term-tab { color: rgba(255,224,219,.75); }
.pipe-bar .term-tab:hover { color: #fff; }
.pipe-bar .term-tab.active { color: #7a0e0e; background: #fff; border-color: #fff; }
.pipe-bar .term-status { color: rgba(255,224,219,.85); }
.pipe-bar .term-status i { background: rgba(255,224,219,.6); }
.pipe-song { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 20px 8px; font: 700 1.25rem var(--font-head); }
.pipe-song-name { background: linear-gradient(135deg, #ffffff, #ffb3a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pipe-mode { font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); }
.pipe-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 16px 22px; }
.pipe-line { position: absolute; z-index: 0; top: 62px; left: 12.5%; right: 12.5%; height: 3px; background: rgba(255,255,255,.18); border-radius: 3px; }
.pipe-line i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #ff8f7f, #ffffff); transition: width .9s cubic-bezier(.4,0,.2,1); }
.pipe-line em { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3), 0 0 18px rgba(255,255,255,.9); transition: left .9s cubic-bezier(.4,0,.2,1); }
.pipe-node { position: relative; z-index: 1; text-align: center; padding: 0 6px; transition: transform .4s; }
.pipe-node b, .pipe-node small { opacity: .5; transition: opacity .4s; }
.pipe-node .pn-ico { filter: grayscale(.9) brightness(.9); }
.pn-ico { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; font-size: 1.5rem;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25); color: #fff; transition: all .4s; position: relative; }
.pipe-node b { display: block; font: 700 .95rem var(--font-head); }
.pipe-node small { display: block; color: rgba(255,224,219,.8); font-size: .76rem; margin-top: 2px; }
.pipe-node.done b, .pipe-node.done small, .pipe-node.active b, .pipe-node.active small { opacity: 1; }
.pipe-node.done .pn-ico, .pipe-node.active .pn-ico { filter: none; }
.pipe-node.done .pn-ico { border-color: rgba(74,222,128,.85); background: linear-gradient(rgba(74,222,128,.2), rgba(74,222,128,.2)), rgba(255,255,255,.08); }
.pipe-node.active { transform: translateY(-3px); }
.pipe-node.active .pn-ico { border-color: #fff; background: rgba(255,255,255,.24); box-shadow: 0 0 0 6px rgba(255,255,255,.14), 0 10px 30px -8px rgba(255,255,255,.55); animation: nodePulse 1.2s ease-in-out infinite; }
@keyframes nodePulse { 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.07), 0 10px 30px -8px rgba(255,255,255,.55); } }
.pipe-log { min-height: 120px; padding: 6px 24px 22px; font: .86rem/1.8 'Menlo','Consolas',monospace; color: #ffe0db; text-align: center; }
.pipe .tok-dim { color: rgba(255,224,219,.6); }
.pipe .term-progress { background: rgba(255,255,255,.12); }
.pipe .term-progress i { background: linear-gradient(90deg, #ff8f7f, #fff); }
@media (max-width: 860px) {
  .pipe-node small { display: none; }
  .pn-ico { width: 46px; height: 46px; font-size: 1.2rem; }
  .pipe-line { top: 56px; }
  .pipe-song { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .pipe-node.active .pn-ico { animation: none; } .pipe-line i, .pipe-line em { transition: none; } }

.lock-chip-open { color: #4ade80; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.35); }
