/* Qarry: dusk quarry. Basalt night, strata from plum to sand, ember for action, crystal for proof. */
:root {
  --bg: #0f0c13;
  --panel: #16121b;
  --glass: rgba(20, 15, 25, .74);
  --line: #2a2231;
  --line2: #3b3144;
  --text: #f6eee5;
  --muted: #ae a2b6;
  --muted: #aea2b6;
  --dim: #766b80;
  --ember: #ff6a3d;
  --ember2: #ffa25e;
  --sand: #f2a65e;
  --crys: #a88bff;
  --ice: #8be9ff;
  --ok: #72e2a8;
  --bad: #ff5d73;
  --code: #0c0910;
  --r: 18px;
  --fh: 'Syne', 'Hanken Grotesk', system-ui, sans-serif;
  --f: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --top: 84px;
  --console-h: 150px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--f);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(255, 106, 61, .35); }
[hidden] { display: none !important; }

.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 620px at 8% -8%, rgba(255, 106, 61, .17), transparent 62%),
    radial-gradient(760px 640px at 102% 104%, rgba(168, 139, 255, .16), transparent 60%),
    radial-gradient(520px 380px at 70% 30%, rgba(139, 233, 255, .045), transparent 70%),
    url(../img/contours.svg) center / cover no-repeat,
    var(--bg);
}

/* ---------------- top pill ---------------- */
.top { position: fixed; top: 12px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.pill {
  pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 6px;
  background: rgba(22, 17, 28, .8); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.brand { display: flex; align-items: center; gap: 9px; padding: 0 12px 0 3px; text-decoration: none; font: 800 19px/1 var(--fh); letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 0 18px rgba(255, 106, 61, .25); }
.tabs { display: flex; gap: 2px; }
.tabs a {
  position: relative; padding: 8px 12px; border-radius: 11px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px;
}
.tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.tabs a.on { color: var(--text); background: rgba(255, 255, 255, .075); }
.tabs a.on::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px;
  background: var(--ember); box-shadow: 0 0 10px var(--ember);
}
.ca-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; margin-left: 6px; cursor: pointer;
  border: 1px solid var(--line2); border-radius: 11px; background: rgba(255, 255, 255, .03); font: 500 12.5px var(--mono);
}
.ca-chip:hover { border-color: rgba(255, 106, 61, .6); }
.ca-k { color: var(--ember); }
.ca-chip.soon { border-style: dashed; color: var(--muted); }
.x-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; border: 1px solid transparent; text-decoration: none; }
.x-btn:hover { background: rgba(255, 255, 255, .05); }
.x-btn.soon { border: 1px dashed var(--line2); color: var(--muted); }
.btn-wallet {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 12px; cursor: pointer; white-space: nowrap; flex: none;
  background: linear-gradient(180deg, #fff7ee, #f1d8c2); color: #1c1117; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(241, 216, 194, .12);
}
.btn-wallet:hover { filter: brightness(1.04); }
.wdot { width: 7px; height: 7px; border-radius: 50%; background: #b8a092; }
.btn-wallet.on { background: rgba(114, 226, 168, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(114, 226, 168, .4); font-family: var(--mono); font-weight: 500; }
.btn-wallet.on .wdot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 12px; background: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.burger { display: grid; gap: 4px; }
.burger i { display: block; width: 14px; height: 1.6px; background: currentColor; border-radius: 2px; }
.msheet {
  pointer-events: auto; position: absolute; top: 60px; left: 12px; right: 12px; display: grid; gap: 2px; padding: 8px;
  background: rgba(22, 17, 28, .97); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.msheet a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 12px; border-radius: 12px; text-decoration: none; }
.msheet a b { font: 700 17px var(--fh); }
.msheet a span { color: var(--muted); font-size: 13px; }
.msheet a.on { background: rgba(255, 106, 61, .1); }
.ms-row { display: flex; gap: 8px; padding: 8px 4px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.ms-row .ca-chip { margin: 0; }

/* ---------------- frame ---------------- */
.frame {
  width: calc(100% - 32px); max-width: 1400px; margin: var(--top) auto 0; display: grid; grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 26px; background: rgba(19, 15, 24, .72); overflow: clip;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.side { border-right: 1px solid var(--line); background: rgba(12, 9, 15, .35); }
.side-in { position: sticky; top: var(--top); max-height: calc(100vh - var(--top) - 8px); overflow: auto; scrollbar-width: none; }
.side-in::-webkit-scrollbar { display: none; }
body[data-route="dig"] .side-map { display: none; }
body:not([data-route="dig"]) .side-dig { display: none; }
.sbar { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px dashed var(--line); font: 12px var(--mono); }
.steps { list-style: none; margin: 0; padding: 6px 0; }
.steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; padding: 11px 18px; }
.steps li + li::before { content: ''; position: absolute; left: 31px; top: -9px; height: 18px; border-left: 1px dashed var(--line2); }
.sn { display: inline-grid; place-items: center; width: 28px; height: 22px; border: 1px solid var(--line2); border-radius: 7px; font: 500 11.5px var(--mono); color: var(--ember2); background: rgba(255, 106, 61, .06); }
.steps b { font-size: 14.5px; font-weight: 700; }
.steps p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.picks { list-style: none; margin: 0; padding: 6px 0; }
.picks button {
  width: 100%; display: grid; grid-template-columns: 66px 1fr 34px; align-items: center; gap: 8px; padding: 8px 18px;
  border: 0; border-left: 2px solid transparent; background: none; cursor: pointer; text-align: left; font: 12.5px var(--mono); color: var(--muted);
}
.picks button:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.picks button[aria-pressed="true"] { background: rgba(255, 106, 61, .08); border-left-color: var(--ember); color: var(--text); }
.gems { display: flex; gap: 7px; }
.gems i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--line2); border-radius: 2px; }
.gems i.on { border-color: transparent; background: linear-gradient(135deg, var(--sand), var(--ember)); box-shadow: 0 0 8px rgba(255, 106, 61, .5); }
.pk-p { text-align: right; color: var(--text); }
.side-note { margin: 0; padding: 8px 18px 4px; font-size: 12.5px; color: var(--muted); }
.side-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 18px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line2); border-radius: 10px;
  text-decoration: none; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .02);
}
.chip-link:hover { border-color: var(--ember); }
.chip-link span { color: var(--ember); }
.chip-link.sm { padding: 4px 9px; font: 12px var(--mono); }

