/* Both — Nosh-dark: warm near-black, cream text, hairline borders, cream pill buttons; green only for up, buy and the floor. Inter for text, JetBrains Mono for numbers. */
:root { --bg: #161616; --bg2: #1f1f1f; --bg3: #282828; --card: #282828; --line: #383838; --line2: #4a4a4a; --text: #ffffff; --muted: rgba(255, 255, 255, 0.62); --dim: rgba(255, 255, 255, 0.42); --cream: #ffffff; --lime: #ccff00; --acc: #ccff00; --acc2: #ccff00; --accbg: rgba(204, 255, 0, 0.12); --up: #4ec27f; --up2: rgba(78, 194, 127, 0.14); --down: #e5484d; --down2: rgba(229, 72, 77, 0.14); --warn: #e8b04b; --gold: #d9b45a; --radius: 6px; --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35); }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "Instrument Sans", Inter, "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; display: flex; flex-direction: column; padding-top: 12px; }
a { color: inherit; text-decoration: none; } button, input, textarea, select { font: inherit; color: inherit; } img { display: block; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .up { color: var(--up); } .down { color: var(--down); }
.small { font-size: 12px; } .tiny { font-size: 11px; }
.lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* header: a floating pill */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 16px; }
.top-in { position: relative; max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; background: rgba(18, 18, 20, 0.88); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a.on { color: var(--text); background: var(--bg2); }
.search { position: relative; flex: 1; max-width: 260px; margin-left: auto; }
.search input { width: 100%; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); outline: none; font-size: 13px; }
.search input:focus { border-color: var(--line2); background: var(--bg2); }
.qres { position: absolute; top: 42px; left: 0; right: 0; background: var(--bg3); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.qres a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); } .qres a:hover { background: var(--bg2); }
.qres img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.menu-btn { display: none; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; transition: transform 0.14s cubic-bezier(.2,.8,.2,1), background 0.15s, border-color 0.15s, box-shadow 0.15s; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 1px 2px rgba(0, 0, 0, 0.4); }
.btn:hover { border-color: rgba(255, 255, 255, 0.28); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 22px rgba(0, 0, 0, 0.45); } .btn:active { transform: translateY(0) scale(0.99); }
.btn.primary, .btn.green, .btn.up { background: linear-gradient(180deg, #ffffff 0%, #ececf0 60%, #dcdce2 100%); color: #0b0b0d; border-color: #ffffff; text-shadow: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 -1px 0 rgba(0, 0, 0, 0.08) inset, 0 8px 24px rgba(255, 255, 255, 0.12); }
.btn.primary:hover, .btn.green:hover, .btn.up:hover { background: linear-gradient(180deg, #ffffff 0%, #f4f4f6 60%, #e6e6ea 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, 1) inset, 0 -1px 0 rgba(0, 0, 0, 0.08) inset, 0 12px 32px rgba(255, 255, 255, 0.2); }
.btn.down { background: linear-gradient(180deg, #f5857f, #d9463f); color: #fff; border-color: rgba(240, 102, 95, 0.7); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 24px rgba(240, 102, 95, 0.25); }
.btn.lg { padding: 12px 22px; font-size: 14px; border-radius: 14px; }
.btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.btn.wide { width: 100%; padding: 12px; font-size: 14px; border-radius: 12px; } .btn.more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.btn:disabled { opacity: 0.5; cursor: default; } .btn.sm { padding: 5px 11px; font-size: 12px; }

main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 22px 24px 60px; }
h1 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; } p { margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 14px; max-width: 560px; }
.stats { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; } .stat span { font-size: 11px; color: var(--dim); }

/* hero: copy left, a live "floor" graphic right */
.hero { display: grid; grid-template-columns: 1fr 440px; gap: 30px; align-items: center; padding: 26px 0 10px; }
.hero h1 { font-size: 38px; } .hero-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.floor-art { position: relative; height: 300px; border-radius: 20px; background: linear-gradient(180deg, #161618, #0d0d0f); border: 1px solid var(--line); overflow: hidden; }
.floor-art .stairs { position: absolute; left: 34px; right: 34px; bottom: 38px; display: flex; align-items: flex-end; gap: 10px; height: 200px; }
.floor-art .stairs i { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--up); animation: rise 3.6s ease-in-out infinite; transform-origin: bottom; }
.floor-art .stairs i:nth-child(1) { height: 22%; animation-delay: 0s; } .floor-art .stairs i:nth-child(2) { height: 34%; animation-delay: 0.25s; } .floor-art .stairs i:nth-child(3) { height: 46%; animation-delay: 0.5s; } .floor-art .stairs i:nth-child(4) { height: 60%; animation-delay: 0.75s; } .floor-art .stairs i:nth-child(5) { height: 74%; animation-delay: 1s; } .floor-art .stairs i:nth-child(6) { height: 90%; animation-delay: 1.25s; background: var(--cream); }
.floor-art .line { position: absolute; left: 34px; right: 34px; bottom: 38px; height: 2px; background: var(--cream); }
.floor-art .cap { position: absolute; left: 20px; top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.floor-art .cap { max-width: 55%; } .floor-art .cap b { display: block; font-size: 18px; color: var(--text); letter-spacing: -0.02em; margin-top: 2px; text-transform: none; }
.floor-art .pieces { position: absolute; right: 18px; top: 16px; display: flex; gap: 6px; }
.floor-art .pieces img, .floor-art .pieces i { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg2); object-fit: cover; }
.floor-art .pieces i.burn { opacity: 0.35; filter: grayscale(1); position: relative; }
@keyframes rise { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }

/* board */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; } .sec-head h2 small { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 6px; font-family: var(--mono); }
.sec-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec-tools input { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); outline: none; font-size: 12px; width: 220px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 500; }
.chips button:hover { border-color: var(--line2); color: var(--text); } .chips button.on { color: var(--text); background: var(--accbg); border-color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.chips button.on.green { color: var(--text); background: var(--accbg); border-color: rgba(255, 255, 255, 0.5); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; background: linear-gradient(180deg, #161618, #0f0f11); transition: transform 0.15s; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; transition: border-color 0.15s, box-shadow 0.15s; display: block; overflow: hidden; }
.card:hover { border-color: var(--line2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; gap: 10px; align-items: center; }
.logo { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--bg2); flex: none; }
.card-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { font-size: 11px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-pieces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.card-pieces img, .card-pieces i { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); object-fit: cover; display: block; }
.card-pieces i.more { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--muted); font-style: normal; }
.card-big { margin-top: 12px; display: flex; justify-content: space-between; align-items: flex-end; }
.card-big b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--up); letter-spacing: -0.01em; }
.card-big b small { font-size: 10px; color: var(--dim); font-weight: 500; margin-left: 3px; }
.card-big .r { text-align: right; } .card-big .r b { color: var(--text); font-size: 13px; }
.card-kv { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.card-kv b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.bar { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 12px; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a8a93, #e4e4e7); border-radius: 2px; } .bar.done i { background: var(--cream); }
.card-foot { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.card-pair { display: inline-flex; align-items: center; gap: 4px; } .card-pair img { width: 12px; height: 12px; border-radius: 50%; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 500; border: 1px solid var(--line2); color: var(--muted); font-family: var(--mono); }
.tag.on { color: var(--up); border-color: rgba(124, 92, 255,0.4); background: var(--up2); } .tag.off { color: var(--dim); } .tag.gold { color: #e2b84a; border-color: rgba(226,184,74,0.5); background: rgba(226,184,74,0.16); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); grid-column: 1 / -1; }
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; } .list-row:last-child { border-bottom: 0; }
.list-row .when { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.list-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; } .list-row .who img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
.list-row .what { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* token page */
.tok { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.tok-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; } .tok-head .logo { width: 52px; height: 52px; }
.price { font-family: var(--mono); font-size: 24px; font-weight: 600; margin-left: auto; text-align: right; } .price small { display: block; font-size: 12px; font-weight: 500; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; } .panel + .panel { margin-top: 12px; }
.chart-wrap { position: relative; height: 380px; border-radius: 8px; overflow: hidden; background: var(--bg2); border: 1px solid var(--line); } .chart { position: absolute; inset: 0; }
.tf { display: flex; gap: 2px; margin-bottom: 8px; flex-wrap: wrap; }
.tf button { padding: 3px 8px; font-size: 11px; font-family: var(--mono); border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; } .tf button.on { color: var(--text); border-color: var(--line2); background: var(--bg2); }
.kv { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.kv div { background: var(--bg2); border-radius: 8px; padding: 9px 11px; min-width: 0; }
.kv span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; } .kv b { font-family: var(--mono); font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.seg button { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on.buy { background: var(--up2); color: var(--up); border-color: rgba(124, 92, 255,0.4); } .seg button.on.sell { background: var(--down2); color: var(--down); border-color: rgba(240,102,95,0.4); }
.field { margin-bottom: 12px; } .field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--line2); background: var(--bg3); box-shadow: 0 0 0 3px rgba(242, 241, 247, 0.06); } .field textarea { resize: vertical; min-height: 76px; }
.quick { display: flex; gap: 6px; margin: -4px 0 12px; }
.quick button { flex: 1; padding: 5px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 11px; } .quick button:hover { color: var(--text); border-color: var(--line2); }
.note { font-size: 12px; color: var(--muted); }
.trades { width: 100%; border-collapse: collapse; font-size: 12px; font-family: var(--mono); } .trades td { padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; } .trades td:last-child { text-align: right; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; } .tbl th { text-align: left; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); padding: 6px; border-bottom: 1px solid var(--line); } .tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); } .tbl .r, .tbl th.r { text-align: right; }

/* the floor panel on the coin page */
.fund { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fund div { background: var(--bg2); border-radius: 8px; padding: 9px 11px; } .fund span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .fund b { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.fund div.big { grid-column: 1 / -1; background: var(--up2); } .fund div.big b { color: var(--up); font-size: 20px; }
.loop { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--muted); margin: 12px 0 0; flex-wrap: wrap; }
.loop span { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg2); } .loop span.g { border-color: var(--up); color: var(--up); background: var(--up2); } .loop u { width: 12px; height: 1px; background: var(--line2); text-decoration: none; }
.mintbox { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mintbox b { font-family: var(--mono); font-size: 16px; } .mintbox small { display: block; color: var(--muted); font-size: 11px; }
.log { margin-top: 12px; } .log-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; } .log-row:last-child { border-bottom: 0; }
.log-row .mono { font-size: 11px; }

/* the pieces grid */
.pieces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.piece { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg2); cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.piece:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.piece img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg2); }
.piece .pi { padding: 8px 10px 9px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.piece .pi b { font-family: var(--mono); font-weight: 600; } .piece .pi .pr { font-family: var(--mono); font-weight: 600; color: var(--up); }
.piece .st { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 999px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(11, 11, 13, 0.85); border: 1px solid var(--line2); color: var(--muted); }
.piece .st.list { color: var(--up); border-color: rgba(124, 92, 255,0.4); } .piece .st.you { color: #0b0b0d; background: var(--cream); border-color: var(--cream); } .piece .st.burn { color: var(--down); border-color: rgba(240,102,95,0.4); }
.piece .tier { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(11, 11, 13, 0.85); border: 1px solid var(--line2); color: var(--muted); }
.piece .tier.Legendary { color: #e2b84a; border-color: rgba(226,184,74,0.5); background: rgba(226,184,74,0.16); } .piece .tier.Epic { color: #b79cff; border-color: rgba(167,139,250,0.5); background: rgba(167,139,250,0.16); } .piece .tier.Rare { color: #7cb8ff; border-color: rgba(96,165,250,0.5); background: rgba(96,165,250,0.16); } .piece .tier.Uncommon { color: var(--up); border-color: rgba(124, 92, 255,0.4); background: var(--up2); }
.piece.unminted img { opacity: 0.45; filter: grayscale(0.7); } .piece.unminted:hover img { opacity: 1; filter: none; }
.piece.burned img { opacity: 0.25; filter: grayscale(1); } .piece.burned { cursor: default; }
.pfilters { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }

/* piece dialog */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(13, 13, 13, 0.5); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box { width: 100%; max-width: 760px; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1fr 300px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.2s ease-out; }
.modal-box img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg2); }
.modal-side { padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.modal-side h2 { font-size: 22px; margin: 0; } .modal-side .traits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modal-side .traits div { background: var(--bg2); border-radius: 8px; padding: 7px 9px; } .modal-side .traits span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .modal-side .traits b { font-size: 12px; font-weight: 600; }
.modal-side .act { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg2); cursor: pointer; font-size: 16px; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* launch card: form left, preview right */
.lcard { display: grid; grid-template-columns: 1fr 400px; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lform { padding: 28px 30px 26px; border-right: 1px solid var(--line); } .lform h1 { font-size: 26px; margin-bottom: 18px; }
.lside { background: var(--bg); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.ptok { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ptok .logo { width: 64px; height: 64px; border-radius: 14px; } .ptok h2 { font-size: 22px; margin: 14px 0 0; } .ptok .ticker { color: var(--muted); font-size: 13px; }
.ptok .line { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); } .ptok .line b { color: var(--text); font-weight: 500; font-family: var(--mono); text-align: right; } .ptok .lines { margin-top: 14px; }
.pcol { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.pcol h3 { display: flex; justify-content: space-between; align-items: baseline; } .pcol h3 small { color: var(--dim); font-weight: 400; font-size: 11px; font-family: var(--mono); }
.pcol .pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .pcol .pgrid img, .pcol .pgrid i { width: 100%; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); object-fit: cover; display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { border: 1px dashed var(--line2); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 12px; } .drop img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; } .drop.on { border-color: var(--line2); color: var(--text); background: var(--bg3); }
.prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--bg2); padding-left: 12px; } .prefix span { color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; } .prefix input { border: 0 !important; padding-left: 2px !important; background: transparent !important; } .prefix:focus-within { border-color: var(--line2); }
.pair { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; background: var(--bg2); font-weight: 500; } .pair img { width: 18px; height: 18px; border-radius: 50%; }
.numbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.numbox input { border: 0; outline: none; font-size: 22px; font-family: var(--mono); width: 100%; padding: 0; background: transparent; }
.numbox .unit { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; } .numbox .unit img { width: 16px; height: 16px; border-radius: 50%; }
.numbox .avail { font-size: 11px; color: var(--muted); } .numbox .max { justify-self: end; background: var(--up2); color: var(--up); border: 0; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; cursor: pointer; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--bg2); } .opt-card:hover { border-color: var(--line2); } .opt-card.on { border-color: var(--cream); background: var(--bg3); box-shadow: 0 0 0 1px var(--cream) inset; }
.opt-card b { display: block; font-size: 13px; } .opt-card span { font-size: 11px; color: var(--muted); }
.slider { display: flex; align-items: center; gap: 12px; } .slider input[type=range] { flex: 1; accent-color: var(--up); } .slider b { font-family: var(--mono); min-width: 52px; text-align: right; }
.due { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 8px 0 10px; }
.progress-list { margin: 12px 0 0; padding: 0; list-style: none; }
.progress-list li { padding: 5px 0; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; } .progress-list li.done { color: var(--text); } .progress-list li.now { color: var(--warn); }
.progress-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line2); flex: none; } .progress-list li.done::before { background: var(--up); } .progress-list li.now::before { background: var(--warn); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pairpick { position: relative; } .pairpick .pair { cursor: pointer; justify-content: space-between; background: var(--bg2); } .pairpick .pair .l { display: flex; align-items: center; gap: 8px; } .pairpick .pair .l img { width: 20px; height: 20px; border-radius: 50%; background: var(--bg2); object-fit: cover; }
.pairmenu { position: absolute; z-index: 10; top: 46px; left: 0; right: 0; background: var(--bg3); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); overflow: hidden; }
.pairmenu input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; outline: none; } .pairmenu .list { max-height: 260px; overflow: auto; border: 0; border-radius: 0; }
.pairmenu .opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; } .pairmenu .opt:hover { background: var(--bg2); } .pairmenu .opt img { width: 22px; height: 22px; border-radius: 50%; background: var(--bg2); object-fit: cover; }
.pairmenu .opt .n { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; } .pairmenu .grp { padding: 6px 12px 2px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* how it works */
.whero { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: center; padding: 20px 0 10px; }
.wkick { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--up); }
.wfacts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 24px 0; } .wfacts div { background: var(--bg2); border-radius: 12px; padding: 14px; } .wfacts b { display: block; font-family: var(--mono); font-size: 18px; } .wfacts span { font-size: 11px; color: var(--muted); }
.wflow { position: relative; display: flex; flex-direction: column; gap: 14px; }
.wstep { display: grid; grid-template-columns: 44px 1fr; gap: 14px; } .wnum { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: #0b0b0d; font-family: var(--mono); align-items: center; justify-content: center; font-size: 13px; }
.wcard { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: center; }
.wcard h2 { font-size: 20px; margin-bottom: 8px; } .wcard p { color: var(--muted); font-size: 13.5px; }
.wvis { background: var(--bg2); border-radius: 12px; padding: 16px; min-height: 110px; display: flex; align-items: center; justify-content: center; }
.wfaq { margin-top: 30px; } .wfaq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .wfaq-grid div { background: var(--bg2); border-radius: 12px; padding: 16px; } .wfaq-grid p { color: var(--muted); font-size: 13px; margin: 0; }

/* toast, consent, legal */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--bg3); color: var(--text); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 50; max-width: 90vw; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); } .toast.err { background: var(--down); }
.consent { position: fixed; inset: 0; z-index: 100; background: rgba(13, 13, 13, 0.55); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.consent-box { width: 100%; max-width: 440px; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: pop 0.25s ease-out; }
.consent-art { height: 150px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0; background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 255, 255, 0.18), var(--bg2) 70%); border-bottom: 1px solid var(--line); }
.consent-art .stairs { display: flex; align-items: flex-end; gap: 8px; height: 110px; } .consent-art .stairs i { width: 44px; border-radius: 8px 8px 0 0; background: var(--up); } .consent-art .stairs i:nth-child(1) { height: 30%; } .consent-art .stairs i:nth-child(2) { height: 52%; } .consent-art .stairs i:nth-child(3) { height: 74%; } .consent-art .stairs i:nth-child(4) { height: 100%; background: var(--cream); }
.consent-body { padding: 22px 22px 20px; } .consent-body h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 8px; }
.consent-body .req { font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--up2); color: var(--up); border-radius: 999px; padding: 3px 9px; font-weight: 600; }
.consent-body p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.consent-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 13px; cursor: pointer; background: var(--bg2); } .consent-row:hover { border-color: var(--line2); }
.consent-row input { width: 18px; height: 18px; accent-color: var(--up); margin: 0; flex: none; } .consent-row a { text-decoration: underline; font-weight: 600; } .consent-body .btn { margin-top: 8px; } body.consent-open { overflow: hidden; }
.legal { max-width: 760px; } .legal h3 { margin: 18px 0 6px; } .legal p { color: var(--muted); font-size: 14px; }
.foot { padding: 0 16px 28px; } .foot-in { max-width: 1080px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.foot-links { display: flex; gap: 14px; } .foot-links a { display: inline-flex; align-items: center; gap: 5px; } .foot-links a:hover { color: var(--text); }
.x-logo { display: inline-block; vertical-align: middle; }

@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } .hero, .whero { grid-template-columns: 1fr; } .tok { grid-template-columns: 1fr; } .lcard { grid-template-columns: 1fr; } .lform { border-right: 0; border-bottom: 1px solid var(--line); } .wcard { grid-template-columns: 1fr; } .wfacts { grid-template-columns: repeat(2, 1fr); } .kv { grid-template-columns: repeat(3, 1fr); } .pieces { grid-template-columns: repeat(3, 1fr); } .modal-box { grid-template-columns: 1fr; max-width: 420px; } }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } .search { display: none; } .hero h1 { font-size: 30px; } .row2 { grid-template-columns: 1fr; } .opts { grid-template-columns: 1fr; } .pieces { grid-template-columns: repeat(2, 1fr); } .kv { grid-template-columns: repeat(2, 1fr); } .wfaq-grid { grid-template-columns: 1fr; } main { padding: 16px 14px 50px; } }

