/* ============================================================
   硅谷人生重开模拟器 · SV Life Reboot
   设计系统 / 背景 / 导航 / 首页 / 天赋 / 属性 / 人生 / 总结 / 图鉴
   ============================================================ */

:root {
  --bg-0: #16212f;
  --bg-1: #1c2a3a;
  --bg-2: #243548;
  --glass: rgba(38, 50, 66, .88);
  --glass-2: rgba(44, 57, 75, .94);
  --glass-3: rgba(48, 61, 79, .8);

  --ink: #ffffff;
  --ink-2: #f0f6fc;
  --muted: #d5e1ed;
  --faint: #b8c8d8;

  --line: rgba(190, 215, 240, .22);
  --line-strong: rgba(205, 225, 245, .36);

  --teal: #00d09c;
  --teal-soft: rgba(0, 208, 156, .12);
  --amber: #d4a35c;
  --amber-soft: rgba(212, 163, 92, .12);
  --rose: #ff4d6d;
  --rose-soft: rgba(255, 77, 109, .12);
  --violet: #8a6cff;
  --violet-soft: rgba(138, 108, 255, .14);
  --blue: #72b8ff;
  --green: #00d09c;
  --red: #ff4d6d;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .25);
  --shadow-2: 0 18px 50px -18px rgba(0, 0, 0, .65);
  --shadow-3: 0 30px 80px -30px rgba(0, 0, 0, .85);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "SimSun", serif;
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.22; letter-spacing: .005em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(93, 214, 195, .28); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px; background: var(--teal); color: #04120f;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 背景（Simular 风格：光晕 + 点阵） ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg__base {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 800px at 50% -10%, #1e2a3c 0%, transparent 60%),
    linear-gradient(180deg, #0d1118 0%, #0f1420 50%, #0b0e15 100%);
}
.bg__aurora { position: absolute; inset: -20%; filter: blur(90px); }
.orb { position: absolute; border-radius: 50%; opacity: .5; }
.orb--a {
  width: 55vw; height: 55vw; left: -12vw; top: -18vw;
  background: radial-gradient(circle at 40% 40%, rgba(86, 120, 255, .5), rgba(86, 120, 255, 0) 65%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.orb--b {
  width: 48vw; height: 48vw; right: -14vw; top: -6vw;
  background: radial-gradient(circle at 60% 45%, rgba(0, 208, 156, .38), rgba(0, 208, 156, 0) 65%);
  animation: orbDrift 26s ease-in-out infinite alternate-reverse;
}
.orb--c {
  width: 40vw; height: 40vw; left: 28vw; bottom: -22vw;
  background: radial-gradient(circle at 50% 55%, rgba(160, 108, 255, .32), rgba(160, 108, 255, 0) 65%);
  animation: orbDrift 30s ease-in-out infinite alternate;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); opacity: .38; }
  100% { transform: translate(4vw, -3vw) scale(1.12); opacity: .6; }
}
.bg__grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(190, 215, 245, .16) 1px, transparent 1px),
    radial-gradient(rgba(190, 215, 245, .08) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  background-position: 0 0, 22px 22px;
  mask-image: radial-gradient(900px 520px at 50% 18%, rgba(0, 0, 0, .9), transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 50% 18%, rgba(0, 0, 0, .9), transparent 75%);
  opacity: .5;
}
.bg__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 380px at 50% 30%, rgba(120, 160, 255, .1), transparent 70%),
    radial-gradient(500px 320px at 78% 20%, rgba(0, 208, 156, .08), transparent 72%);
  animation: glowPulse 9s ease-in-out infinite alternate;
}
@keyframes glowPulse { from { opacity: .5; } to { opacity: 1; } }
.bg__grain {
  position: absolute; inset: 0; opacity: .03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 浅色主题下的背景 */
body.theme-light .bg__base {
  background:
    radial-gradient(1200px 800px at 50% -10%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, #eef2f8 0%, #f3f7fb 50%, #e9eef5 100%);
}
body.theme-light .orb--a { background: radial-gradient(circle at 40% 40%, rgba(120, 150, 235, .3), rgba(120, 150, 235, 0) 65%); }
body.theme-light .orb--b { background: radial-gradient(circle at 60% 45%, rgba(0, 168, 128, .22), rgba(0, 168, 128, 0) 65%); }
body.theme-light .orb--c { background: radial-gradient(circle at 50% 55%, rgba(150, 110, 235, .2), rgba(150, 110, 235, 0) 65%); }
body.theme-light .bg__aurora { filter: blur(100px); opacity: .75; }
body.theme-light .bg__grid {
  background-image:
    radial-gradient(rgba(60, 90, 130, .22) 1px, transparent 1px),
    radial-gradient(rgba(60, 90, 130, .12) 1px, transparent 1px);
}
body.theme-light .bg__glow {
  background:
    radial-gradient(620px 380px at 50% 30%, rgba(120, 150, 235, .12), transparent 70%),
    radial-gradient(500px 320px at 78% 20%, rgba(0, 168, 128, .08), transparent 72%);
}
body.theme-light .bg__grain { opacity: .015; }

@media (prefers-reduced-motion: reduce) {
  .orb, .bg__glow { animation: none !important; }
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 62px; display: flex; align-items: center; gap: 18px;
  padding: 0 22px;
  background: linear-gradient(180deg, rgba(17, 25, 36, .94), rgba(17, 25, 36, .72));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #ffd9c8;
  background: linear-gradient(160deg, rgba(224, 112, 90, .3), rgba(224, 112, 90, .08));
  border: 1px solid rgba(224, 112, 90, .4);
  box-shadow: 0 0 24px -6px rgba(224, 112, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.14; }
.brand__text strong { font-family: var(--serif); font-size: 16px; letter-spacing: .06em; }
.brand__text em {
  font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: .24em; color: var(--muted);
}
.topbar__meta { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; overflow: hidden; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line); transition: .18s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.icon-btn.is-off { color: var(--faint); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06);
  font-size: 11.5px; color: var(--ink-2); white-space: nowrap;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot, var(--teal)); box-shadow: 0 0 8px var(--dot, var(--teal)); }
.chip b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.chip--age { border-color: rgba(93, 214, 195, .3); background: var(--teal-soft); color: var(--teal); }
.chip--visa { border-color: rgba(243, 180, 90, .3); background: var(--amber-soft); color: var(--amber); }

/* ---------- 右侧浮动导航 ---------- */
.dock {
  position: fixed; right: 18px; top: 50%; z-index: 70;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 7px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(36, 48, 64, .95), rgba(27, 37, 50, .92));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}
.dock__btn {
  position: relative; width: 42px; height: 42px; border: 0; border-radius: 13px;
  display: grid; place-items: center;
  color: var(--muted); background: transparent;
  transition: color .18s, background .18s, transform .2s;
}
.dock__btn svg { width: 19px; height: 19px; }
.dock__btn::after {
  content: ""; position: absolute; left: -7px; top: 50%; width: 3px; height: 0;
  border-radius: 3px; background: var(--teal); transform: translateY(-50%);
  transition: height .22s; box-shadow: 0 0 12px var(--teal);
}
.dock__btn:hover { color: var(--ink); background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.dock__btn.is-active { color: var(--teal); background: var(--teal-soft); }
.dock__btn.is-active::after { height: 18px; }
.dock__btn--accent { color: var(--rose); }
.dock__btn--accent:hover { color: #ffb4a3; background: var(--rose-soft); }
.dock__label {
  position: absolute; right: 52px; top: 50%; transform: translate(6px, -50%);
  padding: 5px 9px; border-radius: 7px; white-space: nowrap;
  background: rgba(9, 19, 31, .96); border: 1px solid var(--line-strong);
  font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2);
  opacity: 0; pointer-events: none; transition: .18s;
  box-shadow: var(--shadow-1);
}
.dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; transform: translate(0, -50%); }
.dock__sep { width: 24px; height: 1px; background: var(--line); margin: 3px 0; }

