.revenue-intro { max-width: 800px; margin-bottom: clamp(24px, 3vw, 36px); }
.revenue-intro p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.revenue-intro p + p { margin-top: 20px; }
.revenue-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.revenue-allocation-section .section-head { max-width: 800px; }
.revenue-allocation-section .section-head h2 { font-size: clamp(26px, 2.5vw, 32px); font-weight: 600; }
.revenue-allocation { margin: 0; }
.revenue-allocation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, .25fr) minmax(0, 1.35fr); align-items: center; }
.revenue-allocation-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.revenue-allocation-card h3 { margin: 0; font: 600 12px/1.5 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.revenue-source { height: 400px; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.revenue-share-value { margin: 16px 0 8px; color: var(--text); font: 500 clamp(52px, 5.5vw, 72px)/1 var(--font-display); letter-spacing: -.055em; }
.revenue-share-value > span { margin-left: 4px; font-size: .55em; letter-spacing: -.03em; }
.revenue-share-description { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.revenue-miner-fleet { display: flex; align-items: flex-end; gap: 12px; margin-top: 32px; }
.revenue-miner-fleet img { height: auto; }
.revenue-miner-fleet img:not(:nth-child(2)) { opacity: .8; }
.revenue-allocation-routes { width: 100%; height: 400px; overflow: visible; stroke: #4d9fe8; stroke-width: 1.2; }
.revenue-allocation-routes path { vector-effect: non-scaling-stroke; }
.revenue-allocation-routes .revenue-host-route { stroke: #83a6bf; }
.revenue-recipients { display: grid; gap: 20px; }
.revenue-client { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; height: 220px; padding: 26px 32px; border-color: #abcce5; }
.revenue-client h3 { color: var(--accent); }
.revenue-client-icon { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; stroke: var(--accent); stroke-width: 1.2; }
.revenue-client .revenue-share-value { color: var(--accent); margin-top: 12px; }
.revenue-client-flow { position: absolute; left: 57%; right: 80px; top: 50%; display: grid; gap: 8px; transform: translateY(-50%); }
.revenue-client-flow i { height: 1px; background: linear-gradient(90deg, transparent, #4d9fe8); opacity: .45; }
.revenue-host-flow { position: absolute; left: 57%; right: 80px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, #83a6bf); }
.revenue-host { position: relative; height: 160px; display: flex; flex-direction: column; justify-content: center; padding: 22px 32px; }
.revenue-host .revenue-share-value { margin: 12px 0 8px; font-size: 44px; }
.revenue-host-icon { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 28px; height: 32px; stroke: #6b8ca5; stroke-width: 1.2; }
.revenue-allocation figcaption { margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.revenue-client-first { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 36px 0 0; color: var(--text); font: 500 clamp(18px, 1.8vw, 22px)/1.5 var(--font-display); letter-spacing: -.02em; }
@media (max-width: 900px) {
  .revenue-source { padding: 24px; }
  .revenue-client { padding: 26px 24px; }
  .revenue-host { padding: 22px 24px; }
  .revenue-client-icon, .revenue-host-icon { right: 24px; }
  .revenue-host-icon { display: none; }
  .revenue-host-flow { display: none; }
  .revenue-miner-fleet { gap: 6px; }
  .revenue-miner-fleet img { width: 40px; }
  .revenue-miner-fleet img:nth-child(2) { width: 54px; }
}
@media (max-width: 640px) {
  .revenue-allocation-layout { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .revenue-source { height: auto; min-height: 250px; align-items: center; text-align: center; }
  .revenue-miner-fleet { margin-top: 22px; }
  .revenue-allocation-routes { height: 40px; width: 1px; margin-inline: auto; background: #4d9fe8; overflow: visible; clip-path: inset(0 -1px); }
  .revenue-allocation-routes path { display: none; }
  .revenue-client { height: 205px; }
  .revenue-host { height: 160px; }
  .revenue-host-icon { display: block; }
  .revenue-host-flow { display: block; }
  .revenue-share-value { font-size: 60px; }
  .revenue-client-first { align-items: flex-start; font-size: 18px; }
  .revenue-client-first svg { margin-top: 3px; }
}

/* Short, restrained highlights on every client and host connection. */
.revenue-route-connector { min-width: 0; }
.revenue-allocation-routes .revenue-flow-highlight { vector-effect: non-scaling-stroke; stroke-linecap: round; animation: revenue-share-flow 4.8s linear infinite; animation-play-state: paused; }
.revenue-allocation-routes .revenue-flow-client { stroke: #07558a; stroke-width: 1.8; opacity: .72; }
.revenue-allocation-routes .revenue-flow-host { stroke: #07558a; stroke-width: 1.8; opacity: .72; }
.revenue-client-flow i { position: relative; overflow: visible; clip-path: inset(-1px 0); }
.revenue-host-flow { overflow: visible; clip-path: inset(-1px 0); }
.revenue-client-flow i::after, .revenue-host-flow::after { content: ''; position: absolute; left: -23.92px; top: -.4px; width: 23.92px; height: 1.8px; border-radius: .9px; background: #07558a; animation: revenue-share-line 4.8s linear infinite; animation-play-state: paused; }
.revenue-client-flow i:nth-child(2)::after { animation-delay: -.35s; }
.revenue-client-flow i:nth-child(3)::after { animation-delay: -.7s; }
.revenue-host-flow::after { background: #07558a; }
.revenue-allocation.is-flowing .revenue-flow-highlight,
.revenue-allocation.is-flowing .revenue-client-flow i::after,
.revenue-allocation.is-flowing .revenue-host-flow::after,
.revenue-allocation.is-flowing .revenue-route-connector::after { animation-play-state: running; }
@keyframes revenue-share-flow { from { stroke-dashoffset: 23.92; } to { stroke-dashoffset: var(--revenue-flow-end); } }
@keyframes revenue-share-line { from { left: -23.92px; } to { left: 100%; } }
@media (max-width: 640px) {
  .revenue-route-connector { position: relative; width: 1px; height: 40px; margin-inline: auto; background: #4d9fe8; overflow: visible; clip-path: inset(0 -1px); }
  .revenue-route-connector .revenue-allocation-routes { display: none; }
  .revenue-route-connector::after { content: ''; position: absolute; top: -23.92px; left: -.4px; width: 1.8px; height: 23.92px; border-radius: .9px; background: #07558a; animation: revenue-share-vertical 4.8s linear infinite; animation-play-state: paused; }
}
@keyframes revenue-share-vertical { from { top: -23.92px; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .revenue-flow-highlight, .revenue-client-flow i::after, .revenue-host-flow::after, .revenue-route-connector::after { display: none; }
}
.revenue-allocation-routes { display: block; }
[data-theme="dark"] .revenue-allocation-routes .revenue-flow-highlight { stroke: #9fd1ff; }
[data-theme="dark"] .revenue-host-flow::after,
[data-theme="dark"] .revenue-client-flow i::after,
[data-theme="dark"] .revenue-route-connector::after { background: #9fd1ff; }

/* Phone allocation: compact peer cards with the same branching flow language. */
.revenue-mobile-routes { display: none; }
@media (max-width: 640px) {
  .revenue-recipients { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .revenue-route-connector { width: 100%; height: 90px; background: transparent; clip-path: none; }
  .revenue-route-connector::after { display: none; }
  .revenue-route-connector .revenue-mobile-routes { display: block; width: 100%; height: 90px; margin: 0; background: transparent; clip-path: none; }
  .revenue-mobile-routes path { display: block; }
  .revenue-client, .revenue-host { height: auto; min-height: 220px; padding: 22px 12px; align-items: center; text-align: center; justify-content: center; }
  .revenue-recipients h3 { font-size: 11px; }
  .revenue-recipients .revenue-share-value { font-size: clamp(44px, 12vw, 56px); margin: 14px 0 10px; }
  .revenue-recipients .revenue-share-description { font-size: 12px; line-height: 1.6; }
  .revenue-client-icon, .revenue-host-icon { position: static; display: block; width: 24px; height: 28px; transform: none; margin: 18px auto 0; flex: none; }
  .revenue-client-flow, .revenue-host-flow { display: none; }
}
