/* HashOre Market. Same mine-shaft strata as hashore.xyz: light surface, darker as you go down. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("/fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-display: swap; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 900; font-display: swap; src: url("/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --s1: #d5d7d0; --s2: #b4b8b0; --s3: #61666d; --s4: #3d4249; --s5: #2a2e34; --s6: #191c20; --pit: #0f1114;
  --ink: #1b1e22; --ink-soft: #464b52; --fog: #eceee9; --fog-soft: #aab0b6; --line: rgba(255, 255, 255, 0.08);
  --coal: #b4b6c2; --iron: #e2b48f; --copper: #f08a4b; --silver: #d3dde4; --gold: #ffd447; --diamond: #5ef2f2;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --steps: polygon(0 100%,0 50%,6% 50%,6% 0,13% 0,13% 50%,21% 50%,21% 100%,27% 100%,27% 50%,33% 50%,33% 0,44% 0,44% 50%,51% 50%,51% 100%,58% 100%,58% 50%,64% 50%,64% 0,71% 0,71% 50%,79% 50%,79% 0,88% 0,88% 50%,94% 50%,94% 100%,100% 100%);
}
* { box-sizing: border-box; }
html { background: var(--s6); }
body { margin: 0; font: 400 16px/1.5 var(--body); color: var(--fog); background: var(--s4); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--fog); }
a:hover { color: var(--gold); }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--fog-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 12px; }
.t0 { color: var(--coal); } .t1 { color: var(--iron); } .t2 { color: var(--copper); }
.t3 { color: var(--silver); } .t4 { color: var(--gold); } .t5 { color: var(--diamond); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px 2px; border: 0; border-radius: 3px;
  background: var(--fog); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(0,0,0,.25); }
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn:active { box-shadow: inset 0 4px 0 rgba(0,0,0,.2); }
.btn.gold { background: var(--gold); }
.btn.dark { background: var(--ink); color: var(--fog); box-shadow: inset 0 3px 0 rgba(255,255,255,.14), inset 0 -4px 0 rgba(0,0,0,.38); }
.btn.dark:hover { color: var(--gold); }
.btn.ghost { background: transparent; color: var(--fog); box-shadow: inset 0 0 0 2px var(--fog); }
.btn.ghost:hover { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn.small { min-height: 42px; padding: 0 14px 2px; font-size: 15px; }
.tag { display: inline-block; font: 700 13px/1 var(--body); padding: 5px 8px 6px; border-radius: 2px; }
.tag.live { background: var(--gold); color: var(--ink); }
.tag.live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #1f8f4e; vertical-align: 1px; }
.tag.line { box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); color: var(--fog); }

/* Top bar */
.bar { background: var(--s1); color: var(--ink); border-bottom: 2px solid rgba(27,30,34,.12); }
.bar-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 26px/1 var(--display); }
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-right: auto; font-weight: 700; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }

/* Strata */
.stratum { position: relative; padding: 56px 0; }
.stratum::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: inherit; clip-path: var(--steps); }
.st4 { background: var(--s4); } .st5 { background: var(--s5); } .st6 { background: var(--s6); }
#view > .stratum:first-child::before { display: none; }

