/* garlicoin.org shared styles */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/OFL-*.txt). Latin subset only;
   other characters fall back to the system font. Nunito is one variable file for 500-800. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/fredoka-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --bg: #fbf7ec;
  --card: #ffffff;
  --line: #ece2c6;
  --ink: #2b2416;
  --muted: #5c5241;
  --gold: #f2b632;
  --gold-deep: #e09a12;
  --gold-text: #a86c00;
  --gold-soft: #fff4d4;
  --hero-bg: #fde7a3;
  --on-gold: #2b2416;
  --ok: #1f8a4c;
  --ok-soft: #e3f5ea;
  --warn: #8a5a00;
  --warn-soft: #fff1d6;
  --bad: #b3261e;
  --bad-soft: #fdeceb;
  --shadow: 0 1px 2px rgba(60, 45, 10, .05), 0 6px 20px rgba(60, 45, 10, .06);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c160b;
    --card: #271f12;
    --line: #42361f;
    --ink: #f5ecd7;
    --muted: #c4b797;
    --gold-text: #ffcf5c;
    --gold-soft: #2c2412;
    --hero-bg: #3a2c10;
    --ok: #5fd08f;
    --ok-soft: #13291c;
    --warn: #ffc65c;
    --warn-soft: #2f2410;
    --bad: #ff8a80;
    --bad-soft: #321614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.muted { color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 7px 14px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--gold-soft); }
.nav a[aria-current="page"] { color: var(--on-gold); background: var(--gold); }

/* ---------- layout ---------- */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  min-width: 0;
}
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  color: var(--on-gold);
  background: var(--gold);
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease;
}
.btn:hover { color: var(--on-gold); background: var(--gold-deep); }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--gold-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

.widget { overflow-x: auto; }
/* Third-party price widget: always shown on a light panel so its own blue/black text stays readable in dark mode */
.widget .coinmarketcap-currency-widget {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  color: #2b2416;
  border-radius: 12px;
  color-scheme: light;
}

/* ---------- home ---------- */
.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  border-radius: 24px;
  background: var(--hero-bg);
}
.hero-band .eyebrow { font-weight: 700; color: var(--gold-text); margin-bottom: 10px; }
.hero-band h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.hero-band p.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { width: 200px; height: 200px; }

.services { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services .service { grid-template-columns: 1fr; gap: 14px; }
.service {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  text-decoration: none;
  color: var(--ink);
}
a.service:hover { color: var(--ink); border-color: var(--gold); }
.service .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-text);
}
.service .icon svg { width: 26px; height: 26px; }
.service h2 { font-size: 1.15rem; margin-bottom: 4px; }
.service p { color: var(--muted); }
.service .more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--gold-text); }

