/* QuantSplit · the inner pages in the holo pearl look (3 Dec 2026): Holders, Splits, Docs, My wallet, the 404, empty states.
   base.css is structure; home.css is the shell (header, buttons, dock, eyebrows, reveals, stat cards) and the home page;
   this file is everything the inner pages add. Pearl ground, ink text and actions, holo surfaces. Forfeits in muted rose.
   Motion: the page head arrives piece by piece (home.css .arrive), sections fade up once (.r), stat cards count up.
   The Motion switch (html[data-motion="off"]) stops all of it to finished stills. */

/* ---------- shell bits home.css doesn't set ---------- */
.top-bar { gap: 22px; }
.brand { flex: none; }
.nav a { font-weight: 600; font-size: 14.5px; }
.btn.dark { background: var(--surface-3); color: var(--ink); border-color: transparent; }
.btn.dark:hover { background: var(--surface-2); }
.wallet-btn { height: 40px; }
.eyebrow .tag-demo, .kicker .tag-demo { margin-left: 2px; }
.demo-strip { font-size: 12.5px; padding: 5px var(--gut); }
.demo-strip b { padding: 1px 7px; border-radius: 4px; font: 700 11px/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* the CA box: "soon" until the coin exists, then the address with Copy */
.ca { border: 1px dashed var(--line-2); }
.ca .label { color: var(--ink-2); }
.ca-soon { padding: 1px 8px; border-radius: 5px; font-size: 12.5px; }
.ca-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font: 600 13px var(--font-text); cursor: pointer; }
.ca-copy[disabled] { color: var(--muted); cursor: not-allowed; border-style: dashed; background: transparent; }
.ca-note { color: var(--muted); }
.ca.small { gap: 8px; padding: 0 4px 0 12px; height: 40px; }
.ca.small .ca-copy { width: 30px; padding: 0; justify-content: center; }

.tag-demo { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 4px; border: 1px dashed rgba(var(--fg-rgb), 0.28); color: var(--ink-2); font: 600 10px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.countdown { font: 600 clamp(36px, 3.6vw, 48px)/1 var(--font-mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* ---------- the page head: the home hero's masked grid and soft sky glow, an eyebrow, a big title ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; display: block; padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 3.6vw, 48px); background: radial-gradient(640px 300px at 14% 0%, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.04) 45%, transparent 72%); }
.page-ground { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(var(--fg-rgb), 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--fg-rgb), 0.05) 1px, transparent 1px); background-size: 64px 64px; background-position: center -1px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 20%, transparent 70%); }
.page-head-in { display: grid; justify-items: start; }
.page-title { margin-top: 20px; font-size: clamp(40px, 5.2vw, 74px); line-height: 0.96; letter-spacing: -0.045em; max-width: 13em; }
.page-lede { margin-top: 18px; max-width: 40em; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18.5px); }
.page-head.center .page-head-in { justify-items: center; text-align: center; }
.page-head.center .page-ground { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 20%, transparent 70%); }
.page-head.center { background: radial-gradient(560px 340px at 50% 0%, rgba(203, 238, 215, 0.75), rgba(208, 208, 243, 0.3) 45%, transparent 72%); }
.page-head.center .page-lede { margin-inline: auto; }
.page-head-in > .btn, .page-head-in > .row { margin-top: 28px; }
.page-body { display: grid; gap: 14px; }
.page-body > .totals { margin: 0; }

/* the picture tiles (art.mjs picture()): one ink panel frame for the whole tote family, sky glow at the foot */
.pic-tile { display: inline-grid; place-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line-2); background: radial-gradient(80% 60% at 50% 100%, rgba(var(--accent-rgb), 0.12), transparent 70%), var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.pic-tile svg { display: block; }
.pic-ring-arc { transition: stroke-dashoffset 0.6s var(--ease); }

/* ---------- panels, tables and chips (Holders, Splits) ---------- */
.controls { margin: 10px 0 2px; }
.seg { background: var(--panel-grad); border: 1px solid var(--line); }
.seg button { font-weight: 600; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--night); }
.table-box { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-grad); box-shadow: 0 1px 2px rgba(11, 13, 16, 0.05), 0 30px 60px -44px rgba(11, 13, 16, 0.3); padding: 6px 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 500 11px/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: var(--border); white-space: nowrap; vertical-align: middle; transition: background-color 0.2s var(--ease); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(var(--fg-rgb), 0.025); }
td.num, td .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rank { color: var(--muted); width: 1%; }
.mult-cell { display: flex; align-items: center; gap: 10px; }
/* in a table the cell must stay a cell (a flex td breaks the row lines): its two parts sit inline instead */
td.mult-cell { display: table-cell; }
td.mult-cell > .num { display: inline-block; vertical-align: middle; margin-right: 10px; }
td.mult-cell > .mult-bar { display: inline-grid; vertical-align: middle; }
.mult-cell .mult-bar { width: 84px; }
.mult-cell .num { min-width: 46px; }
.top { display: inline-flex; gap: 4px; align-items: baseline; }
.forfeit-txt { color: var(--brick); }
.splits-table td:last-child { display: flex; gap: 8px; align-items: center; }
.more { display: grid; justify-items: center; margin-top: 8px; }
.sk-table { display: grid; gap: 8px; padding: 8px 0; }
.sk-table .sk, .burrow-loading .sk { height: 46px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--bg-2), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }

