/* ================================================================
   NIULAI.GG — 牛来 theme
   Chinese cinema poster · crimson #A31621 · gold #C9962F · paper
   Fonts: Ma Shan Zheng (书法) + Noto Sans TC + Archivo Black
   ================================================================ */

:root {
  --crimson: #A31621;
  --crimson-deep: #7E1019;
  --crimson-soft: #C33540;
  --gold: #C9962F;
  --gold-soft: #E3C983;
  --gold-pale: #F4E7C8;
  --bull: #F2C230;
  --horn: #8A7BA0;
  --ink: #2A2119;
  --ink-soft: #5C5245;
  --ink-mute: #8A7F6E;
  --paper: #F7F0E3;
  --paper-warm: #F1E7D2;
  --card: #FFFDF6;
  --line: rgba(42, 33, 25, 0.75);
  --line-soft: rgba(42, 33, 25, 0.16);
  --green: #3E7C4F;
  --bd: 1.5px;
  --shadow: 0 2px 4px rgba(64, 40, 20, 0.06), 0 10px 26px rgba(64, 40, 20, 0.09);
  --shadow-lift: 0 6px 20px rgba(122, 26, 26, 0.22);
  --font: "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-zh: "Ma Shan Zheng", "Noto Serif TC", serif;
  --font-en: "Archivo Black", "Noto Sans TC", sans-serif;
  --r: 18px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body.is-loading .js-landing,
body.is-loading .js-app { display: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 2px; border-radius: 8px; }

.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% -12%, rgba(163, 22, 33, 0.16) 0%, rgba(163, 22, 33, 0) 62%),
    radial-gradient(circle at 1px 1px, rgba(42, 33, 25, 0.05) 1px, transparent 0),
    linear-gradient(180deg, #F9F3E7 0%, var(--paper) 55%, #EFE4CD 100%);
  background-size: auto, 26px 26px, auto;
}

.zh-inline { font-family: var(--font-zh); font-size: 1.25em; line-height: 1; margin-right: 6px; }
.zh-line { color: var(--ink-soft); }

/* ---------- Seal (印章 logo) ---------- */
.seal {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: var(--crimson);
  border: 2px solid var(--crimson-deep);
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 246, 0.25), var(--shadow);
  color: #FFF6E8;
  font-family: var(--font-zh);
  line-height: 0.92;
  font-size: 17px;
  transition: transform 0.25s ease;
}
.seal i { font-style: normal; }
.brand:hover .seal { transform: rotate(-6deg) scale(1.06); }
.seal--sm { width: 40px; height: 40px; font-size: 15px; }

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: #FFF6E8;
  background: linear-gradient(180deg, var(--crimson-soft) 0%, var(--crimson) 55%, var(--crimson-deep) 100%);
  border: var(--bd) solid var(--crimson-deep);
  border-radius: 12px;
  padding: 13px 24px 12px;
  box-shadow: inset 0 0 0 2px rgba(227, 201, 131, 0.55), var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.pill:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px rgba(227, 201, 131, 0.8), var(--shadow-lift); filter: brightness(1.05); }
.pill:active { transform: translateY(1px); }
.pill--big { font-size: 16px; padding: 17px 34px 16px; border-radius: 14px; }
.pill--ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.pill--ghost:hover { filter: none; background: var(--gold-pale); box-shadow: var(--shadow-lift); }
.pill__icon { width: 17px; height: 17px; flex: none; }
.pill--big .pill__icon { width: 20px; height: 20px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 3vw, 32px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__word { font-family: var(--font-en); font-size: 19px; letter-spacing: 0.01em; }
.brand__tld { color: var(--crimson); }
.topbar__right { display: flex; align-items: center; gap: 13px; }
.topbar__link {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--card);
  border: var(--bd) solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.topbar__link svg { width: 17px; height: 17px; }
.topbar__link:hover { transform: translateY(-2px); background: var(--gold-pale); }

.user {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card);
  border: var(--bd) solid var(--line);
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  box-shadow: var(--shadow);
}
.user__avatar { width: 33px; height: 33px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--gold-pale); }
.user__handle { font-size: 13px; font-weight: 700; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.user__out { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-mute); transition: color 0.15s ease, background-color 0.15s ease; }
.user__out svg { width: 15px; height: 15px; }
.user__out:hover { color: var(--crimson); background: #F7E3E0; }
body.is-authed .pill--cta { display: none; }

/* ---------- Landing ---------- */
.landing {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(20px, 4vh, 56px) 20px 48px;
}
.landing__title { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 26px 0 16px; }
.landing__title .zh {
  font-family: var(--font-zh);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 118px);
  line-height: 1.05;
  color: var(--ink);
}
.landing__title .zh b { color: var(--crimson); font-weight: 400; }
.landing__title .en {
  font-family: var(--font-en);
  font-size: clamp(15px, 2.2vw, 22px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--crimson);
}
.landing__sub { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 32px; max-width: 620px; }
.landing__sub .zh-line { display: block; font-family: var(--font-zh); font-size: 22px; color: var(--ink); margin-bottom: 2px; }
.landing__sub .zh-line:last-child { display: inline; font-size: 17px; color: var(--ink-soft); }
.landing__hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: 13px;
  background: rgba(255, 253, 246, 0.8);
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  padding: 9px 18px 8px;
}
.landing__error {
  margin-top: 18px;
  color: #8E2A22;
  font-size: 13px;
  background: #F9E7E1;
  border: var(--bd) solid var(--line);
  border-radius: 12px;
  padding: 10px 18px;
  max-width: 480px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--ink); animation: blink 1.6s ease-in-out infinite; flex: none; }
