/* Mimic: one stylesheet for every page. A pixel-dungeon game UI: stone ground, torchlight, square panels with hard
   shadows. The accent, --gem, is the coin's current gem; site.js and vote.js set it from the live vote. */
:root {
  --gem: #f5c542;
  --on-gem: #120c18;
  --gem-soft: color-mix(in srgb, var(--gem) 14%, transparent);
  --gem-line: color-mix(in srgb, var(--gem) 48%, transparent);
  --gem-dark: color-mix(in srgb, var(--gem) 52%, #000);

  --bg: #110c18;
  --bg2: #160f20;
  --panel: #1d1529;
  --panel2: #251b34;
  --line: #33264a;
  --line2: #463462;
  --ink: #f4eeff;
  --dim: #ab9cc8;
  --mute: #75679a;
  --bad: #ff5470;
  --torch: #ff8a3d;
  --shadow: #07040b;

  --display: 'Jersey 10', 'Rubik', ui-sans-serif, system-ui, sans-serif;
  --font: 'Rubik', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --stone:
    linear-gradient(rgba(255, 255, 255, .028) 2px, transparent 2px) 0 0 / 64px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 2px, transparent 2px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 2px, transparent 2px) 32px 32px / 64px 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: grid; grid-template-columns: 264px minmax(0, 1fr);
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gem); color: var(--on-gem); }
:focus-visible { outline: 3px solid var(--gem); outline-offset: 3px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font: 13px var(--mono); padding: 1px 6px; background: var(--bg); border: 2px solid var(--line); }
svg[shape-rendering="crispEdges"] { image-rendering: pixelated; }

/* ---------- sidebar ---------- */
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; z-index: 30;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 16px 18px; background: var(--bg2); border-right: 3px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px; text-decoration: none; font: 400 34px/1 var(--display); letter-spacing: .02em; }
.logo {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--gem);
  background: var(--panel2); border: 3px solid var(--line2); box-shadow: 3px 3px 0 var(--shadow);
}
.logo svg { width: 30px; height: 30px; }
.menu {
  display: none; padding: 8px 14px; cursor: pointer; font: 400 20px/1 var(--display); letter-spacing: .04em;
  border: 3px solid var(--line2); background: var(--panel); box-shadow: 3px 3px 0 var(--shadow);
}
.wwrap { position: relative; }
.wbtn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  border: 3px solid var(--gem-line); background: var(--gem-soft); box-shadow: 3px 3px 0 var(--shadow);
  font-weight: 600; font-size: 14px; transition: background .15s;
}
.wbtn:hover { background: color-mix(in srgb, var(--gem) 24%, transparent); }
.wdot { width: 9px; height: 9px; background: var(--mute); flex: none; }
.wbtn.on .wdot { background: var(--gem); box-shadow: 0 0 0 3px var(--gem-soft); }
.wbtn .caret { margin-left: auto; color: var(--dim); font-size: 11px; }
.wpop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 8px;
  background: var(--panel); border: 3px solid var(--line2); box-shadow: 6px 6px 0 var(--shadow);
}
.wopt {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 12px;
  border: 0; background: none; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px;
}
.wopt:hover { background: var(--panel2); }
.wopt span { color: var(--dim); font: 400 12px var(--mono); }
.wpop .note { margin: 6px 12px 4px; }
.wpop .kv { padding: 10px 12px; border-top: 0; }
.wacts { display: flex; gap: 8px; padding: 4px; }
.wacts .btn { flex: 1; }
nav { display: flex; flex-direction: column; gap: 3px; }
nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 9px 12px;
  color: var(--dim); text-decoration: none; font: 400 22px/1.1 var(--display); letter-spacing: .03em; border-left: 4px solid transparent;
}
nav a i { font: normal 400 11px var(--mono); color: var(--mute); }
nav a:hover { color: var(--ink); background: var(--panel); }
nav a { position: relative; }
nav a.active { color: var(--ink); background: var(--panel2); border-left-color: var(--gem); padding-left: 28px; }
nav a.active::before { content: '▸'; position: absolute; left: 9px; color: var(--gem); }
nav a.active i { color: var(--gem); }
.ver { padding: 14px; border: 3px dashed var(--line2); font-size: 13px; line-height: 1.55; color: var(--dim); }
.ver b { color: var(--ink); }
.socials { margin-top: auto; display: flex; gap: 8px; }
.sbtn { width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid var(--line2); color: var(--dim); box-shadow: 3px 3px 0 var(--shadow); }
.sbtn:hover { color: var(--ink); border-color: var(--gem-line); }

