/* Canonical theme variables remain in css/skins/*.css. */
body.skin-black { overflow-y: auto; font-family: var(--fn); }
.main-index-header { position: relative; inset: auto; max-height: none; }
.main-index-header .navbar { max-width: 1180px; min-height: 72px; margin: 0 auto; padding: 12px 28px; display: flex !important; justify-content: space-between !important; gap: 24px; }
.nerdpool-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-primary); font-family: var(--fn); font-size: 22px; font-weight: 700; letter-spacing: -0.6px; text-decoration: none; }
.nerdpool-brand:hover { color: var(--accent-primary); text-decoration: none; }
.nerdpool-network, .nerdpool-eyebrow { font-family: var(--fm); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.nerdpool-guide-link { color: var(--text-primary); font-size: 13px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; }
.nerdpool-guide-link:hover { color: var(--accent-primary); }
.main-index .ui-attribution { max-width: 1180px; margin: 0 auto; background: transparent; padding: 6px 28px 0; font-size: 14px; }
#node-status { position: relative; z-index: 1; min-height: 52px; padding: 10px 24px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; text-align: left; background: var(--bg-secondary); }
.node-status-label { font-weight: 600; color: var(--text-primary); }
.node-status-detail { color: var(--text-muted); }
.node-status-progress { width: 120px; height: 5px; border-radius: 8px; background: var(--border-color); overflow: hidden; }
.node-status-progress > span { display: block; height: 100%; background: var(--text-primary); border-radius: inherit; }
.idx-page { max-width: 1180px; padding: 0 28px 52px; }
.idx-hero { display: grid; grid-template-columns: 1fr 280px; gap: 64px; padding: 40px 0 44px; align-items: center; text-align: left; }
.nerdpool-eyebrow { margin: 0 0 14px; }
.nerdpool-hero-copy h1 { font: 700 clamp(32px, 4.3vw, 54px)/1.08 var(--fn); letter-spacing: -0.055em; color: var(--text-primary); margin: 0 0 18px; }
.nerdpool-intro { max-width: 510px; font-size: 15px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 20px; }
.nerdpool-facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 25px; font-size: 11px; font-weight: 600; color: var(--text-primary); }
.nerdpool-facts span + span { border-left: 1px solid var(--border-color); margin-left: 12px; padding-left: 12px; }
.nerdpool-primary-link { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; padding: 11px 16px; border-radius: var(--r-sm); background: var(--text-primary); color: var(--bg-primary); font-size: 13px; font-weight: 600; text-decoration: none; transition: transform 160ms ease; }
.nerdpool-primary-link:hover { color: var(--bg-primary); text-decoration: none; transform: translateY(-2px); }
.nerdpool-primary-link:active { transform: translateY(0); }
.nerdpool-hero-art { display: flex; flex-direction: column; align-items: center; gap: 22px; }
#animatedGif.idx-hero-logo { width: 218px; height: 218px; max-width: 100%; filter: drop-shadow(0 8px 15px rgba(0,0,0,0.08)); }
.nerdpool-hero-art code { background: transparent; font-family: var(--fm); font-size: 11px; color: var(--text-secondary); padding: 0; overflow-wrap: anywhere; }
.idx-section { padding: 28px 0 32px; }
.pool-stats-banner { padding: 22px 28px; margin-bottom: 32px; box-shadow: none; }
.pool-stat-item { align-items: flex-start; padding-left: 24px; }
.pool-stat-item:first-child { padding-left: 0; }
.pool-stat-value { font-size: 25px !important; font-variant-numeric: tabular-nums; }
.pool-stat-label { color: var(--text-muted) !important; font-size: 10px !important; letter-spacing: 0.04em; margin-top: 5px; }
.idx-section-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.idx-section-title { font-size: 20px !important; letter-spacing: -0.04em; }
.mode-toggle { padding: 3px; border-radius: var(--r-sm); }
.mode-toggle .mode-btn { padding: 9px 20px !important; font-size: 11px !important; min-height: 38px; border-radius: 4px !important; letter-spacing: 0.02em; }
.nerdpool-mode-note { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 20px; }
.pool-coin-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,440px),1fr)) !important; gap: 20px !important; }
.pool-coin-card { container-type: inline-size; }
.pool-coin-card .card { box-shadow: none !important; margin: 0 !important; }
.pool-coin-card .card:hover { transform: none; box-shadow: var(--shadow-sm) !important; }
.pool-coin-card .coin-card-header { padding: 18px 24px !important; gap: 12px; }
.pool-coin-card .coin-card-name { font-size: 19px !important; line-height: 1.3; margin: 0; text-align: left; flex: 1; }
.coin-card-status { display: inline-flex; align-items: center; gap: 7px; }
.pool-state-label { font-size: 11px; line-height: 1.4; font-weight: 500; color: var(--text-primary); }
.coin-status-dot.syncing { background: var(--amber); }
.coin-status-dot.unknown { background: var(--text-muted); box-shadow: none; }
.pool-coin-card .coin-card-body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 40px; padding: 10px 24px 18px !important; }
.coin-stat-row { padding: 12px 0; min-height: 43px; gap: 12px; }
.coin-stat-row .stat-label { font-size: 12px; color: var(--text-muted); }
.coin-stat-row .stat-value { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; text-align: right; }
.pool-coin-card .coin-card-footer { display: flex; justify-content: flex-end; padding: 14px 24px !important; }
.pool-coin-card .btn-connect { min-width: 208px; width: auto !important; min-height: 42px; border-radius: var(--r-sm); font-size: 12px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; }
.idx-section-sub { color: var(--text-muted); font-size: 12px; margin: 8px 0 16px; }
.idx-section .table-responsive { overflow-x: auto; }
.main-index-footer { position: relative; inset: auto; width: 100%; min-height: 68px; margin: 0; z-index: 2; box-shadow: none; }
.main-index-footer .footer-content { font-size: 12px; }
.main-index-footer .footer-skin-menu { z-index: 20; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--text-primary) !important; outline-offset: 3px; }
@container (max-width: 590px) { .pool-coin-card .coin-card-body { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .main-index-header .navbar { min-height: 64px; padding: 10px 18px; gap: 12px; }
  .nerdpool-network { display: none; }
  .main-index .ui-attribution { padding: 6px 18px 0; }
  .idx-page { padding: 0 18px 30px; }
  .idx-hero { grid-template-columns: 1fr; gap: 28px; padding: 22px 0 30px; }
  .nerdpool-hero-copy h1 { font-size: 38px; }
  .nerdpool-hero-art { grid-row: 1; gap: 14px; }
  #animatedGif.idx-hero-logo { width: 124px; height: 124px; }
  .nerdpool-hero-copy { text-align: center; }
  .nerdpool-intro { font-size: 14px; margin-left: auto; margin-right: auto; }
  .nerdpool-facts { justify-content: center; font-size: 10px; }
  .pool-stats-banner { padding: 16px 14px; }
  .pool-stat-item { padding-left: 14px; }
  .pool-stat-value { font-size: 19px !important; }
  .pool-stat-label { font-size: 9px !important; letter-spacing: 0; }
  .pool-stat-divider { height: 34px; }
  .idx-section-title { font-size: 18px !important; }
  .pool-coin-card .coin-card-header { padding: 16px !important; }
  .pool-coin-card .coin-card-name { font-size: 17px !important; }
  .pool-coin-card .coin-card-body { padding: 6px 16px 16px !important; }
  .pool-coin-card .coin-card-footer { padding: 14px 16px !important; }
  .pool-coin-card .btn-connect { width: 100% !important; }
  .main-index-footer { padding: 14px 18px !important; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .nerdpool-primary-link { transition: none; } }

.coin-stat-row .stat-value--progress { display: flex; justify-content: flex-end; }
/* Preserve native table structure inside a bounded horizontal scroller. */
.idx-section--table #serverPingTable { display: table; width: 100%; min-width: 620px; border-collapse: collapse; }
.idx-section--table #serverPingTable thead { display: table-header-group; position: static; clip: auto; }
.idx-section--table #serverPingTable tbody { display: table-row-group; }
.idx-section--table #serverPingTable tr { display: table-row; position: static; }
.idx-section--table #serverPingTable th,
.idx-section--table #serverPingTable td { display: table-cell; position: static; float: none; width: auto; padding: 14px 18px; }
@media (max-width: 700px) {
  .pool-stats-banner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .pool-stat-divider { display: none; }
  .pool-stat-item { width: auto; padding-left: 0; }
}
.node-status-item { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; max-width: 100%; }
.node-status-item + .node-status-item { border-left: 1px solid var(--border-color); padding-left: 18px; }
@media (max-width: 700px) { .node-status-item + .node-status-item { border-left: 0; padding-left: 0; } }

/* Shared motion: short entrances and interaction feedback, with stable geometry. */
:root {
  --nerdpool-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nerdpool-motion-fast: 180ms;
  --nerdpool-motion-entry: 480ms;
}
@media (prefers-reduced-motion: no-preference) {
  .nerdpool-hero-copy > * {
    animation: nerdpoolReveal var(--nerdpool-motion-entry) var(--nerdpool-motion-ease) backwards;
    animation-delay: calc(var(--nerdpool-entry-step, 0) * 55ms);
  }
  .nerdpool-hero-copy > :nth-child(2) { --nerdpool-entry-step: 1; }
  .nerdpool-hero-copy > :nth-child(3) { --nerdpool-entry-step: 2; }
  .nerdpool-hero-copy > :nth-child(4) { --nerdpool-entry-step: 3; }
  .nerdpool-hero-copy > :nth-child(5) { --nerdpool-entry-step: 4; }
  .pool-stats-banner { animation: nerdpoolReveal var(--nerdpool-motion-entry) var(--nerdpool-motion-ease) 120ms backwards; }
  .pool-coin-card { animation: nerdpoolReveal var(--nerdpool-motion-entry) var(--nerdpool-motion-ease) backwards; }
  .pool-coin-card[data-coin="BCH"] { animation-delay: 70ms; }
  .nerdpool-primary-link > span,
  .pool-coin-card .btn-connect > span,
  .nerdpool-guide-link > span {
    display: inline-block;
    transition: transform var(--nerdpool-motion-fast) var(--nerdpool-motion-ease);
  }
  .pool-coin-card .coin-card-icon img {
    transition: transform 260ms var(--nerdpool-motion-ease);
  }
  .coin-status-dot.online { position: relative; }
  .coin-status-dot.online::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid currentColor;
    color: var(--green);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: nerdpoolStatusPulse 3.6s ease-out 2;
  }
  .node-status-progress > span { position: relative; overflow: hidden; }
  .node-status-progress > span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--bg-primary), transparent);
    opacity: 0.45;
    transform: translateX(-100%);
    animation: nerdpoolSyncSweep 3.6s ease-in-out infinite;
  }
  @keyframes nerdpoolReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes nerdpoolStatusPulse {
    0% { opacity: 0.5; transform: scale(0.85); }
    65%, 100% { opacity: 0; transform: scale(1.6); }
  }
  @keyframes nerdpoolSyncSweep {
    0%, 15% { transform: translateX(-100%); }
    75%, 100% { transform: translateX(100%); }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .pool-coin-card .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm) !important; }
  .pool-coin-card .card:hover .coin-card-icon img { transform: rotate(-8deg) scale(1.06); }
  .nerdpool-primary-link:hover > span,
  .nerdpool-primary-link:focus-visible > span,
  .pool-coin-card .btn-connect:hover > span,
  .pool-coin-card .btn-connect:focus-visible > span { transform: translateX(4px); }
  .nerdpool-guide-link:hover > span,
  .nerdpool-guide-link:focus-visible > span { transform: translate(2px, -2px); }
  .nerdpool-primary-link:active,
  .pool-coin-card .btn-connect:active { transform: translateY(0) scale(0.98) !important; }
  #modeToggle .mode-btn:active { transform: scale(0.97) !important; }
}

