@font-face {
  font-family: "Fusion Pixel";
  src: url("./assets/fusion-pixel-zh-hans.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

:root {
  --ink: #070913;
  --panel: #101426;
  --panel-2: #171b31;
  --line: #444c79;
  --paper: #f7f3df;
  --muted: #9ca5c7;
  --yellow: #ffdc45;
  --purple: #936fff;
  --cyan: #52eadb;
  --red: #ff6578;
  --shadow: 8px 8px 0 #02030a;
  color-scheme: dark;
  font-family: "Fusion Pixel", "Courier New", monospace;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; border-radius: 0 !important; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgba(103, 70, 205, .22), transparent 31rem),
    radial-gradient(circle at 10% 38%, rgba(32, 182, 177, .09), transparent 30rem),
    linear-gradient(180deg, #080a16 0%, #090b17 45%, #060811 100%);
}

button, input { font: inherit; }
img { display: block; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 3px solid var(--line);
  border-top: 0;
  background: rgba(7, 9, 19, .94);
  box-shadow: 0 6px 0 #02030a;
  position: relative;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; letter-spacing: 2px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  background: #14182b;
  border: 3px solid var(--paper);
  box-shadow: 4px 4px 0 var(--purple);
  clip-path: polygon(6px 0, 40px 0, 40px 3px, 46px 3px, 46px 40px, 40px 40px, 40px 46px, 6px 46px, 6px 43px, 0 43px, 0 6px, 6px 6px);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.muted { color: var(--muted); }

nav { display: flex; gap: 34px; }
nav a, .text-link { color: var(--paper); text-decoration: none; font-size: .82rem; letter-spacing: 1.5px; }
nav a:hover, .text-link:hover { color: var(--yellow); text-shadow: 2px 2px 0 #624ec5; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; color: var(--cyan); background: #111426; border: 3px solid var(--line); box-shadow: 4px 4px 0 #28204d; }
.social-link > span { font-size: 1rem; line-height: 1; text-shadow: 2px 2px 0 #1b5d59; }
.social-link:hover { color: var(--ink); background: var(--cyan); border-color: var(--paper); transform: translate(2px, 2px); box-shadow: 2px 2px 0 #176d68; }

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--paper);
  box-shadow: 6px 6px 0 var(--purple);
  text-decoration: none;
  letter-spacing: 1px;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.pixel-button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--purple); }
.pixel-button:active { transform: translate(6px, 6px); box-shadow: none; }
.pixel-button:disabled { filter: grayscale(1); opacity: .45; cursor: not-allowed; }
.pixel-button.compact { min-height: 38px; padding: 0 14px; font-size: .72rem; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 70px;
  align-items: center;
  padding-block: 70px;
}
.eyebrow, .section-heading > span, .heading-row > div > span, .docs-callout > div > span {
  color: var(--cyan);
  font-size: .72rem;
  letter-spacing: 2.5px;
}
.live-dot { display: inline-block; width: 10px; height: 10px; margin-right: 9px; background: var(--cyan); box-shadow: 4px 0 0 #194c51; animation: blink 1s steps(2, end) infinite; }
.hero h1, .docs-hero h1 {
  font-family: "Fusion Pixel", monospace;
  font-size: clamp(3rem, 6.3vw, 6rem);
  line-height: 1.12;
  letter-spacing: 1px;
  margin: 32px 0;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #303654;
}
.hero h1 span, .docs-hero h1 span { display: inline-block; color: var(--yellow); text-shadow: 6px 0 0 #5c47b0, 0 6px 0 #5c47b0, 6px 6px 0 #312662; }
.hero p { max-width: 660px; color: #c9cde0; font-size: 1rem; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 34px; }

.supply-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 430px;
  padding: 34px 24px;
  background: linear-gradient(180deg, #161a31, #0e1121);
  border: 4px solid var(--line);
  box-shadow: 12px 12px 0 #02030a;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.supply-panel::before, .supply-panel::after { content: ""; position: absolute; width: 16px; height: 16px; background: var(--cyan); top: 18px; left: 18px; box-shadow: 24px 0 0 var(--purple), 48px 0 0 var(--yellow); }
.supply-panel::after { top: auto; left: auto; right: 18px; bottom: 18px; box-shadow: -24px 0 0 var(--purple), -48px 0 0 var(--yellow); }
.coin-orbit { position: absolute; top: 38px; width: 252px; height: 252px; border: 4px dashed #626b9c; animation: turn 14s steps(14, end) infinite; }
.coin-orbit i { position: absolute; width: 14px; height: 14px; background: var(--cyan); box-shadow: 4px 4px 0 #245f68; }
.coin-orbit i:nth-child(2) { left: -8px; top: -8px; }
.coin-orbit i:nth-child(3) { right: -8px; top: 105px; }
.coin-orbit i:nth-child(4) { left: 105px; bottom: -8px; }
.pixel-coin { position: absolute; inset: 23px; display: grid; place-items: center; overflow: hidden; background: transparent; animation: turn 14s steps(14, end) reverse infinite; }
.pixel-coin img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(9px 9px 0 #2c225c); }
.supply-label { color: var(--muted); font-size: .72rem; letter-spacing: 2.5px; }
.supply-panel strong { margin-top: 12px; color: var(--yellow); font-size: 1.75rem; letter-spacing: 2px; }
.supply-panel > span { margin-top: 9px; color: var(--muted); font-size: .65rem; letter-spacing: 1px; }

.ticker { overflow: hidden; width: 102%; margin-left: -1%; border-block: 4px solid var(--ink); background: var(--yellow); color: var(--ink); transform: rotate(-1deg); box-shadow: 0 5px 0 #5b45ad; }
.ticker-track { width: max-content; display: flex; animation: ticker 27s steps(220, end) infinite; }
.ticker span { position: relative; padding: 18px 54px; border-right: 4px solid var(--ink); font-size: .72rem; letter-spacing: 2.2px; white-space: nowrap; }
.ticker span::after { content: ""; position: absolute; right: -8px; top: calc(50% - 6px); width: 12px; height: 12px; background: var(--purple); border: 3px solid var(--ink); z-index: 2; }
.ticker b { font-weight: 400; }

.mine-section, .mechanism, .tokenomics { padding-block: 110px; }
.section-heading { max-width: 800px; margin-bottom: 42px; }
.mine-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); gap: 54px; align-items: end; }
.mine-heading > div:first-child { max-width: 690px; }
.mine-heading > div:first-child > span { color: var(--cyan); font-size: .72rem; letter-spacing: 2.5px; }
.network-supply { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); border: 3px solid var(--line); box-shadow: 7px 7px 0 #02030a; }
.network-supply > div { min-width: 0; padding: 17px 15px; background: #111426; }
.network-supply small, .network-supply span { display: block; color: var(--muted); font-size: .58rem; letter-spacing: 1.2px; line-height: 1.5; }
.network-supply strong { display: block; margin: 10px 0 7px; overflow: hidden; color: var(--yellow); font-size: .82rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.section-heading h2, .docs-callout h2 { margin: 14px 0; font: 400 clamp(2rem, 4vw, 3.6rem)/1.25 "Fusion Pixel", monospace; letter-spacing: 1px; text-transform: uppercase; text-shadow: 4px 4px 0 #3b2e73; }
.section-heading p { color: var(--muted); line-height: 1.9; }
.heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.docs-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; color: var(--cyan); border: 3px solid var(--cyan); box-shadow: 5px 5px 0 #193f46; text-decoration: none; font-size: .68rem; letter-spacing: 1.5px; white-space: nowrap; }
.docs-chip:hover { color: var(--ink); background: var(--cyan); transform: translate(2px, 2px); box-shadow: 3px 3px 0 #193f46; }

.miner-shell { border: 4px solid #5d648b; background: #0b0e1b; box-shadow: 12px 12px 0 #33275d; }
.miner-toolbar { height: 50px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #1c2037; border-bottom: 4px solid #5d648b; color: var(--muted); font-size: .72rem; letter-spacing: 1.5px; }
.window-dots { display: flex; gap: 8px; }
.window-dots i { width: 12px; height: 12px; background: var(--red); box-shadow: 2px 2px 0 #070912; }
.window-dots i:nth-child(2) { background: var(--yellow); }
.window-dots i:nth-child(3) { background: var(--cyan); }
.chain-badge { margin-left: auto; padding: 6px 9px; border: 2px solid var(--line); color: var(--muted); }
.chain-badge.connected { color: var(--cyan); border-color: var(--cyan); }
.miner-grid { display: grid; grid-template-columns: 390px 1fr; min-height: 560px; }
.device-column { padding: 26px; border-right: 4px solid var(--line); background: #0f1221; }
.device-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: .72rem; letter-spacing: 1.5px; }
.tiny-button { padding: 7px 8px; border: 2px solid var(--cyan); background: transparent; color: var(--cyan); cursor: pointer; font-size: .65rem; letter-spacing: 1px; }
.device-card { position: relative; width: 100%; display: grid; grid-template-columns: 56px 1fr 18px; gap: 14px; align-items: center; margin-bottom: 16px; padding: 18px 14px; color: var(--paper); background: #15192c; border: 3px solid #303654; text-align: left; cursor: pointer; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.device-card:hover, .device-card.selected { border-color: var(--yellow); background: #1b1e34; }
.device-card.selected { box-shadow: 6px 6px 0 #5945a6; }
.device-card:disabled { opacity: .4; cursor: not-allowed; }
.device-icon { display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); background: var(--cyan); font-size: .65rem; letter-spacing: 1px; clip-path: polygon(7px 0, 45px 0, 45px 7px, 52px 7px, 52px 45px, 45px 45px, 45px 52px, 7px 52px, 7px 45px, 0 45px, 0 7px, 7px 7px); }
.gpu-icon { background: var(--purple); }
.device-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.device-copy b { overflow: hidden; font-size: .76rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.device-copy small { color: var(--muted); font-size: .63rem; line-height: 1.5; }
.device-copy em { color: var(--cyan); font-size: .65rem; font-style: normal; letter-spacing: .5px; }
.radio { width: 16px; height: 16px; border: 3px solid #777e9c; }
.selected .radio { background: var(--yellow); box-shadow: inset 0 0 0 3px #15192c; }
.console-column { padding: 30px; }
.wallet-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 3px dashed var(--line); }
.wallet-row div { display: flex; flex-direction: column; gap: 7px; }
.wallet-row small, .field-label, .stats-grid small { color: var(--muted); font-size: .62rem; letter-spacing: 1.5px; }
.wallet-row strong { font-size: .74rem; font-weight: 400; letter-spacing: 1px; }
.field-label { display: block; margin: 26px 0 8px; }
.contract-row { display: grid; grid-template-columns: 1fr 64px; }
.contract-row input { width: 100%; min-width: 0; padding: 14px; color: var(--paper); background: #05070d; border: 3px solid var(--line); outline: none; }
.contract-row input:focus { border-color: var(--cyan); }
.contract-row span { display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .62rem; }
.pixel-button.wallet-connected { color: #061412; background: var(--cyan); box-shadow: 4px 4px 0 #176d68; }
.wallet-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: min(720px, calc(100% - 28px));
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 0;
  overflow: visible;
}
.wallet-dialog::backdrop { background: rgba(2, 3, 10, .82); backdrop-filter: blur(4px); }
.wallet-modal {
  padding: 26px;
  background: #0d1020;
  border: 4px solid var(--line);
  box-shadow: 10px 10px 0 #32265d;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.wallet-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 3px dashed var(--line); }
.wallet-modal-head small { color: var(--cyan); font-size: .65rem; letter-spacing: 2px; }
.wallet-modal-head h2 { margin: 10px 0 0; font: 400 1.65rem/1.25 "Fusion Pixel", monospace; letter-spacing: 1px; text-transform: uppercase; }
.dialog-close { width: 42px; height: 42px; flex: 0 0 auto; color: var(--paper); background: #171b31; border: 3px solid var(--line); cursor: pointer; font-size: 1.3rem; }
.dialog-close:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.wallet-hint { margin: 18px 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.wallet-current { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 13px; align-items: center; margin-bottom: 14px; padding: 14px; background: #111a27; border: 3px solid var(--cyan); }
.wallet-current:not([hidden]) { display: grid; }
.wallet-current > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wallet-current small { color: var(--cyan); font-size: .58rem; letter-spacing: 1.4px; }
.wallet-current strong { overflow: hidden; font-size: .76rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.wallet-current code { overflow: hidden; color: var(--muted); font: inherit; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.wallet-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--ink); background: var(--cyan); border: 3px solid var(--paper); box-shadow: 3px 3px 0 #176d68; font-size: .8rem; }
.disconnect-button { padding: 9px 10px; color: var(--red); background: transparent; border: 2px solid var(--red); cursor: pointer; font-size: .62rem; letter-spacing: .8px; }
.disconnect-button:hover { color: var(--ink); background: var(--red); }
.wallet-list { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.wallet-provider { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px; color: var(--paper); background: #15192c; border: 3px solid #303654; cursor: pointer; text-align: left; }
.wallet-provider:hover, .wallet-provider:focus-visible { border-color: var(--yellow); background: #1b1e34; outline: 0; box-shadow: 4px 4px 0 #5945a6; }
.wallet-provider:disabled { opacity: .55; cursor: wait; }
.wallet-provider .wallet-icon { color: var(--paper); background: var(--purple); border-color: #bfaeff; box-shadow: 3px 3px 0 #33275d; }
.wallet-provider-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wallet-provider-copy strong { overflow: hidden; font-size: .78rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.wallet-provider-copy small { overflow: hidden; color: var(--muted); font-size: .6rem; letter-spacing: .5px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-provider > em { color: var(--yellow); font-size: .6rem; font-style: normal; letter-spacing: 1px; }
.wallet-empty { padding: 22px; color: var(--muted); background: #090c18; border: 3px dashed var(--line); font-size: .72rem; line-height: 1.7; text-align: center; }
.mine-button.awaiting-wallet { color: var(--ink); background: var(--cyan); box-shadow: 6px 6px 0 #176d68; }
.mine-button.awaiting-wallet:disabled { filter: none; opacity: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 22px 0; background: var(--line); border: 3px solid var(--line); }
.stats-grid div { padding: 15px 12px; background: #111426; }
.stats-grid strong { display: block; margin-top: 10px; color: var(--yellow); font-size: .76rem; font-weight: 400; letter-spacing: .5px; }
.terminal { height: 165px; overflow: auto; padding: 15px; color: #aab1ca; background: #03040a; border: 3px solid #252b44; box-shadow: inset 5px 5px 0 #000; font: 400 .67rem/1.9 "Fusion Pixel", monospace; letter-spacing: .5px; }
.terminal p { margin: 0 0 5px; }
.terminal span { color: var(--cyan); }
.terminal .error span { color: var(--red); }
.terminal .success span { color: var(--yellow); }
.mine-actions { display: flex; gap: 14px; margin-top: 20px; }
.mine-button { flex: 1; }
.stop-button { width: 110px; color: var(--red); background: #080912; border: 3px solid var(--red); box-shadow: 5px 5px 0 #4c1f2a; cursor: pointer; }
.stop-button:disabled { opacity: .35; }

.mechanism, .tokenomics { border-top: 4px solid var(--line); }
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-grid article { position: relative; min-height: 260px; padding: 25px; background: var(--panel); border: 3px solid var(--line); box-shadow: 7px 7px 0 #02030a; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.flow-grid article::after { content: ""; position: absolute; right: 12px; top: 12px; width: 8px; height: 8px; background: var(--purple); box-shadow: 12px 0 0 var(--yellow), 24px 0 0 var(--cyan); }
.flow-grid .step { color: var(--yellow); letter-spacing: 2px; }
.flow-grid h3 { margin: 42px 0 12px; font: 400 1.2rem/1.4 "Fusion Pixel", monospace; letter-spacing: 1px; text-transform: uppercase; }
.flow-grid p { color: var(--muted); font-size: .75rem; line-height: 1.9; }
.token-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: start; }
.allocation { padding: 30px; background: var(--panel); border: 4px solid var(--line); box-shadow: var(--shadow); }
.allocation-bar { height: 52px; background: var(--purple); border: 4px solid #080b16; box-shadow: 4px 4px 0 #03040a; }
.allocation-bar i { display: block; width: 95%; height: 100%; background: repeating-linear-gradient(90deg, var(--yellow) 0 16px, #e4b930 16px 20px); }
.allocation-legend { display: flex; justify-content: space-between; margin-top: 20px; font-size: .7rem; letter-spacing: 1px; }
.allocation-legend span { display: flex; flex-direction: column; gap: 8px; }
.allocation-legend b { color: var(--yellow); font-size: 1.3rem; font-weight: 400; }
.rules { display: grid; gap: 12px; }
.rules div { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 18px; padding: 20px; background: #0d1020; border: 3px solid var(--line); box-shadow: 4px 4px 0 #03040a; }
.rules b { color: var(--cyan); font: 400 1.2rem/1.3 "Fusion Pixel", monospace; }
.rules span { color: #c6c9d8; font-size: .72rem; line-height: 1.75; }

.docs-callout { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 110px; padding: 38px; background: linear-gradient(100deg, #171b31, #101426); border: 4px solid var(--yellow); box-shadow: 10px 10px 0 #433481; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.docs-callout h2 { max-width: 760px; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.docs-callout p { max-width: 780px; margin-bottom: 0; color: var(--muted); line-height: 1.8; }

footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; border-top: 4px solid var(--line); color: var(--muted); font-size: .67rem; letter-spacing: 1px; }

/* Documentation */
.docs-main { padding-bottom: 100px; }
.docs-hero { padding: 105px 0 85px; border-bottom: 4px solid var(--line); }
.docs-hero h1 { max-width: 980px; margin-bottom: 30px; }
.docs-hero p { max-width: 850px; color: #c9cde0; font-size: 1rem; line-height: 2; }
.doc-status { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.doc-status span { padding: 9px 12px; color: var(--cyan); background: #0d1020; border: 2px solid var(--line); font-size: .65rem; letter-spacing: 1.5px; }
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 52px; padding-top: 70px; }
.docs-toc { position: sticky; top: 28px; align-self: start; display: grid; padding: 22px; background: #0d1020; border: 3px solid var(--line); box-shadow: 6px 6px 0 #02030a; }
.docs-toc > span { margin-bottom: 14px; color: var(--yellow); font-size: .7rem; letter-spacing: 2px; }
.docs-toc a { padding: 12px 8px; color: var(--muted); border-top: 2px solid #252b47; text-decoration: none; font-size: .68rem; line-height: 1.45; }
.docs-toc a:hover { color: var(--cyan); background: #15192c; }
.docs-content { display: grid; gap: 28px; }
.doc-section { scroll-margin-top: 30px; padding: 34px; background: rgba(16, 20, 38, .92); border: 3px solid var(--line); box-shadow: 8px 8px 0 #02030a; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.doc-number { color: var(--yellow); font-size: .75rem; letter-spacing: 2px; }
.doc-section h2 { margin: 12px 0 22px; color: var(--paper); font: 400 clamp(1.5rem, 3vw, 2.4rem)/1.3 "Fusion Pixel", monospace; letter-spacing: 1px; text-transform: uppercase; }
.doc-section p, .doc-section li { color: #b9bfd6; font-size: .86rem; line-height: 2; }
.doc-section strong { color: var(--yellow); font-weight: 400; }
.doc-section ul { padding-left: 22px; }
.doc-section li { margin: 7px 0; padding-left: 6px; }
.doc-section li::marker { color: var(--cyan); }
.doc-table { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.doc-table div { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #090c18; border: 3px solid #313858; }
.doc-table b { color: var(--yellow); font-size: 1.2rem; font-weight: 400; letter-spacing: 1px; }
.doc-table span { color: var(--muted); font-size: .72rem; line-height: 1.7; }
.formula { margin: 26px 0; padding: 24px; color: var(--ink); background: var(--yellow); border: 4px solid var(--paper); box-shadow: 6px 6px 0 var(--purple); font-size: clamp(1rem, 2.5vw, 1.5rem); letter-spacing: 2px; text-align: center; }
.route-diagram { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 25px 0; }
.route-diagram div { padding: 13px 14px; color: var(--paper); background: #0a0d19; border: 3px solid var(--purple); font-size: .65rem; letter-spacing: 1px; }
.route-diagram span { color: var(--cyan); }
.invariant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.invariant-grid div { display: flex; flex-direction: column; gap: 8px; padding: 18px 12px; background: #090c18; border: 3px solid #313858; }
.invariant-grid b { color: var(--cyan); font-size: 1.05rem; font-weight: 400; }
.invariant-grid span { color: var(--muted); font-size: .65rem; line-height: 1.5; }
.contract-list { display: grid; gap: 10px; margin: 24px 0; }
.contract-list a { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 16px; color: var(--paper); text-decoration: none; background: #090c18; border: 3px solid #313858; }
.contract-list a:hover { border-color: var(--cyan); }
.contract-list b { color: var(--cyan); font-size: .74rem; font-weight: 400; letter-spacing: 1px; }
.contract-list code { overflow-wrap: anywhere; color: #b9bfd6; font: inherit; font-size: .76rem; }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .supply-panel { min-height: 390px; }
  .miner-grid { grid-template-columns: 1fr; }
  .mine-heading { grid-template-columns: 1fr; gap: 24px; }
  .device-column { border-right: 0; border-bottom: 4px solid var(--line); }
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .token-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .invariant-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .site-header { height: 70px; }
  .header-actions .pixel-button { display: none; }
  .header-actions { margin-left: auto; }
  .hero { min-height: auto; padding-block: 60px; }
  .hero h1, .docs-hero h1 { font-size: 3.2rem; letter-spacing: 0; }
  .hero-actions { flex-direction: column; }
  .mine-section, .mechanism, .tokenomics { padding-block: 72px; }
  .miner-toolbar > span:nth-child(2) { display: none; }
  .device-column, .console-column { padding: 18px; }
  .device-card { grid-template-columns: 48px 1fr 16px; }
  .device-icon { width: 46px; height: 46px; }
  .wallet-row { align-items: flex-start; gap: 12px; }
  .wallet-row strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .wallet-modal { padding: 20px 16px; }
  .wallet-current { grid-template-columns: 42px minmax(0, 1fr); }
  .wallet-current .disconnect-button { grid-column: 1 / -1; }
  .wallet-provider { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 11px; }
  .wallet-provider .wallet-icon { width: 38px; height: 38px; }
  .stats-grid, .flow-grid, .doc-table, .invariant-grid { grid-template-columns: 1fr; }
  .network-supply { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .flow-grid article { min-height: auto; }
  .allocation-legend { flex-direction: column; gap: 20px; }
  .rules div { grid-template-columns: 72px 1fr; padding-inline: 14px; }
  .mine-actions, .heading-row, .docs-callout { flex-direction: column; align-items: stretch; }
  .stop-button { width: 100%; height: 44px; }
  .docs-chip { justify-content: center; }
  .docs-callout { margin-bottom: 72px; padding: 26px; }
  .docs-hero { padding: 72px 0 58px; }
  .docs-layout { gap: 30px; padding-top: 42px; }
  .doc-section { padding: 24px 20px; }
  .contract-list a { grid-template-columns: 1fr; gap: 8px; }
  footer { grid-template-columns: 1fr; padding-block: 30px; gap: 15px; }
  .coin-orbit { animation: none; }
  .pixel-coin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .coin-orbit, .pixel-coin, .ticker-track { animation: none; }
}