/* ---------- contract bar ---------- */
.livebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
  padding: 12px clamp(16px, 4vw, 48px); background: var(--bg2); border-bottom: 3px solid var(--line);
  font: 400 13px var(--mono); color: var(--dim); text-decoration: none;
}
.livebar b { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.livebar b::before { content: ''; width: 9px; height: 9px; background: var(--gem); animation: blink 1.2s steps(2, jump-none) infinite; }
a.livebar span { color: var(--gem); word-break: break-all; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- layout ---------- */
.main { min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.band { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 3px solid var(--line); }
.band.alt { background: var(--bg2); }
.head { margin-bottom: 44px; }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gem);
}
.kicker::before { content: '▸'; font-size: 14px; }
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--display); line-height: .92; letter-spacing: .01em; }
h2 { font-size: clamp(46px, 6.4vw, 78px); max-width: 16ch; }
h3 { font-size: 28px; line-height: 1; letter-spacing: .02em; }
h3.sub { margin: 48px 0 16px; font-size: 32px; }
.lead { margin: 18px 0 0; max-width: 62ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); }
.prose-p { max-width: 64ch; color: var(--dim); font-size: 17px; }
.prose-p + .prose-p { margin-top: 16px; }
.note { margin: 0; font-size: 13px; color: var(--mute); }
.fine { margin-top: 16px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 48px; font-size: 13px; color: var(--mute); }

/* ---------- buttons: chunky, beveled, they press in ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px 12px; white-space: nowrap;
  border: 3px solid var(--shadow); background: var(--gem); color: var(--on-gem); cursor: pointer; text-decoration: none;
  font: 400 24px/1 var(--display); letter-spacing: .04em;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .28), inset 0 3px 0 rgba(255, 255, 255, .28), 4px 4px 0 var(--shadow);
  transition: transform .08s, box-shadow .08s, background .5s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .28), inset 0 3px 0 rgba(255, 255, 255, .28), 5px 5px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .28), 1px 1px 0 var(--shadow); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--panel2); color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 4px 4px 0 var(--shadow); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--gem-line); }
.btn.sm { padding: 6px 14px 8px; font-size: 19px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 100px) 0; border-bottom: 3px solid var(--line); background: var(--stone); }
.hero::before {
  content: ''; position: absolute; left: -10%; top: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--torch) 14%, transparent), transparent);
  animation: torch 2.4s steps(3, jump-none) infinite;
}
.hero::after {
  content: ''; position: absolute; right: -12%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gem) 16%, transparent), transparent);
}
@keyframes torch { 33% { opacity: .82; } 66% { opacity: 1; transform: scale(1.03); } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.tag { display: inline-flex; padding: 7px 14px; border: 2px solid var(--line2); background: var(--panel); color: var(--dim); font: 500 13px var(--mono); box-shadow: 3px 3px 0 var(--shadow); }
.hero h1 { margin: 26px 0 0; font-size: clamp(64px, 9.4vw, 134px); line-height: .84; }
h1 em, h2 em {
  display: inline-block; margin-top: .06em; padding: .02em .12em .06em; font-style: normal;
  color: var(--on-gem); background: var(--gem);
  box-shadow: 0 .07em 0 var(--gem-dark), .06em .13em 0 var(--shadow);
  transition: background .5s, box-shadow .5s;
}
.hero .lead { color: color-mix(in srgb, var(--ink) 80%, transparent); }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-card { box-shadow: 8px 8px 0 var(--shadow), 0 0 0 1px var(--gem-soft); }
.hero-card.swap .token, .hero-card.swap .desc { animation: poof .4s steps(4, jump-none); }
@keyframes poof { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- panels and the token card ---------- */
.panel { background: var(--panel); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.ph {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 16px;
  border-bottom: 3px solid var(--line); background: var(--panel2); font: 500 12px var(--mono); color: var(--dim);
}
.ph::after { content: ''; width: 9px; height: 9px; background: var(--gem); box-shadow: 0 0 10px var(--gem); }
.pb { padding: 22px; }
.token { display: flex; align-items: center; gap: 18px; }
.token h3 { font-size: 40px; margin-bottom: 8px; word-break: break-word; }
.ico {
  width: 84px; height: 84px; flex: none; display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--line2); color: var(--gem); box-shadow: inset 0 0 0 3px var(--shadow); transition: color .5s;
}
.ico svg { width: 58px; height: 58px; }
.ico.mini { display: inline-grid; width: 28px; height: 28px; border-width: 2px; box-shadow: none; vertical-align: middle; }
.ico.mini svg { width: 18px; height: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; white-space: nowrap;
  background: var(--gem-soft); border: 2px solid var(--gem-line); color: var(--gem); font: 600 12px var(--mono); font-style: normal;
}
.desc { margin: 18px 0 8px; color: var(--dim); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 2px dashed var(--line); font-size: 14px; }
.kv > span { color: var(--dim); flex: none; }
.kv > b { min-width: 0; text-align: right; font: 600 13px var(--mono); overflow-wrap: anywhere; }
.kv em { font-style: normal; }
.pb > .note:last-child { margin-top: 12px; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--gem); box-shadow: 2px 2px 0 var(--shadow); transition: background .5s; }

