/* ===========================================================================
   DOBBSCOIN POOL — STENCIL PUNK ZINE THEME
   Crust-punk xeroxed-flyer aesthetic. Loaded AFTER dobbs-theme.css.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@400;700&family=Special+Elite&family=Black+Ops+One&display=swap');

:root {
  --zine-paper:    #ece4d2;   /* aged xerox bond */
  --zine-paper-2:  #f5efde;   /* lighter card stock */
  --zine-ink:      #141414;   /* photocopier black */
  --zine-red:      #b8181a;   /* duct-tape / rubber-stamp red */
  --zine-red-2:    #7c0e10;   /* shadow red */
  --zine-mute:     #4a4642;   /* aged grey ink */
  --zine-line:     #1a1a1a;
}

/* ---------- page surface ---------- */
html, body {
  background-color: var(--zine-paper) !important;
  color: var(--zine-ink) !important;
}
body {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(0,0,0,0.025) 7px 8px) !important;
  background-attachment: fixed, fixed !important;
  background-repeat: repeat, repeat !important;
}

/* tilted toner-streak overlay, fixed to viewport */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(91deg, transparent 0 80px, rgba(0,0,0,0.018) 80px 81px),
    radial-gradient(ellipse at 20% 30%, rgba(0,0,0,0.04) 0, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(0,0,0,0.05) 0, transparent 50%);
}
.wrap { position: relative; z-index: 1; }

/* ---------- headings: stencil + duct-tape underline ---------- */
h1, h2, h3, .header h1 {
  font-family: 'Stardos Stencil', 'Anton', 'Trebuchet MS', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--zine-ink) !important;
  font-weight: 700 !important;
  position: relative;
  display: inline-block;
}
.header h1 { font-size: 2.4rem !important; line-height: 1.1 !important; padding: 6px 14px; }
.header h1::after {
  /* angled red duct-tape behind the title */
  content: "";
  position: absolute;
  left: -6px; right: -6px; bottom: -2px;
  height: 8px;
  background: var(--zine-red);
  transform: skewX(-14deg) translateY(2px);
  z-index: -1;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
  opacity: 0.92;
}
h2 {
  font-size: 1.05rem !important; padding: 4px 10px;
}
h2::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: -3px;
  height: 5px;
  background: var(--zine-red);
  transform: skewX(-12deg);
  z-index: -1;
  opacity: 0.82;
  box-shadow: 0 1.5px 0 rgba(0,0,0,0.2);
}
.header .sub {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  color: var(--zine-mute) !important;
  text-transform: lowercase;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ---------- nav tabs: stenciled, hard-bordered ---------- */
.nav { gap: 6px !important; padding: 8px 0 !important; }
.nav a {
  font-family: 'Stardos Stencil', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 12px !important;
  background: var(--zine-paper-2) !important;
  color: var(--zine-ink) !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  padding: 6px 12px !important;
  box-shadow: 2px 2px 0 var(--zine-line);
  transition: transform .05s ease-out, box-shadow .05s ease-out;
}
.nav a:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--zine-line); text-decoration: none !important; }
.nav a.active {
  background: var(--zine-red) !important;
  color: var(--zine-paper) !important;
  border-color: var(--zine-line) !important;
}
.nav a:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--zine-line); }

