/* Rabid Pool app: beta theme layer (2026-11-12). Loaded AFTER app.css; CSS only, no markup or behaviour change.
   Same tokens, glass panels, accent lines and tab bar as the beta site. Phone-light: no images, no video, no animation
   except the tiny live-dot pulse (off under prefers-reduced-motion). Roll back = remove the <link> to theme.css. */
:root {
  --bg: #070b10; --panel: #0f1721; --panel2: #141f2b; --line: #233241;
  --text: #f4f8fb; --muted: #91a4b7; --red: #f85149; --gold: #d7a928; --green: #20d984; --cyan: #22bceb;
  --accent: var(--cyan);
  --glass: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.014) 12%, transparent 12%), linear-gradient(180deg, rgba(18,27,37,.98), rgba(10,16,22,.98));
  --edge: rgba(255,255,255,.085);
  --shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.24);
}
html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 18% -8%, rgba(34,188,235,.14), transparent 30%),
    radial-gradient(circle at 88% 0, rgba(32,217,132,.07), transparent 30%),
    linear-gradient(180deg, #081018 0, var(--bg) 22%, #05080c 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: color-mix(in srgb, var(--accent) 88%, white 12%); }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 76%, white 24%); outline-offset: 2px; }

/* header */
#top { background: linear-gradient(rgba(7,11,16,.96) 78%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.brand { font-weight: 800; letter-spacing: .015em; }
.brand img { box-shadow: 0 0 0 1px var(--edge), 0 0 18px rgba(34,188,235,.18); }
.icon, .who { background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow); border-radius: 11px; }
.icon:active, .who:active { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* panels */
.card { position: relative; background: var(--glass); border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 72%, white 12%), transparent 70%); opacity: .9; pointer-events: none; }
.card h3 { color: var(--ink-2, #cad5e0); letter-spacing: .085em; }
.coinhead img { box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 14px rgba(255,255,255,.06); background: #0b1118; }
.stat .k { color: #cad5e0; font-weight: 700; letter-spacing: .085em; }
.stat .v { letter-spacing: -.02em; text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 16%, transparent 84%); }
.stat .s { color: var(--muted); }
.big { letter-spacing: -.03em; }
hr { border-top-color: rgba(255,255,255,.08); }
.row, .kv, .copyrow, .tog { border-top-color: rgba(255,255,255,.07); }
.bar { background: rgba(255,255,255,.07); }
.bar i { background: linear-gradient(90deg, color-mix(in srgb, var(--green) 70%, #000 30%), var(--green)); box-shadow: 0 0 10px rgba(32,217,132,.35); }
.dot.on { box-shadow: 0 0 10px rgba(32,217,132,.7); animation: livepulse 2.4s ease-in-out infinite; }
@keyframes livepulse { 50% { box-shadow: 0 0 3px rgba(32,217,132,.35); } }

/* chips + pills */
.chip { background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow); color: #cad5e0; }
.chip.on { box-shadow: 0 0 14px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.3); }
.pill { border: 1px solid rgba(255,255,255,.08); }
.pill.pplns { background: rgba(34,188,235,.1); border-color: rgba(34,188,235,.32); }
.pill.solo { border-color: rgba(181,140,255,.34); }

/* buttons: anodized gradient with a crisp edge (was a flat red block) */
.btn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, white 18%), color-mix(in srgb, var(--accent) 74%, #000 26%));
  color: #04141b; border: 1px solid color-mix(in srgb, var(--accent) 70%, white 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px rgba(0,0,0,.28); border-radius: 11px; text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn:active { filter: brightness(.93); transform: translateY(1px); }
.btn.ghost { background: var(--glass); color: var(--text); border: 1px solid var(--edge); box-shadow: var(--shadow); text-shadow: none; }
.btn.ghost:active { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
input[type=text], input[type=search], .chat-form textarea { background: #0a1018; border: 1px solid var(--edge); box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
input:focus, .chat-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }

/* welcome hero */
.hero img { box-shadow: 0 0 0 1px var(--edge), 0 0 44px rgba(34,188,235,.22); }

/* bottom tab bar: glass with an accent line on the active tab */
#tabs { background: linear-gradient(180deg, rgba(14,21,30,.92), rgba(7,11,16,.97)); border-top: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#tabs a { position: relative; color: #91a4b7; }
#tabs a.on { color: color-mix(in srgb, var(--accent) 74%, white 26%); }
#tabs a.on svg { stroke: var(--accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent)); }
#tabs a.on::after { content: ""; position: absolute; left: 22%; right: 22%; top: -7px; height: 2px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }

/* banner, sheet, toast, toggles */
#banner { background: var(--glass); border-color: var(--edge); border-radius: 12px; box-shadow: var(--shadow); }
#banner.info { background: linear-gradient(rgba(34,188,235,.1), rgba(34,188,235,.05)); }
#banner.maintenance { background: linear-gradient(rgba(215,169,40,.12), rgba(215,169,40,.05)); }
#banner.urgent { background: linear-gradient(rgba(248,81,73,.13), rgba(248,81,73,.05)); }
#sheet { background: rgba(2,5,8,.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#sheet .panel { background: var(--glass); border: 1px solid var(--edge); box-shadow: 0 -18px 48px rgba(0,0,0,.5); }
#toast { background: linear-gradient(180deg, #1b2733, #131c26); border-color: var(--edge); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.tog input:checked { background: linear-gradient(180deg, var(--green), color-mix(in srgb, var(--green) 70%, #000 30%)); box-shadow: 0 0 10px rgba(32,217,132,.35); }

/* chat */
.cm.me { background: rgba(34,188,235,.09); }
.chat-warn, .chat-rules { background: rgba(215,169,40,.07); }
.chat-log { border-color: rgba(255,255,255,.07); }

@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } .btn:active { transform: none; } }
@media (min-width: 700px) { #shell { max-width: 620px; } }

/* pool hashrate chart card (Pool tab, 2026-11-12) */
.hrhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hrhead h3 { margin: 0; }
.hrbtns { display: flex; gap: 6px; }
.hrbtn { background: var(--glass); border: 1px solid var(--edge); color: #cad5e0; border-radius: 9px; padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hrbtn.on { color: color-mix(in srgb, var(--accent) 74%, white 26%); border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent); }
.hrchart { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); }
.hrchart svg { display: block; width: 100%; height: 136px; }
.hrcur { display: none; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.4); pointer-events: none; }
.hrtip { min-height: 18px; font-size: 12px; color: #cad5e0; font-variant-numeric: tabular-nums; margin-top: 4px; text-align: center; }
.hrstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hrstats .v { font-size: 13.5px; font-weight: 700; text-shadow: none; overflow-wrap: anywhere; }
.hrstats .k { font-size: 10px; }
.hrmsg { padding: 30px 0; text-align: center; }

/* chart v2: tracking dot, pulsing live dot, sweeping scan glow (same three touches as the beta charts) */
.hrchart { --hrc: #22bceb; }
.hrdot, .hrlive { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; z-index: 3; background: var(--hrc); color: var(--hrc); }
.hrdot { display: none; box-shadow: 0 0 0 2px #070b10, 0 0 12px currentColor; }
.hrlive { box-shadow: 0 0 10px currentColor; animation: hrRing 2.2s ease-out infinite; }
@keyframes hrRing { 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; } }
.hrscan { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; pointer-events: none; z-index: 1; }
.hrscan::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(--hrc) 8%, transparent) 55%, color-mix(in srgb, var(--hrc) 22%, transparent) 99%, transparent);
  animation: hrScan 9s linear infinite; }
@keyframes hrScan { from { transform: translateX(-100%); } to { transform: translateX(625%); } }
@media (prefers-reduced-motion: reduce) { .hrlive { animation: none; } .hrscan { display: none; } }

/* "Your hashrate" chart inside each coin card (Miners tab) */
.myc { margin-top: 14px; }
.myc .hrhead h3 { margin: 0; }
.myc .hrchart svg { height: 118px; }
.myc .hrstats { margin-top: 6px; }