/* token page: header chips and tabs, like a proper token page */
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.chip b { color: var(--text); font-weight: 600; } .chip.g { color: var(--up); border-color: rgba(255, 255, 255, 0.35); background: var(--up2); } .chip.g b { color: var(--up); } .chip img { width: 14px; height: 14px; border-radius: 50%; }
.chip button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 0; font-size: 12px; } .chip button:hover { color: var(--text); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 500; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); } .tabs button.on { color: var(--text); border-bottom-color: var(--acc); }
.tabs button small { color: var(--dim); font-family: var(--mono); font-size: 10px; margin-left: 5px; }
.colhead { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.colhead div { background: var(--bg3); border-radius: 10px; padding: 10px 12px; } .colhead span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .colhead b { font-family: var(--mono); font-weight: 600; font-size: 14px; } .colhead div.g b { color: var(--up); }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
/* launch page collection preview */
.pcol .pgrid { grid-template-columns: repeat(4, 1fr); } .pcol .pgrid img { transition: transform 0.15s; } .pcol .pgrid img:hover { transform: scale(1.04); }
.pcol .flow { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pcol .flow div { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); } .pcol .flow div i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; color: var(--text); font-style: normal; }
.pcol .flow b { color: var(--text); font-weight: 500; }
@media (max-width: 960px) { .colhead { grid-template-columns: repeat(3, 1fr); } }