/* ---------- tiles (header stat row) ---------- */
.tiles { gap: 10px !important; }
.tile {
  background: var(--zine-paper-2) !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--zine-line), 7px 7px 14px rgba(0,0,0,0.12) !important;
  padding: 8px 12px !important;
  position: relative;
}
.tile::before {
  content: "";
  position: absolute; top: -1px; left: -1px; right: -1px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--zine-ink) 0 6px, transparent 6px 12px);
  opacity: 0.55;
}
.tile.cyan { background: #d8e7df !important; }
.tile.gold { background: #f1e3b6 !important; }
.tile .label {
  font-family: 'Stardos Stencil', sans-serif !important;
  text-transform: uppercase !important;
  color: var(--zine-red) !important;
  letter-spacing: 0.08em !important;
  font-size: 10px !important;
}
.tile .value {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  font-weight: 700 !important;
  color: var(--zine-ink) !important;
  font-size: 1.25rem !important;
  margin-top: 2px;
}
.tile .bridge-link {
  font-family: 'Special Elite', monospace !important;
  font-size: 10px !important;
  color: var(--zine-red) !important;
  border-bottom: 1px dotted var(--zine-red) !important;
}

/* ---------- cards (chart panels, content blocks) ---------- */
.card {
  background: var(--zine-paper-2) !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--zine-line), 9px 9px 18px rgba(0,0,0,0.14) !important;
  padding: 16px !important;
  margin: 18px 0 !important;
  position: relative;
}
.card::after {
  /* rubber-stamp corner mark */
  content: "BOB";
  position: absolute;
  top: 8px; right: 12px;
  font-family: 'Black Ops One', 'Stardos Stencil', sans-serif;
  font-size: 14px;
  color: var(--zine-red);
  opacity: 0.16;
  letter-spacing: 0.18em;
  transform: rotate(-9deg);
  pointer-events: none;
}
.card h2 { margin-top: 0 !important; }
.card .meta {
  font-family: 'Special Elite', monospace !important;
  font-size: 11px !important;
  color: var(--zine-mute) !important;
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  margin-left: 6px;
}

/* ---------- supply line ---------- */
.supply-line {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  background: var(--zine-ink) !important;
  color: var(--zine-paper) !important;
  padding: 8px 14px !important;
  letter-spacing: 0.06em !important;
  margin: 14px 0 !important;
  border: 2px solid var(--zine-line);
  position: relative;
  text-transform: uppercase;
}
.supply-line::before {
  content: "\\\\";
  position: absolute; left: 8px; top: 4px;
  color: var(--zine-red); font-weight: bold;
}
.supply-line #totalSupply { color: #f5d35a !important; font-weight: bold; }

/* ---------- tables (blocks / payments / miners) ---------- */
.tbl, .tbl-wrap, table.tbl, table {
  background: var(--zine-paper-2) !important;
  border: 2px solid var(--zine-line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: 'Special Elite', 'Courier New', monospace !important;
}
.tbl thead, table thead { background: var(--zine-ink) !important; }
.tbl th, table th {
  background: var(--zine-ink) !important;
  color: var(--zine-paper) !important;
  font-family: 'Stardos Stencil', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 11px !important;
  padding: 8px 10px !important;
  border-right: 1px solid var(--zine-mute);
}
.tbl td, table td {
  border-bottom: 1px solid var(--zine-mute) !important;
  border-right: 1px dotted rgba(0,0,0,0.18) !important;
  padding: 7px 10px !important;
  color: var(--zine-ink) !important;
}
.tbl tbody tr:nth-child(odd) td, table tbody tr:nth-child(odd) td {
  background: rgba(0,0,0,0.02);
}
.tbl a, table a { color: var(--zine-red) !important; text-decoration: none; border-bottom: 1px solid var(--zine-red) !important; }
.tbl a:hover, table a:hover { background: rgba(184,24,26,0.12); }

/* ---------- buttons / inputs ---------- */
button, input[type="text"], input[type="number"], input[type="email"], input[type="submit"], .btn {
  font-family: 'Stardos Stencil', sans-serif !important;
  text-transform: uppercase !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  background: var(--zine-paper-2) !important;
  color: var(--zine-ink) !important;
  box-shadow: 3px 3px 0 var(--zine-line);
  padding: 6px 14px !important;
  letter-spacing: 0.04em;
}
input[type="text"], input[type="number"], input[type="email"] {
  font-family: 'Special Elite', monospace !important;
  text-transform: none !important;
}
button:hover, .btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--zine-line); }
button:active, .btn:active { transform: translate(3px,3px); box-shadow: none; }

