@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Cousine'; src: url('../fonts/cousine.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bone: #F1F1F4; --bone-2: #E6E6EB; --paper: #FAFAFC; --ink: #0E0F11; --ink-2: #3B3C40; --ink-3: #75757A; --line: rgba(14, 15, 17, .12);
  --seal: #5B3DF5; --ok: #1F7A4D;
  --f: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --m: 'Cousine', ui-monospace, monospace;
  --pad: clamp(20px, 4.2vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--bone); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; font: 400 16px/1.5 var(--f); font-feature-settings: 'tnum' 1, 'ss01' 1; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bone); }

/* top bar: sits on the stage, scrolls away */
.top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand .mk { width: 30px; height: 30px; }
.links { display: flex; gap: 26px; margin-left: 18px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.links a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
.ca { margin-left: auto; font: 13px var(--m); color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.ca + .btn { margin-left: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; border: 0; cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: var(--bone); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 24px -10px rgba(14,15,17,.6); }
.btn.dark:hover { background: #26272b; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(14,15,17,.22); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

@media (max-width: 760px) {
  .links { display: none; }
  .top { padding: 16px 18px; }
  .top .btn { height: 40px; padding: 0 16px; font-size: 14px; }
}

/* ---------- bands ---------- */
.band { position: relative; padding: clamp(90px, 13vh, 160px) 0; background: var(--bone); }
.band.paper { background: var(--paper); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.big { margin: 0; font-weight: 600; font-size: clamp(40px, 4.8vw, 80px); line-height: .98; letter-spacing: -.045em; }
.shead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.shead p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 44ch; justify-self: end; }

/* ---------- the console ---------- */
.console { display: grid; grid-template-columns: 330px 1fr; grid-template-rows: auto auto; background: var(--paper); border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(14,15,17,.06), 0 40px 80px -40px rgba(30,25,15,.35), 0 12px 30px -18px rgba(30,25,15,.25); overflow: hidden; }
.cside { padding: 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; background: linear-gradient(#FBFAF7, var(--paper)); }
.btn.wide { width: 100%; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; margin: 14px 0 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.peek { display: flex; gap: 8px; }
input { font: 500 14px var(--f); color: var(--ink); background: #fff; border: 0; border-radius: 12px; height: 40px; padding: 0 14px; width: 100%; min-width: 0;
  box-shadow: inset 0 0 0 1px rgba(14,15,17,.14); outline: none; transition: box-shadow .2s; }
input::placeholder { color: #A3A2A0; }
input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.fld { display: grid; gap: 8px; } .fld span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tot { display: grid; gap: 2px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 22px; }
.tot span { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.tot b { font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.tot em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.cnt { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.cnt li { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; } .cnt li:hover { color: var(--ink); } .cnt li b { margin-left: auto; font-weight: 600; color: var(--ink); }
.cnt i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); opacity: .85; }
.cnt li[data-g="nft"] i { opacity: .6; } .cnt li[data-g="stake"] i { opacity: .4; } .cnt li[data-g="token"] i { opacity: .22; }
.acct { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.acct img, .acct .wdot { width: 34px; height: 34px; border-radius: 10px; }
.acct span { display: grid; line-height: 1.25; } .acct small { color: var(--ink-3); font-size: 12.5px; }
.acct .x { margin-left: auto; background: none; border: 0; font-size: 13px; color: var(--ink-3); cursor: pointer; padding: 6px; }
.acct .x:hover { color: var(--ink); }

.inv { position: relative; padding: 8px 28px 8px; max-height: 640px; overflow: auto; scrollbar-width: thin; }
.grp { padding: 22px 0; border-bottom: 1px solid var(--line); } .grp:last-child { border-bottom: 0; }
.gh { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gh h4 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.all { background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; opacity: 0; pointer-events: none; }
.grp.has .all { opacity: 1; pointer-events: auto; } .all:hover { color: var(--ink); }
.empty { margin: 0; padding: 14px 0 6px; color: var(--ink-3); font-size: 14.5px; }
.ld { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(14,15,17,.15); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rows { display: grid; gap: 2px; }
.row { display: grid; grid-template-columns: 20px 36px 1fr auto 110px; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.row:hover { background: rgba(14,15,17,.035); }
.ck { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(14,15,17,.25); position: relative; transition: background .15s, box-shadow .15s; }
.on .ck { background: var(--ink); box-shadow: none; }
.on .ck::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--bone); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ic { width: 36px; height: 36px; border-radius: 50%; background: #E4E1DA; position: relative; overflow: hidden; display: grid; place-items: center; }
.ic b, .th b { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nm { display: grid; font-weight: 600; font-size: 15px; min-width: 0; } .nm small { font-weight: 500; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am { font-size: 14px; color: var(--ink-2); text-align: right; display: grid; } .am em { font-style: normal; font-size: 12.5px; } .am .up { color: var(--ok); } .am .dn { color: #B3261E; }
.uv { font-weight: 600; text-align: right; font-size: 15px; } .na { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.rows.grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.rows.grid .empty { grid-column: 1 / -1; }
.nft { position: relative; display: grid; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.th { aspect-ratio: 1; border-radius: 14px; background: #E4E1DA; position: relative; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 0 var(--ink); transition: box-shadow .15s; }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nft.on .th { box-shadow: 0 0 0 2.5px var(--ink); }
.nft .nm { font-size: 13.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.nft .sb { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft .ck { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.85); }
.nft.on .ck { background: var(--ink); }

.cbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fff; }
.sel { display: grid; line-height: 1.25; } .sel b { font-size: 15px; } .sel span { font-size: 13px; color: var(--ink-3); }
.status { flex: 1; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.status.warn { color: #9A3412; } .status.ok { color: var(--ink); font-weight: 600; }
.status.ok::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--seal); box-shadow: 0 0 10px var(--seal); vertical-align: middle; margin-right: 10px; }

.ledger { margin-top: 28px; background: var(--paper); border-radius: 22px; padding: 26px 28px; box-shadow: 0 0 0 1px rgba(14,15,17,.06); }
.lh { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.lh h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; } .la { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; } .dot.ok { background: var(--seal); } .dot.bad { background: #555; }
#seals { list-style: none; margin: 0; padding: 0; }
#seals li { display: grid; grid-template-columns: 50px 130px 1fr auto 130px; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sn { font-weight: 700; } .sd, .sa { color: var(--ink-2); } .sa { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sv { font-weight: 600; }
#seals code { font: 13px var(--m); color: var(--ink-3); text-align: right; }

/* ---------- the seal ---------- */
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.sl p { font-size: 18px; color: var(--ink-2); max-width: 46ch; margin: 28px 0 36px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin: 0 0 36px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; } .facts dt { font-size: 13px; color: var(--ink-3); } .facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.sr { position: relative; }
#bytes { display: block; width: 100%; aspect-ratio: 61 / 55; }
.rec { margin: 22px 0 0; font: 12.5px/1.55 var(--m); color: var(--ink-2); white-space: pre; overflow: hidden; }

/* ---------- spec ---------- */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--ink); }
.spec div { padding: 26px 30px 34px 0; border-bottom: 1px solid var(--line); }
.spec h5 { margin: 0 0 10px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.spec p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 36ch; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--bone); padding: 56px 0 64px; }
.fw { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.foot p { margin: 0; color: rgba(236,234,228,.6); font-size: 15px; }
.foot nav { margin-left: auto; display: flex; gap: 24px; font-size: 14.5px; color: rgba(236,234,228,.75); }
.foot nav a:hover { color: #fff; }

/* ---------- wallet modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20,18,14,.36); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
.modal.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s; }
.more { margin-top: 6px; background: none; border: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 8px 10px; text-align: left; }
.more:hover { color: var(--ink); }
.mbox { width: min(420px, 92vw); background: var(--paper); border-radius: 22px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.mbox h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.03em; } .mbox p { margin: 0 0 20px; color: var(--ink-2); font-size: 14.5px; }
.wl { display: grid; gap: 8px; margin-bottom: 18px; }
.wl button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-weight: 600; font-size: 15px; text-align: left; }
.wl button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wl img, .wdot { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); display: inline-block; }
.wnone { font-size: 14px; color: var(--ink-2); }

@media (max-width: 980px) {
  .shead, .two { grid-template-columns: 1fr; } .shead p { justify-self: start; }
  .console { grid-template-columns: 1fr; } .cside { border-right: 0; border-bottom: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 20px 32px 1fr auto; } .row .uv { display: none; }
  .inv { padding: 4px 16px; max-height: none; } .cside { padding: 20px 16px; } .cbar { flex-wrap: wrap; padding: 16px; } .cbar .btn { width: 100%; }
  .spec { grid-template-columns: 1fr; } #seals li { grid-template-columns: 40px 1fr auto; } #seals .sd, #seals code { display: none; }
  .foot nav { margin-left: 0; }
}
/* main: grid children may shrink (the record <pre> used to widen the phone page) */
.two > *, .shead > *, .console > * { min-width: 0; }
.rec { overflow-x: auto; }
@media (max-width: 640px) { .rec { font-size: 11px; } .facts dd { font-size: 20px; } }

