/* Lesson pages under /learn/. Plain reading layout, same colors as the rest
   of the site. Built by tools/learn/build.mjs. */
:root {
  --ink: #0a0a0a;
  --panel: #111111;
  --border: #262626;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --accent: #00b8ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); overflow-x: clip; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap, .wide { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 76rem; }
@media (min-width: 640px) { .wrap, .wide { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 12px; }
.skip:focus { left: 12px; z-index: 60; background: var(--accent); color: var(--ink); padding: 8px 16px; border-radius: 8px; font-weight: 600; }

header.site { border-bottom: 1px solid var(--border); background: rgba(10, 10, 10, 0.95); position: sticky; top: 0; z-index: 40; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; white-space: nowrap; }
.brand img { border-radius: 6px; box-shadow: 0 0 18px rgba(0, 184, 255, 0.18); }
.brand em { font-style: normal; color: var(--accent); }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
header.site nav a:hover { color: #fff; }

main { padding: 0 0 56px; }
.hub { padding-top: 32px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.kicker { margin: 0 0 8px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
h1 { font-size: 2.25rem; line-height: 1.15; margin: 0 0 12px; color: #fff; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 640px) { h1 { font-size: 2.75rem; } }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 28px; }
.short { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 0 0 36px; }
.short strong { color: #fff; }
h2 { font-size: 1.5rem; line-height: 1.3; margin: 44px 0 12px; color: #fff; font-weight: 700; scroll-margin-top: 80px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; color: #fff; font-weight: 600; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 20px; padding-left: 1.4em; }
li { margin: 0 0 10px; }
li::marker { color: var(--accent); }
strong { color: #fff; font-weight: 600; }

.pager { display: grid; gap: 12px; margin-top: 48px; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager .next { grid-column: 2; text-align: right; } }
.pager a, .pager div { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; color: #fff; text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager span { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pager .soon { color: var(--muted); }

.hub .lead { font-size: 1.15rem; color: var(--text); margin-bottom: 32px; }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lessons li { margin: 0; }
.lessons a, .lessons div { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; text-decoration: none; background: var(--panel); }
.lessons a:hover { border-color: var(--accent); }
.lessons .num { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.lessons .name { display: block; color: #fff; font-weight: 700; font-size: 1.15rem; margin: 2px 0; }
.lessons .blurb { display: block; color: var(--muted); font-size: 0.95rem; }
.lessons .soon div { background: transparent; }
.lessons .soon .num, .lessons .soon .name { color: var(--muted); }

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 0.85rem; }
footer.site p { margin: 0 0 8px; }
footer.site .links a { color: var(--muted); margin-right: 16px; display: inline-block; }
footer.site .links a:hover { color: #fff; }

/* Figures and hands-on widgets */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.widget { margin: 28px 0 32px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 12px; line-height: 1.5; }
.widget svg { width: 100%; height: auto; display: block; }
.widget .lbl { fill: #fff; font: 600 15px Inter, system-ui, sans-serif; }
.widget .note { fill: var(--muted); font: 13px Inter, system-ui, sans-serif; }
.widget .btc { fill: #f7931a; }
.widget .xrpl rect { fill: var(--accent); }
.widget-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: #fff; }
.widget p { font-size: 0.95rem; }
.chain { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.chain .page { position: relative; margin: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--ink); display: grid; gap: 2px; font-size: 0.92rem; transition: border-color 0.2s ease; }
.chain .page + .page::before { content: ""; position: absolute; left: 22px; top: -11px; width: 2px; height: 10px; background: var(--accent); }
.chain .page-num { color: #fff; font-weight: 700; text-decoration: none; }
a.page-num:hover { color: var(--accent); }
.chain .newest { border-color: var(--accent); }
.chain .tx { color: var(--text); }
.chain .fp { color: var(--muted); font-size: 0.85rem; }
.chain code { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--accent); font-size: 0.85rem; }
.chain .prev code { color: #7dd3fc; }
.live-status { color: var(--muted); font-size: 0.85rem; margin: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.tamper input { width: 6.5em; background: var(--panel); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 2px 6px; font: inherit; }
.tamper .check { color: #22c55e; font-size: 0.85rem; font-weight: 600; }
.tamper .broken { border-color: #ef4444; }
.tamper .broken .check { color: #ef4444; }
.tamper .reset { margin-top: 12px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.tamper .reset:hover { background: var(--accent); color: var(--ink); }
.tamper .reset[hidden] { display: none; }
.who { white-space: nowrap; font-weight: 600; color: #fff; }
.who i { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; margin-right: 5px; font-style: normal; font-size: 0.72em; font-weight: 700; color: var(--ink); vertical-align: 0.1em; }
.who-a i { background: #00b8ff; }
.who-b i { background: #a78bfa; }
.who-c i { background: #34d399; }
.who-d i { background: #fbbf24; }
.tamper .page + .page.broken::before { background: repeating-linear-gradient(to bottom, #ef4444 0 3px, transparent 3px 6px); }
.tamper .broken { animation: shake 0.4s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .tamper .broken { animation: none; } }

/* ---- hero ------------------------------------------------------------------ */
.hero { border-bottom: 1px solid var(--border); background:
  radial-gradient(60rem 30rem at 85% -10%, rgba(0, 184, 255, 0.16), transparent 60%),
  radial-gradient(40rem 24rem at 0% 120%, rgba(0, 184, 255, 0.08), transparent 60%); padding: 28px 0 36px; margin-bottom: 8px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero .short { margin-bottom: 0; }
.hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
@media (min-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
  h1 { font-size: 3.25rem; }
}
.hero-chain { margin: 0; }
.hero-chain svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-chain .card { fill: #121212; stroke: #2e2e2e; stroke-width: 1.5; }
.hero-chain .hd { fill: var(--muted); font: 700 11px Inter, system-ui, sans-serif; letter-spacing: 0.14em; }
.hero-chain .ln { fill: #2a2a2a; }
.hero-chain .fp { fill: var(--accent); font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.hero-chain .lk { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 4 4; opacity: 0.8; }
.hero-chain .halo { fill: none; stroke: var(--accent); stroke-width: 2; filter: url(#glow); opacity: 0; animation: lit 5s ease-in-out infinite; }
.hero-chain .pg:nth-of-type(2) .halo { animation-delay: 1s; }
.hero-chain .pg:nth-of-type(3) .halo { animation-delay: 2s; }
.hero-chain .pg:nth-of-type(4) .halo { animation-delay: 3s; }
.hero-chain .lk { animation: flow 1s linear infinite; }
@keyframes lit { 0% { opacity: 0; } 6% { opacity: 1; } 24% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -8; } }
.hero-chain figcaption { text-align: center; font-size: 1rem; color: var(--text); margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .hero-chain .halo, .hero-chain .lk { animation: none; } .hero-chain .new .halo { opacity: 1; } }

/* ---- body and contents sidebar ---------------------------------------------- */
.body-grid { display: block; }
.lesson { max-width: 44rem; margin: 0 auto; }
.toc { display: none; }
@media (min-width: 1100px) {
  .body-grid { display: grid; grid-template-columns: minmax(0, 44rem) 15rem; gap: 64px; justify-content: center; }
  .lesson { margin: 0; }
  .toc { display: block; position: sticky; top: 88px; align-self: start; margin-top: 44px; border-left: 1px solid var(--border); padding-left: 20px; }
  .toc p { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
  .toc ol { list-style: none; padding: 0; margin: 0; }
  .toc li { margin: 0 0 8px; }
  .toc a { color: var(--muted); text-decoration: none; font-size: 0.88rem; line-height: 1.4; display: block; }
  .toc a:hover, .toc a.here { color: #fff; }
}

/* ---- common questions ---------------------------------------------------------- */
.faq { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; transition: border-color 0.2s ease, background 0.2s ease; }
.faq:hover { border-color: #3a3a3a; }
.faq[open] { border-color: rgba(0, 184, 255, 0.55); background: linear-gradient(180deg, rgba(0, 184, 255, 0.06), var(--panel) 60%); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.02rem; }
.faq .plus { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq p { margin: 0; padding: 0 18px 18px; color: var(--text); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

/* ---- the ten-minute race ------------------------------------------------------- */
.race .widget-head { justify-content: space-between; }
.race .clock { font: 600 1.1rem "JetBrains Mono", ui-monospace, monospace; color: var(--accent); }
.race rect { transition: opacity 0.25s ease, transform 0.25s ease; transform-box: fill-box; transform-origin: center; }
.race rect.off { opacity: 0; transform: scale(0.4); }
.race .mine { fill: none; stroke: #f7931a; stroke-width: 1.5; stroke-dasharray: 3 3; animation: flow 0.6s linear infinite, dig 0.5s ease-in-out infinite alternate; }
.race .guess { fill: #f7931a; opacity: 0.75; font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
@keyframes dig { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .race .mine { animation: none; } }
.race .replay, .vote .replay, .live .replay { margin-top: 12px; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; }
.race .replay:hover:not(:disabled), .vote .replay:hover:not(:disabled), .live .replay:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.race .replay:disabled, .vote .replay:disabled { opacity: 0.4; cursor: default; }

/* ---- validators voting a page in --------------------------------------------- */
.vote svg { max-width: 22rem; margin: 10px auto 0; }
.vote circle { fill: #2a2a2a; stroke: #3a3a3a; stroke-width: 1; transition: fill 0.2s ease; }
.vote circle.yes { fill: #22c55e; stroke: #22c55e; }
.vote circle.bad { fill: #ef4444; stroke: #ef4444; }
.vote-slider { display: block; font-size: 0.95rem; margin-top: 4px; }
.vote input[type="range"] { width: 100%; accent-color: var(--accent); margin: 6px 0 0; }
.vote-meter { position: relative; height: 10px; background: #222; border-radius: 5px; margin: 14px 0 10px; }
.vote-meter span { display: block; height: 100%; width: 0; background: #22c55e; border-radius: 5px; transition: width 0.1s linear; }
.vote-meter.red span { background: #ef4444; }
.vote-meter i { position: absolute; left: 80%; top: -4px; bottom: -4px; width: 2px; background: #fff; }
.vote-status { font-weight: 600; min-height: 3em; margin: 0; }
.vote-status.ok { color: #22c55e; }
.vote-status.stuck { color: #fbbf24; }
.vote-status.bad { color: #ef4444; }

/* ---- hero: validators around the next page ---------------------------------- */
.hero-vote .v { fill: #2a2a2a; stroke: #3a3a3a; stroke-width: 1; animation: agree 6s ease-out infinite; }
.hero-vote .off-v { fill: none; stroke: #4a4a4a; stroke-width: 1.5; stroke-dasharray: 2 3; }
.hero-vote .halo { animation: locked 6s ease-out infinite; }
.hero-vote .lock { opacity: 0; animation: locked 6s ease-out infinite; font-weight: 700; }
@keyframes agree { 0% { fill: #2a2a2a; stroke: #3a3a3a; } 4% { fill: #22c55e; stroke: #22c55e; } 70% { fill: #22c55e; stroke: #22c55e; } 80% { fill: #2a2a2a; stroke: #3a3a3a; } 100% { fill: #2a2a2a; stroke: #3a3a3a; } }
@keyframes locked { 0%, 26% { opacity: 0; } 30% { opacity: 1; } 74% { opacity: 1; } 82%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-vote .halo { animation: none; } .hero-vote .v { animation: none; fill: #22c55e; stroke: #22c55e; } .hero-vote .lock { animation: none; opacity: 1; } }

/* ---- double spend picture -------------------------------------------------- */
.dspend svg { max-width: 40rem; margin: 0 auto; }
.ds-a { fill: #00b8ff; } .ds-b { fill: #a78bfa; } .ds-c { fill: #34d399; }
.ds-ini { fill: var(--ink); font: 700 18px Inter, system-ui, sans-serif; text-anchor: middle; }
.ds-name { fill: #fff; font: 600 15px Inter, system-ui, sans-serif; text-anchor: middle; }
.ds-note, .ds-amt { fill: var(--muted); font: 13px Inter, system-ui, sans-serif; text-anchor: middle; }
.ds-path { fill: none; stroke: #00b8ff; stroke-width: 2.5; stroke-dasharray: 200; stroke-dashoffset: 200; animation: ds-draw 7s ease-out infinite; }
.ds-p2 { animation-delay: 0.15s; }
.ds-head { fill: #00b8ff; }
.ds-card { fill: var(--ink); stroke: var(--border); stroke-width: 1.5; }
.ds-hd { fill: var(--muted); font: 700 10px Inter, system-ui, sans-serif; letter-spacing: 0.14em; }
.ds-line { fill: #fff; font: 500 15px Inter, system-ui, sans-serif; }
.ds-copy { opacity: 0; animation: ds-in 7s ease-out infinite; }
.ds-c1 { animation-delay: 0.8s; } .ds-c2 { animation-delay: 1.1s; }
.ds-x { opacity: 0; animation: ds-in 7s ease-out infinite; animation-delay: 1.8s; }
.ds-bad { fill: #ef4444; }
.ds-neq { fill: #fff; font: 700 20px Inter, system-ui, sans-serif; text-anchor: middle; }
.ds-warn { fill: #ef4444; font: 700 14px Inter, system-ui, sans-serif; }
@keyframes ds-draw { 0% { stroke-dashoffset: 200; } 12% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ds-in { 0% { opacity: 0; } 8% { opacity: 1; } 75% { opacity: 1; } 85%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ds-path, .ds-copy, .ds-x { animation: none; opacity: 1; stroke-dashoffset: 0; } }

/* ---- validator rounds -------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { margin: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--ink); padding: 14px; display: grid; gap: 6px; align-content: start; font-size: 0.9rem; animation: step-on 8s ease-in-out infinite; }
.steps li:nth-child(2) { animation-delay: 2s; } .steps li:nth-child(3) { animation-delay: 4s; } .steps li:nth-child(4) { animation-delay: 6s; }
.steps b { color: #fff; font-size: 1rem; }
.steps span:last-child { color: var(--muted); }
.steps .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: rgba(0, 184, 255, 0.12); }
.steps .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes step-on { 0% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(0, 184, 255, 0.25); } 22% { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(0, 184, 255, 0.25); } 28%, 100% { border-color: var(--border); box-shadow: none; } }
.agree { margin-top: 16px; }
.agree-top, .agree-scale { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.agree-end { color: #22c55e; font-weight: 600; }
.agree-bar { position: relative; height: 12px; border-radius: 6px; background: #222; margin: 6px 0; overflow: hidden; }
.agree-bar span { display: block; height: 100%; width: 50%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #22c55e); animation: agree-rise 8s ease-in-out infinite; }
@keyframes agree-rise { 0%, 25% { width: 50%; } 75% { width: 80%; } 95% { width: 80%; } 100% { width: 50%; } }
@media (prefers-reduced-motion: reduce) { .steps li, .agree-bar span { animation: none; } .agree-bar span { width: 80%; } }

/* ---- hero: XRP and its four jobs -------------------------------------------- */
.hero-xrp .coin-ring { fill: #0f1a20; stroke: var(--accent); stroke-width: 3; }
.hero-xrp .coin-halo { fill: none; stroke: var(--accent); stroke-width: 2; filter: url(#glow); animation: coin-glow 4s ease-in-out infinite; }
.hero-xrp .coin-t { fill: #fff; font: 800 34px Inter, system-ui, sans-serif; text-anchor: middle; letter-spacing: 0.02em; }
.hero-xrp .jt { fill: #fff; font: 600 15px Inter, system-ui, sans-serif; text-anchor: middle; }
.hero-xrp .jhalo { fill: none; stroke: var(--accent); stroke-width: 2; filter: url(#glow); opacity: 0; animation: lit 8s ease-in-out infinite; }
.hero-xrp .j2 .jhalo { animation-delay: 2s; } .hero-xrp .j3 .jhalo { animation-delay: 4s; } .hero-xrp .j4 .jhalo { animation-delay: 6s; }
@keyframes coin-glow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-xrp .coin-halo, .hero-xrp .jhalo { animation: none; } .hero-xrp .coin-halo { opacity: 1; } }

/* ---- fee burn picture --------------------------------------------------------- */
.burn svg { max-width: 40rem; margin: 0 auto; }
.fb-card { fill: var(--ink); stroke: var(--border); stroke-width: 1.5; }
.fb-ok { stroke: #22c55e; }
.fb-hd { fill: var(--muted); font: 700 10px Inter, system-ui, sans-serif; letter-spacing: 0.14em; }
.fb-line { fill: #fff; font: 600 16px Inter, system-ui, sans-serif; }
.fb-fee { fill: #fb923c; font: 500 14px "JetBrains Mono", ui-monospace, monospace; }
.fb-small, .fb-note { fill: var(--muted); font: 13px Inter, system-ui, sans-serif; }
.fb-note { text-anchor: middle; }
.fb-gone { fill: #fb923c; font: 700 16px Inter, system-ui, sans-serif; }
.fb-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 140; stroke-dashoffset: 140; animation: fb-pay 6s ease-out infinite; }
.fb-head { fill: var(--accent); }
.fb-bob { opacity: 0; animation: fb-show 6s ease-out infinite; animation-delay: 0.6s; }
.fb-drop { fill: #fb923c; animation: fb-fall 6s ease-in infinite; }
.fb-flame { fill: #f97316; transform-box: fill-box; transform-origin: 50% 100%; animation: fb-flick 0.5s ease-in-out infinite alternate; }
.fb-core { fill: #fde68a; }
@keyframes fb-pay { 0% { stroke-dashoffset: 140; } 12% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes fb-show { 0% { opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fb-fall { 0%, 20% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(40px); opacity: 1; } 52%, 100% { transform: translateY(46px); opacity: 0; } }
@keyframes fb-flick { from { transform: scale(0.92, 0.95); } to { transform: scale(1.05, 1.08); } }
@media (prefers-reduced-motion: reduce) { .fb-path, .fb-bob, .fb-drop, .fb-flame { animation: none; } .fb-path { stroke-dashoffset: 0; } .fb-bob { opacity: 1; } .fb-drop { opacity: 0; } }

/* ---- reserve try-it ------------------------------------------------------------ */
.rs-list { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.rs-list li { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--ink); padding: 10px 12px; font-size: 0.95rem; }
.rs-ctl { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.rs-ctl output { min-width: 1.4em; text-align: center; color: #fff; font-weight: 700; }
.rs-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 600 1.1rem Inter, system-ui, sans-serif; cursor: pointer; line-height: 1; }
.rs-btn:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.rs-btn:disabled { opacity: 0.35; cursor: default; }
.rs-bar { display: flex; height: 14px; border-radius: 7px; background: #222; overflow: hidden; }
.rs-base { width: 14%; background: var(--accent); }
.rs-extra { width: 0; background: #22c55e; transition: width 0.25s ease; }
.rs-total { margin: 10px 0 0; font-weight: 600; color: #fff; }

/* ---- bridge picture ------------------------------------------------------------- */
.bridge svg { max-width: 40rem; margin: 0 auto; }
.br-cur { fill: var(--ink); stroke: #a78bfa; stroke-width: 2; }
.br-xrp { fill: var(--accent); }
.br-big { fill: #fff; font: 800 18px Inter, system-ui, sans-serif; text-anchor: middle; }
.br-ink { fill: var(--ink); }
.br-small { fill: var(--muted); font: 13px Inter, system-ui, sans-serif; text-anchor: middle; }
.br-head { fill: var(--accent); }
.br-thin { fill: none; stroke: #4a4a4a; stroke-width: 2; stroke-dasharray: 3 6; }
.br-path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 200; stroke-dashoffset: 200; animation: br-go 6s ease-out infinite; }
.br-p2 { animation-delay: 0.9s; }
.br-mid { animation: br-pop 6s ease-out infinite; transform-box: fill-box; transform-origin: center; animation-delay: 0.6s; }
@keyframes br-go { 0% { stroke-dashoffset: 200; } 14% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes br-pop { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.12); } 16% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .br-path, .br-mid { animation: none; } .br-path { stroke-dashoffset: 0; } }

/* ---- owed by no one ------------------------------------------------------------- */
.ow-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .ow-grid { grid-template-columns: 1fr 1fr; } }
.ow-card { border: 1px solid var(--border); border-radius: 10px; background: var(--ink); padding: 14px; display: grid; gap: 4px; font-size: 0.92rem; color: var(--muted); }
.ow-card b { color: #fff; font-size: 1.05rem; }
.ow-tag { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a78bfa; font-weight: 600; }
.ow-xrp { border-color: var(--accent); }
.ow-xrp .ow-tag { color: var(--accent); }

/* ---- live supply ------------------------------------------------------------------- */
.sp-grid { display: grid; gap: 10px; margin: 12px 0 0; }
@media (min-width: 560px) { .sp-grid { grid-template-columns: 1fr 1fr; } .sp-wide { grid-column: 1 / -1; } }
.sp-grid div { border: 1px solid var(--border); border-radius: 10px; background: var(--ink); padding: 12px 14px; }
.sp-grid dt { color: var(--muted); font-size: 0.82rem; }
.sp-grid dd { margin: 2px 0 0; color: #fff; font: 700 1.15rem "JetBrains Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.sp-wide dd { color: #fb923c; }
