/* Gate title fonts: drop the Pangram Pangram files into /fonts and they take over;
   until then Geist and Pixelify Sans stand in. */
@font-face { font-family: "Neue Montreal"; font-weight: 500; font-display: swap;
  src: local("PP Neue Montreal Medium"), local("PPNeueMontreal-Medium"),
       url(../fonts/PPNeueMontreal-Medium.woff2) format("woff2"), url(../fonts/PPNeueMontreal-Medium.otf) format("opentype"); }
@font-face { font-family: "NeueBit"; font-weight: 700; font-display: swap;
  src: local("PP NeueBit Bold"), local("PPNeueBit-Bold"),
       url(../fonts/PPNeueBit-Bold.woff2) format("woff2"), url(../fonts/PPNeueBit-Bold.otf) format("opentype"); }

/* ==========================================================================
   Parity — design system
   Gold-on-black from the logo. Accent tokens can be swapped by the theme menu.
   ========================================================================== */
:root {
  --bg: #07070a;
  --bg-2: #0b0b0e;
  --panel: rgba(13, 12, 11, .78);
  --panel-solid: #0d0c0b;
  --panel-2: rgba(22, 20, 17, .9);
  --line: rgba(var(--a-hi-rgb), .075);
  --line-2: rgba(var(--a-hi-rgb), .14);
  --text: #f4f0e7;
  --text-2: #aaa395;
  --muted: #6d685d;

  /* accent (Gold preset) */
  --accent: #ecbd52;
  --accent-rgb: 236, 189, 82;
  --a-deep: #8a5c14;
  --a-dark: #af771d;
  --a-hi: #fff398;
  --a-hi-rgb: 255, 236, 190;
  --a-soft: #f6d98a;
  --a-mute: #8c7b58;
  --a-engrave: #4a3110;
  --grad: linear-gradient(135deg, #af771d 0%, #d4932b 20%, #ecbd52 45%, #fff398 60%, #e6ab41 80%, #af771d 100%);
  --on-accent: #140d02;

  --up: #58d68d;
  --down: #ff6b6b;

  --r-xs: 6px;
  --r-sm: 8px;
  --r: 4px;
  --r-lg: 6px;

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;

  --top-h: 56px;
  --rail-w: 46px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(var(--accent-rgb), .35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(var(--a-hi-rgb), .08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), .25); }

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }
.gold-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caps { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.hide { display: none !important; }

/* ---------- Background canvas ---------- */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg canvas { width: 100%; height: 100%; display: block; }
#bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 600px at 15% 100%, rgba(var(--accent-rgb), .07), transparent 60%),
  radial-gradient(700px 500px at 100% 0%, rgba(var(--accent-rgb), .05), transparent 60%); }
body[data-bg="off"] #bg canvas { display: none; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 18px;
  background: rgba(7, 7, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; perspective: 400px; }
.brand-logo { width: 28px; height: 28px; border-radius: 50%; transition: transform .8s var(--spring); transform-style: preserve-3d; }
.brand:hover .brand-logo { transform: rotateY(180deg) rotateZ(-30deg); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand-beta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; color: var(--muted); margin-left: 2px; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 7px 12px; color: var(--text-2); font-size: 13.5px; border-radius: 4px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.nav a.active { color: var(--text); }
.nav a.active::before { content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); transition: color .2s, background .2s; }
.tool:hover, .tool.on { color: var(--text); background: rgba(255, 255, 255, .04); }
.tool svg { width: 14px; height: 14px; }
.acct { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px; border-radius: 4px; border: 1px solid transparent; color: var(--text-2); font-size: 13px; transition: border-color .2s, background .2s; }
.acct:hover, .acct.on { border-color: var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
.acct .face { width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; background: #111; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 9px; color: var(--text); }
.acct .chev { width: 10px; height: 10px; opacity: .6; transition: transform .25s; }
.acct.on .chev { transform: rotate(180deg); }

/* ---------- 3D buttons ---------- */
.btn {
  --depth: 3px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--text); background: rgba(255,255,255,.04);
  box-shadow: none;
  transition: background .2s, border-color .2s, color .2s, filter .2s, opacity .2s;
  overflow: hidden; isolation: isolate;
}
.btn:hover { background: rgba(255,255,255,.07); border-color: rgba(var(--accent-rgb), .35); }
.btn:active { background: rgba(255,255,255,.1); }
.btn-gold { color: var(--on-accent); border-color: transparent; background: var(--accent); font-weight: 600; }
.btn-gold:hover { background: var(--accent); border-color: transparent; filter: brightness(1.08); }
.btn-gold:active { background: var(--accent); filter: brightness(.93); }
.btn-line { border-color: rgba(var(--accent-rgb), .45); color: var(--accent); background: rgba(var(--accent-rgb), .04); }
.btn-ok { border-color: rgba(88, 214, 141, .5); color: var(--up); background: rgba(88, 214, 141, .05); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 10px; border-radius: 4px; --depth: 2px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 12px; border-radius: 4px; --depth: 4px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none !important; }
.launch-btn { height: 34px; padding: 0 14px 0 12px; }
.launch-btn .plus { font-size: 15px; line-height: 1; margin-top: -1px; }
.launch-btn kbd { font-family: var(--mono); font-size: 9.5px; padding: 1px 5px; border-radius: 4px; background: rgba(0,0,0,.18); color: rgba(20,13,2,.7); margin-left: 4px; }

.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; color: var(--text-2); border: 1px solid transparent; transition: all .2s; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: var(--line); }
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- Left rail ---------- */
.rail {
  position: fixed; left: 12px; top: calc(var(--top-h) + 14px); z-index: 35; width: var(--rail-w);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; backdrop-filter: blur(10px);
}
.rail-btn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; color: var(--text-2); font-family: var(--mono); font-size: 15px; font-weight: 500; transition: transform .25s var(--spring), color .2s, background .2s, box-shadow .2s; transform-style: preserve-3d; }
.rail-btn:hover { color: var(--accent); background: rgba(var(--accent-rgb), .07); transform: translateZ(10px) scale(1.08); }
.rail-btn.on { color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .28); }
.rail-btn.on::before { content: ""; position: absolute; left: -9px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.rail-btn .tip { position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; padding: 5px 9px; border-radius: 4px; background: var(--panel-solid); border: 1px solid var(--line-2); font-size: 10px; letter-spacing: .14em; color: var(--text); transition: opacity .15s, transform .2s var(--ease); }
.rail-btn .tip::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.rail-btn:hover .tip { opacity: 1; transform: translate(0, -50%); }
.rail hr { width: 22px; border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

/* ---------- Main ---------- */
main#app { position: relative; z-index: 1; padding: calc(var(--top-h) + 14px) 18px 40px calc(var(--rail-w) + 30px); min-height: 100vh; perspective: 1400px; }
.page { max-width: 1180px; margin: 0 auto; animation: pageIn .55s var(--ease) both; transform-origin: 50% 0; }
.page.narrow { max-width: 920px; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px) rotateX(4deg); } }
.page-title { font-size: 25px; font-weight: 500; letter-spacing: -0.02em; }
.page-title.u { display: inline-block; position: relative; }
.page-title.u::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.page-head p { color: var(--text-2); margin-top: 8px; }

/* ---------- Surfaces ---------- */
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; backdrop-filter: blur(8px); }
.card.pad-lg { padding: 28px; }
.card-title { font-size: 14px; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card.glow { border-color: rgba(var(--accent-rgb), .22); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .05), 0 30px 80px -40px rgba(var(--accent-rgb), .35); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.tilt { transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .2s, box-shadow .3s; will-change: transform; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.chip.live { color: var(--on-accent); background: var(--grad); border-color: transparent; font-weight: 600; }
.chip.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--on-accent); animation: pulse 1.3s infinite; }
.chip.live .countdown { color: var(--on-accent); }
.chip.soon { color: var(--accent); border-color: rgba(var(--accent-rgb), .35); }
.chip.done { color: var(--up); border-color: rgba(88, 214, 141, .3); }
.chip.grad { color: #9fc1ff; border-color: rgba(159, 193, 255, .3); }
.chip.fail { color: var(--down); border-color: rgba(255, 107, 107, .3); }
@keyframes pulse { 50% { opacity: .3; } }
.verified { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--grad); color: var(--on-accent); font-size: 9px; font-weight: 800; }

.avatar { flex: none; display: grid; place-items: center; border-radius: 4px; font-family: var(--display); font-weight: 700; color: rgba(0,0,0,.72); position: relative; overflow: hidden; }
.avatar::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.45), transparent 52%); }
.avatar.round { border-radius: 50%; }

.progress { height: 6px; background: rgba(255,255,255,.05); border-radius: 4px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 4px; box-shadow: 0 0 12px rgba(var(--accent-rgb), .5); }
.progress.thin { height: 3px; }
.countdown { font-family: var(--mono); font-weight: 500; color: var(--accent); }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label, .field > label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .35); color: var(--text); font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 110px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #5a564d; }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); background: rgba(0,0,0,.5); }
.input-affix { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-affix:focus-within { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); }
.input-affix .input { border: 0; background: transparent; box-shadow: none !important; }
.input-affix .affix { padding: 0 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.big-input { font-family: var(--mono); font-size: 22px; height: 54px; }
.search-mini { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 4px; background: rgba(0,0,0,.3); border: 1px solid var(--line); color: var(--muted); min-width: 0; flex: 1; transition: border-color .2s; }
.search-mini:focus-within { border-color: rgba(var(--accent-rgb), .4); }
.search-mini input { border: 0; outline: 0; background: none; width: 100%; font-size: 13px; color: var(--text); }
.search-mini svg { width: 13px; height: 13px; flex: none; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 4px; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.seg button { height: 26px; min-width: 28px; padding: 0 9px; border-radius: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); transition: all .2s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 0 rgba(0,0,0,.5); }
.seg.lg button { height: 32px; padding: 0 13px; font-size: 12px; }
.seg.gold button.on { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .4), 0 2px 0 rgba(0,0,0,.5); }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { position: relative; padding: 10px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.toggle { width: 38px; height: 22px; border-radius: 4px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); position: relative; flex: none; transition: all .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 3px; background: var(--muted); transition: transform .3s var(--spring), background .2s; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.toggle.on { background: rgba(var(--accent-rgb), .22); border-color: rgba(var(--accent-rgb), .5); }
.toggle.on::after { transform: translateX(16px); background: var(--accent); }
.check-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.check-row input { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--line-2); display: grid; place-items: center; cursor: pointer; flex: none; background: rgba(0,0,0,.3); }
.check-row input:checked { background: var(--grad); border-color: transparent; }
.check-row input:checked::after { content: "✓"; font-size: 10px; font-weight: 800; color: var(--on-accent); }
.drop { border: 1px dashed var(--line-2); border-radius: var(--r); display: grid; place-items: center; text-align: center; padding: 26px; gap: 6px; color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.drop:hover { border-color: rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .03); transform: translateY(-2px); }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(var(--accent-rgb), .035); }
.table .num { text-align: right; font-family: var(--mono); }
.table-wrap { overflow-x: auto; }

