/* ═══════════════════════════════════════════════════════════════════
   SPIRACHRON — celestial-horological identity
   A committed single dark world: a midnight observatory in champagne
   gold. Every color painted explicitly; no theme borrowing.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --abyss: #0b0e1a;          /* page ground */
  --abyss-deep: #070912;     /* recessed wells */
  --surface: #131829;        /* cards */
  --surface-2: #1a2138;      /* raised / hover */
  --surface-3: #232c4a;      /* highest */
  --hairline: rgba(216, 180, 90, 0.14);
  --hairline-soft: rgba(237, 233, 220, 0.08);
  --gold: #d8b45a;
  --gold-bright: #f0d48a;
  --gold-dim: rgba(216, 180, 90, 0.55);
  --violet: #7c6fe8;
  --violet-soft: rgba(124, 111, 232, 0.16);
  --ink: #ede9dc;            /* primary text, warm parchment */
  --ink-mid: #b8b5ab;
  --muted: #8b90a5;
  --emerald: #3fbf8a;        /* free / success */
  --rose: #e86a7c;           /* commerce / alerts */
  --shadow-lg: 0 24px 60px rgba(3, 4, 10, 0.6);
  --shadow-sm: 0 6px 18px rgba(3, 4, 10, 0.45);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --rail-w: 232px;
  --panel-w: 300px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

body {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 111, 232, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(216, 180, 90, 0.07), transparent 55%),
    var(--abyss);
  background-attachment: fixed;
  height: 100%;
  overflow: hidden;               /* the page itself never scrolls — only .main-scroll does */
}
html { height: 100%; }

::selection { background: rgba(216, 180, 90, 0.28); color: var(--ink); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

button { font-family: var(--font-body); cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--abyss-deep);
  border: 1px solid var(--hairline-soft);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 14px;
  transition: border-color 0.18s ease;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--gold-dim); }
textarea { resize: vertical; min-height: 84px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── App shell ─────────────────────────────────────────────────── */

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--panel-w);
  height: 100vh;
  height: 100dvh;
  max-width: 1460px;
  margin: 0 auto;
  overflow: hidden;
}

/* ── Left rail ─────────────────────────────────────────────────── */

.rail {
  height: 100%;
  min-height: 0;
  padding: 26px 18px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 22px;
}
.wordmark .sigil { width: 36px; height: 36px; flex: none; }
.wordmark .sigil svg { display: block; width: 100%; height: 100%; }
.wordmark .name {
  font-family: var(--font-display);
  font-size: 16.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.wordmark .name span { color: var(--ink); }

.rail-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink-mid);
  background: transparent;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.rail-link svg { width: 21px; height: 21px; flex: none; }
.rail-link:hover { background: var(--surface); color: var(--ink); }
.rail-link.active {
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.13), rgba(216, 180, 90, 0.04));
  border-color: var(--hairline);
  color: var(--gold-bright);
}
.rail-sep {
  margin: 12px 10px;
  border: 0;
  border-top: 1px solid var(--hairline-soft);
}
.rail-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
}

.rail-me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
}
.rail-me:hover { background: var(--surface-2); }
.rail-me .who { min-width: 0; }
.rail-me .who .n { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-me .who .h { font-size: 12.5px; color: var(--muted); }

/* ── Center column ─────────────────────────────────────────────── */

.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The only thing on the page that scrolls. */
.main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 34px 120px;
  scrollbar-gutter: stable;
}

.main-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 16px;
  background: linear-gradient(to bottom, var(--abyss) 78%, transparent);
  backdrop-filter: blur(6px);
}
.main-head h1 { font-size: 26px; }
.main-head .crumb { font-size: 13px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.14), rgba(216, 180, 90, 0.03));
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.wallet-chip:hover { border-color: var(--gold-dim); }
.wallet-chip .sym { font-size: 15px; }

/* ── Right panel ───────────────────────────────────────────────── */

.panel {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 22px 120px;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px;
}
.panel-card h3 {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.panel-row .who { min-width: 0; flex: 1; }
.panel-row .who .n { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-row .who .h { font-size: 12px; color: var(--muted); }
.panel-row .val { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-gold {
  background: linear-gradient(135deg, #e3c26e, #c39a3e);
  border-color: rgba(240, 212, 138, 0.6);
  color: #211804;
}
.btn-gold:hover { background: linear-gradient(135deg, #f0d48a, #d0a848); }
.btn-ghost { background: transparent; border-color: var(--hairline-soft); color: var(--ink-mid); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.iconbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  padding: 6px 8px;
  border-radius: 9px;
  transition: color 0.15s ease, background 0.15s ease;
}
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn:hover { color: var(--ink); background: var(--surface-2); }
.iconbtn.lit { color: var(--gold-bright); }
.iconbtn.lit-rose { color: var(--rose); }
.iconbtn.lit-emerald { color: var(--emerald); }

/* ── Avatars & badges ──────────────────────────────────────────── */

.avatar {
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1.5px solid var(--hairline);
  background: var(--surface-2);
  display: block;
}
.avatar svg { display: block; width: 100%; height: 100%; }
.av-24 { width: 24px; height: 24px; }
.av-34 { width: 34px; height: 34px; }
.av-40 { width: 40px; height: 40px; }
.av-48 { width: 48px; height: 48px; }
.av-72 { width: 72px; height: 72px; border-width: 2.5px; }
.av-88 { width: 88px; height: 88px; border-width: 3px; }

/* Icon frames — a ring worn around whatever avatar is inside it. */
.avatar-frame {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; border-radius: 50%;
  padding: var(--frame-w, 3px);
  background: var(--frame-grad);
  box-shadow: 0 0 0 1px rgba(3, 4, 10, 0.55), 0 2px 12px rgba(0, 0, 0, 0.4);
}
.avatar-frame .avatar { flex: none; border-color: rgba(3, 4, 10, 0.5); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
}
.badge-free { color: var(--emerald); border-color: rgba(63, 191, 138, 0.4); background: rgba(63, 191, 138, 0.09); }
.badge-price { color: var(--gold-bright); border-color: rgba(216, 180, 90, 0.45); background: rgba(216, 180, 90, 0.1); font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge-owned { color: var(--violet); border-color: rgba(124, 111, 232, 0.45); background: var(--violet-soft); }
.badge-sold { color: var(--muted); background: var(--surface-2); }

.verified { color: var(--gold); width: 15px; height: 15px; flex: none; }

/* ── Cards & feed ──────────────────────────────────────────────── */

.card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-tight { display: flex; flex-direction: column; gap: 12px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px 12px;
}
.card-head .who { flex: 1; min-width: 0; cursor: pointer; }
.card-head .who .n { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.card-head .who .h { font-size: 12.5px; color: var(--muted); }
.card-head .ts { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

.card-art { display: block; width: 100%; aspect-ratio: 4 / 3; }
.card-art svg { display: block; width: 100%; height: 100%; }

.card-body { padding: 13px 18px 8px; font-size: 14.5px; color: var(--ink-mid); }
.card-body .caption b { color: var(--ink); font-weight: 600; margin-right: 7px; }

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 10px;
}
.card-actions .spacer { flex: 1; }

.comments { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.comment { font-size: 13.5px; color: var(--ink-mid); display: flex; gap: 8px; align-items: baseline; }
.comment b { color: var(--ink); font-weight: 600; flex: none; }
/* ── Followers & following, the Instagram way ── */
.people-page { max-width: 640px; }
.people-tabs { display: flex; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 14px; }
.ptab2 { flex: 1; padding: 12px 8px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.ptab2.on { color: var(--ink); border-bottom-color: var(--gold); }
.people-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline-soft); margin-bottom: 12px; }
.people-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.people-search input { flex: 1; background: none; border: 0; padding: 0; font-size: 15px; color: var(--ink); }
.people-search input:focus { outline: none; box-shadow: none; }
.people-sort { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 10px; font-size: 14px; color: var(--ink-mid); }
.people-sort b { color: var(--ink); }
.people-list { display: flex; flex-direction: column; }
.prow { display: flex; align-items: center; gap: 12px; padding: 9px 2px; }
.prow-av { flex: none; cursor: pointer; }
.prow .b { flex: 1; min-width: 0; cursor: pointer; }
.prow .h { font-weight: 600; color: var(--ink); font-size: 14.5px; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .n { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .acts { display: flex; align-items: center; gap: 4px; flex: none; }
.prow .acts .btn { min-width: 0; justify-content: center; padding: 7px 12px; font-size: 11px; letter-spacing: 0.06em; }
.prow-x, .prow-more { width: 32px; height: 32px; border-radius: 50%; background: none; border: 0; color: var(--ink-mid); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; letter-spacing: 1px; }
.prow-x svg { width: 14px; height: 14px; }
.prow-x:hover, .prow-more:hover { color: var(--ink); background: var(--surface-2); }
.people-more { padding: 16px 2px; text-align: center; font-size: 13px; color: var(--muted); font-style: italic; }
.person-sheet { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.person-sheet .n { font-weight: 600; color: var(--ink); margin-top: 8px; }
.person-sheet .h { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.sheet-acts { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sheet-acts .btn { width: 100%; justify-content: center; }
.sheet-acts .btn.danger { color: var(--rose); }
@media (max-width: 480px) { .prow .acts .btn { padding-left: 10px; padding-right: 10px; } }

/* ── The Market as a shop: product page, cart, checkout, orders ── */
.listing-card { cursor: pointer; }
.listing-card .ph { position: relative; }
.stock-pip, .topbtn .pip.gold {
  position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; color: #211804; background: linear-gradient(135deg, #f0d48a, #d0a848);
}
.topbtn .pip.gold { right: 2px; top: 2px; padding: 1px 6px; font-size: 10.5px; }
.item-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.item-media { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); box-shadow: var(--shadow-sm); }
.item-media svg { display: block; width: 100%; height: 100%; }
.item-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.item-title { font-size: 30px; line-height: 1.15; }
.item-price { font-family: var(--font-mono); font-size: 26px; color: var(--gold-bright); display: flex; align-items: baseline; gap: 10px; }
.item-price .cur { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); }
.item-stock { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald); }
.item-stock.low { color: var(--gold); }
.item-stock.out { color: var(--muted); }
.item-seller { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline-soft); cursor: pointer; }
.item-seller .b { flex: 1; min-width: 0; }
.item-seller .n { font-weight: 600; color: var(--ink); }
.item-seller .h { font-size: 12px; color: var(--muted); }
.item-fulfil { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-mid); }
.item-fulfil svg { width: 16px; height: 16px; color: var(--gold); }
.item-desc { font-size: 15px; line-height: 1.65; color: var(--ink-mid); white-space: pre-wrap; margin: 0; }
.item-desc.dim { color: var(--muted); font-style: italic; }
.item-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.item-buy .btn { flex: 1 1 140px; justify-content: center; }
.item-buy.own { background: rgba(216, 180, 90, 0.06); border: 1px dashed var(--gold-dim); border-radius: 12px; padding: 10px 12px; }
.item-buy.own .s { font-size: 12.5px; color: var(--muted); }
.item-buy.own .btn { flex: none; }
.item-incart { font-size: 13px; color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.item-incart svg { width: 14px; height: 14px; }
.linkbtn { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: inherit; padding: 0; }
.item-side { display: flex; gap: 16px; }
.vact.lit { color: var(--gold-bright); }
.terms-box.slim { margin-top: 6px; }
.terms-box.slim p { font-size: 12.5px; }
.qty-step { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty-step button { width: 40px; height: 40px; background: none; border: 0; color: var(--ink); font-size: 18px; cursor: pointer; }
.qty-step button:disabled { color: var(--muted); cursor: default; }
.qty-step .q { min-width: 32px; text-align: center; font-family: var(--font-mono); font-size: 15px; }
.qty-step.small button { width: 32px; height: 32px; font-size: 16px; }
.qty-step.small { border-radius: 10px; }
.qty-step.small .vact { margin-left: 8px; }
.goldcheck.small svg { width: 12px; height: 12px; }
@media (max-width: 760px) { .item-page { grid-template-columns: 1fr; gap: 16px; } .item-title { font-size: 24px; } }

.cart-page, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cart-lines, .co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cart-group, .co-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.co-card h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; color: var(--gold); margin-bottom: 12px; }
.co-card h3 svg { width: 16px; height: 16px; }
.cart-seller { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 10px; cursor: pointer; }
.cart-seller .h { font-size: 12px; color: var(--muted); font-weight: 400; }
.cart-line, .co-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hairline-soft); }
.cart-line .ph, .co-line .ph { position: relative; flex: none; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; cursor: pointer; }
.co-line .ph { width: 52px; height: 52px; }
.cart-line .ph svg, .co-line .ph svg { display: block; width: 100%; height: 100%; }
.cart-line .ph img, .co-line .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-line .b, .co-line .b { flex: 1; min-width: 0; }
.cart-line .t, .co-line .t { font-weight: 600; color: var(--ink); cursor: pointer; }
.co-line .t .x { color: var(--muted); font-family: var(--font-mono); font-size: 12px; margin-left: 4px; }
.cart-line .s, .co-line .s { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.cart-line .v, .co-line .v { font-family: var(--font-mono); color: var(--gold-bright); flex: none; }
.cart-summary { position: sticky; top: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); }
.cart-summary h3 { font-size: 18px; color: var(--gold); margin-bottom: 10px; }
.cart-summary .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-mid); padding: 5px 0; }
.cart-summary .row .v { font-family: var(--font-mono); color: var(--ink); }
.cart-summary .row.total { border-top: 1px solid var(--hairline-soft); margin-top: 6px; padding-top: 10px; font-weight: 600; color: var(--ink); }
.cart-summary .row.total .v { color: var(--gold-bright); font-size: 16px; }
.cart-summary .s { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.co-grid .f, .co-card .f { display: flex; flex-direction: column; gap: 5px; }
.co-grid .f.wide { grid-column: 1 / -1; }
.co-grid .f span, .co-card .f span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(7, 9, 18, 0.35); border: 1px solid var(--hairline-soft); margin-bottom: 12px; }
.pay-row .t { font-weight: 600; color: var(--ink); }
.pay-row .s { font-size: 12.5px; color: var(--muted); }
.pay-row.short { border-color: rgba(232, 106, 124, 0.45); }
.pay-row.short .s b { color: var(--rose); }
.order-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.order-card:hover { border-color: var(--gold-dim); }
.order-card .oh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.order-card .d { font-size: 12px; color: var(--muted); }
.order-card .v { font-family: var(--font-mono); color: var(--gold-bright); }
.order-card .ob { display: flex; gap: 12px; align-items: center; }
.order-card .thumbs { display: flex; gap: 4px; flex: none; }
.order-card .thumbs .ph { position: relative; width: 44px; height: 44px; border-radius: 9px; overflow: hidden; display: inline-block; }
.order-card .thumbs .ph svg { display: block; width: 100%; height: 100%; }
.order-card .thumbs .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.order-card .b { min-width: 0; }
.order-card .t { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card .s { font-size: 12.5px; color: var(--muted); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--hairline); color: var(--ink-mid); }
.status.placed { color: var(--gold); border-color: rgba(216, 180, 90, 0.45); }
.status.shipped { color: var(--violet); border-color: rgba(124, 111, 232, 0.45); }
.status.delivered { color: var(--emerald); border-color: rgba(63, 191, 138, 0.45); }
.status.cancelled { color: var(--muted); }
.order-hero { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: rgba(216, 180, 90, 0.08); border: 1px solid var(--gold-dim); }
.order-hero svg { width: 26px; height: 26px; color: var(--gold-bright); flex: none; }
.order-hero h2 { font-size: 20px; color: var(--gold-bright); margin-bottom: 4px; }
.order-hero p { margin: 0; color: var(--ink-mid); font-size: 13.5px; }
.order-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.order-head .s { font-size: 12.5px; color: var(--muted); }
.order-steps { display: flex; gap: 6px; margin-bottom: 8px; }
.order-steps .step { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.order-steps .step i { display: block; height: 4px; border-radius: 999px; background: var(--surface-2); }
.order-steps .step.done { color: var(--gold); }
.order-steps .step.done i { background: linear-gradient(90deg, #d8b45a, #f0d48a); }
.order-totals { border-top: 1px solid var(--hairline-soft); margin-top: 6px; padding-top: 10px; }
.order-totals .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-mid); padding: 4px 0; }
.order-totals .row .v { font-family: var(--font-mono); color: var(--gold-bright); }
.order-addr { font-style: normal; font-size: 14px; line-height: 1.6; color: var(--ink-mid); }
@media (max-width: 860px) { .cart-page, .checkout { grid-template-columns: 1fr; } .cart-summary { position: static; } .co-grid { grid-template-columns: 1fr; } }

/* ── Popups: a journal entry, a saved post, closed with an X ── */
.modal-x {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; margin-left: auto;
  background: rgba(7, 9, 18, 0.55); border: 1px solid var(--hairline); color: var(--ink-mid); cursor: pointer;
}
.modal-x svg { width: 16px; height: 16px; }
.modal-x:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.modal-x.back { margin-left: 0; margin-right: 2px; }
.trail-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); vertical-align: middle; margin-left: 6px; }
.modal-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-headrow-tight { align-items: center; margin-bottom: 10px; }
.jcard-tap { cursor: pointer; }
.jcard-tap:hover .jcard { border-color: var(--gold-dim); }
.journal-modal .jcard { margin: 0; }
.post-modal .fpost { margin: 0; }

/* ── A post's own page: the voices beneath it, given room ── */
.post-page { gap: 18px; }
.voices {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 22px 24px 24px; box-shadow: var(--shadow-sm);
}
.voices-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.voices-head h2 { font-size: 24px; color: var(--gold); }
.voices-head .s { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.voice-composer { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--hairline-soft); }
.voices, .voice-composer, .voice-list, .voice { min-width: 0; max-width: 100%; }
.voice-composer .vc { flex: 1 1 0; min-width: 0; width: 0; }
.voice-composer textarea { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical; font-size: 15px; line-height: 1.55; padding: 14px 16px; border-radius: 14px; }
.voice-composer .vc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.voice-composer .vc-row .hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-composer .vc-row .btn { flex: none; margin-left: auto; }
.voice-list { display: flex; flex-direction: column; }
.voice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 4px; border-bottom: 1px solid var(--hairline-soft); }
.voice:last-child { border-bottom: 0; padding-bottom: 6px; }
.voice .vb { flex: 1; min-width: 0; }
.voice .vh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.voice .vh .n { font-weight: 600; color: var(--ink); cursor: pointer; }
.voice .vh .h { font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.voice .vh .t { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.voice .vt { font-size: 15.5px; line-height: 1.65; color: var(--ink-mid); white-space: pre-wrap; word-break: break-word; }
.voice-empty { padding: 26px 8px 16px; text-align: center; color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 17px; }
/* What can be done to a voice: reply, withdraw, unfold its replies. */
.voice-acts { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 8px; }
.vact {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px;
  background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.vact svg { width: 14px; height: 14px; }
.vact:hover { color: var(--ink); }
.vact.danger:hover { color: var(--rose); }
.vact.reply-toggle { color: var(--gold); }
.vact.reply-toggle .line { display: inline-block; width: 22px; height: 1px; background: var(--gold-dim); margin-right: 4px; }
.vact.reply-toggle.on { color: var(--gold-bright); }
.replies { margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--hairline); }
.replies .replies { padding-left: 10px; }
/* Three levels in, the thread stops stepping right and simply continues. */
.voice.deep .replies { padding-left: 0; border-left-color: var(--hairline-soft); }
.voice.reply .vb { min-width: 0; }
.voice.reply { padding: 12px 0; border-bottom: 0; }
.voice.reply .vt { font-size: 14.5px; }
.reply-composer { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.reply-composer .vc { flex: 1 1 0; min-width: 0; width: 0; }
.reply-composer textarea { display: block; width: 100%; min-width: 0; box-sizing: border-box; min-height: 64px; resize: vertical; font-size: 14.5px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; }
.reply-composer .vc-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .voices { padding: 18px 16px 20px; border-radius: 14px; }
  .voice-composer { gap: 10px; }
  .voice { gap: 12px; padding: 16px 0; }
}

.comment-form { display: flex; gap: 8px; padding: 0 18px 16px; }
.comment-form input { flex: 1; border-radius: 999px; padding: 8px 16px; font-size: 13.5px; }

/* ── Constellations (story row) ────────────────────────────────── */

.orbit-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.orbit-row::-webkit-scrollbar { display: none; }
.orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: none;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--ink-mid);
  padding: 0;
}
.orbit .ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--gold), var(--violet), var(--gold-bright), var(--gold));
}
.orbit .ring .avatar { width: 100%; height: 100%; border-width: 2.5px; border-color: var(--abyss); }
.orbit .nm { font-size: 11.5px; max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Threads ───────────────────────────────────────────────────── */

.thread {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 15px 18px 8px;
}
.thread .txt { font-size: 15px; color: var(--ink); padding: 6px 0 4px; white-space: pre-wrap; }
.thread-replies { border-left: 2px solid var(--hairline); margin: 8px 0 10px 19px; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.thread-reply { display: flex; gap: 10px; }
.thread-reply .b { font-size: 13.5px; color: var(--ink-mid); }
.thread-reply .b .n { font-weight: 600; color: var(--ink); margin-right: 6px; }

.composer {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
}
.composer .col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.composer textarea { min-height: 60px; border: 0; background: transparent; padding: 6px 2px; font-size: 15.5px; }
.composer .row { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }

/* ── Communities ───────────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.comm-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.comm-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.comm-card .banner { height: 74px; }
.comm-card .banner svg { display: block; width: 100%; height: 100%; }
.comm-card .body { padding: 14px 16px 16px; }
.comm-card .body h3 { font-size: 18px; margin-bottom: 3px; }
.comm-card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; margin: 6px 0 12px; font-family: var(--font-mono); }
.comm-card p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-mid); }

.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 6px;
  flex: none;
  width: 52px;
}
.vote-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 4px;
  border-radius: 8px;
  display: flex;
}
.vote-btn svg { width: 20px; height: 20px; }
.vote-btn:hover { color: var(--ink); background: var(--surface-2); }
.vote-btn.up.on { color: var(--gold-bright); }
.vote-btn.down.on { color: var(--violet); }
.vote-score { font-family: var(--font-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink); }

.rpost { display: flex; border: 1px solid var(--hairline); border-radius: 16px; background: var(--surface); overflow: hidden; }
.rpost .content { flex: 1; min-width: 0; padding: 14px 18px 10px 8px; }
.rpost .content h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.rpost .content .by { font-size: 12.5px; color: var(--muted); margin: 3px 0 8px; }
.rpost .content .by b { color: var(--gold); font-weight: 500; cursor: pointer; }
.rpost .content p { margin: 0 0 6px; font-size: 14px; color: var(--ink-mid); }

/* ── Servers ───────────────────────────────────────────────────── */

.server-view {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  min-height: 560px;
}
.chan-rail {
  background: var(--abyss-deep);
  border-right: 1px solid var(--hairline-soft);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chan-rail .srv-name { font-family: var(--font-display); font-size: 17px; padding: 2px 10px 12px; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 10px; color: var(--gold-bright); }
.chan-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  width: 100%;
  text-align: left;
}
.chan-link:hover { background: var(--surface); color: var(--ink); }
.chan-link.active { background: var(--surface-2); color: var(--gold-bright); }
.chan-link .hash { color: var(--gold-dim); font-family: var(--font-mono); }

.chat-col { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 14px 20px; border-bottom: 1px solid var(--hairline-soft); display: flex; align-items: center; gap: 10px; font-weight: 600; }
.chat-head .desc { font-weight: 400; font-size: 13px; color: var(--muted); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 520px; }
.chat-msg { display: flex; gap: 11px; }
.chat-msg .b { min-width: 0; }
.chat-msg .b .top { display: flex; align-items: baseline; gap: 8px; }
.chat-msg .b .top .n { font-weight: 600; font-size: 14px; color: var(--gold); cursor: pointer; }
.chat-msg .b .top .t { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.chat-msg .b .m { font-size: 14px; color: var(--ink-mid); }
.chat-form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--hairline-soft); }
.chat-form input { flex: 1; border-radius: 12px; }

.server-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.server-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.server-card .banner { height: 86px; position: relative; }
.server-card .banner svg { display: block; width: 100%; height: 100%; }
.server-card .banner .avatar { position: absolute; left: 16px; bottom: -22px; width: 52px; height: 52px; border-width: 3px; border-color: var(--surface); border-radius: 16px; }
.server-card .body { padding: 30px 16px 16px; }
.server-card .body h3 { font-size: 18px; }
.server-card .body p { margin: 5px 0 12px; font-size: 13.5px; color: var(--ink-mid); }
.server-card .meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); display: flex; gap: 14px; margin-bottom: 12px; }