/* ---------- cards ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { padding: 24px; background: var(--panel); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); transition: transform .1s, border-color .2s; }
.card:hover { border-color: var(--gem-line); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--shadow); }
.card p { margin: 10px 0 0; font-size: 15px; color: var(--dim); }
.glyph {
  width: 54px; height: 54px; margin-bottom: 18px; display: grid; place-items: center;
  background: var(--gem-soft); border: 2px solid var(--gem-line); color: var(--gem); font: 400 30px/1 var(--display);
}
.lever { padding: 30px; }
.lever .num { font: 400 26px/1 var(--display); color: var(--gem); }
.lever h3 { margin-top: 16px; font-size: 38px; }
.lever > p { margin: 8px 0 0; color: var(--dim); }
.lever ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; display: grid; gap: 12px; border-top: 2px dashed var(--line); }
.lever li { position: relative; padding-left: 24px; font-size: 15px; color: var(--dim); }
.lever li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--gem); box-shadow: 2px 2px 0 var(--shadow); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border: 3px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 18px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--line); }
th { background: var(--panel2); color: var(--mute); font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.empty { padding: 30px; text-align: center; color: var(--mute); }
td a { color: var(--gem); }
td .old { color: var(--mute); text-decoration: line-through; }
td mark { padding: 1px 7px; background: var(--gem-soft); color: var(--gem); }
.compare td { font-size: 15px; }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare td:nth-child(2) { color: var(--dim); }
.compare td:last-child { color: var(--gem); font-weight: 600; }
.compare th:last-child { color: var(--gem); }

/* ---------- live vote ---------- */
.status { margin: 0 0 16px; padding: 14px 18px; border: 3px dashed var(--line2); color: var(--dim); font-size: 14px; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; margin-bottom: 18px; }
.label { margin: 0; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.clock { margin: 6px 0 14px; font: 400 clamp(84px, 9vw, 120px)/.9 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.bar { height: 14px; overflow: hidden; background: var(--bg); border: 3px solid var(--line); }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--gem) 0 10px, var(--gem-dark) 10px 12px); transition: width .3s steps(4, jump-none); }
.count { margin: 12px 0 18px; font: 500 13px var(--mono); color: var(--dim); }
#v-list { margin-bottom: 8px; }
.cand { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(70px, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-top: 2px dashed var(--line); }
.cand:first-child { border-top: 0; padding-top: 0; }
.cl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cl b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cl b .ico.mini { margin-right: 6px; }
.cand.mine .cl b::after { content: '  your vote'; color: var(--gem); font: 500 12px var(--mono); }
.votebar { height: 10px; overflow: hidden; background: var(--bg); border: 2px solid var(--line); }
.votebar i { display: block; height: 100%; background: var(--gem); transition: width .4s steps(5, jump-none); }
.cr { display: flex; align-items: center; gap: 14px; }
.cr .mono { min-width: 70px; text-align: right; font-size: 12px; color: var(--dim); }
.pform { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 18px; padding-top: 22px; border-top: 3px solid var(--line); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { width: 50px; height: 50px; padding: 0; cursor: pointer; display: grid; place-items: center; background: var(--bg); border: 3px solid var(--line2); color: var(--gem); box-shadow: 3px 3px 0 var(--shadow); }
.pick svg { width: 32px; height: 32px; }
.pick span { width: 24px; height: 24px; box-shadow: 2px 2px 0 var(--shadow); }
.pick[aria-pressed="true"] { border-color: var(--gem); background: var(--gem-soft); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }

/* ---------- forms ---------- */
.f { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; font-weight: 600; font-size: 14px; }
.f > span, .f legend, .f > label { font-weight: 600; font-size: 14px; }
.f legend { padding: 0; margin-bottom: 8px; }
.f small { font-weight: 400; color: var(--mute); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 3px solid var(--line2); background: var(--bg); color: var(--ink);
  font-size: 15px; font-weight: 400; box-shadow: inset 3px 3px 0 var(--shadow); transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--mute); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gem); }
