/* 跨境人生 · 样式 */
:root {
  --bg: #EBF0ED;
  --bg-2: #F7FAF8;
  --panel: #F7FAF8;
  --panel-2: #FDFEFE;
  --line: #C7D2CE;
  --line-soft: #DCE4E1;
  --text: #13212A;
  --mute: #5C6B6E;
  --mute-2: #8B9899;
  --accent: #8C1D3C;
  --accent-soft: #F3E3E8;
  --stamp: #0F6E68;
  --gold: #9C7020;
  --amber: #9C7020;
  --amber-dim: #C9A265;
  --mint: #2B7A4E;
  --red: #B0362B;
  --blue: #0F6E68;
  --violet: #6B4C86;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(140, 29, 60, .10), transparent 60%),
    radial-gradient(700px 500px at 105% 0%, rgba(15,110,104,.05), transparent 55%),
    linear-gradient(rgba(19,33,42,0.030) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,33,42,0.030) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--amber); color: rgba(19,33,42,.22); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #B9C5C2; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #AEBAB8; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--mint); }
.neg { color: var(--red); }

/* ================= 通用外壳 ================= */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

.kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(19,33,42,0.049), 0 12px 28px -20px rgba(19,33,42,.22);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px 11px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 600;
}

/* ================= 开场 ================= */
.boot {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  width: 100%;
  min-width: 0;
}

.boot-hero { min-width: 0; }