.community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.community h2 { font-size: 1.15rem; margin-bottom: 4px; }
.community p { color: var(--muted); }
.community .hero-actions { flex: none; }
.btn.discord, .btn.reddit { color: #fff; border-color: transparent; }
.btn.discord { background: #5865f2; }
.btn.discord:hover { background: #4752c4; color: #fff; }
.btn.reddit { background: #ff4500; }
.btn.reddit:hover { background: #d93a00; color: #fff; }

/* ---------- faucet ---------- */
.faucet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.roll-card { padding: 32px; }
.faucet-head { display: flex; align-items: center; gap: 16px; }
.faucet-head img { width: 56px; height: 56px; flex: none; }
.faucet-head h1 { font-size: clamp(1.6rem, 3.6vw, 2rem); }

/* The rebuild script swaps this exact <h1> markup (inline color) for maintenance mode. */
h1[style*="color:blue"] { color: var(--ink) !important; }
h1[style*="color:red"] {
  color: var(--bad) !important;
  font-size: 1.1rem !important;
  line-height: 1.4;
  background: var(--bad-soft);
  border-radius: 12px;
  padding: 12px 16px;
}

.amount { margin-top: 18px; font-size: 1.05rem; color: var(--muted); }
.amount:empty { display: none; }
.amount strong { color: var(--ink); }

.messages:empty { display: none; }
.messages { margin-top: 18px; }
.messages > * + * { margin-top: 10px; }
.messages strong {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
.messages strong[style*="color:red"] { color: var(--bad) !important; background: var(--bad-soft); }
.messages strong[style*="color:green"] { color: var(--ok) !important; background: var(--ok-soft); }

/* "<br />Your Garlicoin address:" is printed first in the form line; it acts as the field label */
.roll { margin-top: 22px; font-weight: 700; font-size: .95rem; }
.roll:empty { display: none; }
.roll > br:first-child { display: none; }
.roll-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; font-weight: 400; }
.roll-form input[type="text"] {
  width: 100%;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  outline: none;
}
.roll-form input[type="text"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent);
}
.roll-form .g-recaptcha { min-height: 78px; }
.roll-form .btn { width: 100%; padding: 15px 22px; font-size: 1.1rem; }

.status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.status.ready { color: var(--ok); }
.status.wait { color: var(--warn); }

.balance-value { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.balance-value small { font-size: .5em; font-weight: 700; color: var(--muted); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--muted); }
.activity li:first-child { border-top: 0; padding-top: 0; }
.activity strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.addr {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  word-break: break-all;
  background: var(--gold-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 12px;
}
.btn-copy {
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.btn-copy:hover { background: var(--gold-soft); }

.how ol { margin: 0; padding-left: 1.3em; color: var(--muted); display: grid; gap: 6px; }
.how .ip { margin-top: 12px; font-size: .85rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer p + p { margin-top: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .faucet-layout { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 40px; gap: 16px; }
  .topbar-inner { padding: 10px 16px; justify-content: center; }
  .card, .roll-card { padding: 20px; }
  .side { gap: 16px; }
  .hero-band { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; gap: 18px; border-radius: 20px; }
  .hero-band .hero-logo { display: none; }
  .hero-band p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .community { flex-direction: column; align-items: stretch; text-align: center; }
}


/* ================= fun layer ================= */
:root {
  --font-fun: "Fredoka", "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dot: rgba(224, 154, 18, .16);
  --hero-grad: linear-gradient(135deg, #ffe9a6 0%, #fdd66d 55%, #f7b733 100%);
  --edge-gold: #b87a0c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --dot: rgba(244, 192, 79, .13);
    --hero-grad: linear-gradient(135deg, #4a3810 0%, #3a2c0e 60%, #2b210b 100%);
    --edge-gold: #8a5a06;
  }
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 2px 2px, var(--dot) 2px, transparent 0);
  background-size: 26px 26px;
}

/* Readable rounded text everywhere; the playful display font only on big titles */
html { font-size: 17px; }
body { font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1rem; font-weight: 500; }
h1, .balance-value { font-family: var(--font-fun); font-weight: 600; letter-spacing: .005em; }
h2, h3, .card-title, .brand, .btn, .nav a { font-weight: 800; letter-spacing: 0; }
.label { font-weight: 800; letter-spacing: .08em; }
.service p, .community p, .how ol, .activity li { font-size: 1rem; }

/* chunky, pressable buttons */
.btn {
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--edge-gold);
  transition: transform .1s ease, box-shadow .1s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge-gold); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-gold); }
.btn.secondary { box-shadow: 0 4px 0 var(--line); }
.btn.secondary:hover { box-shadow: 0 6px 0 var(--line); }
.btn.secondary:active { box-shadow: 0 1px 0 var(--line); }
.btn.discord { box-shadow: 0 4px 0 #3b44a8; }
.btn.discord:hover { box-shadow: 0 6px 0 #3b44a8; }
.btn.reddit { box-shadow: 0 4px 0 #b33000; }
.btn.reddit:hover { box-shadow: 0 6px 0 #b33000; }
.nav a[aria-current="page"] { box-shadow: 0 3px 0 var(--edge-gold); }

/* hero */
.hero-band {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  border: 2px solid rgba(184, 122, 12, .25);
}
.hero-band::before, .hero-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  pointer-events: none;
}
.hero-band::before { width: 320px; height: 320px; right: -70px; top: -90px; }
.hero-band::after { width: 160px; height: 160px; right: 230px; bottom: -80px; background: rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) {
  .hero-band::before, .hero-band::after { background: rgba(255, 210, 100, .06); }
}
.hero-band > * { position: relative; z-index: 1; }
.hero-band .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: #8a5a00;
}
@media (prefers-color-scheme: dark) {
  .hero-band .eyebrow { background: rgba(255, 207, 92, .12); color: var(--gold-text); }
}
.hero-band p.lead { color: var(--ink); opacity: .78; }
.hero-logo {
  filter: drop-shadow(0 14px 18px rgba(120, 75, 0, .28));
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* playful cards */
a.service, .card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.service:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60, 45, 10, .12); }
.service .icon {
  background: linear-gradient(135deg, var(--gold), #f7d26a);
  color: #2b2416;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 var(--edge-gold);
  transition: transform .2s ease;
}
a.service:hover .icon { transform: rotate(6deg) scale(1.06); }

/* faucet */
.roll-card { border-top: 6px solid var(--gold); }
.faucet-head img { animation: bob 5s ease-in-out infinite; }
.roll-form .btn { font-size: 1.25rem; }
.roll-form .btn svg { width: 24px; height: 24px; }
.roll-form .btn:hover svg { animation: spin .6s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { align-self: flex-start; padding: 6px 14px; border-radius: 999px; }
.status.ready { background: var(--ok-soft); }
.status.wait { background: var(--warn-soft); }

.balance-card {
  background: var(--hero-grad);
  border: 2px solid rgba(184, 122, 12, .25);
  position: relative;
  overflow: hidden;
}
.balance-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.balance-card .label { color: #8a5a00; }
@media (prefers-color-scheme: dark) {
  .balance-card .label { color: var(--gold-text); }
  .balance-card::after { background: rgba(255, 210, 100, .06); }
}
.balance-card .balance-value { font-size: 2.6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .hero-band::after { display: none; }
}

/* ---------- bootstrap ---------- */
.page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 32px;
  border-top: 6px solid var(--gold);
}
.page-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #f7d26a);
  color: #2b2416;
  transform: rotate(-6deg);
  box-shadow: 0 3px 0 var(--edge-gold);
}
.page-icon svg { width: 32px; height: 32px; }
.page-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 10px; }
.page-head .lead { color: var(--muted); max-width: 60ch; margin-bottom: 22px; }
.page-head .file-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.doc-layout code, .page-head code { font-size: .9em; }
.doc-layout p code, .steps code {
  background: var(--gold-soft);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  position: relative;
  min-height: 34px;
  padding: 5px 0 0 48px;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-fun);
  font-weight: 600;
  color: var(--on-gold);
  background: var(--gold);
  box-shadow: 0 3px 0 var(--edge-gold);
}
.steps strong { color: var(--ink); }

.paths { display: grid; gap: 18px; }
.paths .addr { margin-bottom: 6px; }
.small { font-size: .9rem; }

@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { grid-template-columns: 1fr; padding: 22px 20px; gap: 14px; }
  .page-icon { width: 54px; height: 54px; }
  .page-head .btn { width: 100%; }
}

/* ---------- status ---------- */
.page-head .status { display: inline-flex; margin-top: 4px; }
.stats { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-hero { grid-row: span 2; justify-content: center; background: var(--hero-grad); border: 2px solid rgba(184, 122, 12, .25); }
.stat-hero .label { color: #8a5a00; }
.stat-value { font-family: var(--font-fun); font-weight: 600; font-size: 1.7rem; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-hero .stat-value { font-size: clamp(1.9rem, 3.2vw, 2.9rem); white-space: nowrap; overflow-wrap: normal; }
.stat-sub { font-size: .9rem; color: var(--muted); }
.stat-hero .stat-sub { color: var(--ink); opacity: .78; }
pre.peers { white-space: pre-wrap; margin: 12px 0; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.btn-copy + a { margin-left: 12px; }
@media (prefers-color-scheme: dark) {
  .stat-hero .label { color: var(--gold-text); }
}
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-hero { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- tipbot ---------- */
.commands { display: grid; gap: 14px; }
.command { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 4px 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.command:first-child { border-top: 0; padding-top: 0; }
.command code { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.command p { color: var(--muted); }
.example { display: block; font-size: 1.05rem; margin: 12px 0; }
.notes { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 8px; }
@media (max-width: 640px) {
  .stats { gap: 16px; }
  .nav { gap: 0; justify-content: center; }
  .nav a { padding: 6px 9px; font-size: .88rem; }
  .command { grid-template-columns: 1fr; }
}

/* ---------- home: four services in a 2x2 grid ---------- */
.services.services-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .services.services-4 { grid-template-columns: 1fr; }
}

/* ---------- faucet stats ---------- */
.payouts li { font-size: .92rem; }
.payouts code { color: var(--ink); }
code.hash { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }

/* ---------- 404 ---------- */
.notfound-logo { width: 64px; height: 64px; animation: bob 5s ease-in-out infinite; }

/* ---------- warmer dark mode: soft gold glow at the top of the page ---------- */
@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(ellipse 90% 520px at 50% -120px, rgba(242, 182, 50, .16), transparent 70%),
      radial-gradient(circle at 2px 2px, var(--dot) 2px, transparent 0);
    background-size: 100% 100%, 26px 26px;
    background-repeat: no-repeat, repeat;
  }
}

/* ---------- charts ---------- */
:root { --chart: #b87a0c; }
@media (prefers-color-scheme: dark) { :root { --chart: #c08a17; } }
.charts { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card { margin: 0; position: relative; }
.chart-card figcaption { margin-bottom: 12px; }
.chart-card figcaption .card-title { margin-bottom: 2px; }
.chart { position: relative; width: 100%; min-height: 210px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.chart .tick.strong { fill: var(--ink); font-weight: 700; }
.chart .mark { fill: var(--chart); transition: opacity .1s; }
.chart .mark.on { opacity: .75; }
.chart .target { stroke: var(--ink); stroke-width: 1; opacity: .55; }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--chart); opacity: .1; }
.chart .dot { fill: var(--chart); stroke: var(--card); stroke-width: 2; }
.chart .cross { stroke: var(--muted); stroke-width: 1; }
.chart-tip {
  position: absolute;
  transform: translateY(-100%);
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 2;
}
.chart-tip strong { font-weight: 800; }
.chart-table { margin-top: 10px; font-size: .9rem; }
.chart-table summary { cursor: pointer; color: var(--gold-text); font-weight: 700; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 4px 8px 4px 0; border-top: 1px solid var(--line); }
.chart-table th { color: var(--muted); font-weight: 700; }
@media (max-width: 860px) {
  .charts { grid-template-columns: 1fr; }
}
.chart .halo { paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }

/* ---------- home: live block line ---------- */
.live-strip {
  display: inline-block;
  max-width: 100%;
  margin-top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.live-strip[hidden] { display: none; }
.live-strip:hover { color: var(--ink); background: rgba(255, 255, 255, .8); }
.live-dot { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 138, 76, .5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, .45); } 100% { box-shadow: 0 0 0 9px rgba(31, 138, 76, 0); } }
@media (prefers-color-scheme: dark) {
  .live-strip { background: rgba(255, 207, 92, .12); }
  .live-strip:hover { background: rgba(255, 207, 92, .2); }
}
.page-head .status[hidden] { display: none; }
.page-head .hero-actions + .status { margin-top: 18px; }

/* ---------- bootstrap checksum ---------- */
.page-head .checksum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.checksum code.hash { white-space: normal; word-break: break-all; font-size: .85rem; color: var(--ink); }
.checksum .btn-copy + a { margin-left: 0; }

/* ---------- tipbot stats ---------- */
.stats[hidden] { display: none; }

/* ---------- status chart range ---------- */
.range-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: -8px; }
.range-tabs button {
  font: inherit; font-size: .9rem; font-weight: 700; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer;
}
.range-tabs button:hover { background: var(--gold-soft); }
.range-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: transparent; }
#verify .paths { margin-top: 14px; }
.cmds .addr { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .nav a { padding: 6px 6px; font-size: .84rem; }
}
@media (max-width: 380px) {
  .nav a { padding: 6px 4px; font-size: .8rem; }
}

/* ================= 2026-10-16: price, health, supply, mining, node, api ================= */

/* footer links */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; font-weight: 700; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* price card */
.price-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.price-usd { font-family: var(--font-fun); font-weight: 600; font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-btc { color: var(--muted); font-variant-numeric: tabular-nums; }
.price-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.price-facts strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.price-source { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.price-card[hidden] { display: none; }
.chg-up { color: var(--ok); font-weight: 800; }
.chg-down { color: var(--bad); font-weight: 800; }

/* network agreement card */
.health-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.health-list li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.health-list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); transform: translateY(-1px); }
.health-list li.ok::before { background: var(--ok); }
.health-list li.bad::before { background: var(--bad); }
.health-list li.bad { color: var(--bad); font-weight: 700; }

/* big-number grids (supply, mining) */
.figures { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figures .stat-hero { grid-row: auto; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures .stat-hero { grid-column: 1 / -1; } }
@media (max-width: 480px) { .figures { grid-template-columns: 1fr; } }

/* progress bar */
.meter { height: 14px; border-radius: 999px; background: var(--gold-soft); overflow: hidden; margin: 12px 0 8px; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }

/* data tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.data thead th { border-top: 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
table.data td.num, table.data th.num { text-align: right; padding-right: 0; padding-left: 12px; }
table.data tr.current td { font-weight: 800; color: var(--ink); background: var(--gold-soft); }
table.data tr.future td { color: var(--muted); }
.share-bar { display: inline-block; vertical-align: middle; height: 8px; border-radius: 999px; background: var(--chart); margin-right: 8px; min-width: 2px; }

/* calculator */
.calc { display: grid; gap: 14px; }
.calc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.calc input, .calc select {
  font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); min-width: 0;
}
.calc input { flex: 1 1 140px; font-variant-numeric: tabular-nums; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.calc-out { list-style: none; margin: 0; padding: 0; }
.calc-out li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.calc-out li:first-child { border-top: 0; }
.calc-out strong { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

/* callouts */
.callout { border-radius: 12px; padding: 14px 16px; background: var(--warn-soft); color: var(--ink); }
.callout strong { color: var(--warn); }

/* code blocks */
pre.code {
  margin: 10px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6;
  white-space: pre; overflow-x: auto;
}

/* API reference */
.endpoints { display: grid; gap: 18px; }
.endpoint { padding-top: 18px; border-top: 1px solid var(--line); }
.endpoint:first-child { padding-top: 0; border-top: 0; }
.endpoint-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.endpoint-head code { font-weight: 800; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); }
.endpoint p { color: var(--muted); }
.fields { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .92rem; color: var(--muted); }
.fields code { color: var(--ink); font-weight: 700; }
