/* ───────── admin console (scoped: adm-*) ───────── */
.adm { display: grid; gap: 16px; min-width: 0; }
.adm-tabs { position: sticky; top: 8px; z-index: 20; min-width: 0; }
.adm-tabs .tabs { background: rgba(14, 14, 16, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (max-width: 720px) { .adm-tabs { top: 62px; } }
.adm-body { min-width: 0; display: grid; gap: 22px; animation: rise 260ms var(--ease); }

.adm-section { min-width: 0; }
.adm-head { flex-wrap: wrap; align-items: flex-start; }
.adm-strong { font-weight: 700; color: var(--text); }
.adm-strong:hover { color: var(--amber); }
.adm-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-red { color: var(--red); }
.nowrap { white-space: nowrap; }

/* stat tiles */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-stat {
  display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 16px; border: 0; font: inherit; color: inherit;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.adm-stat b { font-family: var(--font-pixel); font-size: 32px; font-weight: 400; line-height: 1.1; }
.adm-stat-top { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.adm-stat-top svg { color: var(--amber); }
.adm-stat.is-link { cursor: pointer; }
.adm-stat.is-link:hover { transform: translateY(-2px); box-shadow: var(--glass-edge), 0 0 0 1px var(--amber-line); }
.adm-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* lists */
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.adm-list > li { min-width: 0; }
.adm-item {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line);
}
.adm-item:hover { background: rgba(255, 255, 255, 0.045); }
.adm-row-actions { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .adm-item { flex-wrap: wrap; }
  .adm-item > .adm-row-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* reports */
.adm-report { padding: 14px; display: grid; gap: 8px; }
.adm-target { padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.adm-excerpt { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.adm-details summary { cursor: pointer; color: var(--text-2); font-weight: 600; padding: 4px 0; width: fit-content; }
.adm-details summary:hover { color: var(--text); }
.adm-reporters { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; display: grid; gap: 8px; border-left: 1.5px solid rgba(255, 170, 40, 0.16); }
.adm-quote { margin-top: 2px; overflow-wrap: anywhere; }
.adm-actions { padding-top: 4px; }

/* tables */
.adm-table th.num, .adm-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.adm-table td { white-space: normal; }
.adm-select-sm { padding: 6px 30px 6px 10px; font-size: 13px; min-width: 120px; border-radius: 10px; }
.adm-input-sm { padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.adm-details-cell { min-width: 220px; max-width: 420px; overflow-wrap: anywhere; color: var(--text-2); }

/* tags */
.adm-tag-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 14px; align-items: start; }
.adm-tag-submit { padding-top: 25px; }
@media (max-width: 860px) {
  .adm-tag-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .adm-tag-submit { padding-top: 0; grid-column: 1 / -1; }
}
@media (max-width: 480px) { .adm-tag-form { grid-template-columns: minmax(0, 1fr); } }

.adm-hue {
  -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 99px; margin: 14px 0; cursor: pointer;
  background: linear-gradient(90deg, hsl(0 100% 55%), hsl(60 100% 55%), hsl(120 100% 50%), hsl(180 100% 50%), hsl(240 100% 62%), hsl(300 100% 58%), hsl(360 100% 55%));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.adm-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 99px; background: #fff; border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 3px 8px rgba(0, 0, 0, 0.6); }
.adm-hue::-moz-range-thumb { width: 16px; height: 16px; border-radius: 99px; background: #fff; border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.adm-hue:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.adm-tag-row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 12px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line);
}
.adm-tag-row.is-hidden .adm-tag-preview { opacity: 0.5; }
.adm-tag-preview { min-width: 0; }
.adm-tag-edit { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) 76px auto; gap: 10px; align-items: center; min-width: 0; }
.adm-tag-edit .adm-hue { margin: 0; }
@media (max-width: 860px) {
  .adm-tag-row { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-tag-edit { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 480px) {
  .adm-tag-edit { grid-template-columns: minmax(0, 1fr) 76px; }
  .adm-tag-edit .adm-tag-hue { grid-column: 1 / -1; grid-row: 2; }
  .adm-tag-edit > .btn { grid-column: 1 / -1; }
}

/* token & links */
.adm-token-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-preview { position: sticky; top: 64px; min-width: 0; }
@media (max-width: 1100px) {
  .adm-token-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-preview { position: static; }
}
.adm-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.adm-fieldset[disabled] .input, .adm-fieldset[disabled] .textarea, .adm-fieldset[disabled] .select { opacity: 0.75; cursor: not-allowed; }
.adm-link-row { display: grid; grid-template-columns: 150px minmax(0, 0.8fr) minmax(0, 1.4fr) auto; gap: 10px; align-items: start; }
@media (max-width: 720px) {
  .adm-link-row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
  .adm-link-row > .field { grid-column: 1; }
  .adm-link-row > .btn { grid-column: 2; grid-row: 1; }
}

/* Sign-in / sign-up card (shared by /login and /signup). */
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 140px);
  padding: 12px 0 24px;
}
.auth-card {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: var(--r-xl);
}
.auth-card > * { position: relative; z-index: 2; }
.auth-brand { display: grid; justify-items: center; gap: 4px; margin-bottom: 8px; }
.auth-brand svg { max-width: 100%; height: auto; }
.auth-word { font-size: clamp(40px, 11vw, 56px); line-height: 1; margin-top: 10px; }
.auth-slogan {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.auth-at { position: relative; }
.auth-at > span {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-weight: 700; pointer-events: none;
}
.auth-at .input { padding-left: 30px; }
.auth-pw { position: relative; }
.auth-pw .input { padding-right: 48px; }
.auth-pw .btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; padding: 0; }
.auth-pw .btn:active { transform: translateY(-50%) scale(0.95); }
@media (max-width: 720px) {
  .auth-wrap { min-height: auto; padding-top: 8px; }
  .auth-card { padding: 22px 16px 20px; }
}
.auth-card { animation: rise 450ms var(--ease) both; }

﻿/* /notes */
.notes-item { padding: 14px 16px; }
.notes-head { border-radius: 12px; margin: -4px -6px 8px; padding: 4px 6px; }
.notes-head:hover { background: rgba(255, 255, 255, 0.04); }
.notes-body {
  margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}

/* /settings */
.st-nav {
  position: sticky; top: 10px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 6px; margin: 0 0 18px; border-radius: 16px;
  background: rgba(10, 10, 12, 0.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.st-nav::-webkit-scrollbar { display: none; }
.st-nav .chip { flex: none; }
.st-section { padding: 20px; scroll-margin-top: 80px; }
.st-section > * { position: relative; z-index: 2; }
.st-section-head { margin-bottom: 16px; }
.st-section-head p { margin: 4px 0 0; }

.st-media { display: grid; gap: 0; }
.st-cover { aspect-ratio: 3 / 1; border-radius: 16px; }
.st-cover-eyes { position: absolute; right: 14px; bottom: 12px; opacity: 0.8; }
.st-cover-actions { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.st-cover-actions .btn { background: rgba(5, 5, 5, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.st-uploading {
  position: absolute; inset: 0; display: grid; place-items: center; grid-auto-flow: column; gap: 10px; place-content: center;
  background: rgba(5, 5, 5, 0.55); font-weight: 700; font-size: 13px; z-index: 3;
}
.st-avatar-row { display: flex; align-items: flex-end; gap: 14px; margin: -34px 0 0 16px; position: relative; z-index: 2; }
.st-avatar { position: relative; padding: 4px; border-radius: 99px; background: var(--bg); box-shadow: 0 0 0 1px rgba(255, 170, 40, 0.3); flex: none; }
.st-avatar .avatar { display: block; }
.st-avatar-busy { position: absolute; inset: 4px; border-radius: 99px; display: grid; place-items: center; background: rgba(5, 5, 5, 0.6); }
.st-avatar-row .row-wrap { padding-bottom: 2px; }

.st-at { position: relative; }
.st-at > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 700; pointer-events: none; }
.st-at .input { padding-left: 30px; }

.st-links { border: 0; padding: 0; margin: 0; min-width: 0; }
.st-link-row { display: flex; align-items: flex-start; gap: 8px; }
.st-link-row .select { width: 130px; flex: none; }
.st-link-row .btn-icon { flex: none; margin-top: 2px; }

.st-savebar {
  position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-top: 4px; border-radius: 16px;
  background: rgba(16, 16, 18, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--glass-edge);
}

.st-switches { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-switch-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; cursor: pointer; }
.st-switch-row:hover { background: rgba(255, 255, 255, 0.03); }
.st-switch-title { font-weight: 700; display: block; }

.st-providers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-provider { height: auto; min-height: 58px; padding: 10px 16px; justify-content: flex-start; white-space: normal; }
.st-flow { padding: 14px 16px; }
.st-flow p { margin: 8px 0 0; }
.st-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--text-3); }
.st-steps li { display: inline-flex; align-items: center; gap: 6px; }
.st-steps li.on { color: var(--amber); }
.st-steps li.done { color: var(--green); }
.st-dot { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; box-shadow: inset 0 0 0 1.5px currentColor; }
.st-message {
  margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  background: rgba(0, 0, 0, 0.4); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); max-height: 200px; overflow: auto;
}
.st-wallet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; overflow: hidden; }
.st-data-row { display: flex; align-items: center; gap: 14px; }

@media (max-width: 720px) {
  .st-nav { top: 62px; }
  .st-section { padding: 16px 14px; }
  .st-providers { grid-template-columns: minmax(0, 1fr); }
  .st-avatar-row { margin-left: 8px; }
  .st-avatar .avatar { width: 68px !important; height: 68px !important; }
  .st-link-row { flex-wrap: wrap; }
  .st-link-row .select { width: 100%; flex: 1 0 calc(100% - 52px); }
  .st-link-row .field { order: 3; flex: 1 0 100%; }
  .st-wallet, .st-data-row { flex-wrap: wrap; }
  .st-savebar { bottom: calc(var(--mobile-nav-h) + 18px + env(safe-area-inset-bottom)); }
}

/* Profile page (/u/[handle]) */
.pf-head { overflow: hidden; padding: 0; }
.pf-head > * { position: relative; z-index: 2; }
.pf-cover { aspect-ratio: 3 / 1; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.pf-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: none;
}
.pf-cover-eyes { position: absolute; right: 18px; bottom: 16px; opacity: 0.85; z-index: 1; }
.pf-body { padding: 0 20px 18px; }
.pf-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -52px; }
.pf-avatar { position: relative; z-index: 2; flex: none; border-radius: 99px; padding: 4px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-2); }
.pf-avatar .avatar { display: block; }
.pf-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pf-id { margin-top: 12px; }
.pf-name { overflow-wrap: anywhere; }
.pf-bio { margin: 12px 0 0; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 620px; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.pf-link, .pf-joined { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pf-link { color: var(--blue); }
.pf-link:hover span { text-decoration: underline; }
.pf-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pf-joined { color: var(--text-3); }
.pf-counts { display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 12px -8px 0; }
.pf-count { background: none; border: 0; padding: 4px 8px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.pf-count b { color: var(--text); font-family: var(--font-display); font-weight: 600; }
.pf-count:hover { background: rgba(255, 255, 255, 0.05); }
.pf-count:hover span { text-decoration: underline; }

.pf-stats { display: flex; align-items: center; gap: 22px; padding: 16px 20px; margin-top: 14px; flex-wrap: wrap; }
.pf-stats > * { position: relative; z-index: 2; }
.pf-rep { padding-right: 22px; border-right: 1px solid var(--line); }
.pf-rep-score { font-size: 34px; line-height: 1.05; }
.pf-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px 18px; margin: 0; flex: 1; min-width: 0; }

.pf-tabs { margin-bottom: 14px; }
.pf-panel:not([hidden]) { animation: rise 280ms var(--ease); }
.pf-reply { padding: 14px 16px; }
.pf-reply .comment-text { margin: 0; }
.pf-replies { list-style: none; margin: 0; padding: 0; }
.pf-coll { display: block; padding: 10px; border-radius: 18px; transition: transform var(--t) var(--ease); }
.pf-coll > * { position: relative; z-index: 2; }
.pf-coll:hover { transform: translateY(-2px); }
.pf-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-wallet { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }

@media (max-width: 720px) {
  .pf-cover { aspect-ratio: 5 / 2; }
  .pf-cover-eyes { width: 84px; right: 12px; bottom: 10px; }
  .pf-body { padding: 0 14px 14px; }
  .pf-top { margin-top: -40px; }
  .pf-avatar .avatar { width: 80px !important; height: 80px !important; }
  .pf-stats { padding: 14px; gap: 14px; }
  .pf-rep { border-right: 0; padding-right: 0; width: 100%; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .pf-stat-grid { gap: 12px 20px; }
  .pf-wallet { flex-wrap: wrap; }
}
.pf-head { animation: rise 420ms var(--ease) both; }

/* ───────────────────────── Lurko design system ───────────────────────── */

:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f10;
  --graphite: #141415;
  --graphite-2: #1a1a1b;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f1ed;
  --text-2: #a9a6a0;
  --text-3: #6f6c67;
  --amber: #ffa20f;
  --amber-2: #ff9500;
  --amber-3: #ffb53d;
  --amber-ink: #0a0a0a;
  --amber-soft: rgba(255, 162, 15, 0.12);
  --amber-line: rgba(255, 170, 40, 0.35);
  --green: #6fdc8c;
  --red: #ff6b5b;
  --blue: #7ab8ff;

  /* flat frosted surfaces — no gradients, no glow */
  --glass: rgba(22, 22, 23, 0.72);
  --glass-strong: rgba(26, 26, 27, 0.9);
  --glass-edge: inset 0 0 0 1px var(--line);
  --glow: none;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  --font-display: var(--font-inter), "Inter", system-ui, sans-serif;
  --font-pixel: var(--font-tiny5), "Tiny5", ui-monospace, monospace;
  --font-ui: var(--font-inter), "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: var(--font-jetbrains), "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 140ms;
  --t: 260ms;

  --sidebar-w: 248px;
  --rail-w: 340px;
  --topbar-h: 64px;
  --mobile-nav-h: 64px;

  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255, 162, 15, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 8px;
}

#main:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--amber); color: var(--amber-ink); padding: 10px 14px; border-radius: 10px; font-weight: 700;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ───────── typography ───────── */
.display {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}
.h1 { font-family: var(--font-display); font-weight: 650; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.035em; line-height: 1.1; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 650; font-size: 19px; letter-spacing: -0.03em; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }
.amber { color: var(--amber); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--amber); flex: none; }
.eyebrow.bare::before { display: none; }

/* Pixel wordmark — flat amber, no gradient */
.extrude {
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--amber);
}

/* ───────── glass ───────── */
.glass {
  position: relative;
  background: var(--glass);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  isolation: isolate;
}
.glass-strong { background: var(--glass-strong); }
.glass-flat { background: rgba(255, 255, 255, 0.025); box-shadow: var(--glass-edge); border-radius: var(--r); }
.glass-sheen { display: none; }

.panel { padding: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; border: 0; }

/* ───────── layout: top bar + one centred column + footer ───────── */
.page { position: relative; z-index: 1; width: 100%; margin: 0 auto; padding: 28px 24px 72px; min-height: 60vh; }
.page-narrow { max-width: 760px; }
.page-default { max-width: 920px; }
.page-wide { max-width: 1240px; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { display: grid; place-items: center; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 40; transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.topbar.scrolled { background: rgba(10, 10, 10, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; height: 72px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.brand-word { font-family: var(--font-pixel); font-size: 24px; line-height: 1; color: var(--text); letter-spacing: 0.02em; }
.pillnav { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.pill-item { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color var(--t-fast); }
.pill-item:hover { color: var(--text); }
.pill-item[aria-current="page"] { color: var(--amber-ink); }
.pill-dot { width: 5px; height: 5px; background: var(--amber); }
.pill-item[aria-current="page"] .pill-dot { background: var(--amber-ink); }
.topbar-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); color: var(--text); }
.btn-line:hover { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.drop-btn { margin-left: 6px; }
.bell { position: relative; }
.bell[aria-current="page"] { color: var(--amber); }
.bell .nav-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; margin: 0; padding: 0 4px; }
.avatar-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 0; padding: 0; border-radius: 12px; background: none; cursor: pointer; }
.avatar-btn:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: var(--amber); color: var(--amber-ink); display: grid; place-items: center;
}
@media (max-width: 1100px) {
  .drop-btn span { display: none; }
  .drop-btn { width: 40px; padding: 0; }
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .pillnav { justify-self: center; }
}

/* phone bottom bar */
.mobile-nav {
  display: none; position: fixed; z-index: 50; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: var(--mobile-nav-h); border-radius: 16px; padding: 0 6px;
  align-items: center; justify-content: space-around;
  background: rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.mobile-nav a, .mobile-nav .mn-more {
  position: relative; display: grid; place-items: center; gap: 2px; width: 58px; height: 52px; border-radius: 12px; color: var(--text-3); background: none; border: 0; padding: 0; cursor: pointer;
}
.mn-label { font-size: 10px; font-weight: 500; letter-spacing: 0.01em; }
.mobile-nav a[aria-current="page"] { color: var(--amber); }
.mobile-nav .fab { width: 52px; height: 44px; border-radius: 12px; border: 0; color: var(--amber-ink); background: var(--amber); display: grid; place-items: center; cursor: pointer; }
.mobile-nav .menu { bottom: calc(100% + 10px) !important; top: auto !important; }

@media (max-width: 860px) {
  .pillnav, .topbar-actions .drop-btn, .topbar-actions .signin-btn { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; height: 60px; padding: 0 14px; }
  .topbar { background: rgba(10, 10, 10, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
  .mobile-nav { display: flex; }
  .page { padding: 18px 14px 40px; }
  body { padding-bottom: calc(var(--mobile-nav-h) + 24px + env(safe-area-inset-bottom)); }
}

/* footer */
.site-foot { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; overflow: hidden; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 32px 24px 22px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--text-2); }
.foot-links a:hover { color: var(--text); }
.foot-word { font-family: var(--font-pixel); font-size: clamp(90px, 22vw, 300px); line-height: 0.85; text-align: center; color: #161617; margin: 28px 0 14px; user-select: none; letter-spacing: 0.02em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); }

/* ───────── buttons ───────── */
.btn {
  --h: 40px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 10px; border: 0; cursor: pointer; white-space: nowrap;
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-icon { width: var(--h); padding: 0; }
.btn-primary {
  color: var(--amber-ink);
  background: var(--amber);
  box-shadow: none;
}
.btn-primary:hover { background: var(--amber-3); box-shadow: none; }
.btn-ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.btn-amber-ghost { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 162, 15, 0.45); }
.btn-amber-ghost:hover { background: rgba(255, 162, 15, 0.1); box-shadow: inset 0 0 0 1px var(--amber); }
.btn-danger { background: rgba(255, 107, 91, 0.12); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 107, 91, 0.25); }
.btn-danger:hover { background: rgba(255, 107, 91, 0.2); }
.btn-drop { width: 100%; }
.btn .spinner { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; border: 0; border-radius: 8px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: all var(--t-fast) var(--ease);
}
.chip:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.chip[aria-pressed="true"], .chip.on { color: var(--amber-ink); background: var(--amber); box-shadow: none; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: hsl(var(--h, 34) 100% 64%);
  box-shadow: inset 0 0 0 1px hsl(var(--h, 34) 100% 55% / 0.45);
  background: hsl(var(--h, 34) 100% 50% / 0.07);
}
.tag:hover { background: hsl(var(--h, 34) 100% 50% / 0.14); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.06); color: var(--text-2); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-green { background: rgba(111, 220, 140, 0.1); color: var(--green); }
.badge-red { background: rgba(255, 107, 91, 0.1); color: var(--red); }
.badge-blue { background: rgba(122, 184, 255, 0.1); color: var(--blue); }

/* segmented tabs */
.tabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; background: none; color: var(--text-2); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--amber-ink); }
.tab-pill { position: absolute; inset: 0; border-radius: 8px; background: var(--amber); z-index: -1; }

/* ───────── forms ───────── */
.field { display: grid; gap: 6px; }
.label { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.hint { font-size: 12px; color: var(--text-3); }
.err { font-size: 12px; color: var(--red); }
.input, .textarea, .select {
  width: 100%; border: 0; outline: 0; color: var(--text); font: inherit;
  background: rgba(0, 0, 0, 0.5); border-radius: 10px; padding: 11px 13px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 1px var(--amber); background: #000; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--red); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input.mono { font-size: 14px; letter-spacing: 0.01em; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; inset: 0; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: background var(--t) var(--ease); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; transition: transform var(--t) var(--ease-spring); }
.switch input:checked + span { background: var(--amber); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--amber-ink); }
.switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.search {
  position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 10px;
  background: #000; box-shadow: inset 0 0 0 1px var(--line-2);
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--amber); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.search kbd { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }

/* ───────── cards ───────── */
.card { padding: 18px 18px 14px; }
.card + .card { margin-top: 0; }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 380ms var(--ease), box-shadow var(--t) var(--ease); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-head .who { min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.post-head .name { font-weight: 600; letter-spacing: -0.01em; }
.post-head .handle, .post-head .time { color: var(--text-3); font-size: 13px; }
.post-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 6px; }
.post-body { color: var(--text-2); margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rich a.mention, .rich a.wref, .rich a.tref { color: var(--amber); font-weight: 600; }
.rich a.ext { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(122, 184, 255, 0.35); text-underline-offset: 3px; }
.rich a:hover { text-decoration: underline; }

.wallet-strip {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.wallet-strip:hover { box-shadow: inset 0 0 0 1px var(--amber-line); }
.addr {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px 0 10px; border-radius: 7px; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 13px; color: var(--text); background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background var(--t-fast);
}
.addr:hover { background: rgba(255, 255, 255, 0.09); }
.addr svg { width: 14px; height: 14px; color: var(--text-3); }
.addr.copied { color: var(--green); box-shadow: inset 0 0 0 1px rgba(111, 220, 140, 0.4); }
.addr.copied svg { color: var(--green); }

.signal { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: end; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.signal-stats { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 560px) { .signal { grid-template-columns: minmax(0, 1fr); } }
.stat b { display: block; font-family: var(--font-pixel); font-size: 20px; font-weight: 400; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; }
.signal-foot { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.attachments { display: grid; gap: 8px; margin-bottom: 12px; }
.attach {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0;
}
.attach:hover { background: rgba(255, 255, 255, 0.06); }
.attach .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-img { border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); max-height: 360px; }
.attach-img img { width: 100%; height: 100%; object-fit: cover; }

.actions { display: flex; align-items: center; gap: 4px; margin: 0 -6px; flex-wrap: wrap; }
.act {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 8px; border: 0;
  background: none; color: var(--text-3); font-weight: 500; font-size: 13px; cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.act:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.act svg { width: 19px; height: 19px; }
.act.on { color: var(--amber); }
.act.on-green { color: var(--green); }
.act-spacer { flex: 1; }
.reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.react {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 8px; border: 0; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
.react:hover { background: rgba(255, 255, 255, 0.08); }
.react.on { background: var(--amber); color: var(--amber-ink); box-shadow: none; }
.react .emo { font-size: 15px; line-height: 1; }

.quote-embed { border-radius: 12px; padding: 14px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 12px; }
.repost-line { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; font-weight: 600; margin: -4px 0 10px; }
.repost-line svg { width: 15px; height: 15px; }

/* avatar / identicon */
.avatar { display: inline-block; vertical-align: middle; position: relative; flex: none; border-radius: 30%; overflow: hidden; background: #17120b; box-shadow: inset 0 0 0 1px var(--line-2); }
.avatar img, .avatar svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.avatar.round { border-radius: 99px; }
.role-pill { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); text-transform: uppercase; }

/* ───────── menus, modals, toasts ───────── */
.menu {
  position: absolute; z-index: 60; min-width: 210px; padding: 6px; border-radius: 12px;
  background: rgba(18, 18, 19, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -12px rgba(0, 0, 0, 0.85);
}
.menu-item {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left;
}
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, 0.07); outline: none; }
.menu-item svg { width: 17px; height: 17px; color: var(--text-3); }
.menu-item.danger { color: var(--red); }
.menu-item.danger svg { color: var(--red); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

.modal-root { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  position: relative; width: min(640px, 100%); max-height: min(88dvh, 900px); overflow: auto; padding: 22px;
  border-radius: var(--r-xl);
  background: #121213;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 90px -20px rgba(0, 0, 0, 0.95);
  overscroll-behavior: contain;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .modal-root { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
}

.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
@media (max-width: 860px) { .toasts { bottom: calc(var(--mobile-nav-h) + 22px + env(safe-area-inset-bottom)); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: 14px;
  background: rgba(24, 24, 26, 0.95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--glass-edge), 0 16px 40px -10px rgba(0, 0, 0, 0.9);
}
.toast .dot { width: 7px; height: 7px; border-radius: 0; background: var(--amber); flex: none; }
.toast.ok .dot { background: var(--green); }
.toast.err .dot { background: var(--red); }

/* ───────── states ───────── */
.skel { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.05); border-radius: 8px; }
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.state { padding: 44px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.state .h3 { font-size: 18px; }
.state p { margin: 0; color: var(--text-2); max-width: 420px; }
.state-icon { width: 92px; height: 92px; margin-bottom: 4px; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: var(--text-2);
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--amber); }
.notice.warn { background: rgba(255, 162, 15, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 162, 15, 0.22); }
.notice.err { background: rgba(255, 107, 91, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 107, 91, 0.25); }
.notice.err svg { color: var(--red); }
.spinner { width: 20px; height: 20px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: currentColor; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* comments */
.thread { display: grid; gap: 2px; }
.comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.comment-body { min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.comment-text { margin: 3px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.comment-text.gone { color: var(--text-3); font-style: italic; }
.comment-acts { display: flex; gap: 2px; margin-left: -8px; }
.comment-acts .act { height: 30px; font-size: 12px; padding: 0 8px; }
.comment-acts .act svg { width: 16px; height: 16px; }
.replies { margin-left: 16px; padding-left: 14px; border-left: 1px solid var(--line-2); }
@media (max-width: 720px) { .replies { margin-left: 6px; padding-left: 10px; } }
.op-pill { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: var(--amber); color: var(--amber-ink); }

/* misc */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; transition: background var(--t-fast); }
.list-row:hover { background: rgba(255, 255, 255, 0.04); }
.rank { width: 22px; font-family: var(--font-pixel); font-size: 18px; color: var(--text-3); text-align: center; flex: none; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { color: var(--amber); font-weight: 600; }
.link:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-3); padding: 0 6px; }
.footer-links a:hover { color: var(--text-2); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }

/* collection covers */
.cover { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; }
.cover-ember { background: var(--amber); }
.cover-ember .cover-eyes { filter: brightness(0); }
.cover-dusk { background: #2a1904; }
.cover-night { background: #111112; }
.cover-signal { background: #efebe4; }
.cover-glass { background: #1c1c1d; }
.cover-void { background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-eyes { position: absolute; right: 14px; bottom: 12px; width: 70px; opacity: 0.9; }

@media (max-width: 560px) { .hide-sm { display: none; } }

/* token launch */
.token-hero { position: relative; overflow: hidden; padding: 26px; }
.token-hero .eyes-bg { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); opacity: 0.18; pointer-events: none; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px 8px; border-radius: 10px; text-align: center; background: #000; box-shadow: inset 0 0 0 1px var(--line-2); }
.countdown b { display: block; font-family: var(--font-pixel); font-size: 28px; font-weight: 400; line-height: 1.1; color: var(--amber); }
.countdown span { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.status-dot { width: 7px; height: 7px; background: var(--amber); display: inline-block; }
.status-dot.live { background: var(--green); animation: blinkdot 1.6s steps(1) infinite; }
@keyframes blinkdot { 50% { opacity: 0.25; } }
.placeholder-val { color: var(--text-3); font-style: italic; }

/* ───────── landing (Discover) ───────── */
.landing { position: relative; display: grid; justify-items: center; text-align: center; padding: 34px 0 10px; margin-bottom: 26px; }
.landing-mark { position: relative; display: inline-block; text-align: left; }
.landing-kicker { display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--font-pixel); text-transform: uppercase; font-size: clamp(20px, 3vw, 38px); line-height: 1; color: var(--text); }
.landing-kicker i { width: 0.32em; height: 0.32em; background: var(--amber); transform: translateY(0.25em); }
.landing-word { margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(96px, 19vw, 250px); line-height: 0.82; letter-spacing: 0.01em; color: var(--text); }
.landing-eyes { position: relative; z-index: 0; margin-top: clamp(18px, 3vw, 40px); width: min(760px, 92%); }
.landing-eyes svg { width: 100%; height: auto; }
.landing-sub { position: relative; z-index: 1; max-width: 440px; margin: 26px auto 0; color: var(--text-2); font-size: 14px; }
.lp {
  position: relative; z-index: 2; width: min(720px, 100%); margin-top: clamp(-52px, -3.6vw, -22px); text-align: left;
  border-radius: 20px; padding: 10px;
  background: rgba(28, 28, 29, 0.42); -webkit-backdrop-filter: blur(28px) saturate(120%); backdrop-filter: blur(28px) saturate(120%);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 0 1px var(--line); }
.lp-tab { position: relative; z-index: 1; height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.lp-tab:hover { color: var(--text); }
.lp-tab[aria-selected="true"] { color: #0a0a0a; }
.lp-pill { position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: var(--text); }
.lp-count { font-family: var(--font-pixel); font-size: 22px; line-height: 1; color: var(--amber); padding-right: 8px; }
.lp-count i { font-style: normal; color: var(--text-3); font-size: 14px; }
.lp-main { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 168px; padding: 8px 10px 6px 0; }
.lp-glyph { display: grid; place-items: center; align-self: stretch; color: var(--amber); }
.lp-body { min-width: 0; }
.lp-title { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); }
.lp-drop { display: grid; gap: 8px; }
.lp-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.6); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast); }
.lp-field:focus-within { box-shadow: inset 0 0 0 1px var(--amber); }
.lp-field.bad { box-shadow: inset 0 0 0 1px var(--red); }
.lp-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 14px; }
.lp-field input::placeholder { color: var(--text-3); font-family: var(--font-ui); }
.lp-field .btn { --h: 40px; flex: none; }
.lp-hint { margin: 0; font-size: 12px; color: var(--text-3); }
.lp-hint.err { color: var(--red); }
.lp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lp-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; transition: box-shadow var(--t-fast), background var(--t-fast); }
.lp-item:hover { box-shadow: inset 0 0 0 1px var(--amber-line); background: rgba(0, 0, 0, 0.6); }
.lp-rank { font-family: var(--font-pixel); font-size: 18px; color: var(--amber); line-height: 1; }
.lp-name { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.lp-meta { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--amber); }
.lp-more:hover { text-decoration: underline; }

.token-strip {
  display: flex; align-items: center; gap: 18px; padding: 14px 16px 14px 20px; border-radius: 14px; margin-bottom: 34px;
  background: #000; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast);
}
.token-strip:hover { box-shadow: inset 0 0 0 1px var(--amber-line); }
.token-strip-word { font-family: var(--font-pixel); text-transform: uppercase; font-size: 22px; color: var(--amber); line-height: 1; white-space: nowrap; }

.block { margin-bottom: 40px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-title { margin: 0; font-family: var(--font-pixel); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3vw, 34px); line-height: 1; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; padding: 14px; border-radius: 14px; min-width: 0; transition: box-shadow var(--t-fast), transform var(--t) var(--ease); }
.tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.tile-rank { font-family: var(--font-pixel); font-size: 30px; line-height: 1; color: var(--amber); margin-bottom: 10px; }
.tile-name { font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.tile-meta { font-size: 12px; color: var(--text-3); }

.feed-layout { display: grid; grid-template-columns: 270px minmax(0, 720px); gap: 40px; justify-content: center; align-items: start; }
.feed-side { position: sticky; top: 92px; display: grid; gap: 22px; align-content: start; }
.feed-side > p { margin-top: -12px !important; }
.side-block { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-title { margin: 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .feed-side { position: static; }
  .side-block { display: none; }
}
@media (max-width: 720px) {
  .landing { padding: 14px 0 0; }
  .lp { padding: 8px; border-radius: 16px; }
  .lp-tab { padding: 0 11px; font-size: 12px; }
  .lp-main { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 12px 4px 4px; }
  .lp-glyph { display: none; }
  .lp-field { height: auto; flex-wrap: wrap; padding: 10px; }
  .lp-field input { height: 32px; flex-basis: calc(100% - 40px); }
  .lp-field .btn { width: 100%; }
  .lp-list { grid-template-columns: minmax(0, 1fr); }
  .token-strip { flex-wrap: wrap; gap: 8px 12px; padding: 14px; }
  .token-strip .grow { flex-basis: 100%; order: 3; white-space: normal; }
  .token-strip .btn { margin-left: auto; }
}

/* motion — keep it subtle; honour reduced motion */
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 100% { transform: scale(1); } }
.pop { animation: pop 380ms var(--ease-spring); }
@keyframes ring { from { transform: scale(0.4); opacity: 0.7; } to { transform: scale(2.2); opacity: 0; } }
.burst::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 99px; border: 2px solid var(--amber); animation: ring 520ms var(--ease) forwards; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .tilt { transform: none !important; }
}
@media (hover: none) {
  .glass { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* calm surfaces: no 3D tilt */
.tilt { transform: none !important; }