.boot-hero h1 {
  font-size: clamp(46px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 14px 0 18px;
  background: linear-gradient(170deg, #13212A 18%, #3B2630 62%, #8C1D3C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.boot-hero .en {
  display: block;
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: .34em;
  color: var(--mute-2);
  margin-top: 6px;
  -webkit-text-fill-color: var(--mute-2);
  background: none;
}

.lede {
  font-size: 15.5px;
  line-height: 1.85;
  color: #4E5F63;
  max-width: 46ch;
}

.lede b { color: var(--amber); font-weight: 600; }

.counter-strip {
  display: flex;
  gap: 28px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.counter .n {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -.02em;
}
.counter .l {
  font-size: 11px;
  color: var(--mute-2);
  margin-top: 3px;
  letter-spacing: .04em;
}

/* 抽签面板 */
.draw-panel { padding: 22px; min-width: 0; }

.draw-panel .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.draw-panel h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.slot {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #F1F5F3;
  margin-bottom: 10px;
  transition: border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(140,29,60,.06), transparent);
  transform: translateX(-100%);
}
.slot.rolling::after { animation: sweep 1s linear infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.slot .glyph {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px;
  flex: none;
  background: #E6EDEA;
  border: 1px solid var(--line);
}

.slot .body { min-width: 0; flex: 1; }
.slot .line1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.slot .tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: var(--mute-2);
  flex: none;
}
.slot .name {
  font-size: 14.5px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot .line2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 3px;
  min-width: 0;
}
.slot .sub {
  font-size: 11.5px;
  color: var(--mute);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot .pct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  flex: none;
}

.field {
  display: flex;
  gap: 8px;
  margin: 16px 0 12px;
}

.field input {
  flex: 1;
  min-width: 0;
  background: #F1F5F3;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s;
}
.field input::placeholder { color: #A2AEAC; }
.field input:focus { border-color: var(--amber-dim); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--text);
  transition: transform .12s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { background: #F1F5F3; border-color: #AEBAB8; }
.btn:active { transform: scale(.985); }

.btn-primary {
  background: linear-gradient(180deg, #A22B4C, #8C1D3C);
  color: #FFFFFF;
  border-color: #A22B4C;
  box-shadow: 0 8px 24px -12px rgba(140,29,60,.28);
}
.btn-primary:hover { background: linear-gradient(180deg, #A83B5C, #9C7020); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.btn-wide { width: 100%; padding: 14px; font-size: 15px; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 8px; }

.hint-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--mute-2);
}
.hint-row span { display: inline-flex; align-items: center; gap: 5px; }

/* 历史记录 */
.history { margin-top: 34px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
}
.history-item .g {
  font-family: var(--mono);
  font-size: 11px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #E6EDEA;
  color: var(--amber);
  flex: none;
}
.history-item .h-main { flex: 1; min-width: 0; }
.history-item .h-sub { font-size: 11.5px; color: var(--mute-2); }

/* ================= 游戏界面 ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(235,240,237,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  max-width: 1360px;
  margin: 0 auto;
  min-height: 58px;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #8C1D3C, #6E1630);
  display: grid; place-items: center;
  font-size: 15px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(140,29,60,.25), 0 6px 16px -8px #6E1630;
}

.shop-name {
  font-size: 14.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.shop-meta {
  font-size: 11px;
  color: var(--mute-2);
  font-family: var(--mono);
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-sep { flex: 0 0 6px; }

.top-stat {
  text-align: right;
  line-height: 1.25;
  flex: none;
}
.top-stat .v { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.top-stat .k { font-size: 10px; color: var(--mute-2); letter-spacing: .12em; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #F5F8F6;
  display: grid; place-items: center;
  font-size: 15px;
  color: var(--mute);
  transition: all .18s;
  flex: none;
}
.icon-btn:hover { color: var(--text); border-color: #AEBAB8; }
.icon-btn.on { color: var(--amber); border-color: var(--amber-dim); background: rgba(140,29,60,.08); }

/* 主布局 */
.game-grid {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 300px;
  gap: 14px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  width: 100%;
  align-items: start;
}

.col-stats { position: sticky; top: 74px; }
.col-main { min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 74px; }

/* 属性面板 */
.stats-panel { overflow: hidden; }

.player-card {
  padding: 16px 15px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.player-card .pname {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-card .ptag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--mute);
}
.platform-dot {
  width: 7px; height: 7px; border-radius: 50%;
  flex: none;
  box-shadow: 0 0 8px currentColor;
}

.cash-block {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(140,29,60,.05), transparent);
}
.cash-block .label { font-size: 10px; letter-spacing: .18em; color: var(--mute-2); }
.cash-block .val {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 3px;
  line-height: 1.1;
}
.cash-block .sub { font-size: 11.5px; color: var(--mute); margin-top: 4px; }

.stat-list { padding: 6px 15px 10px; }

.stat {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.stat:last-child { border-bottom: none; }

.stat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.stat-name { font-size: 12px; color: #4E5F63; }
.stat-val { font-family: var(--mono); font-size: 12.5px; color: var(--text); }

.bar {
  height: 4px;
  background: #DCE4E1;
  border-radius: 3px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
  background: linear-gradient(90deg, #9C7020, #C9A265);
}
.bar.health > i { background: linear-gradient(90deg, #B0362B, #C86A5C); }
.bar.mood > i { background: linear-gradient(90deg, #0F6E68, #4F9C97); }
.bar.skill > i { background: linear-gradient(90deg, #2B7A4E, #8ef0c4); }
.bar.team > i { background: linear-gradient(90deg, #6B4C86, #8E74A8); }

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
}
.mini {
  background: var(--panel);
  padding: 10px 15px;
}
.mini .k { font-size: 10px; color: var(--mute-2); letter-spacing: .1em; }
.mini .v { font-family: var(--mono); font-size: 14px; margin-top: 2px; }

/* 中央主区 */
.main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}

.main-head h2 {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -.015em;
}
.main-head .sub { font-size: 12px; color: var(--mute); margin-top: 4px; }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.focus-card {
  text-align: left;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFFFF, #FBFDFC);
  display: flex;
  gap: 11px;
  transition: border-color .18s, transform .12s, background .18s;
  position: relative;
  overflow: hidden;
}
.focus-card:hover {
  border-color: #C9A265;
  background: linear-gradient(180deg, #EAF0EE, #FBFDFC);
  transform: translateY(-1px);
}
.focus-card:active { transform: translateY(0) scale(.995); }
.focus-card .ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px;
  background: #E6EDEA;
  border: 1px solid #B9C5C2;
  flex: none;
}
.focus-card .fc-body { min-width: 0; }
.focus-card .fc-name { font-size: 14px; font-weight: 620; }
.focus-card .fc-desc {
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.5;
  margin-top: 3px;
}
.focus-card .fc-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mute-2);
  margin-top: 6px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.focus-card .fc-meta .c { color: var(--amber-dim); }
.focus-card .rec {
  position: absolute;
  top: 9px;
  right: 9px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--amber);
  background: rgba(140, 29, 60, .1);
  border: 1px solid rgba(140, 29, 60, .32);
  border-radius: 4px;
  padding: 2px 5px;
  line-height: 1.2;
}
.focus-card.disabled { opacity: .45; pointer-events: none; }
.focus-card.current { border-color: var(--amber-dim); box-shadow: inset 0 0 0 1px rgba(140,29,60,.25); }

/* ===== 时间流主面板 ===== */
.run-card { padding: 18px 18px 16px; }

.run-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mute-2);
  flex: none;
}
.live-dot.on {
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(43,122,78,.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,122,78,.45); }
  70% { box-shadow: 0 0 0 9px rgba(43,122,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,122,78,0); }
}
.run-status { font-size: 13px; color: #2C3A40; }
.run-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--mute-2);
}

.focus-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #F3F7F5;
  color: var(--text);
  text-align: left;
  transition: border-color .18s, background .18s;
}
.focus-chip:hover { border-color: var(--amber-dim); background: #F3F7F5; }
.fc-ico { font-size: 16px; flex: none; }
.fc-name { font-size: 13px; font-weight: 550; }
.fc-edit {
  margin-left: auto;
  font-size: 11px;
  color: var(--amber);
  flex: none;
}

.year-bar {
  height: 3px;
  background: #DCE4E1;
  border-radius: 2px;
  overflow: hidden;
  margin: 13px 0 4px;
}
.year-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--amber-dim), var(--amber));
  border-radius: 2px;
  transition: width .5s linear;
}

.stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  min-height: 168px;
}
.stream-item {
  padding: 10px 12px;
  border-left: 2px solid var(--line);
  background: rgba(19,33,42,0.030);
  border-radius: 0 8px 8px 0;
  animation: fadeUp .35s ease both;
}
.stream-item.type-month { border-left-color: var(--amber-dim); }
.stream-item.type-choice { border-left-color: var(--violet); }
.stream-item.type-system { border-left-color: var(--blue); }
.stream-item.type-ending { border-left-color: var(--red); }
.si-title { font-size: 11.5px; font-weight: 600; color: #2C3A40; }
.si-text { font-size: 12px; color: var(--mute); line-height: 1.65; margin-top: 3px; }
.si-choice { font-size: 11px; color: var(--violet); margin-top: 5px; }

.run-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.run-actions .btn { flex: 1; padding: 11px 14px; font-size: 13px; }

.choice-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--mute-2);
  margin-top: 14px;
}

.draw-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--mute-2);
}