/* ---------- 舞台与视图 ---------- */
.stage {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 98px 100px 90px 28px;
  min-height: 100vh;
}
.view { display: none; }
.view.is-active { display: block; animation: viewIn .42s cubic-bezier(.22, .8, .28, 1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.view-head { max-width: 800px; margin-bottom: 28px; }
.view-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 10px 0 10px; }
.view-head__lede { color: var(--muted); font-size: 14.5px; max-width: 66ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .26em;
  color: var(--teal); text-transform: uppercase;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05);
  color: var(--ink); font-size: 13.5px; font-weight: 500;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255, 255, 255, .09); border-color: rgba(190, 220, 245, .42); box-shadow: 0 10px 26px -16px rgba(0, 0, 0, .8); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn--primary {
  background: linear-gradient(135deg, #00e6ae, #00b98a);
  border-color: rgba(0, 230, 174, .45);
  color: #041b14; font-weight: 700;
  box-shadow: 0 12px 30px -14px rgba(0, 208, 156, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, #34f2c0, #00cf9b); }
.btn--ghost { background: rgba(255, 255, 255, .02); }
.btn--danger { background: linear-gradient(135deg, #f0797d, #b83f47); border-color: rgba(240, 121, 125, .5); color: #1c0709; font-weight: 700; }
.btn--lg { padding: 13px 24px; font-size: 14.5px; border-radius: 12px; }
.btn--sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn--block { width: 100%; }

/* ---------- 首页 ---------- */
.boot {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  min-height: calc(100vh - 210px);
}
.boot__copy h1 {
  margin: 20px 0 22px;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -.015em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.boot__copy h1 .grad {
  background: linear-gradient(100deg, #f2f7ff 0%, #9fe8d2 34%, #00d09c 62%, #72b8ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.boot__lede { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; max-width: 50ch; }
.boot__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 36px; }
.boot__stats { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.boot__stats > div { display: flex; flex-direction: column; gap: 2px; }
.boot__stats dt { font-size: 10.5px; letter-spacing: .18em; color: var(--faint); text-transform: uppercase; }
.boot__stats dd { font-family: var(--mono); font-size: 19px; color: var(--ink); }
.boot__stats dd small { font-family: var(--sans); font-size: 11px; color: var(--muted); margin-left: 3px; }

.boot__card {
  position: relative; padding: 26px 26px 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(44, 58, 76, .93), rgba(27, 37, 50, .96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.boot__card::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--rose), #7a2c22); box-shadow: 0 0 20px rgba(224, 112, 90, .5);
}
.boot__card::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 180, 90, .17), transparent 70%);
}
.boot__card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seal {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  border: 1px solid rgba(243, 180, 90, .35); background: var(--amber-soft);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--amber);
}
.boot__card-title { margin: 26px 0 20px; }
.boot__card-title h2 { font-size: 25px; letter-spacing: .01em; }
.boot__card-title p { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; color: var(--faint); margin-top: 7px; text-transform: uppercase; }
.boot__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.boot__facts li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.fact__k { flex: 0 0 64px; color: var(--faint); letter-spacing: .1em; font-size: 11px; }
.fact__v { color: var(--ink-2); font-family: var(--mono); font-size: 11.5px; }
.boot__ticker {
  margin: 16px 0 12px; min-height: 44px;
  display: flex; align-items: center;
  font-family: var(--serif); font-size: 14px; color: var(--amber);
  border-left: 2px solid rgba(243, 180, 90, .35); padding-left: 12px;
}
.boot__hint { font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- 通用面板 ---------- */
.panel {
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.view-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(16, 24, 34, 0), rgba(16, 24, 34, .9) 45%);
}
.view-foot__acts { display: flex; gap: 10px; }
.foot-note { font-size: 12.5px; color: var(--muted); }
.foot-note b { color: var(--amber); font-family: var(--mono); }

/* ---------- 天赋 ---------- */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.slot {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 11px 15px;
  border-radius: var(--r-md); border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .05); transition: .2s;
}
.slot__num { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.slot__empty { color: var(--faint); font-size: 12.5px; }
.slot.is-filled { border-style: solid; border-color: var(--rar, var(--line-strong)); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 26px -10px var(--rar, transparent); }
.slot__name { font-family: var(--serif); font-size: 15px; color: var(--rar, var(--ink)); }
.slot__meta { font-size: 10.5px; color: var(--muted); }

.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 11px; }
.talent {
  position: relative; text-align: left; padding: 15px 15px 13px;
  border-radius: 13px; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  color: var(--ink); overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s, background .18s;
}
.talent::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--rar), transparent); opacity: .8;
}
.talent::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, var(--rar-soft, transparent), transparent 70%); opacity: .8;
  transition: opacity .2s;
}
.talent:hover { transform: translateY(-3px); border-color: var(--rar); box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .9); }
.talent:hover::after { opacity: 1; }
.talent.is-picked { border-color: var(--rar); background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 30px -12px var(--rar), 0 14px 30px -22px #000; }
.talent.is-picked .talent__check { opacity: 1; transform: scale(1); }
.talent.is-locked { opacity: .46; }
.talent__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.talent__rar { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--rar); text-transform: uppercase; }
.talent__check {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rar); color: #0a1018; opacity: 0; transform: scale(.5); transition: .18s;
}
.talent__check svg { width: 11px; height: 11px; }
.talent__name { font-family: var(--serif); font-size: 16.5px; letter-spacing: .01em; }
.talent__desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; min-height: 38px; }
.talent__tag { margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); }

/* ---------- 属性分配 ---------- */
.alloc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }
.alloc__list { display: grid; gap: 10px; }
.alloc-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 132px; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--glass);
}
.alloc-row__name { font-family: var(--serif); font-size: 17px; }
.alloc-row__name small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--faint); }
.alloc-row__bar { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.alloc-row__bar i {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--bar), var(--bar-2, var(--bar)));
  box-shadow: 0 0 14px -2px var(--bar); transition: width .28s cubic-bezier(.3, .8, .3, 1);
}
.alloc-row__desc { margin-top: 7px; font-size: 11.5px; color: var(--faint); }
.alloc-row__ctrl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.alloc-row__val { font-family: var(--mono); font-size: 20px; min-width: 30px; text-align: center; color: var(--ink); }
.step-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06); color: var(--ink-2);
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  transition: .16s;
}
.step-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--ink); border-color: var(--teal); }
.step-btn:disabled { opacity: .25; cursor: not-allowed; }

.alloc__side { position: sticky; top: 86px; display: grid; gap: 14px; }
.alloc__budget {
  padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(243, 180, 90, .3);
  background: linear-gradient(160deg, rgba(243, 180, 90, .12), rgba(243, 180, 90, .03));
}
.alloc__budget span { font-size: 11px; letter-spacing: .14em; color: var(--amber); }
.alloc__budget strong { display: block; font-family: var(--mono); font-size: 40px; line-height: 1.1; color: #ffd79a; margin-top: 4px; }
.alloc__budget strong small { font-size: 13px; color: var(--amber); margin-left: 2px; }
.alloc__presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alloc__preview { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; color: var(--muted); line-height: 1.75; }
.alloc__preview strong { color: var(--ink-2); font-weight: 600; }
.alloc__tip { font-size: 11.5px; color: var(--faint); line-height: 1.75; padding: 0 2px; }

/* ---------- 人生界面 ---------- */
.life { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 22px; align-items: start; }
.rail { position: sticky; top: 84px; display: grid; gap: 12px; }
.rail-card { padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); }
.rail-card h3 {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; color: var(--faint);
  text-transform: uppercase; font-weight: 500; margin-bottom: 11px;
}
.rail-id { display: flex; align-items: flex-end; gap: 12px; }
.rail-id__age { font-family: var(--mono); font-size: 38px; line-height: 1; color: var(--ink); }
.rail-id__age small { font-size: 11px; color: var(--muted); margin-left: 2px; }
.rail-id__meta { padding-bottom: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.rail-id__meta strong { display: block; color: var(--ink-2); font-weight: 600; }
.rail__status { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

.stat-line { display: grid; gap: 4px; margin-bottom: 9px; }
.stat-line:last-child { margin-bottom: 0; }
.stat-line__head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.stat-line__head b { font-family: var(--mono); font-size: 12.5px; color: var(--ink); font-weight: 600; }
.stat-line__track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.stat-line__track i { display: block; height: 100%; border-radius: inherit; background: var(--c, var(--teal)); box-shadow: 0 0 8px -1px var(--c, var(--teal)); transition: width .5s ease; }
.stat-line--big .stat-line__head b { font-size: 15px; }

.rail-kv { display: grid; gap: 6px; font-size: 12px; }
.rail-kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rail-kv dt { color: var(--faint); font-size: 11px; }
.rail-kv dd { font-family: var(--mono); color: var(--ink-2); font-size: 12px; text-align: right; }
.rail-kv dd.is-up { color: var(--green); }
.rail-kv dd.is-down { color: var(--red); }

.rail-badge {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2);
}
.rail-badge svg { width: 15px; height: 15px; color: var(--amber); flex: none; }

.stream-wrap { min-width: 0; }
.stream-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 4px 12px; border-bottom: 1px solid var(--line);
}
.stream-head__year { display: flex; align-items: baseline; gap: 10px; }
.stream-head__year strong { font-family: var(--mono); font-size: 24px; color: var(--ink); letter-spacing: .02em; }
.stream-head__year span { font-family: var(--serif); font-size: 15px; color: var(--muted); }
.stream-head__acts { display: flex; gap: 6px; }

.stream {
  height: calc(100vh - 286px); min-height: 360px; overflow-y: auto;
  padding: 22px 6px 26px 2px; display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(160, 190, 220, .25) transparent;
}
.stream::-webkit-scrollbar { width: 7px; }
.stream::-webkit-scrollbar-thumb { background: rgba(160, 190, 220, .22); border-radius: 99px; }

.msg { display: flex; gap: 10px; max-width: 86%; animation: msgIn .4s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg__avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .05); color: var(--muted); margin-top: 2px;
}
.msg__body { min-width: 0; }
.msg__who { font-size: 10px; letter-spacing: .16em; color: var(--faint); margin-bottom: 4px; text-transform: uppercase; }
.msg__bubble {
  padding: 12px 15px; border-radius: 4px 14px 14px 14px;
  background: rgba(255, 255, 255, .085);
  border: 1px solid var(--line);
  font-family: var(--serif); font-size: 15px; line-height: 1.72; color: var(--ink-2);
}
.msg__bubble em { font-style: normal; color: var(--amber); }
.msg__bubble b { color: var(--ink); font-weight: 600; }
.msg__fx { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.fx {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 5px;
  font-family: var(--mono); font-size: 10.5px; border: 1px solid transparent;
}
.fx--up { color: var(--green); background: rgba(99, 213, 155, .1); border-color: rgba(99, 213, 155, .22); }
.fx--down { color: var(--red); background: rgba(240, 121, 125, .1); border-color: rgba(240, 121, 125, .22); }

.msg--you { align-self: flex-end; flex-direction: row-reverse; }
.msg--you .msg__avatar { background: var(--teal-soft); border-color: rgba(93, 214, 195, .4); color: var(--teal); }
.msg--you .msg__who { text-align: right; color: var(--teal); }
.msg--you .msg__bubble {
  border-radius: 14px 4px 14px 14px;
  background: linear-gradient(160deg, rgba(0, 208, 156, .18), rgba(0, 208, 156, .08));
  border-color: rgba(0, 208, 156, .36); color: #dffbf4;
}
.msg--sys { align-self: center; max-width: 94%; }
.msg--sys .msg__body { width: 100%; }
.msg--sys .msg__avatar { display: none; }
.sys-line {
  display: flex; align-items: center; gap: 10px; padding: 3px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--faint);
  text-transform: uppercase;
}
.sys-line::before, .sys-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sys-line b { color: var(--ink-2); font-weight: 500; }

