/* Stellic design system.
   Type: Instrument Serif for display, Geist for UI, Geist Mono for data and labels.
   Colour comes from the swirl mark. Structure comes from hairlines, not boxes. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --void: #08070a;
  --bg: #0a090c;
  --surface: #111015;
  --surface-2: #17161c;
  --surface-3: #1e1d24;
  --line: #1f1d25;
  --line-2: #2c2a34;
  --text: #eeedf2;
  --muted: #8f8c9b;
  --faint: #5d5a68;
  --purple: #8b3ed3;
  --lilac: #b996ff;
  --plum: #6a1a62;
  --accent: #b996ff;
  --danger: #ff8fa3;
  --ok: #8fe0b8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Film grain over everything. A fixed layer, so it costs nothing on scroll. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection { background: var(--purple); color: #fff; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; }
h1 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.05; }
h3 { font: 500 15px/1.35 var(--sans); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--lilac); }
p { margin: 0; }
code { font: 13px var(--mono); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(420px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.spaced { margin-top: 12px; }
.eyebrow, .kicker {
  font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.kicker::before { content: ""; width: 6px; height: 6px; background: var(--purple); box-shadow: 0 0 0 3px rgba(139, 62, 211, 0.18); }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px var(--sans); letter-spacing: -0.02em; }
.wordmark img { width: 26px; height: 26px; mix-blend-mode: lighten; }
.topbar nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.topbar nav a { text-decoration: none; transition: color 0.15s; }
.topbar nav a:hover { color: var(--text); }
.topbar nav .btn { color: #0a090c; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  background: var(--text); color: #0a090c; font: 500 14px var(--sans); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.btn.primary { background: var(--purple); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 20px -8px rgba(139, 62, 211, 0.7); }
.btn.primary:hover { background: #9a4ee3; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn.danger { background: transparent; color: var(--danger); border-color: #43262e; }
.btn.danger:hover { background: #1d1216; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lilac); cursor: pointer; font-size: 13px; }
.link-btn.muted { color: var(--muted); }
.link-btn:hover { color: var(--text); }

/* ---------- Fields ---------- */
label, .label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
input, select, textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--void); color: var(--text);
  font: 15px var(--sans); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; min-height: 92px; padding: 11px 13px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 62, 211, 0.2); }
input[type="file"] { height: auto; padding: 9px; font-size: 13px; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 10px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 13px var(--sans); cursor: pointer; }
.field { display: flex; flex-direction: column; }
.hint { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.error { color: var(--danger); font-size: 13.5px; min-height: 1.3em; }
.error:empty, .ok:empty { min-height: 0; }
.ok { color: var(--ok); font-size: 13.5px; min-height: 1.3em; }

/* Segmented control */
.seg { display: flex; width: 100%; max-width: 380px; padding: 3px; gap: 2px; border-radius: 9px; background: var(--void); border: 1px solid var(--line-2); }
.seg button {
  flex: 1 1 0; height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font-size: 13px; text-transform: capitalize; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.5); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button {
  width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer; background: var(--sw);
  border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: transform 0.15s var(--ease);
}
.swatches button:hover { transform: scale(1.08); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sw); }

