:root {
  --bg: #0b0c0d;
  --s1: #111214;
  --s2: #16181a;
  --line: #25282b;
  --line2: #3a3d40;
  --text: #ece9e2;
  --mute: #8f8d87;
  --dim: #5f5e5a;
  --brass: #c4aa7a;
  --brass2: #e0cda6;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
.hide { display: none !important; }
::selection { background: var(--brass); color: #000; }

.testbar { background: var(--s2); color: var(--brass2); border-bottom: 1px solid var(--line); text-align: center; font: 400 12px/1 var(--mono); padding: 10px 16px; }
.testbar a { margin-left: 8px; }

/* top */
.top { display: flex; align-items: center; gap: 40px; padding: 18px 48px; border-bottom: 1px solid var(--line); background: rgba(11, 12, 13, .92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 400 25px/1 var(--serif); letter-spacing: -.01em; }
.brand img { display: block; width: 26px; height: 26px; }
.top nav { display: flex; gap: 28px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--mute); transition: color .15s; }
.top nav a:hover, .top nav a.on { color: var(--text); }
.right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.net { display: flex; border: 1px solid var(--line2); border-radius: 2px; }
.net button { background: none; border: 0; padding: 7px 11px; font: 400 11px/1.2 var(--mono); color: var(--mute); cursor: pointer; }
.net button.on { background: var(--s2); color: var(--text); }
.net button:disabled { color: var(--dim); cursor: not-allowed; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); border-radius: 2px; background: none; padding: 11px 20px; font-weight: 500; font-size: 14px; line-height: 1.1; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { border-color: var(--text); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ink { border-color: var(--line2); }
.btn.hot { background: var(--text); border-color: var(--text); color: #0b0c0d; }
.btn.hot:hover { background: var(--brass2); border-color: var(--brass2); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.big { padding: 15px 28px; font-size: 15px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; align-items: center; padding: 96px 48px 104px; border-bottom: 1px solid var(--line); }
.hero h1 { font: 300 clamp(68px, 9.6vw, 164px)/.94 var(--serif); letter-spacing: -.035em; }
.hero h1 em { font-style: italic; color: var(--brass2); }
.hero h1 br { display: block; }
.hero .lede { font-size: 20px; line-height: 1.45; color: var(--mute); max-width: 560px; margin: 36px 0 34px; }
.check { display: flex; max-width: 620px; border: 1px solid var(--line2); border-radius: 2px; background: var(--s1); transition: border-color .15s; }
.check:focus-within { border-color: var(--brass); }
.check input { flex: 1; min-width: 0; border: 0; background: none; padding: 16px 18px; font: 400 13px/1.2 var(--mono); outline: none; }
.check input::placeholder, .inp::placeholder { color: var(--dim); }
.check button { border: 0; background: var(--text); color: #0b0c0d; font-weight: 500; font-size: 14px; padding: 0 24px; cursor: pointer; white-space: nowrap; }
.check button:hover { background: var(--brass2); }
.hang { display: flex; justify-content: flex-end; }

/* a safe-deposit box */
.tag { --c: var(--brass); position: relative; display: block; text-decoration: none; color: var(--text); background: var(--s1); padding: 22px 22px 20px; transition: background .2s; min-width: 0; }
a.tag:hover { background: var(--s2); }
.tag-top { display: flex; justify-content: space-between; align-items: center; font: 400 11px/1 var(--mono); color: var(--mute); }
.tag-state { display: inline-flex; align-items: center; gap: 7px; color: var(--c); }
.tag-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tag.vesting { --c: var(--brass2); }
.tag.open { --c: var(--text); }
.tag.done { --c: var(--dim); color: var(--mute); }
.tag-coin { font: 400 40px/1 var(--serif); letter-spacing: -.02em; margin-top: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font: 300 22px/1 var(--mono); letter-spacing: -.03em; margin-top: 14px; white-space: nowrap; }
.count-l { font: 400 11px/1 var(--mono); color: var(--mute); margin-top: 7px; }
.bar { height: 1px; background: var(--line2); margin-top: 18px; }
.bar i { display: block; height: 100%; background: var(--c); }
.tag dl { margin: 0; }
.tag dl div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 0 0; }
.tag dt { font-size: 13px; color: var(--mute); flex: none; }
.tag dd { margin: 0; font: 400 13px/1.2 var(--mono); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag .note { font: italic 400 16px/1.3 var(--serif); color: var(--mute); margin-top: 14px; min-height: 42px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .tag, .preview .tag { width: 100%; max-width: 420px; padding: 30px; border: 1px solid var(--line2); background: var(--s1); border-radius: 2px; }
.hero a.tag:hover { background: var(--s2); }
.hero .tag::after, .preview .tag::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; }
.hero .tag-coin { font-size: 68px; margin-top: 44px; }
.hero .count { font-size: 32px; margin-top: 20px; }
.hero .note { font-size: 19px; }
.preview .tag-coin { font-size: 52px; margin-top: 34px; }
.preview .count { font-size: 26px; }

/* the vault wall */
.sect { padding: 88px 48px; }
.sect-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.sect-h h2, h2.big { font: 300 clamp(46px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.03em; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-height: 280px; }
.board > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nothing { grid-column: 1 / -1; align-self: stretch; text-align: center; background: var(--s1); padding: 72px 24px; }
.nothing h3 { font: 300 38px/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.nothing p { color: var(--mute); margin: 0 auto 22px; max-width: 480px; }
.nothing p:last-child, .nothing h3:last-child { margin-bottom: 0; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rule { padding: 34px 32px 40px; background: var(--s1); }
.rule h3 { font: 400 30px/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 14px; }
.rule p { color: var(--mute); }
.facts { margin-top: 56px; border-top: 1px solid var(--line); max-width: 920px; }
.facts details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.facts summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; font: 300 20px/1 var(--mono); color: var(--mute); }
.facts details[open] summary::after { content: "\2212"; }
.facts p { margin-top: 12px; max-width: 760px; color: var(--mute); }
.plate { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid var(--line); padding: 16px 20px; margin-top: 40px; font: 400 13px/1.4 var(--mono); color: var(--mute); overflow-wrap: anywhere; }

/* coin page */
.coin-h { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.coin-h h1 { font: 300 clamp(64px, 9vw, 140px)/.95 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; }
.coin-addr { font: 400 12px/1.5 var(--mono); color: var(--mute); margin-top: 14px; overflow-wrap: anywhere; }
.coin-addr a { text-underline-offset: 3px; text-decoration-color: var(--line2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.stat { padding: 22px 24px; background: var(--s1); min-width: 0; }
.stat span { display: block; font-size: 13px; color: var(--mute); }
.stat b { display: block; font: 300 clamp(34px, 3.8vw, 56px)/1.1 var(--serif); letter-spacing: -.025em; margin-top: 10px; overflow-wrap: anywhere; }
.stat.hot b { color: var(--brass2); }
.stat small { display: block; font: 400 12px/1.3 var(--mono); color: var(--mute); margin-top: 6px; }
.supply { display: flex; gap: 2px; height: 8px; background: var(--s2); margin-top: 20px; overflow: hidden; }
.supply i { display: block; height: 100%; background: var(--brass); min-width: 2px; }
.supply i.vesting { background: var(--brass2); }
.supply-l { display: flex; justify-content: space-between; font: 400 12px/1.3 var(--mono); color: var(--mute); margin-top: 10px; gap: 12px; }
.chart { border: 1px solid var(--line); background: var(--s1); padding: 26px 26px 14px; margin-top: 40px; }
.chart h3 { font: 400 26px/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 18px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { font: 400 11px var(--mono); fill: var(--mute); }
.wall-title { font: 400 26px/1.1 var(--serif); letter-spacing: -.02em; margin: 56px 0 18px; }

/* new lock */
.make { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; align-items: start; }
.form { display: grid; gap: 28px; margin-top: 40px; }
.fld > label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 9px; }
.fld > label small { font: 400 12px/1.7 var(--mono); color: var(--mute); }
.inp { width: 100%; border: 1px solid var(--line2); background: var(--s1); padding: 13px 14px; font: 400 14px/1.3 var(--mono); outline: none; border-radius: 2px; color-scheme: dark; transition: border-color .15s; }
.inp:focus { border-color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border: 1px solid var(--line2); border-radius: 2px; background: none; color: var(--mute); padding: 7px 12px; font: 400 12px/1 var(--mono); cursor: pointer; }
.chips button:hover { color: var(--text); }
.chips button.on { background: var(--s2); color: var(--text); border-color: var(--brass); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line2); }
.kinds button { background: var(--s1); border: 0; padding: 18px; text-align: left; cursor: pointer; line-height: 1.35; font-size: 14px; color: var(--mute); }
.kinds button b { display: block; font: 400 24px/1.1 var(--serif); color: var(--text); margin-bottom: 6px; }
.kinds button.on { background: var(--s2); box-shadow: inset 0 0 0 1px var(--brass); }
.warn { border-left: 1px solid var(--brass); padding: 2px 0 2px 16px; font-size: 15px; line-height: 1.45; color: var(--mute); }
.warn b { color: var(--text); font-weight: 500; }
.warn.bad { border-color: #d0654f; color: #e7a596; }
.preview { position: sticky; top: 104px; }
.steps { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.txnote { font: 400 12px/1.5 var(--mono); color: var(--mute); overflow-wrap: anywhere; }

/* my locks */
.mine { display: grid; gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); }
.row { --c: var(--brass); display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--s1); padding: 20px 24px; }
.row.vesting { --c: var(--brass2); }
.row.open { --c: var(--text); }
.row.done { --c: var(--dim); opacity: .65; }
.row-coin { font: 400 32px/1 var(--serif); letter-spacing: -.02em; color: var(--c); overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.row-mid { font: 400 12px/1.6 var(--mono); color: var(--mute); min-width: 0; overflow-wrap: anywhere; }
.row-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.row-act input { width: 180px; padding: 7px 8px; font-size: 11px; }

/* footer */
.foot { background: #000; color: #fff; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; padding: 72px 48px 96px; }
.foot-big { font: 300 clamp(48px, 6vw, 92px)/1 var(--serif); letter-spacing: -.03em; color: var(--text); }
.foot-cols { display: flex; gap: 80px; }
.foot-cols div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--mute); }
.foot-cols b { font-weight: 500; color: var(--text); margin-bottom: 4px; }
.foot-cols a { text-decoration: none; overflow-wrap: anywhere; }
.foot-cols a:hover { color: var(--text); }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.open { display: flex; }
.sheet { background: var(--s1); border: 1px solid var(--line2); padding: 26px; width: 390px; max-width: 100%; display: grid; gap: 14px; }
.sheet h3 { font: 400 28px/1.1 var(--serif); }
#wlist { display: grid; gap: 6px; }
#wlist button { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line2); background: none; padding: 11px 12px; cursor: pointer; text-align: left; }
#wlist button:hover { border-color: var(--text); }
#wlist img { width: 24px; height: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 90px); background: var(--text); color: #0b0c0d; padding: 12px 18px; font: 400 13px/1.4 var(--mono); max-width: min(90vw, 620px); opacity: 0; pointer-events: none; transition: transform .25s, opacity .25s; z-index: 60; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.bad { background: #e7a596; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; padding-bottom: 72px; }
  .hang { justify-content: flex-start; }
  .make { grid-template-columns: 1fr; gap: 40px; }
  .preview { position: static; order: -1; }
  .rules { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 12px 16px; padding: 12px 16px; position: static; }
  .top nav { order: 3; width: 100%; gap: 20px; }
  .net button { padding: 6px 7px; font-size: 10px; }
  #wallet { padding: 8px 10px; font-size: 13px; }
  .hero, .sect { padding-left: 16px; padding-right: 16px; }
  .sect { padding-top: 56px; padding-bottom: 56px; }
  .hero .lede { font-size: 18px; }
  .hero .tag-coin { font-size: 54px; }
  .check { flex-direction: column; }
  .check button { padding: 14px; }
  .board { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row-act { justify-content: flex-start; }
  .foot-in { padding: 48px 16px 64px; }
  .foot-cols { gap: 48px; }
  .kinds { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