/* 月份结算 / 抉择 */
.result-card { padding: 20px; }

.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.result-head .rd {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mute-2);
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 16px;
}
.month-strip .cell { background: #F2F6F4; padding: 13px 14px; }
.month-strip .k { font-size: 10.5px; color: var(--mute-2); letter-spacing: .1em; }
.month-strip .v {
  font-family: var(--mono);
  font-size: 19px;
  margin-top: 3px;
  letter-spacing: -.02em;
}

.narrative {
  font-size: 14.5px;
  line-height: 1.9;
  color: #2C3A40;
}
.narrative .hl { color: var(--amber); }

.choice-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid;
  margin-bottom: 10px;
}
.tag-机会 { color: var(--mint); border-color: rgba(43,122,78,.35); background: rgba(43,122,78,.08); }
.tag-风险 { color: var(--red); border-color: rgba(176,54,43,.35); background: rgba(176,54,43,.08); }
.tag-中性 { color: var(--blue); border-color: rgba(15,110,104,.35); background: rgba(15,110,104,.08); }
.tag-抉择 { color: var(--amber); border-color: rgba(140,29,60,.4); background: rgba(140,29,60,.08); }

.choice-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  margin-bottom: 10px;
}

.choice-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }

.choice {
  text-align: left;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #F3F7F5;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all .18s;
}
.choice:hover {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 4px 14px -8px rgba(19, 33, 42, .35);
  transform: translateX(2px);
}
.choice .idx {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: #E6EDEA;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  flex: none;
}
.choice .ch-body { flex: 1; min-width: 0; display: block; }
.choice .ch-label { display: block; font-size: 14.5px; font-weight: 560; }
.choice .ch-hint { display: block; font-size: 11.5px; color: var(--mute-2); margin-top: 3px; }