/* ---------- generic links + prose ---------- */
a { color: var(--zine-red) !important; }
a:hover { color: var(--zine-red-2) !important; }
code, pre {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  background: var(--zine-ink) !important;
  color: var(--zine-paper) !important;
  padding: 2px 6px !important;
  border-radius: 0 !important;
  border: 1px solid var(--zine-line);
}
pre { padding: 12px !important; }

/* ---------- block-bell widget (matches BOB-palette overrides earlier) ---------- */
#blockBellInfo {
  background: var(--zine-paper-2) !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  padding: 10px 16px 6px 16px !important;
  color: var(--zine-ink) !important;
  font-family: 'Special Elite', monospace !important;
  box-shadow: 3px 3px 0 var(--zine-line);
  margin: 16px auto 12px auto !important;
  max-width: 90%;
  position: relative;
}
#blockBellInfo::before {
  content: "★ BLOCK FOUND ★";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--zine-red);
  color: var(--zine-paper);
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 3px 12px;
  border: 1.5px solid var(--zine-line);
  white-space: nowrap;
}
#blockBellInfo a { color: var(--zine-red) !important; font-weight: 700 !important; border-bottom: none !important; }
#blockBellInfo code.hash {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  background: var(--zine-ink) !important;
  color: #f1c84a !important;
  border: none !important;
  padding: 1px 8px !important;
  letter-spacing: 0.04em;
  font-size: 11px !important;
}
#blockBellInfo .ago { color: var(--zine-mute) !important; font-family: 'Special Elite', monospace !important; }
.block-bell-avg {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  font-size: 12px !important;
  color: var(--zine-ink) !important;
  opacity: 1 !important;
}
.block-bell-avg span {
  color: var(--zine-red) !important;
  font-weight: 700 !important;
  font-family: 'Special Elite', 'Courier New', monospace !important;
}
#blockBellToggle {
  background: var(--zine-paper-2) !important;
  border: 2px solid var(--zine-line) !important;
  box-shadow: 2px 2px 0 var(--zine-line);
}

/* ---------- footer ---------- */
.footer, footer {
  font-family: 'Special Elite', 'Courier New', monospace !important;
  color: var(--zine-mute) !important;
  background: rgba(0,0,0,0.04);
  border-top: 2px dashed var(--zine-line);
  padding: 14px 16px !important;
  margin-top: 30px !important;
  text-align: center;
  font-size: 11px;
}
.footer a, footer a { color: var(--zine-red) !important; }
.tm-line { font-size: 10px !important; opacity: 0.85; }

/* ---------- chart legend / dots ---------- */
.chart-legend { font-family: 'Stardos Stencil', sans-serif !important; text-transform: uppercase; font-size: 11px !important; letter-spacing: 0.05em; }
.chart-legend .dot.network { background: var(--zine-ink) !important; }
.chart-legend .dot.pool { background: var(--zine-red) !important; }
.chart-legend .dot.difficulty { background: #f1c84a !important; }
.ct-chart text { font-family: 'Special Elite', monospace !important; fill: var(--zine-ink) !important; }
.ct-grid { stroke: rgba(0,0,0,0.25) !important; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .header h1 { font-size: 1.6rem !important; }
  .tile .value { font-size: 1rem !important; }
  .card { padding: 10px !important; box-shadow: 3px 3px 0 var(--zine-line); }
  .tile { box-shadow: 3px 3px 0 var(--zine-line); }
  .nav a { font-size: 11px !important; padding: 4px 9px !important; }
}

/* === Standalone avg-times row (sibling under the block-bell ribbon) === */
.block-avg-info {
  display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  background: var(--zine-paper-2);
  border: 2px solid var(--zine-line);
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--zine-line);
  margin: 4px auto 16px auto;
  padding: 8px 16px 6px 16px;
  max-width: max-content;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 12px;
  position: relative;
}
.block-avg-info::before {
  content: "TIMING";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--zine-ink);
  color: var(--zine-paper);
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 2px 10px;
  border: 1.5px solid var(--zine-line);
  white-space: nowrap;
}
.block-avg-info .block-avg-cell { white-space: nowrap; color: var(--zine-ink); }
.block-avg-info .block-avg-label {
  font-family: 'Stardos Stencil', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zine-mute);
  font-size: 10px;
  margin-right: 5px;
}
.block-avg-info #blockBellAvg60,
.block-avg-info #blockBellAvg24h {
  color: var(--zine-red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: 'Special Elite', 'Courier New', monospace;
}
.block-avg-info .block-avg-sep { color: var(--zine-line); opacity: 0.55; }
@media (max-width: 600px) {
  .block-avg-info { font-size: 11px; padding: 6px 12px 4px 12px; gap: 8px; }
  .block-avg-info .block-avg-label { font-size: 9px; }
}