/* ==========================================================================
   Market board
   ========================================================================== */
.market { animation: pageIn .5s var(--ease) both; }
.market-head { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.market-head h1 { font-size: 25px; font-weight: 500; }
.chain-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.chain-tag b { color: var(--text); font-weight: 500; }
.view-seg button svg { width: 14px; height: 14px; display: block; }
.display-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); transition: all .2s; }
.display-btn:hover, .display-btn.on { color: var(--text); border-color: var(--line-2); }
.display-btn .n { min-width: 16px; height: 16px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-size: 10px; display: grid; place-items: center; font-weight: 700; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; height: calc(100vh - var(--top-h) - 92px); min-height: 520px; }
.col { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; backdrop-filter: blur(10px); animation: colIn .6s var(--ease) both; }
.col:nth-child(2) { animation-delay: .07s; }
.col:nth-child(3) { animation-delay: .14s; }
@keyframes colIn { from { opacity: 0; transform: translateY(24px) rotateX(8deg) scale(.98); } }
.col-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.col-head h3 { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.col-head .count { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 4px; }
.qb { display: inline-flex; align-items: center; height: 30px; border-radius: 4px; border: 1px solid var(--line); background: rgba(0,0,0,.3); padding: 0 3px 0 8px; gap: 2px; flex: none; }
.qb .bolt { color: var(--up); font-size: 12px; margin-right: 4px; }
.qb input { width: 34px; border: 0; outline: 0; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.qb .unit { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-right: 6px; }
.qb .p { height: 22px; min-width: 24px; padding: 0 5px; border-radius: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); transition: all .2s; }
.qb .p:hover { color: var(--text); }
.qb .p.on { color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.filter-btn { height: 30px; min-width: 32px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-family: var(--mono); font-size: 11px; transition: all .2s; flex: none; }
.filter-btn:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .4); }
.filter-btn svg { width: 12px; height: 12px; }
.col-body { flex: 1; overflow-y: auto; padding: 6px; perspective: 900px; }
.col-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--text-2); font-size: 13.5px; }
.col-empty .btn { margin-top: 14px; }

.coin-row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 4px; border: 1px solid transparent; position: relative;
  transition: transform .3s var(--ease), background .2s, border-color .2s, box-shadow .3s; animation: rowIn .5s var(--ease) backwards; transform-style: preserve-3d;
}
.coin-row:hover { background: rgba(var(--accent-rgb), .045); border-color: rgba(var(--accent-rgb), .18); box-shadow: 0 16px 30px -18px rgba(0,0,0,.9); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px) rotateX(-10deg); } }
.coin-row .avatar { width: 48px; height: 48px; font-size: 16px; }
.coin-row .nm { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.coin-row .nm b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-row .nm span { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.coin-row .meta { display: flex; gap: 10px; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.coin-row .meta b { color: var(--text-2); font-weight: 400; }
.coin-row .bar { margin-top: 7px; }
.coin-row .qbuy { --depth: 2px; height: 30px; padding: 0 10px; font-size: 11px; letter-spacing: .04em; }
.coin-row .qbuy .bolt { color: var(--on-accent); }

/* ==========================================================================
   Drawers (side panels) & popovers
   ========================================================================== */
.drawer {
  position: fixed; top: calc(var(--top-h) + 14px); bottom: 14px; z-index: 45; width: 370px;
  display: flex; flex-direction: column; background: rgba(11, 10, 9, .94); border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95); backdrop-filter: blur(16px);
}
.drawer.right { right: 14px; animation: drawerR .45s var(--ease) both; transform-origin: 100% 50%; }
.drawer.left { left: calc(var(--rail-w) + 22px); width: 380px; animation: drawerL .45s var(--ease) both; transform-origin: 0 50%; }
@keyframes drawerR { from { opacity: 0; transform: perspective(900px) translateX(30px) rotateY(-14deg); } }
@keyframes drawerL { from { opacity: 0; transform: perspective(900px) translateX(-30px) rotateY(14deg); } }
.drawer-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.drawer-head .ttl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.drawer-head .ttl::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px; }
.drawer .tabs { gap: 16px; margin-bottom: 12px; }
.drawer-foot { padding: 12px; border-top: 1px solid var(--line); }
.drawer .empty { text-align: center; padding: 60px 16px; color: var(--text-2); font-size: 13.5px; }
.drawer .empty h4 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 8px; }

.chat-big { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin: 2px 0 16px; }
.chat-big span { color: var(--muted); }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 14px; animation: rowIn .4s var(--ease) both; }
.msg .who { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.msg .who.mod { color: var(--down); }
.msg .bubble { display: inline-block; padding: 7px 11px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13.5px; }
.msg .t { font-size: 11px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.msg.me { grid-template-columns: 1fr; justify-items: end; }
.msg.me .bubble { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .25); }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.send-row { display: flex; gap: 8px; align-items: center; padding: 6px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(0,0,0,.35); }
.send-row input { flex: 1; border: 0; outline: 0; background: none; padding: 0 8px; font-size: 13.5px; }
.dm-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 4px; cursor: pointer; transition: background .2s, transform .25s var(--ease); }
.dm-item:hover { background: rgba(255,255,255,.035); transform: translateX(3px); }
.dm-item .last { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--grad); color: var(--on-accent); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }

.pop {
  position: fixed; z-index: 60; background: rgba(12, 11, 10, .97); border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.95); backdrop-filter: blur(16px); padding: 16px; animation: popIn .35s var(--spring) both; transform-origin: 90% 0;
}
@keyframes popIn { from { opacity: 0; transform: perspective(700px) translateY(-8px) rotateX(-14deg) scale(.96); } }
.pop .sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pop .sec:first-child { padding-top: 0; }
.pop .sec:last-child { border-bottom: 0; padding-bottom: 0; }
.pop-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; color: var(--text-2); font-size: 14px; transition: color .2s, transform .25s var(--ease); cursor: pointer; }
.pop-link:hover { color: var(--text); transform: translateX(3px); }
.lang { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.lang button { height: 30px; border-radius: 4px; font-family: var(--mono); font-size: 11px; color: var(--muted); transition: all .2s; }
.lang button:hover { color: var(--text); }
.lang button.on { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.big-face { width: 50px; height: 50px; border-radius: 4px; background: #0e0e0e; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.theme-sw { text-align: center; font-size: 11.5px; color: var(--text-2); cursor: pointer; }
.theme-sw .prev { height: 52px; border-radius: 4px; border: 1px solid var(--line-2); margin-bottom: 6px; position: relative; overflow: hidden; background: #0b0b0b; transition: transform .3s var(--spring), border-color .2s, box-shadow .3s; }
.theme-sw .prev::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--sw); }
.theme-sw .prev::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 10px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.18); box-shadow: 0 -7px 0 rgba(255,255,255,.1); }
.theme-sw:hover .prev { transform: translateY(-3px) rotateX(10deg); }
.theme-sw.on .prev { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25); }
.bg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.bg-opts button { height: 34px; border-radius: 4px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 0 10px; transition: all .2s; }
.bg-opts button:hover { color: var(--text); border-color: var(--line-2); }
.bg-opts button.on { color: var(--text); border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .06); }
.bg-opts i { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); display: inline-block; opacity: .8; }

/* ---------- Verify nudge ---------- */
.nudge { position: fixed; right: 26px; bottom: 22px; z-index: 30; text-align: left; cursor: pointer; animation: pageIn .8s .4s var(--ease) both; }
.nudge h4 { font-size: 24px; font-weight: 300; color: rgba(244, 240, 231, .82); letter-spacing: -0.02em; transition: color .2s; }
.nudge p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.nudge:hover h4 { color: var(--accent); }

.preview-pill { position: fixed; left: 14px; bottom: 14px; z-index: 30; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 5px 9px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); }
.preview-pill::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; animation: pulse 1.6s infinite; }

/* ==========================================================================
   Portfolio / rewards / pages
   ========================================================================== */
.hero-center { text-align: center; padding: 48px 0 40px; position: relative; }
.hero-center h2 { font-size: 30px; font-weight: 400; letter-spacing: -0.025em; }
.hero-center p { color: var(--text-2); max-width: 600px; margin: 14px auto 0; font-size: 14.5px; }
.hero-center .btn { margin-top: 24px; }
.crosshair { position: absolute; width: 16px; height: 16px; opacity: .35; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--text-2); }
.crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.crosshair::after { top: 50%; left: 0; right: 0; height: 1px; }

.claim-big { font-family: var(--font); font-size: 76px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 10px 0 12px; }
.claim-label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.link-box { display: flex; align-items: center; gap: 8px; max-width: 640px; margin: 0 auto; padding: 5px 5px 5px 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(0,0,0,.35); }
.link-box span { flex: 1; text-align: left; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.link-box span b { color: var(--text); font-weight: 400; }
.stat-line { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat-line .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.stat-line .v { font-size: 22px; font-weight: 400; margin-top: 4px; }
.tiers3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 32px 0; }
.tiers3 .pct { font-size: 46px; font-weight: 300; letter-spacing: -0.03em; margin: 12px 0 8px; }
.tiers3 .tier-box { transition: transform .4s var(--ease); }
.tiers3 .tier-box:hover { transform: translateY(-4px); }
.tiers3 .tier-box:hover .pct { color: var(--accent); }
.tiers3 .sub { display: flex; gap: 40px; padding-top: 14px; margin-top: 18px; border-top: 1px solid var(--line); }
.partner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.x-card { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(0,0,0,.35); transition: transform .3s var(--ease), border-color .2s; }
.x-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .4); }
.x-card img { width: 46px; height: 46px; border-radius: 4px; }
.x-card .go { width: 46px; height: 46px; border-radius: 4px; background: var(--grad); display: grid; place-items: center; color: var(--on-accent); font-size: 18px; margin-left: 30px; box-shadow: 0 3px 0 var(--a-deep); }