/* ── Canise-style home ── */
.chero { display: grid; grid-template-columns: 300px 1fr 300px; gap: 20px; align-items: center; padding: 10px 0 6px; min-height: 420px; position: relative; }
.chero::before { content: ""; position: absolute; inset: -40px -10% 0; background: radial-gradient(ellipse 50% 60% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%); pointer-events: none; }
.chero-mid { text-align: center; position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.chero-mid h1 { font-size: 44px; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 12px; } .chero-mid h1 em { font-style: normal; color: #a1a1aa; }
.chero-mid .lead { margin: 0 auto; max-width: 520px; } .chero-mid .hero-actions { justify-content: center; margin-top: 18px; }

.statrow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); margin: 22px auto 0; max-width: 560px; overflow: hidden; }
.statrow div { padding: 12px 10px; border-right: 1px solid var(--line); } .statrow div:last-child { border-right: 0; } .statrow b { display: block; font-family: var(--mono); font-size: 17px; font-weight: 600; } .statrow span { font-size: 11px; color: var(--dim); }
.tilt { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: perspective(900px) rotateY(14deg) rotateX(4deg); } .tilt.r { transform: perspective(900px) rotateY(-14deg) rotateX(4deg); }
.tilt .tcard { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); aspect-ratio: 0.86; box-shadow: var(--shadow); display: block; }
.tilt .tcard:nth-child(3n+2) { transform: translateY(18px); } .tilt .tcard:nth-child(3n) { transform: translateY(36px); }
.tilt .tcard img, .tilt .tcard i { width: 100%; height: 100%; object-fit: cover; display: block; } .tilt .tcard.ph i { background: linear-gradient(135deg, #1b1b24, #14141b); }
.tilt .tcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75)); font-size: 10px; } .tilt .tcard span b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tilt .tcard span small { font-family: var(--mono); color: var(--acc2); font-size: 9px; }
.ticker { margin: 22px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); overflow: hidden; height: 40px; display: flex; align-items: center; }
.ticker-in { display: flex; gap: 28px; white-space: nowrap; animation: tick 40s linear infinite; padding-left: 16px; } .ticker.still .ticker-in { animation: none; }
.ticker-in a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; } .ticker-in a .logo { width: 18px; height: 18px; border-radius: 50%; } .ticker-in a b { font-weight: 600; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.view { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; } .view button { width: 30px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; } .view button.on { background: var(--bg3); color: var(--text); }
.ttable { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg2); }
.thead, .trow { display: grid; grid-template-columns: 2.4fr 1fr 0.7fr 1fr 1fr 0.9fr 1.3fr; gap: 10px; align-items: center; padding: 12px 16px; }
.thead { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); }
.trow { border-bottom: 1px solid var(--line); font-size: 13px; transition: background 0.12s; } .trow:last-child { border-bottom: 0; } .trow:hover { background: var(--bg3); }
.trow .c-tok { display: flex; align-items: center; gap: 10px; min-width: 0; } .trow .c-tok > span { min-width: 0; } .trow .c-tok b { font-weight: 600; } .trow .c-tok small { display: block; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .acc { color: var(--acc2); font-weight: 600; } .trow .c-curve { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; } .trow .c-curve .bar { margin: 0; height: 4px; } .trow .c-curve em { font-family: var(--mono); font-size: 10px; color: var(--dim); font-style: normal; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; } .steps3 > div { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); padding: 18px; } .steps3 b { display: block; font-size: 15px; margin: 6px 0 6px; } .steps3 p { color: var(--muted); font-size: 13px; margin: 0; } .steps3 .lbl { color: var(--acc2); }
.card-big b { color: var(--acc2); } .fund div.big { background: var(--accbg); } .fund div.big b { color: var(--acc2); } .piece .pi .pr { color: var(--acc2); } .loop span.g { border-color: rgba(255, 255, 255, 0.5); color: var(--acc2); background: var(--accbg); }
.chip.g { color: var(--acc2); border-color: rgba(255, 255, 255, 0.4); background: var(--accbg); } .chip.g b { color: var(--acc2); } .colhead div.g b { color: var(--acc2); } .wkick { color: var(--acc2); }
.tag.on { color: var(--acc2); border-color: rgba(255, 255, 255, 0.4); background: var(--accbg); } .piece .st.list { color: var(--acc2); border-color: rgba(255, 255, 255, 0.4); } .piece .tier.Uncommon { color: var(--acc2); border-color: rgba(255, 255, 255, 0.4); background: var(--accbg); }
.seg button.on.buy { background: var(--accbg); color: var(--acc2); border-color: rgba(255, 255, 255, 0.5); }
.floor-art .stairs i { background: linear-gradient(180deg, #e4e4e7, #8a8a93); } .consent-art .stairs i { background: linear-gradient(180deg, #e4e4e7, #8a8a93); } .pill, .brand span { letter-spacing: -0.01em; }
@media (max-width: 1100px) { .chero { grid-template-columns: 1fr; } .tilt { display: none; } }
@media (max-width: 900px) { .thead { display: none; } .trow { grid-template-columns: 1fr 1fr; } .trow .c-tok { grid-column: 1 / -1; } .trow .c-curve { grid-column: 1 / -1; } .steps3 { grid-template-columns: 1fr; } .statrow { grid-template-columns: repeat(2, 1fr); } .chero-mid h1 { font-size: 32px; } }

html, body { overflow-x: hidden; } .chero { overflow: visible; }

/* ── OTC-style shell: fixed sidebar, breadcrumb bar ── */
body { padding-top: 0; display: block; }
.side { position: fixed; left: 0; top: 0; bottom: 0; width: 232px; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; overflow-y: auto; }
.side .brand { padding: 4px 8px 16px; } .side .nav { display: flex; flex-direction: column; gap: 2px; }
.side .nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 13.5px; } .side .nav a:hover { color: var(--text); background: var(--bg2); } .side .nav a.on { color: var(--text); background: var(--bg3); }
.side .nav a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; } .side .nav a .x-logo { stroke: none; fill: currentColor; }
.side .nav-h { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 16px 10px 6px; }
.side-foot { margin-top: auto; padding: 14px 10px 0; font-size: 11px; color: var(--dim); line-height: 1.5; }
.shell { margin-left: 232px; min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; padding: 0; z-index: 20; background: rgba(11, 11, 13, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: none; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; padding: 12px 24px; gap: 12px; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; } .crumb a { color: var(--muted); } .crumb i { color: var(--dim); font-style: normal; } .crumb b { font-weight: 600; }
.menu-btn { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 6px; cursor: pointer; } .menu-btn span { width: 18px; height: 2px; background: var(--text); display: block; }
main { max-width: 1180px; padding: 22px 24px 60px; }
.hdr { display: inline-flex; }
/* featured card */
.feat { background: linear-gradient(180deg, #141416, #0f0f11); border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px 28px; box-shadow: var(--shadow); }
.feat h1 { font-size: 38px; margin: 10px 0 12px; } .feat p { color: var(--muted); font-size: 14.5px; max-width: 760px; line-height: 1.55; }
.featstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; margin: 20px 0 22px; } .featstats span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .featstats b { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.featstats.boxed { border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); gap: 0; margin: 14px 0 0; overflow: hidden; } .featstats.boxed div { padding: 14px 16px; border-right: 1px solid var(--line); } .featstats.boxed div:last-child { border-right: 0; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--bg2); }
.hint { margin: 14px 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); font-size: 13px; color: var(--muted); } .hint b { color: var(--text); } .hint a { color: var(--text); text-decoration: underline; margin-left: 4px; }
.otools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; } .otools input, .sel { padding: 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); outline: none; font-size: 12px; color: var(--text); } .otools input { width: 220px; margin-left: auto; } .sel { max-width: 320px; }
/* OTC coin cards */
.ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ocard { position: relative; display: grid; grid-template-columns: 1fr 120px; gap: 10px; background: linear-gradient(180deg, #141416, #0f0f11); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 22px; overflow: hidden; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.ocard:hover { transform: translateY(-2px); border-color: var(--line2); box-shadow: var(--shadow); }
.ocard-l { display: flex; flex-direction: column; min-width: 0; } .ocard-l .logo { width: 34px; height: 34px; border-radius: 50%; }
.ocard .big { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 2px 0 10px; }
.ocard-row { display: flex; gap: 6px; align-items: center; font-size: 12px; margin-top: 4px; flex-wrap: wrap; } .ocard-row b { font-family: var(--mono); font-weight: 600; }
.ocard-r { display: flex; align-items: center; justify-content: center; } .ocard-r img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); background: var(--bg3); }
.ocard-curve { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); } .ocard-curve i { display: block; height: 100%; background: linear-gradient(90deg, #8a8a93, #e4e4e7); }
/* market cards */
.pieces.m5 { grid-template-columns: repeat(4, 1fr); } .piece.mk .pi { flex-direction: column; align-items: stretch; gap: 4px; } .piece.mk .pi > span:first-child { display: flex; flex-direction: column; } .piece.mk .pi .pr { font-size: 14px; }
.coinlink { font-family: var(--mono); font-size: 10px; color: var(--dim); } .coinlink:hover { color: var(--text); }
.thead.h5, .trow.h5 { grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr; }
@media (max-width: 1000px) { .ogrid { grid-template-columns: repeat(2, 1fr); } .featstats { grid-template-columns: repeat(3, 1fr); } .pieces.m5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .side { transform: translateX(-100%); transition: transform 0.2s; } body.side-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5); } .shell { margin-left: 0; } .menu-btn { display: flex; } .crumb a, .crumb i { display: none; } .ogrid { grid-template-columns: 1fr; } .featstats { grid-template-columns: repeat(2, 1fr); } .feat { padding: 22px 20px; } .feat h1 { font-size: 28px; } .pieces.m5 { grid-template-columns: repeat(2, 1fr); } .otools input { margin-left: 0; width: 100%; } .thead.h5 { display: none; } .trow.h5 { grid-template-columns: 1fr 1fr; } }

