/* Rabid Pool beta: hologram charts, living background, share pops. Own file, loaded last, so a theme pass cannot lose it. */

/* ---------- living blockDAG background (drawn by fx.js) ---------- */
#fx-dag { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .8; }
@media (max-width: 700px) { #fx-dag { opacity: .5; } }

/* ---------- share chips (top right) ---------- */
#fx-feed { position: fixed; top: 52px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.fx-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 10px;
  font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: #eaf6fb;
  background: linear-gradient(180deg, rgba(14,24,34,.92), rgba(7,12,18,.92));
  border: 1px solid color-mix(in srgb, var(--accent, #22bceb) 50%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent, #22bceb) 28%, transparent), inset 0 0 18px color-mix(in srgb, var(--accent, #22bceb) 10%, transparent);
  animation: fxIn .38s cubic-bezier(.2,1.5,.4,1) both, fxOut .55s ease 3.7s forwards;
}
.fx-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #22bceb); box-shadow: 0 0 10px var(--accent, #22bceb); }
@keyframes fxIn { from { opacity: 0; transform: translateY(-10px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes fxOut { to { opacity: 0; transform: translateY(-6px) scale(.92); } }

/* a label that floats up out of the row or card that just got a share */
.fx-fly {
  position: fixed; z-index: 70; pointer-events: none; transform: translate(-50%, -50%);
  font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent, #22bceb);
  text-shadow: 0 0 12px var(--accent, #22bceb), 0 0 2px #000;
  animation: fxFly 1.5s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes fxFly { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -80%) scale(1.25); } 100% { opacity: 0; transform: translate(-50%, -330%) scale(1); } }

/* the row / cards that just got a share glow once */
tr.fx-pop > td { animation: fxRow 1.6s ease-out; }
@keyframes fxRow { 0% { background: color-mix(in srgb, var(--accent, #22bceb) 34%, transparent); box-shadow: inset 0 1px 0 var(--accent, #22bceb), inset 0 -1px 0 var(--accent, #22bceb); } 100% { background: transparent; box-shadow: none; } }
.stat.fx-pop { animation: fxCard 1.1s cubic-bezier(.2,1.6,.4,1); }
@keyframes fxCard { 0% { transform: scale(1); } 22% { transform: scale(1.035); box-shadow: 0 0 0 1px var(--accent, #22bceb), 0 0 34px color-mix(in srgb, var(--accent, #22bceb) 45%, transparent); } 100% { transform: scale(1); } }

/* ---------- hologram chart ---------- */
.chart {
  border-color: color-mix(in srgb, var(--accent, #22bceb) 26%, rgba(255,255,255,.07));
  box-shadow: inset 0 0 46px color-mix(in srgb, var(--accent, #22bceb) 7%, transparent), 0 0 28px color-mix(in srgb, var(--accent, #22bceb) 9%, transparent), 0 14px 30px rgba(0,0,0,.3);
}
.chart h3 { font: 700 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--accent, #22bceb) 62%, #dfeaf3); }
.chart .rng { font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; color: #8fa3b6; }
.chart .plot { position: relative; margin-left: 64px; }
.chart .plot svg { display: block; width: 100%; }
.chart .plot::before {   /* corner brackets */
  content: ""; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --c: color-mix(in srgb, var(--accent, #22bceb) 70%, transparent);
  background:
    linear-gradient(var(--c), var(--c)) top left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 14px 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px 14px no-repeat;
}
.chart .ax {
  position: absolute; left: -64px; width: 58px; text-align: right; transform: translateY(-50%); pointer-events: none;
  font: 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; white-space: nowrap;
  color: color-mix(in srgb, var(--accent, #22bceb) 50%, #9fb2c4);
}
.chart .gl { stroke: color-mix(in srgb, var(--accent, #22bceb) 15%, rgba(255,255,255,.03)); stroke-width: 1; stroke-dasharray: 2 5; }
.chart .gl.v { stroke: color-mix(in srgb, var(--accent, #22bceb) 9%, transparent); stroke-dasharray: 0; }
.chart .gl.base { stroke: color-mix(in srgb, var(--accent, #22bceb) 40%, transparent); stroke-dasharray: 0; }
.chart .avgl { stroke: color-mix(in srgb, var(--accent, #22bceb) 55%, #fff); stroke-width: 1; stroke-dasharray: 1 5; opacity: .6; }
.chart .cur { stroke: #fff; stroke-opacity: .65; stroke-width: 1; stroke-dasharray: 3 4; }
.chart .axx { position: relative; height: 26px; margin-left: 64px; }
.chart .axx span { position: absolute; top: 9px; transform: translateX(-50%); white-space: nowrap; font: 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: #8397aa; }
.chart .axx span:first-child { transform: none; }
.chart .axx span:last-child { transform: translateX(-100%); }
.chart .live-dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; z-index: 3; pointer-events: none;
  box-shadow: 0 0 12px currentColor; animation: liveRing 2.2s ease-out infinite;
}
@keyframes liveRing { 0% { box-shadow: 0 0 10px currentColor, 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 10px currentColor, 0 0 0 12px transparent; } 100% { box-shadow: 0 0 10px currentColor, 0 0 0 0 transparent; } }
.chart .scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.chart .scan::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 16%; will-change: transform;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent, #22bceb) 8%, transparent) 55%, color-mix(in srgb, var(--accent, #22bceb) 20%, transparent) 99%, transparent);
  animation: holoScan 9s linear infinite;
}
@keyframes holoScan { from { transform: translateX(-100%); } to { transform: translateX(625%); } }
.chart .tip {
  min-width: 190px; padding: 0; border-radius: 6px; overflow: hidden; z-index: 6;
  font: 11.5px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; color: #cfe0ee;
  background: linear-gradient(180deg, rgba(9,16,24,.97), rgba(5,9,14,.97));
  border: 1px solid color-mix(in srgb, var(--accent, #22bceb) 35%, rgba(255,255,255,.1));
  border-left: 3px solid var(--accent, #22bceb);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent, #22bceb) 26%, transparent), 0 10px 26px rgba(0,0,0,.5);
}
.chart .tip .th { padding: 7px 11px; text-transform: uppercase; letter-spacing: .13em; color: #8fa6bb; border-bottom: 1px solid rgba(255,255,255,.08); }
.chart .tip .tr { display: flex; justify-content: space-between; gap: 18px; padding: 4px 11px; text-transform: uppercase; color: #8fa6bb; }
.chart .tip .tr b { color: #f3f8fc; font-weight: 600; }
.chart .tip .tr.main { padding-top: 7px; }
.chart .tip .tr.main b { color: var(--accent, #22bceb); text-shadow: 0 0 10px color-mix(in srgb, var(--accent, #22bceb) 50%, transparent); }
.chart .tip .tr:last-child { padding-bottom: 8px; }
.chart .cstrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; margin-top: 4px;
  border: 1px solid color-mix(in srgb, var(--accent, #22bceb) 20%, transparent); border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--accent, #22bceb) 14%, transparent);
}
.chart .cstrip > div { background: rgba(6,11,17,.95); padding: 10px 13px; min-width: 0; }
.chart .cstrip .k { display: block; font: 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .15em; color: color-mix(in srgb, var(--accent, #22bceb) 50%, #8fa3b6); }
.chart .cstrip .v { display: block; margin-top: 5px; font: 700 15px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #f2f7fb; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .chart .plot { margin-left: 52px; } .chart .ax { left: -52px; width: 46px; font-size: 9.5px; } .chart .axx { margin-left: 52px; } .chart .axx span { font-size: 9.5px; }
  .chart .axx span:nth-child(even) { display: none; }
}

/* ---------- people who asked for less motion get a still picture ---------- */
@media (prefers-reduced-motion: reduce) {
  .chart .scan, .fx-fly { display: none; }
  .chart .live-dot, .fx-chip, tr.fx-pop > td, .stat.fx-pop { animation: none !important; }
}

/* things that cost a lot to repaint on a big screen while something moves behind them */
.tabs { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body::before { display: none; }          /* the theme's fixed full-screen scanline overlay */
.fx-lite .chart .scan, .fx-lite .chart .live-dot { display: none; }
.fx-lite #fx-dag { display: none; }

/* worker 24 h trend: big enough to read, scaled to its own low-high range, with the numbers under it */
td.trend { min-width: 176px; }
td.trend .spark { display: block; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent, #22bceb) 35%, transparent)); }
td.trend .tcap { margin-top: 3px; font: 10.5px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; color: #8ea3b6; white-space: nowrap; }

/* My stats sub-tabs: all the numbers, one screen at a time instead of one long scroll */
.mstabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 2px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mstabs button {
  font: 700 11.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 15px; border-radius: 8px; cursor: pointer; color: #9db0c2;
  border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(22,33,46,.95), rgba(9,14,21,.95));
}
.mstabs button:hover { color: #fff; }
.mstabs button.on {
  color: #fff; border-color: color-mix(in srgb, var(--accent, #22bceb) 60%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, #22bceb) 22%, rgba(22,33,46,.95)), rgba(9,14,21,.95));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent, #22bceb) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}
.mspane[hidden] { display: none; }
.mspane > .sec:first-child { margin-top: 18px; }

/* long tables (blocks you earned from, maturing rewards, payouts) scroll inside their own box, header stays put */
.mspane .tbl { max-height: 440px; overflow-y: auto; }
.mspane .tbl thead th { position: sticky; top: 0; z-index: 2; }

/* Start mining: stratum list + miner picker */
.srvs .tbl { margin-top: 0; }
.srvs tr.srvsel > td { background: color-mix(in srgb, var(--accent, #22bceb) 10%, transparent); }
.srvs tr[data-srv]:hover > td { background: color-mix(in srgb, var(--accent, #22bceb) 7%, transparent); }
.srvs td.addr code { font-size: 12px; }
.srvs .lat { font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8fa6bb; }
.srvs .lat.g { color: #20d984; } .srvs .lat.y { color: #d7a928; } .srvs .lat.r { color: #f85149; }
.minerbox select.txt { width: auto; min-width: 280px; }
.cmdbox {
  margin: 10px 0 0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e6f1f8;
  background: rgba(5,10,16,.9); border: 1px solid color-mix(in srgb, var(--accent, #22bceb) 28%, rgba(255,255,255,.08));
  box-shadow: inset 0 0 28px color-mix(in srgb, var(--accent, #22bceb) 6%, transparent);
}

/* hash bars: you in the pool, the pool in the network, you in the network */
.hbars { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 6px; }
.hb { padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, rgba(14,22,32,.9), rgba(7,12,18,.9)); border: 1px solid color-mix(in srgb, var(--accent, #22bceb) 18%, rgba(255,255,255,.06)); }
.hb .hl { display: flex; justify-content: space-between; gap: 12px; font: 600 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: #9db0c2; }
.hb .hl b { color: var(--accent, #22bceb); font-size: 14px; text-shadow: 0 0 10px color-mix(in srgb, var(--accent, #22bceb) 45%, transparent); }
.hb .ht { height: 10px; margin: 10px 0 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.hb .ht i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent, #22bceb) 60%, #000), var(--accent, #22bceb)); box-shadow: 0 0 14px color-mix(in srgb, var(--accent, #22bceb) 60%, transparent); }
.hb .hs { font: 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8397aa; }

/* range buttons on the shared charts (24H / 7D / 30D) */
.chart .rseg { position: absolute; top: 12px; right: 14px; z-index: 6; margin: 0; }
.chart .rseg button { padding: 5px 10px; font-size: 11px; letter-spacing: .06em; }
.chart .rnote { margin: 8px 0 2px 64px; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8397aa; }
@media (max-width: 700px) { .chart .rseg { top: 8px; right: 8px; } .chart .rnote { margin-left: 52px; } }

/* payout choices with their fees */
.paychoices { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.paychoices .choice { padding: 16px 16px 14px; }
.paychoices .choice b { font-size: 15px; }
.paychoices .choice b small { font-weight: 500; font-size: 11.5px; margin-left: 4px; }
.paychoices .feebig { margin: 10px 0 8px; font: 800 20px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.01em; color: var(--accent, #22bceb); text-shadow: 0 0 12px color-mix(in srgb, var(--accent, #22bceb) 35%, transparent); }
.paychoices .feeln { font-size: 12px; line-height: 1.45; color: #aebfce; margin-top: 4px; padding-left: 12px; position: relative; }
.paychoices .feeln::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent, #22bceb) 70%, transparent); }
.paychoices .choice.on { box-shadow: 0 0 0 1px var(--accent, #22bceb), 0 0 26px color-mix(in srgb, var(--accent, #22bceb) 22%, transparent); }

/* coin marks beside payout choices */
.pico { width: 22px; height: 22px; border-radius: 50%; vertical-align: -6px; margin-right: 9px; object-fit: contain; flex: none; background: rgba(255,255,255,.12); box-shadow: 0 0 0 1.5px rgba(255,255,255,.28), 0 3px 10px rgba(0,0,0,.4); }
.pay .opt b .pico, .paychoices .choice b .pico { width: 24px; height: 24px; }
.sec h2 .pico { width: 20px; height: 20px; vertical-align: -4px; margin: 0 8px 0 4px; }

/* looping circuit-board video in place of the still picture (CPU coin headers, Fees page) */
.hero-in { display: contents; }
.hero-in > * { position: relative; z-index: 2; }
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero::before, .hero::after { z-index: 1; }
body[data-hw="cpu"] .hero::before {   /* only the darkening layers: the video (or its still frame) shows through */
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.2) 58%, rgba(7,11,16,.82) 100%);
}
.bg-hero .bg-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: brightness(.75); pointer-events: none; }

/* hero loops for every picture (2026-11-12): the still is only the video's poster, so the ::before layer keeps just the darkening gradients
   (hero + home header). Without JS / no loop the normal still picture is still there. */
.hero.has-loop::before, .hero.has-loop::after, header.has-loop::before, header.has-loop::after { z-index: 1; }
body[data-hw] .hero.has-loop::before {
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.2) 58%, rgba(7,11,16,.82) 100%);
}
header.has-loop::before {
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.82) 78%),
    linear-gradient(90deg, rgba(7,11,16,.82) 0, rgba(7,11,16,.48) 28%, rgba(7,11,16,.22) 58%, rgba(7,11,16,.82) 100%);
}