/* Local SVG system and the two-coin network illustration. */
:root { --nerdpool-orbit-duration: 32s; --nerdpool-orbit-counter-duration: 44s; }
.nerdpool-svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.nerdpool-icon { display: inline-block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.nerdpool-primary-link > span, .nerdpool-guide-link > span, .btn-connect > span { line-height: 1; }
.nerdpool-guide-link .nerdpool-icon { width: 16px; height: 16px; }
.pool-coin-card .btn-connect .nerdpool-icon { width: 18px; height: 18px; }
.idx-hero { grid-template-columns: minmax(0, 1fr) 344px; gap: 36px; padding-top: 28px; padding-bottom: 32px; }
.nerdpool-hero-art { gap: 8px; min-width: 0; }
.nerdpool-network-art { position: relative; width: 344px; max-width: 100%; aspect-ratio: 1; isolation: isolate; }
.nerdpool-network-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--accent-primary); pointer-events: none; }
.nerdpool-orbit-track { stroke: var(--border-color); stroke-width: 1; }
.nerdpool-orbit-inner { stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 1 11; stroke-linecap: round; opacity: 0.3; }
.nerdpool-network-circuits { stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.45; }
.nerdpool-network-circuits rect { fill: var(--bg-primary); }
.nerdpool-orbit-trail { stroke: currentColor; stroke-width: 2; stroke-dasharray: 76 830; stroke-dashoffset: 76; opacity: 0.6; }
.nerdpool-orbit-node { fill: currentColor; stroke: var(--bg-primary); stroke-width: 3; }
.nerdpool-orbit-forward, .nerdpool-orbit-backward { transform-box: view-box; transform-origin: 50% 50%; }
.nerdpool-coin-core { position: absolute; inset: 0; display: grid; place-items: center; }
#animatedGif.idx-hero-logo { width: 176px; height: 176px; }
.nerdpool-coin-satellite { position: absolute; right: 10px; bottom: 46px; display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border-color); border-radius: var(--r); background: var(--bg-primary); box-shadow: var(--shadow-sm); }
.nerdpool-coin-satellite img { display: block; width: 58px; height: 58px; }
.nerdpool-coin-satellite span { font: 500 10px/1.2 var(--fm); letter-spacing: 0.08em; color: var(--text-secondary); }
.nerdpool-algorithm-tag { position: absolute; top: calc(50% + 104px); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--border-color); border-radius: var(--r-sm); background: var(--bg-primary); color: var(--text-muted); white-space: nowrap; font: 400 10px/1.3 var(--fm); }
.nerdpool-algorithm-tag .nerdpool-icon { width: 14px; height: 14px; }
.nerdpool-chain-addresses { display: flex; align-items: center; flex-direction: column; gap: 5px; }
.nerdpool-chain-addresses code { font-size: 10px; }
.pool-stat-item { flex-direction: row; align-items: center; gap: 14px; }
.nerdpool-stat-copy { display: flex; flex-direction: column; min-width: 0; }
.nerdpool-stat-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid var(--border-color); border-radius: var(--r-sm); color: var(--accent-primary); background: color-mix(in srgb, var(--accent-primary) 6%, var(--bg-primary)); }
.pool-coin-card .coin-card-header { background: color-mix(in srgb, var(--accent-primary) 3%, var(--bg-secondary)) !important; }
.pool-coin-card .coin-card-icon .coinimg { display: block; aspect-ratio: 1; }
.pool-coin-card .coin-stat-row:last-child { border-bottom: 0; }