.msg--warn .msg__bubble { border-color: rgba(240, 121, 125, .34); background: rgba(240, 121, 125, .07); }
.msg--gold .msg__bubble { border-color: rgba(243, 180, 90, .38); background: rgba(243, 180, 90, .08); }
.msg--gold .msg__avatar { color: var(--amber); border-color: rgba(243, 180, 90, .4); background: var(--amber-soft); }
.msg--violet .msg__bubble { border-color: rgba(167, 139, 250, .38); background: rgba(167, 139, 250, .08); }
.msg--violet .msg__avatar { color: var(--violet); border-color: rgba(167, 139, 250, .4); background: var(--violet-soft); }

.choices { display: grid; gap: 8px; width: 100%; animation: msgIn .35s both; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 11px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .045); color: var(--ink-2); text-align: left;
  transition: .18s;
}
.choice:hover { border-color: var(--teal); background: rgba(93, 214, 195, .1); color: var(--ink); transform: translateX(3px); }
.choice__k { flex: none; font-family: var(--mono); font-size: 10px; color: var(--teal); padding-top: 2px; }
.choice__t { font-size: 13.5px; line-height: 1.6; }
.choice__t small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }

.advance {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 4px 0; border-top: 1px solid var(--line);
}
.advance__hint { font-size: 12px; color: var(--faint); min-width: 0; }
.advance__acts { display: flex; align-items: center; gap: 8px; }
.auto-btn { display: inline-flex; align-items: center; gap: 7px; }
.auto-btn.is-on { color: var(--teal); border-color: rgba(93, 214, 195, .45); background: var(--teal-soft); }
.auto-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.auto-btn.is-on .auto-dot { animation: blink 1.1s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- 浮层提示 ---------- */
.toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  padding: 9px 16px; border-radius: 99px; font-size: 12.5px; color: var(--ink);
  background: rgba(33, 44, 60, .97); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2); animation: toastIn .3s both;
}
.toast.is-out { animation: toastOut .3s both; }
.toast--gold { border-color: rgba(243, 180, 90, .45); color: #ffe0ae; }
.toast--bad { border-color: rgba(240, 121, 125, .45); color: #ffc4c6; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 模态 ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 5, 9, .7); backdrop-filter: blur(5px); }
.modal__panel {
  position: relative; width: min(430px, 100%); padding: 24px;
  border-radius: 16px; background: var(--glass-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3); animation: msgIn .26s both;
}
.modal__panel h3 { font-size: 20px; margin-bottom: 8px; }
.modal__panel p { color: var(--muted); font-size: 13.5px; }
.modal__acts { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* ---------- 提示条 ---------- */
.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px;
  border: 1px solid rgba(243, 180, 90, .3); background: var(--amber-soft);
  color: #f4d7ae; font-size: 12.5px; line-height: 1.65;
}
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--amber); }
.notice--teal { border-color: rgba(93, 214, 195, .3); background: var(--teal-soft); color: #c8f1ea; }
.notice--teal svg { color: var(--teal); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .stage { padding: 92px 84px 80px 20px; }
  .boot { grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-top: 10px; }
  .boot__card { max-width: 520px; }
  .life { grid-template-columns: 252px minmax(0, 1fr); }
  .alloc { grid-template-columns: 1fr; }
  .alloc__side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .alloc__tip { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .topbar { padding: 0 14px; height: 56px; }
  .brand__text em { display: none; }
  .topbar__meta { display: none; }
  .stage { padding: 78px 16px 104px; }
  .dock {
    right: 50%; top: auto; bottom: 14px; transform: translateX(50%);
    flex-direction: row; border-radius: 18px; padding: 7px 8px; gap: 2px;
  }
  .dock__sep { width: 1px; height: 24px; margin: 0 3px; }
  .dock__btn::after { left: 50%; top: auto; bottom: -7px; width: 0; height: 3px; transform: translateX(-50%); transition: width .2s; }
  .dock__btn.is-active::after { width: 16px; height: 3px; }
  .dock__label { display: none; }
  .boot__copy h1 { font-size: clamp(34px, 10vw, 52px); }
  .boot__stats { gap: 18px; }
  .slots { grid-template-columns: 1fr; }
  .talent-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .talent__desc { min-height: 0; }
  .life { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: 1fr 1fr; }
  .rail-card--span { grid-column: 1 / -1; }
  .stream { height: calc(100vh - 360px); min-height: 300px; }
  .msg { max-width: 94%; }
  .alloc-row { grid-template-columns: 76px minmax(0, 1fr) 116px; gap: 10px; padding: 13px; }
  .alloc__side { grid-template-columns: 1fr; }
  .view-foot { flex-direction: column; align-items: stretch; }
  .view-foot__acts { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .rail { grid-template-columns: 1fr; }
  .boot__actions .btn { flex: 1; }
  .talent-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .talent { padding: 12px 11px; }
  .talent__name { font-size: 14.5px; }
  .talent__desc { font-size: 11px; }
  .alloc-row { grid-template-columns: 64px minmax(0, 1fr) 104px; }
  .alloc-row__desc { display: none; }
  .stream-head__year strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bg__glow { animation: none; }
}

/* ============================================================
   总结 / 图鉴 / 设置
   ============================================================ */
.empty-state {
  max-width: 520px; margin: 12vh auto; text-align: center;
  padding: 40px 30px; border-radius: var(--r-xl);
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.empty-state h2 { margin: 12px 0 8px; font-size: 28px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.summary { display: grid; gap: 16px; }
.sum-hero {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px; align-items: center; padding: 30px 30px 28px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 260px at 12% 0%, color-mix(in srgb, var(--rank) 16%, transparent), transparent 65%),
    linear-gradient(160deg, rgba(44, 58, 76, .92), rgba(24, 33, 45, .96));
  border: 1px solid color-mix(in srgb, var(--rank) 34%, transparent);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .1);
  overflow: hidden;
}
.sum-hero::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--rank) 22%, transparent), transparent 68%);
  pointer-events: none;
}
.sum-rank {
  width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 54px; line-height: 1; color: var(--rank);
  background: color-mix(in srgb, var(--rank) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--rank) 42%, transparent);
  box-shadow: 0 0 40px -12px var(--rank), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.sum-hero__body { min-width: 0; }
.sum-hero__body h1 { font-size: clamp(28px, 4vw, 44px); margin: 8px 0 6px; }
.sum-line { font-family: var(--serif); font-size: 15.5px; color: var(--ink-2); }
.sum-desc { color: var(--muted); font-size: 13px; margin-top: 8px; max-width: 62ch; }
.sum-score { text-align: right; padding-left: 18px; border-left: 1px solid var(--line); }
.sum-score span { display: block; font-size: 10.5px; letter-spacing: .18em; color: var(--faint); }
.sum-score strong { display: block; font-family: var(--mono); font-size: 40px; line-height: 1.1; color: var(--ink); }
.sum-score small { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--rank); }

.sum-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 16px; }
.panel.sum-meta, .panel.sum-stats, .panel.sum-ach, .panel.sum-inherit, .panel.sum-log { padding: 22px 24px; }
.panel h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.panel h3 .count { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--faint); font-weight: 400; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.kv-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv-grid dt { font-size: 11.5px; color: var(--faint); }
.kv-grid dd { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-align: right; max-width: 65%; }

.sum-stats__grid { display: grid; gap: 10px; }
.sum-stat__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.sum-stat__head b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.sum-stat__track { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.sum-stat__track i { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: 0 0 10px -2px var(--c); }
.sum-traits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sum-label { font-size: 10.5px; letter-spacing: .16em; color: var(--faint); margin-right: 4px; }
.trait {
  display: inline-flex; padding: 3px 9px; border-radius: 99px; font-size: 11px;
  color: var(--amber); background: var(--amber-soft); border: 1px solid rgba(243, 180, 90, .28);
}

.ach-cloud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach-chip {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border-radius: 11px; border: 1px solid color-mix(in srgb, var(--tier) 30%, transparent);
  background: color-mix(in srgb, var(--tier) 7%, transparent);
}
.ach-chip svg { width: 18px; height: 18px; flex: none; color: var(--tier); margin-top: 2px; }
.ach-chip b { display: block; font-size: 12.5px; color: var(--ink); font-weight: 600; }
.ach-chip small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.55; margin-top: 1px; }

