/* wHOOD — light trading-floor / heist terminal. Zero radius, hairlines, hard shadows. */
:root {
  --bg: #f5f7f1;
  --panel: #ffffff;
  --panel-2: #edf1e8;
  --ink: #131a13;
  --muted: #67766a;
  --line: #d7dfd2;
  --acid: #00c805;
  --acid-hot: #049008;
  --acid-dim: #e4f7e6;
  --gold: #a8842c;
  --red: #c0392b;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .012) 2px 4px);
}
.mono, code { font-family: var(--font-mono); }

/* ticker — black contrast strip */
.ticker {
  border-bottom: 1px solid #0b0e0b; background: #0b0e0b;
  overflow: hidden; white-space: nowrap; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acid);
  user-select: none;
}
.ticker .tk { display: inline-block; padding: 6px 0; animation: tickerslide 30s linear infinite; }
.ticker .tk span { margin: 0 18px; }
.ticker .tk b { color: var(--gold); font-weight: 500; }
@keyframes tickerslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px 24px; min-height: calc(100vh - 29px); display: flex; flex-direction: column; }
.wrap > footer { margin-top: auto; padding-top: 8px; }

/* header */
header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(245, 247, 241, .93); backdrop-filter: blur(10px); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border: 1px solid var(--line); image-rendering: pixelated; }
.logo { font-family: var(--font-display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.logo b { color: var(--acid-hot); font-weight: 400; }
nav.menu { display: flex; gap: 0; margin-right: auto; margin-left: 22px; border-left: 1px solid var(--line); }
nav.menu a {
  color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .1em; padding: 9px 14px;
  transition: color .15s, background .15s;
}
nav.menu a:hover { color: var(--ink); background: var(--panel-2); }
nav.menu a.active { color: var(--acid-hot); background: var(--acid-dim); }
.hright { display: flex; align-items: center; gap: 14px; }
.ico { width: 20px; height: 20px; display: block; }
.ico-x { filter: brightness(0); width: 15px; height: 15px; }
footer .socials img.ico-x { width: 11px; height: 11px; }
a.icolink { opacity: .8; transition: opacity .15s, transform .15s; }
a.icolink:hover { opacity: 1; transform: translateY(-1px); }

/* buttons */
button {
  background: var(--acid); color: #03140a; border: 1px solid #03140a;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 11px 22px; cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
button:hover { background: #21e326; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(3, 20, 10, .8); }
button:active { transform: translate(0, 0); box-shadow: none; }
button:disabled { background: var(--panel-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
button.ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--ink); }
button.ghost:hover { background: var(--panel); box-shadow: 4px 4px 0 rgba(3, 20, 10, .25); }

/* collection hero (ME-style header) — stays a dark image panel on the light page */
.hero-banner {
  position: relative; margin-top: 24px; border: 1px solid #0b0e0b; overflow: hidden;
  background: #0a0f0b url('/banner.png') center / cover no-repeat;
  min-height: 260px; display: flex; align-items: flex-end;
}
.hero-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 5, .93) 0%, rgba(4, 7, 5, .82) 40%, rgba(4, 7, 5, .28) 100%),
    linear-gradient(180deg, transparent 50%, rgba(4, 7, 5, .45) 100%);
}
.hero-inner { position: relative; width: 100%; padding: 80px 28px 22px; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero-avatar { width: 92px; height: 92px; border: 2px solid var(--acid); image-rendering: pixelated; flex: none; background: #000; }
.hero-meta { flex: 1; min-width: 260px; }
.hero-banner h1 {
  font-family: var(--font-display); font-weight: 400; font-size: 54px; line-height: .95;
  letter-spacing: .02em; text-transform: uppercase; color: #f4fbf5;
}
.hero-banner h1 em { font-style: normal; color: #3bff6b; }
.hero-banner .sub { margin-top: 10px; color: #c3d3c6; max-width: 640px; font-size: 14.5px; line-height: 1.6; }
/* контракты внутри хиро — тёмная компактная версия .contract (специфичность выше общих правил .contract ниже по файлу) */
.contract.hero-contracts { margin-top: 14px; width: fit-content; max-width: 100%; background: rgba(7, 9, 7, .62); border: 1px solid #2a352c; padding: 0 14px; font-size: 11px; }
.contract.hero-contracts .row { padding: 6px 0; gap: 10px; }
.contract.hero-contracts .row + .row { border-top: 1px solid #1c2620; }
.contract.hero-contracts .lbl { color: #a9baac; width: 64px; font-size: 9.5px; }
.contract.hero-contracts code { background: rgba(0, 0, 0, .5); border: 1px solid #2a352c; color: #d9e6db; font-size: 10.5px; padding: 3px 8px; }
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-inner .cta { flex: none; padding-bottom: 4px; }
.cta button.big { font-size: 14px; padding: 15px 30px; }
#balances { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
#status { font-size: 12.5px; color: var(--muted); min-height: 18px; margin-top: 10px; word-break: break-all; }
#status a { color: var(--acid-hot); font-weight: 700; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-top: 0; border: 1px solid var(--line); border-top: none; background: var(--panel); }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); transition: background .2s; }
.stat:last-child { border-right: none; }
.stat:hover { background: var(--panel-2); }
.stat .k { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.stat .v { font-family: var(--font-mono); font-size: 25px; font-weight: 700; color: var(--ink); margin-top: 7px; letter-spacing: -.02em; }
.stat .v.accent { color: var(--acid-hot); }
@media (max-width: 720px) { .stat { border-bottom: 1px solid var(--line); } }

/* section titles */
h2 {
  margin: 24px 0 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
h2::before { content: '▮'; color: var(--acid); font-size: 11px; }
h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 28px; border: 1px solid var(--line); background: var(--panel); }
.step { padding: 20px 22px; border-right: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }
.step:last-child { border-right: none; }
.step b { display: block; margin-bottom: 7px; font-family: var(--font-display); font-weight: 400; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.step .n { font-family: var(--font-mono); color: var(--acid-hot); font-size: 12px; margin-right: 10px; }
.step span { color: var(--muted); }
@media (max-width: 720px) { .step { border-right: none; border-bottom: 1px solid var(--line); } }

/* carousel + cards */
.carousel { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.crow { display: flex; gap: 10px; width: max-content; animation: slide 45s linear infinite; }
.crow.rev { animation-direction: reverse; animation-duration: 55s; }
.crow:hover { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.card {
  width: 156px; flex: none; background: var(--panel); border: 1px solid var(--line);
  text-align: left; cursor: pointer;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.grid .card { width: auto; }
.card:hover { border-color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 rgba(3, 20, 10, .35); }
.card .imgbox { overflow: hidden; border-bottom: 1px solid var(--line); }
.card img { width: 100%; image-rendering: pixelated; display: block; }
.card .id { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 8px 10px; letter-spacing: .04em; }
.card.mine .id { color: var(--acid-hot); }
#gallery .card { cursor: default; }
#gallery .card.minted { cursor: pointer; }
#gallery .card.minted .imgbox { border-bottom-color: #b8e5bd; }
.card .id b { color: var(--acid-hot); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.card .id .nm { color: #a9b3ab; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.empty { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; padding: 18px; background: var(--panel); border: 1px dashed var(--line); }

/* tables */
.tablebox { max-height: 356px; overflow-y: auto; border: 1px solid var(--line); background: var(--panel); }
.tablebox::-webkit-scrollbar { width: 8px; }
.tablebox::-webkit-scrollbar-thumb { background: var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--panel-2); }
tr:last-child td { border-bottom: none; }
th {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em;
  background: var(--panel-2); color: var(--muted); position: sticky; top: 0; border-bottom: 1px solid var(--line);
}
td { font-family: var(--font-mono); font-size: 12.5px; vertical-align: middle; white-space: nowrap; }
td a { color: var(--ink); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--acid-hot); }
tr.me td { background: var(--acid-dim); }
.num, th.num { text-align: right; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; line-height: 1.5; }
.pill.ev-wrap, .pill.wrap { background: var(--acid-dim); color: var(--acid-hot); border: 1px solid #b8e5bd; }
.pill.ev-unwrap, .pill.unwrap { background: #fdecec; color: var(--red); border: 1px solid #f0c7c3; }

/* tx steps in modal */
.txsteps { padding: 8px 0 2px; }
.txstep { display: flex; gap: 12px; align-items: center; padding: 9px 0; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.txstep .dot { width: 12px; height: 12px; border: 1px solid var(--line); flex: none; }
.txstep.run { color: var(--ink); }
.txstep.run .dot { border-color: var(--acid-hot); border-top-color: transparent; animation: spin .8s linear infinite; }
.txstep.done { color: var(--acid-hot); }
.txstep.done .dot { border-color: var(--acid-hot); background: var(--acid); }
@keyframes spin { to { transform: rotate(360deg); } }

/* contracts */
.contract { background: var(--panel); border: 1px solid var(--line); padding: 4px 20px; font-size: 12.5px; }
.contract .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 11px 0; }
.contract .row + .row { border-top: 1px solid var(--panel-2); }
.contract .lbl { color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; font-size: 10px; letter-spacing: .14em; width: 84px; }
.contract code { background: var(--panel-2); border: 1px solid var(--line); padding: 4px 10px; font-size: 11.5px; word-break: break-all; }

/* modal */
.overlay { position: fixed; inset: 0; background: rgba(10, 14, 10, .5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.overlay.open { display: flex; }
.overlay.open .modal { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { background: var(--panel); border: 1px solid var(--ink); box-shadow: 8px 8px 0 rgba(3, 20, 10, .3); max-width: 400px; width: 100%; padding: 18px; }
.modal img.art { width: 100%; image-rendering: pixelated; display: block; border: 1px solid var(--line); }
.modal .title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal .title b { font-family: var(--font-display); font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.modal .kv { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); word-break: break-all; margin-top: 10px; line-height: 1.8; }
.modal .kv a { color: var(--ink); }
.modal .links { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal .links a {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--ink);
  background: var(--bg); padding: 9px 13px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .06em; text-decoration: none; transition: border-color .15s;
}
.modal .links a:hover { border-color: var(--ink); }
.modal .links img { width: 16px; height: 16px; }
.modal .unwrapBtn { width: 100%; margin-top: 14px; }
.modal .close { background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 15px; padding: 3px 9px; }
.modal .close:hover { border-color: var(--line); color: var(--ink); background: transparent; transform: none; box-shadow: none; }

/* docs */
.doc { max-width: 780px; font-size: 15px; line-height: 1.7; }
.doc h1 { font-family: var(--font-display); font-weight: 400; font-size: 42px; text-transform: uppercase; letter-spacing: .02em; margin: 28px 0 12px; }
.doc h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin: 32px 0 8px; }
.doc p, .doc ol, .doc ul { margin: 10px 0; color: #3c4a3e; }
.doc ol, .doc ul { margin-left: 22px; }
.doc li { margin: 5px 0; }
.doc code { background: var(--panel-2); border: 1px solid var(--line); padding: 2px 7px; font-size: 12.5px; }
.doc .note { background: var(--acid-dim); border: 1px solid #b8e5bd; padding: 12px 16px; font-size: 13.5px; margin: 14px 0; }

/* footer — one thin line */
footer { border-top: 1px solid var(--line); padding: 3px 0 0; font-family: var(--font-mono); font-size: 9px; letter-spacing: .03em; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; line-height: 1.1; }
footer .socials { display: flex; gap: 2px; flex-wrap: wrap; }
footer .socials a {
  display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase;
  letter-spacing: .04em; text-decoration: none; padding: 1px 3px;
  transition: color .15s;
}
footer .socials a:hover { color: var(--acid-hot); }
footer .socials img { width: 10px; height: 10px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .hero-banner h1 { font-size: 36px; }
  .hero-inner { padding: 56px 18px 18px; }
  nav.menu { display: none; }
}