/* The guide shows both coins immediately, with direct native section links. */
.guide { max-width: 1020px; padding: 30px 24px 64px; font-family: var(--fn); }
.guide-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.guide-header { margin: 32px 0 24px; }
.guide h1 { font: 700 clamp(32px, 5vw, 48px)/1.1 var(--fn); letter-spacing: -0.045em; margin: 0 0 14px; color: var(--text-primary); }
.guide-intro { max-width: 640px; color: var(--text-secondary); line-height: 1.75; }
.guide-coin-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-coin-link { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--border-color); border-radius: var(--r); background: var(--bg-secondary); color: var(--text-primary); text-decoration: none; }
.guide-coin-link:hover, .guide-coin-link:focus-visible { color: var(--accent-primary); text-decoration: none; border-color: var(--accent-primary); }
.guide-coin-link img { width: 36px; height: 36px; flex-shrink: 0; }
.guide-coin-link strong { font-size: 15px; line-height: 1.4; }
.guide-coin-link small { display: block; font: 400 11px/1.6 var(--fm); color: var(--text-muted); }
.guide-coin-link .nerdpool-icon { margin-left: auto; flex-shrink: 0; }
.guide-coin-section { scroll-margin-top: 20px; margin-top: 24px; padding: 24px; border: 1px solid var(--border-color); border-radius: var(--r); background: var(--bg-secondary); }
.guide-coin-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.guide-coin-heading img { width: 36px; height: 36px; }
.guide-coin-heading h2 { font: 600 24px/1.3 var(--fn); letter-spacing: -0.025em; margin: 0; }
.guide-coin-section p { font-size: 14px; line-height: 1.75; margin-bottom: 12px; }
.guide code { font-family: var(--fm); color: var(--text-primary); background: transparent; padding: 0; }
.guide-host { font-size: 13px; }
.guide .table-responsive { width: 100%; overflow-x: auto; margin: 18px 0; }
.guide .table-responsive table { min-width: 520px; }
.guide table caption { caption-side: top; text-align: left; padding-bottom: 10px; color: var(--text-secondary); font-size: 12px; }
.guide th { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.guide td { font-size: 13px; }
.guide th:first-child, .guide td:first-child { padding-left: 0; }
.guide .guide-notes { margin-top: 32px; font-size: 14px; line-height: 1.85; color: var(--text-secondary); }
.guide-notes h2 { margin: 28px 0 12px; font: 600 22px/1.4 var(--fn); color: var(--text-primary); }
@media (max-width: 700px) {
  .idx-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 10px; }
  .nerdpool-network-art { width: 220px; }
  #animatedGif.idx-hero-logo { width: 116px; height: 116px; }
  .nerdpool-coin-satellite { right: 0; bottom: 28px; padding: 6px; gap: 4px; }
  .nerdpool-coin-satellite img { width: 38px; height: 38px; }
  .nerdpool-coin-satellite span { font-size: 9px; }
  .nerdpool-algorithm-tag { top: calc(50% + 70px); padding: 4px 7px; font-size: 9px; }
  .nerdpool-stat-icon { display: none; }
  .pool-stat-item { justify-content: flex-start; gap: 0; }
  .guide { padding: 22px 18px 44px; }
  .guide-header { margin-top: 26px; }
  .guide-coin-nav { gap: 10px; }
  .guide-coin-link { padding: 14px 10px; gap: 8px; }
  .guide-coin-link img { width: 28px; height: 28px; }
  .guide-coin-link strong { font-size: 13px; }
  .guide-coin-link .nerdpool-icon { display: none; }
  .guide-coin-section { padding: 18px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nerdpool-orbit-forward { animation: nerdpoolOrbit var(--nerdpool-orbit-duration) linear infinite; }
  .nerdpool-orbit-backward { animation: nerdpoolOrbit var(--nerdpool-orbit-counter-duration) linear infinite reverse; }
  .nerdpool-network-circuits path { stroke-dasharray: 100; animation: nerdpoolCircuitDraw 1600ms var(--nerdpool-motion-ease) backwards; }
  .nerdpool-coin-satellite { animation: nerdpoolSatelliteFloat 7s ease-in-out infinite; }
  .guide-coin-link { transition: border-color var(--nerdpool-motion-fast), color var(--nerdpool-motion-fast); }
  @keyframes nerdpoolOrbit { to { transform: rotate(360deg); } }
  @keyframes nerdpoolCircuitDraw { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
  @keyframes nerdpoolSatelliteFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
}

/* The same card and SVG system now serves all three SHA-256 coins. */
.pool-coin-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)) !important; }
.nerdpool-coin-satellite--dgb { left: 6px; top: 25px; right: auto; bottom: auto; }
.guide-coin-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width: 700px) {
  .nerdpool-coin-satellite--dgb { left: 0; top: 12px; right: auto; bottom: auto; }
  .guide-coin-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .nerdpool-coin-satellite--dgb { animation-delay: -2s; } }