.row-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 700 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.row-chip.brick { background: rgba(var(--brick-rgb), 0.14); color: var(--brick); }
.round-chip { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.round-chip.in { background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--accent-rgb), 0.3); }
.round-chip.in::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.round-chip.in .icon { display: none; }
.round-chip.next { background: transparent; color: var(--muted); border: 1px dashed var(--line-2); }
.tx { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.tx:hover { color: var(--ink); }
.wallet-link { font-size: 0.93em; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease); }
.wallet-link:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.sig { font-size: 12.5px; word-break: break-all; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-2); }

/* the multiplier on its road to 2.0x */
.mult-bar { display: grid; gap: 5px; }
.mult-track { height: 8px; border-radius: 4px; background: rgba(var(--fg-rgb), 0.08); overflow: hidden; }
.mult-bar.big .mult-track { height: 14px; border-radius: 7px; }
.mult-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.mult-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ---------- Splits: the next split, a ring around the tote ---------- */
.next-split { display: flex; align-items: center; gap: 18px 26px; flex-wrap: wrap; padding: 16px 26px 16px 16px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(60% 140% at 0% 50%, rgba(var(--accent-rgb), 0.1), transparent 70%), var(--panel-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.next-clock { display: grid; gap: 4px; }
.next-art { padding: 7px; border-radius: 16px; }
.next-split .countdown { font-size: clamp(36px, 3.4vw, 46px); }
.next-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; color: var(--ink-2); font-size: 14.5px; }
.next-facts b { font-family: var(--font-mono); color: var(--ink); }

/* ---------- My burrow: one wallet ---------- */
.burrow-panel { display: grid; gap: 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel-grad); box-shadow: 0 1px 2px rgba(11, 13, 16, 0.05), 0 30px 60px -44px rgba(11, 13, 16, 0.3); padding: 22px 24px; }
.burrow-panel.page { max-width: 820px; padding: 26px 28px; }
.burrow-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; }
.burrow-title { font-size: clamp(22px, 2.1vw, 27px); }
.burrow-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wallet-chip { height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border-radius: var(--r-pill); background: var(--surface-3); font-size: 13px; }
.burrow-who .icon-btn { width: 30px; height: 30px; }
.change { font-size: 13px; margin-left: 4px; }
.burrow-intro { font-size: 14.5px; }
.paste-row { display: flex; gap: 8px; }
.paste-row .input { flex: 1; min-width: 0; height: 52px; border-radius: 14px; font-size: 14px; background: var(--bg); }
.paste-row .btn { height: 52px; }
.or-row { display: flex; align-items: center; gap: 12px; }
.burrow-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.burrow-big { font: 600 clamp(19px, 1.8vw, 26px)/1.15 var(--font-mono); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.to2x { margin-top: -6px; }
.burrow-share { display: grid; gap: 6px; padding-top: 4px; }
.share-val { font: 600 clamp(28px, 3vw, 40px)/1.05 var(--font-mono); letter-spacing: -0.03em; }
.round-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; margin-top: 4px; }
.sell-box { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(var(--brick-rgb), 0.28); background: rgba(var(--brick-rgb), 0.07); display: grid; gap: 4px; }
.sell-box p:first-child { font-size: 16px; }
.sell-amt { font-family: var(--font-mono); font-weight: 700; color: var(--brick); }
.sell-box.calm { border-color: var(--line); background: var(--bg); }
.paid-total { font-size: 14px; }
.burrow-history { display: grid; gap: 10px; margin-top: 6px; }
.burrow-history h3 { font: var(--display-weight) 22px/1.1 var(--font-display); letter-spacing: -0.03em; }
.paid-list { display: grid; }
.paid-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--border); font-size: 14px; }
.paid-row:last-child { border-bottom: 0; }
.burrow-loading { display: grid; gap: 10px; }
.burrow-loading .sk.short { width: 60%; }
.burrow-page { padding-bottom: 8px; }

/* ---------- empty states and the 404 ---------- */
.empty { padding: 40px 16px; gap: 12px; }
.empty-art svg { width: auto; max-width: 100%; }
.nf .page-head { padding-top: clamp(48px, 7vw, 96px); }
.nf .empty-art { padding: 20px; border-radius: 28px; margin-bottom: 8px; }

