/* FURNACE — a block world. Everything is square, beveled and pixel-snapped; textures are 16px tiles drawn by scripts/make-art.mjs. */
:root {
  /* on the world (outside panels): light text with a hard shadow */
  --ink: #ffffff; --ink2: #e2e2e2; --mute: #b9b9b9; --dim: #8a8a8a; --strong: #ffffff;
  --fire: #ffa53a; --hot: #ff6a1a; --gold: #ffd640; --ember: #ffc27a; --ok: #7be07b; --bad: #ff7b6b;
  /* panel parts */
  --gui: #c6c6c6; --gui-hi: #ffffff; --gui-lo: #555555; --slot: #8b8b8b; --slot-hi: #ffffff; --slot-lo: #373737; --edge: #000000;
  --line: rgba(0, 0, 0, .18); --line2: rgba(0, 0, 0, .34);
  --display: "Jersey 20", "Courier New", monospace; --sans: "Jersey 15", "Courier New", monospace; --mono: "VT323", "Courier New", monospace;
  --sh: 2px 2px 0 #2a2a2a;
  color-scheme: dark;
}
/* inside a panel: dark text on light gray */
.card, .mini, .node, .sum, .gui, .toast { --ink: #262626; --ink2: #3a3a3a; --mute: #5b5b5b; --dim: #777; --strong: #111111; --fire: #b44100; --hot: #a83200; --gold: #7a5200; --ember: #8a4a12; --ok: #1d6f2b; --bad: #a8241b; color: var(--ink); text-shadow: none; }
* { box-sizing: border-box; border-radius: 0 !important; font-synthesis: none; }
html, body { margin: 0; overflow-x: clip; }
body { background: linear-gradient(rgba(8, 8, 12, .5), rgba(8, 8, 12, .72)), url(/tx-deep.png) 0 0 / 64px 64px; image-rendering: pixelated; color: var(--ink); font-family: var(--sans); font-size: 20px; line-height: 1.5; min-height: 100vh; text-shadow: var(--sh); }
img, canvas, .ball, .logo { image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; text-shadow: inherit; }
input, textarea, select { font: inherit; color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.08; }
.mono { font-family: var(--mono); }
.mute { color: var(--mute); }
.up { color: var(--ok); } .hot { color: var(--fire); }
[hidden] { display: none !important; }
::selection { background: #3c8527; color: #fff; }

/* ---------------------------------------------------------- ticker (a strip of grass) */
.ticker { position: sticky; top: 0; z-index: 30; height: 32px; overflow: hidden; background: url(/tx-grass.png) 0 0 / 32px 32px; border-bottom: 3px solid #000; color: #fff; font: 600 17px/29px var(--display); }
.ticker .track { display: inline-flex; white-space: nowrap; animation: tick 70s linear infinite; }
.ticker span { padding: 0 22px; }
.ticker span::before { content: "■"; margin-right: 12px; font-size: 11px; vertical-align: 2px; color: #ffe46b; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - 32px); }
.side { position: sticky; top: 32px; height: calc(100vh - 32px); background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .5)), url(/tx-planks.png) 0 0 / 64px 64px; border-right: 3px solid #000; padding: 24px 16px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.brand b { font: 700 31px/1 var(--display); letter-spacing: .01em; }
.tagline { padding: 10px 6px 20px; font: 600 16px var(--display); color: #ffe46b; }
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; font: 600 20px var(--display); color: #fff; background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -2px 0 #4c4c4c; }
.nav a svg { width: 22px; height: 22px; flex: none; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; filter: drop-shadow(2px 2px 0 #2a2a2a); }
.nav a:hover { background: #7f8fc2; box-shadow: inset 2px 2px 0 #bcc8f0, inset -2px -2px 0 #55628f; color: #ffffa0; }
.nav a.on { background: #3c8527; box-shadow: inset 2px 2px 0 #6fc24b, inset -2px -2px 0 #27591a; color: #fff; }
.cta { display: block; margin-top: 16px; text-align: center; padding: 12px 16px; background: #d9731a; border: 2px solid #000; box-shadow: inset 2px 2px 0 #ffb565, inset -2px -2px 0 #8f4406; color: #fff; font: 700 20px var(--display); }
.cta:hover { background: #ec8427; color: #ffffa0; }
.side .foot { margin-top: auto; border-top: 3px solid rgba(0, 0, 0, .55); padding-top: 16px; display: flex; justify-content: center; align-items: flex-end; gap: 8px; }

.logo { flex: none; display: inline-block; object-fit: contain; border: 2px solid #000; }
.ball { display: inline-block; flex: none; background: url(/furnace.png) center / 100% 100%; outline: 2px solid #000; outline-offset: -1px; }
.nav .ball { outline-width: 1px; }
.it { display: inline-block; width: 32px; height: 32px; flex: none; background: center / 100% 100% no-repeat; vertical-align: middle; }
.it.ingot { background-image: url(/it-ingot.png); } .it.coal { background-image: url(/it-coal.png); } .it.flame { background-image: url(/it-flame.png); } .it.token { background: #e8dcc0; box-shadow: inset 0 0 0 4px #5a4a2a, inset 10px 10px 0 -4px #fff8e6; }

.main { position: relative; padding: 34px 44px 90px; min-width: 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.topright { position: absolute; top: 26px; right: 36px; display: flex; gap: 10px; z-index: 5; }
.capill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #000; border: 2px solid #a0a0a0; font: 600 17px var(--display); color: #e2e2e2; }
.capill b { color: #ffe46b; font-family: var(--mono); font-weight: 400; font-size: 18px; }
@media (max-width: 1280px) { .capill b { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.xbtn { width: 44px; height: 44px; display: grid; place-items: center; background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -2px 0 #4c4c4c; }
.xbtn svg { width: 17px; height: 17px; fill: #fff; }

/* ---------------------------------------------------------- pieces */
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; background: rgba(0, 0, 0, .55); border: 2px solid #000; font: 600 16px var(--display); color: #ffe46b; }
.tag i { width: 8px; height: 8px; background: var(--hot); box-shadow: 0 0 0 2px #000; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { background: #ffe46b; } }
.hero h1 { font-size: clamp(40px, 6vw, 84px); margin: 22px 0 22px; max-width: 13ch; text-shadow: 4px 4px 0 #2a2a2a; }
.hero h1 em { font-style: normal; display: inline-block; color: #ffe46b; text-shadow: 4px 4px 0 #6b3a00; }
.lead { max-width: 56ch; font-size: 22px; color: var(--ink2); margin: 0 0 14px; }
.sub { font: 600 19px var(--display); color: #ffe46b; margin-bottom: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; font: 600 20px var(--display); background: #6f6f6f; color: #fff; text-shadow: var(--sh); border: 2px solid #000; box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -2px 0 #4c4c4c; }
.btn:hover { background: #7f8fc2; box-shadow: inset 2px 2px 0 #bcc8f0, inset -2px -2px 0 #55628f; color: #ffffa0; }
.btn:active { box-shadow: inset -2px -2px 0 #a9a9a9, inset 2px 2px 0 #4c4c4c; }
.btn.pri { background: #3c8527; box-shadow: inset 2px 2px 0 #6fc24b, inset -2px -2px 0 #27591a; font-weight: 700; }
.btn.pri:hover { background: #4a9a31; box-shadow: inset 2px 2px 0 #86d862, inset -2px -2px 0 #27591a; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 17px; }
.btn:disabled { background: #2f2f2f; box-shadow: none; color: #9a9a9a; cursor: not-allowed; }
.chips { margin-top: 18px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font: 600 16px var(--display); background: rgba(0, 0, 0, .55); border: 2px solid #000; color: var(--ink2); }
.chip.dark { background: #c6c6c6; color: #262626; text-shadow: none; }
.cabar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 100%; margin-top: 16px; padding: 10px 12px 10px 16px; background: #000; border: 2px solid #a0a0a0; text-align: left; }
.cabar .k { font: 700 16px var(--display); color: #ffe46b; white-space: nowrap; }
.cabar b { font: 400 20px var(--mono); color: #fff; overflow-wrap: anywhere; min-width: 0; }
.cabar .cp { margin-left: auto; padding: 5px 10px; background: #3c8527; border: 2px solid #000; box-shadow: inset 2px 2px 0 #6fc24b, inset -2px -2px 0 #27591a; color: #fff; font: 700 16px var(--display); white-space: nowrap; }
/* the inventory panel */
.card { background: var(--gui); border: 3px solid var(--edge); box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 6px 6px 0 rgba(0, 0, 0, .45); padding: 22px; }
.counter { display: inline-flex; align-items: center; gap: 20px; margin-top: 26px; padding: 18px 28px 18px 20px; }
.counter .n { font: 400 clamp(44px, 5.4vw, 68px)/.9 var(--mono); letter-spacing: .03em; color: var(--strong); }
.label { font: 600 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.counter .k { font: 600 17px var(--display); color: var(--fire); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.counter .k .tag { border: 0 !important; }
.counter small { display: block; font: 400 17px var(--mono); color: var(--mute); margin-top: 6px; }

/* ---------------------------------------------------------- the furnace (hero) */
.scene { position: relative; margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); min-height: 360px; border: 3px solid #000; background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)), url(/tx-stone.png) 0 0 / 64px 64px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .45); }
.scene .stage { position: relative; min-height: 300px; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene .note { position: absolute; left: 12px; bottom: 8px; font: 400 15px var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.scene .legend { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(0, 0, 0, .6); border: 2px solid #000; font: 600 16px var(--display); color: #e2e2e2; }
.scene .legend i { width: 12px; height: 12px; background: #e8dcc0; box-shadow: 0 0 0 2px #5a4a2a; }
.gui { align-self: center; margin: 18px 18px 18px 0; background: var(--gui); border: 3px solid #000; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555; padding: 14px 18px 16px; }
.gui-title { font: 600 21px var(--display); color: #3a3a3a; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.gui-title small { font: 400 17px var(--mono); color: #5b5b5b; }
.gui-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; justify-items: center; }
.gui-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.slot { position: relative; width: 60px; height: 60px; background: var(--slot); box-shadow: inset 3px 3px 0 var(--slot-lo), inset -3px -3px 0 var(--slot-hi); display: grid; place-items: center; }
.slot.big { width: 84px; height: 84px; }
.slot .it { width: 42px; height: 42px; } .slot.big .it { width: 56px; height: 56px; }
.slot em { position: absolute; right: 4px; bottom: -1px; font: 400 21px/1 var(--mono); font-style: normal; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; white-space: nowrap; }
.meter { position: relative; width: 32px; height: 32px; }
.meter .it { position: absolute; inset: 0; width: 32px; height: 32px; }
.meter .it.off { filter: grayscale(1) brightness(.55); }
.meter .lit { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; height: 100%; }
.meter .lit .it { top: auto; bottom: 0; }
.arrow { position: relative; width: 90px; height: 28px; }
.arrow svg { position: absolute; left: 0; top: 0; width: 90px; height: 28px; }
.arrow .fill { position: absolute; left: 0; top: 0; height: 28px; overflow: hidden; width: 0; }
.gui-keys { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 2px solid #9c9c9c; padding-top: 10px; }
.gui-keys div { font: 600 14px var(--display); color: #5b5b5b; text-transform: uppercase; letter-spacing: .04em; }
.gui-keys b { display: block; font: 400 24px/1 var(--mono); color: #1a1a1a; text-transform: none; }
.gui-foot { margin-top: 8px; font: 400 16px var(--mono); color: #5b5b5b; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; padding: 3px; overflow: hidden; }
.steps > div { padding: 18px 20px; border-right: 2px solid var(--line2); }
.steps > div:last-child { border-right: 0; }
.num { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; background: #3a3a3a; font: 400 19px/1 var(--mono); color: #ffe46b; text-shadow: none; }
.steps h3 { font-size: 22px; margin: 12px 0 4px; }
.steps p { margin: 0; font-size: 17px; color: var(--mute); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.stat { padding: 16px 18px; }
.stat b { display: block; margin-top: 6px; font: 400 38px/1 var(--mono); color: var(--strong); }

.sec { margin-top: 74px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sechead .k { display: flex; align-items: center; gap: 10px; font: 600 17px var(--display); color: #ffe46b; margin-bottom: 8px; }
.sechead h2 { font-size: clamp(28px, 3.8vw, 46px); text-shadow: 3px 3px 0 #2a2a2a; }
.sechead h2 svg { width: .82em; height: .82em; vertical-align: -.08em; margin-right: .22em; stroke: var(--fire); fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.more { font: 600 17px var(--display); padding: 7px 12px; background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -2px 0 #4c4c4c; white-space: nowrap; }
.more:hover { background: #7f8fc2; color: #ffffa0; }
.two { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 34px; align-items: center; }
.two p { color: var(--ink2); font-size: 21px; margin: 0 0 14px; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 14px; }
.mini { padding: 14px; background: var(--gui); border: 3px solid #000; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555; }
.mini b { display: block; font: 700 19px var(--display); margin: 10px 0 2px; }
.mini span { font-size: 17px; color: var(--mute); }
.fine { font-size: 17px !important; color: var(--mute) !important; }

.loop { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
.loop::before { content: ""; position: absolute; inset: 15%; border: 4px dashed rgba(255, 228, 107, .55); }
.loop .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.loop .core span { display: block; margin-top: 8px; font: 600 17px var(--display); color: #ffe46b; }
.node { position: absolute; z-index: 3; width: 142px; transform: translate(-50%, -50%); padding: 9px 10px; background: var(--gui); border: 3px solid #000; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 4px 4px 0 rgba(0, 0, 0, .45); text-align: center; }
.node b { display: block; font: 700 17px var(--display); color: var(--strong); }
.node span { font-size: 16px; color: var(--mute); line-height: 1.2; display: block; }

.live { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: start; }
.feed { padding: 8px; }
.ev { display: grid; grid-template-columns: 66px 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; font-size: 17px; }
.ev + .ev { border-top: 2px solid var(--line); }
.ev:hover { background: rgba(0, 0, 0, .08); }
.badge { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; font: 400 17px/1 var(--mono); letter-spacing: .04em; color: #fff; background: #555; text-shadow: none; }
.badge.burn { background: #b44100; }
.badge.fees { background: #7a5200; }
.badge.dry { background: #6b6b6b; }
.ev .txt { font-family: var(--mono); font-size: 18px; line-height: 1.1; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .txt b { color: var(--strong); font-weight: 400; }
.ev .when { font: 400 16px var(--mono); color: var(--mute); white-space: nowrap; }
.av { width: 30px; height: 30px; object-fit: cover; background: var(--slot); display: inline-grid; place-items: center; font: 700 15px var(--display); color: #fff; text-shadow: 1px 1px 0 #3f3f3f; flex: none; overflow: hidden; box-shadow: inset 2px 2px 0 var(--slot-lo), inset -2px -2px 0 var(--slot-hi); image-rendering: auto; }
.av.lg { width: 54px; height: 54px; font-size: 22px; }
.av.xl { width: 78px; height: 78px; font-size: 26px; border: 3px solid #000; box-shadow: none; }
.howlist > div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 0; }
.howlist > div + div { border-top: 2px solid var(--line); }
.howlist b { font: 700 20px var(--display); display: block; }
.howlist p { margin: 2px 0 0; font-size: 17px; color: var(--mute); }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.coin { display: block; padding: 20px; }
.coin:hover { background: #d4d4d4; transform: translate(-2px, -2px); box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 8px 8px 0 rgba(0, 0, 0, .45); }
.coin .top { display: flex; align-items: center; gap: 12px; }
.coin .top b { font: 700 22px/1.15 var(--display); display: block; }
.coin .top .tk { font: 400 18px var(--mono); color: var(--mute); }
.state { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; font: 600 16px var(--display); white-space: nowrap; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .5); border: 2px solid #000; }
.state::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.state.burning { background: #c9520c; }
.state.fueled { background: #8a6a00; }
.state.waiting { background: #6b6b6b; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; margin-top: 18px; }
.kv b { display: block; font: 400 22px/1 var(--mono); color: var(--strong); margin-top: 3px; }
.kv .big b { font-size: 30px; color: var(--fire); }
/* an experience bar */
.bar { height: 12px; background: #2b2b2b; overflow: hidden; margin-top: 16px; border: 2px solid #000; }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, #7fd63a 0 14px, #5fae24 14px 16px); min-width: 2px; }
.coin .foot { display: flex; justify-content: space-between; margin-top: 9px; font: 400 16px var(--mono); color: var(--mute); }

.lookup { padding: 34px; text-align: center; }
.lookup h2 { font-size: 32px; margin-bottom: 8px; }
.inrow { display: flex; gap: 10px; max-width: 640px; margin: 20px auto 0; }
/* a text field: black, light-gray frame */
.in { flex: 1; min-width: 0; height: 46px; padding: 0 14px; background: #000; border: 2px solid #a0a0a0; color: #fff; font-family: var(--mono); font-size: 19px; outline: none; text-shadow: none; }
.in::placeholder { color: #7d7d7d; }
.in:focus { border-color: #fff; }
textarea.in { height: 92px; padding: 10px 14px; resize: vertical; }
.result { margin: 18px auto 0; max-width: 640px; font: 400 17px var(--mono); color: var(--mute); letter-spacing: .06em; }
.result .card { text-align: left; letter-spacing: 0; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555; }

/* ---------------------------------------------------------- pages */
.phead { margin-bottom: 26px; padding-right: 250px; }
.phead h1 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 12px; text-shadow: 3px 3px 0 #2a2a2a; }
.phead h1 .hot { color: #ffe46b; }
.phead p { max-width: 64ch; color: var(--ink2); font-size: 21px; margin: 14px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.pill { height: 36px; padding: 0 14px; font: 600 17px var(--display); background: #6f6f6f; border: 2px solid #000; box-shadow: inset 2px 2px 0 #a9a9a9, inset -2px -2px 0 #4c4c4c; color: #fff; text-shadow: var(--sh); }
.pill:hover { background: #7f8fc2; color: #ffffa0; }
.pill.on { background: #3c8527; box-shadow: inset 2px 2px 0 #6fc24b, inset -2px -2px 0 #27591a; }
.filters .sp { flex: 1; }
select.pill { appearance: none; padding-right: 30px; background: #6f6f6f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10v2H8v2H6v2H4V4H2V2H0z' fill='%23fff'/%3E%3C/svg%3E") no-repeat right 10px center; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { text-align: left; padding: 10px 12px; font: 600 15px var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--line2); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 2px solid var(--line); font-family: var(--mono); font-size: 19px; line-height: 1.1; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(0, 0, 0, .07); }
td.r, th.r { text-align: right; }
.tw { overflow-x: auto; padding: 8px; }
.rank { font: 700 17px var(--display); color: var(--mute); }
.rank.g { color: var(--gold); }
.cc { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; }
.cc small { font: 400 17px var(--mono); color: var(--mute); display: block; }
td a.lk, .lk { color: #2a55b8; text-shadow: none; }
.phead .lk, .sec > .lk { color: #9cc0ff; }
.lk:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.field { margin-bottom: 14px; }
.field label { display: block; font: 600 17px var(--display); color: var(--ink2); margin-bottom: 6px; }
.field .in { width: 100%; }
.up2 { display: grid; grid-template-columns: 112px 1fr; gap: 16px; }
.drop { width: 112px; height: 112px; display: grid; place-items: center; text-align: center; background: var(--slot); box-shadow: inset 3px 3px 0 var(--slot-lo), inset -3px -3px 0 var(--slot-hi); font: 600 16px var(--display); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; cursor: pointer; overflow: hidden; }
.drop img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.sum { margin: 16px 0; background: #b3b3b3; box-shadow: inset 2px 2px 0 #7d7d7d, inset -2px -2px 0 #e6e6e6; padding: 6px 14px; }
.sum div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 18px; color: var(--ink2); }
.sum div + div { border-top: 2px solid var(--line); }
.sum b { font-family: var(--mono); font-size: 20px; line-height: 1; color: var(--strong); font-weight: 400; }
.sum .tot b { color: var(--fire); font-size: 24px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; color: var(--mute); margin: 14px 0; }
.agree input { margin-top: 3px; accent-color: #3c8527; width: 16px; height: 16px; }
.err { color: var(--bad); font-size: 17px; margin-top: 10px; min-height: 18px; }
.gets h3 { font-size: 25px; margin-bottom: 12px; }
.gets p { margin: 0 0 12px; font-size: 19px; color: var(--ink2); }
.gets p b { color: var(--strong); }
.warn { margin-top: 16px; padding: 14px; background: #e9c9a8; border: 2px solid #8f4406; font-size: 18px; color: #3a2a1a; }
.warn b { display: block; font: 700 19px var(--display); color: #8f2a06; margin-bottom: 4px; }
.addr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #000; border: 2px solid #a0a0a0; color: #fff; font: 400 18px/1.15 var(--mono); word-break: break-all; }
.addr button { margin-left: auto; flex: none; }

.chead { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-right: 250px; flex-wrap: wrap; }
.chead h1 { font-size: clamp(28px, 3.8vw, 50px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; text-shadow: 3px 3px 0 #2a2a2a; }
.chead .links { display: flex; gap: 14px; flex-wrap: wrap; font: 400 18px var(--mono); color: var(--mute); margin-top: 6px; }
.chead .lk { color: #9cc0ff; text-shadow: var(--sh); }
.strip { display: grid; grid-template-columns: repeat(8, 1fr); padding: 3px; overflow: hidden; }
.strip > div { padding: 14px 14px; border-right: 2px solid var(--line2); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip b { display: block; margin-top: 6px; font: 400 clamp(20px, 1.9vw, 28px)/1 var(--mono); color: var(--strong); overflow: hidden; text-overflow: ellipsis; }
.strip small { font: 400 15px var(--mono); color: var(--mute); }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; margin-top: 20px; align-items: start; }
.acct div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 18px; color: var(--ink2); }
.acct div + div { border-top: 2px solid var(--line); }
.acct b { font-family: var(--mono); font-size: 20px; line-height: 1; font-weight: 400; color: var(--strong); }
.acct .in2 { padding-left: 16px; color: var(--mute); font-size: 17px; }
.acct .hl b { color: var(--fire); }
.ptitle { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.chart { height: 250px; background: #b3b3b3; box-shadow: inset 2px 2px 0 #7d7d7d, inset -2px -2px 0 #e6e6e6; padding: 4px; }
.chart canvas { width: 100%; height: 100%; display: block; }
.stack > * + * { margin-top: 20px; }
.clock { font: 400 20px var(--mono); color: #fff; }

.doc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.doc .card h3 { font-size: 24px; margin: 12px 0 6px; }
.doc .card p { margin: 0; color: var(--ink2); font-size: 19px; }
.faq details { padding: 14px 4px; border-top: 2px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font: 600 21px var(--display); }
.faq p { color: var(--ink2); margin: 10px 0 0; font-size: 19px; max-width: 80ch; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(0, 0, 0, .72); }
.modal.on { display: grid; }
.modal .card { width: min(380px, 92vw); }
.modal .w { display: flex; align-items: center; gap: 12px; width: 100%; justify-content: flex-start; margin-top: 10px; }
.modal .w img { width: 24px; height: 24px; image-rendering: auto; }
/* an advancement toast */
.toast { position: fixed; right: 20px; top: 46px; transform: translateX(120%); transition: transform .18s steps(4); z-index: 80; padding: 10px 16px 10px 12px; background: #212121; border: 3px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #111; color: #ffe46b; --ink: #ffe46b; font: 600 17px var(--display); pointer-events: none; }
.toast.on { transform: translateX(0); }
.banner { margin-bottom: 18px; padding: 9px 14px; background: #000; border: 2px solid #ffe46b; font: 600 17px var(--display); color: #ffe46b; }

.mtop { display: none; }
@media (max-width: 1080px) {
  .two, .live, .form, .cols { grid-template-columns: 1fr; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .steps > div:nth-child(2) { border-right: 0; } .steps > div:nth-child(-n+2) { border-bottom: 2px solid var(--line2); }
  .strip { grid-template-columns: repeat(4, 1fr); } .strip > div { border-bottom: 2px solid var(--line2); }
  .doc { grid-template-columns: 1fr; }
  .scene { grid-template-columns: 1fr; } .gui { margin: 0 14px 14px; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; position: static; height: auto; padding: 12px 12px 10px; border-right: 0; border-bottom: 3px solid #000; }
  .side .foot, .tagline { display: none; }
  .brand b { font-size: 21px; }
  .nav { flex-direction: row; overflow-x: auto; margin-top: 10px; gap: 6px; scrollbar-width: none; }
  .nav a { padding: 7px 10px; font-size: 17px; gap: 8px; white-space: nowrap; }
  .nav a svg { width: 18px; height: 18px; }
  .cta { position: absolute; top: 44px; right: 12px; margin: 0; padding: 7px 12px; font-size: 17px; }
  .main { padding: 22px 14px 70px; }
  .topright { position: static; margin-bottom: 16px; }
  .phead, .chead { padding-right: 0; }
  .scene .stage { min-height: 240px; }
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .minis { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 60px 26px minmax(0, 1fr); } .ev .when { display: none; }
  .inrow { flex-direction: column; } .inrow .in { flex: none; width: 100%; } .up2 { grid-template-columns: 1fr; }
  .node { width: 108px; padding: 6px; } .node span { display: none; }
  .card { box-shadow: inset 3px 3px 0 var(--gui-hi), inset -3px -3px 0 var(--gui-lo), 4px 4px 0 rgba(0, 0, 0, .45); padding: 16px; }
  .toast { right: 10px; left: 10px; }
}

/* ---------------------------------------------------------- the smelters */
.badge.torch { background: #b44100; }
.badge.share { background: #1d6f2b; }
.earn h3 { font-size: 21px; margin-bottom: 6px; }
.earn .rule { font: 400 18px/1.15 var(--mono); color: var(--fire); margin: 0 0 12px; }
.earn .inrow { margin: 10px 0 8px; max-width: none; }
.earn .quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.earn .get { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; background: var(--slot); box-shadow: inset 3px 3px 0 var(--slot-lo), inset -3px -3px 0 var(--slot-hi); font-size: 17px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-bottom: 10px; }
.earn .get b { font: 400 30px/1 var(--mono); color: #ffe46b; }
.earn .sigbox { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line2); }
.earn .msg { font-size: 17px; margin-top: 8px; color: var(--mute); min-height: 18px; overflow-wrap: anywhere; }
.earn .msg.ok { color: var(--ok); } .earn .msg.bad { color: var(--bad); }
.sharebar { height: 16px; background: #2b2b2b; border: 2px solid #000; overflow: hidden; display: flex; margin: 10px 0 6px; }
.sharebar i { display: block; height: 100%; background: #f5c518; } .sharebar u { display: block; height: 100%; background: #a88a2a; } .sharebar s { display: block; height: 100%; flex: 1; background: repeating-linear-gradient(90deg, #d9731a 0 14px, #b44100 14px 16px); }
.keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: 16px; color: var(--mute); }
.keys span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; background: var(--c); }
.fair { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.fair .card h3 { font-size: 21px; margin-bottom: 6px; } .fair .card p { margin: 0; font-size: 18px; color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .ticker .track, .tag i { animation: none; } }