/* ── Media (video & music) ─────────────────────────────────────── */

.media-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.media-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.media-card .thumb { position: relative; aspect-ratio: 16 / 9; }
.media-card .thumb svg { display: block; width: 100%; height: 100%; }
.media-card .thumb .dur {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(7, 9, 18, 0.82);
  border-radius: 7px; padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
}
.media-card .thumb .vtype-tag {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(7, 9, 18, 0.82);
  border: 1px solid rgba(216, 180, 90, 0.35);
  border-radius: 7px; padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-bright);
}
.media-card .thumb .lock {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 9, 18, 0.55);
  color: var(--gold-bright);
}
.media-card .thumb .lock svg { width: 34px; height: 34px; }
.media-card .thumb .badge { position: absolute; left: 10px; top: 10px; }
.media-card .thumb .vod-del {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(7, 9, 18, 0.82); border: 1px solid var(--hairline-soft);
  color: var(--ink-mid); cursor: pointer;
}
.media-card .thumb .vod-del svg { width: 15px; height: 15px; }
.media-card .thumb .vod-del:hover { color: var(--rose); border-color: rgba(232, 106, 124, 0.5); background: rgba(7, 9, 18, 0.95); }
.media-card .body { padding: 13px 15px 14px; }
.media-card .body h3 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.media-card .body .by { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.media-card .body .stats { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 6px; }

.track-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  background: var(--surface);
  padding: 11px 16px 11px 11px;
  transition: border-color 0.15s ease;
}
.track-row:hover { border-color: var(--gold-dim); }
.track-row .cover { width: 58px; height: 58px; border-radius: 11px; overflow: hidden; flex: none; position: relative; cursor: pointer; }
.track-row .cover svg { display: block; width: 100%; height: 100%; }
.track-row .cover .pp {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 9, 18, 0.4);
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.track-row .cover:hover .pp, .track-row.playing .cover .pp { opacity: 1; }
.track-row .cover .pp svg { width: 24px; height: 24px; }
.track-row.playing { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.25); }
.track-row .info { flex: 1; min-width: 0; }
.track-row .info .t { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .info .a { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.track-row .info .a:hover { color: var(--gold); }
.track-row .genre { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); border: 1px solid rgba(124, 111, 232, 0.35); border-radius: 999px; padding: 2px 9px; flex: none; }
.track-row .len { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); flex: none; }

/* ── Player bar ────────────────────────────────────────────────── */

.player-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 60;
  width: min(660px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(19, 24, 41, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-lg);
}
.player-bar .cover { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; }
.player-bar .cover svg { display: block; width: 100%; height: 100%; }
.player-bar .info { flex: 1; min-width: 0; }
.player-bar .info .t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .info .a { font-size: 12px; color: var(--muted); }
.player-bar .prog { height: 3px; border-radius: 2px; background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.player-bar .prog .fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); width: 0%; }
.player-bar .ctl {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(135deg, #e3c26e, #c39a3e);
  color: #211804;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.player-bar .ctl svg { width: 19px; height: 19px; }
.player-bar .x { background: none; border: 0; color: var(--muted); padding: 6px; display: flex; border-radius: 8px; }
.player-bar .x:hover { color: var(--ink); background: var(--surface-2); }
.player-bar .tm { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }

/* ── Watch view ────────────────────────────────────────────────── */

.watch-stage {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  background: var(--abyss-deep);
  position: relative;
  aspect-ratio: 16 / 9;
}
.watch-stage canvas { display: block; width: 100%; height: 100%; }
.watch-stage .veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(4px);
  text-align: center;
  padding: 20px;
}
.watch-stage .veil h3 { font-size: 22px; }
.watch-stage .veil p { color: var(--ink-mid); margin: 0; max-width: 380px; font-size: 14px; }
.watch-ctl {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(7, 9, 18, 0.85));
}
.watch-ctl .pp { background: none; border: 0; color: var(--ink); display: flex; padding: 4px; }
.watch-ctl .pp svg { width: 26px; height: 26px; }
.watch-ctl .bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(237, 233, 220, 0.18); overflow: hidden; cursor: pointer; }
.watch-ctl .bar .fill { height: 100%; background: var(--gold); width: 0%; }
.watch-ctl .tm { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }

/* ── Market ────────────────────────────────────────────────────── */

.listing-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.listing-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.listing-card .ph { aspect-ratio: 1; }
.listing-card .ph svg { display: block; width: 100%; height: 100%; }
.listing-card .body { padding: 13px 15px 15px; }
.listing-card .body h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.listing-card .body .price { font-family: var(--font-mono); color: var(--gold-bright); font-size: 15px; margin: 4px 0 2px; }
.listing-card .body .seller { font-size: 12.5px; color: var(--muted); margin-bottom: 11px; cursor: pointer; }
.listing-card .body .seller:hover { color: var(--gold); }

/* ── Profile ───────────────────────────────────────────────────── */