body.is-live .dot { background: var(--green); }
.dot--amber { background: var(--gold); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* The coin */
.coin { position: relative; animation: float 5.5s ease-in-out infinite; }
.coin__disc {
  width: clamp(160px, 24vw, 215px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  background:
    radial-gradient(115% 115% at 30% 22%, rgba(255, 246, 220, 0.5) 0%, rgba(255, 246, 220, 0) 48%),
    linear-gradient(160deg, var(--crimson-soft) 0%, var(--crimson) 55%, var(--crimson-deep) 100%);
  border: 2.5px solid var(--crimson-deep);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 5px rgba(227, 201, 131, 0.85),
    inset 0 0 0 8px rgba(126, 16, 25, 0.6),
    0 16px 36px rgba(122, 26, 26, 0.3);
}
.coin__bull { width: 60%; height: auto; filter: drop-shadow(0 6px 10px rgba(70, 8, 12, 0.45)); }
.coin__tag {
  position: absolute; right: -26px; bottom: 4px;
  background: var(--card);
  border: var(--bd) solid var(--line);
  border-radius: 10px;
  padding: 7px 13px 5px;
  font-family: var(--font-zh);
  font-size: 19px;
  color: var(--crimson);
  transform: rotate(-7deg);
  box-shadow: var(--shadow);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ---------- App layout ---------- */
.app {
  flex: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: 8px clamp(16px, 3vw, 32px) 40px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: var(--bd) solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* Sidebar */
.side {
  display: flex; flex-direction: column;
  overflow: hidden;
  position: sticky; top: 16px;
  height: calc(100dvh - 110px);
  min-height: 420px;
}
.side__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, var(--crimson-soft) 0%, var(--crimson) 100%);
  color: #FFF6E8;
  border-bottom: var(--bd) solid var(--crimson-deep);
  padding: 12px 16px 11px;
}
.side__title { font-family: var(--font-en); font-size: 12.5px; letter-spacing: 0.08em; display: inline-flex; align-items: center; }
.side__title--ink { color: var(--ink); }
.count {
  background: var(--gold);
  color: var(--ink);
  font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--crimson-deep);
  border-radius: 999px;
  padding: 2px 10px 1px;
  transition: transform 0.2s ease;
}
.count.is-pop { animation: pop 0.45s ease; }
@keyframes pop { 40% { transform: scale(1.35); } }

.side__list { list-style: none; overflow-y: auto; flex: 1; padding: 8px; scrollbar-width: thin; }
.member {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.member:hover { background: var(--paper-warm); border-color: var(--line); transform: translateX(4px); }
.member__avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--gold-pale); }
.member__id { min-width: 0; }
.member__name { font-weight: 700; font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member__handle { color: var(--ink-mute); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.member__handle:hover { color: var(--crimson); }
.member__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.member__time { color: var(--ink-mute); font-size: 11px; white-space: nowrap; opacity: 0.8; }
.member.is-new { animation: arrive 0.6s cubic-bezier(0.16, 1, 0.3, 1), flash 1.6s ease; }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes flash { 0%, 45% { background-color: var(--gold-pale); } 100% { background-color: transparent; } }

.side__empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-mute); font-size: 13.5px; padding: 20px; }
.side__empty p { line-height: 2; }
.side__foot {
  border-top: var(--bd) solid var(--line);
  padding: 9px 16px 8px;
  font-size: 12.5px;
  color: var(--ink-mute);
  background: var(--paper-warm);
}