/* === v3 user tweaks: drop the tab labels, reskin the supply banner === */

/* Kill the floating tab banners on the bell + the timing card */
.block-avg-info::before { content: none !important; display: none !important; }
#blockBellInfo::before { content: none !important; display: none !important; }
/* The bell sat 12px down to make room for its tab; rebalance the spacing now */
#blockBellInfo { padding-top: 6px !important; margin-top: 8px !important; }
.block-avg-info { margin-top: 2px !important; padding-top: 6px !important; }

/* TOTAL SUPPLY — was inverted black-ribbon, now a stamped cream card */
.supply-line {
  background: var(--zine-paper-2) !important;
  color: var(--zine-ink) !important;
  border: 2px solid var(--zine-line) !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 var(--zine-line);
  padding: 10px 16px !important;
  margin: 14px auto !important;
  max-width: max-content;
  display: flex;
  align-items: baseline;
  gap: 14px;
  text-transform: uppercase;
  font-family: 'Stardos Stencil', sans-serif !important;
  letter-spacing: 0.08em !important;
  font-size: 13px !important;
  position: relative;
}
/* perforated checker strip atop the supply card, same as tiles */
.supply-line::before {
  content: "" !important;
  position: absolute; top: -1px; left: -1px; right: -1px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--zine-ink) 0 6px, transparent 6px 12px);
  opacity: 0.55;
  color: transparent;
  font: inherit;
  padding: 0;
}
.supply-line #totalSupply {
  color: var(--zine-red) !important;
  font-family: 'Black Ops One', 'Stardos Stencil', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.02em !important;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.18);
}

/* === v4: restore original cream/white body background, drop the xerox noise === */
html, body {
  background-color: #fff !important;
  background-image: none !important;
}
body::before { display: none !important; content: none !important; }

/* === v5: hash code in the block-bell — no more black inverted badge === */
#blockBellInfo code.hash {
  background: transparent !important;
  color: var(--zine-red) !important;
  border: none !important;
  padding: 0 2px !important;
  font-family: 'Special Elite', 'Courier New', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  font-weight: 700;
}
#blockBellInfo a code.hash { color: var(--zine-red) !important; }
#blockBellInfo a:hover code.hash { color: var(--zine-red-2) !important; text-decoration: underline; text-decoration-color: var(--zine-red); }

/* === v6: match dobbscoin.info wallpaper + black bell icon === */
html {
  background-color: #fff !important;
  background-image:
    url('https://dobbscoin.info/images/bg.png'),
    url('https://dobbscoin.info/images/bg.png') !important;
  background-blend-mode: multiply, normal !important;
  background-repeat: repeat, repeat !important;
  background-attachment: fixed, fixed !important;
  background-position: center top, center top !important;
}
body {
  background-color: transparent !important;
  background-image: none !important;
}

/* black bell-toggle button at top-left of header */
#blockBellToggle {
  background: var(--zine-ink, #141414) !important;
  border: 2px solid var(--zine-ink, #141414) !important;
  box-shadow: 3px 3px 0 var(--zine-line, #141414);
}
#blockBellToggle:hover { background: #2a2a2a !important; }
/* invert the icon color to white so it shows on the black button */
#blockBellToggle img { filter: brightness(0) invert(1); }
#blockBellToggle.muted { border-color: rgba(255,92,92,.85) !important; }
