@font-face { font-family: "Silkscreen"; src: url(/fonts/silkscreen-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url(/fonts/silkscreen-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url(/fonts/pixelify-sans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #0B0B0C;
  --ink-2: #0F0F11;
  --panel: #121215;
  --panel-2: #17171B;
  --line: #1E1E23;
  --line-2: #2B2B32;
  --text: #EDEDED;
  --muted: #9A9AA3;
  --faint: #55555E;
  --orange: #F7931A;
  --orange-hi: #FFAD45;
  --orange-lo: rgba(247, 147, 26, .12);
  --good: #6EE7A8;
  --bad: #FF6B5E;
  --display: "Silkscreen", ui-monospace, monospace;
  --body: "Pixelify Sans", ui-monospace, monospace;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: 32px;
  --notch: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.5 var(--body);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
canvas.px, #ink, #forge-canvas, #m-canvas, #scan-canvas, .blk canvas, .tile canvas, .sw canvas, #card-forge, .mosaic-c { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.muted-s { color: var(--faint); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.top, main, .foot { position: relative; z-index: 1; }

/* pixel corners */
.notch {
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch),
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 14px; width: auto; image-rendering: pixelated; }
.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a { font: 400 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; position: relative; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); }
.nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); font: 400 12px/1 var(--display); color: var(--muted); white-space: nowrap; }
.status b { color: var(--text); font-weight: 400; }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--orange); animation: pulse 2s infinite; flex: none; }
.status.off .dot { background: var(--faint); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(247, 147, 26, .55); } 70% { box-shadow: 0 0 0 8px rgba(247, 147, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 147, 26, 0); } }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); transition: border-color .2s, background .2s; }
.icon-btn:hover { border-color: var(--orange); }
.icon-btn svg { width: 15px; height: 15px; fill: var(--text); }
.me-chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 4px; border: 1px solid var(--line-2); font: 400 12px/1 var(--display); color: var(--orange); }
.me-chip img { width: 26px; height: 26px; background: var(--panel-2); image-rendering: auto; }