/* ── utoken-style home; nav lives in a drawer behind the hamburger ── */
.side.drawer { transform: translateX(-100%); transition: transform 0.2s; box-shadow: none; } body.side-open .side.drawer { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55); }
.shell { margin-left: 0; } .menu-btn { display: flex; } .drawer-x { position: absolute; top: 14px; right: 12px; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; }
.top-in .brand { margin-right: 6px; } .top-in .crumb { display: none; } .btn.plus { width: 38px; padding: 0; font-size: 18px; } .btn.plus::before, .btn.plus::after { content: none; }
main { max-width: 1240px; }
.top3 { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; } .top3::-webkit-scrollbar { display: none; }
.top3 a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-right: 1px solid var(--line); font-size: 12px; white-space: nowrap; } .top3 a:last-child { border-right: 0; } .top3 a .logo { width: 20px; height: 20px; border-radius: 4px; } .top3 b { font-weight: 600; }
h2.h { font-size: 20px; font-weight: 600; margin: 22px 0 12px; letter-spacing: -0.02em; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.fcard { display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); overflow: hidden; transition: border-color 0.15s, transform 0.15s; } .fcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.mosaic { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #000; aspect-ratio: 2 / 1; } .mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 8px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85)); display: flex; justify-content: space-between; align-items: flex-end; font-size: 13px; } .fcap b { font-weight: 600; } .fcap .mono { font-size: 11px; color: var(--muted); }
.fmeta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 12px; flex-wrap: wrap; } .fmeta b { font-weight: 600; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tcardh { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); padding: 12px; transition: border-color 0.15s; } .tcardh:hover { border-color: var(--line2); } .tcardh .logo { width: 56px; height: 56px; border-radius: 8px; }
.tinfo { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; } .tinfo b { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tinfo b .dim { font-weight: 400; }
.tright { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; }
.spark { width: 80px; height: 26px; color: var(--muted); } .spark.up { color: #cfcfcf; } .spark.down { color: var(--down); } .rrow .spark { width: 70px; height: 22px; }
.regtools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 12px; }
.rtabs { display: flex; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); padding: 3px; gap: 3px; } .rtabs button { padding: 7px 18px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-weight: 500; } .rtabs button.on { background: var(--bg3); color: var(--text); border: 1px solid var(--line2); }
.regtools .sel { padding: 9px 12px; min-width: 170px; }
.rtable { border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); overflow: hidden; }
.rhead, .rrow { display: grid; grid-template-columns: 32px 2.2fr 0.9fr 1.6fr 1.1fr 0.7fr 0.9fr 90px 1.1fr 0.6fr; gap: 10px; align-items: center; padding: 11px 14px; font-size: 12.5px; }
.rhead { color: var(--dim); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--line); } .rrow { border-bottom: 1px solid var(--line); } .rrow:last-child { border-bottom: 0; } .rrow:hover { background: var(--bg3); }
.rname { display: flex; align-items: center; gap: 10px; min-width: 0; } .rname .logo { width: 32px; height: 32px; border-radius: 6px; } .rname b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rname small { color: var(--dim); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rstatus { display: flex; align-items: center; gap: 8px; font-size: 11px; } .curvecell { display: inline-block; width: 60px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; } .curvecell i { display: block; height: 100%; background: var(--text); }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 12px; } .pager button { min-width: 30px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg2); color: var(--muted); cursor: pointer; } .pager button.on { color: var(--text); border-color: var(--line2); background: var(--bg3); }
@media (max-width: 900px) { .rhead { display: none; } .rrow { grid-template-columns: 1fr 1fr; } .rrow > span:first-child, .rrow .spark, .rrow > span:nth-child(3) { display: none; } .rrow .rname { grid-column: 1 / -1; } .rrow .rstatus { grid-column: 1 / -1; } .top-in .search { display: none; } .brand span small { display: none; } }

/* featured banner, OTC-style: kicker, headline, copy, stat row, two buttons, pixel graphic on the right */
.banner { position: relative; display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: center; background: linear-gradient(180deg, #141416, #0f0f11); border: 1px solid var(--line); border-radius: 16px; padding: 26px 30px; margin-bottom: 20px; box-shadow: var(--shadow); overflow: hidden; }
.banner .lbl { color: var(--dim); } .banner h1 { font-size: 32px; margin: 8px 0 10px; letter-spacing: -0.03em; } .banner p { color: var(--muted); font-size: 13.5px; max-width: 640px; line-height: 1.55; margin: 0 0 16px; }
.bstats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; } .bstats span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .bstats b { font-family: var(--mono); font-size: 16px; font-weight: 600; }
.bacts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .bacts .lnk { color: var(--muted); font-size: 13px; margin-left: 6px; } .bacts .lnk:hover { color: var(--text); }
.bart { display: flex; justify-content: center; } .bart svg { width: 200px; height: 200px; image-rendering: pixelated; shape-rendering: crispEdges; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.6)); }
.brand span small { display: none; }
@media (max-width: 800px) { .banner { grid-template-columns: 1fr; padding: 20px; } .bart { display: none; } .banner h1 { font-size: 26px; } }