.profile-hero {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.profile-hero .banner { height: 168px; position: relative; }
.profile-hero .banner svg, .profile-hero .banner .bnr { display: block; width: 100%; height: 100%; }
.profile-hero .inner { padding: 0 26px 22px; position: relative; }
.profile-hero .avatar { margin-top: -44px; position: relative; z-index: 2; border-color: var(--surface); }
.profile-hero .toprow { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.profile-hero .names { margin-top: 12px; }
.profile-hero .names h2 { font-size: 26px; display: flex; align-items: center; gap: 9px; }
.profile-hero .names h2 .verified { width: 19px; height: 19px; }
.profile-hero .names .h { color: var(--muted); font-size: 14px; }
.profile-hero .bio { color: var(--ink-mid); font-size: 14.5px; margin: 10px 0 14px; max-width: 62ch; }
.profile-hero .statrow { display: flex; gap: 26px; flex-wrap: wrap; }
.profile-hero .stat { display: flex; flex-direction: column; }
.profile-hero .stat .v { font-family: var(--font-mono); font-size: 17px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.profile-hero .stat .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 22px 0 20px; }
.tab {
  background: none; border: 0;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--gold-bright); border-bottom-color: var(--gold); }

.profile-bgwrap { border-radius: 24px; padding: 22px; margin: 0 -22px; }

/* ── Atelier (cosmetics) ───────────────────────────────────────── */

.cos-card {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.cos-card.live-room { border-color: rgba(216, 180, 90, 0.28); }
.cos-card .prev { height: 96px; position: relative; overflow: hidden; }
.cos-card .prev svg, .cos-card .prev .bnr { display: block; width: 100%; height: 100%; }
.cos-card .prev.bg-prev { height: 120px; }
.cos-card .prev.live { height: 118px; }
.cos-card .prev.bg-prev.live { height: 148px; }
.cos-card .prev .live-pip {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em;
  color: #211804;
  background: linear-gradient(135deg, #f0d48a, #d8b45a);
  padding: 2px 7px; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(3, 4, 10, 0.35);
}
.cos-card .prev.ring-prev {
  height: 120px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(70% 90% at 50% 40%, rgba(216, 180, 90, 0.08), transparent 70%), rgba(9, 11, 22, 0.5);
}
.cos-card .body { padding: 12px 14px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cos-card .body .nm { font-size: 14px; font-weight: 600; }
.cos-card .body .tag {
  font-size: 11px; color: var(--gold); letter-spacing: 0.04em;
  margin: 2px 0 1px;
}
.cos-card .body .sub { font-size: 12px; color: var(--muted); }
.cos-card.applied { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.3); }

/* ── Wallet ────────────────────────────────────────────────────── */

.wallet-hero {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 30px;
  background:
    radial-gradient(500px 260px at 20% 0%, rgba(216, 180, 90, 0.16), transparent 60%),
    radial-gradient(400px 260px at 90% 100%, rgba(124, 111, 232, 0.13), transparent 60%),
    var(--surface);
  text-align: center;
}
.wallet-hero .bal { font-family: var(--font-mono); font-size: 46px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.wallet-hero .lbl { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .l { color: var(--ink-mid); }
.ledger-row .l .t { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.ledger-row .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ledger-row .amt.pos { color: var(--emerald); }
.ledger-row .amt.neg { color: var(--rose); }

/* ── Modal ─────────────────────────────────────────────────────── */

.modal-veil {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.modal h2 { font-size: 22px; margin-bottom: 4px; }
.modal .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.modal .field { margin-bottom: 14px; }
.modal .field label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.price-toggle { display: flex; gap: 8px; }
.price-toggle .opt {
  flex: 1;
  border: 1px solid var(--hairline-soft);
  border-radius: 11px;
  background: var(--abyss-deep);
  color: var(--muted);
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
}
.price-toggle .opt.on { border-color: var(--gold-dim); color: var(--gold-bright); background: rgba(216, 180, 90, 0.08); }

/* ── Toast ─────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: toast-in 0.25s ease;
}
.toast svg { width: 17px; height: 17px; color: var(--gold-bright); }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Empty state ───────────────────────────────────────────────── */

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--hairline);
  border-radius: 18px;
}
.empty .sigil { width: 44px; height: 44px; margin: 0 auto 12px; opacity: 0.6; }
.empty p { margin: 0; font-size: 14px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.section-title h2 { font-size: 20px; }
.section-title .more { font-size: 13px; color: var(--muted); }

.searchbar { position: relative; max-width: 420px; flex: 1; }
.searchbar svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.searchbar input { padding-left: 38px; border-radius: 999px; }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .panel { display: none; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
  .rail { padding: 20px 12px; }
  .rail-link span, .wordmark .name, .rail-label, .rail-me .who { display: none; }
  .rail-link { justify-content: center; }
  .rail-me { justify-content: center; padding: 8px; }
  .main-scroll { padding: 0 16px 120px; }
  .topbar { padding: 14px 16px 12px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-view { grid-template-columns: 1fr; }
  .chan-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline-soft); }
  .chan-rail .srv-name { display: none; }
  .chan-link { width: auto; flex: none; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-head h1 { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   V2 — the mobile-first court design: top bar, tab bar, unified feed,
   angel/demon karma, stories, journal, whispers.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Top app bar ───────────────────────────────────────────────── */

.topbar {
  position: relative;
  z-index: 40;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 34px 12px;
  background: var(--abyss);
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}
.topbar .brand .sigil { width: 34px; height: 34px; flex: none; }
.topbar .brand .sigil svg { display: block; width: 100%; height: 100%; }
.topbar .brand .name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #f0d48a 10%, #d8b45a 55%, #b3893a 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.topbtn {
  position: relative;
  background: none;
  border: 0;
  color: var(--ink-mid);
  padding: 7px;
  border-radius: 10px;
  display: flex;
}
.topbtn svg { width: 22px; height: 22px; }
.topbtn:hover { color: var(--gold-bright); background: var(--surface); }
.topbtn .pip {
  position: absolute;
  top: 0; right: 0;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d48a, #c39a3e);
  color: #211804;
  font-family: var(--font-display);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── Serví date header ─────────────────────────────────────────── */

.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 2px 4px; }
.day-head .eyebrow { font-size: 11.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.day-head h1 { font-size: 30px; margin-top: 4px; color: var(--gold-bright); font-weight: 400; }
.wx-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mid);
  white-space: nowrap;
  margin-top: 6px;
}
.wx-chip .t { font-family: var(--font-display); font-size: 14px; color: var(--ink); letter-spacing: 0.04em; }

/* ── Story rings ───────────────────────────────────────────────── */

.story-ring { display: block; border-radius: 50%; padding: 3px; position: relative; }
.story-ring .avatar { width: 100%; height: 100%; border-color: var(--abyss); border-width: 2.5px; }
.ring-none { padding: 3px; background: transparent; border: 1px dashed var(--hairline); }
.ring-unseen {
  background: conic-gradient(from 0deg, #3d9bff, #7cc4ff, #2f6bff, #3d9bff);
  box-shadow: 0 0 14px rgba(61, 155, 255, 0.55);
  animation: ring-spin 3.2s linear infinite;
}
.ring-seen { background: var(--surface-3); box-shadow: none; }
.ring-mine { background: conic-gradient(from 210deg, var(--gold), var(--gold-bright), var(--gold)); box-shadow: 0 0 12px rgba(216, 180, 90, 0.35); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring-unseen .avatar, .ring-seen .avatar, .ring-mine .avatar { animation: none; }
/* Spin only the ring, not the face: rotate a pseudo layer instead. */
.ring-unseen { animation: none; }
.ring-unseen::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(11,14,26,0) 0 40%, rgba(180,220,255,0.9) 50%, rgba(11,14,26,0) 60% 100%);
  animation: ring-spin 2.6s linear infinite;
}
.ring-unseen .avatar { position: relative; z-index: 1; }

.orbit .nm { letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px; color: var(--muted); }
.orbit .story-ring { width: 64px; height: 64px; }
.orbit .story-ring .avatar { width: 100%; height: 100%; }

/* ── Composer (Gallery / Reel / Thread) ────────────────────────── */

.composer2 {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(26, 33, 56, 0.6), rgba(19, 24, 41, 0.9));
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kind-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--abyss-deep);
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
  padding: 4px;
  align-self: flex-start;
}
.kind-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}
.kind-tab.on {
  background: linear-gradient(135deg, #e3c26e, #c39a3e);
  color: #211804;
}
.composer2 textarea {
  border: 0;
  background: transparent;
  padding: 2px;
  font-size: 16px;
  min-height: 64px;
}
.composer2 .toolrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.attach-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 2px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.attach-btn:hover { color: var(--gold-bright); }
.attach-btn.has { color: var(--emerald); }
.jref-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 18px;
}
.jref-btn:hover { background: rgba(216, 180, 90, 0.08); color: var(--gold-bright); }
.jref-btn svg { width: 16px; height: 16px; }
.jref-btn.has { background: rgba(216, 180, 90, 0.12); color: var(--gold-bright); }
.composer2 .submit {
  align-self: flex-start;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8c877, #c39a3e);
  color: #211804;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 12px 28px;
}
.composer2 .submit:hover { background: linear-gradient(135deg, #f0d48a, #d0a848); }

/* ── Feed cards, court style ───────────────────────────────────── */

.fpost {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(26, 33, 56, 0.45), rgba(15, 19, 34, 0.9));
  padding: 18px 20px 10px;
  position: relative;
}
.fpost .quill {
  position: absolute;
  top: 12px; right: 16px;
  color: var(--gold-dim);
  opacity: 0.5;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  pointer-events: none;
}
.fpost-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.fpost-head .who { flex: 1; min-width: 0; cursor: pointer; padding-top: 2px; }
.fpost-head .who .n { font-family: var(--font-display); font-size: 18.5px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.fpost-head .who .h { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpost-head .who .h .kind { color: var(--gold-dim); }

.fpost .ftext { font-size: 17.5px; line-height: 1.6; color: var(--ink); padding: 4px 0 10px; white-space: pre-wrap; }
.fpost .ftext::first-letter { font-family: var(--font-display); font-size: 1.35em; color: var(--gold-bright); }
.fpost .fmedia { border-radius: 16px; overflow: hidden; margin: 2px 0 12px; border: 1px solid var(--hairline-soft); }
.fpost .fmedia svg, .fpost .fmedia img, .fpost .fmedia video { display: block; width: 100%; max-height: 480px; object-fit: cover; }
.fpost .fmedia .art-wrap { aspect-ratio: 4 / 3; }
.fpost .fmedia .art-wrap svg { width: 100%; height: 100%; }
.fpost .fmedia.reel .art-wrap { aspect-ratio: 16 / 10; position: relative; }
.fpost .fmedia.reel .playveil {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: radial-gradient(circle at center, rgba(7,9,18,0.15), rgba(7,9,18,0.45));
}
.fpost .fmedia.reel .playveil svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)); }

.fpost .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  padding: 9px 2px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fpost .meta-row .insights { background: none; border: 0; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 2px; }
.fpost .meta-row .insights:hover { color: var(--gold); }
.fpost .meta-row .insights svg { width: 15px; height: 15px; }
.fpost .meta-row .stamp { font-family: var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpost .insight-strip { display: flex; gap: 22px; padding: 10px 2px 2px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-mid); flex-wrap: wrap; }
.fpost .insight-strip b { color: var(--gold-bright); font-weight: 500; }

.fpost .act-row { display: flex; align-items: center; gap: 2px; padding: 6px 0 6px; }
.fpost .act-row .spacer { flex: 1; }
.fpost .iconbtn svg { width: 20px; height: 20px; }
.iconbtn.lit-blue { color: #6db4ff; }
.iconbtn.lit-gold { color: var(--gold-bright); }

/* ── Angel / demon karma pill ──────────────────────────────────── */

.karma-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--abyss-deep);
  padding: 4px;
  flex: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.karma-pill .kval {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-mid);
  min-width: 26px;
  text-align: center;
  letter-spacing: 0.06em;
}
.karma-pill .kside {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.karma-pill .kside svg { width: 19px; height: 19px; }
.karma-pill .kside:hover { color: var(--ink); background: var(--surface-2); }
.karma-pill.blessed {
  border-color: rgba(240, 212, 138, 0.55);
  box-shadow: 0 0 16px rgba(216, 180, 90, 0.35);
}
.karma-pill.blessed .kside.angel {
  background: radial-gradient(circle, #f6e3ab, #cfa64a);
  color: #211804;
  box-shadow: 0 0 14px rgba(240, 212, 138, 0.8);
}
.karma-pill.blessed .kval { color: var(--gold-bright); }
.karma-pill.condemned {
  border-color: rgba(255, 82, 82, 0.55);
  box-shadow: 0 0 16px rgba(232, 60, 70, 0.4);
}
.karma-pill.condemned .kside.demon {
  background: radial-gradient(circle, #ff6b6b, #a11220);
  color: #2a0406;
  box-shadow: 0 0 14px rgba(255, 80, 80, 0.75);
}
.karma-pill.condemned .kval { color: #ff7a7a; }

.admin-col { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.admin-col .adm {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.admin-col .adm svg { width: 16px; height: 16px; }
.admin-col .adm:hover { color: var(--rose); border-color: rgba(232, 106, 124, 0.5); }
.admin-col .lbl { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dim); }
.archive-btn { background: none; border: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: lowercase; padding: 4px 6px; }
.archive-btn:hover { color: var(--gold); }
.archive-btn.on { color: var(--violet); }

/* ── Journal cards (published inside posts, and on the profile) ── */

.jcard {
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  background: rgba(216, 180, 90, 0.04);
  padding: 14px 16px;
  margin: 4px 0 12px;
}
.jcard .jhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.jcard .jhead .l { display: inline-flex; align-items: center; gap: 8px; }
.jcard .jhead .l svg { width: 15px; height: 15px; }
.jcard .jhead .d { color: var(--muted); letter-spacing: 0.14em; }
.jcard .jtext { font-size: 14.5px; color: var(--ink-mid); line-height: 1.65; white-space: pre-wrap; }
.jcard.private-note { border-style: dashed; }

.refcard {
  border: 1px solid var(--hairline);
  border-radius: 13px;
  background: var(--abyss-deep);
  padding: 11px 13px;
  margin-top: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}
.refcard:hover { border-color: var(--gold-dim); }
.refcard .thumb { width: 58px; height: 58px; border-radius: 9px; overflow: hidden; flex: none; }
.refcard .thumb svg, .refcard .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.refcard .b { min-width: 0; flex: 1; }
.refcard .b .k { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.refcard .b .t { font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Bottom tab bar (mobile) ───────────────────────────────────── */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  background: rgba(9, 11, 22, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tabbar .tb {
  background: none;
  border: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 8px;
  flex: 1;
}
.tabbar .tb svg { width: 22px; height: 22px; }
.tabbar .tb.active { color: var(--gold-bright); }

/* ── Menu sheet ────────────────────────────────────────────────── */

.sheet-veil {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
}
.sheet {
  width: min(330px, 88vw);
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  padding: 22px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: sheet-in 0.22s ease;
}
@keyframes sheet-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet .sheet-head .t { font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); letter-spacing: 0.06em; }

/* ── Story viewer ──────────────────────────────────────────────── */

.story-veil {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 5, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.story-frame {
  position: relative;
  width: min(430px, 100%);
  aspect-ratio: 9 / 15;
  max-height: calc(100vh - 60px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--abyss-deep);
  box-shadow: var(--shadow-lg);
}
.story-frame .art { position: absolute; inset: 0; }
.story-frame .art svg, .story-frame .art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-frame .prog-row { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; z-index: 3; }
.story-frame .prog-row .seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(237, 233, 220, 0.25); overflow: hidden; }
.story-frame .prog-row .seg .fl { height: 100%; width: 0%; background: var(--gold-bright); }
.story-frame .s-head { position: absolute; top: 26px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.story-frame .s-head .n { font-family: var(--font-display); font-size: 16px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.story-frame .s-head .t { font-size: 11px; color: rgba(255,255,255,0.75); font-family: var(--font-mono); }
.story-frame .s-head .x { margin-left: auto; background: rgba(7,9,18,0.5); border: 0; border-radius: 50%; width: 32px; height: 32px; color: #fff; display: flex; align-items: center; justify-content: center; }
.story-frame .s-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 60px 22px 26px;
  background: linear-gradient(transparent, rgba(4, 5, 12, 0.85));
  font-size: 19px;
  font-family: var(--font-display);
  color: #fff;
  text-align: center;
}
.story-frame .tapzone { position: absolute; inset: 0; z-index: 1; background: none; border: 0; cursor: pointer; }

.life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.life-opt {
  border: 1px solid var(--hairline-soft);
  border-radius: 11px;
  background: var(--abyss-deep);
  color: var(--ink-mid);
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
}
.life-opt.on { border-color: var(--gold-dim); color: var(--gold-bright); background: rgba(216, 180, 90, 0.08); }

/* ── Notification & whisper panes ──────────────────────────────── */

.drop-pane {
  position: fixed;
  top: 62px;
  right: max(14px, calc((100vw - 1460px) / 2 + 14px));
  z-index: 70;
  width: min(360px, calc(100vw - 28px));
  max-height: 60vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
}
.drop-pane h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.notif-row { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--hairline-soft); font-size: 13.5px; color: var(--ink-mid); align-items: baseline; }
.notif-row:last-child { border-bottom: 0; }
.notif-row.unread { color: var(--ink); }
.notif-row.unread::before { content: '◈'; color: var(--gold-bright); font-size: 11px; }
.notif-row .t { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: none; }

.dm-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 13px; cursor: pointer; }
.dm-row:hover { background: var(--surface-2); }
.dm-row .b { flex: 1; min-width: 0; }
.dm-row .b .n { font-weight: 600; font-size: 14.5px; }
.dm-row .b .m { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Explore — Instagram-style discovery ───────────────────────── */

.explore-page { display: flex; flex-direction: column; min-width: 0; }
.exp-chrome {
  position: sticky;
  top: 0;
  z-index: 22;
  background: linear-gradient(to bottom, rgba(11, 14, 26, 0.97) 72%, rgba(11, 14, 26, 0.9));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin: 0 -6px 16px;
  padding: 0 6px 0;
}
.exp-search { max-width: none; margin-bottom: 10px; }
.exp-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--hairline);
}
.exp-tabs::-webkit-scrollbar { display: none; }
.exp-tab {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 12px 10px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.exp-tab svg { width: 20px; height: 20px; }
.exp-tab:hover { color: var(--ink); }
.exp-tab.on { color: var(--gold-bright); border-bottom-color: var(--gold); }
.exp-body { min-width: 0; }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.exp-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--abyss-deep);
  font: inherit;
  color: inherit;
  text-align: left;
}
.exp-tile > svg { display: block; width: 100%; height: 100%; }
.exp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.exp-tile .exp-veil {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  background: rgba(7, 9, 18, 0.46);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.exp-tile .exp-veil span { display: inline-flex; align-items: center; gap: 6px; }
.exp-tile .exp-veil svg { width: 18px; height: 18px; }
.exp-tile:hover .exp-veil { opacity: 1; }
.exp-grid.exp-reels { gap: 2px; }
.exp-tile.exp-reel { aspect-ratio: 9 / 16; }
.exp-tile .exp-count {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  color: #fff;
  font-size: 12px; font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.exp-tile .exp-count svg { width: 12px; height: 12px; fill: currentColor; }
.exp-tile .tag {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(7, 9, 18, 0.78);
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ── Serví page ────────────────────────────────────────────────── */

.servi-hero {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 34px 28px;
  text-align: center;
  background:
    radial-gradient(560px 300px at 50% -10%, rgba(216, 180, 90, 0.18), transparent 65%),
    radial-gradient(400px 260px at 15% 110%, rgba(124, 111, 232, 0.12), transparent 60%),
    var(--surface);
}
.servi-hero .eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.servi-hero h2 { font-size: 34px; color: var(--gold-bright); margin: 8px 0 2px; }
.servi-hero .sub { color: var(--ink-mid); font-size: 14px; }
.rite-row {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
}
.rite-row .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(216,180,90,0.1); border: 1px solid var(--hairline); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.rite-row .ic svg { width: 19px; height: 19px; }
.rite-row .b { flex: 1; min-width: 0; }
.rite-row .b .t { font-weight: 600; font-size: 14.5px; }
.rite-row .b .s { font-size: 12.5px; color: var(--muted); }

/* ── Responsive v2 ─────────────────────────────────────────────── */

.main-head { position: static; backdrop-filter: none; background: none; padding-top: 8px; }

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .tabbar { display: flex; }
  .main-scroll {
    padding: 0 14px calc(96px + env(safe-area-inset-bottom, 0px));
    scrollbar-gutter: auto;
    scrollbar-width: none;          /* on a phone the bar is an overlay — reserve nothing */
  }
  .main-scroll::-webkit-scrollbar { width: 0; height: 0; }
  .player-bar { bottom: 86px; }
  .drop-pane { top: 58px; }
  .fpost { padding: 15px 15px 8px; }
  .fpost .ftext { font-size: 16.5px; }
  .topbar { padding: 12px 14px 10px; }
  .explore-page .exp-grid { margin: 0 -14px; }
  .exp-tab { min-width: 68px; padding: 8px 10px 10px; }
  .day-head { flex-wrap: wrap; }
  .day-head h1 { font-size: 24px; white-space: nowrap; }
  .wx-chip { margin-top: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   V3 — the court refined: real photography over seeded art, the
   Serví solar calendar & the heavens, sub-communities and servers,
   the ten-tab estate, and the sealed journal.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Layered imagery: photograph over generative fallback ──────── */

.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.av-46 { width: 46px; height: 46px; }
.av-52 { width: 52px; height: 52px; }
.photo { position: relative; display: block; overflow: hidden; }
.photo svg { display: block; width: 100%; height: 100%; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-tile img,
.media-card .thumb img,
.listing-card .ph img,
.refcard .thumb img,
.track-row .cover img,
.story-frame .art img,
.player-bar .cover img,
.scomm-card .banner img,
.comm-hero .banner img,
.prof-hero .banner img,
.prof-hero .banner video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-card .thumb, .listing-card .ph, .refcard .thumb, .track-row .cover, .player-bar .cover { position: relative; }
.listing-card .ph { position: relative; overflow: hidden; }
.emoji-thumb { display: grid; place-items: center; width: 100%; height: 100%; font-size: 26px; background: var(--surface-2); }

.eyebrow { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.spacer { flex: 1; }
.fancy { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--gold); margin-bottom: 6px; }
.hint { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.subcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: linear-gradient(135deg, #f0d48a, #c39a3e);
  color: #211804; margin-left: 6px; vertical-align: middle; flex: none;
  box-shadow: 0 0 8px rgba(240, 212, 138, 0.5);
}
.subcheck svg { width: 11px; height: 11px; stroke-width: 2.6; }

/* ── Shell: page heads, back button, menu dropdown ─────────────── */

.topbtn.back svg { width: 24px; height: 24px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: 12px 0 18px;
}
.page-head h1 { font-size: 34px; color: var(--gold); font-weight: 400; letter-spacing: 0.02em; }
.page-head .crumb { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.menu-veil { align-items: flex-start; justify-content: flex-end; background: rgba(4, 5, 12, 0.45); }
.menu-pane {
  margin-top: 62px;
  margin-right: max(0px, calc((100vw - 1460px) / 2));
  width: min(320px, calc(100vw - 40px));
  background: rgba(16, 20, 36, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: flex; flex-direction: column;
  animation: menu-in 0.18s ease;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.menu-item {
  background: none; border: 0; text-align: left;
  color: var(--ink); font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 13px 16px; border-radius: 11px;
}
.menu-item:hover { background: var(--surface-2); color: var(--gold-bright); }
.menu-item.dim { color: var(--ink-mid); font-weight: 500; }
.menu-sep { border: 0; border-top: 1px solid var(--hairline-soft); margin: 6px 10px; }

.signout-veil {
  position: fixed; inset: 0; z-index: 95;
  background:
    radial-gradient(700px 500px at 50% 30%, rgba(216, 180, 90, 0.10), transparent 60%),
    rgba(4, 5, 12, 0.97);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.signout-card { text-align: center; max-width: 380px; }
.signout-card .sigil { margin-bottom: 18px; }
.signout-card h2 { font-size: 30px; color: var(--gold-bright); margin-bottom: 8px; }
.signout-card p { color: var(--ink-mid); margin: 0 0 24px; }

.legal-scroll { max-height: 46vh; overflow-y: auto; padding-right: 6px; }
.legal-scroll p { font-size: 13.5px; color: var(--ink-mid); line-height: 1.7; margin: 0 0 12px; }
.legal-scroll b { color: var(--ink); }

.modal-wide { width: min(620px, 100%); }
.modal-headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal-headrow .archive-btn { text-transform: uppercase; letter-spacing: 0.18em; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-mid); cursor: pointer; margin: 8px 0; }
.checkline input { width: auto; margin-top: 3px; accent-color: var(--gold); }

.dropzone {
  width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--hairline);
  border-radius: 14px;
  background: var(--abyss-deep);
  color: var(--ink-mid);
  font-size: 14px;
  padding: 30px 16px;
}
.dropzone:hover { border-color: var(--gold-dim); color: var(--ink); }
.dropzone.has { border-style: solid; border-color: rgba(63, 191, 138, 0.5); color: var(--emerald); }
.dropzone.slim { flex-direction: row; padding: 13px 16px; }
.dropzone span { text-align: center; line-height: 1.5; }

/* The long climb of a heavy film into the vault. */
.up-bar {
  width: 100%;
  max-width: 420px;
  height: 5px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.up-bar .fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.2s linear;
}

/* ── Chips & segmented tabs ────────────────────────────────────── */

.seg-tabs {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 20px;
}
.seg {
  flex: 1;
  border: 0; background: transparent;
  color: var(--muted);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 11px 10px; border-radius: 999px;
  white-space: nowrap;
}
.seg.on { background: linear-gradient(135deg, #e8c877, #c39a3e); color: #211804; }

.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-mid);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--gold-dim); }
.chip.on { background: linear-gradient(135deg, #e8c877, #c39a3e); border-color: transparent; color: #211804; }

.inbox-tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* ── Serví: the solar calendar & the heavens ───────────────────── */

.servi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0 18px; }
.servi-title { font-size: 36px; color: var(--gold); margin-top: 8px; }
.servi-sub { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--ink-mid); margin-top: 4px; }

.cal-card {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(26, 33, 56, 0.5), rgba(15, 19, 34, 0.92));
  padding: 22px;
  margin-bottom: 20px;
}
.cal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cal-sep { border: 0; border-top: 1px solid var(--hairline-soft); margin: 16px 0; }
.cal-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.heavens-title { font-size: 30px; color: var(--gold); margin: 4px 0 4px; }
.heavens-loc { font-size: 14px; color: var(--ink-mid); margin-bottom: 18px; }
.heavens-now { display: flex; align-items: center; gap: 22px; justify-content: center; padding: 8px 0 4px; }
.heavens-now .big-glyph { font-size: 58px; line-height: 1; }
.heavens-now .big-temp { font-family: var(--font-display); font-size: 58px; line-height: 1; color: var(--gold-bright); }
.heavens-now .cond { font-size: 16px; color: var(--ink); margin-top: 4px; }
.heavens-now .feels { font-size: 13px; color: var(--muted); margin-top: 2px; }

.wx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wx-cell {
  border: 1px solid var(--hairline-soft);
  border-radius: 14px;
  padding: 12px 15px;
  background: rgba(7, 9, 18, 0.4);
}
.wx-cell .k { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wx-cell .v { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.wx-cell .s { font-size: 12px; color: var(--muted); margin-top: 2px; }

.hr-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hr-strip::-webkit-scrollbar { display: none; }
.hr-tile {
  flex: none; width: 78px;
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  background: rgba(7, 9, 18, 0.4);
  padding: 12px 6px;
  text-align: center;
}
.hr-tile .t { font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted); }
.hr-tile .g { font-size: 24px; margin: 6px 0; }
.hr-tile .d { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.hr-tile .p { font-size: 11px; color: var(--muted); margin-top: 2px; }

.today-card { text-align: center; transition: border-color 0.15s ease; }
.today-card:hover { border-color: var(--gold-dim); }
.today-line { font-size: 30px; color: var(--gold); margin-top: 8px; }
.today-alt { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-mid); flex-wrap: wrap; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; }
.cal-nav .mid { text-align: center; }
.cal-nav .mn { font-family: var(--font-display); font-size: 30px; color: var(--gold-bright); }
.cal-nav .mm { font-size: 10.5px; letter-spacing: 0.3em; color: var(--muted); margin-top: 2px; }
.cal-nav .yr { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.cal-nav .yr button {
  background: none; border: 0; color: var(--muted); font-size: 16px; padding: 2px 8px; border-radius: 8px;
}
.cal-nav .yr button:hover { color: var(--gold); background: var(--surface-2); }
.cal-nav .yr .y {
  font-family: var(--font-display); font-size: 17px; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 24px;
}

.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 12px; }
.cal-week span { font-size: 12.5px; letter-spacing: 0.22em; color: var(--gold-dim); font-weight: 600; }
.cal-week span.sab { color: var(--gold-bright); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  background: none; border: 0; border-radius: 14px;
  padding: 9px 2px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--ink);
  transition: background 0.14s ease;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day .n { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.cal-day .g { font-size: 8.5px; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.cal-day.sel { outline: 1px solid var(--gold-dim); }
.cal-day.today { background: linear-gradient(135deg, #e8c877, #c39a3e); }
.cal-day.today .n { color: #211804; }
.cal-day.today .g { color: rgba(33, 24, 4, 0.7); }

.dd-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dd-name { font-size: 32px; color: var(--gold); margin-top: 6px; }
.dd-meta { text-align: right; font-size: 12px; letter-spacing: 0.18em; color: var(--ink-mid); line-height: 1.8; text-transform: uppercase; }
.dd-rows { display: flex; flex-direction: column; gap: 10px; }
.dd-row { border: 1px solid var(--hairline-soft); border-radius: 13px; padding: 11px 15px; background: rgba(7, 9, 18, 0.35); }
.dd-row .k { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.dd-row .v { font-size: 15.5px; color: var(--ink); }

.wx-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.10), rgba(7, 9, 18, 0.5));
  border: 1px solid var(--hairline-soft);
}
.wx-banner .k { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.wx-banner .c { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-top: 4px; }
.wx-banner .r { text-align: right; font-family: var(--font-display); font-size: 22px; color: var(--gold-bright); }
.wx-banner .r .lo { color: var(--ink-mid); font-size: 18px; }
.wx-banner .r .k { margin-top: 2px; }

.hr-chart {
  border: 1px solid var(--hairline-soft); border-radius: 16px;
  background: rgba(7, 9, 18, 0.4); padding: 10px 4px 4px; margin-bottom: 12px;
  overflow: hidden;
}
.hr-chart svg { display: block; width: 100%; height: 170px; }
.hr-chart .tl { fill: var(--ink-mid); font-size: 13px; font-family: "IBM Plex Mono", monospace; text-anchor: middle; }
.hr-chart .pt { fill: #f0d48a; }
.hr-chart .pr { fill: rgba(106, 168, 255, 0.55); rx: 2; }

.hr-list { display: flex; flex-direction: column; }
.hr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hairline-soft);
}
.hr-row:last-child { border-bottom: 0; }
.hr-row .hh { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); width: 48px; flex: none; }
.hr-row .gl { font-size: 21px; flex: none; }
.hr-row .bb { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.hr-row .bb b { font-weight: 600; display: block; }
.hr-row .bb .dd { font-size: 12px; color: var(--muted); }
.hr-row .tt { font-family: var(--font-display); font-size: 18px; color: var(--gold-bright); flex: none; }

.note-form { display: flex; gap: 10px; margin-bottom: 12px; }
.note-form input { border-radius: 999px; }
.note-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--hairline-soft); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 8px;
  font-size: 14px; color: var(--ink);
  background: rgba(216, 180, 90, 0.05);
}

.ol-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--hairline-soft);
  padding: 12px 4px;
  color: var(--ink);
  text-align: left;
  border-radius: 0;
}
.ol-row:hover { background: rgba(216, 180, 90, 0.04); }
.ol-row.sel { outline: 1px solid var(--gold-dim); border-radius: 14px; background: rgba(216, 180, 90, 0.06); }
.ol-row .dt { width: 74px; flex: none; display: flex; flex-direction: column; }
.ol-row .dt b { font-family: var(--font-display); font-size: 16px; color: var(--gold); font-weight: 400; }
.ol-row .dt span { font-size: 12px; color: var(--muted); }
.ol-row .gl { font-size: 24px; flex: none; }
.ol-row .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(237, 233, 220, 0.07); position: relative; overflow: hidden; }
.ol-row .bar .fill { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #6a8dff, #d8b45a, #e8894a); }
.ol-row .tp { font-family: var(--font-display); font-size: 15px; color: var(--ink-mid); flex: none; width: 84px; text-align: right; }
.ol-row .tp b { color: var(--gold-bright); font-weight: 400; }

.rule-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.rule-card li { font-size: 14.5px; line-height: 1.7; color: var(--ink-mid); }
.rule-card li::marker { color: var(--gold); }
.rule-card b { color: var(--gold-bright); font-weight: 600; }
.rule-card i { color: var(--ink); }

.wx-chip.small { padding: 5px 12px; margin-top: 0; gap: 6px; }
.wx-chip.small .t { font-size: 13px; }

/* ── Notifications page ────────────────────────────────────────── */

.alerts-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.alerts-card h3 { font-size: 20px; color: var(--gold); }
.alerts-card .s { font-size: 11px; letter-spacing: 0.22em; color: var(--muted); margin-top: 4px; }

.notif-card {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.notif-card:hover { border-color: var(--gold-dim); }
.notif-card.unread { border-color: var(--gold-dim); box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.18); }
.notif-card .b { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); }
.notif-card .b .h { font-family: var(--font-display); color: var(--gold); }
.notif-card .b .q { font-size: 13.5px; color: var(--ink-mid); margin-top: 2px; }
.notif-card .ts { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); flex: none; }
.notif-card .avatar { border-radius: 50%; }

.dm-row .ts { font-family: var(--font-mono); font-size: 11px; color: var(--muted); flex: none; }

/* ── Chat refinements ──────────────────────────────────────────── */

.chat-col.standalone {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  min-height: 480px;
  overflow: hidden;
}
.chat-mini {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.05em;
}
.chat-mini svg { width: 18px; height: 18px; }
.chat-mini:hover { color: var(--gold-bright); border-color: var(--gold-dim); }
.chat-form { position: relative; align-items: center; }
.emoji-pane {
  position: absolute; bottom: 64px; left: 12px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 10px;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
  box-shadow: var(--shadow-lg);
  z-index: 5;
}
.emoji-pane button { background: none; border: 0; font-size: 19px; padding: 5px; border-radius: 8px; }
.emoji-pane button:hover { background: var(--surface-3); }
.emoji-pane.gifs { grid-template-columns: repeat(3, 1fr); }
.chat-empty { color: var(--muted); font-style: italic; text-align: center; padding: 60px 20px; font-size: 15px; }
.owner-crown { color: var(--gold); display: inline-flex; }
.owner-crown svg { width: 14px; height: 14px; }

/* ── Sub-communities ───────────────────────────────────────────── */

.scomm-card {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.scomm-card:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.scomm-card .banner { height: 130px; position: relative; }
.scomm-card .banner svg { display: block; width: 100%; height: 100%; }
.scomm-card .banner .joined-pip {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: #3d9bff; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.scomm-card .banner .joined-pip svg { width: 14px; height: 14px; stroke-width: 2.4; }
.cicon {
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
  position: relative;
  flex: none;
  background: var(--surface-2);
  display: block;
}
.cicon svg { display: block; width: 100%; height: 100%; }
.cicon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scomm-card .banner .cicon { position: absolute; left: 14px; bottom: -20px; z-index: 2; }
.scomm-card .body { padding: 28px 16px 16px; }
.scomm-card .body h3 { font-size: 21px; color: var(--gold); }
.scomm-card .body .cat { font-size: 10.5px; letter-spacing: 0.26em; color: var(--ink-mid); margin: 4px 0 6px; }
.scomm-card .body .meta { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }

.comm-page { position: relative; isolation: isolate; }
.comm-page::before {
  content: '';
  display: block;
  position: sticky; top: 0; z-index: -1;
  height: 100vh; margin-bottom: -100vh;
  background-image: linear-gradient(to bottom, rgba(11, 14, 26, 0.42), rgba(11, 14, 26, 0.88)), var(--comm-bg, none);
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
  pointer-events: none;
}
.comm-hero {
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: rgba(19, 24, 41, 0.85);
  overflow: hidden;
  margin-bottom: 20px;
}
.comm-hero .banner { height: 150px; position: relative; }
.comm-hero .banner svg { display: block; width: 100%; height: 100%; }
.comm-hero .inner { display: flex; align-items: flex-end; gap: 14px; padding: 0 20px; }
.comm-hero .cicon.big { width: 74px; height: 74px; margin-top: -26px; z-index: 2; }
.comm-hero .names { flex: 1; min-width: 0; padding: 10px 0; }
.comm-hero .names h1 { font-size: 30px; }
.comm-hero .names .cat { font-size: 10.5px; letter-spacing: 0.24em; color: var(--muted); margin-top: 2px; }
.comm-hero .btns { padding-bottom: 12px; }
.comm-hero .desc { color: var(--ink-mid); font-size: 14.5px; margin: 10px 20px; }
.comm-hero .modrow { display: flex; gap: 8px; padding: 0 20px 18px; flex-wrap: wrap; }

.flair-chip {
  display: inline-block;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-mid);
  background: var(--surface-2);
  margin-bottom: 6px;
}
.flair-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--hairline-soft);
  border-radius: 13px;
  padding: 10px 14px;
}
.flair-row .flair-chip { margin-bottom: 0; }

.cz-block { margin-bottom: 18px; border: 1px solid var(--hairline-soft); border-radius: 16px; padding: 14px 16px; }
.cz-block .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.cz-block .s { font-size: 10px; letter-spacing: 0.18em; color: var(--muted); margin: -4px 0 10px; }
.cz-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Banner framing — a live, grabbable preview at the hero's own aspect. */
.banner-adjust {
  position: relative; height: 150px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 10px;
  cursor: grab; touch-action: none; user-select: none;
}
.banner-adjust.dragging { cursor: grabbing; }
.banner-adjust img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-hint {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink); background: rgba(7, 9, 18, 0.6);
  padding: 4px 13px; border-radius: 999px;
  pointer-events: none; white-space: nowrap;
  transition: opacity 0.2s;
}
.banner-adjust.dragging .ba-hint { opacity: 0; }
.ba-sliderow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ba-sliderow .lbl { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ba-sliderow input[type="range"] { flex: 1; accent-color: var(--gold); cursor: pointer; }

.cz-prev { border-radius: 12px; overflow: hidden; margin-bottom: 10px; max-height: 170px; position: relative; }
.cz-prev img { display: block; width: 100%; max-height: 170px; object-fit: cover; }
.cz-prev.dim { opacity: 0.5; }
.cz-prev.dim svg { display: block; width: 100%; height: 120px; }

/* ── Servers ───────────────────────────────────────────────────── */

.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.srv-tile {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--abyss-deep);
  padding: 22px 12px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.srv-tile:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.srv-tile .ic { width: 58px; height: 58px; border-radius: 18px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--hairline); display: block; position: relative; }
.srv-tile .ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.srv-tile .ic .init { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.srv-tile .nm { font-family: var(--font-display); font-size: 16.5px; }
.srv-tile .lvl { font-size: 10px; letter-spacing: 0.22em; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 3px 12px; font-family: var(--font-display); }

.server-page { position: relative; isolation: isolate; }
.server-page::before {
  content: '';
  display: block;
  position: sticky; top: 0; z-index: -1;
  height: 100vh; margin-bottom: -100vh;
  background-image: linear-gradient(to bottom, rgba(11, 14, 26, 0.48), rgba(11, 14, 26, 0.9)), var(--srv-bg, none);
  background-size: cover;
  background-position: center;
  filter: saturate(1.06);
  pointer-events: none;
}
.srv-head { display: flex; align-items: center; gap: 12px; padding: 12px 0 16px; }
.srv-head .nm { font-family: var(--font-display); font-size: 24px; }
.srv-head .lvl { font-size: 10px; letter-spacing: 0.22em; color: var(--gold); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 3px 12px; font-family: var(--font-display); }
.server-page .server-view { background: rgba(19, 24, 41, 0.82); }
.server-page .chan-rail { background: rgba(7, 9, 18, 0.7); }
.chan-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); padding: 4px 10px 10px;
}
.chan-add { background: none; border: 0; color: var(--muted); font-size: 17px; padding: 0 4px; border-radius: 6px; }
.chan-add:hover { color: var(--gold); }

.side-pane {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 86;
  width: min(340px, 88vw);
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  overflow-y: auto;
  padding: 16px 10px 30px;
  animation: sheet-in 0.22s ease;
}
.side-head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; }
.side-head .t { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.member-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; cursor: pointer; }
.member-row:hover { background: var(--surface-2); }
.member-row .avwrap { position: relative; flex: none; }
.member-row .avwrap .dot {
  position: absolute; right: 0; bottom: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #3fbf8a; border: 2.5px solid var(--surface);
}
.member-row .b .n { font-weight: 600; font-size: 14.5px; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.member-row .b .h { font-size: 12px; color: var(--muted); }

/* ── Halls (cinema & salon heroes) ─────────────────────────────── */

.hall-hero {
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background:
    radial-gradient(560px 280px at 85% -20%, rgba(216, 180, 90, 0.13), transparent 60%),
    linear-gradient(165deg, rgba(26, 33, 56, 0.6), rgba(15, 19, 34, 0.94));
  padding: 26px 24px;
  margin-bottom: 18px;
}
.hall-hero h2 { font-size: 34px; margin: 8px 0 10px; }
.hall-hero p { color: var(--ink-mid); font-size: 14.5px; margin: 0 0 18px; max-width: 60ch; }
.searchbar { margin-bottom: 18px; max-width: none; }

.album-card .thumb { aspect-ratio: 1; }

/* ── Market categories ─────────────────────────────────────────── */

.cat-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: none;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 13px 20px;
  min-width: 150px;
  text-align: left;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 55%, transparent), color-mix(in srgb, var(--c1) 20%, transparent));
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.cat-chip:hover { transform: translateY(-1px); }
.cat-chip .n { display: block; font-family: var(--font-display); font-size: 18px; color: var(--c2); }
.cat-chip .s { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--ink-mid); margin-top: 3px; }
.cat-chip.on { border-color: var(--c2); box-shadow: 0 0 14px color-mix(in srgb, var(--c2) 30%, transparent); }

.terms-box {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(216, 180, 90, 0.04);
  padding: 14px 16px;
  margin: 6px 0 4px;
}
.terms-box .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.terms-box p { font-size: 12.5px; color: var(--ink-mid); line-height: 1.65; margin: 0 0 10px; }
.terms-box b { color: var(--ink); }

/* ── Feed dress ────────────────────────────────────────────────── */

.fpost.dressed { border-color: rgba(216, 180, 90, 0.3); }
.fmedia.layered { position: relative; min-height: 200px; }
.fmedia.layered .under { position: absolute; inset: 0; }
.fmedia.layered .under svg { display: block; width: 100%; height: 100%; }
.fmedia.layered img { position: relative; z-index: 1; }
.playveil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: radial-gradient(circle at center, rgba(7,9,18,0.1), rgba(7,9,18,0.4));
  pointer-events: none;
}
.playveil svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6)); }
.playveil.small svg { width: 28px; height: 28px; }
.jmedia { border-radius: 12px; overflow: hidden; margin-top: 10px; border: 1px solid var(--hairline-soft); }
.jmedia img, .jmedia video { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.jvoice { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--gold); }
.jvoice svg { width: 18px; height: 18px; flex: none; }
.jvoice audio { flex: 1; height: 38px; }

/* ── The estate (profile v3) ───────────────────────────────────── */

.profile-page { position: relative; margin: 0 -10px; isolation: isolate; }
/* The uploaded background is the room the whole profile lives in —
   a sticky viewport-height backdrop: bright where the hero sits,
   deepening toward the floor so the work below stays readable.
   (An Atelier room arrives as --prof-css, an uploaded photo as --prof-bg.) */
.profile-page::before {
  content: '';
  display: block;
  position: sticky; top: 0; z-index: -1;
  height: 100vh; margin-bottom: -100vh;
  background:
    var(--prof-css,
      linear-gradient(to bottom,
        rgba(11, 14, 26, 0.28) 0%,
        rgba(11, 14, 26, 0.40) 34%,
        rgba(11, 14, 26, 0.74) 70%,
        rgba(11, 14, 26, 0.94) 100%),
      var(--prof-bg, none) center center / cover no-repeat #0b0e1a);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
  pointer-events: none;
}
/* Living grounds sit behind the readability veil. */
.prof-motion {
  position: sticky; top: 0; z-index: -2;
  height: 100vh; margin-bottom: -100vh;
  pointer-events: none; overflow: hidden;
}
.prof-motion svg { display: block; width: 100%; height: 100%; }
.profile-page.has-motion::before {
  background: linear-gradient(to bottom,
    rgba(11, 14, 26, 0.18) 0%,
    rgba(11, 14, 26, 0.36) 34%,
    rgba(11, 14, 26, 0.72) 70%,
    rgba(11, 14, 26, 0.94) 100%);
  filter: none;
}

/* ── Living Atelier rooms ──────────────────────────────────────── */
.bn-live { display: block; width: 100%; height: 100%; --lv-span: 160px; }
.cos-card .prev.bg-prev .bn-live { --lv-span: 190px; }
.prof-motion .bn-live { --lv-span: 68vh; }
.bn-live [class*="lv-"] { transform-box: fill-box; }

.lv-ember, .lv-bubble, .lv-mote { animation: lv-rise 6.5s linear infinite; }
.lv-steam { animation: lv-steam 4.6s ease-in-out infinite; }
.lv-fall, .lv-petal, .lv-rain { animation: lv-fall 5.5s linear infinite; }
.lv-shimmer { animation: lv-shimmer 3.4s ease-in-out infinite; }
.lv-pulse, .lv-glow { animation: lv-pulse 4s ease-in-out infinite; }
.lv-twinkle { animation: lv-twinkle 2.8s ease-in-out infinite; }
.lv-swim-a { animation: lv-swim-a 11s ease-in-out infinite; }
.lv-swim-b { animation: lv-swim-b 14s ease-in-out infinite; }
.lv-swim-c { animation: lv-swim-c 16s ease-in-out infinite; }
.lv-wing-l { transform-origin: 90% 70%; animation: lv-wing-l 2.8s ease-in-out infinite; }
.lv-wing-r { transform-origin: 10% 70%; animation: lv-wing-r 2.8s ease-in-out infinite; }
.lv-flame { transform-origin: 50% 0%; animation: lv-flame 2.4s ease-in-out infinite; }
.lv-haze { animation: lv-haze 6s ease-in-out infinite; }
.lv-ribbon { animation: lv-ribbon 10s ease-in-out infinite; }
.lv-curtain-l { transform-origin: 0 0; animation: lv-sway-l 8s ease-in-out infinite; }
.lv-curtain-r { transform-origin: 100% 0; animation: lv-sway-r 8s ease-in-out infinite; }
.lv-spot { animation: lv-spot 9s ease-in-out infinite; }
.lv-ripple { transform-origin: center; animation: lv-ripple 5s ease-out infinite; }
.lv-leaf { transform-origin: 50% 100%; animation: lv-sway-leaf 5s ease-in-out infinite; }
.lv-bird { animation: lv-hover 5s ease-in-out infinite; }
.lv-pizza { animation: lv-hover 7s ease-in-out infinite; }
.lv-lantern { animation: lv-pulse 3.2s ease-in-out infinite; }

@keyframes lv-rise {
  0% { transform: translateY(12px); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 0.7; }
  100% { transform: translateY(calc(var(--lv-span) * -1)); opacity: 0; }
}
@keyframes lv-steam {
  0% { transform: translate(0, 8px); opacity: 0; }
  25% { opacity: 0.55; }
  100% { transform: translate(6px, -70px); opacity: 0; }
}
@keyframes lv-fall {
  0% { transform: translateY(-24px); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translateY(var(--lv-span)); opacity: 0; }
}
@keyframes lv-shimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes lv-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes lv-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}
@keyframes lv-wing-l {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-14deg); }
}
@keyframes lv-wing-r {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(14deg); }
}
@keyframes lv-flame {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.75; }
  50% { transform: scaleY(1.12) scaleX(0.94); opacity: 1; }
}
@keyframes lv-haze {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50% { opacity: 0.35; transform: translateY(-8px); }
}
@keyframes lv-ribbon {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}
@keyframes lv-sway-l {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(-2.2deg); }
}
@keyframes lv-sway-r {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(2.2deg); }
}
@keyframes lv-spot {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}
@keyframes lv-ripple {
  0% { transform: scale(0.4); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes lv-sway-leaf {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}
@keyframes lv-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes lv-swim-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, -12px); }
}
@keyframes lv-swim-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-80px, 10px); }
}
@keyframes lv-swim-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(48px, 16px); }
}
/* Text stays sovereign over any photograph. */
.pname, .handlerow .h, .pbio,
.pstats .stat .v, .pstats .stat .k,
.ptab-head h2, .ptab-head .s, .ptabs-note {
  text-shadow: 0 1px 4px rgba(4, 5, 12, 0.9), 0 4px 22px rgba(4, 5, 12, 0.75);
}
.prof-hero .banner { box-shadow: 0 18px 50px rgba(3, 4, 10, 0.55); }
.status-bubble { box-shadow: 0 8px 28px rgba(4, 5, 12, 0.5); }
.prof-hero { padding: 0 10px; }
.prof-hero .banner {
  height: 190px; position: relative;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--hairline);
}
.prof-hero .banner svg { display: block; width: 100%; height: 100%; }
.prof-hero .avrow { display: flex; align-items: flex-end; gap: 16px; margin-top: -46px; position: relative; z-index: 2; padding: 0 8px; }
.bigav { position: relative; flex: none; display: block; }
.bigav .avatar { width: 96px; height: 96px; border-width: 3px; border-color: var(--gold-dim); box-shadow: 0 0 0 5px rgba(11, 14, 26, 0.75), 0 8px 24px rgba(0,0,0,0.5); }
.avplus {
  position: absolute; right: -2px; bottom: 2px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--abyss);
  background: linear-gradient(135deg, #e8c877, #c39a3e);
  color: #211804; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.status-bubble {
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  min-width: 0;
  text-align: left;
  margin-bottom: 4px;
}
.status-bubble .k { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.status-bubble .v { font-size: 15px; font-style: italic; color: var(--ink); margin-top: 2px; }
.status-bubble.ghost { border-style: dashed; }
.status-bubble.ghost .v { color: var(--muted); }
.idrow { margin-top: 12px; padding: 0 8px; }
.pname { font-size: 38px; color: var(--gold); display: flex; align-items: center; gap: 12px; }
.goldcheck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f0d48a, #c39a3e);
  color: #211804;
  box-shadow: 0 0 16px rgba(240, 212, 138, 0.55);
  flex: none;
}
.goldcheck svg { width: 16px; height: 16px; stroke-width: 2.6; }
.handlerow { display: flex; align-items: center; gap: 12px; padding: 6px 8px 0; flex-wrap: wrap; }
.handlerow .h { font-size: 12.5px; letter-spacing: 0.18em; color: var(--ink-mid); }
.roundbtn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.roundbtn:hover { background: rgba(216, 180, 90, 0.1); }
.roundbtn svg { width: 20px; height: 20px; }
.btn.pill { border-radius: 999px; padding: 9px 22px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.pbio { color: var(--ink); font-size: 15.5px; margin: 12px 8px 4px; }
.pstats { display: flex; gap: 26px; flex-wrap: wrap; padding: 12px 8px 4px; }
.pstats .stat { display: flex; flex-direction: column; }
.pstats .stat .v { font-family: var(--font-display); font-size: 20px; color: var(--gold-bright); }
.pstats .stat .k { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.ptabs-wrap { margin: 16px 0 4px; }
.ptabs {
  display: flex; gap: 4px;
  background: rgba(7, 9, 18, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
  flex: none;
  border: 0; background: transparent;
  color: var(--muted);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px;
  white-space: nowrap;
}
.ptab.on { background: linear-gradient(135deg, #e8c877, #c39a3e); color: #211804; }
.ptabs-note { text-align: center; font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); padding: 8px 0 0; }
.ptab-body { padding: 16px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.ptab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ptab-head h2 { font-size: 26px; color: var(--gold); }
.ptab-head .s { font-size: 10px; letter-spacing: 0.26em; color: var(--muted); margin-top: 3px; }
.cine-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cine-stats {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12.5px; color: var(--muted);
  margin: 2px 0 4px;
}
.cine-stats b { color: var(--ink); font-weight: 600; }
.cine-tabs { margin: 2px 0 6px; }
.cine-types { margin-bottom: 6px; }
.cine-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  margin-bottom: 6px;
}
.cine-featured:hover { border-color: var(--gold-dim); }
.cine-featured .art { position: relative; min-height: 180px; background: var(--abyss-deep); }
.cine-featured .art svg, .cine-featured .art img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.cine-featured .art img { position: absolute; inset: 0; }
.cine-featured .art .dur {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(7, 9, 18, 0.82); border-radius: 7px; padding: 2px 8px;
  font-family: var(--font-mono); font-size: 12px;
}
.cine-featured .art .vtype {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(7, 9, 18, 0.82);
  border: 1px solid rgba(216, 180, 90, 0.35);
  border-radius: 7px; padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-bright);
}
.cine-featured .copy { padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: center; }
.cine-featured .copy h3 { font-size: 24px; color: var(--gold-bright); margin: 4px 0 8px; }
.cine-featured .copy p { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }
.cine-featured .copy .meta { margin-top: 12px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.cine-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0; cursor: pointer;
}
.cine-back svg { width: 16px; height: 16px; }
.cine-pl-head h3 { font-size: 24px; color: var(--gold-bright); margin: 4px 0 6px; }
.cine-pl-head p { font-size: 14px; color: var(--ink-mid); }
.cine-pl-head .meta { margin-top: 8px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.pl-card {
  display: block; width: 100%; padding: 0;
  border: 1px solid var(--hairline); border-radius: 16px;
  overflow: hidden; background: var(--surface);
  text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.pl-card:hover { border-color: var(--gold-dim); }
.pl-card .pl-art { position: relative; aspect-ratio: 16 / 9; background: var(--abyss-deep); }
.pl-card .pl-art svg { display: block; width: 100%; height: 100%; }
.pl-card .pl-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-card .pl-count {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(7, 9, 18, 0.82);
  border-radius: 7px; padding: 3px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold-bright);
}
.pl-card .pl-count svg { width: 12px; height: 12px; }
.pl-card .pl-body { padding: 13px 15px 14px; }
.pl-card .pl-body .nm { font-size: 16px; font-family: var(--font-display); }
.pl-card .pl-body .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pl-pick { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }

@media (max-width: 860px) {
  .cine-featured { grid-template-columns: 1fr; }
}

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ptile {
  position: relative;
  border: 1px solid var(--hairline-soft);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--abyss-deep);
  padding: 0;
  cursor: pointer;
}
.ptile svg { display: block; width: 100%; height: 100%; }
.ptile img, .ptile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ptile video { pointer-events: none; background: #0b0e1a; }
.ptile:hover { border-color: var(--gold-dim); }
.post-modal .fpost { border: 0; background: transparent; padding: 0 0 6px; }

.sales-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(19, 24, 41, 0.8);
  padding: 16px 18px;
}
.sales-card .shield {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, #e8c877, #c39a3e);
  color: #211804;
  display: flex; align-items: center; justify-content: center;
}
.sales-card .shield svg { width: 24px; height: 24px; }
.sales-card .b { flex: 1; min-width: 0; }
.sales-card .n { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.sales-card .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.act-log {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgba(19, 24, 41, 0.8);
  padding: 13px 16px;
  font-size: 14px; color: var(--ink);
}
.act-log .d { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex: none; }

/* ── The journal (composer & entries) ──────────────────────────── */

.jr-composer { background: linear-gradient(165deg, rgba(26, 33, 56, 0.72), rgba(15, 19, 34, 0.95)); }
.jr-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; }
.jtool {
  background: none; border: 0;
  color: var(--ink-mid);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 0;
  display: inline-flex; align-items: center; gap: 7px;
}
.jtool svg { width: 15px; height: 15px; }
.jtool:hover { color: var(--gold-bright); }
.jtool.has { color: var(--emerald); }
.jtool.rec { color: var(--rose); animation: rec-pulse 1.1s ease infinite; }
@keyframes rec-pulse { 50% { opacity: 0.5; } }

.jentry {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: rgba(19, 24, 41, 0.85);
  padding: 18px 20px;
}
.jentry.is-archived { opacity: 0.6; }
.jentry-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jentry-head .stamp { font-size: 11px; letter-spacing: 0.18em; color: var(--gold); }
.jentry-head .privacy {
  font-size: 9.5px; letter-spacing: 0.2em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px 11px;
  color: var(--ink-mid);
  background: var(--surface-2);
}
.jentry-head .privacy.pub { color: #211804; background: linear-gradient(135deg, #e8c877, #c39a3e); border-color: transparent; }
.jentry-acts { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 0 4px; }
.jentry-acts button {
  background: none; border: 0;
  color: var(--muted);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 2px 0;
}
.jentry-acts button:hover { color: var(--gold-bright); }
.jentry-text { font-size: 15.5px; color: var(--ink); line-height: 1.65; white-space: pre-wrap; padding-top: 6px; }

.bg-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.bg-pick .lbl { width: 64px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mid); flex: none; }
.bg-swatch {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 2px solid var(--hairline);
  padding: 0;
  background-size: cover;
}
.bg-swatch.on { border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(240, 212, 138, 0.45); }

/* ── Settings ──────────────────────────────────────────────────── */

.set-card {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--surface);
  padding: 20px 22px;
}
.set-card h3 { font-size: 21px; color: var(--gold); margin-bottom: 10px; }
.set-card.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.set-card.row h3 { margin-bottom: 2px; }
.set-card .v { font-size: 15px; color: var(--ink); }
.set-card .v.dim { color: var(--muted); font-style: italic; }
.set-card .s { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.set-card .field { margin-bottom: 14px; }
.set-card .field label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.set-card .hint { margin-top: 6px; }
.set-card .verified-pip, .auth-card .verified-pip {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--emerald); border: 1px solid rgba(63, 191, 138, 0.45); background: rgba(63, 191, 138, 0.12);
}
.set-card .verified-pip svg, .auth-card .verified-pip svg { width: 12px; height: 12px; stroke-width: 2.6; }

/* ── The Registry — accounts ── */
.auth-page { max-width: 560px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 26px 28px 24px; box-shadow: var(--shadow-sm);
}
.auth-card h2 { font-size: 24px; color: var(--gold); margin: 6px 0 8px; }
.auth-card .s { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; }
.auth-card .s b { color: var(--ink); font-weight: 600; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .field label { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.auth-card .at-row { display: flex; align-items: center; gap: 8px; }
.auth-card .at-row .mono { color: var(--muted); }
.auth-card .actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.auth-card .hint.ok { color: var(--emerald); }
.auth-card .hint.warn { color: var(--rose); }
.auth-card .code-input {
  font-family: var(--font-mono); font-size: 26px; letter-spacing: 0.5em; text-align: center; padding: 12px 10px;
}
.auth-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #ff9aa8; background: rgba(232, 106, 124, 0.12); border: 1px solid rgba(232, 106, 124, 0.35); }
.auth-tabs { margin-bottom: 14px; }
.auth-card.setup .auth-steps { margin: 0 0 14px 18px; padding: 0; font-size: 13.5px; color: var(--ink-mid); line-height: 1.7; }
.auth-card.setup .auth-steps b { color: var(--ink); }
.auth-card.setup .mono { font-size: 12.5px; color: var(--gold-bright); }
.claim-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 2px; padding: 10px 14px;
  border-radius: 12px; border: 1px dashed var(--gold-dim); background: rgba(216, 180, 90, 0.06);
  font-size: 13px; color: var(--ink-mid);
}
.claim-strip b { color: var(--gold-bright); font-weight: 600; }
.claim-strip .spacer { flex: 1; }
.auth-alt {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline-soft);
  font-size: 13px; color: var(--muted);
}
.auth-card .checkline { margin: 4px 0 6px; font-size: 13px; }
.auth-card .checkline .note { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.auth-card .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .auth-card .two-up { grid-template-columns: 1fr; } }
.auth-card .auth-note { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(216, 180, 90, 0.3); background: rgba(216, 180, 90, 0.07); color: var(--ink-mid); }
.auth-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; padding: 12px 14px;
  border-radius: 12px; background: rgba(7, 9, 18, 0.35); border: 1px solid var(--hairline-soft);
}
.auth-facts dt { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); align-self: center; }
.auth-facts dd { margin: 0; font-size: 14px; color: var(--ink); }

