/* ═══════════════════════════════════════════
   MoSphere Demo — Elden Ring Dark Theme
   Primary: #C8AA6E  Background: #1C1C1C
   ═══════════════════════════════════════════ */

:root {
  --gold: #C8AA6E;
  --gold-dim: #9A7D4E;
  --gold-bright: #E8D5A3;
  --bg-primary: #1C1C1C;
  --bg-secondary: #252525;
  --bg-card: #2A2A2A;
  --bg-card-hover: #333333;
  --text-primary: #E0D6C2;
  --text-secondary: #A09880;
  --text-dim: #706858;
  --border: #3A3520;
  --border-gold: #5A4D2E;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', 'Noto Sans SC', 'Noto Sans', system-ui, sans-serif;
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

/* ── Header (一行方格，随页面滚动，padding 对齐 main) ── */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-secondary);
}

.title-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 2;
  min-width: 220px;
}

.title-box h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.title-box #header-subtitle {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

/* status-bar 在 main 末尾做页脚状态条（对齐 live） */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}
/* 手机端（<900px）底部 4 格固定 2×2 */
@media (max-width: 899px) {
  .status-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .status-bar .status-item { min-width: 0; }
}

.status-item {
  flex: 1;
  min-width: 108px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.status-item .label {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.2;
}
.status-item .value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* view-switch / lang-switch：横向 2 按钮分段控件 */
.view-switch,
.lang-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  flex: 0 0 auto;
}
.view-opt,
.lang-opt {
  flex: 1;
  background: transparent;
  color: var(--text-dim);
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.view-opt:hover,
.lang-opt:hover { color: var(--text-primary); }
.view-opt.active,
.lang-opt.active {
  background: var(--bg-secondary);
  color: var(--gold);
  cursor: default;
  font-weight: 600;
}

/* ── Main ── */
main {
  margin: 0 auto;
  padding: 6px 12px;
}

section { margin-bottom: 6px; }

.section-title {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* ── Building Panel (≥900 1×8 / 400-899 2×4 / <400 4×2) ── */
#buildings-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
@media (max-width: 899px) {
  #buildings-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 399px) {
  #buildings-grid { grid-template-columns: repeat(2, 1fr); }
}

.building-card {
  background: var(--bg-card);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.building-card:hover { border-color: var(--gold-dim); }
.building-card.active {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* 4 档金色半透明叠加（按今日活跃度排名分档，8 栋每档 2 格） */
.building-card.grade-1 {
  background: linear-gradient(135deg, rgba(232,198,112,0.40), rgba(232,198,112,0.15) 85%), var(--bg-card);
}
.building-card.grade-2 {
  background: linear-gradient(135deg, rgba(216,184,108,0.28), rgba(216,184,108,0.10) 85%), var(--bg-card);
}
.building-card.grade-3 {
  background: linear-gradient(135deg, rgba(180,153,98,0.18), rgba(180,153,98,0.06) 85%), var(--bg-card);
}
.building-card.grade-4 {
  background: linear-gradient(135deg, rgba(139,117,73,0.10), rgba(139,117,73,0.03) 85%), var(--bg-card);
}

/* 第 9 格占位：虚线框、无内容、不响应点击 */
.building-card.placeholder {
  cursor: default;
  background: transparent;
  border: 1px dashed var(--border);
}
.building-card.placeholder:hover { border-color: var(--border); }

/* 卡内排版对齐 live（除配色外）：name 1rem / nick 0.75rem / today 2.2rem / stats 0.75rem */
.building-card .card-emoji {
  display: none; /* emoji 合并到 name 行 */
}
.building-card .card-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 手机端英文卡名更长，缩一档 */
body.lang-en:not(.view-desktop) .building-card .card-name { font-size: 0.82rem; }
.building-card .card-npc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.building-card .card-count {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin: 2px 0;
}
.building-card .card-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}
.building-card svg {
  display: block;
  margin: 6px auto 0;
  color: currentColor;
}

/* Building Detail */
.building-detail {
  background: #222;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 8px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-emoji { font-size: 1.6rem; }

.detail-name {
  font-size: 1rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.detail-npc { font-size: 0.78rem; color: var(--text-secondary); }

.detail-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.log-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(58,53,32,0.4);
}
.log-row:last-child { border-bottom: none; }
.log-time { color: var(--text-dim); min-width: 90px; flex-shrink: 0; }
.log-summary { color: var(--text-primary); min-width: 0; overflow-wrap: anywhere; }
/* 火山官邸 contact 内的 observation 行允许换行（长英文不剪掉） */
.contact-body .data-row { white-space: normal; align-items: flex-start; font-size: 1rem; }
.contact-body .data-row .log-summary { white-space: normal; }
/* 火山官邸 contact 内 content 整体放大一档 */
.contact-body .contact-field { font-size: 0.85rem; }
.contact-body .contact-tags .tag-label { font-size: 0.8rem; }

/* ── Accordion ── */
.accordion { display: flex; flex-direction: column; gap: 4px; }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 6px;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--bg-card);
  user-select: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
  border-radius: 6px;
}

.accordion-header:hover { background: var(--bg-card-hover); }
.accordion-header.open {
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
}

.accordion-body.open {
  border-radius: 0 0 6px 6px;
}

.accordion-title { color: var(--text-primary); }
.accordion-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 8px;
  font-weight: 400;
}
.accordion-chevron {
  font-size: 0.7rem;
  color: var(--text-dim);
  transition: transform 0.15s;
}
.accordion-header.open .accordion-chevron { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 14px;
  background: var(--bg-primary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.accordion-body.open { display: block; }

/* ── Data Rows (text-dense style) ── */
.data-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(58,53,32,0.3);
  white-space: nowrap;
  overflow: hidden;
}
.data-row:last-child { border-bottom: none; }
.data-row .dr-main { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.data-row .dr-meta { color: var(--text-secondary); font-size: 0.76rem; flex-shrink: 0; }
.data-row .dr-label { color: var(--text-dim); min-width: 60px; flex-shrink: 0; font-size: 0.76rem; }

.data-dot { font-size: 0.7rem; flex-shrink: 0; }

/* Subsection header */
.sub-header {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 10px 0 4px;
}
.sub-header:first-child { margin-top: 0; }

/* Inline summary line */
.summary-line {
  font-size: 0.82rem;
  color: var(--text-primary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

/* Colors */
.c-green { color: var(--green); }
.c-red   { color: var(--red); }
.c-gold  { color: var(--gold); }
.c-dim   { color: var(--text-dim); }

/* Priority dots */
.pdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.pdot-high   { background: var(--red); }
.pdot-medium { background: var(--yellow); }
.pdot-low    { background: #60a5fa; }
.pdot-done   { background: #555; }

/* done strikethrough */
.done-task { text-decoration: line-through; color: var(--text-dim); }

/* Inspiration */
.insp-done { text-decoration: line-through; color: var(--text-dim); }

/* ── Conversations ── */

/* inner conversation group headers inside the chat window */
.conv-group { border-bottom: 1px solid var(--border); }
.conv-group:last-child { border-bottom: none; }

.conv-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-secondary);
  user-select: none;
  transition: color 0.15s;
}
.conv-group-header:hover, .conv-group-header.open { color: var(--gold); }

.conv-chevron {
  font-size: 0.68rem;
  transition: transform 0.15s;
  color: var(--text-dim);
}
.conv-group-header.open .conv-chevron { transform: rotate(180deg); }

.conv-group-body { display: none; padding: 6px 0 10px; }
.conv-group-body.open { display: block; }

.chat-window {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  max-height: 440px;
  overflow-y: auto;
}

.chat-msg { margin-bottom: 10px; display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.assistant { justify-content: flex-start; }
.chat-msg.system { justify-content: center; }

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-line;
}

.chat-msg.user .chat-bubble {
  background: #3A3520;
  border: 1px solid var(--border-gold);
  border-radius: 10px 10px 3px 10px;
}

.chat-msg.assistant .chat-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 3px;
}

.chat-npc-label {
  font-size: 0.68rem;
  color: var(--gold-dim);
  font-weight: 600;
  margin-bottom: 3px;
}

.chat-building-tag {
  font-size: 0.64rem;
  color: var(--text-dim);
  background: rgba(200,170,110,0.1);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
}

.chat-msg.system .chat-bubble {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.74rem;
  padding: 4px 10px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  max-width: 90%;
  text-align: center;
}

/* ── Tooltip ── */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  font-size: 0.58rem;
  font-weight: 700;
  font-style: normal;
  cursor: default;
  margin-left: 5px;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
  user-select: none;
}

.info-icon:hover {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 7px);
  left: 0;
  transform: none;
  background: rgba(18, 16, 10, 0.93);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.55;
  padding: 8px 11px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  white-space: normal;
  width: 240px;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 300;
  text-align: left;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  animation: tooltipFadeIn 0.18s ease;
}

/* In the sticky header, drop tooltip downward to avoid clipping */
header .tooltip-wrapper .tooltip-text {
  bottom: auto;
  top: calc(100% + 7px);
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.74rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── 通用折叠（schedule / inspirations / archive / diary older / teahouse contact） ── */
.sched-fold,
.insp-fold,
.arch-fold,
.patrol-fold {
  margin-top: 6px;
  margin-bottom: 4px;
}
.sched-fold > summary,
.insp-fold > summary,
.arch-fold > summary,
.patrol-fold > summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(40,35,22,0.3);
  border-left: 2px solid var(--border-gold);
  border-radius: 4px;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sched-fold > summary::-webkit-details-marker,
.insp-fold > summary::-webkit-details-marker,
.arch-fold > summary::-webkit-details-marker,
.patrol-fold > summary::-webkit-details-marker { display: none; }
.sched-fold > summary::before,
.insp-fold > summary::before,
.arch-fold > summary::before,
.patrol-fold > summary::before {
  content: '▸';
  color: var(--text-dim);
  font-size: 0.72rem;
  transition: transform 0.15s;
}
.sched-fold[open] > summary::before,
.insp-fold[open] > summary::before,
.arch-fold[open] > summary::before,
.patrol-fold[open] > summary::before { transform: rotate(90deg); }
.sched-fold > summary:hover,
.insp-fold > summary:hover,
.arch-fold > summary:hover,
.patrol-fold > summary:hover { background: rgba(90,77,46,0.2); }
.sched-fold-body,
.insp-fold-body,
.arch-fold-body,
.patrol-fold-body {
  padding: 4px 6px 0 6px;
}
/* 折叠展开后内部行距比常规 .data-row 紧一点 */
.sched-fold-body .data-row,
.insp-fold-body .data-row,
.arch-fold-body .data-row,
.patrol-fold-body .data-row { padding: 3px 0; }

/* ── Health 单行布局 ── */
.health-row .dr-label-big {
  min-width: 48px;
  color: var(--gold-dim);
  font-weight: 600;
  font-size: 0.8rem;
}

/* ── Diary 更早折叠 ── */
.diary-older {
  margin-top: 8px;
}
.diary-older summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 10px;
  background: rgba(40,35,22,0.3);
  border-left: 2px solid var(--border-gold);
  border-radius: 4px;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.diary-older summary::-webkit-details-marker { display: none; }
.diary-older summary::before {
  content: '▸';
  color: var(--text-dim);
  font-size: 0.72rem;
  transition: transform 0.15s;
}
.diary-older[open] summary::before { transform: rotate(90deg); }
.diary-older summary:hover { background: rgba(90,77,46,0.18); }
.diary-older-body {
  padding: 12px 6px 0 6px;
}

/* ── Teahouse / Volcano Manor ── */
.contact-item {
  margin-bottom: 6px;
  background: rgba(40,35,22,0.4);
  border-left: 2px solid var(--border-gold);
  border-radius: 4px;
  overflow: hidden;
}
.contact-item summary.contact-name {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-item summary.contact-name::-webkit-details-marker { display: none; }
.contact-item summary.contact-name::before {
  content: '▸';
  color: var(--text-dim);
  font-size: 0.72rem;
  transition: transform 0.15s;
}
.contact-item[open] summary.contact-name::before { transform: rotate(90deg); }
.contact-item summary.contact-name:hover { background: rgba(90,77,46,0.18); }
.contact-item .contact-body {
  padding: 4px 12px 12px 12px;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.contact-tags .tag-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  min-width: 40px;
}
.contact-field {
  font-size: 0.75rem;
  color: var(--text-primary);
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.contact-field.tag-like    { background: rgba(74,222,128,0.10); color: #86efac; border-color: rgba(74,222,128,0.25); }
.contact-field.tag-dislike { background: rgba(248,113,113,0.10); color: #fca5a5; border-color: rgba(248,113,113,0.25); }
.contact-field.tag-goal    { background: rgba(200,170,110,0.12); color: var(--gold-bright); border-color: var(--border-gold); }

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 6px 12px; gap: 4px; flex-wrap: wrap; }
  .title-box {
    flex: 1 1 100%;
    padding: 6px 10px;
  }
  .title-box h1 { font-size: 0.95rem; justify-content: center; }
  .title-box #header-subtitle { font-size: 0.68rem; margin-top: 1px; }
  .view-switch, .lang-switch {
    flex: 1 1 0;
    padding: 2px;
    gap: 2px;
  }
  .view-opt, .lang-opt {
    flex: 1 1 0;
    padding: 5px 6px;
    font-size: 0.75rem;
  }
}

/* ════════════════════════════════════════
   翻面机制（桌面 + 手机共用 — 同 dashboard）
   ════════════════════════════════════════ */
.buildings-grid, .cells { perspective: 1000px; }

/* logo wrapper + SVG（共用）*/
.bf-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bf-logo {
  display: block;
  opacity: 0.45;
  color: var(--gold);
}

/* est 用 text-primary 米黄白避免与金色背景同色低对比；nick 沿用反面 .card-npc 现有 color */
.bf-est { color: var(--text-primary); }

/* ── 手机版翻面 ── */
body:not(.view-desktop) .building-card {
  padding: 0;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
body:not(.view-desktop) .building-card > .card-flip-container {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}
body:not(.view-desktop) .building-card.flipped > .card-flip-container {
  transform: rotateY(180deg);
}
/* row 1/2 用 auto，高度严格 = name/npc content min（正反面相同）→ 两面对齐
   row 3 用 1fr 吃所有余空间差异（正面 logo 90 / 反面 count 35）；row 4/5 auto 让 sub+svg 紧贴 cell 底 */
body:not(.view-desktop) .card-back,
body:not(.view-desktop) .card-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-items: center;
  justify-items: center;
  padding: 8px 4px;
  text-align: center;
  border-radius: inherit;
  overflow: hidden;
}
body:not(.view-desktop) .card-back { transform: rotateY(180deg); }
body:not(.view-desktop) .bf-logo-wrap { align-self: stretch; justify-self: stretch; }
/* mobile 正面：name + npc 复用反面 .card-name / .card-npc 现有字号 + nowrap (style.css line 251/262)
   只剩 logo 和 est 是新字段 */
body:not(.view-desktop) .bf-logo { width: 90px; height: 90px; max-width: 60%; }
/* 正面 logo 上移 13px：补偿 name+nick（≈40px）比 est（≈15px）多出的高度差的一半，使 logo 视觉居中 */
body:not(.view-desktop) .card-front .bf-logo { transform: translateY(-13px); }
body:not(.view-desktop) .bf-est {
  font-size: .8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