/* ---------- Coin page ---------- */
.coin-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.coin-head h1 { font-size: 28px; }
.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.sticky { position: sticky; top: calc(var(--top-h) + 14px); }
.chart-box { height: 330px; position: relative; }
.chart-box svg { width: 100%; height: 100%; display: block; }
.sale-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sale-meter > div { background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; transition: transform .3s var(--ease), border-color .2s; }
.sale-meter > div:hover { transform: translateY(-3px); border-color: var(--line-2); }
.sale-meter .k { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sale-meter .v { font-family: var(--mono); font-size: 19px; margin-top: 4px; }
.big-timer { display: flex; gap: 10px; justify-content: center; perspective: 600px; }
.big-timer > div { min-width: 78px; text-align: center; background: rgba(0,0,0,.4); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 8px; box-shadow: 0 4px 0 rgba(0,0,0,.6); transform: rotateX(8deg); }
.big-timer .v { font-family: var(--mono); font-size: 34px; font-weight: 500; }
.big-timer .k { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.log-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; animation: rowIn .4s var(--ease) both; }
.log-item:last-child { border-bottom: 0; }
.log-dot { width: 22px; height: 22px; border-radius: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.log-dot.ok { background: rgba(88, 214, 141, .12); color: var(--up); }
.log-dot.no { background: rgba(255, 107, 107, .12); color: var(--down); }
.thread-post { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.thread-post:last-child { border-bottom: 0; }
.summary { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.summary > div { display: flex; justify-content: space-between; color: var(--text-2); }
.summary > div span:last-child { font-family: var(--mono); color: var(--text); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.quick button { height: 30px; border-radius: 4px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); transition: all .2s var(--spring); box-shadow: 0 2px 0 rgba(0,0,0,.5); }
.quick button:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .45); transform: translateY(-2px); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 4px; background: rgba(var(--accent-rgb), .05); border: 1px solid rgba(var(--accent-rgb), .18); font-size: 12.5px; color: var(--text-2); }
.note::before { content: "◆"; color: var(--accent); font-size: 10px; margin-top: 2px; }

/* ---------- Launch ---------- */
.launch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.form-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 { font-size: 16px; margin-bottom: 4px; }
.form-section > .hint { display: block; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.ticket { border-radius: 6px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .3); background: var(--panel-solid); transform-style: preserve-3d; }
.ticket .t-top { padding: 20px; display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .03)); }
.ticket .t-cut { height: 0; border-top: 2px dashed rgba(var(--accent-rgb), .3); position: relative; }
.ticket .t-cut::before, .ticket .t-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(var(--accent-rgb), .3); }
.ticket .t-cut::before { left: -11px; }
.ticket .t-cut::after { right: -11px; }
.ticket .t-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket .k { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.ticket .v { font-family: var(--mono); font-size: 13.5px; margin-top: 2px; }
.checklist { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.checklist div { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color .2s; }
.checklist div.ok { color: var(--text-2); }
.checklist .c { width: 17px; height: 17px; border-radius: 3px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 9px; transition: all .3s var(--spring); }
.checklist .ok .c { background: var(--grad); border-color: transparent; color: var(--on-accent); font-weight: 800; transform: scale(1.1); }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; perspective: 1000px; }
.podium .card { text-align: center; }
.podium .first { padding-top: 34px; padding-bottom: 30px; }
.season { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Cards collection / shop ---------- */
.cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; perspective: 900px; }
.collect { aspect-ratio: 3/4; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-2); position: relative; overflow: hidden; transform-style: preserve-3d; }
.collect::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%); transform: translateX(-100%); transition: transform .8s var(--ease); }
.collect:hover::after { transform: translateX(100%); }
.collect.locked { filter: grayscale(1); opacity: .4; }
.collect .rar { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; perspective: 1000px; }
.item-card { border-radius: 6px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.item-card .art { aspect-ratio: 4/3; display: grid; place-items: center; position: relative; }
.item-card .info { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- Profile ---------- */
.profile-cover { height: 170px; border-radius: 6px; border: 1px solid var(--line); position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(0,0,0,.2) 60%), var(--panel); }
.profile-cover img { position: absolute; right: -30px; top: -50px; width: 280px; opacity: .22; animation: spin 80s linear infinite; }
.profile-head { display: flex; gap: 18px; align-items: flex-end; margin-top: -44px; padding: 0 22px; position: relative; flex-wrap: wrap; }
.profile-head .avatar { border: 4px solid var(--bg); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metric .v { font-family: var(--mono); font-size: 24px; margin-top: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Token ---------- */
.burn-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flame { height: 10px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.flame span { display: block; height: 100%; background: linear-gradient(90deg, var(--a-dark), var(--accent), var(--a-hi)); border-radius: 4px; box-shadow: 0 0 16px rgba(var(--accent-rgb), .6); }

/* ---------- FAQ ---------- */
details.qa { border: 1px solid var(--line); border-radius: 4px; background: var(--panel); margin-bottom: 8px; transition: border-color .2s; }
details.qa[open] { border-color: var(--line-2); }
details.qa summary { cursor: pointer; padding: 16px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; transition: transform .3s var(--spring); }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 18px 16px; color: var(--text-2); font-size: 13.5px; }
.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.faq-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--top-h) + 20px); }
.faq-nav a { padding: 8px 10px; border-radius: 4px; color: var(--text-2); font-size: 13.5px; transition: all .2s; }
.faq-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); transform: translateX(3px); }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: 70px; padding: 44px 0 30px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot h5 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.foot a { display: block; color: var(--text-2); font-size: 13.5px; padding: 5px 0; transition: color .2s, transform .25s var(--ease); }
.foot a:hover { color: var(--accent); transform: translateX(3px); }
.foot .tag { font-size: 21px; font-weight: 500; margin: 18px 0 10px; letter-spacing: -0.02em; }
.foot .tag span { color: var(--muted); }

/* ==========================================================================
   Modals & toast
   ========================================================================== */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; perspective: 1200px; }