/* The sign-in screen — the world waits behind it. */
.gate {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(216, 180, 90, 0.12), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124, 111, 232, 0.12), transparent 60%),
    var(--abyss);
  display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 40px;
}
.gate-inner { width: min(460px, 100%); }
.gate-brand { text-align: center; margin-bottom: 22px; }
.gate-brand .sigil { display: inline-block; margin-bottom: 10px; }
.gate-brand .name { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.04em; color: var(--ink); line-height: 1.1; }
.gate-brand .name span { color: var(--gold); }
.gate-brand .eyebrow { margin-top: 6px; }
.gate .auth-card {
  background: linear-gradient(180deg, #171d33, #10152a);
  border: 1px solid rgba(216, 180, 90, 0.34);
  box-shadow: 0 0 0 5px rgba(216, 180, 90, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
}
.gate-foot { text-align: center; margin-top: 18px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .gate { padding: 24px 12px; } .gate .auth-card { padding: 22px 18px 20px; } }
.set-card.danger { border-color: rgba(232, 106, 124, 0.4); }
.set-card.danger h3 { color: var(--rose); }
.btn.danger { color: var(--rose); border-color: rgba(232, 106, 124, 0.4); }
.btn.danger:hover { background: rgba(232, 106, 124, 0.1); }

/* ── Responsive v3 ─────────────────────────────────────────────── */

@media (max-width: 860px) {
  .page-head h1 { font-size: 27px; }
  .servi-title { font-size: 27px; }
  .heavens-now { gap: 14px; }
  .heavens-now .big-glyph, .heavens-now .big-temp { font-size: 46px; }
  .cal-day .n { font-size: 17px; }
  .cal-day .g { font-size: 7.5px; }
  .menu-pane { margin-right: 10px; margin-top: 56px; }
  .pname { font-size: 30px; }
  .prof-hero .banner { height: 150px; }
  .pstats { gap: 18px; }
  .hr-row .bb .dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .ol-row .tp { width: 70px; }
  .cat-chip { min-width: 132px; }
  .wx-grid { gap: 9px; }
  .server-page .server-view { min-height: 68vh; }
}
@media (max-width: 560px) {
  .explore-page .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-alt { flex-direction: column; align-items: center; gap: 6px; }
  .dd-name { font-size: 26px; }
  .jr-tools { gap: 6px 12px; }
  .jentry-acts { gap: 12px; }
  .pgrid { gap: 3px; }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Media Vault feedback ──────────────────────────────────────── */

.media-missing {
  border: 1px dashed rgba(232, 106, 124, 0.45);
  border-radius: 14px;
  background: rgba(232, 106, 124, 0.06);
  color: var(--ink-mid);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 18px 20px;
}
.media-missing b { color: var(--rose); }
.watch-stage .media-missing { position: absolute; inset: 0; display: flex; align-items: center; padding: 30px 40px; border: 0; border-radius: 0; }

.vault-meter { font-size: 13px; color: var(--ink-mid); }
.vault-meter .row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-family: var(--font-mono); font-size: 12px; }
.vault-meter .bar { height: 8px; border-radius: 4px; background: rgba(237, 233, 220, 0.08); overflow: hidden; }
.vault-meter .bar .fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.vault-meter .ok { color: var(--emerald); font-family: var(--font-body); }
.vault-meter .warn { color: var(--gold); font-family: var(--font-body); }

/* ── The Broadcast Tower (live streaming) ──────────────────────── */

.live-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d5e;
  box-shadow: 0 0 8px rgba(255, 77, 94, 0.9);
  animation: live-pulse 1.6s ease infinite;
}
@keyframes live-pulse { 50% { opacity: 0.45; } }
.live-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: #e5313f;
  color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em;
  border-radius: 7px; padding: 3px 10px;
  box-shadow: 0 2px 12px rgba(229, 49, 63, 0.55);
  animation: live-pulse 2.2s ease infinite;
}
.live-badge.big { font-size: 12px; padding: 5px 14px; left: 14px; top: 14px; }