textarea { min-height: 100px; resize: vertical; }
select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 6 4' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h6v1H5v1H4v1H2V2H1V1H0z' fill='%23ab9cc8'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.err { font-style: normal; font-weight: 400; font-size: 13px; color: var(--bad); }
.err:empty { display: none; }

/* ---------- lifecycle band ---------- */
.band.gem { background: var(--gem); color: var(--on-gem); transition: background .5s; background-image: var(--stone); background-blend-mode: multiply; }
.band.gem .kicker { color: var(--on-gem); }
.band.gem .lead { color: color-mix(in srgb, var(--on-gem) 72%, transparent); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { padding: 24px; background: color-mix(in srgb, var(--on-gem) 9%, transparent); border: 3px solid color-mix(in srgb, var(--on-gem) 70%, transparent); box-shadow: 5px 5px 0 color-mix(in srgb, var(--on-gem) 60%, transparent); }
.step .n { font: 400 24px/1 var(--display); }
.step h3 { margin: 30px 0 10px; font-size: 46px; }
.step p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--on-gem) 78%, transparent); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.stat b { display: block; margin-bottom: 10px; font: 400 clamp(70px, 8vw, 104px)/.8 var(--display); color: var(--gem); transition: color .5s; }
.stat p { margin: 8px 0 0; font-size: 15px; color: var(--dim); }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(44px, 6vw, 80px) 0 36px; }
.page-head h1 { font-size: clamp(60px, 8.4vw, 110px); line-height: .86; max-width: 14ch; }
.section { margin-bottom: 48px; }
.section > h3 { margin-bottom: 16px; font-size: 34px; }
.section > .note { margin-top: 12px; }
.acts { display: flex; flex-wrap: wrap; gap: 14px; }

.banner { display: grid; gap: 6px; margin-bottom: 24px; padding: 16px 20px; border: 3px solid color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); box-shadow: 4px 4px 0 var(--shadow); }
.banner span { font-size: 14px; color: var(--dim); }
.result { display: grid; gap: 6px; padding: 14px 18px; border: 3px solid var(--gem-line); background: var(--gem-soft); font-size: 14px; word-break: break-word; }
.result.bad { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 9%, transparent); }
.result a { color: var(--gem); font-weight: 600; }

/* launch */
.lgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 26px; align-items: start; padding-bottom: 32px; }
.lside { position: sticky; top: 24px; display: grid; gap: 18px; }
.fields { display: grid; gap: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.links { display: grid; gap: 10px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 14px; border: 3px dashed var(--line2); cursor: pointer; font-weight: 400; }
.drop:hover, .drop:has(+ .vh:focus-visible) { border-color: var(--gem); }
.drop small { color: var(--mute); }
.thumb {
  width: 76px; height: 76px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--line2); font: 600 12px var(--mono); color: var(--mute);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.modes { display: grid; gap: 10px; }
.mode { display: flex; gap: 12px; padding: 14px 16px; border: 3px solid var(--line2); cursor: pointer; font-weight: 400; }
.mode:has(input:checked) { border-color: var(--gem); background: var(--gem-soft); }
.mode input { width: auto; margin: 5px 0 0; accent-color: var(--gem); box-shadow: none; }
.mode b { display: flex; align-items: center; gap: 8px; }
.mode span span { color: var(--dim); font-size: 14px; }
.mode.off { opacity: .55; cursor: not-allowed; }
details summary { cursor: pointer; color: var(--dim); font-weight: 600; }
details[open] summary { margin-bottom: 14px; }
.warn { margin: 0 0 14px; padding: 14px 16px; border-left: 5px solid var(--bad); background: color-mix(in srgb, var(--bad) 8%, transparent); font-size: 14px; color: var(--dim); }
.warn b { display: block; color: var(--ink); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--mute); }
.ticks li::before { content: ''; width: 16px; height: 16px; flex: none; border: 3px solid var(--line2); }
.ticks li.run { color: var(--ink); }
.ticks li.run::before { border-color: var(--gem); animation: blink .6s steps(2, jump-none) infinite; }
.ticks li.done { color: var(--dim); }
.ticks li.done::before { border-color: var(--gem); background: var(--gem); }
.ticks li.fail { color: var(--bad); }
.ticks li.fail::before { border-color: var(--bad); background: var(--bad); }
.how { margin: 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14px; color: var(--dim); }
.how b { color: var(--ink); }

