:root {
  --bg: #0a0c10; --panel: #12151b; --panel-2: #181c24; --line: #232833; --line-2: #313847;
  --text: #ecefe6; --muted: #9aa1a8; --faint: #636a73;
  --moss: #b4f35c; --bone: #e9e4d4; --stone: #2a2f3a; --blood: #ff4d5e; --amber: #ffb547; --ghost: #8fb3ff;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --display: 'Unbounded', 'Inter', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.moss { color: var(--moss); }
.muted { color: var(--muted); }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--moss); margin: 0 0 12px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--muted); } .bar nav a:hover { color: var(--text); }
@media (max-width: 560px) { .hide-sm { display: none; } }

/* hero */
.hero { padding: 64px 0 28px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -30% -20% auto; height: 520px; pointer-events: none;
  background: radial-gradient(420px 200px at 78% 30%, rgba(233,228,212,.10), transparent 70%), radial-gradient(560px 240px at 20% 55%, rgba(180,243,92,.11), transparent 70%); }
.hero h1 { position: relative; margin: 0 0 16px; font: 900 clamp(38px, 7vw, 74px)/1.02 var(--display); letter-spacing: -.04em; }
.lede { position: relative; margin: 0 0 28px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 680px; }
.dig { position: relative; display: flex; gap: 10px; max-width: 760px; }
.dig input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text); font: 15px var(--mono); outline: none; }
.dig input:focus { border-color: var(--moss); box-shadow: 0 0 0 3px rgba(180,243,92,.18); }
.dig button { height: 56px; padding: 0 26px; border-radius: 14px; border: 0; background: var(--moss); color: #10140a; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.dig button:hover { filter: brightness(1.06); } .dig button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) { .dig { flex-direction: column; } .dig input { flex: none; width: 100%; } .dig button { width: 100%; } }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }
.chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font: 12px var(--mono); color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--muted); } .chip:disabled { opacity: .6; cursor: wait; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 8px var(--moss); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* progress */
#out { padding-top: 8px; padding-bottom: 12px; scroll-margin-top: 70px; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.steps li { font: 12px var(--mono); padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); color: var(--faint); }
.steps li small { color: var(--muted); margin-left: 6px; font-size: 11px; }
.steps li[data-s="run"] { color: var(--text); border-color: var(--moss); }
.steps li[data-s="run"]::before { content: '⛏ '; }
.steps li[data-s="done"] { color: var(--moss); }
.steps li[data-s="done"]::before { content: '✓ '; }
.err { padding: 14px 16px; border-radius: 12px; background: rgba(255,77,94,.08); border: 1px solid rgba(255,77,94,.35); color: #ffc1c7; margin-bottom: 18px; }

/* headline */
.head { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); padding: 28px; margin-bottom: 18px;
  background: radial-gradient(500px 220px at 85% 0%, rgba(233,228,212,.08), transparent 70%), linear-gradient(180deg, #141922, #0e1116); }
.head .who { font: 12px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.head .who a { color: var(--muted); }
.head h2 { margin: 10px 0 2px; font: 900 clamp(30px, 6vw, 56px)/1.05 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.head .line { color: var(--muted); margin: 0 0 22px; }
.stats { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat.wide { grid-column: span 2; } }
@media (max-width: 520px) { .head { padding: 20px 16px; border-radius: 18px; } }
.stat { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.stat b { display: block; font: 700 clamp(22px, 3.4vw, 32px)/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat > span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.stat .arrow { color: var(--faint); font-weight: 500; }
.b-dead { color: var(--bone); } .b-red { color: var(--blood); } .b-moss { color: var(--moss); } .b-amber { color: var(--amber); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fact { font-size: 13px; padding: 7px 11px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); }
.fact b { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--moss); color: #10140a; border-color: transparent; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 calc(50% - 10px); justify-content: center; } }

/* sections */
.sec { margin: 30px 0 8px; }
.sec h3 { margin: 0 0 4px; font: 700 20px var(--display); letter-spacing: -.02em; }
.sec .sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.yard { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .yard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.stone { position: relative; text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 14px;
  border-radius: 80px 80px 12px 12px; background: linear-gradient(180deg, #2c323e, #1c2029); border: 1px solid #3a4150; min-width: 0;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 10px 0 -4px #1a1e14; transition: transform .15s; }
.stone:hover { transform: translateY(-3px); }
.stone.fossil { background: linear-gradient(180deg, #353028, #211e19); border-color: #4b4234; }
.stone .rip { font: 700 11px var(--display); letter-spacing: .2em; color: var(--faint); }
.stone img, .stone .noimg { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; margin: 8px 0; filter: grayscale(.85) sepia(.15); opacity: .9; border: 2px solid #3d4452; background: #0f1218; }
.stone .sym { font: 700 15px var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stone .dd { font: 600 13px var(--mono); color: var(--blood); margin-top: 2px; }
.stone .pv { font: 12px var(--mono); color: var(--muted); margin-top: 6px; }
.stone .ep { font-size: 12px; color: var(--bone); opacity: .8; margin-top: 8px; font-style: italic; line-height: 1.35; }
.stone .dates { font: 10px var(--mono); color: var(--faint); margin-top: 8px; }
.stone .tag { position: absolute; top: 10px; right: 12px; font: 600 9px var(--mono); color: #c9b48a; letter-spacing: .1em; }
.more { margin-top: 12px; }
.rows { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-child { border-top: 0; }
.row:hover { background: rgba(255,255,255,.02); }
.row img, .row .noimg { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #0f1218; }
.row .nm { min-width: 0; } .row .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm small { color: var(--faint); font: 11px var(--mono); }
.row .v { font: 13px var(--mono); text-align: right; }
.row .d { font: 600 12px var(--mono); text-align: right; min-width: 64px; }
@media (max-width: 480px) { .row { grid-template-columns: 32px minmax(0, 1fr) auto; } .row .v { display: none; } }
.rent { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: var(--panel); }
.rent .big { font: 900 34px/1 var(--display); color: var(--moss); }
.rent .big small { font: 600 14px var(--mono); color: var(--muted); margin-left: 4px; }
.rent p { margin: 0; color: var(--muted); font-size: 14px; }
.rent p b { color: var(--text); }
@media (max-width: 520px) { .rent { grid-template-columns: 1fr; } }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }
.empty b { display: block; font: 700 20px var(--display); color: var(--text); margin-bottom: 6px; }
.note { font-size: 13px; color: var(--faint); margin-top: 12px; }

/* shared section header */
.small { font-size: 13px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font: 700 clamp(22px, 3.4vw, 30px) var(--display); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blood); box-shadow: 0 0 10px var(--blood); animation: pulse 1.6s infinite; }
.since { margin: -8px 0 18px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,181,71,.35); background: rgba(255,181,71,.07); color: var(--bone); font-size: 14px; }
.since b { color: var(--amber); }

/* today's cemetery */
.today { padding-top: 26px; padding-bottom: 8px; }
.tstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: stretch; }
.tstats .stat b small { font-size: .55em; color: var(--muted); }
.spark { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.spark svg { display: block; max-width: 100%; height: auto; }
.spark figcaption { font: 11px var(--mono); color: var(--faint); }
@media (max-width: 980px) { .tstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spark { grid-column: span 2; } }
.tsub { margin: 26px 0 4px; font: 700 20px var(--display); letter-spacing: -.02em; }
.today .sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.today-yard { margin-bottom: 14px; }
.stone.mini .ep { font-size: 11px; }

/* your yards */
.yards { padding-top: 22px; }
.yard-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.yrow { position: relative; min-width: 0; }
.ydig { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px 40px 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; }
.ydig:hover { border-color: var(--moss); }
.ydig .yw { font: 11px var(--mono); color: var(--faint); }
.ydig .yt { font: 700 16px var(--display); letter-spacing: -.01em; }
.ydig .yn { font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.ydig .yn b { color: var(--bone); }
.ydig .ya { font: 11px var(--mono); color: var(--faint); }
.ydel { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 18px; line-height: 1; }
.ydel:hover { color: var(--blood); background: rgba(255,77,94,.08); }
.skel.short { height: 120px; }

/* how */
.how { padding: 56px 20px 40px; }
.how h2 { margin: 0 0 18px; font: 700 clamp(24px, 4vw, 34px) var(--display); letter-spacing: -.02em; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.how-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.how-grid h3 { margin: 0 0 6px; font-size: 15px; }
.how-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.fine { color: var(--faint); font-size: 13px; margin-top: 18px; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--faint); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--bone); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; }
.skel { height: 220px; border-radius: 22px; background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* trading PnL */
.pnl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pnl-top h3 { margin-bottom: 2px; }
.pnl-hero { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 12px; margin-top: 12px; }
@media (max-width: 820px) { .pnl-hero { grid-template-columns: 1fr; } }
.pnl-big { padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.pnl-big .lbl { font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); background: var(--stone); align-self: flex-start; padding: 6px 8px; border-radius: 6px; }
.pnl-big b { font: 900 clamp(34px, 5vw, 48px)/1.05 var(--display); letter-spacing: -.03em; margin-top: 10px; }
.pnl-big .sol { font: 600 15px var(--mono); }
.pnl-big p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.pnl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .pnl-tiles { grid-template-columns: 1fr 1fr; } }
.pt { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pt b { font: 700 clamp(18px, 2.4vw, 24px)/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pt span { color: var(--muted); font-size: 12.5px; }
.plists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 820px) { .plists { grid-template-columns: 1fr; } }
.plist { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.plist h4 { margin: 0 0 6px; font: 700 14px var(--display); letter-spacing: -.01em; }
.plist .none { color: var(--faint); font-size: 13.5px; margin: 6px 0; }
.prow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; }
.prow:first-of-type { border-top: 0; }
.prow img, .prow .noimg { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.prow .nm { min-width: 0; } .prow .nm b { display: block; font-size: 14px; }
.prow .nm small { display: block; color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pv { font: 700 14px var(--mono); white-space: nowrap; }
.prow:hover .nm b { text-decoration: underline; }
.b-amber { color: var(--amber); }