.live-card {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.live-card:hover { transform: translateY(-2px); border-color: rgba(255, 77, 94, 0.5); }
.live-card .thumb { position: relative; aspect-ratio: 16 / 9; }
.live-card .thumb svg { display: block; width: 100%; height: 100%; }
.live-card .lc-viewers {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(7, 9, 18, 0.82); color: var(--ink);
  border-radius: 7px; padding: 2px 9px;
  font-family: var(--font-mono); font-size: 11.5px;
}
.live-card .lc-uptime {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(7, 9, 18, 0.82); color: var(--muted);
  border-radius: 7px; padding: 2px 9px;
  font-family: var(--font-mono); font-size: 11.5px;
}
.live-card .body { padding: 12px 14px 14px; }
.live-card .body .row { display: flex; gap: 10px; align-items: flex-start; }
.live-card .body .b { min-width: 0; }
.live-card .body .t { font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-card .body .s { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin-top: 3px; }

.live-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  padding-top: 6px;
}
.live-stage-wrap { min-width: 0; }
.live-stage {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  background: var(--abyss-deep);
  aspect-ratio: 16 / 9;
}
.live-stage canvas, .live-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.stream-head { display: flex; gap: 14px; align-items: center; padding: 16px 4px 6px; }
.stream-head .b { min-width: 0; }
.stream-head h2 { font-size: 22px; line-height: 1.3; }
.stream-head .s { font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); margin-top: 3px; }
.stream-meta { display: flex; align-items: center; gap: 10px; padding: 8px 4px 0; flex-wrap: wrap; }
.viewers-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 77, 94, 0.45);
  border-radius: 999px; padding: 6px 14px;
  color: #ff8d98; font-family: var(--font-mono); font-size: 12px;
  background: rgba(229, 49, 63, 0.08);
}
.uptime-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 14px;
  color: var(--ink-mid); font-family: var(--font-mono); font-size: 12px;
}
.uptime-chip svg { width: 14px; height: 14px; }