/* explorer */
.search { display: flex; gap: 14px; }
.search input { flex: 1; }
.sgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.sbox { padding: 20px 22px; background: var(--panel); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.sbox b { display: block; font: 400 54px/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sbox span { font-size: 13px; color: var(--dim); }

/* fees */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 48px; }
.fee { padding: 22px 24px; background: var(--panel); border: 3px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); }
.fee b { display: block; font: 400 96px/.8 var(--display); color: var(--gem); }
.fee b small { font: 600 16px var(--mono); margin-left: 6px; color: var(--dim); }
.fee span { display: block; margin-top: 14px; font-size: 14px; color: var(--dim); }

/* wallet */
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 2px dashed var(--line); }
.wrow:first-child { border-top: 0; padding-top: 0; }
.nm b { display: block; }
.nm span { font-size: 13px; color: var(--dim); }
.safe { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.safe li { position: relative; padding-left: 32px; color: var(--dim); }
.safe li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; background: var(--gem-soft); border: 2px solid var(--gem-line); color: var(--gem); font-size: 12px; font-weight: 700; }

/* docs */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 32px; }
#toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; display: grid; gap: 2px; font-size: 14px; }
#toc h4 { margin: 18px 0 6px 12px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
#toc h4:first-child { margin-top: 0; }
#toc a { padding: 6px 12px; color: var(--dim); text-decoration: none; border-left: 4px solid transparent; }
#toc a:hover { color: var(--ink); }
#toc a.active { color: var(--ink); background: var(--panel); border-left-color: var(--gem); }
.prose { max-width: 70ch; }
.prose section { padding-bottom: 44px; scroll-margin-top: 24px; }
.prose h2 { font-size: 52px; margin-bottom: 16px; max-width: none; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--dim); }
.prose strong { color: var(--ink); }
.prose a { color: var(--gem); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose .tbl-wrap { margin: 18px 0; }
.callout { margin: 18px 0; padding: 16px 20px; border-left: 5px solid var(--gem); background: var(--panel); color: var(--ink); box-shadow: 4px 4px 0 var(--shadow); }
.gloss dt { margin-top: 16px; font-weight: 700; color: var(--ink); }
.gloss dd { margin: 4px 0 0; color: var(--dim); }
.faq { border-top: 2px dashed var(--line); padding: 16px 0; }
.faq summary { color: var(--ink); }
.faq p { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 12px 20px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  border: 3px solid var(--shadow); box-shadow: 5px 5px 0 var(--shadow); animation: poof .25s steps(3, jump-none);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid4, .sgrid, .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .side {
    height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px;
    border-right: 0; border-bottom: 3px solid var(--line); background: color-mix(in srgb, var(--bg2) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .brand { margin-right: auto; padding: 0; font-size: 28px; }
  .logo { width: 38px; height: 38px; }
  .logo svg { width: 24px; height: 24px; }
  .wbtn { width: auto; padding: 8px 12px; }
  .wbtn .caret, .wlong { display: none; }
  .wpop { left: auto; right: 0; width: min(300px, calc(100vw - 32px)); }
  .menu { display: inline-flex; }
  nav, .ver, .socials { display: none; flex-basis: 100%; }
  .side.open nav, .side.open .socials { display: flex; }
  .side.open .ver { display: block; }
  .socials { margin-top: 0; }
  .hero .wrap, .vgrid, .lgrid, .docs, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .lside, #toc { position: static; }
  #toc { display: none; }
}
@media (max-width: 600px) {
  .grid4, .steps, .stats, .row2, .pform, .fees { grid-template-columns: minmax(0, 1fr); }
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sbox b { font-size: 42px; }
  .cand { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .cand .votebar { grid-column: 1 / -1; grid-row: 2; }
  .cl { flex-wrap: wrap; }
  .cl b { white-space: normal; overflow-wrap: anywhere; }
  .cr .mono { min-width: 0; }
  .search { flex-direction: column; }
  .pb { padding: 18px; }
  .token h3 { font-size: 34px; }
  .ico { width: 70px; height: 70px; }
  .ico svg { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