.sum-inherit__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.sum-inherit__head h3 { display: block; margin-bottom: 5px; }
.sum-inherit__head p { color: var(--muted); font-size: 12px; }
.inherit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.inherit-card {
  text-align: left; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--ink);
  transition: .18s;
}
.inherit-card .talent__rar { display: block; margin-bottom: 4px; }
.inherit-card strong { display: block; font-family: var(--serif); font-size: 16px; color: var(--rar); }
.inherit-card small { display: block; font-size: 11px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.inherit-card:hover { transform: translateY(-2px); border-color: var(--rar); }
.inherit-card.is-on { border-color: var(--rar); background: color-mix(in srgb, var(--rar) 10%, transparent); box-shadow: inset 0 0 24px -12px var(--rar); }

.sum-log summary { cursor: pointer; font-family: var(--serif); font-size: 15px; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; }
.sum-log summary::-webkit-details-marker { display: none; }
.sum-log summary::after { content: "展开"; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.sum-log[open] summary::after { content: "收起"; }
.log-list { display: grid; gap: 6px; margin-top: 16px; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.log-list li { display: flex; gap: 12px; font-size: 12px; line-height: 1.65; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.log-age { flex: none; width: 42px; font-family: var(--mono); font-size: 10px; color: var(--faint); padding-top: 2px; }
.log-text { color: var(--ink-2); }

.sum-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 2px 4px; }

/* ---------- 图鉴 ---------- */
.codex { display: grid; gap: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stat-card {
  padding: 14px 15px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--glass); box-shadow: var(--shadow-1);
}
.stat-card span { display: block; font-size: 10.5px; letter-spacing: .12em; color: var(--faint); }
.stat-card strong { display: inline-block; font-family: var(--mono); font-size: 20px; color: var(--ink); margin-top: 5px; }
.stat-card small { font-size: 10px; color: var(--muted); margin-left: 3px; }
.codex-block { padding: 22px 24px; }
.codex-block__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.codex-block__head h3 { margin: 0; }
.ach-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  opacity: .65; transition: .18s;
}
.ach-item.is-got { opacity: 1; border-color: color-mix(in srgb, var(--tier) 32%, transparent); background: color-mix(in srgb, var(--tier) 6%, transparent); }
.ach-item__icon {
  width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--tier) 30%, transparent);
  color: var(--tier); background: color-mix(in srgb, var(--tier) 10%, transparent);
  font-family: var(--serif); font-size: 15px;
}
.ach-item__icon svg { width: 18px; height: 18px; }
.ach-item__body { min-width: 0; flex: 1; }
.ach-item__body strong { display: block; font-size: 12.5px; color: var(--ink); }
.ach-item__body p { font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 1px; }
.ach-item__state { flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--faint); }

.codex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tag-bars { display: grid; gap: 10px; }
.tag-row__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.tag-row__head b { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.tag-row__track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.tag-row__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5dd6c3, #6aa8e8); }

.ending-list { display: grid; gap: 8px; }
.ending-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); opacity: .48;
}
.ending-item.is-got { opacity: 1; border-color: rgba(243, 180, 90, .3); background: rgba(243, 180, 90, .05); }
.ending-item__rank {
  width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; color: var(--amber);
  background: var(--amber-soft); border: 1px solid rgba(243, 180, 90, .3);
}
.ending-item > div { flex: 1; min-width: 0; }
.ending-item strong { display: block; font-size: 12.5px; color: var(--ink); }
.ending-item small { display: block; font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ending-item__count { font-family: var(--mono); font-size: 10.5px; color: var(--amber); }
.ending-item__lock { font-size: 10px; color: var(--faint); }

.recent-events { display: grid; gap: 6px; }
.recent-events li { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); line-height: 1.6; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.recent-age { flex: none; width: 38px; font-family: var(--mono); font-size: 10px; color: var(--faint); padding-top: 2px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; }
.setting h3 { margin: 0 0 5px; font-size: 16px; }
.setting p { font-size: 12px; color: var(--muted); line-height: 1.6; max-width: 42ch; }
.setting--danger { grid-column: 1 / -1; border-color: rgba(240, 121, 125, .24); background: linear-gradient(160deg, rgba(240, 121, 125, .06), var(--glass)); }
.select {
  appearance: none; -webkit-appearance: none;
  padding: 9px 34px 9px 12px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238194a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink); font-size: 12.5px;
}
.select option { background: #0d1b2b; color: var(--ink); }

/* ---------- 额外响应式 ---------- */
@media (max-width: 1080px) {
  .stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sum-hero { grid-template-columns: auto minmax(0, 1fr); }
  .sum-score { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; text-align: left; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .sum-score strong { font-size: 26px; }
  .sum-grid { grid-template-columns: 1fr; }
  .codex-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sum-hero { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .sum-rank { width: 68px; height: 68px; border-radius: 18px; font-size: 38px; }
  .ach-cloud { grid-template-columns: 1fr; }
  .ach-list { grid-template-columns: 1fr; }
  .inherit-list { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setting { flex-direction: column; align-items: flex-start; }
  .sum-foot { flex-direction: column; align-items: stretch; }
  .sum-foot .view-foot__acts { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .panel.sum-meta, .panel.sum-stats, .panel.sum-ach, .panel.sum-inherit, .panel.sum-log, .codex-block { padding: 17px 15px; }
}

/* ============================================================
   年度行动（参考图 2）
   ============================================================ */
.year { max-width: 1240px; }
.year-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 4px 0 18px; }
.year-head h1 { font-family: var(--sans); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 3px; }
.year-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.year-head__meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag-pill {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 5px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03);
  font-size: 10.5px; letter-spacing: .06em; color: var(--muted); white-space: nowrap;
}
.tag-pill--green { border-color: rgba(0, 208, 156, .34); background: var(--teal-soft); color: var(--teal); }
.tag-pill--amber { border-color: rgba(212, 163, 92, .36); background: var(--amber-soft); color: var(--amber); }

.notice-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border: 1px solid rgba(0, 208, 156, .34); border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 208, 156, .1), rgba(0, 208, 156, .04));
  margin-bottom: 18px; overflow: hidden;
}
.notice-bar__item { display: flex; gap: 9px; padding: 10px 14px; font-size: 11.5px; line-height: 1.65; color: var(--ink-2); border-right: 1px solid rgba(0, 208, 156, .14); }
.notice-bar__item:last-child { border-right: 0; }
.notice-bar__tag { flex: none; color: var(--teal); font-family: var(--serif); }