/* ---------- type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 400 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.kicker .dot { width: 6px; height: 6px; }
.title { margin: 18px 0 0; font: 700 clamp(30px, 4vw, 48px)/1.05 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.title-s { margin: 10px 0 0; font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.body-l { margin: 16px 0 0; font-size: 19px; line-height: 1.45; color: var(--muted); max-width: 46ch; }
.body-m { margin: 12px 0 0; color: var(--muted); }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--faint); }
.pill { display: inline-block; margin-top: 6px; padding: 4px 8px; font: 400 11px/1.2 var(--display); text-transform: uppercase; color: var(--ink); background: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  --notch: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 22px;
  font: 400 14px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: transform .12s, background .2s, color .2s, box-shadow .2s;
  clip-path: polygon(0 var(--notch), var(--notch) var(--notch), var(--notch) 0, calc(100% - var(--notch)) 0, calc(100% - var(--notch)) var(--notch), 100% var(--notch),
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, var(--notch) calc(100% - var(--notch)), 0 calc(100% - var(--notch)));
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn b { font-weight: 400; transition: transform .2s; }
.btn:hover b { transform: translateX(4px); }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }
.btn-wide { width: 100%; margin-top: 18px; }
.mini { font: 400 11px/1 var(--display); text-transform: uppercase; padding: 8px 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.mini:hover { box-shadow: inset 0 0 0 1px var(--orange); }
.link { margin-top: 18px; display: inline-block; font: 400 12px/1.4 var(--display); text-transform: uppercase; color: var(--orange); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; min-height: calc(100svh - 68px - 52px); }
.mega { margin: 22px 0 0; font: 700 clamp(36px, 4.25vw, 64px)/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.mega span { display: block; }
.mega .hot { color: var(--orange); text-shadow: 0 0 32px rgba(247, 147, 26, .25); }
.mega.glitch span { animation: glitch .32s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 #ff2e63, -3px 0 #08d9d6; transform: translateX(2px); }
  50% { text-shadow: -3px 0 #ff2e63, 3px 0 #08d9d6; transform: translateX(-2px); }
  100% { text-shadow: none; transform: none; }
}
.lede { margin: 26px 0 0; font-size: 22px; color: var(--muted); }
.cta-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.secrets { margin: 46px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; border-top: 1px solid var(--line-2); }
.secrets div { padding: 16px 14px 0 0; }
.secrets div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.secrets dt { font: 400 11px/1 var(--display); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.secrets dd { margin: 12px 0 0; }
.redact { display: inline-flex; align-items: center; height: 16px; font: 400 12px/1 var(--display); }
.redact i { display: block; width: 76px; height: 14px; background: repeating-linear-gradient(90deg, #2A2A30 0 6px, #1E1E23 6px 8px); position: relative; overflow: hidden; }
.redact i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(247, 147, 26, .3), transparent); transform: translateX(-100%); animation: sweep 3.6s infinite; }
.secrets div:nth-child(2) .redact i::after { animation-delay: .6s; }
.secrets div:nth-child(3) .redact i::after { animation-delay: 1.2s; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.redact.no i { display: none; }
.redact.no::before { content: "NOT YET"; color: var(--orange); letter-spacing: .1em; }

/* terminal */
.terminal { margin: 0; position: relative; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -30px rgba(247, 147, 26, .25); }
.terminal::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line-2); font: 400 11px/1 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 8px; height: 8px; background: var(--line-2); }
.term-dots i:first-child { background: var(--orange); }
.term-id { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0; color: var(--faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 58%; }
.term-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; }
.ink-wrap { position: relative; aspect-ratio: 1; border-right: 1px solid var(--line-2); background: #0D0D0F; }
#ink { width: 100%; height: 100%; }
.stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); opacity: 0;
  padding: 10px 14px; border: 3px solid var(--ink); background: var(--orange); color: var(--ink); font: 700 clamp(14px, 1.6vw, 20px)/1 var(--display); letter-spacing: .06em;
  transition: opacity .2s, transform .35s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; white-space: nowrap;
}
.stamp.on { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
.hexstream { margin: 0; padding: 14px; contain: size; min-height: 0; overflow: hidden; font: 400 11px/1.6 var(--mono); color: #6E6E78; white-space: pre; position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 85%, transparent); }
.hexstream .op { color: var(--orange); }
.hexstream .c { color: var(--faint); }
.hexstream .hi { color: var(--text); }
.term-foot { padding: 14px; border-top: 1px solid var(--line-2); }
.meter { height: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--orange) 0 8px, #C66F0B 8px 10px); transition: width .2s linear; }
.meter.big { height: 14px; }
.term-row { display: flex; justify-content: space-between; margin-top: 10px; font: 400 11px/1 var(--display); color: var(--muted); letter-spacing: .06em; }
#term-pct { color: var(--orange); }

/* ticker */
.ticker { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--orange); color: var(--ink); overflow: hidden; height: 52px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; font: 700 18px/1 var(--display); text-transform: uppercase; animation: ticker 40s linear infinite; padding-left: 40px; }
.ticker-track span { display: inline-flex; align-items: center; gap: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* blocks */
.chain { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font: 400 12px/1 var(--display); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.blocks { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; }
.blocks::-webkit-scrollbar { display: none; }
.blk { flex: 0 0 auto; width: 112px; text-align: left; }
.blk canvas { width: 112px; height: 112px; background: #17171B; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s, box-shadow .2s; }
.blk:hover canvas { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #45454E; }
.blk.on canvas { box-shadow: inset 0 0 0 2px var(--orange); }
.blk .h { display: block; margin-top: 10px; font: 400 13px/1 var(--display); }
.blk .t { display: block; margin-top: 6px; font: 400 12px/1 var(--body); color: var(--faint); }
.blk.next .pend { width: 112px; height: 112px; display: grid; place-items: center; border: 2px dashed var(--orange); background: var(--orange-lo); }
.blk.next .pend svg { width: 30px; height: 42px; fill: var(--orange); animation: blink 1.4s steps(1) infinite; }
.blk.next .h { color: var(--orange); }
.blk.new canvas { animation: drop .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes drop { from { transform: translateX(-24px); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
.divider { flex: 0 0 2px; background: var(--line-2); margin: 0 4px 38px; }

/* trio cards */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 48px; padding-bottom: 80px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); padding: 18px; transition: transform .25s, border-color .25s, background .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--orange); background: var(--panel-2); }
.card h3 { margin: 18px 0 0; font: 700 22px/1 var(--display); text-transform: uppercase; }
.card p { margin: 10px 0 0; color: var(--muted); }
.card-go { margin-top: auto; padding-top: 18px; font: 400 12px/1 var(--display); color: var(--orange); text-transform: uppercase; }
.card-art { height: 180px; background: #0D0D0F; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.card-stars { display: flex; align-items: center; justify-content: center; gap: 10px; }
.card-stars svg { width: 42px; height: 42px; flex: none; }
.status em { font-style: normal; }
.foot-in a:hover { color: var(--orange); }
.card-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; place-items: stretch; }
.card-mosaic canvas { width: 100%; height: 100%; }
.card-forge { background: var(--orange); }
.card-forge canvas { height: 100%; width: auto; aspect-ratio: 1; }

/* ---------- the line ---------- */
.line-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 96px; }
.how { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.how li { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line-2); font: 400 14px/1 var(--display); text-transform: uppercase; color: var(--muted); transition: border-color .3s, color .3s; }
.how li b { font-weight: 400; color: var(--faint); }
.how li.on { color: var(--text); border-color: var(--orange); }
.how li.on b { color: var(--orange); }
.how li.done { color: var(--text); }
.how li.done b { color: var(--good); }
.faq { margin-top: 36px; max-width: 520px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font: 400 13px/1.3 var(--display); text-transform: uppercase; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.panel { background: var(--panel); border: 1px solid var(--line-2); padding: 28px; position: relative; }
.panel::before, .panel::after { content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--orange); border-style: solid; }
.panel::before { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }
.step { animation: stepin .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes stepin { from { opacity: 0; transform: translateY(12px); } }
.step-head { display: flex; align-items: baseline; gap: 14px; font: 700 22px/1 var(--display); text-transform: uppercase; }
.step-head b { color: var(--orange); font-weight: 400; font-size: 14px; }
.alt { margin-top: 4px; }
.alt summary { list-style: none; cursor: pointer; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); font: 400 12px/1.4 var(--display); text-transform: uppercase; color: var(--muted); }
.alt summary::-webkit-details-marker { display: none; }
.alt summary::after { content: " +"; color: var(--orange); }
.alt[open] summary::after { content: " −"; }
.alt.solo summary { display: none; }
.code-box { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; background: var(--ink); border: 2px dashed var(--line-2); }
.code { font: 700 clamp(22px, 3vw, 30px)/1 var(--display); color: var(--orange); letter-spacing: .06em; }
.field { margin-top: 22px; }
.field label { display: block; font: 400 11px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.field-row { display: flex; gap: 10px; position: relative; }
.field input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; background: var(--ink); border: 2px solid var(--line-2); outline: none; font: 400 15px/1 var(--mono); transition: border-color .2s; }
.field input:focus { border-color: var(--orange); }
#w-addr { padding-right: 112px; font-size: 13px; }
.field input.ok { border-color: var(--good); }
.field input.bad { border-color: var(--bad); }
.valid { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 400 12px/1 var(--display); }
.valid.ok { color: var(--good); }
.valid.bad { color: var(--bad); }
.err { min-height: 1.2em; margin: 10px 0 0; color: var(--bad); font-size: 14px; }
.profile { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 24px; background: var(--ink); border: 1px solid var(--line-2); }
.profile img { width: 48px; height: 48px; background: var(--panel-2); flex: none; }
.profile .p-name { font: 700 14px/1.2 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile .p-handle { color: var(--muted); font-size: 14px; }
.profile .p-age { margin-left: auto; text-align: right; flex: none; }
.profile .p-age b { display: block; font: 700 18px/1 var(--display); color: var(--orange); }
.profile .p-age span { display: block; margin-top: 6px; font: 400 10px/1 var(--display); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.profile .p-meta { min-width: 0; }
.profile .p-wallet { font: 400 12px/1.2 var(--mono); color: var(--faint); margin-top: 4px; }

.stars-big { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: var(--ink); border: 1px solid var(--line-2); }
.stars-row { display: flex; gap: 8px; }
.stars-row svg { width: 34px; height: 34px; }
.stars-row.xl svg { width: clamp(44px, 9vw, 72px); height: clamp(44px, 9vw, 72px); }
.stars-row svg.pop { animation: pop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.stars-meta { text-align: right; font: 400 11px/1 var(--display); color: var(--faint); text-transform: uppercase; }
.stars-meta b { display: block; font: 700 30px/1 var(--display); color: var(--orange); margin-bottom: 6px; }
.tasks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.task { padding: 14px; background: var(--ink); border: 1px solid var(--line-2); transition: border-color .3s; }
.task.done { border-color: rgba(110, 231, 168, .4); }
.task-row { display: flex; align-items: center; gap: 12px; }
.task-name { flex: 1; font: 400 13px/1.3 var(--display); text-transform: uppercase; }
.task-gain { font: 400 12px/1 var(--display); color: var(--orange); white-space: nowrap; }
.task .btn { height: 38px; padding: 0 14px; font-size: 12px; }
.task.done .task-gain { color: var(--good); }
.task-proof { display: flex; gap: 8px; margin-top: 12px; }
.task-proof input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; background: var(--panel); border: 2px solid var(--line-2); font: 400 13px/1 var(--mono); outline: none; }
.task-proof input:focus { border-color: var(--orange); }
.task .err { margin-top: 8px; font-size: 13px; min-height: 0; }
.task .err:empty { display: none; }
.task.soon { opacity: .45; }

/* ---------- scan overlay ---------- */
.scan { position: fixed; inset: 0; z-index: 60; background: rgba(8, 8, 9, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.scan::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }
.scan-in { width: 100%; max-width: 560px; text-align: center; position: relative; z-index: 1; }
.scan-stage { position: relative; margin: 22px auto 0; width: min(240px, 60vw); }
#scan-canvas { width: 100%; aspect-ratio: 1; background: #0D0D0F; box-shadow: 0 0 0 1px var(--line-2), 0 0 60px -10px rgba(247, 147, 26, .35); }
.scan-addr { margin-top: 12px; font: 400 12px/1 var(--mono); color: var(--muted); }
.scan-steps { list-style: none; margin: 26px auto 0; padding: 0; text-align: left; max-width: 440px; display: grid; gap: 10px; }
.scan-steps li { display: flex; align-items: center; gap: 12px; font: 400 12px/1.3 var(--display); text-transform: uppercase; color: var(--faint); transition: color .3s; }
.scan-steps li::before { content: "·"; width: 18px; flex: none; text-align: center; }
.scan-steps li.run { color: var(--text); }
.scan-steps li.run::before { content: "▶"; color: var(--orange); animation: blink .6s steps(1) infinite; }
.scan-steps li.ok { color: var(--muted); }
.scan-steps li.ok::before { content: "✓"; color: var(--good); }
.scan .meter { margin: 22px auto 0; max-width: 440px; }
.hexstream.small { contain: none; height: 72px; margin: 16px auto 0; max-width: 440px; padding: 0; font-size: 10px; text-align: left; }
.scan-result { margin-top: 10px; animation: stepin .5s cubic-bezier(.2, .8, .2, 1); }
.scan-result .stars-row { justify-content: center; margin-top: 16px; }
.scan-result .title-s { margin: 18px 0 22px; }
.scan-error { margin-top: 20px; }

/* ---------- gallery ---------- */
.g-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 28px; }
.g-filter { display: flex; gap: 10px; }
.sel { display: grid; gap: 8px; font: 400 11px/1 var(--display); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.sel select { height: 44px; min-width: 160px; padding: 0 36px 0 12px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3' shape-rendering='crispEdges'%3E%3Cpath fill='%23F7931A' d='M0 0h5v1H0zM1 1h3v1H1zM2 2h1v1H2z'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; border: 2px solid var(--line-2); appearance: none; -webkit-appearance: none; font: 400 13px/1 var(--display); text-transform: uppercase; color: var(--text); outline: none; }
.sel select:focus { border-color: var(--orange); }
.sel select:disabled { opacity: .5; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding-bottom: 32px; }
.tile { position: relative; background: #17171B; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s, background .2s, box-shadow .2s; text-align: left; }
.tile canvas { width: 100%; aspect-ratio: 1; }
.tile .tid { position: absolute; left: 8px; bottom: 8px; font: 400 10px/1 var(--display); color: var(--muted); background: rgba(11, 11, 12, .8); padding: 4px 6px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--orange), 0 18px 40px -18px rgba(247, 147, 26, .55); }
.tile:hover .tid, .tile:focus-visible .tid { opacity: 1; transform: none; }
.tile.in { animation: tilein .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tilein { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.g-end { text-align: center; padding: 24px 0 96px; color: var(--muted); font: 400 13px/1.6 var(--display); text-transform: uppercase; }
.g-end-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.g-end-row canvas { width: 64px; height: 64px; background: #17171B; }
#g-sentinel { height: 1px; }

.modal { position: fixed; inset: 0; z-index: 55; background: rgba(8, 8, 9, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .25s; overflow-y: auto; }
.modal-in { position: relative; width: 100%; max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line-2); animation: stepin .35s cubic-bezier(.2, .8, .2, 1); }
.modal-art { background: var(--orange); }
.modal-art canvas { width: 100%; aspect-ratio: 1; }
.modal-info { padding: 28px; display: flex; flex-direction: column; }
.modal-x { position: absolute; top: 8px; right: 12px; font: 400 28px/1 var(--display); color: var(--muted); z-index: 2; width: 40px; height: 40px; }
.modal-x:hover { color: var(--text); }
.traits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.traits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); }
.traits .tl { font: 400 10px/1 var(--display); color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.traits .tv { display: block; margin-top: 6px; font-size: 16px; }
.tier { font: 400 10px/1 var(--display); text-transform: uppercase; padding: 5px 7px; letter-spacing: .06em; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.tier.uncommon { color: var(--text); box-shadow: inset 0 0 0 1px #4A4A54; }
.tier.rare { color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.tier.legendary { color: var(--ink); background: var(--orange); box-shadow: 0 0 18px rgba(247, 147, 26, .5); }
.modal-actions { margin-top: auto; padding-top: 22px; display: flex; gap: 8px; }
.modal-actions .btn { height: 44px; padding: 0 14px; font-size: 12px; }
.modal-actions #m-share { flex: 1; }

/* ---------- forge ---------- */
.forge-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 96px; }
.forge-stage { position: sticky; top: 92px; }
.stage-frame { position: relative; background: var(--orange); box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(247, 147, 26, .35); transition: background .3s; }
#forge-canvas { width: 100%; aspect-ratio: 1; }
.stage-tag { position: absolute; top: 12px; left: 12px; font: 400 11px/1 var(--display); padding: 6px 8px; background: var(--ink); color: var(--orange); letter-spacing: .08em; }
.stage-tag.official { background: var(--bad); color: var(--ink); }
.bg-row { display: flex; gap: 8px; margin-top: 14px; }
.bg-row button { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.bg-row button[aria-checked="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.stage-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tabs button:first-child { margin-right: 6px; }
.stage-actions .btn-primary { grid-column: 1 / -1; }
.forge-note { min-height: 1.4em; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.forge-note.bad { color: var(--bad); }
.forge-note.good { color: var(--good); }
.tabs { display: flex; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.tabs button { font: 400 12px/1 var(--display); text-transform: uppercase; padding: 12px 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--orange); color: var(--ink); box-shadow: none; }
.swatches { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.sw { position: relative; background: #17171B; box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; transition: transform .15s, box-shadow .2s, background .2s; }
.sw canvas { width: 100%; aspect-ratio: 1; }
.sw .sw-name { display: block; padding: 8px 8px 10px; font-size: 13px; line-height: 1.15; color: var(--muted); }
.sw .sw-tier { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--faint); }
.sw .sw-tier.uncommon { background: var(--text); }
.sw .sw-tier.rare { background: var(--orange); }
.sw .sw-tier.legendary { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.sw:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #4A4A54; }
.sw[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--orange); background: #1E1A14; }
.sw[aria-pressed="true"] .sw-name { color: var(--text); }

/* ---------- footer, tab bar, toast, confetti ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 24px; font: 400 11px/1 var(--display); letter-spacing: .08em; color: var(--faint); text-transform: uppercase; }
.tabbar { display: none; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--ink); font: 400 12px/1 var(--display); letter-spacing: .06em; padding: 14px 18px; text-transform: uppercase; transition: opacity .3s, transform .3s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.gold { background: var(--orange); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }

/* view transitions */
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* entrance */
.rise { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 40px; padding-top: 40px; }
  .terminal { max-width: 640px; }
  .line-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .line-card { order: -1; }
  .line-intro .how { display: none; }
  .forge-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .forge-stage { position: relative; top: 0; max-width: 520px; }
  .trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { padding-bottom: 64px; }
  .top-in { height: 58px; gap: 10px; }
  .nav { display: none; }
  .brand img { height: 12px; }
  .status { padding: 0 10px; gap: 8px; }
  .status span { font-size: 11px; }
  .status .lbl { display: none; }
  .top-right { gap: 8px; }
  .top-right .icon-btn { display: none; }
  .me-chip { padding-right: 8px; }
  .profile { flex-wrap: wrap; }
  .profile .p-age { width: 100%; margin-left: 0; text-align: left; display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .profile .p-age span { margin-top: 0; }
  .card-stars svg { width: 34px; height: 34px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 60px; padding-bottom: env(safe-area-inset-bottom); background: rgba(11, 11, 12, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); }
  .tabbar a { display: grid; place-items: center; font: 400 11px/1 var(--display); text-transform: uppercase; color: var(--muted); }
  .tabbar a.on { color: var(--orange); box-shadow: inset 0 2px 0 var(--orange); }
  .mega { font-size: clamp(30px, 10.4vw, 52px); }
  .lede { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .term-body { grid-template-columns: minmax(0, 1fr); }
  .ink-wrap { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .hexstream { height: 120px; }
  .ticker { height: 44px; }
  .ticker-track { font-size: 14px; }
  .blk, .blk canvas, .blk.next .pend { width: 88px; }
  .blk canvas, .blk.next .pend { height: 88px; }
  .panel { padding: 20px; }
  .step-head { font-size: 18px; }
  .code-box { padding: 14px; }
  .profile .p-age b { font-size: 15px; }
  .g-filter { width: 100%; }
  .sel { flex: 1; }
  .sel select { min-width: 0; width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .modal-in { grid-template-columns: minmax(0, 1fr); }
  .modal-info { padding: 20px; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .toast { bottom: 80px; }
  .foot-in { flex-direction: column; gap: 10px; }
  .stars-row svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