/* Follower tier chips */
.fchip {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px 1px;
  white-space: nowrap;
}
.fchip--0 { background: #EDE6D8; color: #7C7160; }
.fchip--1 { background: #E4EBD6; color: #4C6B3C; }
.fchip--2 { background: var(--gold-pale); color: #8A6414; }
.fchip--3 { background: var(--gold); color: #3A2A05; }
.fchip--4 { background: var(--crimson); color: #FFF6E8; border-color: var(--crimson-deep); }

/* Content cards */
.content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card { padding: 22px 24px; }
.card__head { margin-bottom: 16px; }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.card__title .js-me-handle { color: var(--crimson); }
.card__sub { color: var(--ink-soft); font-size: 14.5px; }

.card--hello { display: flex; align-items: center; gap: 20px; }
.card--hello__bull { flex: none; animation: float 5.5s ease-in-out infinite; }

.card__row { display: flex; align-items: center; gap: 12px; }
.tag {
  flex: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  border-radius: 8px;
  padding: 5px 10px 4px;
}
.ca-value {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  color: var(--ink-soft);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.is-live .ca-value { color: var(--ink); font-weight: 600; }
.iconbtn {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--gold-pale);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.iconbtn:hover { transform: scale(1.07); background: var(--gold-soft); }
.iconbtn .ic { width: 17px; height: 17px; }
.iconbtn .ic--check { display: none; color: var(--green); }
.iconbtn.is-copied .ic--copy { display: none; }
.iconbtn.is-copied .ic--check { display: block; }
.card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Chart */
.chart-wait {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 1.5px dashed rgba(163, 22, 33, 0.55);
  border-radius: 14px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 30px 22px;
}
.chart-frame { border: var(--bd) solid var(--line); border-radius: 14px; overflow: hidden; background: #17120C; }
.chart-frame iframe { display: block; width: 100%; height: min(64vh, 540px); border: 0; }

/* Tokenomics strip */
.nomics { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nomics li {
  background: var(--paper-warm);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 11px;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.nomics li:hover { transform: translateY(-3px); background: var(--gold-pale); }
.nomics strong { display: block; font-family: var(--font-en); font-size: 13.5px; letter-spacing: 0.02em; margin-bottom: 2px; }
.nomics span { color: var(--ink-mute); font-size: 12px; line-height: 1.5; display: block; }

/* ---------- Room ---------- */
.room {
  display: flex; flex-direction: column;
  height: calc(100dvh - 110px);
  min-height: 460px;
  overflow: hidden;
}
.room__head {
  display: flex; align-items: center; gap: 13px;
  border-bottom: var(--bd) solid var(--line);
  background: var(--paper-warm);
  padding: 12px 16px;
}
.room__avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; background: var(--card); cursor: pointer; }
.room__id { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.room__name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.room__handle { color: var(--ink-mute); font-size: 12.5px; }
.room__handle:hover { color: var(--crimson); }
.chip-room {
  background: var(--crimson);
  color: #FFF6E8;
  border: 1.5px solid var(--crimson-deep);
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  padding: 4px 12px 3px;
  white-space: nowrap;
}
.room__feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; animation: msg-in 0.3s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.msg__avatar { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; background: var(--gold-pale); margin-top: 2px; cursor: pointer; }
.msg__bubble {
  background: var(--paper-warm);
  border: 1.5px solid var(--line);
  border-radius: 4px 12px 12px 12px;
  padding: 8px 12px 7px;
  max-width: 560px;
  justify-self: start;
}
.msg__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg__author { font-weight: 700; font-size: 12.5px; cursor: pointer; }
.msg__time { color: var(--ink-mute); font-size: 10.5px; opacity: 0.8; }
.msg__text { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.msg--me .msg__bubble { background: var(--card); }
.msg--host .msg__bubble { background: var(--crimson); border-color: var(--crimson-deep); }
.msg--host .msg__bubble .msg__text, .msg--host .msg__bubble .msg__author, .msg--host .msg__bubble .msg__time { color: #FFF6E8; }
.chip-host {
  background: var(--gold);
  color: var(--ink);
  border-radius: 5px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 1px 6px;
}
.room__empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-mute); font-size: 13.5px; }
.room__empty p { line-height: 2; }
.room__composer {
  display: flex; gap: 10px;
  border-top: var(--bd) solid var(--line);
  padding: 12px 14px;
  background: var(--card);
}
.room__input {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 10px 16px 9px;
  outline: none;
}
.room__input:focus { background: var(--gold-pale); }
.room__input::placeholder { color: var(--ink-mute); }
.room__input.is-error { border-color: var(--crimson); background: #F9E7E1; animation: shake 0.35s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.room__send { padding-inline: 20px; }

/* ---------- Docs & modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(42, 20, 12, 0.5);
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.docs {
  position: relative;
  width: min(560px, 94vw);
  max-height: 88dvh;
  overflow-y: auto;
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(22px) scale(0.97); } }
.docs__head {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--crimson-soft) 0%, var(--crimson) 100%);
  color: #FFF6E8;
  font-family: var(--font-en);
  font-size: 14px; letter-spacing: 0.06em;
  border-bottom: var(--bd) solid var(--crimson-deep);
  padding: 15px 20px 13px;
  position: sticky; top: 0; z-index: 1;
}
.docs__body { padding: 22px; }
.docs__steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.docs__steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.docs__num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--gold-pale);
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  font-family: var(--font-zh);
  font-size: 19px;
  color: var(--crimson);
}
.docs__steps strong { font-size: 14px; display: block; margin-bottom: 3px; letter-spacing: 0.03em; }
.docs__steps p { color: var(--ink-soft); font-size: 13.5px; }
.docs__steps p strong { display: inline; font-size: inherit; color: var(--ink); }
.docs__bullbox {
  margin-top: 22px;
  background: linear-gradient(160deg, var(--crimson-soft) 0%, var(--crimson) 60%, var(--crimson-deep) 100%);
  border: var(--bd) solid var(--crimson-deep);
  border-radius: 14px;
  padding: 18px 20px 16px;
  color: #FFF6E8;
  box-shadow: inset 0 0 0 2px rgba(227, 201, 131, 0.5), 4px 4px 0 rgba(42, 33, 25, 0.85);
}
.docs__bullbox p { font-size: 13.5px; }
.docs__bulltitle { font-family: var(--font-en); font-size: 14px !important; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--gold-soft); }
.docs__foot { margin-top: 18px; color: var(--ink-mute); font-size: 12px; text-align: center; }

/* ---------- Profile modal ---------- */
.profile {
  position: relative;
  width: min(430px, 94vw);
  overflow: hidden;
  animation: modal-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88dvh;
  overflow-y: auto;
}
.profile__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--card);
}
.profile__banner {
  height: 120px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(227, 201, 131, 0.35) 0%, rgba(227, 201, 131, 0) 55%),
    linear-gradient(150deg, var(--crimson-soft), var(--crimson-deep));
  background-size: cover;
  background-position: center;
  border-bottom: var(--bd) solid var(--line);
}
.profile__avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  object-fit: cover;
  background: var(--gold-pale);
  margin: -46px 0 0 22px;
  position: relative;
  box-shadow: 0 4px 10px rgba(64, 30, 10, 0.3);
}
.profile__body { padding: 12px 22px 22px; }
.profile__namerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile__name { font-weight: 700; font-size: 18px; }
.profile__handle {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-mute); font-size: 13px; font-weight: 700;
  margin-top: 2px;
}
.profile__handle:hover { color: var(--crimson); }
.profile__xlogo { width: 13px; height: 13px; }
.profile__bio { color: var(--ink); font-size: 13.5px; margin-top: 12px; overflow-wrap: anywhere; }
.profile__bio:empty { display: none; }
.profile__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 16px;
}
.pstat {
  background: var(--paper-warm);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 10px 8px 7px;
  text-align: center;
}
.pstat strong { display: block; font-family: var(--font-en); font-size: 14px; }
.pstat span { color: var(--ink-mute); font-size: 10.5px; letter-spacing: 0.03em; }
.profile__actions { display: flex; gap: 10px; margin-top: 18px; }
.profile__actions .pill { flex: 1; font-size: 12px; padding-inline: 12px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 26px 20px 30px; }
.footer__links { display: inline-flex; gap: 22px; margin-bottom: 12px; }
.footer__links a { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-mute); transition: color 0.15s ease; }
.footer__links a:hover { color: var(--crimson); }
.footer__legal { color: var(--ink-mute); font-size: 12px; max-width: 560px; margin: 0 auto 6px; }
.footer__copy { color: var(--ink-mute); font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 0);
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: var(--bd) solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  padding: 8px 18px 8px 8px;
  font-size: 13px; font-weight: 700;
  z-index: 50;
  animation: toast-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast[hidden] { display: none; }
.toast__avatar { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); object-fit: cover; background: var(--gold-pale); }
.toast em { font-style: normal; color: var(--crimson); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; min-height: 0; }
  .side__list { max-height: 300px; }
  .nomics { grid-template-columns: repeat(2, 1fr); }
  .user__handle { display: none; }
}
@media (max-width: 480px) {
  .brand__word { font-size: 16px; }
  .pill--cta { font-size: 11px; padding: 10px 16px 9px; }
  .card { padding: 18px; }
  .card--hello { flex-direction: column; text-align: center; }
  .nomics { grid-template-columns: 1fr; }
  .coin__tag { right: -8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .coin, .card--hello__bull, .dot, .count.is-pop, .member.is-new, .toast, .msg { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