/* ── OTC header: announcement bar, ☰ + breadcrumb left, Connect wallet right; footer ── */
.notice { display: flex; align-items: center; gap: 10px; padding: 8px 20px; background: #000; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); } .notice .dot { width: 7px; height: 7px; border-radius: 50%; background: #9fe870; flex: none; } .notice b { color: var(--text); font-weight: 600; } .notice > span:not(.dot) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .notice a { color: var(--text); margin-left: auto; white-space: nowrap; } .notice button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; padding: 0 2px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 13, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 0; }
.top-in { max-width: none; margin: 0; padding: 12px 20px; gap: 14px; }
.top-in .crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; } .crumb a { color: var(--muted); font-weight: 500; } .crumb i { color: var(--dim); font-style: normal; } .crumb b { font-weight: 600; }
.menu-btn { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; border-radius: 8px; } .menu-btn:hover { background: var(--bg2); } .menu-btn span { width: 18px; height: 2px; background: var(--text); display: block; }
.top-in .search { margin-left: auto; max-width: 280px; } .btn.hdr, .btn.plus { display: none; }
.side.drawer { width: 260px; }
.foot { padding: 28px 20px 36px; border-top: 1px solid var(--line); margin-top: 30px; }
.foot-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); border: 0; padding: 0; border-radius: 0; }
.foot-l { display: flex; align-items: center; gap: 8px; } .foot-l b { color: var(--text); } .foot-l span { color: var(--dim); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; } .foot-links a:hover { color: var(--text); } .foot-r { margin-left: auto; color: var(--dim); }
.banner h1 { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.banner, .ocard, .fcard, .tcardh, .panel, .rtable, .ttable, .hint, .featstats.boxed, .top3 { background: #111113; }
@media (max-width: 800px) { .notice > span:not(.dot) { display: none; } .notice a { margin-left: auto; } .foot-r { margin-left: 0; } .top-in .search { display: none; } }

/* ── utoken.gg: colours, square-ish corners, lime primary, header with +, Connect, ☰ and the top-token strip under it ── */
.btn, .btn.wide, .btn.lg, .chips button, .tag, .chip, .piece .st, .piece .tier, .field input, .field textarea, .field select, .sel, .otools input, .search input, .pair, .numbox, .drop, .opt-card, .prefix, .mintbox, .consent-row, .rtabs, .rtabs button, .pager button, .view, .top3 { border-radius: 4px; }
.card, .ocard, .panel, .feat, .featstats.boxed, .ttable, .rtable, .piece, .lcard, .ptok, .pcol, .modal-box, .consent-box, .hint, .statrow, .wcard, .steps3 > div, .fund div, .kv div, .colhead div, .floor-art, .list, .empty, .qres, .pairmenu, .fcard, .tcardh, .banner, .mosaic img, .tilt .tcard { border-radius: 6px; }
.btn { font-weight: 600; background: var(--bg3); border-color: var(--line); box-shadow: none; } .btn:hover { background: #303030; border-color: var(--line2); transform: none; box-shadow: none; }
.btn.primary, .btn.green, .btn.up { background: var(--lime); color: #161616; border-color: var(--lime); text-shadow: none; box-shadow: none; } .btn.primary:hover, .btn.green:hover, .btn.up:hover { background: #d9ff33; border-color: #d9ff33; box-shadow: none; }
.btn.down { background: var(--down); border-color: var(--down); color: #fff; box-shadow: none; }
.btn.sq { width: 38px; height: 38px; padding: 0; font-size: 20px; display: inline-flex; } .menu-btn.sq { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--bg3); border-radius: 4px; align-items: center; justify-content: center; gap: 3px; } .menu-btn.sq span { width: 16px; }
.top { background: var(--bg); border-bottom: 0; backdrop-filter: none; } .top-in { padding: 10px 16px; gap: 10px; border-bottom: 1px solid var(--line); height: 57px; }
.top-in .brand { font-size: 17px; } .brand .beta { font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 4px; } .top-in .search { margin-left: auto; max-width: 300px; } .top-in .search input { background: var(--bg2); border-color: var(--line); border-radius: 4px; }
.strip { display: flex; align-items: center; gap: 0; height: 40px; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; padding: 0 8px; } .strip::-webkit-scrollbar { display: none; }
.strip a { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 40px; font-size: 13px; white-space: nowrap; color: var(--muted); } .strip a b { color: var(--text); font-weight: 600; } .strip a .logo { width: 20px; height: 20px; border-radius: 4px; } .strip a:hover { background: var(--bg2); }
.strip .strip-feat { background: var(--bg3); border-right: 1px solid var(--line); margin-right: 6px; padding: 0 14px; border-radius: 0; }
.banner, .ocard, .fcard, .tcardh, .panel, .rtable, .ttable, .hint, .featstats.boxed, .card, .feat { background: var(--bg3); border-color: var(--line); box-shadow: none; }
.banner h1 { font-weight: 600; } .banner .lbl { color: var(--muted); }
h2.h { font-size: 18px; } .rtabs { background: var(--bg2); } .rtabs button.on { background: var(--bg3); border-color: var(--line2); }
.rhead, .rrow { border-color: var(--line); } .rrow:hover { background: #2e2e2e; }
.chips button.on { background: #fff; color: #161616; border-color: #fff; } .tabs button.on { border-bottom-color: var(--lime); }
.card-big b, .trow .acc, .fund div.big b, .piece .pi .pr, .chip.g, .chip.g b, .colhead div.g b, .loop span.g, .tag.on, .steps3 .lbl, .wkick { color: var(--lime); } .fund div.big, .chip.g, .loop span.g, .tag.on { background: var(--accbg); border-color: rgba(204, 255, 0, 0.35); }
.bar i, .ocard-curve i, .curvecell i { background: var(--lime); }
.spark.up { color: var(--up); } .mosaic { background: var(--bg2); } .fcard, .tcardh { border: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); } .side.drawer { background: var(--bg); border-right: 1px solid var(--line); }
.seg button.on.buy { background: var(--up2); color: var(--up); border-color: rgba(78, 194, 127, 0.5); }
@media (max-width: 800px) { .top-in .search { display: none; } .strip .strip-feat { display: none; } }

/* ── OTC colours: cream page, white cards, near-black buttons; dark hero card. Dark theme keeps the previous palette. ── */
html[data-theme="light"] { --bg: #f8f7f4; --bg2: #ffffff; --bg3: #f1efe9; --card: #ffffff; --line: #e8e5de; --line2: #d6d2c8; --text: #1a1a18; --muted: rgba(26, 26, 24, 0.62); --dim: rgba(26, 26, 24, 0.42); --cream: #1a1a18; --lime: #1a1a18; --acc: #1a1a18; --acc2: #1a1a18; --accbg: rgba(26, 26, 24, 0.06); --up: #2f8f57; --up2: rgba(47, 143, 87, 0.12); --down: #c2362f; --down2: rgba(194, 54, 47, 0.12); --shadow: 0 1px 2px rgba(26, 26, 24, 0.06), 0 10px 30px rgba(26, 26, 24, 0.06); }
html[data-theme="light"] .top { background: rgba(248, 247, 244, 0.94); } html[data-theme="light"] .top-in, html[data-theme="light"] .strip { border-color: #efece5; background: transparent; }
html[data-theme="light"] .strip a:hover { background: var(--bg3); } html[data-theme="light"] .strip .strip-feat { background: var(--bg3); }
html[data-theme="light"] .btn { background: #ffffff; border-color: var(--line2); color: var(--text); } html[data-theme="light"] .btn:hover { background: var(--bg3); border-color: var(--text); }
html[data-theme="light"] .btn.primary, html[data-theme="light"] .btn.green, html[data-theme="light"] .btn.up { background: #1a1a18; color: #f8f7f4; border-color: #1a1a18; } html[data-theme="light"] .btn.primary:hover, html[data-theme="light"] .btn.green:hover, html[data-theme="light"] .btn.up:hover { background: #333330; border-color: #333330; }
html[data-theme="light"] .btn.down { background: var(--down); color: #fff; border-color: var(--down); }
html[data-theme="light"] .banner, html[data-theme="light"] .feat { background: #1a1a18; border-color: #1a1a18; color: #f8f7f4; } html[data-theme="light"] .banner h1, html[data-theme="light"] .banner .bstats b { color: #f8f7f4; } html[data-theme="light"] .banner p, html[data-theme="light"] .banner .lbl, html[data-theme="light"] .banner .bacts .lnk { color: rgba(248, 247, 244, 0.6); } html[data-theme="light"] .banner .bstats span { color: rgba(248, 247, 244, 0.5); }
html[data-theme="light"] .banner .btn.primary { background: #f8f7f4; color: #1a1a18; border-color: #f8f7f4; } html[data-theme="light"] .banner .btn:not(.primary) { background: rgba(248, 247, 244, 0.06); color: #f8f7f4; border-color: rgba(248, 247, 244, 0.35); } html[data-theme="light"] .banner .bacts .lnk:hover { color: #f8f7f4; }
html[data-theme="light"] .ocard, html[data-theme="light"] .fcard, html[data-theme="light"] .tcardh, html[data-theme="light"] .panel, html[data-theme="light"] .rtable, html[data-theme="light"] .ttable, html[data-theme="light"] .hint, html[data-theme="light"] .featstats.boxed, html[data-theme="light"] .card, html[data-theme="light"] .piece, html[data-theme="light"] .lcard, html[data-theme="light"] .ptok, html[data-theme="light"] .pcol, html[data-theme="light"] .modal-box, html[data-theme="light"] .consent-box, html[data-theme="light"] .rtabs, html[data-theme="light"] .top3 { background: #ffffff; border-color: var(--line); box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04); }
html[data-theme="light"] .rtabs button.on, html[data-theme="light"] .view button.on, html[data-theme="light"] .chips button.on { background: #1a1a18; color: #f8f7f4; border-color: #1a1a18; } html[data-theme="light"] .rrow:hover, html[data-theme="light"] .trow:hover { background: #faf9f6; }
html[data-theme="light"] .lside { background: var(--bg); } html[data-theme="light"] .field input, html[data-theme="light"] .field textarea, html[data-theme="light"] .field select, html[data-theme="light"] .sel, html[data-theme="light"] .otools input, html[data-theme="light"] .search input, html[data-theme="light"] .pair, html[data-theme="light"] .numbox, html[data-theme="light"] .prefix, html[data-theme="light"] .opt-card, html[data-theme="light"] .drop, html[data-theme="light"] .mintbox { background: #ffffff; border-color: var(--line2); }
html[data-theme="light"] .mosaic { background: var(--bg3); } html[data-theme="light"] .fcap { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)); color: #fff; } html[data-theme="light"] .fcap .mono { color: rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .fund div.big, html[data-theme="light"] .chip.g, html[data-theme="light"] .loop span.g, html[data-theme="light"] .tag.on { color: var(--up); background: var(--up2); border-color: rgba(47, 143, 87, 0.35); } html[data-theme="light"] .fund div.big b, html[data-theme="light"] .chip.g b, html[data-theme="light"] .card-big b, html[data-theme="light"] .trow .acc, html[data-theme="light"] .piece .pi .pr, html[data-theme="light"] .colhead div.g b { color: var(--up); }
html[data-theme="light"] .bar i, html[data-theme="light"] .ocard-curve i, html[data-theme="light"] .curvecell i { background: #1a1a18; } html[data-theme="light"] .tabs button.on { border-bottom-color: #1a1a18; }
html[data-theme="light"] .side.drawer { background: #ffffff; border-right-color: var(--line); } html[data-theme="light"] .side .nav a.on, html[data-theme="light"] .side .nav a:hover { background: var(--bg3); }
html[data-theme="light"] .foot { border-top-color: var(--line); } html[data-theme="light"] .toast { background: #1a1a18; color: #f8f7f4; border-color: #1a1a18; } html[data-theme="light"] .consent { background: rgba(26, 26, 24, 0.45); }
html[data-theme="light"] .piece .st, html[data-theme="light"] .piece .tier { background: rgba(255, 255, 255, 0.92); } html[data-theme="light"] .piece .st.you { background: #1a1a18; color: #f8f7f4; }
html[data-theme="light"] .steps3 .lbl, html[data-theme="light"] .wkick { color: var(--up); } html[data-theme="light"] .spark.up { color: var(--up); }
html[data-theme="light"] .consent-art { background: radial-gradient(ellipse 70% 80% at 50% 100%, var(--bg3), #fff 70%); } html[data-theme="light"] .consent-art .stairs i { background: #1a1a18; }
/* header additions: chain selector, launch button, theme toggle */
.chain { position: relative; } .chain-btn { gap: 7px; } .chain-btn img { width: 16px; height: 16px; border-radius: 50%; } .chain-btn i { font-style: normal; color: var(--dim); margin-left: 2px; }
.chain-menu { position: absolute; top: 44px; right: 0; min-width: 190px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 6px; padding: 4px; z-index: 30; box-shadow: var(--shadow); }
.chain-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 4px; background: none; color: var(--text); cursor: pointer; font-size: 13px; text-align: left; } .chain-menu button:hover:not([disabled]) { background: var(--bg3); } .chain-menu button[disabled] { color: var(--dim); cursor: default; }
.chain-menu button.on { background: var(--bg3); } .chain-menu button span { margin-left: auto; font-size: 10px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); } .chain-menu button.on span { color: var(--up); }
.chain-menu img { width: 16px; height: 16px; border-radius: 50%; } .cdot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; } .cdot.eth { background: #627eea; } .cdot.base { background: #0052ff; } .cdot.bnb { background: #f0b90b; }
.launch-btn { font-weight: 600; }
@media (max-width: 900px) { .launch-btn, .chain-btn { display: none; } }

/* dark theme: white buttons with black text instead of lime; Robinhood logo in the chain menu; the floor graphic */
html[data-theme="dark"] { --lime: #ffffff; --acc: #ffffff; --acc2: #ffffff; --accbg: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .btn.primary, html[data-theme="dark"] .btn.green, html[data-theme="dark"] .btn.up { background: #ffffff; color: #161616; border-color: #ffffff; } html[data-theme="dark"] .btn.primary:hover, html[data-theme="dark"] .btn.green:hover, html[data-theme="dark"] .btn.up:hover { background: #e9e9e9; border-color: #e9e9e9; }
html[data-theme="dark"] .card-big b, html[data-theme="dark"] .trow .acc, html[data-theme="dark"] .fund div.big b, html[data-theme="dark"] .piece .pi .pr, html[data-theme="dark"] .chip.g, html[data-theme="dark"] .chip.g b, html[data-theme="dark"] .colhead div.g b, html[data-theme="dark"] .loop span.g, html[data-theme="dark"] .tag.on, html[data-theme="dark"] .steps3 .lbl, html[data-theme="dark"] .wkick { color: #ffffff; }
html[data-theme="dark"] .fund div.big, html[data-theme="dark"] .chip.g, html[data-theme="dark"] .loop span.g, html[data-theme="dark"] .tag.on { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
html[data-theme="dark"] .bar i, html[data-theme="dark"] .ocard-curve i, html[data-theme="dark"] .curvecell i { background: #ffffff; } html[data-theme="dark"] .tabs button.on { border-bottom-color: #ffffff; }
html[data-theme="dark"] .brand-mark circle:first-of-type { fill: #ffffff; }
.chain-menu .rh { width: 16px; height: 16px; border-radius: 0; background: #fff; padding: 2px; border-radius: 50%; }
.bart .floorart { width: 210px; height: 190px; color: #f8f7f4; filter: none; image-rendering: auto; } html[data-theme="light"] .bart .floorart { color: #f8f7f4; }

/* the callout under the banner, green like OTC's "Minted a desk?" strip */
.hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 18px; padding: 14px 18px; border: 1px solid rgba(78, 194, 127, 0.35); border-radius: 6px; background: rgba(78, 194, 127, 0.1); color: #7fd49f; font-size: 13px; }
.hint > div { display: flex; flex-direction: column; gap: 2px; } .hint b { color: #9fe3b8; font-size: 15px; font-weight: 600; } .hint span { color: rgba(159, 227, 184, 0.85); } .hint a { color: #9fe3b8; text-decoration: none; font-weight: 600; white-space: nowrap; margin: 0; } .hint a:hover { text-decoration: underline; }
html[data-theme="light"] .hint { background: #eef7ea; border-color: #cfe6c6; color: #2f6b3d; } html[data-theme="light"] .hint b, html[data-theme="light"] .hint a { color: #245c33; } html[data-theme="light"] .hint span { color: #3f7a4d; }
.foot { display: none; }
@media (max-width: 700px) { .hint { flex-direction: column; align-items: flex-start; } }

/* the pixel logo: white mark, inverted on the light theme */
.brand-mark { width: 26px; height: 26px; image-rendering: pixelated; object-fit: contain; } 

/* the 3D cube in the banner */
.bart { perspective: 700px; }
.cube-wrap { position: relative; width: 150px; height: 150px; margin: 10px auto 30px; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: spin 14s linear infinite; }
.cube:hover { animation-play-state: paused; }
.face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #2c2c2c, #151515); border: 1px solid rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5); backface-visibility: hidden; }
.face span { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: #f8f7f4; font-family: Inter, "Instrument Sans", sans-serif; } .face small { font-family: var(--mono); font-size: 22px; color: rgba(248, 247, 244, 0.8); letter-spacing: 0.08em; text-transform: uppercase; }
.face i { position: absolute; width: 44px; height: 44px; border-radius: 6px; background: rgba(248, 247, 244, 0.9); } .face i:nth-child(1) { left: 24px; top: 24px; } .face i:nth-child(2) { right: 24px; top: 24px; opacity: 0.45; } .face i:nth-child(3) { left: 24px; bottom: 24px; opacity: 0.45; } .face i:nth-child(4) { right: 24px; bottom: 24px; }
.f1 { transform: rotateY(0deg) translateZ(75px); } .f2 { transform: rotateY(90deg) translateZ(75px); } .f3 { transform: rotateY(180deg) translateZ(75px); } .f4 { transform: rotateY(-90deg) translateZ(75px); } .f5 { transform: rotateX(90deg) translateZ(75px); } .f6 { transform: rotateX(-90deg) translateZ(75px); }
.cube-shadow { position: absolute; left: 10px; right: 10px; bottom: -34px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%); animation: shadow 14s linear infinite; }
@keyframes spin { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } } @keyframes shadow { 0%, 100% { transform: scaleX(1); } 25%, 75% { transform: scaleX(1.25); } }
@media (max-width: 800px) { .bart { display: flex; } .cube-wrap { width: 110px; height: 110px; } .f1, .f3 { transform: rotateY(0deg) translateZ(55px); } .f3 { transform: rotateY(180deg) translateZ(55px); } .f2 { transform: rotateY(90deg) translateZ(55px); } .f4 { transform: rotateY(-90deg) translateZ(55px); } .f5 { transform: rotateX(90deg) translateZ(55px); } .f6 { transform: rotateX(-90deg) translateZ(55px); } .face span { font-size: 32px; } }

/* the banner art: a framed pixel piece hanging over its floor plaque, tilted in 3D like a gallery wall */
.bart { perspective: 900px; }
.gallery { position: relative; width: 190px; height: 210px; transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d; animation: sway 9s ease-in-out infinite; margin: 0 auto; }
@keyframes sway { 0%, 100% { transform: rotateY(-22deg) rotateX(4deg); } 50% { transform: rotateY(-12deg) rotateX(2deg); } }
.gframe { position: absolute; left: 15px; top: 0; width: 160px; height: 160px; padding: 10px; background: linear-gradient(135deg, #e6dcc3, #b9ad8e 50%, #e6dcc3); border-radius: 3px; box-shadow: 14px 18px 30px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.25), inset 0 0 0 4px rgba(255, 255, 255, 0.25); transform: translateZ(14px); }
.gframe::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 10px; background: linear-gradient(90deg, #6b6350, #a1957a); transform: skewY(-45deg) translateY(5px); transform-origin: right; border-radius: 2px 0 0 2px; }
.gmat { width: 100%; height: 100%; background: #f4f1e8; padding: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
.gart { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(16, 1fr); grid-template-rows: repeat(16, 1fr); background: #17171a; } .gart i { display: block; }
.gplaque { position: absolute; left: 50px; top: 172px; width: 110px; padding: 6px 8px; background: linear-gradient(180deg, #2a2a2e, #151517); border: 1px solid rgba(248, 247, 244, 0.25); border-radius: 3px; text-align: center; transform: translateZ(6px); box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.5); }
.gplaque b { display: block; font-size: 11px; color: #f8f7f4; letter-spacing: 0.04em; } .gplaque span { display: block; font-family: var(--mono); font-size: 10px; color: #9fe3b8; margin-top: 2px; }
.gfloor { position: absolute; left: -20px; right: -20px; bottom: -6px; height: 1px; background: linear-gradient(90deg, transparent, rgba(248, 247, 244, 0.35), transparent); }
.cube-wrap { display: none; }
@media (max-width: 800px) { .bart { display: flex; justify-content: center; } .gallery { transform: scale(0.8) rotateY(-16deg); } }

/* three framed pieces fanned out: a collection, not a single picture */
.gallery.fan { width: 230px; height: 200px; animation: none; transform: none; }
.gallery.fan .gframe { left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; transform-origin: 50% 100%; } .gallery.fan .gframe::before { display: none; }
.gallery.fan .back2 { transform: rotate(-14deg) translate(-26px, 6px) scale(0.92); filter: brightness(0.7); animation: fan2 8s ease-in-out infinite; }
.gallery.fan .back1 { transform: rotate(10deg) translate(30px, 2px) scale(0.96); filter: brightness(0.85); animation: fan1 8s ease-in-out infinite; }
.gallery.fan .front { transform: rotate(-3deg) translate(0, 8px); animation: fan0 8s ease-in-out infinite; }
@keyframes fan0 { 0%, 100% { transform: rotate(-3deg) translate(0, 8px); } 50% { transform: rotate(-1deg) translate(0, 2px); } }
@keyframes fan1 { 0%, 100% { transform: rotate(10deg) translate(30px, 2px) scale(0.96); } 50% { transform: rotate(13deg) translate(36px, 0) scale(0.96); } }
@keyframes fan2 { 0%, 100% { transform: rotate(-14deg) translate(-26px, 6px) scale(0.92); } 50% { transform: rotate(-17deg) translate(-32px, 4px) scale(0.92); } }
.gplaque, .gfloor { display: none; }
@media (max-width: 800px) { .gallery.fan { transform: scale(0.8); } }

/* theme picker, regenerate row, banner cards */
.themes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 300px; overflow: auto; padding: 2px; }
.theme { border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 10px; text-align: left; } .theme img, .theme i { width: 100%; aspect-ratio: 1; border-radius: 4px; object-fit: cover; background: var(--bg3); display: block; } .theme span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme:hover { border-color: var(--line2); color: var(--text); } .theme.on { border-color: var(--text); color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.genrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; } .genrow .note { margin: 0; }
.fban { display: block; position: relative; } .fban img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; display: block; background: var(--bg3); }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 12px 12px; }
@media (max-width: 700px) { .themes { grid-template-columns: repeat(3, 1fr); } }

/* generated-art preview, processing state, listing panel */
.artbox { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
.artbox > i { width: 150px; height: 150px; border-radius: 6px; background: var(--bg3); display: flex; align-items: center; justify-content: center; overflow: hidden; } .artbox > i img { width: 100%; height: 100%; object-fit: cover; }
.artbox b { display: block; margin-bottom: 4px; } .artbox .genrow { margin-top: 8px; }
.spin { width: 22px; height: 22px; border: 2px solid var(--line2); border-top-color: var(--text); border-radius: 50%; animation: spin 0.9s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
.procbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); margin-bottom: 14px; font-size: 13px; } .procbar b { display: block; } .procbar span { color: var(--muted); } .procbar.err { border-color: rgba(229, 72, 77, 0.4); }
.lsteps { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.lrow { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; } .lrow span { color: var(--muted); } .lrow code { font-family: var(--mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .artbox { grid-template-columns: 1fr; } .lrow { grid-template-columns: 1fr; } }

.pbar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; width: 260px; max-width: 100%; } .pbar i { display: block; height: 100%; background: var(--text); }
.piece.pending img { opacity: 0.35; } .piece.pending::after { content: "drawing…"; position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 11px; color: var(--text); background: rgba(0, 0, 0, 0.6); padding: 3px 8px; border-radius: 4px; }

/* launch page: the collection panel */
.pgrid.big { grid-template-columns: repeat(3, 1fr); gap: 8px; } .pgrid.big img, .pgrid.big i { border-radius: 6px; } .pgrid.big i { display: flex; align-items: center; justify-content: center; }
.lside { gap: 12px; } .pcol h3 small { font-family: var(--mono); }
.themes, .artbox, .artprev, .pcol .flow { display: none; }

/* rarity: a stacked bar with a legend; the tier colours are shared with piece badges */
:root { --t-Legendary: #e2b84a; --t-Epic: #b794f6; --t-Rare: #5eb2ff; --t-Uncommon: #5fd3a8; --t-Common: #8a8a93; }
.rarity { margin-top: 12px; } .rbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg3); gap: 2px; } .rbar i { display: block; height: 100%; min-width: 3px; }
.t-Legendary { background: var(--t-Legendary); } .t-Epic { background: var(--t-Epic); } .t-Rare { background: var(--t-Rare); } .t-Uncommon { background: var(--t-Uncommon); } .t-Common { background: var(--t-Common); }
.rlegend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.rl { display: grid; grid-template-columns: 8px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); min-width: 0; }
.rl .rdot { width: 8px; height: 8px; border-radius: 50%; grid-row: 1 / span 2; } .rl b { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rl em { font-style: normal; font-family: var(--mono); font-size: 13px; font-weight: 600; } .rl small { display: none; }
.rl:hover small { display: inline; margin-left: 4px; color: var(--dim); font-size: 10px; font-family: var(--mono); }
.sec-head .rarity { margin: 0; flex: 1; min-width: 320px; } .sec-head .rlegend { grid-template-columns: repeat(5, auto); justify-content: start; }
.piece .tier { border: 0; color: #0b0b0d; font-weight: 600; } .piece .tier.Legendary { background: var(--t-Legendary); } .piece .tier.Epic { background: var(--t-Epic); } .piece .tier.Rare { background: var(--t-Rare); } .piece .tier.Uncommon { background: var(--t-Uncommon); } .piece .tier.Common { background: var(--t-Common); color: #fff; }
.tiers { display: block; } .tag.gold { display: none; }
@media (max-width: 700px) { .rlegend { grid-template-columns: repeat(3, 1fr); } }

/* tier icons + coin preview card */
.rl .rdot { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; } .rl .rdot svg { width: 14px; height: 14px; fill: #0b0b0d; } .rl { grid-template-columns: 22px 1fr; column-gap: 8px; }
.rl .rdot.t-Common svg { fill: #fff; }
.piece .tier { display: inline-flex; align-items: center; gap: 4px; } .piece .tier svg { width: 10px; height: 10px; fill: currentColor; }
.tier.big { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: #0b0b0d; vertical-align: middle; margin-left: 8px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; } .tier.big svg { width: 12px; height: 12px; fill: currentColor; } .tier.big.Legendary { background: var(--t-Legendary); } .tier.big.Epic { background: var(--t-Epic); } .tier.big.Rare { background: var(--t-Rare); } .tier.big.Uncommon { background: var(--t-Uncommon); } .tier.big.Common { background: var(--t-Common); color: #fff; }
.ptok { padding: 16px; } .ptok-head { display: flex; align-items: center; gap: 12px; } .ptok-head .logo { width: 56px; height: 56px; border-radius: 12px; margin: 0; } .ptok-head .logo.ph { background: var(--bg3); border: 1px dashed var(--line2); } .ptok-head h2 { font-size: 18px; margin: 0; } .ptok .ptick { font-size: 12px; margin-top: 2px; color: var(--muted); display: flex; align-items: center; }
.ptok .lines { margin-top: 12px; } .ptok .line { gap: 12px; } .ptok .line b { white-space: normal; max-width: 60%; }

.pcol .rlegend { grid-template-columns: repeat(3, 1fr); }

/* rarity rows */
.rarity { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rrow2 { display: grid; grid-template-columns: 24px 86px 1fr 44px 36px; gap: 8px; align-items: center; font-size: 12px; } .rrow2 .rdot { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; } .rrow2 .rdot svg { width: 14px; height: 14px; fill: #0b0b0d; } .rrow2 .rdot.t-Common svg { fill: #fff; }
.rrow2 b { font-weight: 600; } .rrow2 .rb { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; } .rrow2 .rb i { display: block; height: 100%; border-radius: 3px; } .rrow2 em { font-style: normal; font-family: var(--mono); font-weight: 600; text-align: right; } .rrow2 small { font-family: var(--mono); color: var(--dim); text-align: right; font-size: 10px; }
.rbar, .rlegend { display: none; }
.pairchip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px 2px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--text); } .pairchip img { width: 14px; height: 14px; border-radius: 50%; }
.tag-line { font-size: 15px; color: var(--text); font-weight: 500; margin: -2px 0 12px; }
/* market: collection cards */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ccard { display: block; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); overflow: hidden; transition: border-color 0.15s, transform 0.15s; } .ccard:hover { border-color: var(--line2); transform: translateY(-2px); } .ccard img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; display: block; background: var(--bg2); }
.cmeta { padding: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; } .cmeta b { display: block; font-size: 14px; } .cmeta small { color: var(--dim); font-size: 11px; } .cnums { display: flex; gap: 12px; } .cnums span { display: flex; flex-direction: column; align-items: flex-end; } .cnums small { color: var(--dim); font-size: 10px; } .cnums b { font-family: var(--mono); font-size: 12px; }
/* the piece dialog */
.modal-box.pm { max-width: 860px; grid-template-columns: 1fr 340px; background: var(--bg2); border-radius: 10px; }
.pm-img { background: var(--bg); display: flex; align-items: center; justify-content: center; } .pm-img img { width: 100%; height: 100%; object-fit: contain; }
.pm-side { padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; } .pm-head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .pm-coin { font-size: 12px; color: var(--muted); } .pm-coin:hover { color: var(--text); } .pm-head h2 { font-size: 30px; margin: 0; letter-spacing: -0.03em; } .pm-head .tier.big { margin: 0; }
.pm-traits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .pm-traits div { background: var(--bg3); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; } .pm-traits span { display: block; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); } .pm-traits b { font-size: 13px; font-weight: 600; text-transform: capitalize; }
.pm-status { font-size: 12px; color: var(--muted); line-height: 1.5; }
.pm-side .act { margin-top: auto; gap: 10px; } .pricebox { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg3); } .pricebox span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; } .pricebox b { font-family: var(--mono); font-size: 20px; font-weight: 600; } .pricebox small { color: var(--dim); font-family: var(--mono); margin-left: auto; }
.pm-link { font-size: 12px; color: var(--muted); text-align: center; } .pm-link:hover { color: var(--text); } .pnote { font-size: 12px; color: var(--muted); }
.modal-side { display: none; }
/* a coin page opened as a collection: collection panel first, chart after */

@media (max-width: 800px) { .modal-box.pm { grid-template-columns: 1fr; max-width: 440px; } .pm-img img { max-height: 320px; } .rrow2 { grid-template-columns: 24px 80px 1fr 40px; } .rrow2 small { display: none; } }

/* the piece page */
.ppage { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; overflow: auto; }
.pp-top { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.pp-nav, .pp-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: pointer; font-size: 16px; } .pp-nav:disabled { opacity: 0.3; cursor: default; } .pp-x { margin-left: auto; }
.pp-strip { display: flex; gap: 6px; overflow: hidden; } .pp-strip img { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; opacity: 0.45; cursor: pointer; border: 1px solid transparent; } .pp-strip img.on, .pp-strip img:hover { opacity: 1; border-color: var(--line2); }
.pp-body { display: grid; grid-template-columns: 1fr 520px; min-height: calc(100vh - 64px); }
.pp-img { background: #0e0e0e; display: flex; align-items: center; justify-content: center; padding: 40px; } .pp-img img { max-width: min(760px, 100%); max-height: calc(100vh - 150px); width: 100%; border-radius: 8px; background: var(--bg2); }
.pp-side { padding: 28px 30px 60px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; } .pp-side h1 { font-size: 30px; margin: 0; letter-spacing: -0.03em; }
.pp-chips { display: flex; gap: 8px; flex-wrap: wrap; } .chipx { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); font-size: 13px; } .chipx img { width: 18px; height: 18px; border-radius: 50%; } .chipx svg { color: #5eb2ff; } .chipx.dim { color: var(--muted); } .chipx b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.pp-tags { display: flex; gap: 6px; flex-wrap: wrap; } .pp-tags > span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; background: var(--bg3); color: var(--muted); } .pp-tags .tier.big { margin: 0; }
.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); } .pp-stats span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; } .pp-stats b { font-family: var(--mono); font-size: 14px; font-weight: 600; } .pp-stats .r { text-align: right; }
.pp-buy { padding: 14px 16px 0; margin-top: -8px; } .pp-buy span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .pp-buy b { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; } .pp-buy small { font-family: var(--mono); color: var(--dim); margin-left: 10px; }
.pp-side .act { display: flex; gap: 10px; } .pp-side .act .btn.wide { flex: 1; } .listrow { display: flex; gap: 8px; width: 100%; } .listrow input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); outline: none; }
.pp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-top: 6px; } .pp-tabs button { padding: 10px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; } .pp-tabs button.on { color: var(--text); border-bottom-color: var(--text); }
.pp-sec { border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); margin-top: 10px; } .pp-sech { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; } .pp-sech b { font-size: 14px; } .pp-sech small { color: var(--dim); font-family: var(--mono); } .pp-sech::after { content: "⌄"; margin-left: auto; color: var(--dim); } .pp-sec.open .pp-sech::after { content: "⌃"; }
.pp-sec > .pp-traits, .pp-sec > .pp-secb { display: none; } .pp-sec.open > .pp-traits, .pp-sec.open > .pp-secb { display: grid; } .pp-secb { padding: 0 16px 16px; font-size: 13px; color: var(--muted); line-height: 1.6; } .pp-secb a { color: var(--text); text-decoration: underline; }
.pp-traits { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px 16px; } .tc { background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: 12px; } .tc span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); } .tc b { display: block; font-size: 14px; font-weight: 600; margin: 4px 0 8px; text-transform: capitalize; } .tc small { font-size: 11px; color: var(--dim); } .tc small em { font-style: normal; font-family: var(--mono); background: rgba(94, 178, 255, 0.16); color: #8cc5ff; padding: 2px 6px; border-radius: 4px; margin-right: 4px; }
.arow { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .arow b { font-family: var(--mono); margin-left: auto; } .arow small { color: var(--dim); font-family: var(--mono); }
.modal, .modal-box { display: none; }
/* selects, chevrons, chips */
.sel, select.sel { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px !important; border-radius: 8px; font-weight: 500; cursor: pointer; } .sel:hover { border-color: var(--line2); } .sel:focus { outline: none; border-color: var(--line2); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }
.chain-btn i { display: inline-flex; align-items: center; line-height: 1; font-size: 11px; transform: translateY(-1px); margin-left: 4px; }
.pgrid img.pv { opacity: .55; }
.stylechips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; } .stylechips button { font-size: 12px; padding: 6px 10px; }
.pairchip { border: 0; padding: 2px 0; margin-left: 6px; color: var(--muted); } .pairchip img { width: 14px; height: 14px; }
@media (max-width: 900px) { .pp-body { grid-template-columns: 1fr; } .pp-side { border-left: 0; padding: 20px 16px 50px; } .pp-stats { grid-template-columns: repeat(2, 1fr); } .pp-traits { grid-template-columns: repeat(2, 1fr); } .pp-img { padding: 16px; } }

.chain-btn { display: inline-flex; align-items: center; gap: 7px; line-height: 1; } .chain-btn .chev { color: var(--dim); flex: none; display: block; }