.live-chat {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  display: flex; flex-direction: column;
  height: min(72vh, 640px);
  overflow: hidden;
}
.lchat-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.lchat-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.lchat-msg { font-size: 13.5px; line-height: 1.5; color: var(--ink-mid); word-break: break-word; }
.lchat-msg .n { font-weight: 700; margin-right: 7px; }
.lchat-msg .n .owner-crown svg { width: 12px; height: 12px; }
.lchat-msg.cheer { background: rgba(216, 180, 90, 0.1); border: 1px solid var(--hairline); border-radius: 10px; padding: 6px 10px; color: var(--gold-bright); }
.lchat-msg.sys { color: var(--muted); font-style: italic; font-size: 12.5px; }
.sub-badge { color: var(--gold-bright); margin-right: 4px; }
.lchat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--hairline-soft); }
.lchat-form input { border-radius: 999px; font-size: 13px; }

.onair-card {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  border: 1px solid rgba(255, 77, 94, 0.5);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(229, 49, 63, 0.12), rgba(19, 24, 41, 0.9));
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.onair-card .live-badge { position: static; }
.onair-card .b .t { font-weight: 600; font-size: 15px; }
.onair-card .b .s { font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted); margin-top: 3px; }

@media (max-width: 1240px) {
  .live-page { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 860px) {
  .live-page { grid-template-columns: 1fr; }
  .live-chat { height: 46vh; }
  .lc-grid { grid-template-columns: 1fr; }
}

/* Clickable profile stats (follower rolls) */
button.stat { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
button.stat:hover .v { color: #fff; }

/* ── The Parlor — games of the house ───────────────────────────── */

.parlor-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.parlor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.parlor-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  padding: 18px; border-radius: 18px;
  border: 1px solid var(--hairline); background: var(--surface);
  cursor: pointer; color: var(--ink); font-family: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
.parlor-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.parlor-card .glyph {
  flex: none; width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px; color: var(--gold);
  background: radial-gradient(120% 120% at 30% 20%, rgba(216, 180, 90, 0.18), rgba(124, 111, 232, 0.10) 70%, transparent);
  border: 1px solid var(--gold-dim);
}
.parlor-card .b { flex: 1; min-width: 0; }
.parlor-card .n { display: block; font-family: var(--font-display); font-size: 18px; }
.parlor-card .n .fresh { font-size: 9.5px; letter-spacing: 0.2em; color: var(--violet, #7c6fe8); text-transform: uppercase; margin-left: 6px; }
.parlor-card .s { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.parlor-card .st { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.12em; }
.parlor-card .go { color: var(--muted); }
.parlor-card .go svg { width: 18px; height: 18px; }

.game-room { max-width: 460px; margin: 0 auto; }
.sg-date { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 14px; }
.sg-date b { color: var(--gold); }

/* Sigil board */
.sg-board { display: grid; gap: 7px; justify-content: center; margin-bottom: 14px; }
.sg-row { display: grid; grid-template-columns: repeat(5, 58px); gap: 7px; }
.sg-cell {
  height: 58px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; text-transform: uppercase;
  border: 1.5px solid var(--hairline); border-radius: 10px;
  background: rgba(19, 24, 41, 0.55); color: var(--ink);
}
.sg-cell.filled { border-color: var(--gold-dim); animation: sg-pop 0.12s ease; }
.sg-cell.t-set { background: linear-gradient(160deg, #d8b45a, #b28a34); border-color: #d8b45a; color: #16120a; animation: sg-flip 0.4s ease both; }
.sg-cell.t-drift { background: linear-gradient(160deg, #7c6fe8, #5a4fc0); border-color: #7c6fe8; color: #0e0c1e; animation: sg-flip 0.4s ease both; }
.sg-cell.t-void { background: rgba(9, 11, 22, 0.9); border-color: rgba(255, 255, 255, 0.06); color: var(--muted); animation: sg-flip 0.4s ease both; }
@keyframes sg-pop { 50% { transform: scale(1.08); } }
@keyframes sg-flip { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.sg-cell.settled { animation: none; }

.sg-oracle { text-align: center; margin-bottom: 14px; }
.sg-verdict { text-align: center; padding: 14px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); margin-bottom: 14px; }
.sg-verdict .t { font-size: 15px; }
.sg-verdict .t b { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.06em; }
.sg-verdict .s { color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.sg-verdict.won { border-color: var(--gold-dim); }

/* Sigil keyboard — also the Forge's pad keys */
.sg-kb { display: grid; gap: 6px; justify-content: center; }
.sg-krow { display: flex; gap: 5px; justify-content: center; }
.sg-key {
  min-width: 34px; height: 46px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--hairline);
  background: rgba(30, 36, 58, 0.9); color: var(--ink);
  font-family: var(--font-body); font-size: 14px; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s;
}
.sg-key:hover { background: rgba(44, 52, 80, 0.95); }
.sg-key.wide { min-width: 56px; font-size: 11.5px; letter-spacing: 0.08em; }
.sg-key.k-set { background: linear-gradient(160deg, #d8b45a, #b28a34); color: #16120a; border-color: #d8b45a; }
.sg-key.k-drift { background: linear-gradient(160deg, #7c6fe8, #5a4fc0); color: #0e0c1e; border-color: #7c6fe8; }
.sg-key.k-void { background: rgba(9, 11, 22, 0.9); color: rgba(154, 160, 180, 0.55); }

/* Aurum Forge */
.fg-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.fg-score { display: grid; text-align: center; padding: 6px 16px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); }
.fg-score .k { font-size: 9.5px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; font-family: var(--font-display); }
.fg-score .v { font-family: var(--font-mono); font-size: 17px; color: var(--gold); }
.fg-board {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 10px; border-radius: 16px;
  border: 1px solid var(--hairline); background: rgba(9, 11, 22, 0.8);
  touch-action: none; user-select: none;
  max-width: 420px; margin: 0 auto 12px;
}
.fg-cell {
  aspect-ratio: 1; border-radius: 10px;
  display: grid; place-items: center; align-content: center; gap: 2px;
  background: rgba(19, 24, 41, 0.6); border: 1px solid rgba(255, 255, 255, 0.04);
}
.fg-cell .nm { font-family: var(--font-display); font-size: clamp(10px, 2.4vw, 13.5px); letter-spacing: 0.04em; }
.fg-cell .pw { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.7; }
.fg-cell.m-1 { background: #3a4152; color: #cfd6e4; }
.fg-cell.m-2 { background: #4a4f58; color: #dfe3ea; }
.fg-cell.m-3 { background: #7a4b2e; color: #ffd9bd; }
.fg-cell.m-4 { background: #6e4f23; color: #ffe1a8; }
.fg-cell.m-5 { background: #8b95a5; color: #10141f; }
.fg-cell.m-6 { background: #b9a96b; color: #16120a; }
.fg-cell.m-7 { background: linear-gradient(160deg, #d8b45a, #b28a34); color: #16120a; box-shadow: 0 0 18px rgba(216, 180, 90, 0.35); }
.fg-cell.m-8 { background: linear-gradient(160deg, #e8b49a, #c07a5e); color: #241008; box-shadow: 0 0 18px rgba(232, 180, 154, 0.35); }
.fg-cell.m-9 { background: linear-gradient(160deg, #dfe6f2, #9aa6bd); color: #10141f; box-shadow: 0 0 20px rgba(223, 230, 242, 0.3); }
.fg-cell.m-10 { background: linear-gradient(160deg, #ffd978, #d8951f); color: #201404; box-shadow: 0 0 26px rgba(255, 217, 120, 0.5); }
.fg-cell.m-11 { background: linear-gradient(160deg, #7c6fe8, #d8b45a); color: #0e0c1e; box-shadow: 0 0 30px rgba(124, 111, 232, 0.6); }
.fg-over {
  position: absolute; inset: 0; border-radius: 16px;
  display: grid; place-items: center; align-content: center; gap: 10px;
  background: rgba(7, 9, 18, 0.82); backdrop-filter: blur(3px);
}
.fg-over .t { font-family: var(--font-display); font-size: 19px; }
.fg-hint { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 12px; max-width: 380px; margin-inline: auto; }
.fg-pad { display: grid; gap: 6px; justify-items: center; }
.fg-pad > div { display: flex; gap: 6px; }
.fg-pad .sg-key { min-width: 52px; }
@media (min-width: 720px) { .fg-pad { display: none; } }

/* Constellation Pairs */
.pr-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; max-width: 420px; margin: 0 auto 14px; }
.pr-card {
  aspect-ratio: 1; border: 0; background: none; padding: 0; cursor: pointer;
  perspective: 500px; font-family: inherit;
}
.pr-card .in {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.35s ease;
}
.pr-card.up .in { transform: rotateY(180deg); }
.pr-card .back, .pr-card .face {
  position: absolute; inset: 0; border-radius: 12px;
  display: grid; place-items: center; backface-visibility: hidden;
}
.pr-card .back {
  font-size: 17px; color: var(--gold-dim);
  background: rgba(19, 24, 41, 0.85); border: 1px solid var(--hairline);
}
.pr-card:hover .back { border-color: var(--gold-dim); }
.pr-card .face {
  font-size: 30px; color: var(--gold); transform: rotateY(180deg);
  background: radial-gradient(120% 120% at 30% 20%, rgba(216, 180, 90, 0.2), rgba(19, 24, 41, 0.95) 70%);
  border: 1px solid var(--gold-dim);
}
.pr-card.found .face { color: #0e0c1e; background: linear-gradient(160deg, #d8b45a, #7c6fe8); border-color: transparent; }

/* Vesper Chimes */
.ch-tower { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 360px; margin: 0 auto 14px; }
.ch-bell {
  aspect-ratio: 1.25; border-radius: 18px; cursor: pointer;
  display: grid; place-items: center; align-content: center; gap: 4px;
  font-family: inherit; color: var(--ink);
  border: 1.5px solid var(--hairline); background: rgba(19, 24, 41, 0.7);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.ch-bell .g { font-size: 30px; opacity: 0.9; }
.ch-bell .n { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ch-bell.b-0 .g { color: #d8b45a; }
.ch-bell.b-1 .g { color: #7c6fe8; }
.ch-bell.b-2 .g { color: #2fa3ab; }
.ch-bell.b-3 .g { color: #e86a7c; }
.ch-bell.lit { transform: scale(1.05); border-color: currentColor; }
.ch-bell.b-0.lit { box-shadow: 0 0 26px rgba(216, 180, 90, 0.55); border-color: #d8b45a; }
.ch-bell.b-1.lit { box-shadow: 0 0 26px rgba(124, 111, 232, 0.55); border-color: #7c6fe8; }
.ch-bell.b-2.lit { box-shadow: 0 0 26px rgba(47, 163, 171, 0.55); border-color: #2fa3ab; }
.ch-bell.b-3.lit { box-shadow: 0 0 26px rgba(232, 106, 124, 0.55); border-color: #e86a7c; }
.ch-tower.listening .ch-bell { cursor: wait; }

@media (max-width: 520px) {
  .sg-row { grid-template-columns: repeat(5, min(58px, 16.5vw)); }
  .sg-cell { height: min(58px, 16.5vw); font-size: 21px; }
  .sg-key { min-width: 28px; height: 44px; padding: 0 6px; font-size: 13px; }
}

/* ── The channel page — Live · Past videos · Schedule · About · Recommended ── */

.chan-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px; padding-bottom: 2px;
}
.chan-tabs::-webkit-scrollbar { display: none; }
.chan-tab {
  position: relative; flex: none;
  padding: 10px 16px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  display: flex; align-items: center; gap: 7px;
}
.chan-tab:hover { color: var(--ink); }
.chan-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.chan-tab .ct {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(216, 180, 90, 0.14); color: var(--gold-dim);
}
.chan-tab .lv-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #e86a7c;
  box-shadow: 0 0 0 3px rgba(232, 106, 124, 0.22);
  animation: lv-pulse 1.8s ease-in-out infinite;
}
@keyframes lv-pulse { 50% { opacity: 0.45; } }

/* Off air */
.offair {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 40px 24px; border-radius: 18px;
  border: 1px solid var(--hairline);
  background: radial-gradient(120% 100% at 50% 0%, rgba(124, 111, 232, 0.09), transparent 60%), var(--surface);
}
.offair .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.offair .t { font-family: var(--font-display); font-size: 20px; }
.offair .s { color: var(--muted); font-size: 13px; max-width: 460px; line-height: 1.6; }
.offair .s b { color: var(--gold); }

/* Schedule */
.slate { display: grid; gap: 10px; }
.slot {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.slot.next { border-color: var(--gold-dim); background: linear-gradient(100deg, rgba(216, 180, 90, 0.09), transparent 60%), var(--surface); }
.slot .day {
  flex: none; width: 78px; display: grid; gap: 2px; text-align: center;
  padding: 8px 4px; border-radius: 11px;
  background: rgba(9, 11, 22, 0.6); border: 1px solid var(--hairline);
}
.slot .day .wd { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.18em; color: var(--gold); }
.slot .day .hr { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.slot .b { flex: 1; min-width: 0; }
.slot .b .t { font-size: 15px; }
.slot .b .s { color: var(--muted); font-size: 12px; margin-top: 3px; }
.slot .b .s b { color: var(--gold); }
.slot .pill {
  flex: none; font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #16120a; background: var(--gold);
  padding: 3px 10px; border-radius: 999px;
}

/* About */
.chan-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chan-stats .cs {
  flex: 1; min-width: 120px; display: grid; gap: 2px; text-align: center;
  padding: 12px; border-radius: 13px; border: 1px solid var(--hairline); background: var(--surface);
}
.chan-stats .cs .v { font-family: var(--font-display); font-size: 21px; color: var(--gold); }
.chan-stats .cs .k { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.chan-copy { color: var(--ink-mid); font-size: 14.5px; line-height: 1.75; margin-bottom: 18px; }
.chan-copy p + p { margin-top: 12px; }
.chan-copy.dim { color: var(--muted); font-style: italic; }

.chan-goal { padding: 16px; border-radius: 15px; border: 1px solid var(--gold-dim); background: var(--surface); }
.chan-goal .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.chan-goal .row .k { font-family: var(--font-display); font-size: 15px; }
.chan-goal .row .v { font-family: var(--font-mono); font-size: 14px; color: var(--gold); white-space: nowrap; }
.chan-goal .row .of { color: var(--muted); }
.chan-goal .bar { height: 9px; border-radius: 999px; background: rgba(9, 11, 22, 0.75); overflow: hidden; }
.chan-goal .bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #b28a34, #d8b45a 60%, #ffd978); }
.chan-goal .s { color: var(--muted); font-size: 11.5px; margin-top: 7px; font-family: var(--font-mono); }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tier {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: 16px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.tier.held { border-color: var(--gold); }
.tier .nm { font-family: var(--font-display); font-size: 18px; color: var(--gold); }
.tier .pr { font-family: var(--font-mono); font-size: 17px; }
.tier .pr .per { font-size: 11.5px; color: var(--muted); margin-left: 5px; }
.tier ul, .perk-list { list-style: none; display: grid; gap: 7px; flex: 1; }
.tier li, .perk-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-mid); line-height: 1.5; }
.tier li svg, .perk-list li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--gold); }
.perk-list { margin: 12px 0 4px; }
.sub-active {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 13px; margin-bottom: 14px;
  border: 1px solid var(--gold-dim); background: rgba(216, 180, 90, 0.08); font-size: 13.5px;
}
.sub-active svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.sub-active b { color: var(--gold); }
.sub-active .btn { margin-left: auto; }

.chan-links { display: grid; gap: 10px; }
.clink { position: relative; display: flex; align-items: center; }
.clink .hit {
  flex: 1; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink); font-family: inherit;
  transition: border-color 0.18s, transform 0.14s;
}
.clink .hit:hover { border-color: var(--gold-dim); transform: translateX(2px); }
.clink .ic {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: rgba(216, 180, 90, 0.10); border: 1px solid var(--gold-dim);
}
.clink .ic svg { width: 19px; height: 19px; }
.clink .b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.clink .b .t { font-size: 14.5px; }
.clink .b .s { color: var(--muted); font-size: 12px; }
.clink .go { color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.clink .go svg { width: 17px; height: 17px; display: block; }
.clink .archive-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.clink:has(.archive-btn) .hit { padding-right: 84px; }

.chan-tipbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px; border-radius: 15px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.chan-tipbar .s { color: var(--muted); font-size: 12.5px; }

/* Recommended */
.rec-list { display: grid; gap: 10px; }
.rec {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 15px;
  border: 1px solid var(--hairline); background: var(--surface);
}
.rec .who {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 13px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  color: var(--ink); font-family: inherit;
}
.rec .who:hover .n { color: var(--gold); }
.rec .av { flex: none; position: relative; display: block; border-radius: 50%; }
.rec .av.onair { box-shadow: 0 0 0 2px #e86a7c, 0 0 0 5px rgba(232, 106, 124, 0.2); }
.rec .b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rec .n { font-family: var(--font-display); font-size: 16px; display: flex; align-items: center; gap: 8px; }
.rec .n .lv {
  font-size: 8.5px; letter-spacing: 0.18em; padding: 2px 7px; border-radius: 999px;
  background: #e86a7c; color: #1a0509;
}
.rec .s, .rec .m {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec .s { font-size: 13px; color: var(--ink-mid); }
.rec .m { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }

@media (max-width: 560px) {
  .chan-tab { padding: 10px 11px 12px; font-size: 11.5px; letter-spacing: 0.08em; }
  .slot { gap: 12px; padding: 12px; }
  .slot .day { width: 66px; }
  .chan-stats .cs { min-width: calc(50% - 5px); }
}
.clink .go .give {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #16120a; background: var(--gold);
  padding: 4px 12px; border-radius: 999px;
}

/* ── Eight Ball — the parlor's pool table ───────────────────────── */
.pool-room { max-width: 560px; margin: 0 auto; }
.pool-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pool-side { padding: 8px 10px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.pool-side.on { opacity: 1; border-color: var(--gold-dim); box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.18) inset; }
.pool-side .k { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pool-side.on .k { color: var(--gold); }
.pool-side .dots { display: flex; flex-wrap: wrap; gap: 4px; min-height: 18px; }
.pool-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9px; color: #fff; background: var(--c, #888); border: 1.5px solid rgba(255, 255, 255, 0.35); text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); }
.pool-dot.stripe { background: linear-gradient(180deg, #f4efe4 0 26%, var(--c, #888) 26% 74%, #f4efe4 74%); color: #1a1408; text-shadow: none; }
.pool-dot.eight { background: #111; }
.pool-dot.in { opacity: 0.22; filter: grayscale(0.6); }
.pool-open { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; align-self: center; }
.pool-table { display: block; width: 100%; aspect-ratio: 362 / 190; touch-action: none; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(216, 180, 90, 0.25); cursor: crosshair; user-select: none; -webkit-user-select: none; }
.pool-ctl { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; }
.pool-ctl input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
.pool-rules { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; margin-top: 10px; max-width: 420px; margin-inline: auto; }

/* ── Motor City — the garage-and-lot game ──────────────────────── */

.ct-hud {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 15px; margin-bottom: 14px;
  border: 1px solid var(--hairline);
  background: linear-gradient(100deg, rgba(216, 180, 90, 0.08), transparent 55%), var(--surface);
}
.ct-hud .lv { display: grid; justify-items: center; flex: none; }
.ct-hud .lv .n { font-family: var(--font-display); font-size: 26px; color: var(--gold); line-height: 1; }
.ct-hud .lv .k { font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.ct-hud .xp { flex: 1; min-width: 140px; }
.ct-hud .xp .t { height: 8px; border-radius: 999px; background: rgba(9, 11, 22, 0.8); overflow: hidden; }
.ct-hud .xp .t i { display: block; height: 100%; background: linear-gradient(90deg, #7c6fe8, #d8b45a); }
.ct-hud .xp .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 5px; }
.ct-hud .res { display: flex; gap: 8px; flex-wrap: wrap; }
.ct-hud .res .r {
  font-family: var(--font-mono); font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); background: rgba(9, 11, 22, 0.55); white-space: nowrap;
}
.ct-hud .res .r.gold { color: var(--gold); border-color: var(--gold-dim); }

.ct-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.ct-tabs::-webkit-scrollbar { display: none; }
.ct-tab {
  position: relative; flex: none; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--muted);
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.ct-tab:hover { color: var(--ink); }
.ct-tab.on { background: var(--gold); border-color: var(--gold); color: #16120a; }
.ct-tab .rdy {
  position: absolute; top: 5px; right: 7px; width: 7px; height: 7px; border-radius: 50%;
  background: #7c6fe8; box-shadow: 0 0 0 3px rgba(124, 111, 232, 0.25);
}

.ct-note { color: var(--muted); font-size: 13px; line-height: 1.65; margin-bottom: 14px; }

/* The lot */
.ct-lotwrap {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline);
  background: radial-gradient(120% 90% at 50% 0%, rgba(124, 111, 232, 0.10), transparent 60%), #10131f;
}
.ct-lot { display: block; width: 100%; height: auto; }
.ct-tile { cursor: pointer; transition: fill 0.15s; }
.ct-tile:hover { fill: #2a3350; }
.ct-tile.open { fill: rgba(216, 180, 90, 0.16); stroke: var(--gold-dim); }
.ct-item { cursor: pointer; }
.ct-item:hover { filter: brightness(1.16); }
.ct-lotcar.out { opacity: 0.42; }
.ct-lotbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ct-lotbar .s { color: var(--muted); font-size: 12px; }
.ct-placing {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 10px;
  border: 1px solid var(--gold-dim); background: rgba(216, 180, 90, 0.09); font-size: 13px;
}
.ct-collect {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 12px; border-radius: 13px; margin-bottom: 10px; cursor: pointer;
  border: 1px solid var(--gold); background: rgba(216, 180, 90, 0.13); color: var(--gold);
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.06em;
}
.ct-collect svg { width: 18px; height: 18px; }

/* Cars */
.car-svg { display: block; width: 100%; height: auto; }
.ct-card .look { font-size: 11.5px; color: var(--gold-dim); font-style: italic; letter-spacing: 0.02em; }

/* Dealership */
.ct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ct-card {
  display: flex; flex-direction: column; gap: 7px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface);
}
.ct-card.locked { opacity: 0.5; }
.ct-card .pic { background: radial-gradient(80% 70% at 50% 80%, #2a3148, #10131c); border-radius: 11px; padding: 2px 4px 0; overflow: hidden; }
.ct-card .nm { font-family: var(--font-display); font-size: 16px; display: flex; justify-content: space-between; gap: 8px; }
.ct-card .nm .own { font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); }
.ct-card .mk { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ct-card .bars { display: grid; gap: 4px; margin: 3px 0 5px; }
.ct-card .bar { display: flex; align-items: center; gap: 7px; }
.ct-card .bar .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); width: 42px; }
.ct-card .bar .t { flex: 1; height: 5px; border-radius: 999px; background: rgba(9, 11, 22, 0.8); overflow: hidden; }
.ct-card .bar .t i { display: block; height: 100%; background: linear-gradient(90deg, #7c6fe8, #d8b45a); }
.ct-card .lock, .job .lock, .rival .lock {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-display);
}
.ct-card .lock svg, .job .lock svg, .rival .lock svg { width: 14px; height: 14px; }

.ct-wreck { display: flex; gap: 18px; flex-wrap: wrap; padding: 18px; border-radius: 16px; border: 1px solid var(--hairline); background: var(--surface); }
.ct-wreck .pic { flex: 1; min-width: 220px; background: rgba(9, 11, 22, 0.5); border-radius: 12px; padding: 10px; }
.ct-wreck .b { flex: 1; min-width: 220px; display: grid; align-content: center; gap: 6px; }
.ct-wreck .n { font-family: var(--font-display); font-size: 20px; }
.ct-wreck .s { color: var(--muted); font-size: 13px; }
.ct-wreck .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Garage */
.ct-bay { display: flex; gap: 20px; flex-wrap: wrap; padding: 18px; border-radius: 18px; border: 1px solid var(--hairline); background: var(--surface); }
.ct-bay .stage {
  flex: 1.6; min-width: 280px; border-radius: 14px; padding: 0; overflow: hidden;
  background: #1a1610;
}
.ct-garage-svg { display: block; width: 100%; height: auto; }
.ct-bay .meta { flex: 1; min-width: 220px; display: grid; align-content: center; gap: 8px; }
.ct-bay .nm { font-family: var(--font-display); font-size: 23px; }
.ct-bay .mk { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ct-bay .pw { display: flex; align-items: baseline; gap: 9px; }
.ct-bay .pw .k { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.ct-bay .pw .v { font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.ct-bay .cond { display: flex; align-items: center; gap: 9px; }
.ct-bay .cond .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ct-bay .cond .t { flex: 1; height: 7px; border-radius: 999px; background: rgba(9, 11, 22, 0.8); overflow: hidden; }
.ct-bay .cond .t i { display: block; height: 100%; background: #4fb07a; }
.ct-bay .cond .t i.mid { background: #d8b45a; }
.ct-bay .cond .t i.bad { background: #d2542f; }
.ct-bay .cond .v { font-family: var(--font-mono); font-size: 12px; }
.ct-bay .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.ct-bay .s { color: var(--muted); font-size: 12.5px; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; }

.ct-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ct-swatches .sw {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink); font-family: inherit; text-align: left;
}
.ct-swatches .sw:hover { border-color: var(--gold-dim); }
.ct-swatches .sw.on { border-color: var(--gold); background: rgba(216, 180, 90, 0.09); }
.ct-swatches .sw .dot { width: 26px; height: 26px; border-radius: 8px; flex: none; border: 1px solid rgba(255,255,255,0.14); }
.ct-swatches .sw .wheel { flex: none; }
.ct-swatches .sw .nm { flex: 1; font-size: 13px; }
.ct-swatches .sw .pr { font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); white-space: nowrap; }

.ct-tune { display: grid; gap: 10px; }
.ct-tune .tune { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface); }
.ct-tune .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: var(--gold); background: rgba(216, 180, 90, 0.10); border: 1px solid var(--gold-dim); }
.ct-tune .b { flex: 1; min-width: 0; }
.ct-tune .n { font-size: 14.5px; }
.ct-tune .n .lv { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: 6px; }
.ct-tune .pips { display: flex; gap: 4px; margin: 5px 0 3px; }
.ct-tune .pips i { width: 22px; height: 5px; border-radius: 999px; background: rgba(9, 11, 22, 0.85); }
.ct-tune .pips i.on { background: var(--gold); }
.ct-tune .s { font-size: 11.5px; color: var(--muted); }
.ct-tune .maxed { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* Jobs */
.ct-running { display: grid; gap: 10px; margin-bottom: 16px; }
.ct-running .run, .ct-jobs .job, .ct-rivals .rival, .ct-mypower {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface);
}
.ct-running .run.done { border-color: var(--gold); background: rgba(216, 180, 90, 0.08); }
.mini { flex: none; width: 92px; }
.ct-running .b, .ct-jobs .b, .ct-rivals .b, .ct-mypower .b { flex: 1; min-width: 0; }
.ct-running .n, .ct-jobs .n, .ct-rivals .n, .ct-mypower .n { font-size: 14.5px; }
.ct-running .s, .ct-jobs .s, .ct-rivals .s, .ct-mypower .s { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ct-mypower .s b { color: var(--gold); font-family: var(--font-mono); }
.ct-jobs { display: grid; gap: 10px; }
.ct-jobs .job.locked, .ct-rivals .rival.locked { opacity: 0.5; }
.ct-mypower { margin-bottom: 16px; }

/* Races */
.ct-rivals { display: grid; gap: 10px; }
.ct-rivals .odds { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ct-rivals .odds .t { flex: 1; max-width: 160px; height: 5px; border-radius: 999px; background: rgba(9, 11, 22, 0.8); overflow: hidden; }
.ct-rivals .odds .t i { display: block; height: 100%; background: linear-gradient(90deg, #d2542f, #d8b45a); }
.ct-rivals .odds .v { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.ct-log { display: grid; gap: 6px; margin-top: 16px; }
.ct-log .lg { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 10px; background: rgba(9, 11, 22, 0.45); font-size: 12.5px; }
.ct-log .lg .v { font-family: var(--font-mono); }
.ct-log .lg.w .v { color: #4fb07a; }
.ct-log .lg.l .v { color: #d2542f; }

.ct-result { text-align: center; }
.ct-result .ttl { font-family: var(--font-display); font-size: 28px; margin-bottom: 14px; }
.ct-result.won .ttl { color: var(--gold); }
.ct-result.lost .ttl { color: #d2542f; }
.ct-result .cars { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.ct-result .side { flex: 1; min-width: 150px; }
.ct-result .side .n { font-size: 13px; margin-top: 4px; }
.ct-result .side .v { font-family: var(--font-mono); font-size: 20px; color: var(--gold); }
.ct-result .vs { font-family: var(--font-display); color: var(--muted); letter-spacing: 0.2em; }
.ct-result .pay { font-family: var(--font-mono); font-size: 17px; margin-top: 14px; }

/* Pickers */
.ct-pick, .ct-buildlist { display: grid; gap: 10px; max-height: 62vh; overflow-y: auto; }
.ct-pick .pk, .ct-buildlist .bd {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px; cursor: pointer;
  border-radius: 13px; border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink); font-family: inherit; text-align: left; width: 100%;
}
.ct-pick .pk:hover, .ct-buildlist .bd:hover { border-color: var(--gold-dim); }
.ct-pick .pk.on { border-color: var(--gold); }
.ct-buildlist .bd.locked { opacity: 0.45; cursor: default; }
.ct-buildlist .pic { flex: none; width: 74px; }
.ct-buildlist .pic svg { display: block; width: 100%; height: auto; }
.ct-pick .b, .ct-buildlist .b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ct-pick .n, .ct-buildlist .n { font-family: var(--font-display); font-size: 15px; }
.ct-pick .s, .ct-buildlist .s { font-size: 12px; color: var(--muted); }
.ct-buildlist .pr { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }

@media (max-width: 560px) {
  .ct-hud { gap: 10px; padding: 10px 12px; }
  .ct-hud .res .r { font-size: 11.5px; padding: 4px 9px; }
  .ct-tab { padding: 8px 12px; font-size: 11px; }
  .mini { width: 68px; }
  .ct-bay { padding: 13px; gap: 14px; }
}
/* While placing, sprites that overhang their tile must not steal the ground's clicks. */
.ct-lot.placing .ct-item { pointer-events: none; }
/* A nested car in the lot keeps its own user-unit size — the 100% rule above
   would otherwise resolve against the whole lot viewport. */
.ct-lot .car-svg { width: 340px; height: 180px; }
/* Keep the price whole when a paint name runs long. */
.ct-swatches .sw .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ct-swatches .sw .pr { flex: none; }

/* ═══════════════════════════════════════════════════════════════════
   THE GILT EDITION — Spirachron as a rich man's journal.
   Gold leaf, vellum, engraved edges, glass, and quiet ceremony.
   This layer sits last in the cascade and governs the whole house.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --gold-leaf: linear-gradient(135deg, #f7e5a6 0%, #dcb95e 34%, #b98e37 58%, #f0d48a 100%);
  --gold-ink: linear-gradient(100deg, #f7e5a6 8%, #d8b45a 48%, #b3893a 92%);
  --vellum: #f2eadb;
  --vellum-deep: #e7dcc3;
  --vellum-ink: #2a2216;
  --vellum-soft: #6f5d3f;
  --vellum-rule: rgba(120, 90, 40, 0.18);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  --glow-gold: 0 0 0 1px rgba(216, 180, 90, 0.28), 0 10px 34px rgba(216, 180, 90, 0.12);
  scrollbar-color: rgba(216, 180, 90, 0.35) transparent;
  scrollbar-width: thin;
}

/* ── Ground: paper grain, a soft vignette, and gold focus ────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(3, 4, 10, 0.55) 100%),
    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='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.8  0 0 0 0.07 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  mix-blend-mode: soft-light;
  opacity: 0.9;
}
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(216, 180, 90, 0.28); border-radius: 999px; border: 2px solid var(--abyss); }
::-webkit-scrollbar-thumb:hover { background: rgba(216, 180, 90, 0.5); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-dim) !important;
  box-shadow: 0 0 0 3px rgba(216, 180, 90, 0.13);
}
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
p, .ftext, .jentry-text, .chan-copy, .legal-scroll p { text-wrap: pretty; hanging-punctuation: first; }

/* ── The name, set in gold leaf ──────────────────────────────────── */
.wordmark .name { display: grid; gap: 3px; line-height: 1; }
.wordmark .name, .wordmark .name span:not(.tag) {
  background: var(--gold-ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark .name .tag {
  display: block; font-family: var(--font-display);
  font-size: 8.5px; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--gold-dim); -webkit-text-fill-color: var(--gold-dim); background: none;
}
.gilt-word { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.06em; }
.topbar .brand .name { letter-spacing: 0.05em; text-shadow: 0 0 22px rgba(216, 180, 90, 0.18); }

/* ── Shell: a lit rail, glass bars, engraved seams ───────────────── */
.rail {
  background: linear-gradient(180deg, rgba(19, 24, 41, 0.55), rgba(19, 24, 41, 0) 42%);
  border-right: 1px solid rgba(216, 180, 90, 0.16);
}
.rail-link { transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s; }
.rail-link:hover { transform: translateX(2px); }
.rail-link.active {
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.17), rgba(216, 180, 90, 0.03));
  color: var(--gold-bright);
  box-shadow: inset 2px 0 0 var(--gold);
}
.rail-link.active svg { filter: drop-shadow(0 0 6px rgba(240, 212, 138, 0.4)); }
.rail-sep {
  border: 0; height: 1px; margin: 12px 6px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.45), transparent);
}
.rail-me { box-shadow: var(--edge); border-color: rgba(216, 180, 90, 0.18); }
.main-head {
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
.topbar { background: linear-gradient(180deg, #0d1120, var(--abyss)); }
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 90, 0.32) 30%, rgba(216, 180, 90, 0.32) 70%, transparent);
}
.topbar { position: relative; }
.panel { border-left: 1px solid rgba(216, 180, 90, 0.16); }
.tabbar {
  background: rgba(11, 14, 26, 0.86);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(216, 180, 90, 0.2);
}

/* ── Titles: gold leaf with an engraved rule and a single star ───── */
.page-head { position: relative; padding-bottom: 18px; margin-bottom: 20px; }
.page-head h1 {
  font-size: 38px; letter-spacing: 0.01em;
  background: var(--gold-ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .crumb {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold-dim); margin-top: 6px;
}
.page-head::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.6), rgba(216, 180, 90, 0.18) 45%, transparent 100%);
}
.page-head::before {
  content: '✦'; position: absolute; left: 0; bottom: -7px; font-size: 11px; line-height: 1;
  color: var(--gold); background: var(--abyss); padding-right: 6px;
}
.modal h2, .signout-card h2 {
  background: var(--gold-ink);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel-card h3, .eyebrow, .modal .field label, .ptab-head .s, .ptabs-note, .parlor-card .st {
  font-family: var(--font-display); font-weight: 400;
}
.panel-card h3::before { content: '✦ '; color: var(--gold-dim); font-size: 10px; vertical-align: 2px; }
.section-title h2::after, .ptab-head h2::after {
  content: ''; display: block; width: 38px; height: 1px; margin-top: 7px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ── Surfaces: machined edges, and a gold breath on hover ────────── */
.panel-card, .fpost, .media-card, .listing-card, .parlor-card, .tier, .clink .hit, .rec, .slot,
.composer2, .ct-card, .ct-bay, .chan-goal, .sales-card, .scomm-card, .live-card, .fg-score,
.sg-verdict, .ct-wreck, .ct-tune .tune, .ct-jobs .job, .ct-rivals .rival, .chan-stats .cs, .sub-active,
.offair, .status-bubble, .ct-hud, .refcard, .track-row, .srv-card, .cal-note {
  box-shadow: var(--edge), 0 1px 0 rgba(216, 180, 90, 0.05), var(--shadow-sm);
}
.parlor-card, .media-card, .listing-card, .live-card, .clink .hit, .rec, .scomm-card, .ct-card {
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.22s, border-color 0.22s;
}
.parlor-card:hover, .media-card:hover, .listing-card:hover, .live-card:hover, .scomm-card:hover, .ct-card:not(.locked):hover {
  transform: translateY(-3px);
  border-color: rgba(216, 180, 90, 0.5);
  box-shadow: var(--edge), var(--glow-gold), var(--shadow-lg);
}
.prof-hero .banner {
  border-color: rgba(216, 180, 90, 0.38);
  box-shadow: 0 0 0 1px rgba(216, 180, 90, 0.16), 0 0 0 6px rgba(216, 180, 90, 0.05), 0 22px 60px rgba(3, 4, 10, 0.6);
}
.goldcheck { filter: drop-shadow(0 0 7px rgba(240, 212, 138, 0.45)); }
.bigav .avatar { box-shadow: 0 0 0 5px rgba(11, 14, 26, 0.8), 0 0 0 6px rgba(216, 180, 90, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5); }

/* ── Buttons: gold leaf, engraved lettering, a passing sheen ──────── */
.btn {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 12.5px;
  box-shadow: var(--edge);
  transition: background 0.2s, border-color 0.2s, transform 0.12s, box-shadow 0.2s;
}
.btn-sm { font-size: 11.5px; letter-spacing: 0.1em; }
.btn-gold {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--gold-leaf);
  border-color: rgba(247, 229, 166, 0.7);
  color: #231905; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(90, 60, 10, 0.45), 0 6px 18px rgba(216, 180, 90, 0.22);
}
.btn-gold::after {
  content: ''; position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-70%);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn-gold:hover { background: var(--gold-leaf); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(90, 60, 10, 0.45), 0 10px 28px rgba(216, 180, 90, 0.32); }
.btn-gold:hover::after { transform: translateX(70%); }
.btn-ghost { border-color: rgba(216, 180, 90, 0.22); color: var(--ink-mid); }
.btn-ghost:hover { border-color: rgba(216, 180, 90, 0.5); color: var(--gold-bright); background: rgba(216, 180, 90, 0.06); }
.chip.on, .ct-tab.on, .sg-key.wide:hover {
  background: var(--gold-leaf); color: #231905;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 14px rgba(216, 180, 90, 0.2);
}
.wallet-chip {
  background: linear-gradient(120deg, rgba(216, 180, 90, 0.2), rgba(216, 180, 90, 0.04));
  border-color: rgba(216, 180, 90, 0.35);
  box-shadow: var(--edge), 0 0 18px rgba(216, 180, 90, 0.08);
}

/* ── Modals and menus: a framed plate under glass ────────────────── */
.modal-veil, .menu-veil {
  background: radial-gradient(90% 70% at 50% 40%, rgba(7, 9, 18, 0.55), rgba(3, 4, 10, 0.86));
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}
.modal, .menu-pane, .signout-card {
  position: relative;
  background: linear-gradient(180deg, #171d33, #10152a);
  border: 1px solid rgba(216, 180, 90, 0.34);
  box-shadow: 0 0 0 5px rgba(216, 180, 90, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
}
.modal::before, .signout-card::before {
  content: ''; position: absolute; inset: 7px; pointer-events: none;
  border: 1px solid rgba(216, 180, 90, 0.16); border-radius: 14px;
}
.modal::after, .signout-card::after {
  content: '✦'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--gold); line-height: 1;
  background: #141a30; padding: 0 8px; pointer-events: none;
}
.modal .sub, .signout-card p { font-style: italic; font-family: var(--font-display); letter-spacing: 0.02em; }
.signout-card .eyebrow { color: var(--gold-dim); margin-bottom: 8px; }
.toast {
  border: 1px solid rgba(216, 180, 90, 0.45);
  background: linear-gradient(180deg, #1c2340, #131a2e);
  box-shadow: var(--glow-gold), var(--shadow-lg);
  font-family: var(--font-display); letter-spacing: 0.04em;
}

/* ── The journal: vellum leaves, a drop capital, a ribbon ────────── */
.jentry {
  position: relative;
  background: linear-gradient(180deg, var(--vellum) 0%, var(--vellum-deep) 100%);
  color: var(--vellum-ink);
  border: 1px solid #cdbd94;
  border-radius: 5px 18px 18px 5px;
  padding: 22px 26px 22px 30px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 14px 0 18px -14px rgba(90, 60, 20, 0.35),
    0 1px 0 #fff8e6, 0 16px 44px rgba(3, 4, 10, 0.6);
}
.jentry::before {
  content: ''; position: absolute; top: -6px; right: 28px; width: 14px; height: 52px;
  background: linear-gradient(180deg, #b8172f, #7a0e21);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.jentry.is-archived { opacity: 0.72; filter: saturate(0.7); }
.jentry-head .stamp { color: #8a5a1a; }
.jentry-head .privacy { color: var(--vellum-soft); background: rgba(120, 90, 40, 0.08); border-color: rgba(120, 90, 40, 0.28); }
.jentry-head .privacy.pub { color: #231905; }
.jentry-acts button { color: var(--vellum-soft); }
.jentry-acts button:hover { color: #7a3f0b; }
.jentry-text {
  color: var(--vellum-ink); font-size: 16px; line-height: 28px; padding-top: 8px;
  background: repeating-linear-gradient(180deg, transparent 0 27px, var(--vellum-rule) 27px 28px);
  background-position: 0 8px;
}
.jentry-text::first-letter {
  font-family: var(--font-display);
  font-size: 1.35em;
  color: #8a5a1a;
}
.jentry .jvoice { color: #8a5a1a; }
.jentry .jmedia { border: 1px solid #cdbd94; }
.jr-composer { border-color: rgba(216, 180, 90, 0.3); }
.jr-composer .eyebrow { color: var(--gold); }

/* ── Empty shelves keep their manners ────────────────────────────── */
.empty {
  border: 1px solid rgba(216, 180, 90, 0.18);
  background: radial-gradient(80% 100% at 50% 0%, rgba(216, 180, 90, 0.06), transparent 70%), rgba(19, 24, 41, 0.35);
}
.empty p { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; font-style: italic; color: var(--ink-mid); }
.empty p::before {
  content: '✦ ✦ ✦'; display: block; font-style: normal;
  font-size: 8px; letter-spacing: 0.7em; color: var(--gold-dim); margin-bottom: 12px;
}

/* ── Arrival: each page settles in, section by section ───────────── */
@keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.main.arrive .main-scroll > * { animation: settle 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.main.arrive .main-scroll > :nth-child(2) { animation-delay: 50ms; }
.main.arrive .main-scroll > :nth-child(3) { animation-delay: 100ms; }
.main.arrive .main-scroll > :nth-child(4) { animation-delay: 150ms; }
.main.arrive .main-scroll > :nth-child(5) { animation-delay: 200ms; }
.main.arrive .main-scroll > :nth-child(n + 6) { animation-delay: 240ms; }
.panel-card { animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.panel-card:nth-child(2) { animation-delay: 80ms; }
.panel-card:nth-child(3) { animation-delay: 160ms; }

@media (max-width: 560px) {
  .page-head h1 { font-size: 29px; }
  .btn { letter-spacing: 0.08em; }
}
/* The name stays on one line; only its subtitle drops beneath. */
.wordmark .name { display: block; }
.wordmark .name span:not(.tag) { display: inline; }
.wordmark .name .tag { margin-top: 3px; letter-spacing: 0.3em; }
/* The ribbon hangs clear of the privacy seal. */
.jentry::before { right: 18px; }
.jentry-head { padding-right: 44px; }

/* ── Post frames in the Atelier: a miniature post under the dress ── */
.cos-card .prev.post-prev {
  position: relative; height: 120px; padding: 16px 18px;
  border-bottom: 1px solid var(--hairline-soft);
}
.post-prev .mock { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 7px; align-items: center; }
.post-prev .mock .av { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(237, 233, 220, 0.25); border: 1px solid rgba(237, 233, 220, 0.35); }
.post-prev .mock .ln { display: block; height: 7px; border-radius: 999px; background: rgba(237, 233, 220, 0.55); }
.post-prev .mock .ln.w1 { width: 46%; }
.post-prev .mock .ln.w2 { width: 78%; background: rgba(237, 233, 220, 0.3); }
.post-prev .ph {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(240, 212, 138, 0.8); background: rgba(7, 9, 18, 0.55); padding: 3px 9px; border-radius: 999px;
}
.kind-apply { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(9, 11, 22, 0.6); border: 1px solid var(--hairline-soft); }
.kind-apply button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; transition: background 0.15s, color 0.15s;
}
.kind-apply button:hover { color: var(--ink); }
.kind-apply button.on { background: var(--gold-leaf); color: #231905; }
/* Post-frame cards stack: name and wearers above, the kind pills beneath. */
.cos-card.post-card .body { flex-direction: column; align-items: stretch; gap: 10px; }
.cos-card.post-card .body .nm { font-family: var(--font-display); font-size: 16px; font-weight: 400; }
.cos-card.post-card .kind-apply { justify-content: space-between; }
.cos-card.post-card .kind-apply button { flex: 1; }
.cos-card.post-card .body > .btn { align-self: flex-start; }

/* ── Reels play themselves — no play button, one click to pause ── */
.fmedia.reel.video { position: relative; cursor: pointer; background: #0b0e1a; }
.fmedia.reel.video .reel-video {
  display: block; width: 100%; max-height: 560px; object-fit: cover;
  background: #0b0e1a;
}
.fmedia.reel.video .reel-paused {
  position: absolute; left: 12px; top: 12px; pointer-events: none;
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(7, 9, 18, 0.62); padding: 4px 10px; border-radius: 999px;
  opacity: 0; transition: opacity 0.2s;
}
.fmedia.reel.video.paused .reel-paused { opacity: 1; }
.fmedia.reel.video.paused .reel-video { filter: brightness(0.72); }
.reel-sound {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(240, 212, 138, 0.5); background: rgba(7, 9, 18, 0.62); color: var(--gold-bright);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, transform 0.15s;
}
.reel-sound:hover { background: rgba(216, 180, 90, 0.2); transform: scale(1.06); }
.reel-sound svg { width: 16px; height: 16px; }
.reel-sound.off { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); }
.reel-sound.off::after {
  content: ''; position: absolute; width: 20px; height: 1.6px; background: currentColor;
  transform: rotate(-45deg); border-radius: 1px;
}
/* Painted reels breathe while they are in view. */
@keyframes reel-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.fmedia.reel.art .art-wrap { overflow: hidden; }
.fmedia.reel.art .art-wrap svg { transform-origin: 50% 50%; }
.fmedia.reel.art.playing .art-wrap svg { animation: reel-drift 14s ease-in-out infinite alternate; }
/* The profile grid marks a reel with a word, not a play glyph. */
.ptile .reel-tag {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-display); font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(7, 9, 18, 0.62); padding: 3px 8px; border-radius: 999px; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .fmedia.reel.art.playing .art-wrap svg { animation: none; } }

/* ═══ The Karma Court seal, and the foot of every post ═══════════════
   The pill becomes a gilded seal — a deep well with a lit edge, the
   angel in gold and the demon in ember, each side tinting under the
   hand. Beneath the writing, the stamp row and the action row become
   one engraved foot: a gilt rule, small-caps legends, quiet pills. */
.karma-pill {
  gap: 2px; padding: 3px;
  background: linear-gradient(180deg, #0a0d19, #10152a);
  border: 1px solid rgba(216, 180, 90, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 4px 14px rgba(3, 4, 10, 0.5);
}
.karma-pill .kval {
  font-size: 16px; min-width: 34px; letter-spacing: 0.08em;
  background: var(--gold-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.karma-pill .kside { width: 38px; height: 38px; position: relative; isolation: isolate; }
.karma-pill .kside svg { width: 26px; height: 26px; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.25s; filter: saturate(0.55) brightness(0.85); }
.karma-pill .kside:hover { background: transparent; }
.karma-pill .kside:hover svg { transform: translateY(-1px) scale(1.12); filter: none; }
.karma-pill .kside.angel:hover { box-shadow: inset 0 0 0 1px rgba(240, 212, 138, 0.35), 0 0 18px rgba(216, 180, 90, 0.35); background: radial-gradient(60% 60% at 50% 40%, rgba(240, 212, 138, 0.18), transparent 70%); }
.karma-pill .kside.demon:hover { box-shadow: inset 0 0 0 1px rgba(232, 106, 124, 0.35), 0 0 18px rgba(200, 55, 79, 0.35); background: radial-gradient(60% 60% at 50% 40%, rgba(232, 106, 124, 0.18), transparent 70%); }
.karma-pill.blessed .kside.angel svg, .karma-pill.condemned .kside.demon svg { filter: none; transform: scale(1.08); }
.karma-pill.blessed .kside.angel { background: radial-gradient(60% 60% at 50% 40%, rgba(240, 212, 138, 0.22), transparent 70%); box-shadow: inset 0 0 0 1px rgba(240, 212, 138, 0.4); }
.karma-pill.condemned .kside.demon { background: radial-gradient(60% 60% at 50% 40%, rgba(232, 106, 124, 0.22), transparent 70%); box-shadow: inset 0 0 0 1px rgba(232, 106, 124, 0.4); }
.karma-pill.blessed { border-color: rgba(240, 212, 138, 0.6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(216, 180, 90, 0.35); }
.karma-pill.condemned { border-color: rgba(232, 106, 124, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(200, 55, 79, 0.3); }

/* The foot of the post */
.fpost .meta-row {
  border-top: 0; border-bottom: 0; position: relative;
  margin-top: 6px; padding: 12px 2px 6px;
  font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.24em; color: var(--gold-dim);
}
.fpost .meta-row::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(216, 180, 90, 0.55), rgba(216, 180, 90, 0.16) 40%, rgba(216, 180, 90, 0.16) 60%, rgba(216, 180, 90, 0.55));
}
.fpost .meta-row .insights { font-family: var(--font-display); font-size: 10.5px; letter-spacing: 0.24em; color: var(--gold-dim); gap: 8px; }
.fpost .meta-row .insights svg { width: 14px; height: 14px; }
.fpost .meta-row .insights:hover { color: var(--gold-bright); }
.fpost .meta-row .stamp { font-family: var(--font-display); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.fpost .meta-row .stamp .star { color: var(--gold); font-size: 9px; }
.fpost .insight-strip { padding: 8px 2px 4px; font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-mid); }
.fpost .insight-strip b { color: var(--gold-bright); font-weight: 400; }
.fpost .act-row { gap: 6px; padding: 4px 0 2px; }
.fpost .act-row .iconbtn {
  padding: 7px 13px; border-radius: 999px; gap: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-mid);
  box-shadow: none;
}
.fpost .act-row .iconbtn svg { width: 18px; height: 18px; opacity: 0.85; transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s; }
.fpost .act-row .iconbtn:hover { background: rgba(216, 180, 90, 0.07); border-color: rgba(216, 180, 90, 0.28); color: var(--gold-bright); }
.fpost .act-row .iconbtn:hover svg { opacity: 1; transform: translateY(-1px) scale(1.08); }
.fpost .act-row .iconbtn.lit-gold { color: var(--gold-bright); border-color: rgba(240, 212, 138, 0.35); background: rgba(216, 180, 90, 0.08); }
.fpost .act-row .iconbtn.lit-gold svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(240, 212, 138, 0.45)); }
.fpost .act-row .iconbtn.lit-blue { color: #b3a8ff; border-color: rgba(124, 111, 232, 0.4); background: rgba(124, 111, 232, 0.1); }
.fpost .act-row .iconbtn.lit-blue svg { opacity: 1; filter: drop-shadow(0 0 6px rgba(124, 111, 232, 0.5)); }
.fpost .act-row .iconbtn[data-act="likeFeed"].lit-gold { color: #ffb3a7; border-color: rgba(232, 106, 124, 0.4); background: rgba(232, 106, 124, 0.09); }
.fpost .act-row .iconbtn[data-act="likeFeed"].lit-gold svg { filter: drop-shadow(0 0 6px rgba(232, 106, 124, 0.55)); }
.fpost .act-row .iconbtn[data-act="savePost"] { padding: 7px 9px; }
.fpost .comment-form input { border-color: rgba(216, 180, 90, 0.22); background: rgba(9, 11, 22, 0.6); }
.fpost .comment-form input:focus { border-color: rgba(216, 180, 90, 0.5); }
.fpost .comment b { font-family: var(--font-display); font-weight: 400; color: var(--gold-bright); }
@media (max-width: 560px) {
  .fpost .act-row .iconbtn { padding: 7px 10px; font-size: 12px; }
  .karma-pill .kside { width: 34px; height: 34px; }
  .karma-pill .kside svg { width: 23px; height: 23px; }
}
/* On a narrow screen the foot's legends may take two lines rather than clip. */
@media (max-width: 560px) {
  .fpost .meta-row { flex-wrap: wrap; gap: 6px 14px; }
  .fpost .meta-row .stamp { white-space: normal; letter-spacing: 0.16em; line-height: 1.6; }
}
/* The compass stands alone in the bottom bar — larger, centered, gilt when it is the page. */
.tabbar .tb.glyph { justify-content: center; gap: 0; }
.tabbar .tb.glyph svg { width: 30px; height: 30px; margin-top: 2px; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tabbar .tb.glyph.active svg { color: var(--gold-bright); filter: drop-shadow(0 0 8px rgba(240, 212, 138, 0.45)); transform: rotate(-12deg) scale(1.06); }
