:root {
  color-scheme: light;
  --paper: #f1efe7;
  --paper-deep: #e6e2d6;
  --surface: #ecebe1;
  --surface-green: #dfe5ce;
  --ink: #20231e;
  --muted: #696c64;
  --moss: #6f8057;
  --moss-dark: #3e4938;
  --lime: #c9f254;
  --coral: #c97864;
  --line: rgba(32, 35, 30, .17);
  --line-strong: rgba(32, 35, 30, .26);
  --max: 1240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.68; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(111, 128, 87, .38); outline-offset: 3px; }
code { font: 650 .88em ui-monospace, SFMono-Regular, Consolas, monospace; color: #394433; background: #e1e2d6; border: 1px solid var(--line); border-radius: 5px; padding: .16em .42em; overflow-wrap: anywhere; }

.topbar { height: 76px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(241, 239, 231, .9); backdrop-filter: blur(18px); }
.topbar:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--moss) 0 28%, transparent 28%); opacity: .7; }
.topbar-inner { width: min(var(--max), calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.035em; }
.docs-mark { position: relative; width: 31px; height: 31px; display: inline-block; flex: 0 0 auto; }
.docs-mark:before, .docs-mark:after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 1.5px; }
.docs-mark:before { left: 3px; top: 1px; background: var(--ink); box-shadow: 9px 0 var(--ink), 0 9px var(--ink), 9px 9px var(--ink), 18px 9px var(--ink), 0 18px var(--ink), 0 27px var(--ink); }
.docs-mark:after { left: 21px; top: 1px; background: var(--lime); }
.brand small { padding-left: 11px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.top-links { height: 100%; display: flex; align-items: center; gap: 29px; color: #555b53; font-size: 14px; font-weight: 700; }
.top-links > a:not(.open-app):hover { color: var(--moss-dark); }
.open-app { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #1f241e; border-radius: 8px; background: #1f241e; color: #f1efe7; font-weight: 800; transition: transform .18s, background .18s; }
.open-app span { color: var(--lime); font-size: 17px; line-height: 1; }
.open-app:hover { transform: translateY(-1px); background: #30382e; }

.layout { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 205px minmax(0, 790px) 170px; gap: clamp(30px, 4vw, 56px); }
.sidebar, .toc { position: sticky; top: 106px; height: max-content; padding-top: 46px; }
.sidebar small, .toc small { display: block; margin: 0 0 10px; color: #7b8077; font: 800 10px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.sidebar nav, .toc nav { display: grid; gap: 2px; margin-bottom: 29px; }
.sidebar a, .toc a { color: #62675f; font-size: 13px; line-height: 1.3; padding: 7px 0; transition: color .16s, padding .16s; }
.sidebar a:hover, .toc a:hover { color: var(--ink); }
.sidebar a.active, .toc a.active { color: var(--ink); font-weight: 800; }
.sidebar a.active { padding-left: 12px; border-left: 2px solid var(--moss); }

.content { min-width: 0; padding: 72px 0 115px; }
.breadcrumbs { margin-bottom: 38px; color: #858981; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.breadcrumbs span { color: var(--moss-dark); }
.eyebrow { margin: 0 0 17px; color: var(--moss-dark); font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; }
h1, h2, h3 { color: var(--ink); line-height: 1.06; letter-spacing: -.05em; }
h1 { max-width: 720px; margin: 0 0 24px; font-size: clamp(48px, 5.3vw, 76px); font-weight: 590; }
h2 { margin: 0 0 20px; font-size: clamp(35px, 3.4vw, 48px); font-weight: 610; }
h3 { margin: 36px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.035em; }
.lede { max-width: 710px; margin: 0 0 38px; color: #646961; font-size: 20px; line-height: 1.58; }
.content p, .content li { color: #666b63; }
.content strong { color: var(--ink); }
.content ul { padding-left: 21px; }
.content li { margin: 9px 0; padding-left: 5px; }
.content li::marker { color: var(--moss); }

.notice { margin: 28px 0; padding: 19px 21px; border: 1px solid rgba(88, 104, 68, .27); border-radius: 10px; background: var(--surface-green); }
.notice b { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #445238; font: 800 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.notice b i { width: 8px; height: 8px; background: #8ca24e; border-radius: 2px; box-shadow: 0 0 0 4px rgba(140, 162, 78, .13); }
.notice p { margin: 0; color: #56604f; font-size: 14px; }

.section { margin-top: 72px; padding-top: 54px; border-top: 1px solid var(--line); }
.steps { display: grid; gap: 10px; margin: 26px 0; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 18px 19px; border: 1px solid var(--line); border-radius: 9px; background: rgba(236, 235, 225, .78); transition: background .16s, transform .16s; }
.step:hover { transform: translateX(3px); background: #e7e8dc; }
.step-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(79, 94, 61, .2); border-radius: 12px; background: #dce5c5; color: #45523a; transition: transform .2s ease, background .2s ease; }
.step:hover .step-icon { transform: rotate(-3deg) scale(1.04); background: #d2dfb6; }
.step-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.step b, .step small { display: block; }
.step b { font-size: 14px; }
.step small { margin-top: 3px; color: #747970; font-size: 13px; line-height: 1.5; }

.permission-table { margin: 24px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(236, 235, 225, .46); }
.permission-table > div { display: grid; grid-template-columns: minmax(170px, .95fr) minmax(0, 1.8fr); gap: 23px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.permission-table > div:last-child { border-bottom: 0; }
.permission-table b { color: #394135; font: 750 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.permission-table span { color: #6d726a; font-size: 13px; line-height: 1.5; }

.network-card { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 20px; margin: 24px 0; padding: 19px; border: 1px solid var(--line-strong); border-radius: 10px; background: #e5e4d8; }
.network-card small, .token-card small { display: block; margin-bottom: 4px; color: #777d73; font: 800 9px ui-monospace, monospace; letter-spacing: .12em; }
.network-card b { font-size: 14px; }
.network-card a { padding: 10px 13px; border-radius: 7px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 800; }
.network-card a span { color: var(--lime); }

.reward-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin: 29px 0 35px; }
.reward-summary article { min-height: 185px; padding: 21px; border: 1px solid rgba(34, 39, 31, .22); border-radius: 10px; background: #242a22; color: #f0efe6; }
.reward-summary article:nth-child(2) { background: #4f5e44; }
.reward-summary article:nth-child(3) { background: #dce7be; color: var(--ink); }
.reward-summary small { display: block; margin-bottom: 5px; color: #dce3d6; font: 750 11px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .06em; }
.reward-summary article:nth-child(3) small, .reward-summary article:nth-child(3) p { color: #4d5a45; }
.content .reward-summary strong { display: block; margin: 15px 0 12px; color: inherit; font: 760 40px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.045em; }
.reward-summary p { margin: 0; color: #e0e5dc; font-size: 14px; line-height: 1.48; }
.token-card { margin: 24px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #e6e5da; }
.token-card > div:first-child { padding: 19px; border-bottom: 1px solid var(--line); }
.token-card code { display: block; width: max-content; max-width: 100%; margin-top: 9px; }
.token-card > div:last-child { display: flex; gap: 20px; padding: 13px 19px; }
.token-card a { color: #4c5d3f; font-size: 12px; font-weight: 800; }
.token-card a:hover, .text-link:hover { color: #718c43; }
.formula { margin: 22px 0; }
.formula code { display: block; padding: 17px 19px; border-left: 4px solid var(--moss); border-radius: 0 7px 7px 0; background: #e3e3d6; font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 11px; padding-bottom: 3px; border-bottom: 1px solid #788b5b; color: #4d603d; font-size: 15px; font-weight: 800; }

.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; margin: 25px 0; }
.status-card { padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: #e8e8dc; }
.status-card.wide { grid-column: 1 / -1; }
.status-card b, .status-card small { display: block; }
.status-card b { font-size: 13px; }
.status-card small { margin-top: 6px; color: #747970; font-size: 12px; }
.link-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.link-card { padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: transparent; transition: background .16s, transform .16s; }
.link-card:hover { transform: translateY(-2px); background: #e6e6da; }
.link-card b, .link-card small { display: block; }
.link-card span { float: right; color: var(--moss); font-size: 17px; }
.link-card small { margin-top: 4px; color: #797e75; font-size: 12px; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 78px; padding: 25px 0; border-top: 1px solid var(--line); color: #7a7f76; font-size: 12px; }

.simple-layout { width: min(820px, calc(100% - 40px)); margin: auto; }
.simple-layout.content { padding-top: 70px; }
.simple-layout ul { padding-left: 21px; }
.security-card { margin: 27px 0; padding: 23px; border: 1px solid var(--line-strong); border-radius: 10px; background: #e5e6d8; }
.security-card p { margin: 6px 0; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; padding: 14px 16px; border: 1px solid #252c24; border-radius: 8px; background: #252c24; color: #f1efe7; font: 650 12px ui-monospace, monospace; overflow-wrap: anywhere; }
.copyline span { color: var(--lime); }
.tag { display: inline-flex; margin-bottom: 19px; padding: 5px 9px; border: 1px solid rgba(93, 111, 70, .28); border-radius: 5px; background: #dfe6cd; color: #4b5b3e; font: 800 10px ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1030px) {
  .layout { grid-template-columns: 185px minmax(0, 1fr); gap: 36px; }
  .toc { display: none; }
}

@media (max-width: 740px) {
  body { font-size: 15px; }
  .topbar { height: 68px; }
  .topbar-inner { width: calc(100% - 28px); }
  .top-links > a:not(.open-app) { display: none; }
  .open-app { padding: 9px 12px; font-size: 12px; }
  .layout { display: block; width: min(100% - 32px, 790px); }
  .sidebar { position: static; display: flex; gap: 17px; padding: 22px 0 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .sidebar small, .sidebar nav:not(:first-of-type) { display: none; }
  .sidebar nav { display: flex; gap: 18px; margin: 0; white-space: nowrap; }
  .sidebar a { padding: 8px 0 13px; }
  .sidebar a.active { padding-left: 0; border-left: 0; border-bottom: 2px solid var(--moss); }
  .content { padding: 46px 0 76px; }
  .breadcrumbs { margin-bottom: 30px; }
  h1 { font-size: 45px; }
  h2 { font-size: 35px; }
  .lede { font-size: 18px; }
  .permission-table > div { grid-template-columns: 1fr; gap: 5px; }
  .reward-summary { grid-template-columns: 1fr; }
  .reward-summary article { min-height: 145px; }
  .network-card { grid-template-columns: 1fr 1fr; }
  .network-card a { grid-column: 1 / -1; text-align: center; }
  .status-grid, .link-cards { grid-template-columns: 1fr; }
  .status-card.wide { grid-column: auto; }
  .footer { display: grid; }
}

@media (max-width: 460px) {
  .brand small { display: none; }
  .step { grid-template-columns: 48px 1fr; padding-inline: 14px; }
  .token-card > div:last-child { display: grid; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; }
}