/* Panels */
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035); }
.panel > h3:first-child { margin-bottom: 2px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* =====================================================================
   Profile page. The same markup is the public page, the editor preview
   and every example on the landing page.
   ===================================================================== */
.page {
  --pg-bg: #0a090c; --pg-surface: #121116; --pg-text: #eeedf2; --pg-muted: #8f8c9b; --pg-line: #24222b;
  --accent: #b996ff; --radius: 14px; --display: var(--serif); --body: var(--sans);
  position: relative; background: var(--pg-bg); color: var(--pg-text); font: 15px/1.55 var(--body);
  border-radius: 18px; padding: 28px 22px; border: 1px solid var(--line); overflow: hidden;
}
.page[data-bg="ink"] { --pg-bg: #0a090c; --pg-surface: #121116; --pg-text: #eeedf2; --pg-muted: #8f8c9b; --pg-line: #24222b; }
.page[data-bg="slate"] { --pg-bg: #14161b; --pg-surface: #1b1e25; --pg-text: #edf0f5; --pg-muted: #939aa8; --pg-line: #2a2e38; }
.page[data-bg="paper"] { --pg-bg: #f2efe8; --pg-surface: #fbfaf6; --pg-text: #19171c; --pg-muted: #6e6a74; --pg-line: #dcd7cc; }
.page[data-accent="violet"] { --accent: #b996ff; }
.page[data-accent="cyan"] { --accent: #6fd8ea; }
.page[data-accent="amber"] { --accent: #f0c27a; }
.page[data-accent="rose"] { --accent: #f2919f; }
.page[data-accent="mint"] { --accent: #86e0b6; }
.page[data-bg="paper"][data-accent="violet"] { --accent: #7a3fd0; }
.page[data-bg="paper"][data-accent="cyan"] { --accent: #13809a; }
.page[data-bg="paper"][data-accent="amber"] { --accent: #a8650b; }
.page[data-bg="paper"][data-accent="rose"] { --accent: #c23f5c; }
.page[data-bg="paper"][data-accent="mint"] { --accent: #1d8a5a; }
.page[data-corners="sharp"] { --radius: 0px; }
.page[data-corners="soft"] { --radius: 14px; }
.page[data-corners="round"] { --radius: 26px; }
.page[data-font="serif"] { --display: var(--serif); }
.page[data-font="sans"] { --display: var(--sans); }
.page[data-font="mono"] { --display: var(--mono); --body: var(--mono); }

/* A soft wash of the accent behind the card, so each page has its own light. */
.page::before {
  content: ""; position: absolute; inset: -30% -20% auto; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}
.page > * { position: relative; }

.page .box { border-radius: var(--radius); overflow: hidden; }
.page[data-card="boxed"] .box { background: var(--pg-surface); border: 1px solid var(--pg-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.page[data-card="filled"] .box { background: color-mix(in srgb, var(--accent) 9%, var(--pg-surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--pg-line)); }
.page[data-card="plain"] .box { background: transparent; border: 0; overflow: visible; }
.page[data-entrance="fade"] .box { animation: rise 0.6s var(--ease) both; }
.page[data-entrance="fade"] .link { animation: rise 0.5s var(--ease) both; }
.page[data-entrance="fade"] .link:nth-child(2) { animation-delay: 0.05s; }
.page[data-entrance="fade"] .link:nth-child(3) { animation-delay: 0.1s; }
.page[data-entrance="fade"] .link:nth-child(4) { animation-delay: 0.15s; }
.page[data-entrance="fade"] .link:nth-child(n + 5) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page .banner {
  height: 92px;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%),
    radial-gradient(90% 140% at 100% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    color-mix(in srgb, var(--accent) 8%, var(--pg-surface));
}
.page[data-card="plain"] .banner { border-radius: var(--radius); }
.page .inner { padding: 0 22px 22px; }
.page[data-card="plain"] .inner { padding: 0 2px; }
.page .head { display: flex; align-items: flex-end; gap: 16px; margin-top: -38px; }
.page .id { min-width: 0; padding-bottom: 4px; }
.page .name { font: 400 34px/1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; margin-top: 14px; }
.page[data-font="sans"] .name { font-weight: 600; font-size: 26px; letter-spacing: -0.03em; }
.page[data-font="mono"] .name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.page .handle { font: 12.5px var(--mono); color: var(--pg-muted); margin-top: 6px; }
.page .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.page .badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 500 11px var(--mono); color: var(--pg-text); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.page .badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.page .bio { margin-top: 14px; color: var(--pg-text); opacity: 0.86; white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; }
.page .links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.page .link {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; min-height: 52px;
  border-radius: calc(var(--radius) * 0.7); border: 1px solid var(--pg-line); text-decoration: none;
  color: var(--pg-text); background: color-mix(in srgb, var(--pg-bg) 40%, transparent);
  transition: transform 0.18s var(--ease), border-color 0.18s, background 0.18s;
}
.page .link:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 60%, var(--pg-line)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.page .link .ico {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: calc(var(--radius) * 0.5);
  background: color-mix(in srgb, var(--accent) 14%, var(--pg-surface)); font: 500 13px var(--mono); color: var(--accent);
}
.page .link .platform { width: 16px; height: 16px; filter: invert(1); opacity: 0.92; }
.page[data-bg="paper"] .link .platform { filter: none; }
.page .link .label { flex: 1; min-width: 0; margin: 0; font: 500 14.5px var(--body); color: var(--pg-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page .link .pin { font: 10.5px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.page .link .arrow { color: var(--pg-muted); font-size: 13px; transition: transform 0.18s var(--ease); }
.page .link:hover .arrow { transform: translate(2px, -2px); color: var(--accent); }
.page .meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--pg-line); }
.page .meta div { padding: 12px 0 0; }
.page .meta div + div { padding-left: 12px; border-left: 1px solid var(--pg-line); }
.page .meta dt { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--pg-muted); }
.page .meta dd { margin: 4px 0 0; font: 500 14px var(--mono); color: var(--pg-text); }
.page .empty { color: var(--pg-muted); font-size: 13.5px; padding: 14px 0 4px; }

.pfp { width: 84px; height: 84px; flex: none; object-fit: cover; display: block; background: var(--pg-surface, var(--surface)); border: 3px solid var(--pg-surface, var(--surface)); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7); }
.page[data-card="plain"] .pfp { border-color: var(--pg-bg); }
.pfp-round { border-radius: 50%; }
.pfp-square { border-radius: 6px; }
.pfp-soft { border-radius: 24px; }
.pfp.is-mark { background: #0e0e0e; }
.page[data-bg="paper"] .pfp.is-mark { border-color: var(--pg-surface); }

/* On a public page, the visitor's background is the whole screen. */
.page.full { border: 0; border-radius: 0; padding: 0; background: transparent; overflow: visible; }
.page.full::before { display: none; }
body.theme-ink { background: #0a090c; }
body.theme-slate { background: #14161b; }
body.theme-paper { background: #f2efe8; --text: #19171c; --muted: #6e6a74; --faint: #8b8790; --line: #dcd7cc; --line-2: #cdc7ba; --surface: #fbfaf6; --surface-2: #ece8df; --surface-3: #e4dfd4; }
body.theme-paper .wordmark img { mix-blend-mode: normal; border-radius: 50%; }
body.theme-paper .btn { background: #19171c; color: #fbfaf6; }
body.theme-paper .btn.ghost { background: transparent; color: #19171c; }
body.theme-paper::after { opacity: 0.06; }
.public-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body.theme-ink .public-glow, body.theme-slate .public-glow { background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }

/* =====================================================================
   Landing
   ===================================================================== */
.hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#void { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.95;
  -webkit-mask-image: radial-gradient(75% 85% at 70% 45%, #000 30%, transparent 78%); mask-image: radial-gradient(75% 85% at 70% 45%, #000 30%, transparent 78%); }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; padding: 72px 0 96px; }
.hero h1 { margin-top: 20px; max-width: 13ch; }
.hero .lede { margin-top: 24px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
.hero .lede strong { color: var(--text); font-weight: 500; }
.claim { margin-top: 34px; max-width: 470px; }
.claim-row {
  display: flex; align-items: center; height: 56px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: var(--void); border: 1px solid var(--line-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.claim-row:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(139, 62, 211, 0.18); }
.claim-row .prefix { font: 15px var(--mono); color: var(--muted); white-space: nowrap; }
.claim-row input { flex: 1; min-width: 0; height: 100%; padding: 0 4px; border: 0; background: transparent; font: 15px var(--mono); box-shadow: none; }
.claim-row input:focus { box-shadow: none; }
.claim-row .btn { height: 44px; padding: 0 20px; }
.claim-status { margin-top: 12px; min-height: 18px; font: 12.5px var(--mono); color: var(--faint); display: flex; align-items: center; gap: 8px; }
.claim-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.claim-status[data-state="free"] { color: var(--ok); }
.claim-status[data-state="free"]::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(143, 224, 184, 0.15); }
.claim-status[data-state="taken"], .claim-status[data-state="bad"] { color: var(--danger); }
.claim-status[data-state="taken"]::before, .claim-status[data-state="bad"]::before { background: var(--danger); }
.hero-proof { display: flex; gap: 28px; margin-top: 40px; font: 12px var(--mono); color: var(--faint); }
.hero-proof b { display: block; font: 400 26px var(--serif); color: var(--text); margin-bottom: 2px; }

.studio { position: relative; }
.studio .page { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.dock {
  margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px;
}
.dock .group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dock .group > span { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.dock .seg { max-width: none; }
.dock-note { margin-top: 10px; font: 11.5px var(--mono); color: var(--faint); text-align: center; }

.ticker { border-bottom: 1px solid var(--line); overflow: hidden; height: 46px; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: slide 40s linear infinite; padding-left: 40px; font: 12.5px var(--mono); color: var(--faint); }
.ticker-track a { text-decoration: none; color: var(--muted); }
.ticker-track a:hover { color: var(--text); }
.ticker-track span.dot { color: var(--purple); }
@keyframes slide { to { transform: translateX(-50%); } }

section.band { padding: 104px 0; border-bottom: 1px solid var(--line); }
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 48px; }
.band-head .lede { color: var(--muted); max-width: 46ch; justify-self: end; }
.band-head h2 { margin-top: 14px; max-width: 14ch; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cell { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 24px; min-height: 250px; display: flex; flex-direction: column; }
.cell::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.cell h3 { font: 400 26px/1.05 var(--serif); letter-spacing: -0.015em; margin-top: auto; padding-top: 18px; }
.cell p { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 40ch; }
.cell.c2 { grid-column: span 2; } .cell.c3 { grid-column: span 3; } .cell.c4 { grid-column: span 4; }
.viz { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.viz-chart { width: 100%; display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.viz-chart i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(to top, var(--plum), var(--purple)); opacity: 0.9; }
.viz-chart i:nth-last-child(-n + 3) { background: linear-gradient(to top, var(--purple), var(--lilac)); }
.viz-icons { display: grid; grid-template-columns: repeat(5, 44px); gap: 10px; }
.viz-icons span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform 0.2s var(--ease), border-color 0.2s; }
.viz-icons span:hover { transform: translateY(-3px); border-color: var(--purple); }
.viz-icons img { width: 18px; height: 18px; filter: invert(1); }
.viz-names { font: 15px var(--mono); display: flex; flex-direction: column; gap: 8px; width: 100%; }
.viz-names div { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); }
.viz-names .no { color: var(--danger); } .viz-names .yes { color: var(--ok); }
.viz-privacy { font: 13px var(--mono); color: var(--muted); width: 100%; display: flex; flex-direction: column; gap: 6px; }
.viz-privacy code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--void); border: 1px solid var(--line-2); color: var(--lilac); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-discord { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: #5865f2; color: #fff; }
.viz-discord img { width: 26px; height: 26px; filter: invert(1); }
.viz-discord b { display: block; font-weight: 600; }
.viz-discord span { font-size: 13px; opacity: 0.85; }

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.examples .page { transition: transform 0.4s var(--ease); }
.examples .page:nth-child(1) { transform: rotate(-1.6deg) translateY(12px); }
.examples .page:nth-child(3) { transform: rotate(1.6deg) translateY(12px); }
.examples .page:hover { transform: none; }
.examples-note { margin-top: 26px; font: 12px var(--mono); color: var(--faint); text-align: center; }

.leaders { border-top: 1px solid var(--line); }
.leaders a { display: grid; grid-template-columns: 52px 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background 0.15s; }
.leaders a:hover { background: var(--surface); }
.leaders .rank { font: 400 28px var(--serif); color: var(--faint); }
.leaders a:first-child .rank { color: var(--lilac); }
.leaders .pfp { width: 40px; height: 40px; border-width: 0; box-shadow: none; }
.leaders .who strong { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .who span { font: 12px var(--mono); color: var(--muted); }
.leaders .count { font: 13px var(--mono); color: var(--muted); }
.leaders-empty { padding: 28px 0; color: var(--muted); border-top: 1px solid var(--line); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.plan { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.plan.lead { background: linear-gradient(180deg, rgba(139, 62, 211, 0.12), var(--surface) 60%); border-color: rgba(139, 62, 211, 0.4); }
.plan .price { font: 400 56px/1 var(--serif); letter-spacing: -0.02em; }
.plan .price small { font: 13px var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 14px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "+"; font-family: var(--mono); color: var(--lilac); }
.plan.off li::before { content: "–"; color: var(--faint); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.log { border-top: 1px solid var(--line); }
.log div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log dt { font: 12px var(--mono); color: var(--faint); padding-top: 2px; }
.log dd { margin: 0; color: var(--muted); }
.log dd b { color: var(--text); font-weight: 500; }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 18px var(--mono); color: var(--muted); transition: transform 0.2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); color: var(--lilac); }
details p { color: var(--muted); padding: 0 0 18px; max-width: 64ch; }

.cta { position: relative; padding: 112px 0 112px; text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(32px, 4vw, 52px); max-width: 14ch; margin: 18px auto 0; }
.cta .row { justify-content: center; margin-top: 30px; }
.bigmark { margin-top: 90px; font: italic 400 clamp(80px, 21vw, 300px)/0.8 var(--serif); letter-spacing: -0.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; }
footer.site { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 40px; border-top: 1px solid var(--line); font: 12.5px var(--mono); color: var(--faint); }
footer.site a { color: var(--muted); text-decoration: none; margin-left: 18px; }
footer.site a:hover { color: var(--text); }

/* =====================================================================
   Auth
   ===================================================================== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: var(--void); display: flex; flex-direction: column; justify-content: space-between; padding: 28px 40px 40px; }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; -webkit-mask-image: radial-gradient(70% 70% at 50% 55%, #000 25%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 55%, #000 25%, transparent 80%); }
.auth-art > * { position: relative; }
.auth-art blockquote { margin: 0; font: italic 400 clamp(30px, 3.4vw, 46px)/1.02 var(--serif); max-width: 14ch; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth { width: min(400px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.auth h2 { font-size: 40px; }
.auth .sep { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
.auth .sep::before, .auth .sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth #switch { display: flex; flex-direction: column; gap: 6px; }
.auth #switch a { text-decoration: none; }
.auth #switch a:hover { color: var(--text); }
.discord-btn { background: #5865f2; color: #fff; }
.discord-btn:hover { background: #6773f5; }
.discord-btn .platform { width: 16px; height: 16px; filter: invert(1); }

/* =====================================================================
   Dashboard and staff panel
   ===================================================================== */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.app > div { min-width: 0; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px; border-right: 1px solid var(--line); background: var(--void); }
.side .wordmark { padding: 4px 10px 22px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav::before { content: "Manage"; font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); padding: 0 10px 8px; }
.side button, .side .foot-links a {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.side button:hover, .side .foot-links a:hover { color: var(--text); background: var(--surface); }
.side button[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--purple); }
.side .foot-links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.main { padding: 34px 44px 72px; max-width: 1220px; }
.main header { margin-bottom: 6px; }
.main header h2 { font-size: 40px; }
.main header p { margin-top: 6px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 20px 22px; }
.stat .label { margin: 0; font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.stat .value { margin-top: 12px; font: 400 46px/1 var(--serif); letter-spacing: -0.02em; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.chart .bar { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(to top, var(--plum), var(--purple)); transition: filter 0.15s; }
.chart .bar:hover { filter: brightness(1.3); }
.chart .bar[data-empty="true"] { background: var(--line-2); }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font: 11px var(--mono); color: var(--faint); }
.bars-h { display: flex; flex-direction: column; gap: 12px; }
.bars-h > div { display: grid; grid-template-columns: minmax(0, 120px) 1fr 44px; gap: 12px; align-items: center; }
.bars-h .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars-h .track { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bars-h .fill { height: 100%; border-radius: 3px; background: linear-gradient(to right, var(--plum), var(--lilac)); }
.bars-h .n { text-align: right; font: 12px var(--mono); color: var(--muted); }
.preview-col { position: sticky; top: 24px; align-self: start; }
.preview-col .page { min-height: 560px; padding: 26px 20px; }
.picture { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.picture .pfp { --pg-surface: var(--surface); }
.setting-group { display: flex; flex-direction: column; }
.setting-group + .setting-group { margin-top: 26px; }
.setting-group h3 { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.setting { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; padding-bottom: 0; }
.setting .label { margin: 0; color: var(--text); font-size: 14px; }
.link-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.link-editor:first-child { padding-top: 0; }
.link-editor:last-child { border-bottom: 0; padding-bottom: 0; }
.link-editor .tools { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 10.5px var(--mono); color: var(--muted); border: 1px solid var(--line-2); text-transform: lowercase; }
.tag.on { color: var(--lilac); border-color: rgba(185, 150, 255, 0.4); background: rgba(139, 62, 211, 0.12); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.empty-state { color: var(--muted); padding: 18px 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); padding: 11px 18px; border-radius: 999px; background: var(--text); color: #0a090c; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.8); animation: rise 0.3s var(--ease); }
.top-tabs { display: none; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 400; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
  .band-head, .split { grid-template-columns: 1fr; gap: 18px; }
  .band-head .lede { justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell.c2, .cell.c3, .cell.c4 { grid-column: span 2; }
  .examples { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .examples .page:nth-child(n) { transform: none; }
  .plans, .grid-3 { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 24px 28px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: rgba(10, 9, 12, 0.92); backdrop-filter: blur(8px); }
  .top-tabs::-webkit-scrollbar { display: none; }
  .top-tabs button { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
  .top-tabs button[aria-current="page"] { background: var(--text); color: #0a090c; border-color: var(--text); }
  .main { padding: 24px 16px 64px; }
  .main header h2 { font-size: 34px; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .preview-col .page { min-height: 0; }
  .setting { grid-template-columns: 1fr; gap: 8px; }
  .link-editor { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .topbar nav a:not(.btn) { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-proof { gap: 20px; }
  .claim-row { height: auto; flex-wrap: wrap; border-radius: 18px; padding: 12px 12px 12px 16px; }
  .claim-row input { height: 34px; }
  .claim-row .btn { width: 100%; margin-top: 8px; }
  .dock { grid-template-columns: 1fr; }
  section.band { padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .cell.c2, .cell.c3, .cell.c4 { grid-column: auto; }
  .leaders a { grid-template-columns: 36px 40px minmax(0, 1fr); }
  .leaders .count { display: none; }
  .page .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .page .meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .log div { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
  #void { -webkit-mask-image: radial-gradient(95% 34% at 50% 80%, #000 30%, transparent 75%); mask-image: radial-gradient(95% 34% at 50% 80%, #000 30%, transparent 75%); }
}

/* =====================================================================
   v2: display type, the full-page void, pill nav, reveals, profile effects
   ===================================================================== */
@font-face { font-family: "Syne"; src: url("/assets/fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Syne"; src: url("/assets/fonts/syne-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
:root { --wide: "Syne", var(--sans); }

h1, h2 { font-family: var(--wide); font-weight: 800; letter-spacing: -0.045em; }
h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.9; }
h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 0.95; }
h1 em, h2 em { font-style: normal; color: var(--lilac); }
.main header h2 { font-size: 34px; letter-spacing: -0.04em; }
.auth h2 { font-size: 34px; }
.stat .value, .plan .price, .leaders .rank, .hero-proof b { font-family: var(--wide); font-weight: 800; letter-spacing: -0.04em; }
.wordmark { font: 800 17px var(--wide); letter-spacing: -0.04em; }

/* Landing: the void sits behind the whole page and reacts to scroll and pointer. */
body.landing #void { position: fixed; inset: 0; z-index: 0; opacity: 0.8; -webkit-mask-image: none; mask-image: none; }
body.landing .hero-wrap, body.landing main, body.landing .cta, body.landing .wrap, body.landing .ticker { position: relative; z-index: 1; }
body.landing .hero-wrap { overflow: visible; border-bottom: 0; }
body.landing section.band { border-bottom: 0; }
body.landing section.band > * , body.landing .bento, body.landing .plans { position: relative; }
.veil { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 70% at 30% 40%, rgba(10, 9, 12, 0.9) 20%, rgba(10, 9, 12, 0.35) 60%, rgba(10, 9, 12, 0.75)); }

.navpill {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 22px; height: 54px; padding: 0 8px 0 18px; border-radius: 999px;
  width: min(880px, calc(100% - 24px)); justify-content: space-between;
  background: rgba(14, 13, 18, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
}
.navpill nav { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.navpill nav a { text-decoration: none; transition: color 0.15s; }
.navpill nav a:hover { color: var(--text); }
.navpill .btn { height: 40px; }
body.landing .hero { padding-top: 150px; min-height: 100vh; }
.hero h1 { max-width: 9ch; }
.hero h1 .line { display: block; }

/* Huge claimed-name showcase with decoding text */
.showcase { text-align: center; padding: 140px 0; }
.showcase .domain { font: 400 clamp(16px, 2vw, 22px) var(--mono); color: var(--muted); }
.showcase .big { display: block; margin-top: 10px; font: 800 clamp(64px, 15vw, 210px)/0.9 var(--wide); letter-spacing: -0.06em; white-space: nowrap; color: var(--text); }
.showcase .big .glyph { color: var(--lilac); }
.showcase p { margin: 26px auto 0; max-width: 46ch; color: var(--muted); }

/* Studio band */
.studio-band { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.studio-band .dock { margin-top: 30px; background: transparent; border: 0; padding: 0; gap: 18px 22px; }
.studio-band .dock .seg { border-radius: 999px; padding: 4px; }
.studio-band .dock .seg button { border-radius: 999px; height: 34px; }
.studio-band .studio .page { max-width: 440px; margin-left: auto; }

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.bento .cell { background: rgba(17, 16, 21, 0.86); }
.plan, .leaders a:hover { background: rgba(17, 16, 21, 0.86); }

/* ---------- Profile: display type, the Void background, Tilt and Glow ---------- */
.page[data-font="display"] { --display: var(--wide); }
.page[data-font="display"] .name { font: 800 32px/0.95 var(--wide); letter-spacing: -0.045em; }
.page[data-bg="void"] { --pg-bg: #08070a; --pg-surface: rgba(18, 17, 22, 0.82); --pg-text: #eeedf2; --pg-muted: #908d9c; --pg-line: rgba(255, 255, 255, 0.09); }
.page .page-void { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0.9; z-index: 0; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0, 0, 0, 0.35) 100%); }
.page[data-bg="void"]::before { display: none; }
.page[data-bg="void"][data-card="boxed"] .box { backdrop-filter: blur(10px); }
.page[data-effect="tilt"] .box { transition: transform 0.3s var(--ease); will-change: transform; }
.page[data-effect="tilt"] .box::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.3s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.08), transparent 45%); }
.page[data-effect="tilt"] .box:hover::after { opacity: 1; }
.page .box { position: relative; }
.page[data-effect="glow"] .box { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 46px -8px color-mix(in srgb, var(--accent) 55%, transparent), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.page[data-effect="glow"] .pfp { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 30px -4px var(--accent); }

/* Public page on the Void background: the dither fills the screen. */
.public-void { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; image-rendering: pixelated; opacity: 0.85; pointer-events: none; }
body.theme-void { background: #08070a; }
.public-col { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .navpill nav a:not(.btn) { display: none; }
  .studio-band { grid-template-columns: 1fr; gap: 40px; }
  .studio-band .studio .page { margin: 0 auto; }
  body.landing .hero { padding-top: 110px; min-height: 0; }
  .showcase { padding: 90px 0; }
}

/* Three families only: Syne for display, Geist for reading, Geist Mono for data. */
.cell h3 { font: 700 21px/1.12 var(--wide); letter-spacing: -0.03em; }
.page[data-font="serif"] { --display: var(--serif); }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 10px; }
.s-nav { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 2px; }
.s-nav button {
  height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; text-align: left;
  color: var(--muted); font-size: 14px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.s-nav button:hover { color: var(--text); background: var(--surface); }
.s-nav button[aria-current="true"] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--purple); }
.s-nav button:last-child { color: #c98190; }
.settings-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 820px; }
.s-card { scroll-margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.s-card > header { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.s-card > header h3 { font: 700 18px var(--wide); letter-spacing: -0.03em; }
.s-card > header p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.s-card.danger { border-color: #3a2028; }
.s-card.danger > header { border-bottom-color: #3a2028; }
.s-card.danger > header h3 { color: var(--danger); }
.s-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.s-card > :last-child { border-bottom: 0; }
.s-text { min-width: 0; max-width: 52ch; }
.s-text strong { display: block; font-weight: 500; font-size: 14.5px; }
.s-text p { margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.s-text.with-icon { display: flex; align-items: center; gap: 14px; }
.s-control { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; flex: none; max-width: 60%; }
.s-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.s-icon.discord { background: #5865f2; }
.s-icon img { filter: invert(1); }
.s-form { display: grid; gap: 10px; padding: 4px 22px 18px; border-bottom: 1px solid var(--line); max-width: 460px; }
.s-note { padding: 12px 22px 16px; font-size: 12.5px; color: var(--faint); }
.mono-value { font: 13px var(--mono); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.mono-value:hover { color: var(--lilac); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font: 500 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line-2); background: var(--surface-2); text-transform: capitalize; white-space: nowrap;
}
.pill.good { color: var(--ok); border-color: rgba(143, 224, 184, 0.3); background: rgba(143, 224, 184, 0.08); }
.pill.warn { color: #f0c27a; border-color: rgba(240, 194, 122, 0.3); background: rgba(240, 194, 122, 0.08); }
.pill.accent { color: var(--lilac); border-color: rgba(185, 150, 255, 0.35); background: rgba(139, 62, 211, 0.12); }
.pill.good::before, .pill.warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.seg.compact { width: auto; max-width: none; }
.seg.compact button { flex: none; padding: 0 14px; }

@media (max-width: 960px) {
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .s-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .s-nav::-webkit-scrollbar { display: none; }
  .s-nav button { flex: none; border: 1px solid var(--line-2); border-radius: 999px; height: 32px; font-size: 13px; }
  .s-nav button[aria-current="true"] { box-shadow: none; border-color: var(--muted); }
  .s-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; }
  .s-control { justify-content: flex-start; max-width: none; }
  .s-card > header { padding: 18px 18px 14px; }
  .s-form { padding: 4px 18px 18px; }
  .s-note { padding: 12px 18px 16px; }
}

.stat .value, .plan .price, .hero-proof b, .leaders .rank { font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* Two-factor code box on the sign-in page. */
.code-input { font: 500 22px var(--mono) !important; letter-spacing: 0.3em; text-align: center; }

/* ---------- Cookie banner (every page) ---------- */
.consent-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; width: min(640px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; padding: 14px 16px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(17, 16, 21, 0.94); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); color: #d6d4de; font-size: 14px; animation: consent-in 0.4s var(--ease);
}
.consent-banner p { flex: 1 1 280px; margin: 0; line-height: 1.5; }
.consent-banner b { color: var(--text); }
.consent-banner a { color: var(--lilac); }
.consent-banner-actions { display: flex; gap: 8px; }
.consent-btn { border: 0; border-radius: 10px; padding: 9px 14px; font: 600 13.5px var(--sans); background: var(--lilac); color: var(--void); cursor: pointer; }
.consent-btn.ghost { background: var(--surface-3); color: var(--text); }
@keyframes consent-in { from { opacity: 0; transform: translate(-50%, 12px); } }