/* ---------- Docs ---------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-top: 8px; }
.toc { position: sticky; top: calc(var(--head-h, 96px) + 24px); align-self: start; display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.toc .label { margin: 0 0 10px; }
.toc a { position: relative; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14.5px; transition: color 0.2s var(--ease), background-color 0.2s var(--ease); }
.toc a::before { content: ""; position: absolute; left: -13px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.toc a:hover { background: rgba(var(--fg-rgb), 0.04); color: var(--ink); }
.toc a[aria-current] { color: var(--ink); }
.toc a[aria-current]::before { transform: none; }
.doc-body { display: grid; gap: clamp(56px, 7vw, 96px); max-width: 840px; }
.doc-sec { display: grid; gap: 18px; scroll-margin-top: calc(var(--head-h, 96px) + 24px); }
.doc-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1; letter-spacing: -0.04em; }
.doc-in { display: grid; gap: 14px; }
.doc-in > p { color: var(--ink-2); max-width: 44em; }
.doc-in > p.muted, .doc-in > p.fine { color: var(--muted); }
.doc-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc-step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 16px; border-radius: 20px; background: var(--panel-grad); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.doc-step.in:hover { transform: translateY(-4px); border-color: var(--line-2); transition-delay: 0ms; }
.doc-step h3 { margin: 6px 0 6px; }
.doc-step p { color: var(--ink-2); font-size: 15px; }
.doc-art { padding: 7px; border-radius: 16px; }
.fee-bar { display: flex; height: 56px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); font-size: 14px; }
.fee-part { display: flex; align-items: center; gap: 6px; padding: 0 16px; background: var(--panel-grad); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.fee-part.pot { background: var(--holo); color: var(--on-holo); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.mult-table { max-width: 520px; border-collapse: separate; border-spacing: 0; border-radius: 18px; background: var(--panel-grad); border: 1px solid var(--line); overflow: hidden; }
.mult-table th, .mult-table td { padding: 11px 18px; }
.mult-row { display: grid; grid-template-columns: 52px minmax(120px, 220px); align-items: center; gap: 14px; }
.mult-row b { font-weight: 600; }
.mult-row .mult-track { height: 10px; border-radius: 5px; }
.rule-list { display: grid; gap: 12px; max-width: 46em; }
.rule-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
#forfeit .rule-list li::before { background: var(--brick); }
.risk-line { font-weight: 600; color: var(--ink-2); }
.faq { margin-top: 0; gap: 10px; }
.faq details { padding: 0; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-grad); transition: border-color 0.2s var(--ease); }
.faq details:hover, .faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform 0.3s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -0.75px 0 0 -4.5px; background: var(--ink-2); }
.faq-x::after { transform: rotate(90deg); }
.faq details[open] .faq-x { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq details[open] .faq-x::before, .faq details[open] .faq-x::after { background: var(--on-accent); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.faq details[open] p { animation: rise 0.5s var(--ease) both; }

/* ---------- footer ---------- */
.foot { grid-template-columns: 1fr auto; row-gap: 20px; }
.foot-brand p { max-width: 36em; font-size: 14px; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--ink); }
.foot-ca { grid-column: 1 / -1; }
.foot-ca .ca { margin: 0; }

/* ---------- phones and narrow screens ---------- */
@media (max-width: 1100px) {
  .ca.small .label { display: none; }
}
@media (max-width: 980px) {
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding-left: 0; border-left: 0; }
  .toc a::before { display: none; }
  .toc .label { flex-basis: 100%; margin-bottom: 2px; }
  .doc-steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .next-facts { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .page-title { font-size: clamp(38px, 11vw, 50px); }
  .next-split { padding: 14px; gap: 14px 18px; }
  .burrow-panel, .burrow-panel.page { padding: 16px; border-radius: 18px; }
  .burrow-tiles { grid-template-columns: 1fr 1fr; }
  .burrow-tiles .tile:first-child { grid-column: 1 / -1; }
  .paid-row { grid-template-columns: auto 1fr auto; }
  .paid-row .fine { display: none; }
  .holders-table th:nth-child(3), .holders-table td:nth-child(3), .holders-table th:nth-child(4), .holders-table td:nth-child(4), .holders-table th:nth-child(7), .holders-table td:nth-child(7) { display: none; }
  .splits-table th:nth-child(4), .splits-table td:nth-child(4), .splits-table th:nth-child(6), .splits-table td:nth-child(6) { display: none; }
  .mult-cell .mult-bar { width: 56px; }
  .doc-step { grid-template-columns: 1fr; }
  .doc-art { justify-self: start; }
  .fee-bar { font-size: 12.5px; }
  .fee-part { padding: 0 10px; }
  .mult-row { grid-template-columns: 48px minmax(90px, 1fr); }
  .faq summary { padding: 15px 16px; }
  .faq details p { padding: 0 16px 16px; }
}
@media (max-width: 700px) {
  .foot { grid-template-columns: 1fr; }
  .foot-links { gap: 10px 16px; }
}

/* ---------- Motion off: finished stills ---------- */
html[data-motion="off"] .faq details[open] p { animation: none; }