.result-flash {
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(43,122,78,.1);
  color: var(--mint);
}

.actions-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.actions-row .btn { flex: 1; }

/* 记录 */
.log-list {
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px 0;
}
.log-item {
  display: flex;
  gap: 11px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line-soft);
  animation: fadeUp .3s ease both;
}
.log-item:last-child { border-bottom: none; }
.log-item .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mute-2);
  margin-top: 6px;
  flex: none;
}
.log-item.type-month .dot { background: var(--amber); }
.log-item.type-choice .dot { background: var(--violet); }
.log-item.type-ending .dot { background: var(--red); }
.log-item.type-system .dot { background: var(--blue); }
.log-item .li-title {
  font-size: 12px;
  font-weight: 600;
  color: #2C3A40;
  margin-bottom: 3px;
}
.log-item .li-text {
  font-size: 12px;
  color: var(--mute);
  line-height: 1.6;
}
.log-item .li-choice {
  font-size: 11px;
  color: var(--violet);
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 同行 */
.peer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line-soft);
}
.peer:last-child { border-bottom: none; }
.peer .av {
  width: 26px; height: 26px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--mono);
  background: #E6EDEA;
  color: var(--mute);
  flex: none;
}
.peer .p-main { flex: 1; min-width: 0; }
.peer .p-name { font-size: 12.5px; }
.peer .p-plat { font-size: 10.5px; color: var(--mute-2); }
.peer .p-worth { font-family: var(--mono); font-size: 12px; }
.peer.dead { opacity: .4; }
.peer.me .p-name { color: var(--amber); }

.rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(140,29,60,.1);
  color: var(--amber);
  border: 1px solid rgba(140,29,60,.25);
}

/* ================= 结算 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(19,33,42,.30);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.ending {
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #FFFFFF, #F7FAF8);
  border: 1px solid #C7D2CE;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(19,33,42,.22), inset 0 1px 0 rgba(19,33,42,0.070);
  animation: popIn .35s cubic-bezier(.2,.9,.25,1);
  max-height: 92dvh;
  overflow-y: auto;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.ending-top {
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  background: radial-gradient(500px 200px at 20% 0%, rgba(140,29,60,.12), transparent 70%);
  padding-right: 104px;
}
.ending-top .kicker { letter-spacing: .1em; line-height: 1.6; }
.ending-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.ending-text {
  font-size: 14px;
  line-height: 1.85;
  color: #4E5F63;
}

.grade-badge {
  position: absolute;
  right: 24px;
  top: 30px;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  background: radial-gradient(circle at 35% 30%, rgba(140,29,60,.2), rgba(140,29,60,.03));
  box-shadow: 0 0 30px -8px rgba(140,29,60,.5);
}
.grade-D { color: var(--red); border-color: rgba(176,54,43,.4); background: radial-gradient(circle at 35% 30%, rgba(176,54,43,.18), transparent); box-shadow: 0 0 30px -8px rgba(176,54,43,.4); }

.ending-body { padding: 20px 26px 24px; }

.networth-big {
  text-align: center;
  padding: 16px 0 20px;
}
.networth-big .k { font-size: 11px; color: var(--mute-2); letter-spacing: .2em; }
.networth-big .v {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-top: 6px;
  line-height: 1;
}

.brag-line {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--amber);
  background: rgba(140, 29, 60, .08);
  border: 1px solid rgba(140, 29, 60, .22);
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.avatar-wrap canvas {
  width: 76px;
  height: 76px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55));
}

.stat-rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .k { color: var(--mute); flex: none; white-space: nowrap; }
.stat-row .v { font-family: var(--mono); text-align: right; }

.ach-box {
  margin-top: 14px;
  border: 1px solid rgba(156, 112, 32, .32);
  border-radius: 12px;
  background: rgba(156, 112, 32, .07);
  padding: 12px 15px 4px;
}
.ach-head {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}
.ach-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px dashed rgba(156, 112, 32, .26);
}
.ach-item:first-of-type { border-top: none; }
.ach-name { font-size: 14px; font-weight: 650; color: var(--text); }
.ach-desc { font-size: 12px; color: var(--mute); }

.ending-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.ending-actions .btn { flex: 1; }

/* 分享卡 */
.share-wrap { text-align: center; padding: 10px 0; }
#shareCanvas {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -25px rgba(19,33,42,.22);
}