/* Market head */
.mhead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; align-items: end; }
h1.big { margin: 16px 0 0; font: 900 112px/.9 var(--display); }
.lede { margin: 16px 0 0; font-size: 20px; line-height: 1.5; max-width: 52ch; color: #e3e6e1; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid rgba(255,255,255,.1); }
.stats > div { padding: 18px 0; border-bottom: 2px solid rgba(255,255,255,.1); }
.stats > div:nth-child(even) { padding-left: 24px; border-left: 2px solid rgba(255,255,255,.1); }
.stats > div:nth-last-child(-n+2) { border-bottom: 0; }
.stats dt { font-size: 15px; color: var(--fog-soft); }
.stats dd { margin: 4px 0 0; font: 800 40px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.stats dd small { font-size: 24px; color: var(--fog-soft); }
.updated { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 14px; color: var(--fog-soft); }
.notice { margin-top: 24px; background: var(--s6); border-radius: 4px; padding: 18px 20px; box-shadow: inset 4px 0 0 var(--gold); }
.notice b { font: 800 24px/1.1 var(--display); display: block; margin-bottom: 4px; }
.notice p { margin: 0; color: #d3d7da; }

/* Floor by ore */
h2.sec { margin: 0 0 14px; font: 900 34px/1 var(--display); }
.ores { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ore-tile { display: flex; align-items: center; gap: 12px; padding: 10px; min-height: 84px; background: var(--s6); color: var(--fog); border-radius: 4px; border: 2px solid var(--line); text-align: left; }
.ore-tile[aria-pressed="true"] { border-color: currentColor; }
.ore-tile img { width: 64px; height: 64px; flex: none; display: block; }
.ore-tile .n { font: 900 26px/1 var(--display); display: block; }
.ore-tile .f { font: 800 22px/1.1 var(--display); color: var(--fog); display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ore-tile .c { font-size: 13px; color: var(--fog-soft); display: block; margin-top: 2px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-weight: 700; font-size: 15px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--s6); border-radius: 3px; padding: 4px; gap: 4px; }
.seg button { border: 0; border-radius: 2px; padding: 0 16px; min-height: 42px; font-weight: 700; font-size: 15px; background: transparent; color: var(--fog-soft); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--fog); color: var(--ink); }
select, input.in-f { padding: 11px 12px; border-radius: 3px; border: 2px solid rgba(255,255,255,.16); background: var(--s6); color: var(--fog); min-width: 170px; font-size: 16px; }
.find { margin-left: auto; }
.find form { display: flex; gap: 8px; }
.find input { width: 130px; min-width: 0; font-family: var(--mono); }
.result-line { margin: 14px 0 0; font-size: 15px; color: var(--fog-soft); }

/* Grid of listings */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--s6); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card > a { display: block; }
.card img.art { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.card .body { padding: 14px 14px 16px; display: grid; gap: 10px; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card .price { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.cur { font: 700 13px/1 var(--body); padding: 4px 7px 5px; border-radius: 2px; }
.cur.c0 { background: var(--fog); color: var(--ink); }
.cur.c1 { box-shadow: inset 0 0 0 2px var(--fog-soft); color: var(--fog); }
.card .meta { font-size: 14px; color: var(--fog-soft); }
.card .meta b { font-weight: 700; }
.card .btn { min-height: 44px; font-size: 15px; }
.empty { grid-column: 1 / -1; background: var(--s6); border-radius: 4px; padding: 36px 24px; text-align: center; }
.empty b { display: block; font: 900 32px/1.1 var(--display); margin-bottom: 6px; }
.empty p { margin: 0 auto; max-width: 52ch; color: #d3d7da; }
.empty .btn { margin-top: 16px; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.skeleton { background: linear-gradient(90deg, var(--s6), #22262b, var(--s6)); background-size: 200% 100%; animation: sh 1.4s infinite linear; border-radius: 4px; aspect-ratio: .78; }
@keyframes sh { to { background-position: -200% 0; } }

/* Sales + how */
.split { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.split > :first-child { flex: 999 1 560px; min-width: 0; }
.split > :last-child { flex: 1 1 360px; min-width: 0; }
h2.huge { margin: 0 0 18px; font: 900 56px/.95 var(--display); }
.sales { list-style: none; margin: 0; padding: 0; }
.sales li { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 2px solid rgba(255,255,255,.07); }
.sales img { width: 48px; height: 48px; display: block; }
.sales .who { font-family: var(--mono); font-size: 13px; color: var(--fog-soft); }
.sales b { font-variant-numeric: tabular-nums; }
.sales .when { color: var(--fog-soft); font-size: 15px; min-width: 84px; text-align: right; }
.sales .none { display: block; color: var(--fog-soft); padding: 12px 0; }
.how { background: var(--s6); border-radius: 4px; padding: 28px; align-self: start; }
.how h2 { margin: 0 0 6px; font: 900 34px/1 var(--display); }
.how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.how .split-fee { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--line); display: grid; gap: 6px; font-size: 15px; }
.how .split-fee div { display: flex; justify-content: space-between; }

/* Block page */
.crumbs { font-size: 15px; color: var(--fog-soft); margin-bottom: 28px; }
.crumbs a { color: var(--fog-soft); }
.detail { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: start; }
.detail figure { margin: 0; flex: 1 1 440px; min-width: 0; max-width: 600px; }
.detail figure img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 4px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.detail figcaption { margin-top: 12px; font-size: 14px; color: var(--fog-soft); }
.detail .info { flex: 999 1 460px; min-width: 0; display: grid; gap: 28px; }
.chip { display: inline-block; font: 700 14px/1 var(--body); padding: 6px 10px 7px; border-radius: 2px; color: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
h1.block { margin: 16px 0 0; font: 900 96px/.9 var(--display); }
.box { background: var(--s6); border-radius: 4px; padding: 24px; }
.box h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--fog-soft); }
.bigprice { font: 900 72px/1 var(--display); font-variant-numeric: tabular-nums; }
.breakdown { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 2px solid var(--line); }
.breakdown dt { font-size: 14px; color: var(--fog-soft); }
.breakdown dd { margin: 4px 0 0; font: 800 24px/1.1 var(--display); }
h2.mid { margin: 0; font: 900 40px/1 var(--display); }
pre.prompt { margin: 0; background: var(--pit); color: #d7dbe0; padding: 18px 20px; border-radius: 4px; font: 400 15px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.traits { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 2px solid var(--line); }
.traits div { padding: 14px 0; border-bottom: 2px solid var(--line); }
.traits dt { font-size: 14px; color: var(--fog-soft); }
.traits dd { margin: 4px 0 0; font-weight: 700; }
.hash { padding: 14px 0; border-bottom: 2px solid var(--line); }
.hash code { display: block; margin-top: 4px; font: 400 15px/1.5 var(--mono); word-break: break-all; }
.hash code span { color: var(--gold); font-weight: 600; }

/* Sell page */
.sell { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: start; }
.sell > section { flex: 1 1 460px; min-width: 0; display: grid; gap: 16px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line); }
.steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.steps li b { font: 900 24px/1 var(--display); color: var(--gold); width: 18px; flex: none; }
.chat { background: var(--s6); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--pit); font-size: 13px; color: var(--fog-soft); }
.chat-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--s3); }
.chat-body { padding: 20px; display: grid; gap: 14px; font-size: 15px; }
.msg-u { justify-self: end; max-width: 85%; background: var(--s4); padding: 12px 14px; border-radius: 6px 6px 2px 6px; }
.msg-a { max-width: 92%; display: grid; gap: 8px; }
.msg-a pre { margin: 0; background: var(--pit); border-radius: 4px; padding: 12px 14px; font: 400 13px/1.6 var(--mono); color: #d7dbe0; white-space: pre-wrap; }
.example-note { font-size: 13px; color: var(--fog-soft); margin: 10px 0 0; }

/* Footer */
.foot { background: var(--s6); padding: 40px 0 56px; color: var(--fog-soft); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.foot p { margin: 0; max-width: 64ch; }
.foot dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 14px; font-family: var(--mono); font-size: 13px; }
.foot dt { color: var(--fog-soft); font-family: var(--body); }
.foot dd { margin: 0; }
.foot a { color: var(--fog); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 40; }
.toast { background: var(--fog); color: var(--ink); padding: 12px 16px; border-radius: 3px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

@media (max-width: 720px) {
  .in, .bar-in { padding-left: 16px; padding-right: 16px; }
  h1.big { font-size: 72px; }
  h1.block { font-size: 64px; }
  .bigprice { font-size: 52px; }
  .stats dd { font-size: 30px; }
  .stats dd small { font-size: 18px; }
  h2.huge { font-size: 44px; }
  .bar-in > .btn { display: none; }
  .nav { gap: 2px 16px; font-size: 15px; }
  .ores { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .ore-tile { flex: 0 0 172px; }
  .ore-tile img { width: 48px; height: 48px; }
  .ore-tile .f { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card .price { font-size: 22px; }
  .card .body { padding: 10px; gap: 8px; }
  .card .meta .seller { display: none; }
  .card .btn { min-height: 40px; font-size: 14px; padding: 0 8px 2px; }
  .find { margin-left: 0; }
  .breakdown { grid-template-columns: 1fr; }
  .sales li { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .sales .when { display: none; }
  .sales img { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
