/* Mura public site. Palette from the 村 logo (#6c40bd). Light and dark. */
:root {
  --bg: #faf8fe;
  --bg-alt: #f3effb;
  --surface: #ffffff;
  --ink: #1c1630;
  --ink-2: #4a4360;
  --muted: #6b6480;
  --line: #e5dff1;
  --accent: #6c40bd;
  --accent-ink: #5a31a8;
  --accent-soft: #efe8fb;
  --node-hi: #b89cf0;
  --chain: #ddd5ee;
  --on-accent: #ffffff;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --danger: #c2413a;
  --shadow: 0 1px 2px rgb(28 22 48 / 6%), 0 8px 24px rgb(28 22 48 / 6%);
  --radius: 14px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121019;
    --bg-alt: #17141f;
    --surface: #1c1827;
    --ink: #eeeaf7;
    --ink-2: #cbc4dc;
    --muted: #a39cb8;
    --line: #2e2940;
    --accent: #a584ea;
    --accent-ink: #c1a8f5;
    --accent-soft: #2a2242;
    --node-hi: #d7c6fb;
    --chain: #332c47;
    --on-accent: #16111f;
    --ok: #4cc38a;
    --warn: #e0a84a;
    --danger: #f07a72;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
:lang(en) body, body:lang(en) { line-height: 1.65; letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand img { border-radius: 50%; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.8rem; color: var(--muted); display: none; }
@media (min-width: 420px) { .brand-sub { display: inline; } }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--accent-soft); color: var(--accent-ink); }
@media (min-width: 960px) { .nav { display: flex; } }
.lang-switch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent-ink); }
.lang-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (min-width: 960px) { .lang-switch { margin-left: 8px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; margin-top: 12px; }

/* hero */
.hero { padding: 48px 0 56px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(600px 300px at 0% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.eyebrow { color: var(--accent-ink); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 12px; }
h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 7.5vw, 3.8rem); line-height: 1.2; letter-spacing: 0.01em; }
.lead { margin-top: 20px; color: var(--ink-2); font-size: 1.05rem; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-2); max-width: 36em; }
.notice strong { color: var(--ink); display: block; }
.notice svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.asof { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.asof-inline { margin: 8px 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot[data-state="live"] { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.4s infinite; }
.dot[data-state="polling"] { background: var(--ok); }
.dot[data-state="failed"] { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section:nth-of-type(odd) { background: var(--bg-alt); }
h2 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
.section-lead { margin-top: 14px; color: var(--ink-2); max-width: 44em; }
h3 { font-size: 1.08rem; font-weight: 700; }

.grid-4 { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--accent-soft); fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 0.94rem; }

/* pool table */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.pool-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pool-table th, .pool-table td { padding: 14px 12px; text-align: left; vertical-align: middle; }
.pool-table thead th { font-size: 0.78rem; font-weight: 500; color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pool-table tbody tr + tr { border-top: 1px solid var(--line); }
.pool-table .num { text-align: right; white-space: nowrap; }
.pool-table td .unit { font-size: 0.78em; color: var(--muted); margin-left: 2px; }
.pool-cell { font-weight: 400; min-width: 250px; padding-left: 20px !important; }
.pool-table tr > :last-child { padding-right: 20px; }
.pool-head { display: flex; align-items: center; gap: 8px; }
.ticker { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.badge { font-size: 0.7rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pool-sub { font-size: 0.8rem; color: var(--muted); }
.pool-id { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pool-id code { white-space: nowrap; font-size: 0.78rem; color: var(--ink-2); background: var(--bg-alt); padding: 2px 8px; border-radius: 6px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.copy { font: inherit; font-size: 0.76rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 4px 12px; min-height: 30px; cursor: pointer; white-space: nowrap; }
.copy:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.copy[data-done] { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.sat { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.sat-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.sat-bar span { display: block; height: 100%; border-radius: 999px; }
.lvl-ok { background: var(--accent); }
.lvl-mid { background: var(--warn); }
.lvl-high { background: var(--danger); }
.sat .num { min-width: 3.4em; text-align: right; }

@media (max-width: 1039px) {
  .table-wrap { background: transparent; border: 0; box-shadow: none; }
  .pool-table thead { display: none; }
  .pool-table, .pool-table tbody, .pool-table tr, .pool-table th, .pool-table td { display: block; width: 100%; }
  .pool-table tbody { display: grid; gap: 12px; }
  @media (min-width: 640px) { .pool-table tbody { grid-template-columns: 1fr 1fr; } }
  .pool-table tbody tr { background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 6px 0; box-shadow: var(--shadow); }
  .pool-table th, .pool-table td { padding: 8px 18px; }
  .pool-cell { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px !important; margin-bottom: 4px; }
  .pool-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .pool-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.82rem; text-align: left; white-space: normal; }
  .pool-table td .v { text-align: right; }
  .pool-table td .sat { flex: 0 1 60%; }
}

.notes { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 900px) { .notes { grid-template-columns: 1fr 1fr; } }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.note p { margin-top: 8px; color: var(--ink-2); font-size: 0.93rem; }
.note p.muted { color: var(--muted); font-size: 0.85rem; }
.mapping { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mapping li { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; background: var(--bg-alt); border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }
.mapping .old { color: var(--muted); }
.mapping .arrow { color: var(--muted); }
.mapping .new { font-weight: 700; color: var(--accent-ink); }

/* delegate */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 900; font-family: var(--font-display); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: 0.93rem; }
.delegate-extra { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .delegate-extra { grid-template-columns: 1fr 1fr; } }
.timing, .wallets { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.timing dl { margin: 12px 0 0; display: grid; gap: 10px; }
.timing dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; flex-wrap: wrap; }
.timing dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.timing dt { color: var(--muted); font-size: 0.9rem; }
.timing dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.wallets ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.wallets a { display: block; text-decoration: none; color: var(--ink); padding: 10px 14px; border-radius: 10px; background: var(--bg-alt); }
.wallets a:hover { background: var(--accent-soft); }
.wallets a span { display: block; font-size: 0.84rem; color: var(--muted); }

/* large holders */
.large-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
@media (min-width: 1000px) { .large-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.points p { margin-top: 4px; color: var(--ink-2); font-size: 0.94rem; }
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .planner { padding: 30px; } }
.planner > p { margin-top: 6px; font-size: 0.9rem; }
.plan-label { display: block; font-weight: 700; margin-top: 18px; font-size: 0.92rem; }
.plan-input { display: flex; align-items: center; gap: 10px; margin-top: 8px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--bg); }
.plan-input:focus-within { border-color: var(--accent); }
.plan-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.4rem; font-weight: 700; padding: 12px 0; font-variant-numeric: tabular-nums; outline: none; }
.plan-input span { color: var(--muted); font-weight: 700; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick button { font: inherit; font-size: 0.86rem; font-weight: 500; color: var(--ink-2); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; }
.quick button:hover, .quick button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.plan-result { margin: 20px 0 14px; overflow-x: auto; }
.plan-result table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.plan-result th, .plan-result td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-result th:first-child, .plan-result td:first-child { text-align: left; }
.plan-result thead th { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.plan-result tfoot td { font-weight: 700; border-bottom: 0; }
.plan-result .summary { font-weight: 700; margin-bottom: 10px; color: var(--accent-ink); }
.plan-result .warn { margin-top: 10px; color: var(--warn); font-size: 0.9rem; }
@media (max-width: 480px) { .plan-result th:nth-child(3), .plan-result td:nth-child(3) { display: none; } }

/* team */
.grid-2 { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.person { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.avatar { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent-soft); }
.person .role { color: var(--accent-ink); font-size: 0.88rem; font-weight: 500; }
.person p:not(.role) { margin-top: 8px; color: var(--ink-2); font-size: 0.94rem; }
.x-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; }
.x-link:hover { border-color: var(--ink); }
.x-icon { width: 15px; height: 15px; fill: currentColor; }

/* faq */
.faq-list { margin-top: 28px; display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 700; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--ink-2); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; background: var(--bg); }
.footer-inner { display: grid; gap: 18px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 180px 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.footer-brand img { border-radius: 50%; }
.footer-text { display: grid; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.footer-text a { color: var(--ink-2); }

/* ============ motion and graphics ============ */

/* hero background: two drifting glows over a faint dot grid */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: color-mix(in srgb, var(--accent) 30%, transparent); animation: drift-a 18s ease-in-out infinite alternate; }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: color-mix(in srgb, var(--node-hi) 35%, transparent); animation: drift-b 22s ease-in-out infinite alternate; }
.hero > .wrap { position: relative; }
.hero > .wrap::before { content: ""; position: absolute; inset: -80px -40px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 1.4px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%); }
@keyframes drift-a { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes drift-b { to { transform: translate(90px, -40px) scale(.92); } }

/* constellation */
.hero-visual { position: relative; max-width: 520px; width: 100%; margin: 0 auto 36px; }
.sky-wrap { aspect-ratio: 1; }
.sky { width: 100%; height: 100%; overflow: visible; display: block; }
.sky * { transform-box: view-box; }
.sky .orbit { fill: none; stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 1.2; stroke-dasharray: 2 7; transform-origin: 220px 220px; }
.sky .orbit-1 { animation: spin 90s linear infinite; }
.sky .orbit-2 { stroke-dasharray: 1 11; opacity: .7; animation: spin 140s linear infinite reverse; }
.sky .orbit-3 { stroke-dasharray: 3 9; opacity: .6; animation: spin 70s linear infinite; }
.sky .comets { transform-origin: 220px 220px; animation: spin 26s linear infinite; }
.sky .comet { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.sky .comet-2 { fill: var(--node-hi); }
.sky .spoke { stroke: color-mix(in srgb, var(--accent) 40%, transparent); stroke-width: 1.4; stroke-dasharray: 3 9; stroke-linecap: round; animation: flow 2.4s linear infinite; animation-delay: calc(var(--i) * -.35s); }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes spin { to { transform: rotate(360deg); } }
.sky .node .body { fill: url(#node-fill); stroke: var(--surface); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes breathe { 50% { transform: scale(1.07); } }
.sky .sat-track { fill: none; stroke: color-mix(in srgb, var(--accent) 12%, transparent); stroke-width: 3; }
.sky .sat-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1.2s ease; }
.sky .tk { font: 700 12px var(--font); fill: var(--ink-2); text-anchor: middle; letter-spacing: .03em; }
.sky .ripple { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sky .node.mint .ripple { animation: ripple 1.8s ease-out 2; }
.sky .node.mint .ripple-2 { animation-delay: .5s; }
.sky .node.mint .body { animation: mint-pop .6s ease-out; }
.sky .node.mint .tk { fill: var(--accent-ink); }
@keyframes ripple { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
@keyframes mint-pop { 40% { transform: scale(1.25); } }
.sky .core-disc { fill: #fff; stroke: color-mix(in srgb, var(--accent) 25%, transparent); stroke-width: 2; filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent)); }
.sky .core-pulse { fill: color-mix(in srgb, var(--accent) 25%, transparent); transform-box: fill-box; transform-origin: center; animation: core 3.2s ease-out infinite; }
@keyframes core { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
.sky .packet { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; max-width: 70%; }
.float-chip small { display: block; font-size: .72rem; color: var(--muted); }
.float-chip strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.float-chip svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.chip-a { left: -4%; top: 2%; animation: bob 6s ease-in-out infinite; }
.chip-b { right: -2%; bottom: -7%; animation: bob 7s ease-in-out -3s infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) { .chip-a { left: 0; top: -2%; } .chip-b { right: 0; bottom: -9%; } .float-chip { font-size: .8rem; padding: 8px 10px; } }

/* live band */
.live-band { padding: 56px 0 64px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.live-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: 8px; vertical-align: -1px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi dt { font-size: .8rem; color: var(--muted); }
.kpi dd { margin: 4px 0 0; font-size: clamp(1.2rem, 3.4vw, 1.6rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi:first-child dd { color: var(--accent-ink); }
.kpi dd small { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.live-grid { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .live-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr); } }
.live-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.live-card h3 { font-size: .9rem; color: var(--ink-2); font-weight: 700; }
.ring-wrap { position: relative; width: 150px; height: 150px; margin: 6px auto 4px; }
.ring { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: var(--accent-soft); stroke-width: 11; }
.ring-fg { fill: none; stroke: url(#ring-grad); stroke-width: 11; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.ring-tip { fill: var(--surface); stroke: var(--accent); stroke-width: 3; transform-origin: 64px 64px; transform-box: view-box; transition: transform 1s linear; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.ring-label strong { font-family: var(--font-display); font-size: 2rem; font-weight: 900; }
.ring-label span { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ring-foot { text-align: center; }
.epoch-card .small { text-align: center; }
.height { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: .01em; color: var(--ink); line-height: 1.2; }
.chain { display: flex; gap: 5px; height: 30px; align-items: center; overflow: hidden; margin: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 18%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); justify-content: flex-end; }
.chain b { flex: 0 0 22px; height: 22px; border-radius: 5px; background: var(--chain); }
.chain b.ours { background: linear-gradient(135deg, var(--node-hi), var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }
.chain b.new { animation: slot-in .6s cubic-bezier(.2,.9,.3,1.3); }
@keyframes slot-in { from { transform: translateY(-18px) scale(.4); opacity: 0; } }
.feed { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: var(--bg-alt); font-size: .9rem; font-variant-numeric: tabular-nums; }
.feed li.new { animation: feed-in .7s ease-out, glow 2.4s ease-out; }
@keyframes feed-in { from { transform: translateX(-14px); opacity: 0; } }
@keyframes glow { 0% { background: color-mix(in srgb, var(--accent) 22%, var(--bg-alt)); } }
.feed .chip { font-weight: 700; font-size: .78rem; color: var(--on-accent); background: var(--accent); border-radius: 6px; padding: 1px 8px; }
.feed .feed-h { color: var(--ink-2); }
.feed time { margin-left: auto; color: var(--muted); font-size: .82rem; }
.feed .feed-empty { color: var(--muted); background: none; }
.feed li:nth-child(n+6) { display: none; }

/* values that just changed */
.bump { animation: bump .9s ease-out; }
@keyframes bump { 0% { color: var(--accent-ink); transform: translateY(-2px); } }
.pool-table tr.flash { animation: row-flash 2.4s ease-out; }
@keyframes row-flash { 0% { background: color-mix(in srgb, var(--accent) 16%, transparent); } }
.sat-bar span { transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* reveal on scroll (only when scripts run; content shows anyway after 2.5 s if they never do) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal:not(.in) { opacity: 0; transform: translateY(18px); animation: reveal-fallback 0s 2.5s forwards; }
  .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
}
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

/* feature icons and steps */
.feature svg { transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s; }
.feature:hover svg { transform: translateY(-3px) rotate(-6deg); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.feature, .steps li, .person, .kpi, .live-card { transition: transform .3s ease, box-shadow .3s ease; }
.feature:hover, .steps li:hover, .person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.steps { position: relative; }
@media (min-width: 1040px) {
  .steps li { position: relative; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: -16px; width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: dash-x 1s linear infinite; }
}
@keyframes dash-x { to { background-position: 16px 0; } }
.step-no { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
.steps li:hover .step-no { animation: pulse-ring 1.4s ease-out infinite; }
@keyframes pulse-ring { to { box-shadow: 0 0 0 10px transparent; } }
.avatar { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.person:hover .avatar { transform: rotate(-4deg) scale(1.04); }

/* toast for our blocks */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 18px; box-shadow: 0 12px 32px rgb(0 0 0 / 25%); font-weight: 500; font-size: .92rem; transition: transform .5s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }
.toast::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--node-hi), var(--accent)); flex-shrink: 0; transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .toast.show { transform: translate(-50%, 0); }
}

/* block arrival: the label by the node */
.sky .callout { pointer-events: none; }
.sky .callout-bg { fill: var(--ink); opacity: .9; }
.sky .callout-text { font: 500 12px var(--font); fill: var(--bg); font-variant-numeric: tabular-nums; }
.sky .callout-tk { font-weight: 700; fill: var(--node-hi); }
.sky .fly path { stroke: rgb(255 255 255 / 60%); stroke-width: .6; stroke-linejoin: round; }

/* planner: saturation now and after, per pool */
.plan-bar { position: relative; display: block; height: 5px; margin-top: 4px; width: 90px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.plan-bar i, .plan-bar b { position: absolute; top: 0; bottom: 0; left: 0; }
.plan-bar i { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.plan-bar b { background: var(--ok); animation: grow .8s ease-out; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* ============ wallet and delegation ============ */
.wallet-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; max-width: 46vw; }
.wallet-btn span { overflow: hidden; text-overflow: ellipsis; }
.wallet-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; flex-shrink: 0; }
.wallet-btn img { border-radius: 4px; flex-shrink: 0; }
.wallet-btn.on { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.wallet-btn:hover { filter: brightness(1.06); }
.header-inner .wallet-btn { margin-left: auto; }
.header-inner .wallet-btn + .lang-switch { margin-left: 8px; }
@media (min-width: 960px) { .header-inner .wallet-btn { margin-left: 8px; } }
@media (max-width: 420px) { .lang-switch { padding: 6px 10px; } .lang-switch svg { display: none; } }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.delegate-btn { font: inherit; font-size: .76rem; font-weight: 700; color: var(--on-accent); background: var(--accent); border: 0; border-radius: 999px; padding: 4px 12px; min-height: 30px; cursor: pointer; white-space: nowrap; }
.delegate-btn:hover { background: var(--accent-ink); }
.direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; padding: 20px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.direct p { color: var(--ink-2); font-size: .92rem; margin-top: 4px; max-width: 44em; }

.wallet-dialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgb(20 10 40 / 30%); overflow: auto; }
.wallet-dialog::backdrop { background: rgb(20 14 36 / 45%); backdrop-filter: blur(3px); }
.wallet-dialog[open] { animation: dlg-in .35s cubic-bezier(.2,.9,.3,1.15); }
@keyframes dlg-in { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.wd-close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px 10px 0; margin-bottom: -34px; z-index: 1; }
.wd-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg-alt); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.wd-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#wd-body { padding: 24px; display: grid; gap: 14px; }
.wd-title { font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; padding-right: 36px; }
.wd-lead { color: var(--ink-2); }
.wd-wallets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wd-wallets button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.wd-wallets button:hover { border-color: var(--accent); transform: translateX(2px); }
.wd-wallets img { border-radius: 7px; }
.wd-wallets svg { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.wd-noicon { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); }
.wd-note { color: var(--ink-2); font-size: .9rem; }
.wd-links { display: flex; gap: 12px; }
.wd-safe { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.wd-safe svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2; }
.wd-account { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg-alt); }
.wd-who { display: flex; align-items: center; gap: 10px; }
.wd-who img { border-radius: 8px; }
.wd-who code { display: block; font-size: .75rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.wd-link { margin-left: auto; font: inherit; font-size: .82rem; color: var(--accent-ink); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wd-account dl { margin: 12px 0 0; display: grid; gap: 6px; }
.wd-account dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.wd-account dt { color: var(--muted); }
.wd-account dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.wd-account dd.warn { color: var(--warn); }
.wd-pools { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wd-pools legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.wd-pools label { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .85rem; }
.wd-pools label.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.wd-pools label.full { opacity: .6; }
.wd-pools input { position: absolute; opacity: 0; pointer-events: none; }
.wd-pools label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.wd-sat { height: 5px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.wd-sat i { display: block; height: 100%; background: var(--accent); }
.wd-pools small { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.wd-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.wd-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.wd-check small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.wd-steps p { font-weight: 700; font-size: .88rem; }
.wd-steps ul { margin: 6px 0 0; padding-left: 1.2em; font-size: .88rem; color: var(--ink-2); display: grid; gap: 3px; }
.wd-warn { font-size: .85rem; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border-radius: 10px; padding: 10px 12px; }
.wd-ok { font-size: .9rem; color: var(--ok); font-weight: 700; }
.wd-error { font-size: .88rem; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border-radius: 10px; padding: 10px 12px; }
.wd-go { width: 100%; }
.wd-go:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wd-progress { font-size: .88rem; color: var(--accent-ink); min-height: 1.4em; display: flex; align-items: center; gap: 8px; }
.wd-progress:not(:empty)::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex-shrink: 0; }
.wd-done { position: relative; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 8px 0; }
.wd-done .wd-title { padding-right: 0; }
.wd-done p { color: var(--ink-2); font-size: .92rem; }
.wd-hash code { font-size: .68rem; color: var(--muted); word-break: break-all; }
.wd-check-anim { width: 76px; height: 76px; }
.wd-check-anim circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw .7s ease-out forwards; }
.wd-check-anim path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .45s .55s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wd-confetti { position: absolute; top: 38px; left: 50%; width: 0; height: 0; pointer-events: none; }
.wd-confetti i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); opacity: 0; --a: calc(var(--i) * 25.7deg);
  animation: confetti 1.3s .5s cubic-bezier(.1,.7,.3,1) forwards; }
.wd-confetti i:nth-child(3n) { background: var(--node-hi); } .wd-confetti i:nth-child(4n) { background: var(--ok); }
@keyframes confetti { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) rotate(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-120px) rotate(200deg); } }
.plan-result td:last-child { text-align: right; }

/* delegation switched off at build (site.config.json "delegation") */
html:not([data-features~="delegation"]) :is([data-delegate], #wallet-btn, .direct, .wallet-dialog) { display: none !important; }
html[data-features~="delegation"] [data-without="delegation"] { display: none !important; }
