/* 13TH v2 — warm paper, ink, acid lime, violet, coral, sun. Bold blocks, big numerals. Motion = transform/opacity only. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jbmono.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f4f1e8;
  --card: #ffffff;
  --ink: #101211;
  --text: #2a2d2b;
  --mute: #747970;
  --line: rgba(16, 18, 17, 0.1);
  --line2: rgba(16, 18, 17, 0.2);
  --lime: #c8f53c;
  --lime2: #a9e11a;
  --violet: #6b4eff;
  --coral: #ff5c39;
  --sun: #ffc83a;
  --mint: #c9f3da;
  --lilac: #e6defe;
  --peach: #ffe0d3;
  --butter: #fff0b0;
  --sky: #d5ecff;
  --up: #0f9d58;
  --down: #e5401f;
  --disp: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 28px;
  --shadow: 0 1px 0 rgba(16, 18, 17, 0.04), 0 14px 40px rgba(16, 18, 17, 0.07);
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: light; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 500 15px/1.5 var(--sans); color: var(--text); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; padding-bottom: 120px; overflow-x: hidden; }
body.booting .view, body.booting .dock { opacity: 0; }
a { color: var(--violet); text-decoration: none; font-weight: 600; }
a:hover { color: var(--ink); }
b, strong { font-weight: 700; color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.02em; font-weight: 500; }
.muted { color: var(--mute); }
.small { font-size: 13px; }
.r { text-align: right; }
.goldt { color: var(--violet); }
[hidden] { display: none !important; }

.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 6% 4%, rgba(200, 245, 60, 0.5), transparent 70%),
    radial-gradient(560px 460px at 96% 12%, rgba(107, 78, 255, 0.16), transparent 70%),
    radial-gradient(700px 520px at 78% 92%, rgba(255, 92, 57, 0.13), transparent 70%),
    radial-gradient(600px 500px at 10% 86%, rgba(255, 200, 58, 0.2), transparent 70%),
    var(--bg); }

/* ---------- top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1440px; margin: 0 auto; padding: 20px 28px 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.mark { display: inline-flex; align-items: flex-start; gap: 3px; padding: 7px 12px 8px 13px; border-radius: 16px; background: var(--ink); transform: rotate(-3deg); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover .mark { transform: rotate(3deg) scale(1.05); }
.mark b { font: 800 30px/1 var(--disp); letter-spacing: -0.04em; color: var(--lime); }
.mark i { font: 800 11px/1 var(--sans); font-style: normal; letter-spacing: 0.06em; color: #fff; margin-top: 3px; }
.motto { font: 700 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.topmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font: 700 13px/1 var(--sans); color: var(--ink); background: var(--card); box-shadow: var(--shadow); white-space: nowrap; }
a.pill:hover { background: var(--ink); color: #fff; }
.pill.net { background: var(--coral); color: #fff; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; box-shadow: none; }
.pill.ca { font-family: var(--mono); font-size: 12px; cursor: pointer; }
.clockin { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px 0 14px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font: 800 14px/1 var(--sans); transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1); }
.clockin:hover { transform: translateY(-2px) rotate(-1.5deg); }
.clockin .seal { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 245, 60, 0.25); }
.clockin.on { background: var(--lime); color: var(--ink); font-family: var(--mono); font-weight: 700; }
.clockin.on .seal { background: var(--ink); box-shadow: 0 0 0 4px rgba(16, 18, 17, 0.12); }

/* ---------- ticker */
.ticker { overflow: hidden; background: var(--violet); color: #fff; transform: rotate(-0.6deg) scale(1.01); margin: 4px 0 22px; }
.tape { display: inline-flex; gap: 0; white-space: nowrap; padding: 11px 0; animation: tape 60s linear infinite; will-change: transform; }
.tape span { font: 700 13px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; padding: 0 22px; }
.tape span b { color: var(--lime); font-weight: 800; }
.tape span i { font-style: normal; color: var(--sun); margin-right: 22px; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- dock */
.dock { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 24px; background: #fff; box-shadow: 0 2px 0 rgba(16, 18, 17, 0.06), 0 20px 50px rgba(16, 18, 17, 0.22); transition: opacity 0.3s ease; }
.dock a { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 18px; color: var(--mute); font: 700 13.5px/1 var(--sans); transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; }
.dock a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover { color: var(--ink); transform: translateY(-2px); }
.dock a.on { color: var(--lime); background: var(--ink); }

/* ---------- views */
.view { max-width: 1440px; margin: 0 auto; padding: 0 28px; transition: opacity 0.3s ease; }
.eyebrow { font: 800 11.5px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.eyebrow.ok { color: var(--up); }
.eyebrow.bad { color: var(--down); }
.card { position: relative; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); padding: 26px; min-width: 0; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }

/* the clock card */
.clock { grid-column: span 8; padding: 28px 32px 30px; overflow: hidden; color: var(--ink); background: linear-gradient(135deg, #d9fb5a 0%, var(--lime) 45%, #b4ea24 100%); transition: background-color 0.4s ease; isolation: isolate; }
.clock::before { content: ""; position: absolute; right: -160px; top: -160px; width: 720px; height: 720px; border-radius: 50%; z-index: -1; background: repeating-radial-gradient(circle, rgba(16, 18, 17, 0.045) 0 2px, transparent 2px 26px); }
.clock.idle { background: linear-gradient(135deg, #efe8ff, var(--lilac)); }
.clock.due { background: linear-gradient(135deg, #ffd95e, var(--sun) 50%, #ffb21f); }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font: 800 12px/1 var(--sans); letter-spacing: 0.12em; }
.livedot { display: inline-flex; align-items: center; gap: 8px; font: 800 11.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.livedot i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; transform: scale(0.8); } }
.cbody { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-top: 6px; }
.time { font: 800 clamp(96px, 13.2vw, 212px)/0.86 var(--disp); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; margin-left: -6px; white-space: nowrap; }
.time.word { font-size: clamp(64px, 8.4vw, 136px); letter-spacing: -0.045em; }
.time.pop { animation: pop 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); }
@keyframes pop { 0% { transform: scale(0.94); } 55% { transform: scale(1.035); } 100% { transform: none; } }
.clock.due .time { animation: shake 0.7s ease-in-out infinite; }
@keyframes shake { 25% { transform: rotate(-1.2deg) scale(1.01); } 75% { transform: rotate(1.2deg) scale(1.01); } }
.sub { margin-top: 16px; font: 700 16px/1.35 var(--sans); max-width: 44ch; min-height: 44px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); font: 700 12.5px/1 var(--sans); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend i.up { background: var(--up); }
.legend i.down { background: var(--down); }

/* the ring: 45 chunky segments and a marker that jumps with every trade */
.ring { position: relative; width: clamp(240px, 24vw, 360px); aspect-ratio: 1; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ticks line { stroke: var(--ink); stroke-width: 9; stroke-linecap: round; opacity: 0.13; transition: opacity 0.35s ease; }
.ticks line.lit { opacity: 1; }
.hand { position: absolute; inset: 0; transition: transform 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); will-change: transform; pointer-events: none; }
.hand i { position: absolute; left: 50%; top: 0; width: 15%; aspect-ratio: 1; margin-left: -7.5%; border-radius: 50%; background: var(--ink); box-shadow: 0 8px 18px rgba(16, 18, 17, 0.3); }
.hand i::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: var(--lime); }
.clock.due .hand i::after { background: var(--coral); }
.clock.idle .hand { opacity: 0.3; }
.ringc { position: absolute; inset: 22%; border-radius: 50%; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 18px 40px rgba(16, 18, 17, 0.28); }
.ringc span { font: 800 10px/1 var(--sans); letter-spacing: 0.18em; color: var(--lime); }
.ringc b { font: 800 clamp(40px, 4.4vw, 68px)/0.95 var(--disp); letter-spacing: -0.04em; color: #fff; margin: 6px 0 8px; }
.ringc b small { font-size: 0.45em; color: rgba(255, 255, 255, 0.55); letter-spacing: 0; margin-left: 2px; }
.pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 78%; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.pips i.done { background: var(--lime); }
.pips i.cur { background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
.chips { position: absolute; right: 30px; top: 74px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.chip { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 12px 30px rgba(16, 18, 17, 0.22); font: 700 13px/1 var(--sans); color: var(--ink); white-space: nowrap; animation: chip 4.6s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.chip b { padding: 6px 11px; border-radius: 999px; font: 800 13px/1 var(--mono); color: #fff; }
.chip.up b { background: var(--up); }
.chip.down b { background: var(--down); }
@keyframes chip { 0% { opacity: 0; transform: translateX(40px) scale(0.8) rotate(4deg); } 8% { opacity: 1; transform: none; } 86% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px) scale(0.92); } }
.confetti { position: absolute; left: 50%; top: 46%; width: 0; height: 0; z-index: 4; pointer-events: none; }
.confetti i { position: absolute; width: 12px; height: 18px; border-radius: 3px; opacity: 0; animation: fly 2.4s cubic-bezier(0.12, 0.7, 0.3, 1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(0.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }

/* the bank card */
.bank { grid-column: span 4; display: flex; flex-direction: column; }
.money { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.money b { font: 800 clamp(48px, 5vw, 76px)/0.9 var(--disp); letter-spacing: -0.05em; color: var(--ink); }
.money b.pop { animation: pop 0.45s cubic-bezier(0.3, 1.7, 0.5, 1); display: inline-block; }
.money small { font: 800 14px/1 var(--sans); letter-spacing: 0.1em; color: var(--mute); }
.usd { color: var(--mute); margin-top: 8px; min-height: 22px; font-weight: 600; }
.bar { display: flex; gap: 4px; height: 22px; margin: 18px 0 6px; }
.bar i { border-radius: 8px; min-width: 10px; flex: 1 1 0; }
.bar .b1, .dot.b1 { background: var(--violet); }
.bar .b2, .dot.b2 { background: var(--coral); }
.bar .b3, .dot.b3 { background: var(--sun); }
.splits li { display: grid; grid-template-columns: 14px 1fr auto; gap: 2px 10px; align-items: center; padding: 13px 0; border-bottom: 1.5px dashed var(--line2); }
.splits li:last-child { border-bottom: 0; padding-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 4px; }
.splits span { font: 800 14.5px/1.2 var(--sans); color: var(--ink); }
.splits b { font: 800 22px/1 var(--disp); letter-spacing: -0.03em; }
.splits em { grid-column: 2 / -1; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--mute); line-height: 1.35; }

/* row two */
.ledger { grid-column: span 5; }
.fund { grid-column: span 3; background: var(--butter); display: flex; flex-direction: column; }
.fund .bignum { font-size: clamp(36px, 3.3vw, 52px); }
.staff { grid-column: span 4; background: var(--lilac); display: flex; flex-direction: column; }
.bignum { font: 800 clamp(44px, 4.6vw, 68px)/0.95 var(--disp); letter-spacing: -0.05em; color: var(--ink); margin: 12px 0 6px; }
.bignum small { font: 800 14px/1 var(--sans); letter-spacing: 0.08em; color: var(--mute); margin-left: 8px; }
.cardp { font-size: 13.5px; color: var(--text); line-height: 1.45; }
.dots13 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 16px 0 14px; }
.dots13 i { aspect-ratio: 1; border-radius: 50%; background: rgba(16, 18, 17, 0.1); display: grid; place-items: center; font: 800 11px/1 var(--sans); font-style: normal; color: rgba(16, 18, 17, 0.4); }
.dots13 i.done { background: var(--ink); color: var(--lime); }
.dots13 i.cur { background: var(--coral); color: #fff; animation: bob 1.6s ease-in-out infinite; }
.dots13 i.last { outline: 2.5px dashed var(--ink); outline-offset: 2px; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.avs { display: flex; margin: 14px 0 12px; padding-left: 10px; }
.av { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--lilac); margin-left: -10px; flex: none; }
.av.more { display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 12px/1 var(--sans); font-style: normal; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 14px; }
.facts div { padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.65); }
.facts b { display: block; font: 800 24px/1 var(--disp); letter-spacing: -0.03em; }
.facts span { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--mute); }
.cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 800 13.5px/1 var(--sans); color: var(--ink); }
.cta:hover { color: var(--violet); }

.feed { margin-top: 12px; }
.feed li { display: grid; grid-template-columns: 30px 82px 1fr auto 30px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); font-size: 13.5px; animation: rowin 0.4s ease both; }
.feed li:last-child { border-bottom: 0; }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); } }
.feed .av { width: 28px; height: 28px; border: 0; margin: 0; }
.feed li.none { display: block; padding: 26px 0; color: var(--mute); font-weight: 600; font-size: 15px; max-width: 34ch; }
.feed li a { color: var(--ink); font-weight: 600; }
.feed li span { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li em { justify-self: end; padding: 5px 10px; border-radius: 999px; font: 800 12px/1 var(--mono); font-style: normal; }
.feed li.up em { background: var(--mint); color: #0a6b3b; }
.feed li.down em { background: var(--peach); color: #b12c10; }
.feed li time { color: var(--mute); font-size: 12px; text-align: right; }

/* band: where it trades */
.band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; margin: 18px 0 0; border-radius: var(--r); background: var(--ink); color: #fff; }
.band .eyebrow { color: var(--lime); }
.band .ca { display: block; margin-top: 10px; color: #fff; font-size: 15px; word-break: break-all; font-weight: 600; }
.band nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* the reel: the owner's clip, looping */
.reel { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.7fr); gap: 28px; align-items: center; margin: 18px 0 0; padding: 26px 26px 26px 34px; border-radius: var(--r); background: #f3ebd9; box-shadow: var(--shadow); }
.reel h2 { margin: 12px 0 12px; font: 800 clamp(34px, 3.8vw, 56px)/0.95 var(--disp); letter-spacing: -0.05em; color: var(--ink); }
.reel p { font-size: 16px; max-width: 38ch; }
.reelv { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 22px; background: #f3ebd9; }

/* blocks */
.block { margin: 46px 0 0; }
.bh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.bh h2, .doc h2 { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--disp); color: var(--ink); letter-spacing: -0.04em; }
.bh a { font-size: 14px; font-weight: 800; color: var(--ink); }
.bh a:hover { color: var(--violet); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { display: block; padding: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); color: var(--text); font-weight: 500; transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.pcard:nth-child(4n + 1) { background: var(--mint); }
.pcard:nth-child(4n + 2) { background: var(--sky); }
.pcard:nth-child(4n + 3) { background: var(--peach); }
.pcard:nth-child(4n + 4) { background: var(--lilac); }
.pcard:hover { transform: translateY(-5px) rotate(-1.2deg); color: var(--text); }
.pcard .no { display: flex; justify-content: space-between; align-items: center; font: 800 12px/1 var(--sans); letter-spacing: 0.1em; color: var(--ink); }
.pcard .no em { font-style: normal; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px; color: var(--lime); background: var(--ink); }
.pcard .amt { margin: 14px 0 8px; font: 800 12px/1 var(--sans); letter-spacing: 0.1em; color: var(--mute); }
.pcard .amt b { font: 800 38px/1 var(--disp); letter-spacing: -0.045em; margin-right: 4px; }
.pcard .ln { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard time { display: block; margin-top: 12px; font: 500 11.5px/1 var(--mono); color: var(--mute); }
.pcard.rolled { background: var(--card); }
.pcard.rolled .amt b { color: var(--mute); }
.pcard.thirteenth { background: var(--sun); }
.empty { color: var(--mute); padding: 18px 0; font-weight: 600; }
.how { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.how article { padding: 22px 20px 24px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.how article:hover { transform: translateY(-5px); }
.how i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font: 800 22px/1 var(--disp); font-style: normal; color: var(--ink); background: var(--lime); transform: rotate(-4deg); }
.how article:nth-child(2) i { background: var(--sky); transform: rotate(3deg); }
.how article:nth-child(3) i { background: var(--coral); color: #fff; }
.how article:nth-child(4) i { background: var(--sun); transform: rotate(4deg); }
.how article:nth-child(5) i { background: var(--violet); color: #fff; }
.how h3 { margin: 16px 0 8px; font: 800 21px/1.1 var(--disp); letter-spacing: -0.03em; color: var(--ink); }
.how p { font-size: 13.5px; color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border: 0; border-radius: 16px; font: 800 14.5px/1 var(--sans); color: var(--ink); background: var(--lime); box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--ink); }
.btn.line { height: 42px; background: #fff; box-shadow: none; }
.btn.line:hover { background: var(--lime); box-shadow: none; }
.ghost { height: 48px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--ink); background: none; font-weight: 800; font-size: 14px; }
.ghost:hover { background: var(--ink); color: #fff; }

/* documents and tables */
.doc { max-width: 880px; margin: 0 auto; padding: 14px 0 30px; }
.doc.wide { max-width: 1180px; }
.doc h1 { margin: 12px 0 16px; font: 800 clamp(46px, 6.4vw, 88px)/0.92 var(--disp); letter-spacing: -0.055em; color: var(--ink); }
.doc h2 { margin: 42px 0 14px; font-size: clamp(26px, 2.6vw, 34px); }
.lead { font-size: 18px; line-height: 1.45; color: var(--text); max-width: 66ch; font-weight: 500; }
.prose p { margin-top: 12px; max-width: 70ch; font-size: 15.5px; }
.prose ul { margin: 12px 0 0; }
.prose li { position: relative; padding: 6px 0 6px 26px; max-width: 70ch; font-size: 15.5px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); border: 2px solid var(--ink); }
code { font: 600 0.88em var(--mono); padding: 3px 8px; border-radius: 8px; background: var(--ink); color: var(--lime); }
.note { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: var(--butter); font-size: 14px; font-weight: 600; color: var(--ink); }
.tablewrap { margin-top: 18px; border-radius: 24px; overflow-x: auto; background: var(--card); box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 16px 18px 13px; text-align: left; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl th.r { text-align: right; }
.tbl td { padding: 13px 18px; border-bottom: 1.5px dashed var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.link { cursor: pointer; }
.tbl tr.link:hover td { background: rgba(200, 245, 60, 0.28); }
.tbl tr.me td { background: rgba(200, 245, 60, 0.45); }
.tbl tr.dim td { color: var(--mute); }
.tbl.kv td:first-child { color: var(--mute); width: 200px; font-weight: 700; }
.tbl td.empty { text-align: center; padding: 34px; }
.tag { display: inline-block; margin-right: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(16, 18, 17, 0.07); font: 800 11.5px/1 var(--sans); font-style: normal; color: var(--text); }
.tag.up { background: var(--mint); color: #0a6b3b; }
.tag.down { background: var(--peach); color: #b12c10; }
.tag.gold { background: var(--sun); color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.tiles div { padding: 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.tiles div:nth-child(1) { background: var(--lime); }
.tiles div:nth-child(2) { background: var(--lilac); }
.tiles div:nth-child(3) { background: var(--peach); }
.tiles div:nth-child(4) { background: var(--butter); }
.tiles span { display: block; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.tiles b { display: block; margin: 14px 0 8px; font: 800 clamp(22px, 2.3vw, 34px)/1 var(--disp); letter-spacing: -0.045em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text); }
.verify { margin-top: 18px; padding: 20px 24px; border-radius: 24px; background: var(--ink); color: #e9ece6; }
.verify .eyebrow.ok { color: var(--lime); }
.verify ul { margin-top: 12px; }
.verify li { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.verify li i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }
.verify li.bad i { background: var(--coral); }
.verify li.bad { color: var(--coral); }
.tickets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tickets span { display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 13px; }
.tickets span.win { background: var(--lime); box-shadow: 0 3px 0 var(--ink); }
.tickets i { font-style: normal; }

/* the pay stub: a ticket with a torn edge */
.stub { margin-top: 10px; border-radius: 30px; background: var(--card); box-shadow: 0 2px 0 rgba(16, 18, 17, 0.06), 0 30px 70px rgba(16, 18, 17, 0.12); overflow: hidden; }
.stub header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; background: var(--lime); border-bottom: 3px dashed var(--ink); }
.stub header .eyebrow { color: var(--ink); }
.stub .addr { margin-top: 8px; color: var(--ink); font-size: 14px; word-break: break-all; cursor: pointer; font-weight: 600; }
.stamp { flex: none; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 12px; font: 800 11.5px/1 var(--sans); letter-spacing: 0.12em; color: var(--ink); transform: rotate(-5deg); background: #fff; }
.stubrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-bottom: 1.5px dashed var(--line2); }
.stubrow div { padding: 22px 28px; border-right: 1.5px dashed var(--line2); min-width: 0; }
.stubrow div:last-child { border-right: 0; }
.stubrow span { display: block; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.stubrow b { display: block; margin: 12px 0 6px; font: 800 32px/1 var(--disp); letter-spacing: -0.04em; }
.stubrow b.big { font-size: 52px; color: var(--violet); }
.stubrow em { display: block; font-style: normal; font-size: 13px; font-weight: 500; color: var(--mute); }
.stub footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; background: var(--butter); }
.stub footer p { margin-top: 4px; font-size: 14px; color: var(--text); max-width: 62ch; }

/* studio */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form label { display: flex; flex-direction: column; gap: 7px; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { padding: 13px 15px; border: 2px solid var(--line2); border-radius: 14px; background: #fff; color: var(--ink); font: 600 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .row { display: flex; gap: 10px; justify-content: flex-end; }
.form .buynote { margin: 0; align-self: end; font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.preview { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; }
.preview img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); }
.log { margin-top: 12px; border-radius: 20px; max-height: 420px; overflow: auto; font: 500 12px/1.5 var(--mono); background: var(--ink); color: #dfe3db; }
.log li { padding: 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); word-break: break-word; }
.log time { color: var(--lime); margin-right: 10px; }

/* wallet sheet + toast + footer */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(16, 18, 17, 0.55); }
.sheetcard { width: min(420px, 100%); padding: 28px; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(16, 18, 17, 0.4); animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.sheetcard h3 { font: 800 38px/1 var(--disp); letter-spacing: -0.045em; color: var(--ink); margin-bottom: 10px; }
.sheetcard .muted { font-size: 14px; }
.wallets { display: grid; gap: 8px; margin: 18px 0 12px; }
.wallet { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; border: 2px solid var(--line2); border-radius: 18px; background: #fff; font-weight: 800; text-align: left; transition: transform 0.15s ease, border-color 0.15s ease; }
.wallet:hover { border-color: var(--ink); transform: translateX(4px); }
.wallet img, .wallet i { width: 32px; height: 32px; border-radius: 10px; background: var(--lilac); }
.wallets .addr { word-break: break-all; color: var(--ink); padding: 4px 0 8px; }
.sheetcard .ghost, .wallets .btn, .wallets .ghost { width: 100%; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; padding: 14px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 16px 40px rgba(16, 18, 17, 0.35); max-width: min(92vw, 520px); text-align: center; }
.toast.bad { background: var(--coral); }
.foot { max-width: 1440px; margin: 56px auto 0; padding: 22px 28px 0; border-top: 2px solid var(--ink); font-size: 13px; color: var(--mute); }
.foot p { max-width: 96ch; margin-bottom: 8px; }
.foot b { color: var(--ink); }
.foot a { color: var(--ink); }

/* ---------- smaller screens */
@media (max-width: 1180px) {
  .clock { grid-column: span 12; }
  .bank { grid-column: span 12; }
  .ledger { grid-column: span 12; }
  .fund, .staff { grid-column: span 6; }
  .how { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; padding-bottom: 104px; }
  .top { padding: 14px 14px 10px; }
  .motto, #capPill, #xPill { display: none; }
  .view { padding: 0 14px; }
  .bento { gap: 14px; }
  .card { padding: 20px; border-radius: 24px; }
  .clock { padding: 20px 20px 24px; }
  .cbody { grid-template-columns: 1fr; gap: 20px; }
  .ring { width: min(72vw, 300px); margin: 0 auto; }
  .time { font-size: clamp(84px, 27vw, 132px); }
  .time.word { font-size: clamp(54px, 17vw, 84px); }
  .sub { font-size: 14.5px; min-height: 0; }
  .chips { right: 14px; top: 62px; }
  .fund, .staff { grid-column: span 12; }
  .how { grid-template-columns: 1fr; }
  .reel { grid-template-columns: 1fr; padding: 22px 18px 18px; gap: 16px; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 4px 14px 14px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .pcard { flex: 0 0 72%; scroll-snap-align: center; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stubrow { grid-template-columns: 1fr; }
  .stubrow div { border-right: 0; border-bottom: 1.5px dashed var(--line2); padding: 16px 20px; }
  .stubrow div:last-child { border-bottom: 0; }
  .stub header, .stub footer { padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .form { grid-template-columns: 1fr; }
  .dock { bottom: 12px; gap: 0; padding: 5px; max-width: calc(100vw - 16px); }
  .dock a { padding: 0 11px; height: 48px; flex-direction: column; justify-content: center; gap: 4px; font-size: 10px; }
  .dock a svg { width: 18px; height: 18px; }
  .foot { padding: 20px 14px 0; }
  .feed li { grid-template-columns: 28px 76px 1fr auto; }
  .feed li time { display: none; }
  .band { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hand { transition: none; }
  .tape, .chip, .clock.due .time, .pips i.cur, .dots13 i.cur, .livedot i, .feed li, .confetti i { animation: none; }
}