/* 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #E6EDEA;
  border: 1px solid #C7D2CE;
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 200;
  opacity: 0;
  transition: all .28s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= 响应式 ================= */
@media (max-width: 1199px) {
  .game-grid { grid-template-columns: 236px minmax(0, 1fr); }
  .col-stats { grid-row: 1 / span 2; }
  .col-main { grid-column: 2; grid-row: 1; }
  .col-side {
    grid-column: 2;
    grid-row: 2;
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .log-list { max-height: 340px; }
}

@media (max-width: 860px) {
  .boot {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 40px 18px 40px;
  }
  .boot-hero h1 { font-size: 56px; }
  .lede { font-size: 14.5px; }
  .counter-strip { gap: 20px; }

  .game-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 12px 28px;
    gap: 12px;
  }
  .col-main { order: 1; grid-column: 1; grid-row: auto; }
  .col-stats { order: 2; position: static; grid-row: auto; }
  .col-side {
    order: 3;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .focus-card .fc-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .focus-card .fc-meta {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-inner { padding: 8px 12px; gap: 10px; min-height: 54px; }
  .shop-name { max-width: 38vw; font-size: 13.5px; }
  .top-stat .v { font-size: 13.5px; }
  .top-stat .k { font-size: 9px; }

  .focus-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .focus-card { padding: 11px; gap: 9px; }
  .focus-card .ico { width: 30px; height: 30px; font-size: 15px; }
  .focus-card .fc-name { font-size: 13px; }
  .focus-card .fc-desc { font-size: 10.5px; }
  .focus-card .fc-meta { font-size: 9.5px; }

  .main-head h2 { font-size: 17px; }
  .month-strip .v { font-size: 16px; }
  .choice-title { font-size: 18px; }
  .ending-title { font-size: 23px; }
  .networth-big .v { font-size: 34px; }
  .ending-top, .ending-body { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 600px) {
  .top-stat { display: none; }
  .icon-btn { width: 32px; height: 32px; font-size: 14px; }
  .topbar-inner { gap: 8px; }
}

@media (max-width: 360px) {
  .focus-grid { grid-template-columns: 1fr; }
  .month-strip { grid-template-columns: 1fr 1fr; }
  .month-strip .cell:last-child { grid-column: 1 / -1; }
}

/* 动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== 身份揭晓 ===== */
.reveal-mask {
  background: radial-gradient(900px 600px at 50% 0%, rgba(19,33,42,0.056), transparent 70%), rgba(19,33,42,.36);
}
.reveal {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 30px 26px 26px;
  border: 1px solid #B9C5C2;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF, #F1F5F3);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(19,33,42,.22);
  animation: popIn .45s cubic-bezier(.2,.9,.25,1);
}
.reveal-glow {
  position: absolute;
  inset: -40% 0 auto 0;
  height: 320px;
  background: radial-gradient(closest-side, var(--pc, #9C7020), transparent 75%);
  opacity: .22;
  pointer-events: none;
}
.reveal-kicker {
  position: relative;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--mute-2);
}
.reveal-platform {
  position: relative;
  margin: 10px 0 6px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--pc, #fff);
  line-height: 1.1;
}
.reveal-tagline { position: relative; font-size: 13px; color: #4E5F63; }
.reveal-rows {
  position: relative;
  margin: 22px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #F4F8F6;
  text-align: left;
}
.rv-row {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.rv-row:last-child { border-bottom: none; }
.rv-k {
  width: 40px;
  flex: none;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mute-2);
  padding-top: 3px;
}
.rv-body { min-width: 0; }
.rv-v { font-size: 14px; font-weight: 600; }
.rv-s { font-size: 11.5px; color: var(--mute); margin-top: 3px; line-height: 1.5; }

/* ===== 开场介绍 ===== */
.intro {
  width: 100%;
  max-width: 560px;
  padding: 24px 24px 22px;
  border: 1px solid #B9C5C2;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F4F8F6);
  box-shadow: 0 40px 90px -40px rgba(19,33,42,.22);
  animation: popIn .35s cubic-bezier(.2,.9,.25,1);
  max-height: 92dvh;
  overflow-y: auto;
}
.intro-head { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.intro-title {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.intro-desc { font-size: 13px; line-height: 1.75; color: #4E5F63; }
.intro-grid { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 18px; }
.intro-block {
  padding: 12px 14px;
  border-left: 2px solid var(--pc, var(--amber-dim));
  background: rgba(19,33,42,0.030);
  border-radius: 0 10px 10px 0;
}
.ib-k {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mute-2);
  margin-bottom: 6px;
}
.ib-li { font-size: 12.5px; color: #4E5F63; line-height: 1.7; }

.ch-sub {
  display: block;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.6;
  margin-top: 4px;
}

/* 预警条 */
.warn-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  color: #C9A265;
  background: rgba(140, 29, 60, .08);
  border: 1px solid rgba(140, 29, 60, .22);
}
.warn-bar.danger {
  color: #B0362B;
  background: rgba(176, 54, 43, .08);
  border-color: rgba(176, 54, 43, .25);
}
.warn-btn {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid currentColor;
  color: inherit;
  background: rgba(0,0,0,.2);
}

/* ===== 首页扩充 ===== */
.boot-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.boot { padding: 54px 0 30px; max-width: none; width: 100%; }

.boot-meta {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--mute-2);
  letter-spacing: .04em;
}

.boot-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 15px 16px;
}
.deck-item {
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #FAFCFB;
  min-width: 0;
}
.deck-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-bottom: 7px;
  box-shadow: 0 0 8px currentColor;
}
.deck-name { display: block; font-size: 12.5px; font-weight: 600; }
.deck-tag {
  display: block;
  font-size: 10.5px;
  color: var(--mute-2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sample-list { padding: 6px 15px 10px; }
.sample {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.sample:last-child { border-bottom: none; }
.sample-g {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #E6EDEA;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
}
.sample-body { min-width: 0; }
.sample-t { font-size: 12.5px; color: #2C3A40; line-height: 1.45; }
.sample-s { font-size: 11px; color: var(--mute-2); margin-top: 2px; }

.boot-foot {
  text-align: center;
  font-size: 11px;
  color: #A2AEAC;
  margin-top: 22px;
  letter-spacing: .04em;
}

@media (max-width: 860px) {
  .boot-lower { grid-template-columns: minmax(0, 1fr); }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boot-wrap { padding: 0 16px 40px; }
}

/* ===== 追思馆 ===== */
.mem-link {
  font-size: 11.5px;
  color: var(--amber);
  background: none;
  border: none;
  padding: 0;
}
.mem-link:hover { text-decoration: underline; }

.memorial-mask {
  align-items: flex-start;
  padding: 40px 20px 60px;
  overflow-y: auto;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(140,29,60,.06), transparent 65%),
    #EBF0ED;
  backdrop-filter: none;
}
.memorial {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}
.mem-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.mem-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 6px;
}
.mem-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #F5F8F6;
  color: var(--mute);
  font-size: 18px;
  line-height: 1;
  flex: none;
}
.mem-close:hover { color: var(--text); border-color: #AEBAB8; }

.mem-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mem-filter {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #F3F7F5;
  color: var(--mute);
  font-size: 12px;
}
.mem-filter.on {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: rgba(140,29,60,.08);
}

.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 12px;
}
.mem-card {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF, #FAFCFB);
  transition: transform .15s, border-color .15s;
  min-width: 0;
}
.mem-card:hover { transform: translateY(-2px); border-color: #AEBAB8; }
.mem-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mem-av { width: 48px; height: 48px; image-rendering: pixelated; }
.mem-grade {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid;
  line-height: 1.2;
}
.mem-grade.tier-top { color: var(--amber); border-color: rgba(140,29,60,.4); background: rgba(140,29,60,.08); }
.mem-grade.tier-mid { color: var(--mint); border-color: rgba(43,122,78,.35); background: rgba(43,122,78,.07); }
.mem-grade.tier-out { color: var(--red); border-color: rgba(176,54,43,.35); background: rgba(176,54,43,.07); }

.mem-name {
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mem-sub { font-size: 11px; color: var(--mute-2); margin-top: 2px; }
.mem-end {
  font-size: 12px;
  color: #2C3A40;
  margin-top: 8px;
  line-height: 1.4;
}
.mem-net {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--amber);
  margin-top: 4px;
}
.mem-at { font-size: 10.5px; color: var(--mute-2); margin-top: 6px; }
.mem-empty {
  text-align: center;
  color: var(--mute-2);
  font-size: 13px;
  padding: 50px 0;
}

.mem-detail {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 24px 22px 20px;
  border: 1px solid #C7D2CE;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF, #F4F8F6);
  animation: popIn .3s ease;
}
.mem-detail .mem-close { position: absolute; right: 14px; top: 14px; }
.md-head { display: flex; gap: 14px; align-items: center; }
.md-av { width: 64px; height: 64px; image-rendering: pixelated; flex: none; }
.md-name { font-size: 19px; font-weight: 700; }
.md-sub { font-size: 11.5px; color: var(--mute); margin-top: 3px; }
.md-grade {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid;
}
.md-grade.tier-top { color: var(--amber); border-color: rgba(140,29,60,.4); }
.md-grade.tier-mid { color: var(--mint); border-color: rgba(43,122,78,.35); }
.md-grade.tier-out { color: var(--red); border-color: rgba(176,54,43,.35); }
.md-title { font-size: 20px; font-weight: 750; margin: 16px 0 8px; }
.md-text { font-size: 13px; line-height: 1.75; color: #4E5F63; }
.md-rows {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.md-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft);
}
.md-row:last-child { border-bottom: none; }
.md-row span { color: var(--mute); }
.md-row b { font-family: var(--mono); font-weight: 600; }

.mem-random {
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--amber-dim);
  background: rgba(140, 29, 60, .08);
  color: var(--amber);
  font-size: 12px;
  white-space: nowrap;
}
.mem-random:hover { background: rgba(140, 29, 60, .14); }

/* 重心多选 */
.focus-card { position: relative; }
.focus-card.selected {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(140,29,60,.10), rgba(140,29,60,.03));
}
.focus-card .tick {
  position: absolute;
  top: 9px;
  left: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  color: #FFFFFF;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
}
.focus-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19,33,42,0.030);
}
.fc-count { font-size: 12.5px; color: var(--mute); }
.fc-count b { color: var(--amber); font-family: var(--mono); }
.fc-hint { display: block; font-size: 11px; color: var(--mute-2); margin-top: 3px; }
.focus-confirm .btn { margin-left: auto; flex: none; }

/* 结局人格卡 */
.pf {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFDFC;
}
.pf-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pf-code {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
}
.pf-name { font-size: 15px; font-weight: 650; color: var(--text); }
.pf-line {
  font-size: 12.5px;
  line-height: 1.75;
  color: #4E5F63;
}
.md-type {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
}

/* ===== 结局：类型卡 + 分享 ===== */
.pf { margin: 4px 0 16px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: #FBFDFC; }
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pf-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .18em;
  color: #8C1D3C;
  background: rgba(140,29,60,.08);
  border: 1px solid rgba(140,29,60,.25);
  border-radius: 6px;
  padding: 3px 8px;
}
.pf-pct { font-size: 12px; color: var(--mute); }
.pf-pct b { color: #8C1D3C; font-family: var(--mono); }
.pf-name { margin-top: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.25; }
.pf-taunt { margin-top: 4px; font-size: 13px; color: var(--mute); font-style: italic; }
.pf-bar { height: 5px; border-radius: 3px; background: #E3EAE7; margin: 12px 0; overflow: hidden; }
.pf-bar > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #C9A265, #8C1D3C); }
.pf-line { font-size: 12.5px; line-height: 1.7; color: #4E5F63; }
.pf-line.pf-same { color: #8C1D3C; margin-top: 6px; }
.pf-risk { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: #9C7020; line-height: 1.6; }

.share-box { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--mute); }
.sb-tip { font-size: 10.5px; color: var(--mute-2); }
.sb-text { margin: 9px 0 10px; padding: 10px 12px; border-radius: 9px; background: #F4F8F6; border: 1px solid #E3EAE7; font-size: 12.5px; line-height: 1.65; color: var(--text); user-select: all; }
.sb-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.sb-actions .btn { font-size: 11.5px; padding: 7px 11px; }
.sb-preview { margin-top: 9px; font-size: 11.5px; color: var(--mute-2); line-height: 1.6; min-height: 17px; }
.sb-hint { margin-top: 8px; font-size: 10.5px; color: #9C7020; }

.full-report { display: none; margin: 0 0 14px; padding: 14px; border: 1px solid rgba(140,29,60,.25); border-radius: 12px; background: rgba(140,29,60,.04); }
.full-report.on { display: block; }
.fr-head { font-size: 12px; letter-spacing: .12em; color: #8C1D3C; margin-bottom: 10px; }
.fr-sec { margin-bottom: 12px; }
.fr-title { font-size: 11px; color: var(--mute); margin-bottom: 6px; }
.fr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.fr-k { width: 84px; flex: none; font-size: 11.5px; color: var(--text); }
.fr-bar { flex: 1; height: 6px; border-radius: 3px; background: #E3EAE7; overflow: hidden; }
.fr-bar > i { display: block; height: 100%; background: #8C1D3C; opacity: .75; border-radius: 3px; }
.fr-v { width: 34px; text-align: right; font-size: 11px; font-family: var(--mono); color: var(--mute); }
.fr-line { font-size: 12px; line-height: 1.7; color: #4E5F63; }

/* ===== 分享卡与微信引导 ===== */
.share-wrap { margin-top: 4px; }
.share-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(19,33,42,.5);
}
.share-save-tip {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--mute);
}
.share-card-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(19,33,42,.82);
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 14px 18px;
}
.wx-guide-inner { text-align: right; color: #fff; max-width: 240px; }
.wx-arrow {
  font-size: 42px;
  line-height: 1;
  color: #fff;
  transform: translate(6px, -4px);
  animation: wxBob 1.1s ease-in-out infinite;
}
@keyframes wxBob {
  0%, 100% { transform: translate(6px, -4px); }
  50% { transform: translate(6px, 4px); }
}
.wx-title { margin-top: 8px; font-size: 17px; font-weight: 700; }
.wx-title b { font-size: 20px; }
.wx-text { margin-top: 6px; font-size: 13.5px; line-height: 1.6; opacity: .92; }
.wx-sub { margin-top: 10px; font-size: 11.5px; opacity: .65; }