.modal { width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: rgba(12, 11, 10, .98); border: 1px solid var(--line-2); border-radius: 6px; padding: 26px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.95); animation: modalIn .45s var(--spring) both; }
.modal.wide { max-width: 500px; }
.modal h3 { font-size: 21px; font-weight: 500; }
.modal-x { float: right; margin: -8px -10px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) rotateX(-12deg) scale(.96); } }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.topic-grid label { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 13.5px; color: var(--text-2); transition: all .2s; }
.topic-grid label:hover { border-color: var(--line-2); color: var(--text); }
.topic-grid input { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border: 1.5px solid var(--muted); border-radius: 2px; margin: 0; }
.topic-grid input:checked { background: var(--accent); border-color: var(--accent); }
.topic-grid label:has(input:checked) { border-color: rgba(var(--accent-rgb), .45); color: var(--text); background: rgba(var(--accent-rgb), .05); }
.modal-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.modal-links a:hover { color: var(--accent); }
.perm { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); padding: 7px 0; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: 11px; font-weight: 800; }
.tick.no { background: rgba(255,107,107,.12); color: var(--down); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { height: 52px; text-align: center; font-family: var(--mono); font-size: 22px; padding: 0; }
.x-btn { background: #f4f4f4; color: #000; border-color: #fff; }
.x-btn:hover { background: #fff; border-color: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 120; transform: translateX(-50%); background: rgba(14,13,11,.97); border: 1px solid rgba(var(--accent-rgb), .4); padding: 11px 16px; border-radius: 4px; font-size: 13.5px; box-shadow: 0 20px 50px -14px rgba(0,0,0,.9); animation: toastIn .4s var(--spring) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }

/* ==========================================================================
   Sign-up gate (logged-out)
   ========================================================================== */
body.gated .top, body.gated .rail, body.gated #bg, body.gated .nudge, body.gated .preview-pill, body.gated .m-nav { display: none !important; }
body.gated main#app { padding: 0; perspective: none; }
/* Page: near-black, one soft warm glow behind the centre; point-cloud forms frame it from the sides */
.gate {
  position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; padding: 88px 24px; overflow: auto;
  background:
    radial-gradient(ellipse 34% 46% at 50% 50%, rgba(var(--accent-rgb), .05), transparent 75%),
    radial-gradient(ellipse 90% 80% at 50% 50%, #0b0a08, #050504 80%);
  font-family: var(--font);
}
.gate canvas { pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the hands: the user's artwork in gold, two halves at one scale, each just clear of the form */
.gm-hand { position: fixed; z-index: 0; pointer-events: none; user-select: none; display: block; height: calc(505px * var(--hs, 1)); top: calc(50% - 272px * var(--hs, 1)); }
.gm-hand-l { width: calc(1039px * var(--hs, 1)); }
.gm-hand-r { width: calc(1001px * var(--hs, 1)); }
/* dotted rules near the top of the sign-in page: fixed decoration, never part of the layout */
.gm-rules { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; animation: gmIn 1s ease 1.45s both; }
.gm-hand img { display: block; width: 100%; height: 100%; }
/* lighting overlays, masked to the artwork's own visible dots so light never touches the black or the image bounds */
.gm-hand i { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--hm) 0 0 / 100% 100% no-repeat; mask: var(--hm) 0 0 / 100% 100% no-repeat; }
.gm-depth { background: linear-gradient(165deg, rgba(255,240,200,.22) 0%, rgba(255,240,200,0) 42%, rgba(0,0,0,.28) 100%); mix-blend-mode: soft-light; }
.gm-glow { background: radial-gradient(230px circle at var(--mx, -999px) var(--my, -999px), rgba(255,238,190,.6), rgba(255,220,150,.18) 42%, transparent 70%); opacity: var(--lo, 0); mix-blend-mode: screen; }
.gm-sweep { background: linear-gradient(104deg, transparent 46%, rgba(255,240,205,.36) 50%, transparent 54%) 100% 0 / 320% 100% no-repeat; mix-blend-mode: screen; opacity: 0; animation: gmSweep 18s cubic-bezier(.45, 0, .55, 1) 4s infinite; }
.gm-hand-r .gm-sweep { animation-delay: 6.6s; }
@keyframes gmSweep { 0% { background-position: 100% 0; opacity: 0; } 4% { opacity: 1; } 27% { opacity: 1; } 31% { background-position: 0% 0; opacity: 0; } 100% { background-position: 0% 0; opacity: 0; } }
.gate.calm .gm-hand i, .gate.calm .gm-lift { display: none; }
.gm-hand-l { left: calc(50% - var(--gap, 200px) - 966px * var(--hs, 1)); -webkit-mask-composite: source-in; mask: linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat, linear-gradient(270deg, #000 45%, transparent 55%) 100% 0 / 240% 100% no-repeat; mask-composite: intersect; animation: gmWakeL 1.5s cubic-bezier(.33, .6, .3, 1) .25s both, gmFloatL 7s ease-in-out 1.75s infinite; }
.gm-hand-r { left: calc(50% + var(--gap, 200px) - 73px * var(--hs, 1)); -webkit-mask-composite: source-in; mask: linear-gradient(#000 0 0) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, #000 45%, transparent 55%) 0% 0 / 240% 100% no-repeat; mask-composite: intersect; animation: gmWakeR 1.5s cubic-bezier(.33, .6, .3, 1) .25s both, gmFloatR 8.5s ease-in-out 1.75s infinite; }
/* floating: each hand drifts a few px on its own slow rhythm, as if suspended; vertical only, no rotation */
@keyframes gmFloatL { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(4px, -18px, 0); } }
@keyframes gmFloatR { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-4px, 18px, 0); } }
/* the forearms fade into the screen edges, wherever those fall */
.gm-edge { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #050504 0%, rgba(5,5,4,.6) 4%, rgba(5,5,4,0) 10%, rgba(5,5,4,0) 90%, rgba(5,5,4,.6) 96%, #050504 100%); }
/* light-up on load: dots wake from the fingertips back to the wrists, a bright front leading the way */
@keyframes gmWakeL { from { mask-position: 0 0, 0% 0; } to { mask-position: 0 0, 100% 0; } }
@keyframes gmWakeR { from { mask-position: 0 0, 100% 0; } to { mask-position: 0 0, 0% 0; } }
.gm-wake { mix-blend-mode: screen; opacity: 0; }
.gm-hand-l .gm-wake { background: linear-gradient(270deg, transparent 36%, rgba(var(--a-hi-rgb),.65) 46%, transparent 54%) 0% 0 / 240% 100% no-repeat; animation: gmWakeGlowL 1.5s cubic-bezier(.33, .6, .3, 1) .25s both; }
.gm-hand-r .gm-wake { background: linear-gradient(90deg, transparent 36%, rgba(var(--a-hi-rgb),.65) 46%, transparent 54%) 100% 0 / 240% 100% no-repeat; animation: gmWakeGlowR 1.5s cubic-bezier(.33, .6, .3, 1) .25s both; }
@keyframes gmWakeGlowL { 0% { background-position: 0% 0; opacity: 1; } 80% { opacity: 1; } 100% { background-position: 100% 0; opacity: 0; } }
@keyframes gmWakeGlowR { 0% { background-position: 100% 0; opacity: 1; } 80% { opacity: 1; } 100% { background-position: 0% 0; opacity: 0; } }
/* dots lift near the cursor: a slightly bolder, brighter copy of the same dots, shown only around the pointer */
.gm-lift { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: url(#gmDilate) brightness(1.18) drop-shadow(0 1.5px 1px rgba(0,0,0,.85)); opacity: var(--lo, 0); -webkit-mask: radial-gradient(150px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.6) 45%, transparent 75%); mask: radial-gradient(150px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.6) 45%, transparent 75%); }
/* the spark: a soft gold glow in the gap where the two fingertips nearly meet (behind the form) */
.gm-spark { position: fixed; z-index: 1; left: 50%; top: calc(50% + 10px * var(--hs, 1)); width: calc(var(--gap, 200px) * 2 + 140px); height: calc(230px * var(--hs, 1)); transform: translate(-50%, -50%); pointer-events: none; background: radial-gradient(closest-side, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .07) 55%, transparent 100%); filter: blur(10px); animation: gmIn 1.2s ease 1.6s both, gmSpark 7.5s ease-in-out 2.8s infinite; }
@keyframes gmSpark { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
/* gold focus trace: a thin light runs once around the border when the box is focused */
@property --gmAng { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.gs-field::after { content: ""; position: absolute; inset: 0; border-radius: 4px; padding: 1px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--gmAng), transparent 0 70%, rgba(var(--a-hi-rgb),.0) 72%, var(--a-soft) 86%, rgba(var(--a-hi-rgb),0) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gs-field:focus-within::after { animation: gmTrace 1.2s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes gmTrace { 0% { --gmAng: 0deg; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { --gmAng: 360deg; opacity: 0; } }/* ---- atmosphere ---- */
/* light rays: faint warm beams falling from the top centre onto the form */
.gm-rays { position: fixed; left: 50%; top: -12%; width: 1200px; height: 112%; transform: translateX(-50%); z-index: 0; pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 157deg, rgba(var(--a-hi-rgb),.075) 165deg, transparent 171deg, rgba(var(--a-hi-rgb),.05) 177deg, transparent 182deg, rgba(var(--a-hi-rgb),.065) 190deg, transparent 198deg, rgba(var(--a-hi-rgb),.04) 204deg, transparent 210deg 360deg);
  filter: blur(7px); -webkit-mask: linear-gradient(180deg, #000 0%, #000 40%, transparent 82%); mask: linear-gradient(180deg, #000 0%, #000 40%, transparent 82%);
  animation: gmIn 2s ease 1.4s both, gmRays 13s ease-in-out 3.4s infinite; }
@keyframes gmRays { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
/* film grain over everything, almost invisible */
.gm-grain { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* ---- polish ---- */
/* frosted glass behind the form, so it floats as its own layer over the hands */
.gm-center::before { content: ""; position: absolute; inset: -40px -32px -32px; z-index: -1; border-radius: 6px; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,14,10,.5), rgba(8,7,6,.6));
  -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(var(--a-hi-rgb),.07), 0 30px 70px -30px rgba(0,0,0,.85);
  animation: gmIn 1s ease 1s both; }
/* logo with a slow gold glint */
.gm-logo-wrap { position: relative; display: block; width: 46px; height: 46px; margin: 0 auto 26px; animation: gmIn .9s ease .95s both; }
.gm-glint { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--lm) center / contain no-repeat; mask: var(--lm) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 38%, rgba(255,250,228,.95) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat; mix-blend-mode: screen;
  animation: gmGlint 6.5s cubic-bezier(.45, 0, .55, 1) 2.6s infinite; }
@keyframes gmGlint { 0% { background-position: 160% 0; } 28%, 100% { background-position: -60% 0; } }

/* ---- interaction ---- */

@keyframes gmIn { from { opacity: 0; } to { opacity: 1; } }


/* Corners: a quiet wordmark and link at the top, two short lines at the bottom */
.gm-top, .gm-foot { position: fixed; left: 36px; right: 36px; z-index: 1; display: flex; justify-content: space-between; align-items: center; animation: gmIn 1s ease 1.45s both; }
.gm-top { top: 28px; }
.gm-foot { bottom: 26px; font-size: 13px; color: #7d7568; letter-spacing: -0.005em; }
.gm-foot span:last-child { text-align: right; }
.gm-word { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #e9e2d4; }
.gm-link { font-size: 13px; color: #9c9384; transition: color .2s; }
.gm-link:hover { color: var(--a-hi); }

/* Centre block */
.gm-center { position: relative; z-index: 2; width: 100%; max-width: 340px; text-align: center; }
.gm-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.gm-title { font-size: 32px; line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; color: #f3ede1; margin-bottom: 34px; animation: gmIn .9s ease 1.1s both; }
.gm-title span { display: block; color: var(--a-mute); font-weight: 500; }
/* type pairing: "Welcome to Parity" in NeueBit (gold), "Sign in to continue" in Neue Montreal (white) */
.gm-title { font-family: "Neue Montreal", "Geist", sans-serif; font-weight: 500; }
.gm-title span { font-family: "NeueBit", "Pixelify Sans", monospace; font-weight: 700; font-size: 1.12em; letter-spacing: 0; color: var(--accent); }
.gm-form { text-align: left; animation: gmIn .9s ease 1.25s both; }

.gs-label { display: block; font-size: 13px; font-weight: 500; color: #ddd6c8; margin-bottom: 8px; letter-spacing: -0.005em; }
.gs-field { position: relative; }
.gs-field svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #6f685c; pointer-events: none; transition: color .2s; }
.gs-field:focus-within svg { color: var(--accent); }
.gs-input {
  width: 100%; height: 42px; border-radius: 4px; padding: 0 14px 0 38px;
  font-family: var(--font); font-size: 14px; color: #f2ecdf; letter-spacing: -0.005em;
  border: 1px solid rgba(255,255,255,.07); outline: none; background: rgba(255,255,255,.025);
  transition: border-color .2s, box-shadow .25s, background .2s;
}
.gs-input::placeholder { color: #625c50; }
.gs-input:hover { border-color: rgba(var(--accent-rgb), .22); }
.gs-input:focus { border-color: rgba(var(--accent-rgb), .6); background: rgba(255,255,255,.035); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .1); }
/* engraved email box: pressed into the page, lit along its lower lip */
.gm-form .gs-input { background: rgba(0,0,0,.32); border-color: rgba(0,0,0,.55) rgba(255,255,255,.05) rgba(var(--a-hi-rgb),.14); box-shadow: inset 0 2px 4px rgba(0,0,0,.75), inset 0 0 0 1px rgba(0,0,0,.25), 0 1px 0 rgba(var(--a-hi-rgb),.06); }
.gm-form .gs-input:hover { border-bottom-color: rgba(var(--accent-rgb), .3); }
.gm-form .gs-input:focus { border-color: rgba(var(--accent-rgb), .6); background: rgba(0,0,0,.4); box-shadow: inset 0 2px 4px rgba(0,0,0,.75), 0 0 0 3px rgba(var(--accent-rgb), .1); }

.gs-check { display: flex; gap: 9px; align-items: center; font-size: 12.5px; line-height: 1.45; color: #847d70; margin: 14px 0 22px; cursor: pointer; }
.gs-check input { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 3px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(255,255,255,.02); flex: none; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.gs-check input:checked { background: linear-gradient(180deg, #f0cd7a, #b9862c); border-color: #8a5f1a; }
.gs-check input:checked::after { content: "✓"; font-size: 10px; font-weight: 800; color: #1a1206; }
.gs-check a, .gs-alt a { color: #d8d0c0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(var(--accent-rgb), .5); transition: color .2s; }
.gs-check a:hover, .gs-alt a:hover { color: var(--a-hi); }

/* Primary: metallic gold, flat and quiet */
.gs-submit {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; height: 42px; border-radius: 4px;
  font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: #1d1405;
  border: 0;
  background: var(--accent);
  transition: filter .2s;
}
.gs-submit:hover { filter: brightness(1.08); }
.gs-submit:active { filter: brightness(.93); }

.gs-or { display: flex; align-items: center; gap: 12px; margin: 24px 0 20px; font-size: 12px; color: #5f594e; }
.gs-or::before, .gs-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }

/* Secondary: dark, fine edge */
.gs-social {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; height: 42px; border-radius: 4px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: #ece5d6;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .2s, background .2s;
}
.gs-social:hover { border-color: rgba(var(--accent-rgb), .32); background: rgba(255,255,255,.05); }
.gs-alt { text-align: center; font-size: 13px; color: #7d766a; margin-top: 18px; }

/* ==========================================================================
   3D layer: gold-bar buttons, 3D logo, flip cards, parallax, peek, fx
   ========================================================================== */

/* Buttons are flat everywhere (no edge, gloss or press motion), like rift. */
@keyframes shineLoop { 0%, 75% { transform: translateX(-120%); } 95%, 100% { transform: translateX(120%); } }
.btn-line:not(.btn-gold) { color: var(--accent) !important; border-color: rgba(var(--accent-rgb), .45) !important; }
.btn-ok:not(.btn-gold) { color: var(--up) !important; border-color: rgba(88, 214, 141, .5) !important; }

/* 3D logo: stacked cut-out layers give the coin real thickness while it spins */
.logo3d { --s: 28px; width: var(--s); height: var(--s); perspective: calc(var(--s) * 9); display: inline-block; flex: none; }
.logo3d .spin { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: l3d 10s linear infinite; }
.logo3d.slow .spin { animation-duration: 18s; }
.logo3d img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: visible; }
.logo3d img.front { filter: drop-shadow(0 0 calc(var(--s) * .12) rgba(var(--accent-rgb), .45)) brightness(1.08); }
.logo3d img.back { filter: brightness(.9); }
.logo3d img.edge { filter: brightness(.42) saturate(1.2); }
@keyframes l3d { from { transform: rotateX(14deg) rotateY(0deg); } to { transform: rotateX(14deg) rotateY(360deg); } }
.brand:hover .logo3d .spin { animation-duration: 2.2s; }
.top .brand .brand-logo { display: none; }

/* Flip cards */
.flip { perspective: 1000px; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.flip:hover .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: inherit; }
.flip-back { transform: rotateY(180deg); }
.collect.flip { padding: 0; overflow: visible; border: 0; background: none !important; }
.collect.flip .flip-face { border-radius: 6px; border: 1px solid var(--line-2); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.collect.flip .flip-back { background: linear-gradient(160deg, rgba(var(--accent-rgb), .14), #0a0908 70%); border-color: rgba(var(--accent-rgb), .35); box-shadow: 0 20px 40px -20px rgba(var(--accent-rgb), .45); }
.collect.flip::after { display: none; }
.collect.locked.flip { filter: none; opacity: 1; }
.collect.locked.flip .flip-front { filter: grayscale(1); opacity: .45; }
.card-stat { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.card-stat span:first-child { color: var(--muted); }
.card-stat span:last-child { font-family: var(--mono); }
.item-card.flip { border: 0; background: none; overflow: visible; aspect-ratio: 4 / 5.2; }
.item-card.flip .flip-face { border-radius: 6px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; }
.item-card.flip .art { flex: 1; aspect-ratio: auto; }
.item-card.flip .flip-back { padding: 18px; justify-content: space-between; background: linear-gradient(160deg, rgba(var(--accent-rgb), .12), var(--panel-solid) 70%); border-color: rgba(var(--accent-rgb), .3); }

/* Parallax depth (mouse-driven CSS vars set on <body>) */
#bg canvas { transform: translate3d(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -16px), 0) scale(1.05); transition: transform .5s var(--ease); }
.market, main#app > .page:first-child { translate: calc(var(--mx, 0) * 4px) calc(var(--my, 0) * 3px); transition: translate .5s var(--ease); }
.rail { translate: calc(var(--mx, 0) * -3px) calc(var(--my, 0) * -2px); transition: translate .5s var(--ease); }
.top { background-position: calc(var(--mx, 0) * 10px) 0; }

/* Market row: lift with gold edge; peek card pops out beside it */
.coin-row:hover, .coin-row.peeking { transform: translateY(-2px) translateZ(14px); background: rgba(var(--accent-rgb), .055); border-color: rgba(var(--accent-rgb), .28); box-shadow: 0 18px 34px -18px rgba(0,0,0,.95), 0 0 0 1px rgba(var(--accent-rgb), .06), inset 3px 0 0 var(--accent); }
.peek {
  position: fixed; z-index: 55; width: 310px; pointer-events: auto;
  background: linear-gradient(165deg, rgba(28, 25, 19, .97), rgba(10, 9, 8, .98));
  border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 6px; padding: 16px;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.4), 0 30px 60px -40px rgba(var(--accent-rgb), .55);
  transform-origin: var(--origin, 0% 50%); animation: peekIn .42s var(--spring) both;
}
.peek.left { --origin: 100% 50%; animation-name: peekInL; }
@keyframes peekIn { from { opacity: 0; transform: perspective(900px) translateX(-18px) rotateY(-28deg) scale(.94); } }
@keyframes peekInL { from { opacity: 0; transform: perspective(900px) translateX(18px) rotateY(28deg) scale(.94); } }
.peek .spark { height: 86px; margin: 12px -4px 10px; }
.peek .spark svg { width: 100%; height: 100%; display: block; }
.peek .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.peek .stats > div { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.peek .stats .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.peek .stats .v { font-family: var(--mono); font-size: 14px; margin-top: 2px; }

/* Celebration canvas */
#fx { position: fixed; inset: 0; z-index: 150; pointer-events: none; }

/* Deeper surfaces */
.card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 24px 50px -36px rgba(0,0,0,.9); }
.card.tilt:hover, .metric.tilt:hover { border-color: rgba(var(--accent-rgb), .25); box-shadow: 0 30px 60px -30px rgba(0,0,0,.95), 0 20px 50px -40px rgba(var(--accent-rgb), .5); }
.col { box-shadow: 0 30px 60px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.025); }
.drawer, .pop, .modal { box-shadow: 0 50px 100px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04); }

/* ==========================================================================
   Market v3: compact shell and board with room to breathe (same palette)
   ========================================================================== */
:root { --top-h: 56px; --rail-w: 46px; --mk-gold: var(--accent); }

/* top bar: slim, small uppercase tools */
.top { height: var(--top-h); padding: 0 18px 0 20px; background: rgba(8,7,6,.9); border-bottom: 1px solid rgba(var(--a-hi-rgb),.08); }
.brand { gap: 10px; }
.top .brand .logo3d { --s: 28px !important; }
.brand-name { font-size: 19px; }
.nav { gap: 2px; }
.nav a { padding: 6px 12px; font-size: 13.5px; color: #b9b1a2; }
.nav a:hover { color: #fff; background: none; }
.nav a.active { color: #fff; }
.tools { gap: 4px; }
.tool { height: 32px; padding: 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b9b1a2; }
.tool svg { width: 13px; height: 13px; }
.acct { height: 34px; gap: 8px; padding: 0 8px 0 4px; font-size: 13px; color: #d8d0c0; margin-left: 4px; }
.acct .face { width: 24px; height: 24px; border-radius: 4px; font-family: var(--font); font-size: 11px; font-weight: 600; color: #1b1205; border: 1px solid rgba(var(--a-hi-rgb),.4); background: radial-gradient(circle at 35% 30%, var(--a-hi), var(--accent) 60%, var(--a-deep)); }
.launch-btn { height: 32px; padding: 0 10px 0 12px; margin-left: 6px; border-radius: 4px; gap: 7px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.launch-btn .plus { font-size: 15px; }
.launch-btn kbd { font-size: 10px; padding: 1px 5px; border-radius: 3px; }

/* rail: narrow again, small line icons */
.rail { top: calc(var(--top-h) + 14px); left: 10px; width: 46px; padding: 8px 5px; gap: 4px; border-radius: 4px; background: rgba(10,9,7,.85); border: 1px solid rgba(var(--a-hi-rgb),.09); }
.rail-btn { width: 34px; height: 34px; border-radius: 4px; color: #9e9686; }
.rail-btn svg { width: 17px; height: 17px; }
.rail-btn:hover { color: var(--a-soft); background: rgba(var(--accent-rgb),.06); transform: none; }
.rail-btn.on { color: #fff; background: rgba(var(--accent-rgb),.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.45); }
.rail-btn.on::before { display: none; }
.rail hr { width: 22px; margin: 4px auto; border: 0; border-top: 1px solid rgba(255,255,255,.07); }
.rail-collapse svg { width: 14px; height: 14px; transition: transform .3s; }
body.rail-min .rail .rail-btn:not(.rail-collapse), body.rail-min .rail hr { display: none; }
body.rail-min .rail-collapse svg { transform: rotate(180deg); }

/* header */
.market-head { gap: 16px; margin: 4px 0 14px; flex-wrap: nowrap; }
.market-head h1 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.chain-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #7d766a; cursor: default; }
.chain-tag b { color: #e6dfd1; font-weight: 500; }
.display-btn { height: 30px; padding: 0 10px; gap: 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); background: rgba(10,9,7,.7); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #b9b1a2; }
.display-btn svg { width: 13px; height: 13px; }
.display-btn .n { min-width: 16px; height: 16px; border-radius: 3px; font-size: 10px; }

/* board */
.board { gap: 10px; height: calc(100vh - var(--top-h) - 82px); min-height: 460px; }
.col { border-radius: 4px; border: 1px solid rgba(var(--a-hi-rgb),.09); background: rgba(10,9,8,.72); box-shadow: none; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.col-head h3 { display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; font-weight: 500; color: #fff; white-space: nowrap; }
.col-head .count { margin: 0; font-family: var(--mono); font-size: 11px; color: #7d766a; }
.search-mini { height: 30px; flex: 1; min-width: 60px; border-radius: 4px; border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25); color: #7d766a; }
.search-mini input { font-size: 12.5px; }
.search-mini:focus-within { border-color: rgba(var(--accent-rgb),.4); }
.qb { height: 30px; padding: 0 3px 0 9px; gap: 2px; border-radius: 4px; border: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.25); }
.qb > svg { width: 11px; height: 11px; color: var(--mk-gold); margin-right: 4px; flex: none; }
.qb input { width: 30px; font-size: 12.5px; }
.qb .unit { font-size: 10px; color: #7d766a; margin-right: 6px; }
.qb .p { height: 22px; min-width: 24px; padding: 0 5px; border-radius: 3px; font-size: 10.5px; color: #7d766a; }
.qb .p.on { color: #fff; background: rgba(var(--accent-rgb),.1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.4); }
.filter-btn { width: 30px; height: 30px; min-width: 30px; padding: 0; justify-content: center; border-radius: 4px; border: 1px solid rgba(255,255,255,.06); background: none; color: #b9b1a2; }
.filter-btn svg { width: 12px; height: 12px; }
.filter-btn.on { color: var(--mk-gold); border-color: rgba(var(--accent-rgb),.45); }
.col-body { padding: 0; }

/* rows: tile, name and small grey stats on the left; numbers stacked on the right; then the buy button */
.coin-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 13px 14px; margin: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.045); border-radius: 0; background: none; }
.coin-row:hover, .coin-row.peeking { transform: none; background: rgba(var(--accent-rgb),.035); border-color: rgba(255,255,255,.045); box-shadow: inset 2px 0 0 var(--mk-gold); }
.coin-row .avatar { width: 44px; height: 44px; border-radius: 4px; font-size: 15px; }
.coin-row.compact { padding: 8px 14px; }
.coin-row.compact .avatar { width: 36px; height: 36px; font-size: 13px; }
.mk-body { min-width: 0; }
.coin-row .nm { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.coin-row .nm b { font-size: 15px; font-weight: 500; color: #fff; letter-spacing: -0.005em; }
.coin-row .nm .tk { font-size: 12.5px; color: #8f887b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-row .meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: #7d766a; white-space: nowrap; overflow: hidden; }
.coin-row .meta i { font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: #6a645a; }
.coin-row .meta .st { display: inline-flex; align-items: center; gap: 4px; }
.coin-row .meta svg { width: 11px; height: 11px; }
.mk-stats { text-align: right; font-family: var(--mono); white-space: nowrap; }
.mk-stats .mk-top { font-size: 13.5px; color: #fff; }
.mk-stats .mk-top i { font-style: normal; font-size: 9.5px; letter-spacing: .1em; color: #7d766a; margin-right: 3px; }
.mk-stats .mk-top b { font-weight: 500; }
.mk-stats .mk-sub { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 3px; font-size: 11px; color: #7d766a; }
.mk-stats .mk-sub i { font-style: normal; font-size: 9.5px; letter-spacing: .1em; }
.mk-stats .mk-sub svg { width: 11px; height: 11px; }
.mk-stats .countdown { color: var(--mk-gold); font-weight: 500; }
.mk-stats .warm .countdown, .mk-stats .warm.countdown { color: #f08a5d; }
.mk-stats .up { color: #4fd18b; }
.mk-stats .down { color: #f0605d; }
.mk-desc { font-size: 12px; color: #7d766a; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar { height: 2px; margin-top: 8px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; max-width: 260px; }
.mk-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--a-dark), var(--accent)); }
.mk-bar.up span { background: linear-gradient(90deg, #1f9d5c, #4fd18b); }
.mk-bar.down span { background: linear-gradient(90deg, #b8383a, #f0605d); }
/* quick buy: flat black with a thin gold border and gold text; the border and text brighten on hover */
.coin-row .qbuy { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(var(--accent-rgb),.55); font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--mk-gold); background: #050504; box-shadow: none; transition: border-color .2s ease, color .2s ease; }
.coin-row .qbuy svg { width: 11px; height: 11px; color: var(--mk-gold); transition: color .2s ease; }
.coin-row .qbuy small { font-size: 9.5px; letter-spacing: .08em; color: rgba(var(--accent-rgb),.7); font-weight: 600; transition: color .2s ease; }
.coin-row .qbuy:hover { border-color: var(--a-soft); color: var(--a-soft); }
.coin-row .qbuy:hover svg, .coin-row .qbuy:hover small { color: var(--a-soft); }
.coin-row .qbuy:active { background: #000; border-color: rgba(var(--accent-rgb),.8); }

/* verify: light text, no card */
.nudge { right: 26px; bottom: 22px; display: block; width: auto; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; text-align: left; }
.nudge:hover { transform: none; }
.nudge h4 { font-size: 24px; font-weight: 300; color: rgba(244,240,231,.82); letter-spacing: -0.02em; }
.nudge:hover h4 { color: var(--mk-gold); }
.nudge p { font-size: 13.5px; color: #a8a090; margin-top: 2px; white-space: nowrap; }

/* footer caption */
.preview-pill { left: 14px; bottom: 14px; padding: 0; border: 0; background: none; font-size: 10px; letter-spacing: .14em; color: #7d766a; }
.preview-pill::before { width: 5px; height: 5px; margin-right: 8px; background: var(--mk-gold); box-shadow: 0 0 6px var(--mk-gold); animation: none; }

/* identity verification: small pop-up that hands off to Persona, and the verified mark */
.modal.kyc-modal { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; max-height: none; padding: 0; overflow: visible; border: 0; border-radius: 0; background: #050504; }
.kyc-modal > .modal-x { display: none; }
.kyc-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: min(760px, calc(100vh - 56px)); border: 1px solid rgba(var(--accent-rgb),.28); }
.kyc-bar, .kyc-esc { position: absolute; left: 18px; right: 18px; z-index: 2; display: flex; align-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; color: #cfc6b4; pointer-events: none; }
.kyc-bar { top: -8px; }
.kyc-bar > *, .kyc-esc { background: #050504; padding: 0 8px; pointer-events: auto; }
.kyc-bar i { flex: 1; background: none; padding: 0; pointer-events: none; }
.kyc-bar span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.kyc-bar img { width: 13px; height: 13px; }
.kyc-bar button { font: inherit; letter-spacing: 0; color: #cfc6b4; background: #050504; border: 0; cursor: pointer; }
.kyc-bar button:hover { color: var(--accent); }
.kyc-esc { right: auto; top: auto; bottom: -8px; color: #7d766a; }

.kyc-left { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border-right: 1px solid rgba(var(--accent-rgb),.18);
  background: radial-gradient(60% 50% at 50% 45%, rgba(var(--accent-rgb),.07), transparent 70%); }
.kyc-stage { position: relative; display: grid; place-items: center; margin: 44px 40px 30px; perspective: 1100px; }
.kyc-stage .br { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(var(--accent-rgb),.5); }
.kyc-stage .tl { top: 6%; left: 2%; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 6px; }
.kyc-stage .tr { top: 6%; right: 2%; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 6px; }
.kyc-stage .bl { bottom: 6%; left: 2%; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 6px; }
.kyc-stage .br2 { bottom: 6%; right: 2%; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 6px; }

/* the sample Parity ID card */
.kyc-card { position: relative; width: min(430px, 92%); aspect-ratio: 1.586; padding: 16px 18px 14px; border-radius: 14px; overflow: hidden; rotate: -4deg; color: #f3e7cb;
  border: 1px solid rgba(var(--accent-rgb),.38); transition: transform .25s ease;
  background: repeating-radial-gradient(circle at 78% 30%, rgba(var(--accent-rgb),.05) 0 1px, transparent 1px 7px), linear-gradient(135deg, #1d160b 0%, #0c0a07 48%, #17110a 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 60px -20px rgba(var(--accent-rgb),.25), inset 0 1px 0 rgba(var(--a-hi-rgb),.18); animation: kycCardIn .9s cubic-bezier(.2,.8,.2,1) both; }
.kyc-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--px, 30%) var(--py, 20%), rgba(255,240,200,.13), transparent 60%); }
.kc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.kc-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .32em; color: #f6e7c2; }
.kc-brand img { width: 18px; height: 18px; }
.kc-kind { font-family: var(--mono); font-size: 6.5px; letter-spacing: .16em; color: #a8956a; text-align: right; }
.kc-kind b { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; letter-spacing: .22em; color: #f3e7cb; }
.kc-mid { position: relative; display: grid; grid-template-columns: 27% 1fr; gap: 16px; margin-top: 14px; }
.kc-photo { aspect-ratio: .8; border-radius: 4px; border: 1px solid rgba(var(--accent-rgb),.28); background: rgba(0,0,0,.45); overflow: hidden; }
.kyc-face { display: block; width: 100%; height: 100%; }
.kyc-face g { fill: var(--accent); }
.kc-fields { display: grid; gap: 6px; align-content: start; font-size: 12px; }
.kc-fields i { display: block; font-style: normal; font-family: var(--mono); font-size: 6.5px; letter-spacing: .16em; color: #9b8a63; }
.kc-fields b { font-weight: 500; letter-spacing: .03em; color: #f6ebd2; }
.kc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc-sig { display: block; width: 110px; height: 22px; color: #e9dcb6; }
.kc-ghost { position: absolute; right: 0; top: 4px; width: 44px; opacity: .3; }
.kc-holo { position: absolute; left: 21%; top: 52%; width: 40px; height: 40px; border-radius: 50%; opacity: .85; box-shadow: 0 0 18px rgba(var(--a-hi-rgb),.25);
  background: conic-gradient(from calc(var(--px, 50%) * 3.6deg), var(--a-hi), var(--accent), #8fd6c8, #c9a0f2, #f6c27a, #fff398);
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 70%); mask: radial-gradient(circle, #000 52%, transparent 70%); }
.kc-chip { position: absolute; right: 14%; bottom: 20%; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb),.3); background: radial-gradient(circle, rgba(var(--accent-rgb),.08), transparent 70%); }
.kc-micro { position: absolute; left: 18px; right: 18px; bottom: 9px; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 5.5px; letter-spacing: .24em; color: rgba(var(--accent-rgb),.45); }
.kc-scan { position: absolute; left: 0; right: 0; top: -20%; height: 18%; display: none; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(var(--a-hi-rgb),.22) 70%, rgba(var(--a-hi-rgb),.75) 98%, transparent); }
.kyc-modal[data-step="2"] .kc-scan { display: block; animation: kycScan 2.4s cubic-bezier(.45,0,.55,1) infinite; }
/* verified: the card flips once and lands as brushed gold-plated metal */
.kyc-modal[data-step="3"] .kyc-card { animation: kycFlip 1.1s cubic-bezier(.45,.05,.25,1) both; }
.kc-plate { position: absolute; inset: 0; z-index: 3; padding: 16px 18px 14px; border-radius: inherit; opacity: 0; pointer-events: none; color: #3a260c;
  background:
    repeating-linear-gradient(0deg, rgba(255,250,225,.07) 0 1px, transparent 1px 2px, rgba(90,55,10,.06) 2px 3px),
    linear-gradient(118deg, color-mix(in srgb, var(--accent) 64%, #000) 0%, color-mix(in srgb, var(--accent) 90%, #000) 18%, color-mix(in srgb, var(--accent) 74%, #fff) 34%, color-mix(in srgb, var(--accent) 36%, #fff) 44%, var(--accent) 56%, color-mix(in srgb, var(--accent) 82%, #000) 72%, color-mix(in srgb, var(--accent) 84%, #fff) 88%, color-mix(in srgb, var(--accent) 68%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255,250,220,.7), inset 0 -1px 0 rgba(90,55,10,.5), inset 0 0 0 1px rgba(120,80,20,.35); }
.kyc-modal[data-step="3"] .kc-plate { opacity: 1; animation: kycPlate 1.1s linear both; }
.kc-plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(240px circle at var(--px, 30%) var(--py, 20%), rgba(255,255,255,.75), transparent 65%), linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); }
/* engraved type: dark letters with a light lower lip, like text cut into metal */
.kc-plate .kc-brand, .kc-plate .kc-kind, .kc-plate .kc-kind b, .kc-plate .kc-fields i, .kc-plate .kc-fields b, .kc-plate .kc-micro { color: var(--a-engrave); text-shadow: 0 1px 0 rgba(255,246,210,.55), 0 -1px 0 rgba(90,55,10,.25); }
.kc-plate .kc-fields i, .kc-plate .kc-kind, .kc-plate .kc-micro { color: color-mix(in srgb, var(--a-engrave) 72%, transparent); }
.kp-logo { width: 18px; height: 18px; background: var(--a-engrave); -webkit-mask: var(--lm) center / contain no-repeat; mask: var(--lm) center / contain no-repeat; filter: drop-shadow(0 1px 0 rgba(255,246,210,.55)); }
.kc-plate .kc-photo { border-color: color-mix(in srgb, var(--a-engrave) 35%, transparent); background: color-mix(in srgb, var(--a-engrave) 10%, transparent); box-shadow: inset 0 1px 2px color-mix(in srgb, var(--a-engrave) 45%, transparent), 0 1px 0 rgba(255,246,210,.5); }
.kc-plate .kyc-face g { fill: var(--a-engrave); }
.kp-verified { position: absolute; right: 18px; bottom: 30px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .28em; color: var(--a-engrave); text-shadow: 0 1px 0 rgba(255,246,210,.6);
  box-shadow: inset 0 1px 2px color-mix(in srgb, var(--a-engrave) 50%, transparent), 0 1px 0 rgba(255,246,210,.6); border: 1px solid color-mix(in srgb, var(--a-engrave) 30%, transparent); }
.kp-verified .vcheck { width: 15px; height: 15px; color: var(--a-engrave); filter: drop-shadow(0 1px 0 rgba(255,246,210,.6)); }
.kp-verified .vcheck path:last-child { stroke: var(--accent); }
.kyc-modal[data-step="3"] .kyc-card { border-color: rgba(255,236,170,.75); box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 90px -14px rgba(var(--accent-rgb),.55), inset 0 1px 0 rgba(var(--a-hi-rgb),.25); }
.kyc-strip { padding: 14px 22px 22px; border-top: 1px solid rgba(var(--accent-rgb),.18); }
.kyc-strip pre { margin: 0; overflow: hidden; font-family: var(--mono); font-size: 10px; line-height: 1.25; letter-spacing: .12em; color: rgba(var(--accent-rgb),.42); }
.kyc-strip-cap { margin-top: 8px; text-align: right; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: #5f584d; }
.kyc-strip-cap b { font-weight: 400; transition: color .4s; }
.kyc-strip-cap b.on { color: var(--accent); }

/* right side */
.kyc-right { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 54px 52px 30px 54px; }
.kyc-right > * { animation: kycIn .5s ease both; }
.kyc-right > :nth-child(2) { animation-delay: .06s; } .kyc-right > :nth-child(3) { animation-delay: .12s; } .kyc-right > :nth-child(4) { animation-delay: .18s; } .kyc-right > :nth-child(5) { animation-delay: .24s; }
.kyc-h { font-family: "Neue Montreal", "Geist", sans-serif; font-size: 34px; font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.kyc-h span { display: block; color: var(--a-mute); }
.kyc-lead { margin: 18px 0 22px; font-size: 15px; line-height: 1.6; color: #b9b1a2; }
.kyc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.07); }
.kyc-list li { display: grid; grid-template-columns: 38px 1fr; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.kyc-list em { padding-top: 3px; font-style: normal; font-family: var(--mono); font-size: 10px; color: #6d655a; }
.kyc-list b { font-size: 15px; font-weight: 500; color: #fff; }
.kyc-list span { display: block; margin-top: 3px; font-size: 13px; color: #8f887b; }
.kyc-list li.done em { padding-top: 1px; }
.kyc-list li.done .vcheck { width: 16px; height: 16px; }
.kyc-list li.now b { color: var(--accent); }
.kyc-spin { display: block; width: 13px; height: 13px; margin-top: 2px; border-radius: 50%; border: 1.5px solid rgba(var(--accent-rgb),.25); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.kyc-note { margin: 20px 0 16px; font-size: 12.5px; line-height: 1.6; color: #7d766a; }
.kyc-consent { display: flex; gap: 12px; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: #b9b1a2; }
.kyc-consent input { position: absolute; opacity: 0; pointer-events: none; }
.kyc-consent .box { flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border: 1px solid rgba(var(--accent-rgb),.45); border-radius: 3px; transition: background .2s, border-color .2s; }
.kyc-consent .box .vcheck { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.kyc-consent input:checked + .box { border-color: var(--accent); background: rgba(var(--accent-rgb),.12); }
.kyc-consent input:checked + .box .vcheck { opacity: 1; transform: none; }
.kyc-consent input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.kyc-consent small { display: block; margin-top: 6px; font-size: 11.5px; color: #6d655a; }
.kyc-consent a { color: #cfc6b4; text-decoration: underline; text-underline-offset: 2px; }
.kyc-foot { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; margin-top: auto; padding-top: 24px; }
.kyc-dash { display: flex; gap: 6px; }
.kyc-dash i { width: 20px; height: 2px; background: rgba(255,255,255,.12); transition: background .3s; }
.kyc-dash i.on { background: var(--accent); }
.kyc-later { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #b9b1a2; }
.kyc-later:hover { color: var(--accent); }
.kyc-go { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 22px; border: 0; border-radius: 4px; cursor: pointer; background: var(--accent); color: #140d02; font-size: 14px; font-weight: 500; transition: filter .2s, opacity .2s; }
.kyc-go svg { width: 15px; height: 15px; }
.kyc-go:hover:not(:disabled) { filter: brightness(1.08); }
.kyc-go:disabled { opacity: .35; cursor: not-allowed; }
@keyframes kycIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes kycCardIn { from { opacity: 0; transform: translateY(24px) rotateX(18deg) scale(.94); } }
@keyframes kycScan { 0% { top: -20%; } 100% { top: 102%; } }
@keyframes kycFlip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg) scale(1.04); } 50.01% { transform: rotateY(-90deg) scale(1.04); } 100% { transform: rotateY(0); } }
@keyframes kycPlate { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
@media (max-width: 900px) {
  .kyc-frame { grid-template-columns: minmax(0, 1fr); height: auto; max-height: calc(100vh - 40px); overflow-y: auto; }
  .kyc-left { border-right: 0; border-bottom: 1px solid rgba(var(--accent-rgb),.18); }
  .kyc-stage { margin: 34px 20px 24px; }
  .kyc-strip, .kyc-esc { display: none; }
  .kyc-stage { margin-top: 40px; }
  .kyc-right { padding: 30px 24px 26px; overflow: visible; }
  .kyc-h { font-size: 27px; }
}
.vcheck { display: block; color: var(--accent); flex: none; }
.v-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 4px; border: 1px solid rgba(var(--accent-rgb),.35); background: rgba(var(--accent-rgb),.07); font-size: 12px; color: var(--accent); white-space: nowrap; }
.v-badge .vcheck { width: 14px; height: 14px; }
.acct-v { display: inline-grid; place-items: center; margin-left: -3px; }
.acct-v .vcheck { width: 14px; height: 14px; }

/* profile pics: Parity logo, X photo (mock) or a text face */
.me-face { --s: 24px; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 4px; overflow: hidden;
  background: #0d0c0a; border: 1px solid rgba(var(--accent-rgb), .35); color: var(--accent); font-family: var(--mono); font-size: calc(var(--s) * .3); letter-spacing: -0.04em; white-space: nowrap; }
.me-face.logo img { width: 72%; height: 72%; object-fit: contain; }
.me-face.xpic { position: relative; background: linear-gradient(145deg, #2a2a2a, #111); color: #f2f2f2; font-family: var(--font); font-weight: 600; font-size: calc(var(--s) * .44); border-color: rgba(255,255,255,.18); }
.me-face.xpic i { position: absolute; right: 1px; bottom: 0; font-style: normal; font-size: calc(var(--s) * .26); color: #fff; opacity: .8; }
.acct .me-face.face { margin: 0; background: #0d0c0a; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), .35); font-family: var(--mono); font-weight: 400; font-size: calc(var(--s) * .3); }
.acct .me-face.face.xpic { background: linear-gradient(145deg, #2a2a2a, #111); color: #f2f2f2; font-family: var(--font); font-weight: 600; font-size: calc(var(--s) * .44); }

/* account setup: the app hides and only the chosen background shows behind the panel */
body.onboarding .top, body.onboarding .rail, body.onboarding #app, body.onboarding #nudgeRoot, body.onboarding .preview-pill, body.onboarding .m-nav, body.onboarding #drawerRoot { visibility: hidden; }
.ob-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.1)); animation: fade .4s ease; }
.ob { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 8px; border: 1px solid rgba(var(--a-hi-rgb), .1);
  background: linear-gradient(180deg, rgba(34,31,27,.72), rgba(18,17,15,.8)); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.06); animation: obIn .55s cubic-bezier(.2,.8,.2,1) both; }
.ob-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 16px 0; }
.ob-prog i { height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); transition: background .4s; }
.ob-prog i.on { background: rgba(255,255,255,.75); }
.ob-head { position: relative; display: grid; place-items: center; padding: 14px 16px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.ob-head img { position: absolute; left: 16px; width: 18px; height: 18px; opacity: .9; }
.ob-head h2 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: #fff; }
.ob-body { padding: 18px 22px 22px; }
.ob-body > * { animation: kycIn .4s ease both; }
.ob-lead { font-size: 13.5px; line-height: 1.5; color: #b9b1a2; }
.ob-name { display: flex; align-items: center; gap: 4px; height: 46px; margin-top: 16px; padding: 0 14px; border-radius: 6px; cursor: text;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.35); box-shadow: inset 0 1px 3px rgba(0,0,0,.5); transition: border-color .2s, box-shadow .2s; }
.ob-name:focus-within { border-color: rgba(var(--accent-rgb), .55); box-shadow: inset 0 1px 3px rgba(0,0,0,.5), 0 0 0 3px rgba(var(--accent-rgb), .12); }
.ob-name.bad { border-color: rgba(240,96,93,.55); }
.ob-name span { color: #7d766a; font-size: 14.5px; }
.ob-name input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font-size: 14.5px; }
.ob-name input::placeholder { color: #5f584d; }
.ob-name em { font-style: normal; font-family: var(--mono); font-size: 11px; color: #6d655a; }
.ob-hint { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #7d766a; min-height: 36px; }
.ob-hint.bad { color: #f0807d; }
.ob-hint.ok { color: #9fd9b3; }
.ob-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ob-btn { height: 44px; border-radius: 6px; font-size: 14px; font-weight: 500; color: #e9e2d4; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); cursor: pointer; transition: background .2s, filter .2s, opacity .2s; }
.ob-btn:hover { background: rgba(255,255,255,.1); }
.ob-btn.go { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.ob-btn.go:hover:not(:disabled) { filter: brightness(1.08); }
.ob-btn:disabled { opacity: .4; cursor: not-allowed; }
.ob-you { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #8f887b; }
.ob-you b { color: #fff; font-weight: 500; }
.ob-label { display: flex; justify-content: space-between; margin: 16px 0 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6d655a; }
.ob-label span { letter-spacing: 0; text-transform: none; font-family: var(--font); font-size: 12.5px; color: #cfc6b4; }
.ob-pics { border: 1px solid rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.25); }
.ob-x { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: none; text-align: left; cursor: pointer; color: #fff; transition: background .2s; }
.ob-x:hover { background: rgba(255,255,255,.04); }
.ob-x.on { background: rgba(var(--accent-rgb), .08); }
.ob-xi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.ob-x > span:nth-child(2) { flex: 1; }
.ob-x b { display: block; font-size: 13.5px; font-weight: 500; }
.ob-x small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #6d655a; }
.ob-x svg { width: 14px; height: 14px; color: #6d655a; }
.ob-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 10px; }
.ob-grid button { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border-radius: 6px; cursor: pointer; color: var(--accent);
  border: 1px solid rgba(255,255,255,.07); background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), .05), transparent 70%), #0c0b09;
  transition: border-color .2s, box-shadow .25s, transform .2s, background .2s; }
.ob-grid button .px-ic, .ob-grid button img { width: 58%; height: 58%; display: block; object-fit: contain; opacity: .62; transition: opacity .2s, transform .25s, filter .25s; }
.ob-grid button .px-ic { fill: currentColor; }
.ob-grid button:hover { border-color: rgba(var(--accent-rgb), .3); transform: translateY(-2px); }
.ob-grid button:hover .px-ic, .ob-grid button:hover img { opacity: .9; }
.ob-grid button.on { border-color: var(--accent); background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), .16), transparent 70%), #0c0b09;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 18px -2px rgba(var(--accent-rgb), .45); }
.ob-grid button.on .px-ic, .ob-grid button.on img { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .6)); }
.me-face.px .px-ic { width: 70%; height: 70%; fill: var(--accent); }
.me-face.px img { width: 72%; height: 72%; object-fit: contain; }.ob-bgs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 6px; }
.ob-bgs button { display: grid; gap: 5px; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer; font-size: 11px; color: #7d766a; transition: color .2s; }
.ob-bgs .th { position: relative; display: block; width: 100%; aspect-ratio: 1.3; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #070706; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ob-bgs .th canvas { display: block; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; }
.ob-bgs .th i { position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), rgba(255,255,255,.18) 50%, transparent calc(50% + .5px)); }
.th-swirl, .th-dust { position: absolute; inset: 0; }
.th-swirl { inset: -30% -10% -30% -40%; background: var(--accent); opacity: .75; -webkit-mask: var(--lm) center / contain no-repeat; mask: var(--lm) center / contain no-repeat; }
.th-swirl::after { content: ""; }
.ob-bgs .th:has(.th-swirl)::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent .9px, #070706 1.5px) 0 0 / 3.5px 3.5px; }
.th-dust { background: radial-gradient(circle, rgba(var(--accent-rgb), .8) .7px, transparent 1.3px) 0 0 / 11px 9px, radial-gradient(circle, rgba(var(--accent-rgb), .45) .6px, transparent 1.2px) 5px 4px / 17px 13px; }
.ob-bgs button:hover { color: #cfc6b4; }
.ob-bgs button:hover .th { transform: translateY(-2px); }
.ob-bgs button.on { color: #fff; }
.ob-bgs button.on .th { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25); }
.ob-accents { display: flex; flex-wrap: wrap; gap: 9px; }
.ob-accents button { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 -2px 4px rgba(0,0,0,.3); transition: transform .2s, box-shadow .2s; }
.ob-accents button:hover { transform: scale(1.1); }
.ob-accents button.on { box-shadow: 0 0 0 2px #0f0e0c, 0 0 0 3.5px var(--c); }
.ob-hexrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12px; color: #6d655a; }
.ob-hex { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 5px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.35); font-family: var(--mono); font-size: 12.5px; color: #7d766a; }
.ob-hex.bad { border-color: rgba(240,96,93,.5); }
.ob-hex:focus-within { border-color: rgba(var(--accent-rgb), .55); }
.ob-hex input[type=color] { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; }
.ob-hex input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.ob-hex input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.ob-hex input:not([type]) { width: 64px; border: 0; outline: 0; background: none; font: inherit; color: #fff; text-transform: uppercase; }
@keyframes obIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 480px) { .ob-grid { grid-template-columns: repeat(6, 1fr); } .ob-bgs { grid-template-columns: repeat(3, 1fr); } }
/* ==========================================================================
   Responsive
   ========================================================================== */
.m-nav { display: none; }
@media (max-width: 1440px) {
  .qb .unit { display: none; }
  .mk-stats .mk-top i, .mk-stats .mk-sub i { display: none; }
  .coin-row { gap: 10px; padding: 12px 10px; }
  .coin-row .qbuy small { display: none; }
}
@media (max-width: 1180px) {
  .col-head .search-mini { display: none; }
}
@media (max-width: 960px) {
  .top { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .board { grid-template-columns: repeat(3, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .rail { display: none; }
  main#app { padding: calc(var(--top-h) + 12px) 12px 90px; }
  .tool { display: none; }
  .acct span.h { display: none; }
  .burn-hero, .podium, .form-grid, .faq-layout, .tiers3, .stat-line, .topic-grid { grid-template-columns: 1fr; }
  .sale-meter { grid-template-columns: 1fr 1fr; }
  .drawer, .drawer.left { left: 8px; right: 8px; width: auto; }
  .nudge { display: none; }
  .gate { padding: 76px 20px 40px; place-items: start center; }
  .gm-hand { opacity: .35; }
  .gm-rays { width: 700px; opacity: .6; }
  .gm-center::before { inset: -28px -14px -24px; }
  .gm-top { left: 20px; right: 20px; top: 22px; }
  .gm-foot { display: none; }
  .gm-title { font-size: 27px; }
  .faq-nav { display: none; }
  .claim-big { font-size: 56px; }
  .m-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(7,7,10,.95); border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); backdrop-filter: blur(12px); }
  .m-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); }
  .m-nav a.active { color: var(--accent); }
  .m-nav b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
  .preview-pill { bottom: 74px; left: 16px; }
  .board { height: calc(100vh - var(--top-h) - 170px); }
  .launch-btn kbd { display: none; }
}
/* Motion off: JS sets html.rm only when the visitor switches Motion off in Theme → Interface */
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
