:root {
  --bg: #050708; --surface: #111619; --surface-2: #171d21; --active: #20282c; --line: #1c2428; --line-2: #263034;
  --ink: #e7ecea; --soft: #b3bcbb; --grey: #8a9396; --faint: #4a5457;
  --teal: #5cffe4; --green: #4ade80; --red: #ff4f63; --amber: #ffbf5c; --silver: #b8c2c7;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; transition: background-color .14s ease, color .14s ease, transform .1s cubic-bezier(.2,0,0,1); }
button:disabled { cursor: not-allowed; }
button:active:not(:disabled), a.go:active { transform: scale(.975); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; } }
.busy { pointer-events: none; }
.busy::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 9px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(5,7,8,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; }
.links { display: flex; gap: 22px; margin-right: auto; color: var(--grey); }
.links a:hover, .links a.on { color: var(--ink); }
.wallet-btn { height: 38px; padding: 0 18px; border-radius: 99px; background: #edf2f0; color: #050708; font-size: 14px; font-weight: 600; white-space: nowrap; }
.wallet-btn:hover { background: #fff; }
.wallet-btn.on { background: rgba(255,255,255,.07); color: var(--ink); font-family: var(--mono); font-size: 13px; font-weight: 400; }
.wallet-btn.on:hover { background: rgba(255,255,255,.11); }
.notice { margin-top: 14px; background: rgba(255,191,92,.1); color: var(--amber); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
main { padding-bottom: 72px; min-height: 70vh; }

.hero { padding: 64px 0 36px; max-width: 620px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; }
.hero p { color: var(--soft); font-size: 17px; margin: 18px 0 26px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 36px; }
.strip::-webkit-scrollbar { display: none; }
.strip::before, .strip::after { content: ""; margin: auto; }
.card { position: relative; flex: none; width: 136px; height: 176px; border-radius: 16px; overflow: hidden; background: var(--surface); transition: transform .16s cubic-bezier(.2,0,0,1); }
.card:hover { transform: translateY(-3px); }
.card .pic { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: var(--surface-2); font-size: 15px; letter-spacing: .02em; }
.card em { position: absolute; top: 8px; left: 8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: rgba(5,7,8,.7); font: 500 12px/22px var(--mono); text-align: center; }
.card > span { position: absolute; inset: auto 0 0; padding: 30px 10px 10px; background: linear-gradient(transparent, rgba(5,7,8,.88) 55%); display: grid; }
.card b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card small { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }

.tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tabs { display: flex; gap: 4px; margin-right: auto; }
.tabs button { height: 38px; padding: 0 15px; border-radius: 99px; color: var(--grey); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.tools select, .tools input { height: 38px; padding: 0 14px; border-radius: 99px; font-size: 14px; background: var(--surface); }
.tools select { width: auto; max-width: 170px; }
.tools input { width: 220px; }

.h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 44px 0 12px; }
.h.first { margin-top: 32px; }
.h h2 { font-size: 15px; font-weight: 500; }
.h > a:not(.go) { color: var(--grey); font-size: 14px; }
.h > a:not(.go):hover { color: var(--ink); }
.h input { max-width: 320px; height: 40px; border-radius: 99px; padding: 0 16px; }
.back { display: inline-block; color: var(--grey); font-size: 14px; margin: 26px 0 18px; }
.back:hover { color: var(--ink); }

.table { background: var(--surface); border-radius: 16px; padding: 4px; }
.th, .tr { display: grid; gap: 16px; align-items: center; padding: 10px 14px; }
.pads .th, .pads .tr { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 60px 110px minmax(0, .9fr); }
.coins .th, .coins .tr { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 110px 110px; }
.tr b em { font-style: normal; font-weight: 400; color: var(--grey); font-size: 12.5px; margin-left: 4px; }
.coins .tr small { font-family: var(--mono); font-size: 12px; }
.th { color: var(--grey); font-size: 12.5px; padding-bottom: 8px; }
.tr { border-top: 1px solid var(--line); font-size: 14.5px; min-height: 56px; }
.tr:hover { background: var(--surface-2); border-radius: 12px; border-color: transparent; }
.tr:hover + .tr { border-color: transparent; }
.tr b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr small { color: var(--grey); font-size: 12.5px; }
.pads .tr small { font-family: var(--mono); font-size: 12px; }
.tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r { text-align: right; font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who > span, .who > div { min-width: 0; }
.pic { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--surface-2); object-fit: cover; display: grid; place-items: center; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--grey); }
.pic.lg { width: 52px; height: 52px; font-size: 13px; }
.empty { color: var(--grey); text-align: center; padding: 36px 8px; font-size: 14px; }
.empty a { color: var(--teal); }

.bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.bar i { min-width: 0; font-style: normal; }
.bar.big { height: 40px; border-radius: 10px; margin-bottom: 10px; }
.bar.big i { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #071012; overflow: hidden; }
.box > .bar:not(.big) { margin-bottom: 10px; }
.c-creator { background: var(--green); } .c-owner { background: var(--silver); } .c-burn { background: var(--amber); } .c-floor { background: var(--teal); } .c-protocol { background: var(--faint); }
.sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }

.head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.head h1 span { color: var(--grey); }
.head small { color: var(--grey); font-size: 13px; }
.head small a { font-family: var(--mono); font-size: 12.5px; }
.head small a:hover { color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.box { background: var(--surface); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.box h3 { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.box h3 a { color: var(--teal); }
.box p { color: var(--grey); font-size: 13px; margin-top: 10px; }
.box h3 + p { margin: 0 0 10px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-child, h3 + .kv { border-top: 0; }
.kv > span { color: var(--grey); display: flex; align-items: center; gap: 8px; }
.kv b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.kv a { color: var(--teal); }

.go { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #080b0d; font-weight: 600; font-size: 15px; white-space: nowrap; }
.go:hover:not(:disabled) { background: #dfe7e5; }
.go.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.go.wide { width: 100%; border-radius: 13px; margin-top: 12px; white-space: normal; }
.go.alt { background: var(--surface-2); color: var(--ink); }
.go.alt:hover:not(:disabled) { background: var(--active); }
.go:disabled, .go.alt:disabled { background: var(--surface-2); color: var(--faint); }

label { display: grid; gap: 6px; color: var(--grey); font-size: 13px; }
input, select { width: 100%; min-width: 0; background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; outline: 0; font-size: 15px; color: var(--ink); }
input:focus, select:focus { border-color: var(--line-2); }
input::placeholder { color: var(--faint); }
form { display: grid; gap: 14px; }
.form { max-width: 520px; padding: 24px; }
.form h1 { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.form .bar.big, .form .go.wide { margin: 0; }
.box label { margin-top: 12px; }
.form label { margin: 0; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fine { color: var(--grey); font-size: 13px; }
.box p.fine, .box p.err { margin: 0; }
.err { color: var(--red); font-size: 13px; }
.err:empty { display: none; }

.how { max-width: 620px; padding-top: 56px; }
.how h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.how h2 { font-size: 18px; font-weight: 500; margin: 40px 0 4px; }
.how > p { color: var(--soft); font-size: 17px; }
.how ol, .how ul { list-style: none; padding: 0; counter-reset: n; margin-top: 10px; }
.how li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--soft); }
.how li:first-child { border-top: 0; }
.how ol li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; }
.how ol li::before { content: counter(n); color: var(--grey); font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.how b { color: var(--ink); font-weight: 500; }
footer { padding: 20px 0 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--grey); font-size: 13px; border-top: 1px solid var(--line); }
footer a { font-family: var(--mono); font-size: 12.5px; }
footer a:hover { color: var(--ink); }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8,11,13,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden], .toast[hidden] { display: none; }
.sheet { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.sheet h3 { font-size: 20px; font-weight: 500; }
.sheet .go.wide { margin: 0; }
.x { position: absolute; top: 14px; right: 18px; color: var(--grey); font-size: 22px; line-height: 1; }
.x:hover { color: var(--ink); }
.wl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 500; text-align: left; }
.wl:hover { background: var(--active); }
.wl img { width: 28px; height: 28px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 18px; font-size: 14px; max-width: calc(100vw - 32px); }
.toast.bad { color: var(--red); }
.toast.good { color: var(--green); }

@media (max-width: 720px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .pads .th, .pads .tr { grid-template-columns: minmax(0, 1fr) 90px; }
  .pads .th > :nth-child(n+2):not(:nth-child(4)), .pads .tr > :nth-child(n+2):not(:nth-child(4)) { display: none; }
  .coins .th, .coins .tr { grid-template-columns: minmax(0, 1fr) 100px; }
  .coins .th > :nth-child(2), .coins .tr > :nth-child(2), .coins .th > :nth-child(4), .coins .tr > :nth-child(4) { display: none; }
  .hero { padding-top: 44px; }
  .tools { flex-wrap: wrap; }
  .tabs { width: 100%; }
  .tools select { flex: 1; max-width: none; }
  .tools input { flex: 2; width: auto; }
  .card { width: 120px; height: 156px; }
  .top .wrap { gap: 16px; }
  .links { gap: 16px; }
  .links a:nth-child(3) { display: none; }
  .brand span { display: none; }
  .four { grid-template-columns: 1fr 1fr; }
  .head .go { width: 100%; }
}
