/* Diamond SZN. A high-jewellery house after Alex Moss: white-gold micro-pavé,
   rubies, emeralds and canary diamonds set in thorns, skulls and crowns, shown
   on black Nero Marquina marble in an emerald-fluted boutique. The pavé
   patterns are SVG tiles set as --pave-* by setJewels() in lib.js; the stills
   and films in ../media come from video/ (Higgsfield). */
:root {
  --void: #040505; --onyx: rgba(9, 10, 11, 0.88); --obsidian: #111315; --slate: #1a1d20; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f6f8; --muted: #959ba5; --dim: #5f6570;
  --ice: #e2f3ff; --ruby: #ff2d78; --ruby-deep: #9e0b44; --emerald: #1fd18a; --emerald-deep: #0a5e40; --canary: #ffd23f; --sell: #ff4258;
  /* The old names, pointed at the new stones. */
  --pink: var(--ruby); --pink-deep: var(--ruby-deep); --mint: var(--emerald); --gold: var(--canary);
  --chrome: linear-gradient(180deg, #ffffff 0%, #e2e5ec 16%, #8d929e 36%, #3d4049 47%, #f6f7fa 53%, #aeb3bf 72%, #eef0f4 88%, #70747f 100%);
  --chrome-x: linear-gradient(100deg, #6b6f7a 0%, #f4f5f8 18%, #9ba0ac 34%, #ffffff 50%, #8d929e 66%, #e8eaef 82%, #5d616b 100%);
  --wg-line: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(140, 146, 158, 0.25) 30%, rgba(255, 255, 255, 0.08) 55%, rgba(200, 205, 214, 0.4) 85%, rgba(255, 255, 255, 0.6));
  /* Milgrain: a line of tiny beads along an edge. */
  --milgrain: radial-gradient(circle at 50% 50%, #f4f6f9 0 0.8px, #8b909a 1.2px, transparent 1.5px) 0 50% / 4px 4px repeat-x;
  --pave-white: radial-gradient(circle, #fff 0 1px, #9fb0c4 2px, #333 3px); --pave-ruby: var(--pave-white); --pave-emerald: var(--pave-white); --pave-canary: var(--pave-white); --pave-black: var(--pave-white);
  --pave: var(--pave-white);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1100px 600px at 85% -5%, rgba(31, 209, 138, 0.09), transparent 60%), radial-gradient(900px 520px at -10% 20%, rgba(255, 45, 120, 0.06), transparent 60%), linear-gradient(rgba(4, 5, 5, 0.8), rgba(4, 5, 5, 0.9)), url("../media/marble-black.webp") center / cover, var(--void);
  background-attachment: fixed;
  color: var(--ink); font: 15px/1.5 var(--body); font-variant-numeric: tabular-nums; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
::selection { background: var(--ruby); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ------------------------------ the starfield ------------------------------ */
#glints { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#glints .spark { position: absolute; fill: #fff; opacity: 0; animation: twinkle 4.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(226, 243, 255, 0.9)); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45% { opacity: 0.85; transform: scale(1) rotate(45deg); } 55% { opacity: 0.9; transform: scale(1.05) rotate(50deg); } }
@media (prefers-reduced-motion: reduce) { #glints, .ticker .track, .shine::after, .fire-sweep::after { animation: none !important; display: none; } }

/* --------------------------------- type ----------------------------------- */
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 18px rgba(207, 239, 255, 0.12)); }
.chrome-pink, .chrome-ruby { background: linear-gradient(180deg, #fff 0%, #ffd3e3 20%, #ff3d82 46%, #7a0530 52%, #ff5c96 74%, #ffe0ec 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(255, 45, 120, 0.25)); }
.chrome-emerald { background: linear-gradient(180deg, #fff 0%, #d2ffeb 20%, #25d690 46%, #04412b 52%, #3fe3a2 74%, #e2fff2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(31, 209, 138, 0.25)); }
.chrome-canary { background: linear-gradient(180deg, #fff 0%, #fff6c8 20%, #ffd23f 46%, #6b4c00 52%, #ffe17a 74%, #fffbe6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(255, 210, 63, 0.25)); }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
.eyebrow { font: 400 11px/1.2 var(--display); letter-spacing: 0.34em; text-transform: uppercase; color: #c4c9d2; }
.muted { color: var(--muted); }
.up { color: var(--emerald); } .down { color: var(--sell); }
.sym { font-weight: 700; color: var(--ice); letter-spacing: 0.02em; }

/* --------------------------------- frame ---------------------------------- */
.shell { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 16px 64px; }
header.top { position: sticky; top: 0; z-index: 30; margin: 0 -16px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, rgba(4, 5, 5, 0.97), rgba(4, 5, 5, 0.84)); backdrop-filter: blur(14px); }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 4px; background: var(--milgrain); opacity: 0.55; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand .monogram { filter: drop-shadow(0 0 12px rgba(226, 243, 255, 0.28)); transition: transform 0.3s; }
.brand:hover .monogram { transform: rotate(-6deg) scale(1.06); }
.brand .envbadge { font: 600 10px/1 Unbounded, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--canary); border: 1px solid color-mix(in srgb, var(--canary) 55%, transparent); border-radius: 999px; padding: 5px 8px 4px; }
.wordmark { display: grid; line-height: 0.92; }
.wordmark b { font: 900 19px var(--display); letter-spacing: 0.02em; }
.wordmark small { font: 400 9px var(--display); letter-spacing: 0.5em; color: #c4c9d2; }
.wordmark small i { font-style: normal; color: var(--emerald); font-weight: 900; }
nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a { font: 500 11px var(--display); letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); background: linear-gradient(rgba(10, 12, 13, 0.9), rgba(10, 12, 13, 0.9)) padding-box, var(--wg-line) border-box; border: 1px solid transparent; }
.search { flex: 1; min-width: 0; max-width: 360px; margin-left: auto; position: relative; }
.search input { width: 100%; background: var(--onyx); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 36px; outline: none; }
.search input:focus { border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(207, 239, 255, 0.06); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; fill: var(--muted); }
.search .results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--onyx); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; display: none; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.search.open .results { display: grid; }
.search .results a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.search .results a:hover, .search .results a.sel { background: var(--slate); }
.search .results .coinpic { width: 30px; height: 30px; border-radius: 9px; }
@media (max-width: 900px) { nav.main { display: none; } .wordmark { display: none; } }
@media (max-width: 560px) { .search { display: none; } .top .btn.wallet .lbl { display: none; } }

/* -------------------------------- buttons --------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 13px var(--body); letter-spacing: 0.01em; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--obsidian); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.btn:hover { border-color: rgba(255, 255, 255, 0.32); background: var(--slate); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn.block { width: 100%; }
/* The chrome pill: polished metal, a glint that runs across it. */
.btn.chrome-btn { background: var(--chrome-x); background-size: 200% 100%; color: #0a0a0d; border: 0; font: 900 13px var(--display); letter-spacing: 0.08em; text-transform: uppercase; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, 0.4), 0 6px 24px rgba(207, 239, 255, 0.18); }
.btn.chrome-btn:hover { background-position: 100% 0; transition: background-position 0.6s; }
.btn.pink { background: linear-gradient(180deg, #ff9cc0, #ff3d82 42%, #a50b47 54%, #ff2d78 78%, #ff7aa9); color: #fff; border: 0; font: 900 13px var(--display); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(80, 0, 30, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(60, 0, 20, 0.5), 0 0 0 1px rgba(255, 210, 225, 0.25), 0 10px 30px rgba(255, 45, 120, 0.35); }
.btn.pink:hover { filter: brightness(1.08); }
.btn.mint { background: linear-gradient(180deg, #a8ffd8, #25d690 42%, #08744a 54%, #1fd18a 78%, #6ff0bb); color: #00160d; border: 0; font: 900 13px var(--display); letter-spacing: 0.06em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 26px rgba(31, 209, 138, 0.3); }
.btn.ruby { background: linear-gradient(180deg, #ff9aa6, #ff4258 45%, #9b0a1f 55%, #ff4258); color: #fff; border: 0; font: 900 13px var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
/* The launch button: chrome, set in a pavé bezel, spiked. */
.launch-btn { position: relative; padding: 4px; border-radius: 999px; background: var(--pave-white) 0 0 / 13.5px 7.8px, var(--chrome); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 30px rgba(255, 45, 120, 0.25), 0 0 26px rgba(226, 243, 255, 0.12); flex: none; }
.launch-btn .btn { padding: 11px 20px 11px 16px; }
.launch-btn::before, .launch-btn::after { content: ""; position: absolute; top: 50%; width: 10px; height: 14px; background: var(--chrome); transform: translateY(-50%); }
.launch-btn::before { left: -8px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.launch-btn::after { right: -8px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.85) 48%, transparent 62%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* --------------------------------- surfaces -------------------------------- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%) padding-box, linear-gradient(var(--onyx), var(--onyx)) padding-box, var(--wg-line) border-box; border: 1px solid transparent; border-radius: var(--radius); backdrop-filter: blur(6px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.pad { padding: 18px; }
/* A pavé-set bezel around anything: a ring of tiny stones in polished chrome. */
.pave { position: relative; padding: 10px; border-radius: calc(var(--radius) + 10px); background: var(--pave-white) 0 0 / 13.5px 7.8px, #5d626b; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.6), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 44px rgba(226, 243, 255, 0.08); }
/* Polished rails either side of the stones, beaded where they meet. */
.pave::before { content: ""; position: absolute; inset: 8px; border-radius: calc(var(--radius) + 2px); box-shadow: inset 0 0 0 1.5px rgba(240, 243, 248, 0.85), inset 0 0 0 2.5px rgba(0, 0, 0, 0.7); pointer-events: none; z-index: 1; }
.pave.pink, .pave.ruby { background: var(--pave-ruby) 0 0 / 13.5px 7.8px, #5d626b; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 44px rgba(255, 45, 120, 0.16); }
.pave.emerald { background: var(--pave-emerald) 0 0 / 13.5px 7.8px, #5d626b; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 44px rgba(31, 209, 138, 0.16); }
.pave.black { background: var(--pave-black) 0 0 / 13.5px 7.8px, #3a3e45; }
.pave.gold, .pave.canary { background: var(--pave-canary) 0 0 / 13.5px 7.8px, #8a7a4f; box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 250, 220, 0.6), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 210, 63, 0.2); }
.pave > .inner { position: relative; border-radius: var(--radius); overflow: hidden; background: #08090a; height: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9); }
/* A studded belt: pyramid studs in a row. */
.studs { height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14'%3E%3Cpath d='M4 0h10l-5 7z' fill='%23f7f8fb'/%3E%3Cpath d='M14 0v14l-5-7z' fill='%2370747f'/%3E%3Cpath d='M4 14h10l-5-7z' fill='%2320222a'/%3E%3Cpath d='M4 0v14l5-7z' fill='%23b8bdc8'/%3E%3C/svg%3E") 0 0 / 22px 14px repeat-x; opacity: 0.9; }
.spikes { height: 12px; background: var(--chrome); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 12L7 0l7 12z'/%3E%3C/svg%3E") 0 0 / 14px 12px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='12'%3E%3Cpath d='M0 12L7 0l7 12z'/%3E%3C/svg%3E") 0 0 / 14px 12px repeat-x; opacity: 0.85; }
.spikes.down { transform: scaleY(-1); }
/* A tennis line: round brilliants in collets, between two polished wires. */
.tennis { height: 11px; background: radial-gradient(circle at 50% 50%, #fff 0 0.8px, #eaf5ff 1.5px, #8ea0b5 2.6px, #1e232b 3.2px, #d9dde4 3.5px, #6b7079 3.9px, transparent 4.2px) 0 50% / 9px 11px repeat-x, linear-gradient(transparent 1px, rgba(220, 224, 231, 0.55) 1px 2px, transparent 2px calc(100% - 2px), rgba(220, 224, 231, 0.55) calc(100% - 2px) calc(100% - 1px), transparent calc(100% - 1px)); }
/* Emerald fluting, as on the boutique walls. */
.fluted { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%, rgba(0, 0, 0, 0.35)), repeating-linear-gradient(90deg, #06291c 0, #0f5a3f 2px, #1a8a60 4px, #0e5239 6px, #05231a 8px); }
.milgrain { height: 4px; background: var(--milgrain); }
.sec-head { display: flex; align-items: center; gap: 14px; margin: 34px 0 14px; }
.sec-head h2 { font-size: clamp(18px, 2.4vw, 24px); text-transform: uppercase; letter-spacing: 0.04em; }
.sec-head .rule { flex: 1; min-width: 20px; }
.sec-head .rule.spikes { height: 11px; background: radial-gradient(circle at 50% 50%, #fff 0 0.8px, #eaf5ff 1.5px, #8ea0b5 2.6px, #1e232b 3.2px, #d9dde4 3.5px, #6b7079 3.9px, transparent 4.2px) 0 50% / 9px 11px repeat-x; -webkit-mask: linear-gradient(90deg, #000 60%, transparent); mask: linear-gradient(90deg, #000 60%, transparent); opacity: 1; }
.sec-head .xcross { width: 18px; fill: #e9edf3; filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 10px rgba(31, 209, 138, 0.7)); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--body); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.chip .c { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.status { font: 800 10px var(--display); letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.batch { color: var(--ruby); background: rgba(255, 45, 120, 0.13); }
.status.batch::before { animation: pulse 1.4s infinite; }
.status.settling { color: var(--canary); background: rgba(255, 210, 63, 0.12); }
.status.curve { color: var(--ice); background: rgba(226, 243, 255, 0.10); }
.status.graduated { color: var(--emerald); background: rgba(31, 209, 138, 0.12); }
@keyframes pulse { 50% { opacity: 0.3; } }
.coinpic { display: inline-grid; place-items: center; overflow: hidden; background: var(--slate); flex: none; }
.coinpic img, .coinpic svg { width: 100%; height: 100%; object-fit: cover; }
.gem { display: block; flex: none; }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.skeleton { background: linear-gradient(90deg, var(--obsidian), var(--slate), var(--obsidian)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

/* --------------------------------- ticker ---------------------------------- */
.ticker { position: relative; margin: 14px 0 0; overflow: hidden; border-radius: 12px; background: linear-gradient(rgba(6, 7, 8, 0.92), rgba(6, 7, 8, 0.92)) padding-box, var(--wg-line) border-box; border: 1px solid transparent; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--void), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--void), transparent); }
.ticker .label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%, rgba(0, 0, 0, 0.35)), repeating-linear-gradient(90deg, #06291c 0, #0f5a3f 2px, #1a8a60 4px, #0e5239 6px, #05231a 8px); box-shadow: 14px 0 18px 4px #050606; font: 900 11px var(--display); letter-spacing: 0.18em; text-shadow: 0 1px 2px #000; color: #fff; }
.ticker .label > * { position: relative; }
.ticker .label .chrome { background: none; color: #fff; filter: none; }
.ticker .label::before { content: ""; position: absolute; inset: 7px 8px; border-radius: 8px; background: rgba(3, 14, 10, 0.72); box-shadow: 0 0 0 1px rgba(210, 255, 235, 0.25); }
.ticker .label .fire { color: var(--ruby); filter: drop-shadow(0 0 6px var(--ruby)); }
.ticker .track { display: flex; gap: 0; width: max-content; animation: roll 50s linear infinite; padding-left: 130px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.ticker .item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-right: 1px solid var(--line); font-weight: 700; font-size: 13px; white-space: nowrap; }
.ticker .item .coinpic { width: 20px; height: 20px; border-radius: 6px; }
.ticker .item .rk { font: 900 10px var(--display); color: var(--dim); }
.ticker .item:hover .sym { color: #fff; text-shadow: 0 0 10px var(--ice); }

/* -------------------------------- top 10 ---------------------------------- */
.top10 { position: relative; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .slot { scroll-snap-align: start; position: relative; }
.rankcard { display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); height: 100%; transition: transform 0.2s; }
.rankcard:hover { transform: translateY(-4px) rotate(-0.4deg); }
.rankcard .art { position: relative; aspect-ratio: 16 / 10; background: var(--slate); overflow: hidden; }
.rankcard .art .coinpic { width: 100%; height: 100%; }
.rankcard .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 5, 7, 0.92)); }
.rankcard .rank { position: absolute; left: 14px; bottom: 6px; z-index: 2; font: 900 64px/1 var(--display); letter-spacing: -0.05em; }
.rankcard .rank small { font-size: 26px; vertical-align: top; margin-right: 2px; }
.rankcard .tl { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: start; }
.rankcard .crown { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff6c8, 0 0 0 3px #000, 0 6px 22px rgba(255, 210, 63, 0.55); }
.rankcard .body { padding: 14px 16px 16px; display: grid; gap: 10px; min-width: 0; }
.rankcard .row > * { min-width: 0; }
.rankcard .body { grid-template-columns: minmax(0, 1fr); }
.rankcard .body > svg { width: 100%; height: 48px; }
.rankcard .row .big { font-size: clamp(17px, 1.6vw, 22px); }
.rankcard .name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rankcard .name h3 { min-width: 0; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rankcard .big { font: 900 22px var(--display); }
.rankcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.rankcard .spark-line { height: 48px; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.carousel-nav button { width: 38px; height: 38px; border-radius: 50%; padding: 0; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--slate); border: 1px solid var(--line-2); cursor: pointer; transition: background 0.2s; }
.dots i.on { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

/* ---------------------------------- home ----------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 30px; }
.hero h1 { font-size: clamp(34px, 6.4vw, 78px); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.92; }
.hero p { margin: 14px 0 0; color: var(--muted); max-width: 56ch; font-size: 16px; }
.hero .stats { display: flex; gap: 26px; flex-wrap: wrap; }
.hero .stat b { display: block; font: 900 24px var(--display); }
.hero .stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
@media (max-width: 1080px) { .split { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: 600 11px var(--display); letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 7, 8, 0.7); color: var(--muted); cursor: pointer; }
.tabs button.on { color: #0a0a0d; background: var(--chrome-x); border-color: transparent; }
.tabs button .n { opacity: 0.6; margin-left: 4px; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 14px; }
.tile { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%) padding-box, linear-gradient(var(--onyx), var(--onyx)) padding-box, var(--wg-line) border-box; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s; position: relative; min-width: 0; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(31, 209, 138, 0.35), 0 0 30px rgba(31, 209, 138, 0.12); }
.tile .coinpic { width: 92px; height: 92px; border-radius: 12px; box-shadow: 0 0 0 1px #000, 0 0 0 2.5px #c9ced6, 0 0 0 3.5px #000; }
.tile .b { display: grid; gap: 4px; align-content: start; min-width: 0; }
.tile h3 { min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .by { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.tile .desc { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.tile .kv { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; min-width: 0; }
.tile .kv > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .kv > .status { flex: none; }
.tile .kv b { font-weight: 800; }
.tile .new { position: absolute; top: -8px; right: 12px; font: 900 9px var(--display); letter-spacing: 0.16em; padding: 3px 9px; border-radius: 999px; background: linear-gradient(180deg, #ff9cc0, #ff2d78 50%, #a50b47); color: #fff; box-shadow: 0 0 0 1px #ffd3e3, 0 0 16px var(--ruby); }
/* A meter set with stones: the fill is pavé. */
.meter { height: 9px; border-radius: 999px; background: #08080b; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--pave-white) 0 0 / 13.5px 7.8px; box-shadow: 0 0 12px rgba(226, 243, 255, 0.5); transition: width 0.6s; }
.meter.big { height: 16px; }
.meter.big i { background: var(--pave-white) 0 0 / 18px 10.4px; }
.meter.ruby i { background-image: var(--pave-ruby); } .meter.emerald i { background-image: var(--pave-emerald); }

/* --------------------------------- activity -------------------------------- */
.live { position: sticky; top: 84px; }
.live .head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%, rgba(0, 0, 0, 0.4)), repeating-linear-gradient(90deg, #06291c 0, #0f5a3f 2px, #1a8a60 4px, #0e5239 6px, #05231a 8px); text-shadow: 0 1px 2px #000; position: relative; }
.live .head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--milgrain); }
.live .head .muted { color: #cfe9dc; }
.live .head h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; display: flex; gap: 8px; align-items: center; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 10px var(--ruby); animation: pulse 1.2s infinite; }
.acts { max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--slate) transparent; }
.act { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.act:last-child { border-bottom: 0; }
.act.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { 0% { background: rgba(31, 209, 138, 0.16); box-shadow: inset 3px 0 0 var(--emerald); } 100% { background: transparent; } }
.act .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act .what a:hover { text-decoration: underline; }
.act .amt { text-align: right; font-weight: 800; font-size: 12px; }
.act .amt small { display: block; color: var(--dim); font-weight: 600; font-size: 11px; }
.verb { font-weight: 800; }
.verb.buy, .verb.deposit, .verb.collect { color: var(--emerald); } .verb.sell { color: var(--sell); } .verb.create { color: var(--ruby); } .verb.settle, .verb.graduate { color: var(--canary); }
.tokpill { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; vertical-align: middle; }
.tokpill .coinpic { width: 18px; height: 18px; border-radius: 5px; }

/* --------------------------------- token ---------------------------------- */
.thead { display: grid; grid-template-columns: 164px minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 26px; }
.thead .pave { width: 164px; height: 164px; }
.thead .pave .coinpic { width: 100%; height: 100%; }
.thead h1 { font-size: clamp(28px, 4.6vw, 52px); }
.thead .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.thead .desc { color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
.thead .links { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; overflow: hidden; margin-top: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.statrow > div { background: rgba(8, 9, 10, 0.9); padding: 14px 16px; }
.statrow > div > span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.statrow b { font: 800 19px var(--display); display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .thead { grid-template-columns: 96px minmax(0, 1fr); } .thead .pave { width: 96px; height: 96px; } .thead .cta { grid-column: 1 / -1; } }
.tgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; margin-top: 22px; align-items: start; }
@media (max-width: 1080px) { .tgrid { grid-template-columns: 1fr; } }
.tgrid > div { display: grid; gap: 22px; min-width: 0; }
.widget .wh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.widget .wh h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.widget .wb { padding: 18px; display: grid; gap: 16px; }
.widget .wb > * { min-width: 0; }
.curvebox { position: relative; }
.curvebox svg { width: 100%; height: auto; display: block; overflow: visible; }
.curvebox .tip { position: absolute; pointer-events: none; background: rgba(12, 12, 17, 0.95); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); display: none; }
.curvebox:hover .tip { display: block; }
.kvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.kvs > div > span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.kvs > div > b { font: 800 16px var(--display); }
.countdown { font: 900 clamp(30px, 5vw, 46px)/1 var(--display); letter-spacing: 0.02em; }
.chainbars { display: grid; gap: 10px; }
.chainbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 100px; gap: 10px; align-items: center; font-size: 13px; }
.chainbar .bar { height: 10px; border-radius: 999px; background: #08080b; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.chainbar .bar i { display: block; height: 100%; border-radius: 999px; }
.chainbar b { text-align: right; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps div { text-align: center; padding: 8px 4px; border-radius: 10px; font: 800 10px var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); background: var(--obsidian); border: 1px solid var(--line); }
.steps div.done { color: var(--ice); border-color: rgba(207, 239, 255, 0.3); }
.steps div.on { color: #0a0a0d; background: var(--chrome-x); border-color: transparent; }

/* ---------------------------------- trade ---------------------------------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #08080b; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 999px; font: 900 12px var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.seg button.on.b { background: linear-gradient(180deg, #a8ffd8, #1fd18a); color: #00160d; }
.seg button.on.s { background: linear-gradient(180deg, #ff9aa6, #ff4258); color: #fff; }
.field { background: #08080b; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; transition: border-color 0.15s; }
.field:focus-within { border-color: rgba(207, 239, 255, 0.4); }
.field .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.field .top button { background: none; border: 0; color: var(--ice); font-weight: 700; cursor: pointer; padding: 0; }
.field .row { display: flex; align-items: center; gap: 10px; }
.field input { flex: 1; min-width: 0; width: 100%; background: transparent; border: 0; outline: none; font: 800 26px var(--display); padding: 0; }
.field input::placeholder { color: var(--dim); }
.field .asset { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 999px; background: var(--slate); font-weight: 800; flex: none; }
.field .asset .coinpic { width: 24px; height: 24px; border-radius: 50%; }
.field .asset .usd { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #d2ffeb, #1fd18a); color: #00160d; font: 900 12px var(--display); }
.flip { justify-self: center; width: 38px; height: 38px; margin: -12px 0; z-index: 2; border-radius: 12px; border: 3px solid var(--onyx); background: var(--slate); cursor: pointer; display: grid; place-items: center; color: var(--ice); font-size: 16px; transition: transform 0.25s; }
.flip:hover { transform: rotate(180deg); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { flex: 1; border: 1px solid var(--line); background: var(--obsidian); border-radius: 10px; padding: 6px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--muted); }
.quick button:hover { color: var(--ink); border-color: var(--line-2); }
.lines { display: grid; gap: 6px; font-size: 13px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; }
.lines span { color: var(--muted); }
.select { background: #08080b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.note { font-size: 12px; color: var(--muted); margin: 0; }
.warn { font-size: 12px; color: var(--gold); margin: 0; }

/* ----------------------------------- chat ---------------------------------- */
.chat .msgs { height: 360px; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--slate) transparent; }
.msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
.msg .who { font-size: 12px; font-weight: 800; display: flex; gap: 6px; align-items: baseline; }
.msg .who .t { color: var(--dim); font-weight: 600; font-size: 11px; }
.msg .who .tag { font: 900 8px var(--display); letter-spacing: 0.12em; padding: 2px 5px; border-radius: 4px; background: var(--pink); color: #12000b; }
.msg p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.msg.mine .who a { color: var(--ice); }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat input { flex: 1; min-width: 0; background: #08080b; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; outline: none; }
.chat input:focus { border-color: rgba(207, 239, 255, 0.4); }

/* ---------------------------------- create --------------------------------- */
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; margin-top: 26px; align-items: start; }
@media (max-width: 1000px) { .cgrid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 22px; }
.form .group { display: grid; gap: 14px; }
.form .group > h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.form .group > h3 .n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: radial-gradient(circle at 35% 30%, #d2ffeb, #25d690 40%, #07533a); color: #00160d; font-size: 12px; transform: rotate(45deg); box-shadow: 0 0 0 1.5px #e9edf3, 0 0 0 2.5px #000, 0 0 16px rgba(31, 209, 138, 0.45); }
.form .group > h3 .n span { transform: rotate(-45deg); }
label.f { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
label.f input, label.f textarea, label.f select { background: #08080b; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 600 15px var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); outline: none; width: 100%; }
label.f input:focus, label.f textarea:focus { border-color: rgba(207, 239, 255, 0.4); }
label.f textarea { resize: vertical; min-height: 84px; }
label.f .count { float: right; font-weight: 600; color: var(--dim); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .two, .three { grid-template-columns: 1fr; } }
.drop { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 620px) { .drop { grid-template-columns: 1fr; } }
.drop .pave { width: 180px; height: 180px; cursor: pointer; }
.drop .zone { display: grid; place-items: center; height: 100%; text-align: center; color: var(--muted); font-size: 12px; padding: 12px; background: repeating-linear-gradient(45deg, #0b0b10 0 10px, #0e0e14 10px 20px); }
.drop .zone b { display: block; font: 900 13px var(--display); color: var(--ink); margin-top: 8px; }
.drop .zone img { width: 100%; height: 100%; object-fit: cover; }
.drop.over .pave { box-shadow: 0 0 0 2px var(--ice), 0 0 50px rgba(207, 239, 255, 0.4); }
.pickers { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #08080b; cursor: pointer; font-weight: 700; font-size: 13px; user-select: none; }
.pick input { display: none; }
.pick.on { border-color: rgba(31, 209, 138, 0.6); background: linear-gradient(180deg, rgba(31, 209, 138, 0.12), transparent); box-shadow: 0 0 0 1px rgba(31, 209, 138, 0.2), 0 0 24px rgba(31, 209, 138, 0.1); }
.pick.locked { cursor: default; }
.pick .c { width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); }
.range { width: 100%; accent-color: var(--emerald); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.facts div { background: #08080b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.facts b { font: 800 14px var(--display); }
.preview { position: sticky; top: 84px; display: grid; gap: 16px; }
.progress-steps { display: grid; gap: 8px; }
.progress-steps div { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.progress-steps div::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--line-2); flex: none; }
.progress-steps div.on { color: var(--ink); }
.progress-steps div.on::before { background: var(--ruby); border-color: var(--ruby); animation: pulse 1s infinite; }
.progress-steps div.done { color: var(--ice); }
.progress-steps div.done::before { background: var(--ice); border-color: var(--ice); }

/* --------------------------------- profile --------------------------------- */
.phead { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 26px; }
.phead .pave { width: 140px; height: 140px; }
.phead .pave .inner { display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #1c1c26, #08080b); }
@media (max-width: 620px) { .phead { grid-template-columns: 90px minmax(0, 1fr); } .phead .pave { width: 90px; height: 90px; } }
.addr { font: 700 13px var(--body); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.addr button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; cursor: pointer; color: var(--muted); font-size: 11px; }
table.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rows th { text-align: left; font: 800 10px var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.rows td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rows tr:last-child td { border-bottom: 0; }
table.rows tr.link { cursor: pointer; }
table.rows tr.link:hover td { background: rgba(255, 255, 255, 0.02); }
table.rows .num { text-align: right; white-space: nowrap; }
table.rows .tok { display: flex; gap: 10px; align-items: center; min-width: 0; }
table.rows .tok .coinpic { width: 36px; height: 36px; border-radius: 10px; }
.tablewrap { overflow-x: auto; }

/* ---------------------------------- misc ----------------------------------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(14, 14, 20, 0.97); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); font-size: 13px; font-weight: 600; cursor: pointer; animation: tin 0.25s ease-out; }
.toast .dot { width: 9px; height: 9px; transform: rotate(45deg); background: var(--ice); flex: none; }
.toast.info .dot { animation: pulse 1s infinite; }
.toast.good .dot { background: var(--emerald); } .toast.bad .dot { background: var(--sell); } .toast.bad { border-color: rgba(255, 66, 88, 0.4); }
.toast.out { opacity: 0; transform: translateY(8px); transition: 0.3s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.burst .spark { position: absolute; top: -30px; animation: fall linear forwards; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)); }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: 0.3; } }
footer.foot { margin-top: 60px; display: grid; gap: 16px; justify-items: center; color: var(--dim); font-size: 12px; text-align: center; }
footer.foot .studs { width: 100%; }
.netstate { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.netstate span { display: inline-flex; gap: 6px; align-items: center; }
.netstate .d { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.netstate .d.err { background: var(--ruby); box-shadow: 0 0 8px var(--ruby); }
.back { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; color: var(--muted); font-weight: 700; font-size: 13px; }
.back:hover { color: var(--ink); }
.page { animation: pin 0.35s ease-out; }
@keyframes pin { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------- banners --------------------------------- */
/* A film (or its still) behind a block of copy, full-bleed to the shell. */
.banner { position: relative; overflow: hidden; margin: 0 calc(50% - 50vw); isolation: isolate; }
.banner .over { width: 100%; max-width: 1320px; margin: 0 auto; }
.banner .film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner .veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 5, 5, 0.94) 0%, rgba(4, 5, 5, 0.72) 34%, rgba(4, 5, 5, 0.05) 62%), linear-gradient(0deg, rgba(4, 5, 5, 1) 0%, transparent 28%), linear-gradient(180deg, rgba(4, 5, 5, 0.7) 0%, transparent 18%); }
.banner .over { position: relative; padding: 0 16px; }
.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--milgrain); opacity: 0.5; }

/* The home hero: the cross on marble, the copy on the dark side. */
.banner.hero-b { min-height: clamp(420px, 56vw, 600px); display: grid; align-items: end; margin-top: 0; }
.banner.hero-b .film { object-position: 70% 50%; }
.banner.hero-b .over { padding-top: 70px; padding-bottom: 34px; }
.banner.hero-b .hero { margin-top: 0; }
.hero h1 .ln2 { display: inline-block; }
.hero .stats { display: grid; grid-template-columns: repeat(4, auto); gap: 0; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }
.hero .stat { padding: 14px 20px; background: rgba(6, 7, 8, 0.72); border-left: 1px solid rgba(255, 255, 255, 0.1); }
.hero .stat:first-child { border-left: 0; }
@media (max-width: 760px) { .hero .stats { grid-template-columns: repeat(2, 1fr); } .banner .veil { background: linear-gradient(0deg, rgba(4, 5, 5, 0.98) 5%, rgba(4, 5, 5, 0.72) 50%, rgba(4, 5, 5, 0.55)); } .banner.page-b.square .film { width: 70%; opacity: 0.6; } }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }

/* The vault: the Top 10's skull banner. */
.banner.vault-b { min-height: 230px; display: grid; align-items: center; margin-top: 40px; border-radius: 0; }
.banner.vault-b .film { object-position: 80% 45%; }
.banner.vault-b .sec-head { margin: 0; max-width: 460px; }
.banner.vault-b p { color: #c4c9d2; margin: 10px 0 0; max-width: 44ch; }

/* Page heads: the coin, the boutique, the beads. */
.banner.page-b { min-height: 300px; display: grid; align-items: end; }
.banner.page-b .over { padding-top: 40px; padding-bottom: 26px; }
.banner.page-b .film { object-position: 85% 50%; }
.banner.page-b.square .film { left: auto; width: min(560px, 60%); -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%); }
.banner.page-b .thead, .banner.page-b .phead { margin-top: 0; }
.banner.create-b { min-height: 280px; }
.banner.create-b .film { object-position: 50% 60%; }

/* The drop zone before an image: loose stones and a loupe. */
.drop .zone.stones { background: linear-gradient(rgba(4, 5, 5, 0.35), rgba(4, 5, 5, 0.75)), url("../media/loose-stones.webp") 70% 50% / cover; color: #d7dbe2; }

/* Stones raining over the page, for a launch. Screen blend drops the black. */
video.rain { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: 95; pointer-events: none; mix-blend-mode: screen; opacity: 0.95; transition: opacity 0.6s; }
video.rain.out { opacity: 0; }

/* The boutique, closing the page. */
.boutique-strip { height: 240px; margin: 30px calc(50% - 50vw) 0; background: linear-gradient(180deg, var(--void), rgba(4, 5, 5, 0.2) 40%, rgba(4, 5, 5, 0.2) 60%, var(--void)), url("../media/boutique.webp") center 62% / cover; position: relative; }
.boutique-strip .monogram { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(31, 209, 138, 0.35)); }
@media (min-width: 900px) { .banner.page-b.square .over { padding-right: min(460px, 34%); } }
.drop .zone.stones { align-items: end; text-shadow: 0 1px 3px #000; background: linear-gradient(180deg, rgba(4, 5, 5, 0) 30%, rgba(4, 5, 5, 0.85)), url("../media/loose-stones.webp") 62% 40% / 230% auto; }
.form .group > h3 .chrome { background: none; color: #eef0f4; filter: none; }
.banner.beads .film { object-position: 50% 92%; }
.banner.beads .veil { background: linear-gradient(90deg, rgba(4, 5, 5, 0.92) 0%, rgba(4, 5, 5, 0.6) 40%, rgba(4, 5, 5, 0.1) 75%), linear-gradient(180deg, rgba(4, 5, 5, 0.75) 0%, transparent 30%); }

/* wallet menu */
.wallet-box { position: relative; flex: none; }
.btn.wallet .caret { font-size: 10px; opacity: 0.7; margin-left: 2px; }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; display: grid; padding: 6px; border-radius: 14px; background: var(--onyx); border: 1px solid transparent; background: linear-gradient(var(--onyx), var(--onyx)) padding-box, var(--wg-line) border-box; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); backdrop-filter: blur(14px); }
.wallet-menu[hidden] { display: none; }
.wallet-menu a, .wallet-menu button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 9px; font: 600 13px/1 "Inter Tight", sans-serif; color: var(--text, #e6e9f0); }
.wallet-menu a:hover, .wallet-menu button:hover, .wallet-menu a:focus-visible, .wallet-menu button:focus-visible { background: rgba(255, 255, 255, 0.07); }
.wallet-menu button { color: var(--ruby); }

/* wallet picker */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 4, 0.72); backdrop-filter: blur(6px); animation: tin 0.2s ease-out; }
.modal { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; display: grid; gap: 12px; padding: 22px; border-radius: 22px; border: 1px solid transparent; background: linear-gradient(rgba(9, 10, 11, 0.97), rgba(9, 10, 11, 0.97)) padding-box, var(--wg-line) border-box; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 4px 0 0; font: 700 22px/1.1 Unbounded, sans-serif; }
.modal .x { all: unset; cursor: pointer; font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 10px; color: var(--muted, #9aa1ad); }
.modal .x:hover, .modal .x:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.07); }
.modal h3 { margin: 6px 0 0; font: 500 11px/1 Unbounded, sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted, #9aa1ad); }
.modal .wallets { display: grid; gap: 8px; }
.wallet-row { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); transition: border-color 0.2s, background 0.2s; }
.wallet-row:hover:not(:disabled), .wallet-row:focus-visible { border-color: rgba(226, 243, 255, 0.45); background: rgba(255, 255, 255, 0.06); }
.wallet-row:disabled { cursor: progress; opacity: 0.7; }
.wallet-row.on { border-color: color-mix(in srgb, var(--emerald) 60%, transparent); }
.wallet-row img, .wallet-row .badge { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.wallet-row .badge { display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); font: 700 13px/1 Unbounded, sans-serif; text-transform: uppercase; }
.wallet-row .wname { font: 700 15px/1.2 "Inter Tight", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row .meta { font-size: 12px; color: var(--muted, #9aa1ad); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-row.on .meta { color: var(--emerald); }
.modal .notice.bad { margin: 0; color: var(--sell); font-size: 13px; }
.modal .btn.block { width: 100%; justify-content: center; }