.map-wrap { position: relative; height: 262px; border-bottom: 1px dashed var(--line); }
.map-wrap canvas { width: 100%; height: 100%; }
.map-legend { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 3px 4px; justify-content: center; }
.map-legend a { padding: 2px 7px; border-radius: 6px; font: 10.5px var(--mono); color: var(--dim); text-decoration: none; }
.map-legend a:hover { color: var(--text); }
.map-legend a.on { color: var(--text); background: rgba(255, 106, 61, .16); }
.rig-mini { padding: 14px 18px 18px; }
.rm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.st { display: inline-flex; align-items: center; gap: 7px; font: 12.5px var(--mono); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(114, 226, 168, .6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(114, 226, 168, .55); } 100% { box-shadow: 0 0 0 8px rgba(114, 226, 168, 0); } }
.rm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rm-grid .k, .rm-grid .u { display: block; font: 10.5px var(--mono); color: var(--dim); }
.rm-grid .k { color: var(--muted); }
.rm-grid b { display: block; font: 500 14px var(--mono); margin: 3px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 2px 0 8px; }
.meter i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .07); }
.meter i.on { background: linear-gradient(180deg, var(--ember2), var(--ember)); box-shadow: 0 0 6px rgba(255, 106, 61, .45); }
.meter i.next { animation: nextgem 1.2s ease-in-out infinite; }
@keyframes nextgem { 50% { background: rgba(255, 106, 61, .45); } }
.rm-note { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.rm-note b { color: var(--text); font-family: var(--mono); font-weight: 500; }

/* ---------------- buttons ---------------- */
.btn-dig {
  padding: 15px 24px; border: 0; border-radius: 14px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #ff9257, #ff5a2e); color: #1d0b06; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  box-shadow: 0 10px 30px rgba(255, 90, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-dig:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-dig:active { transform: translateY(1px); }
.btn-dig.is-on { background: rgba(255, 106, 61, .08); color: var(--ember2); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .55), 0 0 0 0 rgba(255, 106, 61, .4); animation: digon 2s infinite; }
@keyframes digon { 0% { box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .55), 0 0 0 0 rgba(255, 106, 61, .35); } 100% { box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .55), 0 0 0 12px rgba(255, 106, 61, 0); } }
.btn-dig.sm { width: 100%; padding: 12px 16px; font-size: 14.5px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 13px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line2); border-radius: 11px; background: rgba(255, 255, 255, .03); font-size: 13.5px; font-weight: 600;
}
.btn-ghost:hover:not(:disabled) { border-color: var(--ember); }
.btn-ghost:disabled { opacity: .38; cursor: default; }
.btn-ghost.wide { width: 100%; margin-top: 12px; }
.btn-ghost.sm, .btn-light.sm { padding: 6px 11px; font-size: 13px; }
.btn-light {
  display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #fff7ee, #f1d8c2); color: #1c1117; font-weight: 700; font-size: 14.5px;
}
.btn-light:hover { filter: brightness(1.04); }
.soon { border-style: dashed !important; opacity: .7; }
.link-btn { border: 0; background: none; padding: 0; color: var(--ember2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------------- pages ---------------- */
.page { display: none; }
.page.on { display: block; animation: pageIn .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pages > .page:not(.page-dig) { padding: 0 30px 34px; }
.ph { padding: 32px 0 20px; }
.eyebrow { font: 12.5px var(--mono); color: var(--ember2); }
.ph h1 { font: 800 48px/1 var(--fh); letter-spacing: -.035em; margin: 10px 0 10px; }
.ph p { margin: 0; color: var(--muted); font-size: 16px; max-width: 62ch; }
.sample-note .tag { margin-right: 8px; vertical-align: 1px; }
.sample-note {
  display: block; margin-top: 16px; padding: 10px 13px; max-width: 760px; line-height: 1.6;
  border: 1px dashed rgba(242, 166, 94, .35); border-radius: 12px; background: rgba(242, 166, 94, .05); color: var(--muted); font-size: 13.5px;
}
.sample-note b { color: var(--text); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.jump a { padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; font: 12.5px var(--mono); color: var(--muted); text-decoration: none; background: rgba(255, 255, 255, .02); }
.jump a:hover { color: var(--text); border-color: var(--line2); }
.anchor { position: relative; top: -10px; }

.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  position: relative; overflow: hidden; padding: 16px 18px 15px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.stat::after { content: ''; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px; background: radial-gradient(closest-side, rgba(255, 106, 61, .12), transparent); pointer-events: none; }
.stat:nth-child(2)::after { background: radial-gradient(closest-side, rgba(168, 139, 255, .13), transparent); }
.stat:nth-child(3)::after { background: radial-gradient(closest-side, rgba(139, 233, 255, .1), transparent); }
.stat .k { font: 12px var(--mono); color: var(--muted); }
.stat b { display: block; margin: 8px 0 3px; font: 500 29px/1.1 var(--mono); letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .u { font-size: 12px; color: var(--dim); }
.stat .meter { margin: 6px 0 6px; }

.card { margin-bottom: 14px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r); background: rgba(255, 255, 255, .022); }
.card-h { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.card-h h2 { margin: 0; font: 700 19px var(--fh); letter-spacing: -.02em; }
.card-h h2 .dim { font: 400 13px var(--mono); letter-spacing: 0; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0 0 10px; }
.card p b { color: var(--text); }
.card p a { color: var(--ember2); text-underline-offset: 3px; }
.card p:last-child { margin-bottom: 0; }
.card .fine, .fine { margin: 12px 0 0; font-size: 12.5px; color: var(--dim); line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.grid2 > .card { margin: 0; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 6px; border: 1px solid; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.tag-sample { color: #f6b884; border: 1px dashed rgba(242, 166, 94, .55); background: rgba(242, 166, 94, .07); }
.tag-real { color: var(--ice); border-color: rgba(139, 233, 255, .35); background: rgba(139, 233, 255, .06); }
.tag-draft { color: var(--crys); border: 1px dashed rgba(168, 139, 255, .5); background: rgba(168, 139, 255, .06); }
.tag-live { color: var(--ok); border-color: rgba(114, 226, 168, .4); background: rgba(114, 226, 168, .06); }
.soon-txt { display: inline-block; padding: 2px 8px; border: 1px dashed var(--line2); border-radius: 7px; font: 12px var(--mono); color: var(--muted); }

.tbl-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 400 11.5px var(--mono); color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: middle; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.tbl .r { text-align: right; font-family: var(--mono); white-space: nowrap; }
.tbl td.dim { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.tbl tr.you td { background: rgba(255, 106, 61, .07); }
.tbl tr.mine td { background: rgba(139, 233, 255, .035); }
.pos { color: var(--ok); }
.neg { color: #ff9f80; }
.ice { color: var(--ice); }
.sig { font: 12.5px var(--mono); color: var(--muted); border-bottom: 1px dotted var(--line2); }
.empty, .empty-row { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty { border: 1px dashed var(--line2); border-radius: 12px; }
.empty-row a { color: var(--ember2); }

.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 160px) 1fr; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; text-align: right; font-size: 14px; }
.kv dd b { font: 500 19px var(--mono); }
.kv dd small, .wallets small { display: block; color: var(--dim); font-size: 12px; margin-top: 3px; }
.kv dd a { font-family: var(--mono); color: var(--ice); }
.wallets { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.wallets > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.wallets dt { font-size: 14px; font-weight: 600; }
.wallets dd { margin: 0; flex: none; }
.wallets dd a { font-family: var(--mono); color: var(--ice); }

.split { display: flex; gap: 3px; height: 46px; border-radius: 12px; overflow: hidden; }
.split i { display: flex; align-items: center; padding: 0 12px; font: 500 13px var(--mono); font-style: normal; color: #1d0f14; transform-origin: left; min-width: 0; }
.page.on .split i { animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.page.on .split i:nth-child(2) { animation-delay: .08s; }
.page.on .split i:nth-child(3) { animation-delay: .16s; }
@keyframes grow { from { transform: scaleX(0); } }
.sp-diggers { background: linear-gradient(90deg, #ff6a3d, #ffa25e); }
.sp-burn { background: linear-gradient(90deg, #8f6bff, #c3b0ff); }
.sp-upkeep { background: linear-gradient(90deg, #6fdcf5, #bff3ff); }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.split-legend b { color: var(--text); font-family: var(--mono); font-weight: 500; }

.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .22); flex-wrap: wrap; }
.seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, .38); }
.seg-sm button { padding: 5px 9px; font: 12.5px var(--mono); }
.rec-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font: 11.5px var(--mono); color: var(--muted); }
.legend i, .sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.sdot { margin-right: 10px; }
.st-tab { background: var(--ice); box-shadow: 0 0 6px rgba(139, 233, 255, .6); }
.st-pend { border: 1.5px solid var(--sand); }
.st-server { background: var(--crys); }
.st-chain { background: var(--ok); }
.st-bad { background: var(--bad); }
.rec td b { font-weight: 600; }

.chart-box { position: relative; height: 190px; }
.chart svg { width: 100%; height: 100%; }
.cgrid line { stroke: rgba(255, 255, 255, .07); stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.carea { fill: url(#cg); }
.cline { fill: none; stroke: var(--ember); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.cdot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 106, 61, .2), 0 0 12px var(--ember); }
.cylab span { position: absolute; left: 4px; transform: translateY(-120%); font: 10px var(--mono); color: var(--dim); }
.cxlab { display: flex; justify-content: space-between; margin-top: 6px; font: 10.5px var(--mono); color: var(--dim); }
.chart-note { margin-top: 8px; font: 12.5px var(--mono); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chart-note a { color: var(--ember2); }
.share { white-space: nowrap; }
.share-h { width: 34%; }
.sbar-v { display: inline-block; width: calc(100% - 64px); max-width: 220px; height: 6px; margin-right: 10px; border-radius: 3px; background: rgba(255, 255, 255, .06); vertical-align: middle; overflow: hidden; }
.sbar-v i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ember), var(--sand)); }
tr.you .sbar-v i { background: linear-gradient(90deg, var(--crys), var(--ice)); }
.tk-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------- rules ---------------- */
.how4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.how4 li { position: relative; padding: 15px 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.how4 li:not(:last-child)::after { content: '→'; position: absolute; right: -10px; top: 16px; color: var(--ember); font: 13px var(--mono); background: var(--panel); padding: 0 1px; z-index: 1; }
.how4 b { display: block; margin: 10px 0 4px; font: 700 18px var(--fh); }
.how4 p { margin: 0; font-size: 13.5px; }
.how4 + .fine { margin-top: 14px; }
.code { margin: 0 0 14px; padding: 16px 18px; overflow: auto; background: var(--code); border: 1px solid var(--line); border-radius: 14px; font: 13.5px/1.75 var(--mono); color: var(--text); }
.c-k { color: var(--ember2); }
.c-d { color: var(--dim); }
.try { margin-top: 16px; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 14px; background: rgba(139, 233, 255, .025); }
.try-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font: 12px var(--mono); }
.try-h .k { color: var(--ice); }
.try-row { display: flex; gap: 8px; }
.try-row input, .vmsg input {
  flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--code); color: var(--text); font: 14px var(--mono);
}
.try-row input:focus, .vmsg input:focus { outline: none; border-color: var(--ember); }
.try-hash { display: block; margin-top: 12px; font: 13px/1.5 var(--mono); color: var(--dim); word-break: break-all; }
.try-hash b { color: var(--ice); font-weight: 500; text-shadow: 0 0 10px rgba(139, 233, 255, .5); }
.try-bits { margin-top: 6px; font: 13px var(--mono); color: var(--muted); }
.try-bits b { color: var(--ember2); font-size: 16px; font-weight: 500; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px !important; }
.pill-k { padding: 6px 11px; border: 1px solid var(--line); border-radius: 10px; font: 12px var(--mono); color: var(--muted); }
.pill-k b { font-weight: 500; }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.reasons li { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 93, 115, .025); }
.reasons b { display: block; font: 500 13px var(--mono); color: #ff9f80; margin-bottom: 3px; }
.reasons span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.faq details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 16px var(--mono); color: var(--ember); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 8px 0 0; }

/* ---------------- haul / vault ---------------- */
.connect-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(135deg, rgba(255, 106, 61, .08), rgba(168, 139, 255, .06)); }
.connect-card h2 { margin: 0 0 6px; font: 700 21px var(--fh); letter-spacing: -.02em; }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 6px 22px; font-size: 14px; }
.checks li::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; transform: rotate(45deg); background: var(--ember); border-radius: 1px; vertical-align: 1px; }
.cc-r { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; font-size: 12px; }
.vault { background: linear-gradient(180deg, rgba(168, 139, 255, .05), rgba(255, 255, 255, .015)); }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.vsteps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.vsteps li { display: flex; flex-wrap: wrap; gap: 8px; }
.vmsg { flex-direction: column; gap: 4px !important; }
.vmsg .k { font: 11.5px var(--mono); color: var(--muted); }
.vout { margin-top: 14px; padding: 12px 14px; min-height: 66px; border: 1px solid var(--line); border-radius: 12px; background: var(--code); color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.vout b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.vout .ok { color: var(--ok); font-weight: 700; }
.vout .bad { color: var(--bad); font-weight: 700; }
.vault-viz { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--code); }
.vv-h { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font: 11.5px var(--mono); color: var(--muted); }
.vv-legend { display: inline-flex; align-items: center; gap: 6px; }
.vv-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.lg-sec { background: #4a2d63; }
.lg-sig { background: var(--ember); }
.lg-pub { background: var(--crys); }
#chains { width: 100%; height: auto; }
#chains rect { transition: fill .25s; }
.c0 { fill: rgba(255, 255, 255, .045); }
.csec { fill: #4a2d63; }
.cmid { fill: rgba(168, 139, 255, .13); }
.cpub { fill: var(--crys); }
.chid { fill: rgba(255, 255, 255, .035); }
.csig { fill: var(--ember); }
.cwalk { fill: rgba(139, 233, 255, .5); }
.cbad { fill: var(--bad); }
.cwalkbad { fill: rgba(255, 93, 115, .28); }
.csep { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 3; }
.vv-addr { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font: 11.5px var(--mono); color: var(--muted); }
.vv-addr code { color: var(--ice); font: 12.5px var(--mono); word-break: break-all; }

/* ---------------- dig stage ---------------- */
.page-dig { position: relative; }
.stage { position: relative; min-height: max(660px, calc(100vh - var(--top) - 2px)); display: flex; flex-direction: column; }
#pitHero { position: absolute; left: 0; right: 0; top: 0; bottom: var(--console-h); width: 100%; height: calc(100% - var(--console-h)); z-index: 0; }
.stage-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 26px 0; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.hero-copy { max-width: 430px; }
.kick { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(18, 14, 22, .7); font: 12.5px var(--mono); color: var(--muted); }
.kick .sep { color: var(--dim); }
.hero-copy h1 { margin: 16px 0 12px; font: 800 clamp(26px, 2.35vw, 35px)/1.08 var(--fh); letter-spacing: -.03em; text-wrap: balance; }
.grad { background: linear-gradient(90deg, #ffc07a, #ff6a3d 45%, #a88bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { margin: 0; max-width: 44ch; color: var(--muted); font-size: 15px; }
.hud { display: flex; flex-direction: column; gap: 10px; width: 232px; flex: none; }
.hud-card { padding: 11px 13px; border: 1px solid var(--line2); border-radius: 14px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hc-row { display: flex; justify-content: space-between; gap: 10px; font: 12.5px/1.8 var(--mono); }
.hc-row .k { color: var(--muted); }
.hc-row b { font-weight: 500; }
.bar { height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--sand)); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.stage-mid { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; padding: 16px 26px 14px; pointer-events: none; }
.feed { pointer-events: auto; width: 300px; padding: 11px 13px 8px; border: 1px solid var(--line2); border-radius: 16px; background: rgba(14, 11, 18, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.feed-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font: 11.5px var(--mono); color: var(--muted); }
.feed-list { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.feed-list li { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .05); font: 12px var(--mono); }
.feed-list li:first-child { border-top: 0; }
.pl-h { color: var(--dim); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pl-h b { color: var(--ice); font-weight: 500; }
.pl-b { color: var(--ember2); text-align: right; }
.pl-s { grid-column: 1 / -1; font-size: 11px; color: var(--dim); }
.feed-list li.ok .pl-s { color: var(--ok); }
.feed-list li.bad .pl-s { color: var(--bad); }
.feed-list li.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { from { background: rgba(139, 233, 255, .14); } to { background: transparent; } }
li.feed-empty { display: block; font: 13px/1.5 var(--f); color: var(--muted); padding: 6px 0 8px; }
.console {
  position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0 16px; padding: 10px;
  border: 1px solid var(--line2); border-radius: 20px; background: rgba(18, 14, 22, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.c-stat, .c-ctl { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 2px 18px; border-left: 1px dashed var(--line2); min-height: 50px; }
.c-stat:first-of-type { border-left: 0; }
.btn-dig + .c-stat { border-left: 0; margin-left: 6px; }
.c-stat .k, .c-ctl .k { font: 11px var(--mono); color: var(--muted); }
.c-stat b { font: 500 20px/1.15 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.c-stat .u, .c-ctl .u { font: 10.5px var(--mono); color: var(--dim); }
.c-rate { position: relative; min-width: 220px; flex: 1; }
.spark { position: absolute; right: 18px; bottom: 10px; width: 92px; height: 26px; }
.spark path { fill: none; stroke: var(--ember); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .85; }
.c-rate:not(.live) .spark { opacity: .18; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 10px; }
.stepper button { width: 28px; height: 26px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); }
.stepper button:hover { color: var(--text); }
.stepper output { min-width: 26px; text-align: center; font: 500 15px var(--mono); }
.assure { position: relative; z-index: 3; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; padding: 12px 18px 16px; font-size: 12.5px; color: var(--muted); }
.assure p { margin: 0; }
.assure b { color: var(--text); }
.pit-tip { position: absolute; z-index: 6; pointer-events: none; padding: 7px 10px; border: 1px solid var(--line2); border-radius: 10px; background: rgba(16, 12, 20, .94); font-size: 13px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.pit-tip b { color: var(--ember2); margin-right: 6px; }

.dig-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px;
  border: 1px solid rgba(255, 106, 61, .45); border-radius: 999px; background: rgba(22, 17, 28, .92); backdrop-filter: blur(10px); font: 13px var(--mono);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.dig-pill button { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--ember); color: #1d0b06; font: 700 12.5px var(--f); cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 60; max-width: min(92vw, 520px); padding: 11px 16px; border-radius: 12px;
  background: #f6e7d9; color: #1c1117; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { width: calc(100% - 32px); max-width: 1400px; margin: 16px auto 34px; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.fb { display: inline-flex; align-items: center; gap: 8px; }
.fb img { border-radius: 5px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1240px) {
  .tabs a { padding: 8px 9px; }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how4 li:nth-child(2)::after { display: none; }
  .vault-grid { grid-template-columns: 1fr; }
  .wallets { grid-template-columns: 1fr; }
  .c-ctl { flex: 1; }
}
@media (max-width: 1060px) {
  .tabs, .pill > .ca-chip { display: none; }
  .menu-btn { display: inline-flex; }
  .top { justify-content: stretch; }
  .pill { width: 100%; }
  .brand { margin-right: auto; }
  .frame { grid-template-columns: 1fr; width: calc(100% - 20px); border-radius: 22px; --top: 76px; margin-top: 76px; }
  .side { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .side-in { position: static; max-height: none; }
  body:not([data-route="dig"]) .side { display: none; }
  .pages > .page:not(.page-dig) { padding: 0 18px 26px; }
  .ph h1 { font-size: 40px; }
  .stage { display: flex; flex-direction: column; min-height: 0; }
  .stage-top { display: contents; }
  .hero-copy { order: 1; padding: 22px 18px 0; max-width: none; }
  #pitHero { order: 2; position: relative; inset: auto; height: 380px; }
  .hud { order: 3; width: auto; display: grid; grid-template-columns: 1fr 1fr; padding: 0 16px 12px; }
  .console { order: 4; margin: 0 12px; }
  .stage-mid { order: 5; padding: 12px 12px 0; }
  .feed { width: 100%; }
  .assure { order: 6; justify-content: flex-start; }
  .pit-tip { display: none; }
}
@media (max-width: 720px) {
  .grid2 { grid-template-columns: 1fr; }
  .connect-card { flex-direction: column; align-items: flex-start; }
  .cc-r { align-items: flex-start; }
  .checks { grid-template-columns: 1fr; }
  .console .btn-dig { width: 100%; margin-bottom: 4px; }
  .btn-dig + .c-stat { margin-left: 0; }
  .c-stat, .c-ctl { flex: 1 1 40%; padding: 4px 12px; border-left: 0; }
  .c-rate { min-width: 0; flex: 1 1 100%; }
  .spark { right: 12px; }
  .hud { grid-template-columns: 1fr; }
  .assure { flex-direction: column; padding: 14px 18px 18px; }
}
@media (max-width: 560px) {
  .pill > .x-btn { display: none; }
  .brand { font-size: 18px; padding-right: 6px; }
  .btn-wallet { padding: 9px 11px; font-size: 13.5px; }
  .ph { padding-top: 24px; }
  .ph h1 { font-size: 34px; }
  .ph p { font-size: 15px; }
  .stats4 { gap: 8px; }
  .stat { padding: 13px 13px 12px; }
  .stat b { font-size: 21px; }
  .card { padding: 15px 14px 16px; }
  .how4 { grid-template-columns: 1fr; }
  .how4 li::after { display: none; }
  .hide-s { display: none; }
  .tbl { font-size: 12.5px; }
  .tbl td, .tbl th { padding: 8px 6px; }
  .kv > div { grid-template-columns: 1fr auto; }
  #pitHero { height: 320px; }
  .hero-copy h1 { font-size: 30px; }
  .share-h { width: auto; }
  .sbar-v { display: none; }
  .wallets > div { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