.year-grid { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 18px; align-items: start; }
.status-panel { position: sticky; top: 80px; display: grid; gap: 9px; }
.status-card {
  padding: 13px 14px; border-radius: 11px;
  border: 1px solid rgba(155, 185, 215, .24);
  background: linear-gradient(165deg, rgba(44, 56, 74, .9), rgba(31, 41, 55, .95));
  box-shadow: 0 12px 30px -26px #000;
}
.status-card--net { border-color: rgba(0, 208, 156, .34); background: linear-gradient(165deg, rgba(26, 62, 60, .92), rgba(31, 41, 55, .96)); }
.status-card__label {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 10px; letter-spacing: .14em; color: var(--faint); text-transform: uppercase;
  margin-bottom: 8px;
}
.status-card__label em { font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; color: rgba(130, 150, 175, .55); }
.status-net { display: block; font-family: var(--mono); font-size: 32px; line-height: 1.05; color: var(--teal); letter-spacing: -.02em; }
.status-split { display: flex; gap: 14px; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.status-tc { margin-top: 7px; font-size: 10.5px; color: var(--faint); }
.status-tc b { font-family: var(--mono); color: var(--ink-2); font-weight: 500; margin-left: 4px; }
.status-fire { margin-top: 10px; }
.status-fire__head { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-bottom: 4px; }
.status-fire__head b { color: var(--ink-2); font-family: var(--mono); }
.status-fire__track { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.status-fire__track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00d09c, #72b8ff); }

.immigration__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.immigration__head b { font-size: 12px; color: var(--ink); font-weight: 600; }
.immigration__head span { font-size: 9.5px; color: var(--faint); text-align: right; }
.imm-track { display: flex; gap: 3px; margin-top: 8px; }
.imm-dot {
  flex: 1; text-align: center; padding: 3px 0; border-radius: 4px;
  font-family: var(--mono); font-size: 8.5px; color: var(--faint);
  background: rgba(255, 255, 255, .04); border: 1px solid transparent;
}
.imm-dot.is-done { color: var(--teal); background: rgba(0, 208, 156, .12); }
.imm-dot.is-now { color: #051b15; background: var(--teal); border-color: rgba(0, 230, 174, .6); font-weight: 700; }

.attr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.attr span { display: block; font-size: 9px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.attr b { display: block; font-family: var(--mono); font-size: 19px; color: var(--ink); line-height: 1.2; }
.attr__bar { height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 4px; }
.attr__bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.meta-grid span { display: block; font-size: 9px; color: var(--faint); letter-spacing: .08em; }
.meta-grid b { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 500; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixed-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.status-foot { display: flex; justify-content: space-between; padding: 2px 4px; font-size: 9.5px; color: var(--faint); font-family: var(--mono); }

.action-panel {
  border-radius: 14px; border: 1px solid rgba(155, 185, 215, .24);
  background: linear-gradient(170deg, rgba(40, 52, 69, .94), rgba(30, 40, 53, .96));
  padding: 22px 22px 18px;
}
.action-panel__head { margin-bottom: 14px; }
.action-panel__head h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 4px 0 6px; }
.action-panel__head > p:last-child { color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.action-list { display: grid; gap: 7px; }
.action-card {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 11px 14px; border-radius: 9px; text-align: left;
  border: 1px solid rgba(155, 185, 215, .22);
  background: rgba(255, 255, 255, .05); color: var(--ink);
  transition: border-color .18s, background .18s, transform .18s;
  animation: actionIn .35s both;
}
@keyframes actionIn { from { opacity: 0; transform: translateY(6px); } }
.action-card:hover:not(:disabled) { border-color: rgba(212, 163, 92, .72); background: rgba(212, 163, 92, .12); transform: translateX(2px); }
.action-card.is-locked { opacity: .55; cursor: not-allowed; }
.action-card__no { flex: none; width: 20px; font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.action-card__body { flex: 1; min-width: 0; }
.action-card__title { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.action-card__title em { font-style: normal; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--faint); }
.action-card__desc { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); line-height: 1.55; }
.action-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.mini-tag {
  display: inline-flex; padding: 1px 6px; border-radius: 3px;
  border: 1px solid rgba(130, 150, 175, .2); font-size: 9px; color: var(--faint);
}
.mini-tag--cost { border-color: rgba(212, 163, 92, .3); color: var(--amber); background: rgba(212, 163, 92, .06); }
.mini-tag--bad { border-color: rgba(255, 77, 109, .32); color: var(--rose); background: rgba(255, 77, 109, .06); }
.action-card__go { flex: none; font-family: var(--mono); font-size: 15px; color: var(--faint); transition: color .18s; }
.action-card:hover:not(:disabled) .action-card__go { color: var(--amber); }

.birth-screen {
  max-width: 620px; margin: 8vh auto 0; text-align: center; padding: 46px 34px;
  border-radius: 18px; border: 1px solid rgba(0, 208, 156, .34);
  background: linear-gradient(165deg, rgba(0, 208, 156, .1), rgba(34, 45, 60, .96));
  box-shadow: var(--shadow-3);
}
.birth-screen h1 { font-size: clamp(30px, 5vw, 46px); margin: 12px 0 14px; }
.birth-lede { color: var(--muted); font-size: 13.5px; line-height: 1.9; margin-bottom: 26px; }

/* ============================================================
   年度结算（参考图 1）
   ============================================================ */
.settle { max-width: 720px; margin: 0 auto; display: grid; gap: 11px; }
.settle-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 2px 2px 8px; }
.settle-head h1 { font-family: var(--sans); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 4px 0 3px; }
.settle-sub { font-size: 11.5px; color: var(--muted); }

.review-card {
  position: relative; padding: 17px 18px 15px; border-radius: 11px;
  border: 1px solid rgba(114, 184, 255, .38);
  background: linear-gradient(160deg, rgba(114, 184, 255, .12), rgba(36, 48, 64, .96));
}
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-badge {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; color: #06121f;
  background: linear-gradient(135deg, #9fd2ff, #72b8ff);
  box-shadow: 0 0 20px -4px rgba(114, 184, 255, .7);
}
.review-card h2 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 9px 0 2px; }
.review-card.is-good h2 { color: #00e6ae; }
.review-card.is-mid h2 { color: #9fd2ff; }
.review-card.is-bad h2 { color: var(--rose); }
.review-card p { font-size: 11px; color: var(--muted); }
.review-score { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 9.5px; color: var(--faint); }
.review-score b { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.review-score i { flex: 1; height: 3px; border-radius: 99px; background: linear-gradient(90deg, #72b8ff, #00d09c); box-shadow: 0 0 10px -2px rgba(114, 184, 255, .6); }

.feedback-card {
  padding: 14px 17px; border-radius: 11px;
  border: 1px solid rgba(212, 163, 92, .42);
  background: linear-gradient(160deg, rgba(212, 163, 92, .13), rgba(42, 44, 48, .95));
}
.feedback-card__head { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .14em; color: var(--amber); text-transform: uppercase; }
.feedback-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 163, 92, .16); font-size: 9px; }
.feedback-card p { margin-top: 7px; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }

.finance-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.finance-card { padding: 15px 17px; border-radius: 11px; background: rgba(37, 48, 63, .96); }
.finance-card span { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--faint); }
.finance-card strong { display: block; font-family: var(--mono); font-size: 27px; line-height: 1.2; margin: 5px 0 1px; letter-spacing: -.02em; }
.finance-card small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.finance-card--net { border: 1px solid rgba(0, 208, 156, .42); background: linear-gradient(160deg, rgba(0, 208, 156, .13), rgba(37, 48, 63, .97)); }
.finance-card--net strong { color: var(--teal); }
.finance-card--invest { border: 1px solid rgba(138, 108, 255, .42); background: linear-gradient(160deg, rgba(138, 108, 255, .13), rgba(37, 48, 63, .97)); }
.finance-card--invest strong { color: #b6a7ff; }

.ledger {
  padding: 6px 17px; border-radius: 11px;
  border: 1px solid rgba(155, 185, 215, .24); background: rgba(33, 43, 57, .95);
}
.ledger li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(130, 150, 175, .09); font-size: 11.5px; color: var(--ink-2); }
.ledger li:last-child { border-bottom: 0; }
.ledger b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; }
.ledger .pos { color: var(--teal); }
.ledger .neg { color: var(--rose); }
.ledger__total { margin-top: 3px; padding-top: 11px; border-top: 1px solid rgba(130, 150, 175, .18) !important; font-weight: 600; }
.ledger__total b { font-size: 13px; }
.ledger__note { display: block !important; padding: 12px 0 !important; border-bottom: 0 !important; color: var(--faint) !important; font-size: 10.5px !important; }

.settle-visa {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 15px; border-radius: 9px;
  border: 1px solid rgba(155, 185, 215, .28); background: rgba(33, 43, 57, .92);
  font-size: 10.5px; color: var(--faint);
}
.settle-visa b { font-family: var(--mono); font-size: 11px; color: var(--ink-2); font-weight: 500; }
.settle .btn--block { margin-top: 2px; }

@media (max-width: 1100px) {
  .year-grid { grid-template-columns: 1fr; }
  .status-panel { position: static; grid-template-columns: 1fr 1fr; }
  .status-card--net { grid-column: 1 / -1; }
  .status-foot { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .year-head { flex-direction: column; align-items: flex-start; }
  .year-head__meta { justify-content: flex-start; }
  .notice-bar { grid-template-columns: 1fr; }
  .notice-bar__item { border-right: 0; border-bottom: 1px solid rgba(0, 208, 156, .12); }
  .status-panel { grid-template-columns: 1fr; }
  .status-card--net { grid-column: auto; }
  .action-panel { padding: 16px 14px; }
  .finance-cards { grid-template-columns: 1fr; }
  .settle { max-width: none; }
}
@media (max-width: 520px) {
  .action-card { padding: 10px 11px; gap: 9px; }
  .action-card__desc { font-size: 10.5px; }
  .status-net { font-size: 27px; }
  .review-card h2 { font-size: 16px; }
}

/* ============================================================
   可读性补强：把辅助文字与弱化态整体提亮一档
   ============================================================ */
.talent.is-locked { opacity: .62; }
.modal__backdrop { background: rgba(8, 13, 20, .58); }
.rail-badge { background: rgba(255, 255, 255, .055); }
.status-card__label,
.status-foot,
.year-sub,
.settle-sub,
.finance-card span,
.settle-visa,
.review-score,
.action-card__no,
.mini-tag,
.attr span,
.stat-card span,
.talent__tag,
.slot__meta,
.msg__who {
  color: var(--muted);
}
.status-card__label em,
.review-score span,
.finance-card small {
  color: var(--faint);
}
.ledger__note { color: var(--muted) !important; }
.action-card__desc { color: #d5e1ed; }
.talent__desc { color: #d5e1ed; }
.boot__hint { color: var(--muted); }

/* ---------- 主题切换按钮 ---------- */
.icon-moon { display: none; }
.icon-btn.is-light .icon-sun { display: none; }
.icon-btn.is-light .icon-moon { display: inline-block; }
.theme-toggle { display: flex; gap: 6px; flex: none; }
.theme-btn {
  padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--muted); font-size: 12px; transition: .18s;
}
.theme-btn:hover { color: var(--ink); border-color: var(--teal); }
.theme-btn.is-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 600; }

/* ============================================================
   浅色主题
   ============================================================ */
body.theme-light {
  --bg-0: #eef3f8;
  --bg-1: #e7eef6;
  --bg-2: #dce7f2;
  --glass: rgba(255, 255, 255, .86);
  --glass-2: rgba(255, 255, 255, .95);
  --glass-3: rgba(255, 255, 255, .78);
  --ink: #16202e;
  --ink-2: #33455a;
  --muted: #5a6f85;
  --faint: #72869c;
  --line: rgba(30, 55, 85, .14);
  --line-strong: rgba(30, 55, 85, .24);
  --teal: #009e7c;
  --teal-soft: rgba(0, 158, 124, .1);
  --amber: #a9762c;
  --amber-soft: rgba(169, 118, 44, .1);
  --rose: #d33a56;
  --rose-soft: rgba(211, 58, 86, .1);
  --violet: #6b4fd8;
  --violet-soft: rgba(107, 79, 216, .1);
  --blue: #2f78c4;
  --green: #009e7c;
  --red: #d33a56;
  --shadow-1: 0 2px 8px rgba(30, 60, 90, .08);
  --shadow-2: 0 18px 40px -20px rgba(30, 60, 90, .25);
  --shadow-3: 0 28px 60px -28px rgba(30, 60, 90, .28);
}

body.theme-light .bg__glow {
  background:
    radial-gradient(520px 320px at 50% 34%, rgba(0, 158, 124, .09), transparent 70%),
    radial-gradient(420px 280px at 76% 22%, rgba(169, 118, 44, .08), transparent 72%);
}
body.theme-light .bg__grain { opacity: .018; }

body.theme-light .topbar { background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8)); }
body.theme-light .dock {
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(248, 251, 255, .95));
  box-shadow: 0 18px 40px -20px rgba(30, 60, 90, .28), inset 0 1px 0 #fff;
}
body.theme-light .dock__btn { color: var(--muted); }
body.theme-light .dock__btn:hover { color: var(--ink); background: rgba(0, 158, 124, .08); }
body.theme-light .dock__btn.is-active { color: var(--teal); background: var(--teal-soft); }
body.theme-light .dock__label { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
body.theme-light .brand__text em { color: var(--faint); }
body.theme-light .icon-btn { background: #fff; border-color: var(--line); color: var(--ink-2); }
body.theme-light .icon-btn:hover { background: #f4f8fc; border-color: var(--line-strong); }

body.theme-light .btn { background: rgba(20, 45, 70, .04); border-color: var(--line-strong); color: var(--ink); }
body.theme-light .btn:hover:not(:disabled) { background: rgba(20, 45, 70, .08); border-color: rgba(30, 55, 85, .34); }
body.theme-light .btn--ghost { background: rgba(20, 45, 70, .02); }
body.theme-light .btn--primary { background: linear-gradient(135deg, #00c79b, #00a882); border-color: rgba(0, 158, 124, .5); color: #041b14; box-shadow: 0 12px 26px -14px rgba(0, 158, 124, .55); }
body.theme-light .btn--primary:hover:not(:disabled) { background: linear-gradient(135deg, #12d9ab, #00b98f); }

body.theme-light .chip,
body.theme-light .tag-pill { background: #fff; }
body.theme-light .chip--age { background: var(--teal-soft); }
body.theme-light .chip--visa { background: var(--amber-soft); }

body.theme-light .boot__card { background: linear-gradient(160deg, #ffffff, #f4f8fc); }
body.theme-light .boot__copy h1 { text-shadow: none; }
body.theme-light .boot__copy h1 .grad {
  background: linear-gradient(100deg, #0d3f35 0%, #007a5e 42%, #009e7c 68%, #2f78c4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.theme-light .boot__lede { color: var(--ink-2); }
body.theme-light .boot__card::after { opacity: .45; }

body.theme-light .slot { background: rgba(255, 255, 255, .72); }
body.theme-light .talent { background: linear-gradient(165deg, #ffffff, #f7fafd); }
body.theme-light .talent:hover { box-shadow: 0 16px 32px -20px rgba(30, 60, 90, .3); }
body.theme-light .talent.is-picked { background: #fff; }
body.theme-light .talent__desc { color: #53677d; }

body.theme-light .alloc-row { background: rgba(255, 255, 255, .82); }
body.theme-light .step-btn { background: #fff; }
body.theme-light .step-btn:hover:not(:disabled) { background: #f2f8fd; }
body.theme-light .alloc__budget { background: linear-gradient(160deg, rgba(169, 118, 44, .1), rgba(169, 118, 44, .03)); }

body.theme-light .msg__avatar { background: #fff; }
body.theme-light .msg__bubble { background: #fff; color: var(--ink-2); }
body.theme-light .msg--you .msg__bubble {
  background: linear-gradient(160deg, rgba(0, 158, 124, .13), rgba(0, 158, 124, .05));
  border-color: rgba(0, 158, 124, .3); color: #0b3b32;
}
body.theme-light .choice { background: #fff; color: var(--ink-2); }
body.theme-light .choice:hover { background: rgba(0, 158, 124, .08); color: var(--ink); }
body.theme-light .view-foot { background: linear-gradient(180deg, rgba(238, 243, 248, 0), rgba(238, 243, 248, .95) 45%); }
body.theme-light .toast { background: #fff; color: var(--ink); }
body.theme-light .modal__panel { background: #fff; }
body.theme-light .modal__backdrop { background: rgba(28, 45, 65, .35); }

body.theme-light .sum-hero { background: radial-gradient(600px 260px at 12% 0%, color-mix(in srgb, var(--rank) 10%, transparent), transparent 65%), linear-gradient(160deg, #ffffff, #f3f8fd); }
body.theme-light .ach-chip { background: color-mix(in srgb, var(--tier) 7%, #fff); }
body.theme-light .inherit-card { background: #fff; }
body.theme-light .log-list li { border-bottom-color: rgba(30, 55, 85, .08); }
body.theme-light .stat-card { background: #fff; }
body.theme-light .ach-item { background: #fff; }
body.theme-light .ending-item { background: #fff; }
body.theme-light .ending-item.is-got { background: #fffaf0; }
body.theme-light .recent-events li { border-bottom-color: var(--line); }
body.theme-light .select { background-color: #fff; color: var(--ink); border-color: var(--line-strong); }
body.theme-light .setting--danger { background: linear-gradient(160deg, rgba(211, 58, 86, .06), #fff); }

body.theme-light .status-card { background: linear-gradient(165deg, #ffffff, #f4f9fd); border-color: var(--line); }
body.theme-light .status-card--net { background: linear-gradient(165deg, rgba(0, 158, 124, .1), #f6fbfa); border-color: rgba(0, 158, 124, .32); }
body.theme-light .action-panel { background: linear-gradient(170deg, #ffffff, #f5f9fd); border-color: var(--line); }
body.theme-light .action-card { background: #fff; border-color: var(--line); }
body.theme-light .action-card:hover:not(:disabled) { background: rgba(169, 118, 44, .08); border-color: rgba(169, 118, 44, .5); }
body.theme-light .action-card__desc { color: #53677d; }
body.theme-light .notice-bar { background: linear-gradient(180deg, rgba(0, 158, 124, .09), rgba(0, 158, 124, .03)); }
body.theme-light .imm-dot { background: rgba(15, 35, 60, .06); }
body.theme-light .birth-screen { background: linear-gradient(165deg, rgba(0, 158, 124, .08), #ffffff); border-color: rgba(0, 158, 124, .3); }

body.theme-light .review-card { background: linear-gradient(160deg, rgba(47, 120, 196, .1), #ffffff); border-color: rgba(47, 120, 196, .32); }
body.theme-light .review-card.is-good h2 { color: #007a5e; }
body.theme-light .review-card.is-mid h2 { color: #1f5e99; }
body.theme-light .review-card.is-bad h2 { color: #c22d48; }
body.theme-light .feedback-card { background: linear-gradient(160deg, rgba(169, 118, 44, .1), #fffaf2); border-color: rgba(169, 118, 44, .36); }
body.theme-light .finance-card { background: #fff; }
body.theme-light .finance-card--net { background: linear-gradient(160deg, rgba(0, 158, 124, .1), #f6fbfa); }
body.theme-light .finance-card--invest { background: linear-gradient(160deg, rgba(107, 79, 216, .09), #f8f6ff); }
body.theme-light .finance-card--invest strong { color: #6b4fd8; }
body.theme-light .ledger { background: #fff; border-color: var(--line); }
body.theme-light .ledger li { border-bottom-color: rgba(30, 55, 85, .08); }
body.theme-light .settle-visa { background: #fff; border-color: var(--line); }
body.theme-light .review-badge { color: #06121f; }

body.theme-light .stat-line__track,
body.theme-light .alloc-row__bar,
body.theme-light .attr__bar,
body.theme-light .status-fire__track,
body.theme-light .sum-stat__track,
body.theme-light .tag-row__track,
body.theme-light .review-score i,
body.theme-light .stream::-webkit-scrollbar-thumb {
  background-color: rgba(15, 35, 60, .09);
}
body.theme-light .review-score i { background: linear-gradient(90deg, #2f78c4, #009e7c); }
body.theme-light .log-list,
body.theme-light .stream { scrollbar-color: rgba(30, 60, 90, .25) transparent; }
body.theme-light .skip-link { color: #041b14; }
body.theme-light .theme-btn { background: #fff; }
body.theme-light .toast--gold { color: #8a5a12; border-color: rgba(169, 118, 44, .45); }
body.theme-light .toast--bad { color: #b02a42; border-color: rgba(211, 58, 86, .45); }
body.theme-light .notice { color: #7a5317; }
body.theme-light .notice--teal { color: #085a49; }
body.theme-light .sum-rank { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }

/* ============================================================
   字号整体提升（按参考图的信息密度重新配比）
   ============================================================ */
body { font-size: 16px; line-height: 1.75; }

.brand__text strong { font-size: 17px; }
.brand__text em { font-size: 10px; }
.chip { font-size: 12.5px; }
.icon-btn svg { width: 18px; height: 18px; }
.dock__label { font-size: 12.5px; }
.btn { font-size: 14.5px; }
.btn--sm { font-size: 13px; }
.btn--lg { font-size: 15.5px; }

.boot__lede { font-size: 16.5px; }
.boot__card-title h2 { font-size: 27px; }
.boot__card-title p { font-size: 11px; }
.boot__facts li { font-size: 13.5px; }
.fact__k { font-size: 12px; }
.fact__v { font-size: 12.5px; }
.boot__ticker { font-size: 15px; }
.boot__hint { font-size: 12.5px; }
.boot__stats dt { font-size: 11.5px; }
.boot__stats dd { font-size: 21px; }
.boot__stats dd small { font-size: 12px; }

.eyebrow { font-size: 11.5px; }
.view-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.view-head__lede { font-size: 15.5px; }
.foot-note { font-size: 13.5px; }

.slot__name { font-size: 16px; }
.slot__meta { font-size: 11.5px; }
.slot__empty { font-size: 13.5px; }
.talent__rar { font-size: 10px; }
.talent__name { font-size: 18px; }
.talent__desc { font-size: 13px; }
.talent__tag { font-size: 10.5px; }

.alloc-row__name { font-size: 19px; }
.alloc-row__name small { font-size: 10px; }
.alloc-row__desc { font-size: 12.5px; }
.alloc-row__val { font-size: 22px; }
.alloc__budget span { font-size: 12px; }
.alloc__budget strong { font-size: 42px; }
.alloc__budget strong small { font-size: 14px; }
.alloc__preview { font-size: 13px; }
.alloc__tip { font-size: 12.5px; }

.rail-card h3 { font-size: 10.5px; }
.rail-id__age { font-size: 40px; }
.rail-id__age small { font-size: 12px; }
.rail-id__meta { font-size: 12.5px; }
.stat-line__head { font-size: 13px; }
.stat-line__head b { font-size: 13.5px; }
.rail-kv { font-size: 13px; }
.rail-kv dt { font-size: 12px; }
.rail-kv dd { font-size: 13px; }
.rail-badge { font-size: 12.5px; }
.stream-head__year strong { font-size: 26px; }
.stream-head__year span { font-size: 16px; }
.msg__who { font-size: 11px; }
.msg__bubble { font-size: 15.5px; }
.fx { font-size: 11.5px; }
.sys-line { font-size: 11.5px; }
.choice__t { font-size: 14.5px; }
.choice__t small { font-size: 12.5px; }
.advance__hint { font-size: 13px; }

.year-head h1 { font-size: clamp(30px, 3.8vw, 44px); }
.year-sub { font-size: 11px; }
.tag-pill { font-size: 11.5px; }
.notice-bar__item { font-size: 12.5px; }
.status-card__label { font-size: 11.5px; }
.status-card__label em { font-size: 9.5px; }
.status-net { font-size: 36px; }
.status-split { font-size: 11.5px; }
.status-tc { font-size: 11.5px; }
.status-fire__head { font-size: 11px; }
.immigration__head b { font-size: 13.5px; }
.immigration__head span { font-size: 10.5px; }
.imm-dot { font-size: 9.5px; }
.attr span { font-size: 10px; }
.attr b { font-size: 21px; }
.meta-grid span { font-size: 10px; }
.meta-grid b { font-size: 12.5px; }
.status-foot { font-size: 10.5px; }
.action-panel__head h2 { font-size: 23px; }
.action-panel__head > p:last-child { font-size: 13px; }
.action-card__no { font-size: 10.5px; }
.action-card__title { font-size: 15.5px; }
.action-card__title em { font-size: 9px; }
.action-card__desc { font-size: 12.5px; }
.action-card__tags { margin-top: 7px; }
.mini-tag { font-size: 10px; }
.action-card__go { font-size: 17px; }
.birth-screen h1 { font-size: clamp(34px, 5vw, 48px); }
.birth-lede { font-size: 15px; }

.settle-head h1 { font-size: clamp(28px, 3.6vw, 38px); }
.settle-sub { font-size: 13px; }
.review-card h2 { font-size: 21px; }
.review-card p { font-size: 12.5px; }
.review-score { font-size: 10.5px; }
.review-score b { font-size: 13px; }
.review-badge { font-size: 11px; }
.feedback-card__head { font-size: 11px; }
.feedback-card p { font-size: 14px; }
.finance-card span { font-size: 11px; }
.finance-card strong { font-size: 30px; }
.finance-card small { font-size: 11px; }
.ledger li { font-size: 13.5px; }
.ledger b { font-size: 13.5px; }
.ledger__total b { font-size: 15px; }
.ledger__note { font-size: 11.5px !important; }
.settle-visa { font-size: 12px; }
.settle-visa b { font-size: 12.5px; }

.sum-hero__body h1 { font-size: clamp(32px, 4.4vw, 48px); }
.sum-line { font-size: 16.5px; }
.sum-desc { font-size: 14px; }
.sum-score strong { font-size: 44px; }
.sum-score span { font-size: 11.5px; }
.sum-score small { font-size: 11px; }
.kv-grid dt { font-size: 12.5px; }
.kv-grid dd { font-size: 14px; }
.sum-stat__head { font-size: 13px; }
.sum-stat__head b { font-size: 14px; }
.trait { font-size: 12px; }
.ach-chip b { font-size: 13.5px; }
.ach-chip small { font-size: 11.5px; }
.inherit-card strong { font-size: 17px; }
.inherit-card small { font-size: 12px; }
.log-list li { font-size: 13px; }
.log-age { font-size: 11px; }

.stat-card span { font-size: 11.5px; }
.stat-card strong { font-size: 22px; }
.ach-item__body strong { font-size: 13.5px; }
.ach-item__body p { font-size: 11.5px; }
.ach-item__state { font-size: 10.5px; }
.tag-row__head { font-size: 13px; }
.tag-row__head b { font-size: 12px; }
.ending-item strong { font-size: 13.5px; }
.ending-item small { font-size: 11.5px; }
.recent-events li { font-size: 13px; }
.recent-age { font-size: 11px; }
.setting h3 { font-size: 17px; }
.setting p { font-size: 13px; }
.select { font-size: 14px; }
.theme-btn { font-size: 13px; }

@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .status-net { font-size: 32px; }
  .action-card__title { font-size: 15px; }
  .action-card__desc { font-size: 12px; }
  .ledger li { font-size: 13px; }
  .finance-card strong { font-size: 26px; }
  .sum-hero__body h1 { font-size: clamp(30px, 7vw, 40px); }
}
@media (max-height: 800px) and (min-width: 1101px) {
  .status-panel { position: static; }
}

/* ============================================================
   统一排版系统：一套无衬线字体、五级字号、统一数字字形
   页面标题 28–42 / 卡片标题 17–24 / 正文 13.5–15.5 / 辅助 12 / 微标签 10.5–11
   ============================================================ */
:root {
  --sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: var(--sans);
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  letter-spacing: 0;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.24;
}

/* ---- 页面标题 ---- */
.boot__copy h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.12; }
.view-head h2 { font-size: clamp(28px, 3.2vw, 36px); }
.year-head h1 { font-size: clamp(28px, 3.2vw, 36px); }
.settle-head h1 { font-size: clamp(26px, 3vw, 32px); }
.sum-hero__body h1 { font-size: clamp(30px, 4vw, 42px); }
.birth-screen h1, .empty-state h2 { font-size: clamp(28px, 4vw, 38px); }

/* ---- 卡片标题 ---- */
.panel h3, .codex-block__head h3, .setting h3 { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.action-panel__head h2 { font-size: 21px; font-weight: 700; }
.review-card h2 { font-size: 19px; font-weight: 700; }
.boot__card-title h2 { font-size: 24px; font-weight: 700; }
.action-card__title { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.talent__name { font-size: 17px; font-weight: 600; letter-spacing: 0; }
.inherit-card strong { font-size: 16px; font-weight: 600; }

/* ---- 正文 ---- */
.boot__lede, .view-head__lede { font-size: 15.5px; line-height: 1.8; }
.sum-line { font-size: 15.5px; line-height: 1.7; }
.sum-desc, .feedback-card p, .action-card__desc, .talent__desc, .setting p,
.review-card p, .alloc__preview, .alloc__tip, .boot__facts li, .birth-lede,
.notice-bar__item, .stat-line__head, .rail-id__meta, .immigration__head b,
.action-panel__head > p:last-child { font-size: 13.5px; line-height: 1.65; }
.msg__bubble { font-family: var(--sans); font-size: 14.5px; line-height: 1.78; }
.choice__t { font-size: 14px; line-height: 1.6; }
.ledger li { font-size: 13.5px; }
.birth-lede { font-size: 14.5px; }
.boot__ticker { font-size: 14.5px; }

/* ---- 辅助文字 ---- */
.eyebrow, .chip, .tag-pill, .status-card__label, .status-split, .status-tc,
.status-fire__head, .settle-visa, .finance-card span, .finance-card small,
.msg__who, .log-age, .recent-age, .stat-card span, .review-score,
.rail-badge, .foot-note, .advance__hint, .alloc__budget span { font-size: 12px; }
.status-card__label em, .brand__text em, .year-sub, .boot__card-title p,
.settle-sub { font-size: 10px; letter-spacing: .13em; }
.mini-tag, .imm-dot, .action-card__no, .action-card__title em,
.alloc-row__name small, .slot__meta, .talent__tag, .stat-card small { font-size: 10.5px; }
.status-foot, .slot__num, .rail-card h3, .sys-line, .fx, .review-badge,
.ach-item__state, .ending-item small, .ach-chip small, .sum-score small { font-size: 11px; }

/* ---- 数值与数字字形 ---- */
.status-net, .finance-card strong, .sum-score strong, .ledger b, .kv-grid dd,
.rail-id__age, .alloc-row__val, .alloc__budget strong, .status-split,
.finance-card small, .review-score b, .sum-stat__head b, .stat-card strong,
.stream-head__year strong { font-variant-numeric: tabular-nums; }
.status-net { font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.finance-card strong { font-size: 28px; font-weight: 600; }
.sum-score strong { font-size: 40px; font-weight: 600; }
.rail-id__age { font-size: 38px; font-weight: 600; }
.alloc__budget strong { font-size: 40px; }
.alloc-row__val { font-size: 21px; }
.attr b { font-size: 20px; }
.stat-card strong { font-size: 21px; }
.review-score b { font-size: 12.5px; }

/* ---- 其余尺寸收敛 ---- */
.boot__stats dt { font-size: 11px; }
.boot__stats dd { font-size: 20px; }
.boot__stats dd small { font-size: 11.5px; }
.boot__hint { font-size: 12px; }
.fact__k { font-size: 11.5px; }
.fact__v { font-size: 12px; }
.talent__rar { font-size: 10px; }
.slot__name { font-size: 15.5px; }
.slot__empty { font-size: 13px; }
.alloc-row__name { font-size: 18px; }
.alloc-row__desc { font-size: 12.5px; }
.immigration__head span { font-size: 11px; }
.attr span { font-size: 11px; }
.meta-grid span { font-size: 11px; }
.meta-grid b { font-size: 12.5px; }
.status-card__label { font-size: 12px; }
.status-card__label em { font-size: 10px; }
.status-net { font-size: 34px; }
.status-foot { font-size: 11px; }
.action-card__desc { font-size: 13px; }
.action-card__go { font-size: 16px; }
.review-card h2 { font-size: 19px; }
.review-card p { font-size: 13px; }
.feedback-card__head { font-size: 11px; }
.feedback-card p { font-size: 14px; }
.finance-card span { font-size: 12px; }
.finance-card small { font-size: 12px; }
.ledger b { font-size: 13.5px; }
.ledger__total b { font-size: 14.5px; }
.ledger__note { font-size: 12px !important; }
.settle-visa b { font-size: 12px; }
.kv-grid dt { font-size: 12px; }
.kv-grid dd { font-size: 13.5px; }
.sum-stat__head { font-size: 12.5px; }
.sum-stat__head b { font-size: 13px; }
.trait { font-size: 11.5px; }
.ach-chip b { font-size: 13px; }
.ach-chip small { font-size: 11px; }
.inherit-card small { font-size: 11.5px; }
.log-list li { font-size: 12.5px; }
.ach-item__body strong { font-size: 13px; }
.ach-item__body p { font-size: 12px; }
.tag-row__head { font-size: 12.5px; }
.tag-row__head b { font-size: 11.5px; }
.ending-item strong { font-size: 13px; }
.recent-events li { font-size: 12.5px; }
.select { font-size: 13.5px; }
.theme-btn { font-size: 12.5px; }
.btn { font-size: 14px; }
.btn--lg { font-size: 15px; }
.btn--sm { font-size: 12.5px; }
.dock__label { font-size: 12px; }
.brand__text strong { font-size: 16px; }

@media (max-width: 820px) {
  body { font-size: 15px; }
  .status-net { font-size: 30px; }
  .finance-card strong { font-size: 25px; }
  .sum-hero__body h1 { font-size: clamp(28px, 7vw, 36px); }
  .action-card__desc, .ledger li { font-size: 13px; }
}

/* ============================================================
   字号再放大一档（保持五级阶梯，不改变层级关系）
   ============================================================ */
body { font-size: 16.5px; line-height: 1.74; }
.boot__copy h1 { font-size: clamp(44px, 6vw, 68px); }
.view-head h2, .year-head h1 { font-size: clamp(30px, 3.4vw, 38px); }
.settle-head h1 { font-size: clamp(28px, 3.2vw, 34px); }
.sum-hero__body h1 { font-size: clamp(32px, 4.2vw, 46px); }
.birth-screen h1, .empty-state h2 { font-size: clamp(30px, 4.2vw, 40px); }

.panel h3, .codex-block__head h3, .setting h3 { font-size: 18px; }
.action-panel__head h2 { font-size: 23px; }
.review-card h2 { font-size: 20px; }
.boot__card-title h2 { font-size: 26px; }
.action-card__title { font-size: 16px; }
.talent__name { font-size: 18px; }
.inherit-card strong { font-size: 17px; }

.boot__lede, .view-head__lede { font-size: 16.5px; }
.sum-line { font-size: 16.5px; }
.sum-desc, .feedback-card p, .action-card__desc, .talent__desc, .setting p,
.review-card p, .alloc__preview, .alloc__tip, .boot__facts li, .birth-lede,
.notice-bar__item, .stat-line__head, .rail-id__meta, .immigration__head b,
.action-panel__head > p:last-child { font-size: 14.5px; }
.msg__bubble { font-size: 15.5px; }
.choice__t { font-size: 15px; }
.ledger li, .ledger b { font-size: 14.5px; }
.ledger__total b { font-size: 15.5px; }
.boot__ticker { font-size: 15px; }

.eyebrow, .chip, .tag-pill, .status-card__label, .status-split, .status-tc,
.status-fire__head, .settle-visa, .finance-card span, .finance-card small,
.msg__who, .log-age, .recent-age, .stat-card span, .review-score,
.rail-badge, .foot-note, .advance__hint, .alloc__budget span { font-size: 13px; }
.status-card__label em, .brand__text em, .year-sub, .boot__card-title p,
.settle-sub { font-size: 11px; }
.mini-tag, .imm-dot, .action-card__no, .action-card__title em,
.alloc-row__name small, .slot__meta, .talent__tag, .stat-card small { font-size: 11.5px; }
.status-foot, .slot__num, .rail-card h3, .sys-line, .fx, .review-badge,
.ach-item__state, .ending-item small, .ach-chip small, .sum-score small { font-size: 12px; }

.status-net { font-size: 36px; }
.finance-card strong { font-size: 30px; }
.sum-score strong { font-size: 42px; }
.rail-id__age { font-size: 40px; }
.alloc__budget strong { font-size: 42px; }
.alloc-row__val { font-size: 22px; }
.attr b { font-size: 22px; }
.stat-card strong { font-size: 23px; }
.review-score b { font-size: 13.5px; }

.boot__stats dt { font-size: 12px; }
.boot__stats dd { font-size: 21px; }
.boot__stats dd small { font-size: 12.5px; }
.boot__hint { font-size: 13px; }
.fact__k { font-size: 12.5px; }
.fact__v { font-size: 13px; }
.talent__rar { font-size: 11px; }
.slot__name { font-size: 17px; }
.slot__empty { font-size: 14px; }
.alloc-row__name { font-size: 19px; }
.alloc-row__desc { font-size: 13.5px; }
.immigration__head span { font-size: 12px; }
.attr span { font-size: 12px; }
.meta-grid span { font-size: 12px; }
.meta-grid b { font-size: 13.5px; }
.action-card__go { font-size: 17px; }
.feedback-card__head { font-size: 12px; }
.feedback-card p { font-size: 15px; }
.kv-grid dt { font-size: 13px; }
.kv-grid dd { font-size: 14.5px; }
.sum-stat__head { font-size: 13.5px; }
.sum-stat__head b { font-size: 14px; }
.trait { font-size: 12.5px; }
.ach-chip b { font-size: 14px; }
.ach-chip small { font-size: 12px; }
.inherit-card small { font-size: 12.5px; }
.log-list li { font-size: 13.5px; }
.ach-item__body strong { font-size: 14px; }
.ach-item__body p { font-size: 13px; }
.tag-row__head { font-size: 13.5px; }
.tag-row__head b { font-size: 12.5px; }
.ending-item strong { font-size: 14px; }
.recent-events li { font-size: 13.5px; }
.select { font-size: 14.5px; }
.theme-btn { font-size: 13.5px; }
.btn { font-size: 15px; }
.btn--lg { font-size: 16px; }
.btn--sm { font-size: 13.5px; }
.dock__label { font-size: 13px; }
.brand__text strong { font-size: 17px; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .status-net { font-size: 32px; }
  .finance-card strong { font-size: 27px; }
  .sum-hero__body h1 { font-size: clamp(30px, 7vw, 38px); }
  .action-card__desc, .ledger li { font-size: 14px; }
}

/* ===================== final pass: brand alignment + interactive backdrop ===================== */
.topbar { padding: 0; justify-content: center; }
.topbar__in {
  width: 100%; max-width: 1220px; margin: 0 auto;
  padding: 0 100px 0 28px;
  display: flex; align-items: center; gap: 18px;
}
.brand { align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; flex: none; display: grid; place-items: center; transform: translateY(-1px); }
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.08; }
.brand__text strong {
  font-family: var(--sans); font-size: 17px; font-weight: 700;
  letter-spacing: .04em; line-height: 1.15;
}
.brand__text em { margin-top: 3px; font-size: 10px; line-height: 1; letter-spacing: .18em; }

@media (max-width: 1080px) {
  .topbar__in { padding: 0 84px 0 20px; }
}
@media (max-width: 820px) {
  .topbar__in { padding: 0 16px; }
}

/* pointer-driven backdrop */
:root { --mx: 0; --my: 0; --px: 50vw; --py: 38vh; }

.bg__aurora {
  transform: translate3d(calc(var(--mx) * 28px), calc(var(--my) * 22px), 0);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.bg__grid--hot {
  background-image:
    radial-gradient(circle, rgba(0, 226, 168, .85) 1.5px, transparent 1.7px),
    radial-gradient(circle, rgba(114, 184, 255, .5) 1px, transparent 1.2px);
  background-size: 44px 44px, 44px 44px;
  background-position: 0 0, 22px 22px;
  opacity: 0;
  transition: opacity .4s ease;
  -webkit-mask-image: radial-gradient(circle 250px at var(--px) var(--py), rgba(0,0,0,.95), rgba(0,0,0,0) 72%);
  mask-image: radial-gradient(circle 250px at var(--px) var(--py), rgba(0,0,0,.95), rgba(0,0,0,0) 72%);
}
body.bg-live .bg__grid--hot { opacity: 1; }

.bg__spot {
  position: absolute; left: var(--px); top: var(--py);
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(126, 172, 255, .16), rgba(0, 208, 156, .07) 46%, transparent 68%);
  filter: blur(22px);
  transition: opacity .5s ease;
}
body.bg-live .bg__spot { opacity: 1; }
body.theme-light .bg__spot {
  background: radial-gradient(circle, rgba(58, 108, 214, .1), rgba(0, 150, 122, .05) 46%, transparent 68%);
}

.bg__ripple {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(0, 226, 168, .2);
  animation: bgRipple 1.4s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes bgRipple {
  0% { transform: scale(.8); opacity: .28; }
  70% { opacity: .08; }
  100% { transform: scale(14); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg__aurora { transform: none !important; transition: none; }
  .bg__grid--hot, .bg__spot, .bg__ripple { display: none !important; }
}