/* 《封神天命录》v2 —— 明快 Q 版国潮
 * 配色：米白纸底 / 朱砂橙 / 青碧 / 樱粉，圆角厚描边，柔和投影
 * 移动优先：320–480px 竖屏为主，桌面居中手机框
 */
:root {
  --paper: #FBF3E4;
  --paper2: #F6E9D2;
  --card: #FFFDF8;
  --card2: #FFF7EA;
  --line: #EADFCB;
  --line2: #DFCDB0;
  --ink: #4A3728;
  --ink2: #6B5642;
  --muted: #9A8570;
  --dim: #B9A48C;
  --red: #E4572E;
  --red-d: #C33F1C;
  --orange: #F2A03D;
  --gold: #D9A441;
  --jade: #3FA796;
  --sky: #5B8FF9;
  --pink: #F58BA8;
  --purple: #9B7EDE;
  --shadow: 0 2px 0 rgba(200,170,120,.35), 0 6px 16px rgba(160,120,60,.10);
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: "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%; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #FFF7E6 0%, transparent 55%),
    radial-gradient(90% 50% at 50% 110%, #F7E4C4 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; line-height: 1.5;
  display: flex; justify-content: center;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

#phone {
  position: relative;
  width: 100%; max-width: 480px;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 40% at 12% 4%, rgba(242,160,61,.10), transparent 60%),
    radial-gradient(60% 40% at 92% 12%, rgba(245,139,168,.10), transparent 60%),
    var(--paper);
  overflow: hidden;
}
@media (min-width: 560px) and (min-height: 680px) {
  body { align-items: center; padding: 18px; }
  #phone {
    height: min(920px, calc(100dvh - 36px));
    border: 3px solid #fff;
    border-radius: 28px;
    box-shadow: 0 0 0 1px var(--line2), 0 24px 60px rgba(150,110,60,.22);
  }
}

/* ── 载入 ── */
#boot {
  position: absolute; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(60% 45% at 50% 42%, #FFF9EC, var(--paper) 78%);
  transition: opacity .45s;
}
#boot.hide { opacity: 0; pointer-events: none; }
.boot-mark {
  width: 74px; height: 74px; border-radius: 50%;
  border: 3px solid #fff; background: linear-gradient(180deg, #FFD98A, #F2A03D);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 34px; color: #7B3A12;
  box-shadow: 0 6px 18px rgba(226,140,50,.35);
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.boot-title { font-family: var(--serif); font-size: 17px; letter-spacing: 6px; color: #8A5A22; margin-top: 6px; font-weight: 600; }
.boot-bar { width: 160px; height: 8px; background: #F0E0C6; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--red)); border-radius: 6px; animation: fill 1.1s ease-out forwards; }
@keyframes fill { to { width: 100%; } }
.boot-sub { font-size: 10.5px; color: var(--dim); letter-spacing: 2px; }

/* ── 顶栏 ── */
#topbar {
  flex: 0 0 auto; padding: 9px 12px 8px;
  padding-top: calc(9px + env(safe-area-inset-top));
  background: linear-gradient(180deg, #FFF9ED, rgba(255,249,237,.88));
  border-bottom: 2px solid #F1E3CA;
  position: relative; z-index: 2;
}
.tb-row { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  border: 2.5px solid #fff;
  background: linear-gradient(180deg, #FFE2B0, #F5B96A);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; color: #7B3A12;
  box-shadow: 0 2px 6px rgba(200,150,80,.3);
}
.who { flex: 1; min-width: 0; }
.who .nm { font-family: var(--serif); font-size: 14.5px; letter-spacing: 1px; color: #5A4026; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .lv { font-size: 10px; color: var(--muted); margin-top: 1px; }
.who .lv b { color: var(--red); font-weight: 600; }
.expbar { height: 5px; background: #F0E0C6; margin-top: 4px; border-radius: 4px; overflow: hidden; }
.expbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FFC46B, var(--red)); }

.icon-btn {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 12px;
  border: 2px solid #F0E0C6; background: #fff;
  color: #A98A63; font-size: 16px; display: grid; place-items: center;
  cursor: pointer; position: relative; box-shadow: 0 2px 0 rgba(200,170,120,.3);
}
.icon-btn:active { transform: translateY(1px); box-shadow: none; }
.icon-btn.off { color: #D8C9B4; }
.badge-dot {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--red); border: 2px solid #FFF9ED;
}

.coins { display: flex; gap: 6px; margin-top: 8px; }
.coin {
  flex: 1; display: flex; align-items: center; gap: 4px; min-width: 0;
  background: #fff; border: 2px solid #F0E0C6; border-radius: 10px;
  padding: 4px 7px; font-size: 11px; box-shadow: 0 2px 0 rgba(200,170,120,.22);
}
.coin .k { color: var(--dim); font-size: 9px; flex: 0 0 auto; }
.coin .v { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin.gold .v { color: #C98A22; }
.coin.jade .v { color: var(--jade); }
.coin.soul .v { color: var(--purple); }
.coin.stam .v { color: var(--red); }
.coin.stam { flex: 0 0 78px; }

/* ── 视图 ── */
#view { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#view::-webkit-scrollbar { width: 0; }
/* 换页过渡：只走极短的位移 + 轻描淡入，不再从全透明起，避免「先露底再出面」的闪白 */
#view.page-in { animation: pageIn .18s ease-out; }
@keyframes pageIn { from { opacity: .72; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.pad { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }

/* ── 导航 ── */
#nav {
  flex: 0 0 auto; display: flex; gap: 2px;
  background: #FFF9ED;
  border-top: 2px solid #F1E3CA;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  cursor: pointer; padding: 4px 0; min-height: 46px; justify-content: center;
  border-radius: 12px; transition: background .18s; position: relative;
}
.nav-item .gl {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; color: #B49B7E;
  transition: transform .18s;
}
.nav-item .tl { font-size: 9.5px; letter-spacing: 1px; color: var(--dim); }
.nav-item.on { background: #FFEFD6; }
.nav-item.on .gl { color: var(--red); transform: translateY(-1px) scale(1.08); }
.nav-item.on .tl { color: var(--red-d); font-weight: 600; }

/* ── 通用 ── */
.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 1.5px; color: #7A5430; font-weight: 600;
  margin: 16px 2px 9px;
}
.sec-title::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #EBDCC2, transparent); }
.sec-title .sub { font-family: var(--sans); font-size: 10px; letter-spacing: 0; color: var(--dim); font-weight: 400; white-space: nowrap; }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px; position: relative;
  box-shadow: var(--shadow);
}
.card.glow { border-color: #F3C98F; background: linear-gradient(180deg, #FFFDF8, #FFF6E6); }

.btn {
  border: 2px solid #F0D9B4; background: #fff; color: #8A6134;
  border-radius: 12px; padding: 9px 12px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .5px;
  cursor: pointer; min-height: 40px;
  /* 按钮在 flex 行里默认按内容宽，需要拉伸的地方用 .row.grow / .btn.block 覆盖 */
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 3px 0 #EBD9BC;
  transition: transform .08s, box-shadow .08s, background .15s;
  text-align: center;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #EBD9BC; }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn.primary {
  background: linear-gradient(180deg, #FF9A4D, var(--red));
  border-color: #D9552A; color: #fff; text-shadow: 0 1px 0 rgba(150,50,20,.35);
  box-shadow: 0 3px 0 #B8421D;
}
.btn.primary:active:not(:disabled) { box-shadow: 0 1px 0 #B8421D; }
.btn.ghost { background: transparent; border-color: #E6D5BB; color: var(--muted); box-shadow: none; }
.btn.sm { padding: 5px 10px; font-size: 11.5px; min-height: 32px; border-radius: 10px; box-shadow: 0 2px 0 #EBD9BC; }
.btn.block { width: 100%; }
.btn.on { background: #FFEFD6; border-color: var(--orange); color: var(--red-d); }

.row { display: flex; gap: 8px; }
.row.grow > * { flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1.5px 7px; border-radius: 8px; font-size: 9.5px;
  border: 1.5px solid currentColor; font-weight: 600;
}
.hint { font-size: 10.5px; color: var(--dim); line-height: 1.65; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; }
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.gold-t { color: #C98A22; }
.red-t { color: var(--red); }
.empty-hint { text-align: center; padding: 26px 10px; color: var(--dim); font-size: 11px; letter-spacing: 1px; }

.pbar { height: 8px; background: #F2E5CE; border-radius: 6px; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFC46B, var(--orange)); }

/* ── 头像 ── */
.pv {
  position: relative; overflow: hidden; border-radius: 10px;
  background: linear-gradient(180deg, #FFF4DE, #FBE6C4);
  display: block;
}
.pv img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.pv svg { width: 100%; height: 100%; display: block; }
.pv.breathe img, .pv.breathe svg { animation: breathe 3.4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ── 角色卡（带立绘） ── */
.rcard {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 0 rgba(200,170,120,.28);
  transition: transform .12s, border-color .16s;
}
.rcard:active { transform: translateY(1px); }
.rcard .rhead { height: 62px; position: relative; }
.rcard .rhead .pv { position: absolute; inset: 0; border-radius: 0; }
.rcard .rbody { padding: 5px 7px 6px; }
.rcard .rname { font-family: var(--serif); font-size: 12.5px; font-weight: 600; letter-spacing: .5px; color: #5A4026; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .rmeta { font-size: 9.5px; color: var(--muted); margin-top: 1px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.rcard .rp { font-size: 10px; color: #B08040; margin-top: 2px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rcard.sel { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,160,61,.25); }
.rcard .q-tag {
  position: absolute; top: 3px; left: 3px; z-index: 2;
  font-size: 8px; padding: 0 4px; border-radius: 6px; color: #fff; font-weight: 700;
}
.stars { color: var(--gold); font-size: 9px; letter-spacing: -1px; }

/* ── 东征 ── */
.mode-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mode-tab {
  flex: 1; text-align: center; padding: 8px 0; font-size: 12px; font-weight: 600;
  color: var(--muted); background: #fff; border: 2px solid #F0E0C6; border-radius: 12px;
  cursor: pointer; min-height: 40px; display: grid; place-items: center;
  box-shadow: 0 2px 0 rgba(200,170,120,.25); transition: all .15s;
}
.mode-tab.on { color: #fff; background: linear-gradient(180deg, #FFA95E, var(--orange)); border-color: #E08A2C; box-shadow: 0 2px 0 #C77B22; }

.chapter-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-radius: 14px; margin-bottom: 10px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(242,160,61,.22), transparent 60%),
    linear-gradient(180deg, #FFF6E4, #FFEBD0);
  border: 2px solid #F3D9B0;
  box-shadow: 0 3px 0 rgba(220,180,120,.25);
  position: relative; overflow: hidden;
}
.chapter-head::after {
  content: '☁'; position: absolute; right: 10px; top: -12px; font-size: 54px; color: rgba(255,255,255,.75); pointer-events: none;
}
.chapter-head .cn { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #8A4A18; }
.chapter-head .cs { font-size: 10px; color: #B5844A; margin-top: 2px; }
.chapter-head .cp { font-family: var(--serif); font-size: 12px; color: #B5844A; flex: 0 0 auto; }

.stage-strip { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scrollbar-width: none; }
.stage-strip::-webkit-scrollbar { height: 0; }
.snode {
  flex: 0 0 auto; width: 54px; height: 60px; border-radius: 12px;
  border: 2px solid #EEDCC0; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  cursor: pointer; position: relative; box-shadow: 0 2px 0 rgba(200,170,120,.25);
}
.snode .n { font-family: var(--serif); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.snode .t { font-size: 8.5px; color: var(--dim); }
.snode.done { background: linear-gradient(180deg, #EAF9F3, #D8F1E7); border-color: #8FD5C1; }
.snode.done .n { color: #2E8A78; }
.snode.cur { background: linear-gradient(180deg, #FFF0D2, #FFE0AF); border-color: var(--orange); }
.snode.cur .n { color: #A85A12; }
.snode.sel { outline: 3px solid rgba(228,87,46,.35); }
.snode.lock { opacity: .5; }
.snode.boss::after { content: '★'; position: absolute; top: 0; right: 4px; font-size: 8px; color: var(--gold); }

.enemy-row { display: flex; gap: 5px; margin-top: 9px; }
.eslot {
  flex: 1; min-width: 0; text-align: center; border-radius: 10px; overflow: hidden;
  border: 2px solid #F0E0C6; background: #FFFDF8;
}
.eslot .pv { height: 52px; border-radius: 0; }
.eslot .en { font-size: 10px; padding: 2px 1px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.eslot .el { font-size: 8px; color: var(--dim); padding-bottom: 2px; }

.fight-line { display: flex; align-items: center; gap: 8px; margin: 11px 0 2px; }
.fight-line .lbl { font-size: 9.5px; color: var(--dim); white-space: nowrap; font-weight: 600; }
.fight-line .bar { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #EEDCC0, transparent); }
.reward-line { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 10.5px; color: var(--muted); }
.reward-line b { color: #C98A22; font-weight: 700; }

/* ── 十绝阵 ── */
.arr-card {
  border: 2px solid var(--line); border-radius: 14px; padding: 11px;
  background: var(--card); margin-bottom: 9px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.arr-card::before {
  content: '阵'; position: absolute; right: -6px; bottom: -18px;
  font-family: var(--serif); font-size: 64px; color: rgba(228,87,46,.06); pointer-events: none;
}
.arr-card.cleared { border-color: #F3C98F; background: linear-gradient(180deg, #FFFDF8, #FFF5E4); }
.arr-card.locked { opacity: .62; }
.arr-card .an { font-family: var(--serif); font-size: 14px; font-weight: 700; color: #8A4A18; letter-spacing: 1px; }
.arr-card .ao { font-size: 9.5px; color: var(--dim); margin-left: 6px; }
.arr-card .ad { font-size: 11.5px; color: #7A614A; margin-top: 5px; line-height: 1.5; }
.arr-card .ah { font-size: 10px; color: var(--jade); margin-top: 3px; font-weight: 600; }

/* ── 点将 ── */
.banner {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 2px solid #F3D9B0; box-shadow: var(--shadow); background: #FFF6E4;
  text-align: center;
}
.banner img { width: 100%; display: block; }
.pity { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.pity .pbar { flex: 1; }

.pull-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pull-card {
  aspect-ratio: 3/4; border-radius: 10px; position: relative; overflow: hidden;
  border: 2px solid #EEDCC0; background: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: pop .42s cubic-bezier(.2,1.5,.5,1) both;
  box-shadow: 0 2px 0 rgba(200,170,120,.3);
}
@keyframes pop { from { opacity: 0; transform: scale(.5) rotate(-8deg); } to { opacity: 1; transform: none; } }
.pull-card .pv { position: absolute; inset: 0; border-radius: 0; }
.pull-card .pn {
  position: relative; z-index: 2; font-family: var(--serif); font-size: 10.5px; font-weight: 700;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(180deg, transparent, rgba(90,50,20,.72));
  padding: 10px 2px 3px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pull-card .pq { position: absolute; top: 2px; left: 2px; z-index: 2; font-size: 8px; padding: 0 4px; border-radius: 6px; color: #fff; font-weight: 700; }
.pull-card .pnew { position: absolute; top: 2px; right: 2px; z-index: 2; font-size: 7.5px; color: #fff; background: var(--jade); padding: 0 4px; border-radius: 6px; }
.pull-card.q-tian { border-color: #E8B44C; box-shadow: 0 0 0 2px rgba(217,164,65,.35), 0 0 18px rgba(217,164,65,.4); }
.pull-card.q-di { border-color: #A98FD6; }
.pull-card.q-ren { border-color: #CFD6DE; }

/* ── 编队 ── */
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.form-row-label { font-size: 10px; letter-spacing: 1px; color: var(--dim); margin: 7px 2px 5px; font-weight: 600; }
.slot-empty {
  min-height: 92px; border: 2px dashed #E6D2B2; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--dim); font-size: 10px; background: rgba(255,255,255,.55); cursor: pointer;
}
.slot-empty.on { border-color: var(--orange); color: var(--orange); background: #FFF4E2; }
.leadermark {
  position: absolute; top: 3px; left: 3px; z-index: 3;
  font-size: 8px; color: #fff; background: var(--red); border-radius: 6px; padding: 0 4px; font-weight: 700;
}

.bond-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 10px; border: 2px solid #F0E3CC; margin-bottom: 6px;
  background: #fff; box-shadow: 0 2px 0 rgba(200,170,120,.18);
}
.bond-item.on { border-color: #8FD5C1; background: #EEFBF6; }
.bond-item .bn { font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.bond-item.on .bn { color: #2E8A78; }
.bond-item .bd { font-size: 9.5px; color: var(--dim); margin-left: auto; text-align: right; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 养成详情 ── */
.hero {
  position: relative; height: 300px; border-radius: 16px; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(160,120,60,.18);
  background: linear-gradient(180deg, #FFF4DE, #FBE6C4);
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(255,250,240,.2) 60%, rgba(255,250,240,.96) 96%); }
.hero .info { position: absolute; left: 14px; right: 14px; bottom: 10px; }
.hero .hn { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 2px; color: #6B3A12; text-shadow: 0 2px 0 #fff; }
.hero .ht { font-size: 10.5px; color: #A6682C; letter-spacing: .5px; margin-top: 1px; font-weight: 600; }
.hero .glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.hero .badges { position: absolute; left: 12px; top: 10px; display: flex; gap: 5px; z-index: 2; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.stat-cell { background: #fff; border: 2px solid #F0E3CC; border-radius: 10px; padding: 6px 8px; box-shadow: 0 2px 0 rgba(200,170,120,.18); }
.stat-cell .k { font-size: 9.5px; color: var(--dim); }
.stat-cell .v { font-size: 13.5px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }

.seg { display: flex; gap: 6px; margin: 12px 0 10px; }
.seg .s {
  flex: 1; text-align: center; padding: 8px 0; font-size: 12px; font-weight: 600;
  color: var(--muted); background: #fff; border: 2px solid #F0E3CC; border-radius: 10px; cursor: pointer;
}
.seg .s.on { color: #fff; background: linear-gradient(180deg, #FFA95E, var(--orange)); border-color: #E08A2C; }

.rune-branch { border: 2px solid #F0E3CC; border-radius: 12px; padding: 10px; margin-bottom: 8px; background: #fff; }
.rune-branch .rb { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rune-branch .rbn { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #8A4A18; }
.rune-nodes { display: flex; gap: 4px; margin-top: 8px; }
.rnode {
  flex: 1; min-width: 0; text-align: center; padding: 7px 2px; border-radius: 8px;
  border: 2px solid #F2E6D2; background: #FFFCF6;
  font-size: 9.5px; color: var(--dim);
}
.rnode.on { border-color: var(--orange); color: #A85A12; background: #FFF3E0; font-weight: 700; }
.rnode.next { border-color: #E8C79A; color: var(--muted); cursor: pointer; }

.art-slot {
  display: flex; align-items: center; gap: 9px; padding: 9px;
  border: 2px solid #F0E3CC; border-radius: 10px; margin-bottom: 6px;
  background: #fff; cursor: pointer;
}
.art-slot .as {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  border: 2px solid currentColor; font-family: var(--serif); font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.art-slot .ai { flex: 1; min-width: 0; }
.art-slot .an { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-slot .ad { font-size: 9px; color: var(--dim); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 洞府 ── */
.quest {
  display: flex; align-items: center; gap: 9px; padding: 10px;
  border: 2px solid #F0E3CC; border-radius: 12px; margin-bottom: 7px;
  background: #fff; box-shadow: 0 2px 0 rgba(200,170,120,.18);
}
.quest .qi { flex: 1; min-width: 0; }
.quest .qn { font-size: 12px; font-weight: 600; }
.quest .qd { font-size: 9.5px; color: var(--dim); margin-top: 2px; }

.signin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sign-cell {
  border: 2px solid #F2E6D2; border-radius: 10px; padding: 8px 4px; text-align: center;
  background: #fff; position: relative;
}
.sign-cell .sd { font-size: 9px; color: var(--dim); }
.sign-cell .sv { font-size: 11px; color: #C98A22; margin-top: 3px; font-weight: 700; }
.sign-cell.got { opacity: .5; background: #F8F2E6; }
.sign-cell.today { border-color: var(--orange); background: #FFF3E0; }
.sign-cell .tick { position: absolute; top: 1px; right: 4px; font-size: 9px; color: var(--jade); font-weight: 700; }

.codex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.codex-cell {
  border: 2px solid #F0E3CC; border-radius: 10px; overflow: hidden;
  background: #fff; cursor: pointer; box-shadow: 0 2px 0 rgba(200,170,120,.18);
}
.codex-cell .pv { height: 66px; border-radius: 0; }
.codex-cell .cn2 { font-size: 9.5px; text-align: center; padding: 3px 2px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.codex-cell.locked { opacity: .4; filter: grayscale(1); }

.ach {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border: 2px solid #F0E3CC; border-radius: 12px; margin-bottom: 7px; background: #fff;
}
.ach.done { border-color: #F3C98F; background: #FFF6E6; }
.ach .ai2 { flex: 1; min-width: 0; }
.ach .an2 { font-size: 12px; font-weight: 600; }
.ach .ad2 { font-size: 9.5px; color: var(--dim); margin-top: 2px; }

.switch { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; }
.switch .sl { font-size: 12.5px; font-weight: 600; }
.switch .track {
  width: 48px; height: 26px; border-radius: 14px; background: #E8DBC4;
  position: relative; transition: background .2s; cursor: pointer; flex: 0 0 auto;
}
.switch .track::after {
  content: ''; position: absolute; left: 2px; top: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.switch.on .track { background: var(--orange); }
.switch.on .track::after { transform: translateX(22px); }

#tipbar {
  position: absolute; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom));
  background: #E4572E; color: #fff; font-size: 10.5px;
  padding: 7px 12px; text-align: center; z-index: 45;
  display: none; box-shadow: 0 -2px 8px rgba(0,0,0,.15);
}
#tipbar.show { display: block; }

/* ── 战斗 ── */
.overlay {
  position: absolute; inset: 0; z-index: 30;
  background: radial-gradient(90% 45% at 50% 0%, #FFF8EA 0%, #FCEFD8 45%, #F7E2BE 100%);
  display: none; flex-direction: column;
}
.overlay.show { display: flex; }
.bt-top {
  flex: 0 0 auto; padding: calc(10px + env(safe-area-inset-top)) 12px 6px;
  display: flex; align-items: center; gap: 8px;
}
.bt-top .t { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #8A4A18; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-top .spd { margin-left: auto; display: flex; gap: 5px; flex: 0 0 auto; }

.bt-field { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: space-evenly; padding: 4px 10px; position: relative; }
.bt-field::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1;
  transform: translate(-50%,-50%); border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.55) 0%, transparent 58%),
    repeating-conic-gradient(from 0deg, rgba(242,160,61,.06) 0deg 12deg, transparent 12deg 24deg);
  opacity: .8;
}
.bt-field > * { position: relative; z-index: 1; }
.bt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bt-vs { display: flex; align-items: center; gap: 8px; margin: 7px 0; }
.bt-vs i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #E3CBA8, transparent); }
.bt-vs span { font-family: var(--serif); font-size: 10px; letter-spacing: 3px; color: #B08A5E; font-weight: 700; }
.bt-side { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: 1.5px; color: var(--dim); margin: 1px 0 5px; font-weight: 600; }
.bt-side i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #EEDCC0, transparent); }
.bt-side b { font-family: var(--serif); letter-spacing: .5px; }
.bt-side.enemy b { color: var(--red); }
.bt-side.ally b { color: #2E8A78; }

.bt-unit {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 2.5px solid #fff; background: #fff;
  box-shadow: 0 3px 8px rgba(160,120,60,.18);
  padding: 0 0 4px; text-align: center;
  transition: opacity .3s, filter .3s, box-shadow .2s, transform .14s;
}
.bt-unit .port { height: 66px; position: relative; overflow: hidden; background: linear-gradient(180deg, #FFF4DE, #F8E2BE); }
.bt-unit .port img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.bt-unit .port svg { width: 100%; height: 100%; }
.bt-unit .un { font-size: 10px; font-weight: 600; padding: 2px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.bt-unit .hb { height: 6px; margin: 0 4px; background: #F5E7D0; border-radius: 4px; overflow: hidden; }
.bt-unit .hb i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7BD8A8, #3FA796); transition: width .16s linear; }
.bt-unit .rb { height: 5px; margin: 3px 4px 0; background: rgba(120,90,40,.16); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(120,80,20,.18); }
.bt-unit .rb i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #FFD98A, #F0A63C 62%, #DE7B1E); transition: width .2s linear; }
.bt-unit.dead { opacity: .3; filter: grayscale(1); }
.bt-unit.acting { box-shadow: 0 0 0 3px rgba(242,160,61,.5), 0 6px 14px rgba(200,140,60,.3); transform: translateY(-4px) scale(1.04); }
.bt-unit.hurt { animation: hurt .24s; }
@keyframes hurt { 0%,100% { transform: none; } 30% { transform: translateX(5px) rotate(2deg); } 65% { transform: translateX(-4px) rotate(-2deg); } }
.bt-unit .sh { position: absolute; inset: 0; border: 3px solid rgba(91,143,249,.75); border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; }

.fnum {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  font-size: 13px; font-weight: 800; pointer-events: none; white-space: nowrap;
  animation: fly .85s ease-out forwards; text-shadow: 0 2px 0 #fff, 0 0 8px rgba(255,255,255,.9);
  color: var(--red);
}
.fnum.crit { font-size: 19px; color: #E88F12; }
.fnum.heal { color: #2E8A78; }
.fnum.miss { color: #8E9BB0; font-size: 11px; }
@keyframes fly {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
  22% { opacity: 1; transform: translate(-50%, 0) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(1); }
}

.bt-banner {
  position: absolute; left: 0; right: 0; top: 38%; text-align: center;
  font-family: var(--serif); font-size: 24px; font-weight: 800; letter-spacing: 6px; color: #fff;
  text-shadow: 0 3px 0 #C33F1C, 0 0 20px rgba(228,87,46,.7);
  opacity: 0; pointer-events: none;
}
.bt-banner.show { animation: burst .95s ease-out forwards; }
@keyframes burst {
  0% { opacity: 0; transform: scale(1.4); letter-spacing: 16px; }
  20% { opacity: 1; transform: scale(1); letter-spacing: 6px; }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(.96); }
}
.bt-rule {
  position: absolute; left: 0; right: 0; top: 4px; text-align: center;
  font-size: 10px; letter-spacing: 1.5px; color: #B5844A; opacity: 0; font-weight: 600;
}
.bt-rule.show { animation: ruleflash 1.2s ease-out forwards; }
@keyframes ruleflash { 0% { opacity: 0; } 22% { opacity: 1; } 78% { opacity: .9; } 100% { opacity: 0; } }

/* 大招切入 */
.cutin {
  position: absolute; left: 0; right: 0; top: 32%; height: 118px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: linear-gradient(90deg, rgba(255,247,232,.97) 0%, rgba(255,247,232,.88) 62%, transparent 100%);
  border-top: 3px solid rgba(242,160,61,.55);
  border-bottom: 3px solid rgba(242,160,61,.55);
  pointer-events: none; opacity: 0; z-index: 6;
}
.cutin.show { animation: cutinIn .9s ease-out forwards; }
@keyframes cutinIn {
  0% { opacity: 0; transform: translateX(-40%) skewX(-6deg); }
  22% { opacity: 1; transform: translateX(0) skewX(0); }
  72% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(14%); }
}
.cutin .ci-art {
  width: 76px; height: 100px; border-radius: 10px; overflow: hidden; flex: 0 0 auto;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(160,120,60,.25);
}
.cutin .ci-art img, .cutin .ci-art svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.cutin .ci-txt { min-width: 0; }
.cutin .ci-name { font-family: var(--serif); font-size: 20px; font-weight: 800; color: #8A4A18; letter-spacing: 1px; }
.cutin .ci-skill { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 2px; }

.bt-log { flex: 0 0 auto; height: 64px; overflow: hidden; padding: 6px 12px; border-top: 2px solid #F1E3CA; background: #FFFBF2; }
.bt-log div { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-log div b { color: var(--ink2); font-weight: 600; }
.bt-log div.hl b { color: var(--red); }

.bt-bottom {
  flex: 0 0 auto; display: flex; gap: 7px;
  padding: 9px 12px calc(11px + env(safe-area-inset-bottom));
  border-top: 2px solid #F1E3CA; background: #FFFBF2;
}

.bt-result {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 20px;
  background: rgba(255,250,240,.95); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 8;
}
.bt-result.show { opacity: 1; pointer-events: auto; }
.bt-result .big { font-family: var(--serif); font-size: 42px; font-weight: 800; letter-spacing: 10px; animation: pop .4s cubic-bezier(.2,1.5,.5,1); }
.bt-result .big.win { color: #E08A2C; text-shadow: 0 4px 0 #fff, 0 0 30px rgba(242,160,61,.6); }
.bt-result .big.lose { color: #A99A88; }
.bt-result .sub { font-size: 11.5px; color: var(--muted); text-align: center; }
.bt-result .rw { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; font-size: 12px; color: #C98A22; font-weight: 700; }
.bt-result-btns { display: flex; flex-direction: column; gap: 7px; width: min(260px, 80%); margin-top: 12px; }

/* ── 弹层 ── */
#modal {
  position: absolute; inset: 0; z-index: 40; display: none;
  align-items: center; justify-content: center;
  padding: calc(22px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
  background: rgba(60,40,20,.5);
  backdrop-filter: blur(2px);
}
#modal.show { display: flex; animation: fadeIn .16s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: relative;
  width: 100%; max-width: 402px; max-height: 78vh; overflow-y: auto;
  background: #FFFAF0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 14px 14px 16px;
  animation: pop .26s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 22px 54px rgba(70,45,20,.34), 0 2px 0 rgba(255,255,255,.6) inset;
}
.sheet::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 42px; height: 3px; border-radius: 3px; background: rgba(150,120,80,.16);
}
@keyframes pop { from { transform: scale(.94) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet::-webkit-scrollbar { width: 0; }
.sheet h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 1.5px; color: #7A4A20; margin-bottom: 12px; }

#toast {
  position: absolute; left: 50%; bottom: calc(124px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  background: rgba(90,64,36,.94); color: #FFF6E4;
  padding: 9px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .22s; z-index: 60;
  max-width: 86%; text-align: center; box-shadow: 0 4px 14px rgba(90,60,30,.25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.ad-box {
  position: absolute; inset: 0; z-index: 70; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: #2A2016; color: #FFF6E4;
}
.ad-box.show { display: flex; }
.ad-box .ad-t { font-family: var(--serif); font-size: 16px; letter-spacing: 4px; color: var(--orange); font-weight: 700; }
.ad-box .ad-n { font-size: 32px; font-variant-numeric: tabular-nums; font-weight: 700; }
.ad-box .ad-s { font-size: 10px; color: #C9B79C; text-align: center; line-height: 1.7; }

#errBox {
  position: absolute; inset: 0; z-index: 99; display: none;
  align-items: center; justify-content: center; padding: 24px; background: rgba(60,40,24,.88);
}
#errBox.show { display: flex; }
.err-card { width: 100%; max-width: 340px; border: 3px solid #fff; border-radius: 16px; padding: 16px; background: #FFFAF0; }
.err-t { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.err-d { font-size: 11.5px; color: var(--ink2); line-height: 1.6; word-break: break-all; }
.err-btns { display: flex; gap: 8px; margin-top: 14px; }
.err-btns .btn { flex: 1; }

/* 飘落花瓣 */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.petal {
  position: absolute; top: -20px; width: 9px; height: 9px; border-radius: 50% 0 50% 50%;
  background: rgba(245,139,168,.5);
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: .8; }
  100% { transform: translateY(940px) rotate(420deg); opacity: 0; }
}

@media (min-height: 780px) {
  .bt-unit .port { height: 78px; }
  .bt-row { gap: 7px; }
}
@media (max-width: 360px) {
  body { font-size: 13px; }
  .bt-unit .port { height: 56px; }
  .hero { height: 250px; }
  .eslot .en { font-size: 9.5px; }
  .mode-tab { font-size: 11px; }
  .snode { width: 48px; height: 56px; }
}

/* ── 关卡地图 ── */
.map-pad { padding-bottom: 6px; }
.fn-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.fn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #fff; border: 2px solid #F0E0C6; border-radius: 12px;
  padding: 6px 0 5px; cursor: pointer; box-shadow: 0 2px 0 rgba(200,170,120,.3);
}
.fn:active { transform: translateY(2px); box-shadow: none; }
.fn .fg { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--red); line-height: 1.1; }
.fn .ft { font-size: 9.5px; color: var(--muted); letter-spacing: 1px; }

.map { position: relative; padding: 2px 0 12px; }
.map::before {
  content: ''; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 7px; margin-left: -3.5px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, #EBD9BC 0 11px, rgba(255,255,255,0) 11px 22px);
}
.map-row { position: relative; display: flex; padding: 6px 0; }
.map-row.left { justify-content: flex-start; padding-left: 9%; }
.map-row.right { justify-content: flex-end; padding-right: 9%; }
.map-row::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: #E7D3B4; border: 2px solid #fff;
}
.map-row.left::after { left: calc(9% + 76px); }
.map-row.right::after { right: calc(9% + 76px); }

.map-node { width: 76px; text-align: center; position: relative; z-index: 1; }
.mn-lv { font-size: 10px; font-weight: 700; color: #B5844A; margin-bottom: 3px; }
.mn-lv b { color: var(--gold); font-weight: 700; }
.mn-face {
  width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
  border: 3px solid #fff; overflow: hidden; position: relative;
  background: #FFF4DE; box-shadow: 0 3px 8px rgba(160,120,60,.22);
}
.mn-face img, .mn-face svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-done {
  position: absolute; right: -1px; bottom: -1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--jade); color: #fff; font-size: 11px; display: grid; place-items: center;
  border: 2px solid #fff; font-weight: 700;
}
.mn-here {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(228,87,46,.94); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; letter-spacing: 1px;
}
.mn-stars { font-size: 8.5px; color: #DCCDB6; margin-top: 3px; letter-spacing: 1px; }
.mn-stars.on { color: var(--gold); }
.mn-name { font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.map-row.cur .mn-face { border-color: var(--orange); animation: nodePulse 1.9s ease-in-out infinite; }
@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242,160,61,.26), 0 4px 12px rgba(200,140,60,.25); }
  50% { box-shadow: 0 0 0 9px rgba(242,160,61,.10), 0 4px 16px rgba(200,140,60,.35); }
}
.map-row.lock { opacity: .5; filter: grayscale(.45); }
.map-row.sel .mn-face { outline: 3px solid #fff; box-shadow: 0 0 0 6px rgba(228,87,46,.2); }
.map-row.done .mn-face { border-color: #A9E0CE; }

.map-card {
  position: sticky; bottom: 4px; z-index: 6;
  background: var(--card); border: 2px solid #F3C98F; border-radius: 14px;
  padding: 10px; box-shadow: 0 -6px 20px rgba(160,120,60,.16), var(--shadow);
}

/* 战斗冲刺与技能闪光 */
.bt-unit.lunging.side-a { animation: lungeA .32s cubic-bezier(.2,1.4,.5,1); }
@keyframes lungeA { 0%, 100% { transform: none; } 42% { transform: translateY(-16px) scale(1.07); } }
.bt-unit.lunging.side-b { animation: lungeB .32s cubic-bezier(.2,1.4,.5,1); }
@keyframes lungeB { 0%, 100% { transform: none; } 42% { transform: translateY(16px) scale(1.07); } }

.bt-flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255,236,180,.85) 0%, rgba(255,200,120,.35) 35%, transparent 68%);
}
.bt-flash.show { animation: flashOut .55s ease-out; }
@keyframes flashOut { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }

/* 升星爆闪 */
.star-burst {
  position: absolute; inset: 0; z-index: 65; pointer-events: none; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255,240,200,.9), transparent 55%);
  animation: burstFade .9s ease-out forwards;
}
.star-burst span { font-size: 54px; color: #E8B44C; text-shadow: 0 4px 0 #fff, 0 0 26px rgba(232,180,76,.8); animation: starPop .9s ease-out forwards; }
@keyframes burstFade { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes starPop { 0% { transform: scale(.4) rotate(-20deg); } 55% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

/* 地图页紧凑化：给地图腾出高度 */
.fn { padding: 4px 0 3px; }
.fn .fg { font-size: 15px; }
.fn .ft { font-size: 9px; }
.map-card { padding: 8px 9px; }
.map-card .eslot .pv { height: 44px; }
.map-card .eslot .el { display: none; }
.map-card .eslot .en { font-size: 9.5px; padding-top: 1px; }
.map-card .reward-line { margin-top: 5px; }
.map-card .fight-line { margin: 7px 0 0; }
.map-card .btn { min-height: 38px; }
.map-card .row { margin-top: 7px !important; }

/* 再收一档：顶区与节点更紧凑 */
.chapter-head { padding: 9px 12px; margin-bottom: 8px; }
.chapter-head .cn { font-size: 16px; }
.fn-bar { margin-bottom: 8px; }
.fn { padding: 3px 0 2px; border-radius: 10px; }
.fn .fg { font-size: 14px; }
.fn .ft { font-size: 8.5px; }
.map-row { padding: 3px 0; }
.map-node { width: 68px; }
.mn-face { width: 56px; height: 56px; }
.mn-lv { font-size: 9.5px; margin-bottom: 2px; }
.mn-stars { font-size: 8px; margin-top: 2px; }
.map-row.left::after { left: calc(9% + 68px); }
.map-row.right::after { right: calc(9% + 68px); }

/* 底部悬浮条 + 可展开详情 */
.bottom-stack { position: sticky; bottom: 2px; z-index: 7; display: flex; flex-direction: column; gap: 6px; }
.fight-bar {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 2px solid #F3C98F; border-radius: 14px;
  padding: 7px 8px 7px 12px; box-shadow: 0 -4px 18px rgba(160,120,60,.16), var(--shadow);
}
.fb-info { flex: 1; min-width: 0; }
.fb-name { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #6B3A12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-sub { font-size: 10px; margin-top: 1px; }
.fb-go { flex: 0 0 104px; min-height: 42px; }
.card-x {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #F5E9D6; color: #A98A63; font-size: 16px; margin-left: 6px; cursor: pointer; flex: 0 0 auto;
}
.map { padding-bottom: 4px; }

/* ── 战斗背景 ── */
.bt-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .95; pointer-events: none; z-index: 0;
  transition: filter .4s;
}
#battle .bt-top, #battle .bt-field, #battle .bt-log, #battle .bt-bottom { position: relative; z-index: 1; }

/* ── 抽卡演出 ── */
.gacha-layer {
  position: absolute; inset: 0; z-index: 80; display: none;
  flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; background: #FFF6E4;
}
.gacha-layer.show { display: flex; }
.gc-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 9s linear; z-index: 0;
}
.gacha-layer.show .gc-bg { opacity: .92; transform: scale(1); }
.gc-rays {
  position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax;
  margin: -90vmax 0 0 -90vmax; z-index: 1; pointer-events: none; opacity: .55;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,130,.32) 0deg 5deg, transparent 5deg 16deg);
  animation: gcSpin 26s linear infinite;
}
@keyframes gcSpin { to { transform: rotate(360deg); } }
.gc-spark {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,214,130,.9) 1px, transparent 1.6px);
  background-size: 90px 90px, 130px 130px;
  animation: sparkUp 9s linear infinite;
}
@keyframes sparkUp {
  from { background-position: 0 0, 40px 60px; }
  to { background-position: 0 -180px, 40px -200px; }
}
.gc-title { position: absolute; top: 58px; left: 0; right: 0; z-index: 3; text-align: center; animation: gcTitleIn .9s cubic-bezier(.2,1.3,.5,1) both; }
.gc-title span {
  font-family: var(--serif); font-size: 30px; font-weight: 800; letter-spacing: 10px; color: #8A4A18;
  text-shadow: 0 3px 0 #fff, 0 0 30px rgba(255,200,90,.9);
}
.gc-title i { display: block; font-style: normal; font-size: 10px; letter-spacing: 4px; color: #B5844A; margin-top: 5px; }
@keyframes gcTitleIn { from { opacity: 0; transform: scale(.7) translateY(-10px); } to { opacity: 1; transform: none; } }

.gc-cards { position: relative; z-index: 3; display: grid; gap: 8px; }
.gc-cards.one { grid-template-columns: 146px; }
.gc-cards.ten { grid-template-columns: repeat(5, 58px); }
.gc-card { perspective: 700px; opacity: 0; animation: gcCardIn .45s cubic-bezier(.2,1.3,.5,1) forwards; }
@keyframes gcCardIn { from { opacity: 0; transform: translateY(26px) scale(.7); } to { opacity: 1; transform: none; } }
.gc-inner {
  position: relative; width: 100%; padding-top: 138%;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.9,.3,1.15);
}
.gc-card.on .gc-inner { transform: rotateY(180deg); }
.gc-face {
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden;
  backface-visibility: hidden; border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(160,120,60,.25);
}
.gc-back { background: linear-gradient(160deg, #F7C46B, #E4572E); display: grid; place-items: center; }
.gc-back::after {
  content: '榜'; font-family: var(--serif); font-size: 24px; color: #FFF3D8;
  text-shadow: 0 2px 0 rgba(150,60,20,.4);
}
.gc-front { transform: rotateY(180deg); background: #fff; }
.gc-front .pv { position: absolute; inset: 0; border-radius: 0; }
.gc-front .gc-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--serif); font-size: 10px; font-weight: 700; color: #fff; text-align: center;
  padding: 9px 2px 3px; background: linear-gradient(180deg, transparent, rgba(90,50,20,.78));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-front .gc-new { position: absolute; top: 3px; right: 3px; background: var(--jade); color: #fff; font-size: 7.5px; padding: 1px 4px; border-radius: 6px; font-weight: 700; }
.gc-card.q-tian .gc-face { border-color: #E8B44C; box-shadow: 0 0 0 3px rgba(232,180,76,.35), 0 0 22px rgba(232,180,76,.6); }
.gc-card.q-di .gc-face { border-color: #A98FD6; box-shadow: 0 0 16px rgba(169,143,214,.45); }

.gacha-layer.rare::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,244,200,.98) 0%, rgba(255,214,130,.75) 30%, transparent 62%);
  animation: rareFlash 1.1s ease-out forwards;
}
@keyframes rareFlash { 0% { opacity: 0; transform: scale(.4); } 18% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(1.6); } }
.gacha-layer.rare .gc-cards { animation: rareShake .5s ease-out; }
@keyframes rareShake { 0%,100% { transform: none; } 25% { transform: translate(-4px,3px); } 50% { transform: translate(4px,-3px); } 75% { transform: translate(-3px,-2px); } }
.gc-card.big { z-index: 6; }
.gc-card.big .gc-inner { transform: rotateY(180deg) scale(1.5); transition: transform .45s cubic-bezier(.2,1.4,.5,1); }

.gc-foot { position: absolute; bottom: calc(36px + env(safe-area-inset-bottom)); left: 0; right: 0; z-index: 5; display: flex; gap: 10px; justify-content: center; animation: gcTitleIn .5s .55s both; }

/* ── 氛围动效 ── */
/* 章节横幅用实景图 + 米色蒙层 */
.chapter-head {
  background:
    linear-gradient(90deg, rgba(255,248,236,.96) 0%, rgba(255,246,228,.82) 55%, rgba(255,240,214,.66) 100%),
    url('art/battle-bg.jpg') center 30% / cover no-repeat;
}
/* 地图路径上的流光 */
.map::after {
  content: ''; position: absolute; left: 50%; top: 8px; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFE2A6 0%, rgba(242,160,61,.85) 45%, transparent 72%);
  box-shadow: 0 0 12px rgba(255,200,110,.9);
  animation: flowDown 3.4s linear infinite;
}
@keyframes flowDown {
  0% { top: 8px; opacity: 0; }
  12% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 20px); opacity: 0; }
}
/* 主按钮流光 */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after {
  content: ''; position: absolute; top: -60%; left: -70%; width: 40%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: rotate(18deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 62% { left: -70%; }
  82%, 100% { left: 130%; }
}
/* 导航图标切换弹一下 */
.nav-item.on .gl { animation: navPop .38s cubic-bezier(.2,1.5,.5,1); }
@keyframes navPop { 0% { transform: scale(.82) translateY(3px); } 60% { transform: scale(1.14) translateY(-2px); } 100% { transform: scale(1.08) translateY(-1px); } }
/* 章节云飘 */
.chapter-head::after { animation: cloudDrift 9s ease-in-out infinite; }
@keyframes cloudDrift { 0%,100% { transform: translateX(0); opacity: .75; } 50% { transform: translateX(-14px); opacity: .95; } }
/* 详情页立绘浮动 */
.hero img { animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
/* 关卡节点点击反馈 */
.map-row:active .mn-face { transform: scale(.94); }
.mn-face { transition: transform .14s; }

/* 双方战力标签加浅底，避免压在山景上看不清 */
.bt-side b { background: rgba(255,255,255,.86); padding: 1px 8px; border-radius: 9px; }

/* ══════════ 战斗特效层 ══════════ */
#fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.fx { position: absolute; width: 0; height: 0; }

/* 施法法阵 */
.fx-cast .ring1 {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  border: 2px solid var(--c); opacity: 0;
  box-shadow: 0 0 20px var(--c), inset 0 0 22px var(--c);
  animation: fxCastRing .72s cubic-bezier(.2,.8,.3,1) forwards;
}
.fx-cast .ring2 {
  position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 16deg, var(--c) 16deg 22deg, transparent 22deg 44deg);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 61%, #000 86%, transparent 89%);
  mask: radial-gradient(circle, transparent 58%, #000 61%, #000 86%, transparent 89%);
  opacity: 0; animation: fxCastSpin .92s ease-out forwards;
}
.fx-cast .core {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--c) 52%, transparent 72%);
  opacity: 0; animation: fxCastCore .7s ease-out forwards;
}
@keyframes fxCastRing { 0% { opacity: 0; transform: scale(.3); } 26% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fxCastSpin { 0% { opacity: 0; transform: rotate(-50deg) scale(.55); } 32% { opacity: 1; } 100% { opacity: 0; transform: rotate(160deg) scale(1.3); } }
@keyframes fxCastCore { 0% { opacity: 0; transform: scale(.35); } 26% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

/* 弹道 */
.fx-bolt { transform: rotate(var(--ang)); transform-origin: 0 0; }
.fx-bolt i {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, #fff 12%, var(--c) 56%, transparent 74%);
  box-shadow: 0 0 14px var(--c), 0 0 26px var(--c);
  animation: fxBoltMove .3s cubic-bezier(.4,0,.7,1) forwards;
}
.fx-bolt b {
  position: absolute; left: 0; top: -3px; width: 0; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--c));
  animation: fxBoltTrail .34s ease-out forwards;
}
.fx-bolt.big i { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.fx-bolt.big b { height: 9px; top: -4.5px; }
@keyframes fxBoltMove {
  0% { transform: translateX(0) scale(.55); opacity: 0; }
  14% { opacity: 1; }
  100% { transform: translateX(var(--len)) scale(1.05); opacity: .92; }
}
@keyframes fxBoltTrail {
  0% { width: 0; opacity: 0; }
  30% { opacity: .9; }
  100% { width: calc(var(--len) * .8); opacity: 0; }
}

/* 命中爆点 */
.fx-impact .ring {
  position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid var(--c); opacity: 0; box-shadow: 0 0 18px var(--c), inset 0 0 14px var(--c);
  animation: fxRingOut .48s cubic-bezier(.2,.8,.3,1) forwards;
}
.fx-impact.big .ring { left: -48px; top: -48px; width: 96px; height: 96px; border-width: 4px; }
@keyframes fxRingOut { 0% { opacity: 0; transform: scale(.22); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(2); } }
.fx-impact .core {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 26px var(--c), 0 0 52px var(--c);
  animation: fxCorePop .36s ease-out forwards;
}
.fx-impact.big .core { left: -26px; top: -26px; width: 52px; height: 52px; }
.fx-impact .flash {
  position: absolute; left: -72px; top: -72px; width: 144px; height: 144px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.98) 0%, var(--c) 30%, transparent 62%);
  opacity: 0; animation: fxFlashDisc .38s ease-out forwards;
}
@keyframes fxFlashDisc { 0% { opacity: 0; transform: scale(.25); } 18% { opacity: .9; } 100% { opacity: 0; transform: scale(1.05); } }
@keyframes fxCorePop { 0% { opacity: 0; transform: scale(.25); } 24% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(.15); } }
.fx-impact .shard, .fx-death .shard {
  position: absolute; left: -7px; top: -2px; width: 14px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff 40%, var(--c));
  box-shadow: 0 0 10px var(--c); opacity: 0;
  animation: fxShardFly .5s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--dl);
}
.fx-impact.big .shard { width: 22px; height: 5px; left: -11px; top: -2.5px; }
.fx-impact .wave {
  position: absolute; left: -70px; top: -26px; width: 140px; height: 52px; border-radius: 50%;
  border: 3px solid var(--c); opacity: 0; box-shadow: 0 0 16px var(--c);
  animation: fxWave .46s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes fxWave { 0% { opacity: .9; transform: scale(.25); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fxShardFly {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(2px) scale(.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scale(.15); }
}

/* 会心斩击 */
.fx-slash i {
  position: absolute; height: 4px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #fff 45%, transparent);
  box-shadow: 0 0 16px var(--c);
}
.fx-slash i:nth-child(1) { left: -64px; top: -2px; width: 128px; transform: rotate(-40deg); animation: fxSlashA .4s ease-out forwards; }
.fx-slash i:nth-child(2) { left: -50px; top: 2px; width: 100px; transform: rotate(34deg); animation: fxSlashB .44s ease-out forwards; }
@keyframes fxSlashA { 0% { opacity: 0; transform: rotate(-40deg) scaleX(.1); } 26% { opacity: 1; } 100% { opacity: 0; transform: rotate(-40deg) scaleX(1.4); } }
@keyframes fxSlashB { 0% { opacity: 0; transform: rotate(34deg) scaleX(.1); } 30% { opacity: .85; } 100% { opacity: 0; transform: rotate(34deg) scaleX(1.3); } }

/* 技能名大字 */
.fx-skill { left: 0; top: 34%; width: 100%; height: 0; text-align: center; z-index: 8; }
.fx-skill span {
  display: inline-block; font-family: var(--serif); font-size: 36px; font-weight: 800; letter-spacing: 6px;
  color: #fff; transform: skewX(-8deg);
  text-shadow: 0 0 12px var(--c), 0 0 28px var(--c), 0 3px 0 rgba(60,30,10,.28);
  animation: fxSkillIn 1.05s cubic-bezier(.2,1.2,.3,1) forwards;
}
@keyframes fxSkillIn {
  0% { opacity: 0; transform: skewX(-8deg) translateX(-46px) scale(.72); letter-spacing: 1px; }
  18% { opacity: 1; transform: skewX(-8deg) translateX(0) scale(1.14); letter-spacing: 11px; }
  34% { transform: skewX(-8deg) scale(1); letter-spacing: 6px; }
  76% { opacity: 1; }
  100% { opacity: 0; transform: skewX(-8deg) translateY(-18px) scale(1.05); }
}
.fx-skill em {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; margin-top: 28px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  animation: fxSkillLine 1.05s ease-out forwards;
}
@keyframes fxSkillLine { 0% { opacity: 0; transform: scaleX(.2); } 22% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.1); } }

/* 治疗 */
.fx-heal i {
  position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 2px;
  background: #5FD3AE; box-shadow: 0 0 9px #5FD3AE; opacity: 0;
  animation: fxHealUp .88s ease-out forwards; animation-delay: var(--dl);
}
@keyframes fxHealUp {
  0% { opacity: 0; transform: translate(0, 8px) scale(.5); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), -54px) scale(1.05); }
}

/* 阵亡碎裂 */
.fx-death .ring {
  position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85); opacity: 0;
  animation: fxRingOut .7s ease-out forwards;
}
.fx-death .shard { animation-duration: .78s; }
.fx-death .shard { width: 7px; height: 7px; left: -3.5px; top: -3.5px; }

/* 全屏元素色闪 */
.fx-tint {
  position: absolute; inset: 0; width: auto; height: auto;
  background: var(--c); mix-blend-mode: soft-light; opacity: 0;
  animation: fxTintA .64s ease-out forwards;
}
@keyframes fxTintA { 0% { opacity: 0; } 16% { opacity: .62; } 100% { opacity: 0; } }

/* 震屏 */
#battle.shake-s { animation: shkS .28s ease-out; }
#battle.shake-m { animation: shkM .34s ease-out; }
#battle.shake-l { animation: shkL .44s ease-out; }
@keyframes shkS { 0%,100% { transform: none; } 30% { transform: translate(2px,-1px); } 60% { transform: translate(-2px,1px); } }
@keyframes shkM { 0%,100% { transform: none; } 22% { transform: translate(4px,-3px); } 48% { transform: translate(-4px,3px); } 74% { transform: translate(3px,2px); } }
@keyframes shkL { 0%,100% { transform: none; } 14% { transform: translate(8px,-6px) rotate(-.6deg); } 34% { transform: translate(-9px,5px) rotate(.6deg); } 54% { transform: translate(6px,6px) rotate(-.4deg); } 76% { transform: translate(-4px,-3px); } }

/* 连击 */
.fx-combo { position: absolute; left: 50%; top: 43%; transform: translate(-50%,-50%); z-index: 8; text-align: center; pointer-events: none; }
.fx-combo b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: #fff; text-shadow: 0 0 16px #E4572E, 0 3px 0 rgba(80,40,10,.35); }
.fx-combo span { font-size: 9px; letter-spacing: 4px; color: #FFD98A; }
.fx-combo.pop b { animation: comboPop .3s cubic-bezier(.2,1.6,.4,1); }
@keyframes comboPop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* 血条残影 */
.bt-unit .hb { position: relative; }
.bt-unit .hb .gh {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(228,87,46,.42); border-radius: 4px;
  transition: width .3s ease .1s;
}
.bt-unit .hb .fg {
  position: relative; z-index: 1;
  background: linear-gradient(90deg, #7BD8A8, #3FA796);
  transition: width .13s linear;
}

/* 怒气满徽标 */
.bt-unit { position: relative; }
.bt-unit .ultb {
  position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  display: none; place-items: center; z-index: 3;
  background: linear-gradient(155deg, #FFE7A8, #E4572E); color: #fff;
  font-family: var(--serif); font-size: 11px; font-weight: 800; letter-spacing: 0;
  border: 2px solid #fff; text-shadow: 0 1px 2px rgba(120,30,0,.5);
  box-shadow: 0 0 0 0 rgba(228,87,46,.55);
}
.bt-unit .ultb.ready { display: grid; animation: ultPulse 1.15s ease-in-out infinite; }
@keyframes ultPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,87,46,.6); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(228,87,46,0); transform: scale(1.08); }
}

/* 战意条 */
.ult-bar {
  position: absolute; right: 10px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 7;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,252,246,.96); border: 2px solid #F3C98F; border-radius: 20px;
  padding: 4px 10px 4px 9px; box-shadow: 0 3px 10px rgba(160,120,60,.22);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ult-bar .ub-name { font-size: 9px; letter-spacing: 2px; color: #8A4A18; }
.ult-bar b {
  font-family: var(--serif); font-size: 17px; line-height: 1; color: var(--red);
  min-width: 12px; text-align: center;
}
.ult-bar .ub-hint {
  font-style: normal; font-size: 8.5px; color: #B5844A; max-width: 104px;
  line-height: 1.25; letter-spacing: 0;
}
/* 有武将怒气满：整条点亮，提示可以出手 */
.ult-bar.on {
  border-color: #F0A63C;
  background: linear-gradient(180deg, #FFF6DF, #FFE7B4);
  box-shadow: 0 0 0 2px rgba(240,166,60,.22), 0 4px 14px rgba(220,150,60,.35);
  animation: ultBarPulse 1.6s ease-in-out infinite;
}
.ult-bar.on .ub-hint { color: #B4551C; font-weight: 700; }
@keyframes ultBarPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(240,166,60,.22), 0 4px 14px rgba(220,150,60,.35); }
  50% { box-shadow: 0 0 0 5px rgba(240,166,60,.10), 0 6px 20px rgba(220,150,60,.55); }
}

/* 神威：本体起跳 · 影像天降 · 砸地 */
.ult-dive { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }
.ult-dive .ud-dark {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(62% 46% at 50% 44%, rgba(24,14,6,.56) 0%, rgba(6,4,2,.8) 60%, rgba(1,1,1,.94) 100%);
  animation: udDark 1.12s ease-out forwards;
}
@keyframes udDark { 0% { opacity: 0; } 8% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; } }

.ult-dive .ud-rays {
  position: absolute; left: 50%; top: 46%; width: 175vmax; height: 175vmax;
  margin: -87.5vmax 0 0 -87.5vmax; opacity: 0; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,140,.26) 0deg 1.2deg, transparent 1.2deg 11deg);
  animation: udRays 1.05s ease-out forwards;
}
@keyframes udRays {
  0% { opacity: 0; transform: scale(.6) rotate(-10deg); }
  22% { opacity: .75; }
  72% { opacity: .32; }
  100% { opacity: 0; transform: scale(1.2) rotate(10deg); }
}

.ult-dive .ud-streaks {
  position: absolute; inset: -10% 0; opacity: 0;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(255,240,200,.32) 18px 20px, transparent 20px 40px);
  animation: udStreaks .6s .16s ease-out forwards;
}
@keyframes udStreaks {
  0% { opacity: 0; transform: translateY(-16%); }
  38% { opacity: .5; }
  100% { opacity: 0; transform: translateY(18%); }
}

.ult-dive .ud-ghost {
  position: absolute; left: 0; top: 0; width: 286px; height: 412px; margin: -206px 0 0 -143px;
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.72)) drop-shadow(0 0 22px var(--c));
  will-change: transform, opacity;
}
.ult-dive .ud-ghost img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; }

.ult-dive .ud-slam {
  position: absolute; left: 0; top: 0; width: 286px; height: 72px; margin: -36px 0 0 -143px;
  border-radius: 50%; border: 3px solid rgba(255,228,170,.95); opacity: 0;
  box-shadow: 0 0 30px rgba(255,206,120,.9), inset 0 0 26px rgba(255,206,120,.6);
}
.ult-dive .ud-slam.on { animation: udSlam .5s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes udSlam {
  0% { opacity: 0; transform: scale(.2); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.6); }
}

.ult-dive .ud-tag {
  position: absolute; left: 0; right: 0; top: 6.5%; text-align: center;
  font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: 7px; text-indent: 7px;
  color: rgba(255,236,190,.86); text-shadow: 0 0 14px rgba(255,190,90,.7);
  animation: udTag .7s .05s both;
}
@keyframes udTag { 0% { opacity: 0; transform: translateY(-8px); letter-spacing: 16px; } 100% { opacity: 1; transform: none; } }

.ult-dive .ud-name {
  position: absolute; left: 13px; top: 15%; text-align: center;
  writing-mode: vertical-rl; text-orientation: upright;
  animation: udName .8s .1s both;
}
.ult-dive .ud-name b {
  font-family: var(--serif); font-size: 26px; font-weight: 800; letter-spacing: 4px;
  background: linear-gradient(180deg, #FFF6D8, #FFCF6E 45%, #E08A22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 18px rgba(255,190,90,.55);
}
.ult-dive .ud-name i {
  display: block; margin-right: 6px; font-style: normal; font-size: 9px;
  letter-spacing: 3px; color: rgba(255,232,180,.68);
}
@keyframes udName { 0% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; transform: none; } }

/* 冲击帧：暗底衬托 + 十字耀光，解决浅色背景上辉光发糊的问题 */
.fx-impact .dark {
  position: absolute; left: -92px; top: -92px; width: 184px; height: 184px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,38,12,.30) 0%, rgba(74,38,12,.12) 42%, transparent 66%);
  opacity: 0; animation: fxDarkIn .4s ease-out forwards;
}
@keyframes fxDarkIn { 0% { opacity: 0; transform: scale(.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
.fx-impact .flare {
  position: absolute; left: 0; top: 0; width: 156px; height: 7px; margin: -3.5px 0 0 -78px;
  background: linear-gradient(90deg, transparent, #fff 30%, #fff 70%, transparent);
  opacity: 0; filter: drop-shadow(0 0 7px var(--c));
  animation: fxFlare .4s ease-out forwards;
}
.fx-impact.big .flare { width: 200px; height: 9px; margin: -4.5px 0 0 -100px; }
@keyframes fxFlare {
  0% { opacity: 0; transform: rotate(var(--ra)) scaleX(.12); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--ra)) scaleX(1.3); }
}

/* 施法光柱 */
.fx-cast .pillar {
  position: absolute; left: -17px; bottom: 14px; width: 34px; height: 0; border-radius: 8px;
  background: linear-gradient(180deg, transparent, var(--c) 60%, rgba(255,255,255,.9));
  opacity: 0; filter: blur(2.5px);
  animation: fxPillar .66s ease-out forwards;
}
@keyframes fxPillar {
  0% { opacity: 0; height: 0; }
  32% { opacity: .9; height: 96px; }
  100% { opacity: 0; height: 128px; }
}

/* ══════════ 抽卡演出 v2 ══════════ */

/* 稀有度预告光柱 */
.gc-telegraph { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; z-index: 2; pointer-events: none; }
.gc-telegraph i {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 0; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, var(--c) 26%, #fff 50%, var(--c) 74%, transparent 100%);
  filter: blur(12px); opacity: 0;
}
.gc-telegraph.on i { animation: teleBeam .82s cubic-bezier(.4,0,.6,1) forwards; }
.gc-telegraph b {
  position: absolute; left: 50%; top: 46%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: #fff; opacity: 0;
}
.gc-telegraph.on b { animation: teleCore .82s ease-out forwards; }
@keyframes teleBeam {
  0% { opacity: 0; width: 0; }
  26% { opacity: .75; width: 22px; }
  66% { opacity: 1; width: 110px; }
  100% { opacity: 0; width: 240px; }
}
@keyframes teleCore {
  0% { opacity: 0; transform: scale(.2); box-shadow: 0 0 0 0 var(--c); }
  36% { opacity: 1; transform: scale(1); box-shadow: 0 0 34px 12px var(--c); }
  74% { opacity: 1; transform: scale(1.7); box-shadow: 0 0 46px 20px var(--c); }
  100% { opacity: 0; transform: scale(4.4); box-shadow: 0 0 60px 26px var(--c); }
}

/* 落卡闪光 */
.gc-burst {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 46%, #fff 0%, var(--c) 24%, transparent 56%);
}
.gc-burst.on { animation: gcBurstOut .48s ease-out forwards; }
@keyframes gcBurstOut { 0% { opacity: 0; transform: scale(.5); } 16% { opacity: .95; } 100% { opacity: 0; transform: scale(1.45); } }

/* 卡面扫光 + 品质角标 */
.gc-front::after {
  content: ''; position: absolute; top: -40%; left: -70%; width: 44%; height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  transform: rotate(18deg); opacity: 0; pointer-events: none; z-index: 3;
}
.gc-card.on .gc-front::after { animation: gcSweep .58s ease-out forwards; }
@keyframes gcSweep { 0% { left: -70%; opacity: 0; } 22% { opacity: 1; } 100% { left: 135%; opacity: 0; } }

.gc-front .gc-q {
  position: absolute; left: 3px; top: 3px; z-index: 4;
  width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff; letter-spacing: 0;
  background: rgba(120,110,100,.85);
}
.gc-front .gc-q.q-tian { background: linear-gradient(150deg, #FFD98A, #D89A20); color: #4A2A00; }
.gc-front .gc-q.q-di { background: linear-gradient(150deg, #C6AEF0, #7A5FBF); }

/* 十连卡面尺寸微调 */
.gc-cards.ten { grid-template-columns: repeat(5, 64px); gap: 8px; }
.gc-cards.one { grid-template-columns: 178px; }

/* 天品展示 */
.gc-tian {
  position: absolute; inset: 0; z-index: 9; display: none; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(84,48,10,.94) 0%, rgba(24,12,2,.97) 70%);
}
.gc-tian.show { display: block; animation: tianFade .32s ease-out; }
@keyframes tianFade { from { opacity: 0; } to { opacity: 1; } }
.gc-tian .t-rays {
  position: absolute; left: 50%; top: 42%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,130,.30) 0deg 4deg, transparent 4deg 15deg);
  animation: gcSpin 20s linear infinite;
}
.gc-tian .t-spark {
  position: absolute; inset: 0; opacity: .6;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255,214,130,.9) 1px, transparent 1.6px);
  background-size: 90px 90px, 130px 130px;
  animation: sparkUp 8s linear infinite;
}
.gc-tian .t-art { position: absolute; left: 50%; top: 0; width: 78%; height: 100%; transform: translateX(-50%); }
.gc-tian .t-art img, .gc-tian .t-art svg {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%;
  filter: drop-shadow(0 0 34px rgba(255,196,88,.95));
  animation: tArtIn .52s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes tArtIn { from { opacity: 0; transform: translateY(28px) scale(.86); } to { opacity: 1; transform: none; } }
.gc-tian .t-txt { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; }
.gc-tian .t-txt em {
  display: inline-block; font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: 8px; padding: 2px 12px 2px 20px; border-radius: 3px; color: #3A1E06;
  background: linear-gradient(90deg, #FFE9AE, #E8B44C, #FFE9AE);
  box-shadow: 0 4px 14px rgba(0,0,0,.45);
  animation: tTxtIn .4s .06s both;
}
.gc-tian .t-txt b {
  display: block; font-family: var(--serif); font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: 5px; margin-top: 9px;
  text-shadow: 0 0 26px rgba(255,200,100,.95), 0 4px 0 rgba(60,30,10,.55);
  animation: tTxtIn .4s .12s both;
}
.gc-tian .t-txt i { display: block; font-style: normal; font-size: 12px; color: #FFE3A8; letter-spacing: 3px; margin-top: 6px; animation: tTxtIn .4s .18s both; }
@keyframes tTxtIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 蓄力压暗，让光柱在浅色底上也能读出来 */
.gc-dim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 46%, rgba(30,14,0,.10) 18%, rgba(22,10,0,.74) 100%);
}
.gacha-layer.charging .gc-dim { animation: gcDimIn .9s ease-out forwards; }
@keyframes gcDimIn { 0% { opacity: 0; } 52% { opacity: 1; } 100% { opacity: 0; } }

/* 单张卡抽到天品时的放大更克制，避免压住邻卡 */
.gc-card.big { z-index: 6; }
.gc-card.big .gc-inner { transform: rotateY(180deg) translateY(-10px) scale(1.2); transition: transform .45s cubic-bezier(.2,1.4,.5,1); }

/* ══════════ 主城场景（v1.5） ══════════ */
.scene-wrap { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.scene {
  position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  background: #FBF3E4 url('art/home-bg.jpg') center 28% / cover no-repeat;
}
.scene::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 92px; pointer-events: none;
  background: linear-gradient(180deg, rgba(251,243,228,0), rgba(251,243,228,.95));
}
.scene-hint {
  position: absolute; left: 10px; bottom: 8px; z-index: 1;
  font-size: 9px; color: rgba(107,58,18,.5); letter-spacing: 1px;
}

.spot {
  position: absolute; transform: translate(-50%,-50%); cursor: pointer; z-index: 2;
  animation: spotIn .42s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes spotIn {
  from { opacity: 0; transform: translate(-50%,-44%) scale(.72); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.spot .sp-pad { position: relative; width: var(--s); height: var(--s); }
.spot .sp-pad img {
  width: 100%; height: 100%; display: block;
  border-radius: 26%; object-fit: cover; background: #FFF8EA;
  border: 3px solid rgba(255,255,255,.96);
  box-shadow: 0 6px 15px rgba(110,70,30,.30);
  transition: transform .13s ease, box-shadow .13s ease;
}
.spot:active .sp-pad img { transform: scale(.93); box-shadow: 0 3px 8px rgba(110,70,30,.3); }
.spot .sp-name {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 4px;
  white-space: nowrap; font-family: var(--serif); font-size: 11px; font-weight: 700; color: #6B3A12;
  background: rgba(255,252,244,.95); border: 1.5px solid #F0D9B4;
  padding: 1px 8px; border-radius: 9px; box-shadow: 0 2px 5px rgba(140,100,50,.18);
}
.spot .sp-tag {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 28px;
  white-space: nowrap; font-size: 8.5px; letter-spacing: 1px; color: #7A5C38;
  background: rgba(255,252,244,.82); padding: 0 5px; border-radius: 6px; line-height: 13px;
}
.spot.big .sp-pad::after {
  content: ''; position: absolute; inset: -9px; border-radius: 32%;
  border: 2px solid rgba(242,160,61,.75);
  animation: spotGlow 2.4s ease-in-out infinite;
}
@keyframes spotGlow {
  0%, 100% { opacity: .3; transform: scale(1); }
  50% { opacity: .95; transform: scale(1.035); }
}
.sp-dot {
  position: absolute; right: -2px; top: -2px; width: 10px; height: 10px; border-radius: 50%;
  background: #E4572E; border: 2px solid #fff;
  animation: dotPulse 1.7s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228,87,46,.55); }
  50% { box-shadow: 0 0 0 6px rgba(228,87,46,0); }
}

.scene-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(255,249,237,.55), #FFF9ED);
  border-top: 2px solid #F1E3CA;
}
.sf-info { flex: 1 1 auto; min-width: 0; }
.sf-ch { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #6B3A12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-st { font-size: 10px; color: var(--dim); margin-top: 1px; }
.sf-go { flex: 0 0 108px; min-height: 44px; }

/* 模式页返回主城 */
.mode-tab.back { flex: 0 0 auto; background: #F5E9D6; color: #A98A63; font-size: 10.5px; padding: 0 9px; }
.mode-tab.back.on { background: #F5E9D6; color: #A98A63; box-shadow: none; }

/* 导航红点 */
.nav-item .gl { position: relative; }
.nav-dot {
  position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: #E4572E; border: 1.5px solid #fff;
}

/* ══════════ 启动画面（v1.5） ══════════ */
#boot {
  position: absolute; inset: 0; z-index: 90; display: block; overflow: hidden;
  background: #141026; transition: opacity .5s;
}
#boot.hide { opacity: 0; pointer-events: none; }
.boot-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 26%;
  animation: bootZoom 7s ease-out forwards;
}
@keyframes bootZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.boot-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,10,30,.62) 0%, rgba(18,10,30,.04) 26%, rgba(18,10,30,.10) 56%, rgba(14,8,22,.94) 100%);
}
.boot-ui {
  position: absolute; left: 0; right: 0; bottom: 15%;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  animation: bootUiIn .8s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes bootUiIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.boot-logo {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #FFE9B8, #E8A63C 62%, #B5701E);
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 0 26px rgba(255,190,90,.65), 0 8px 20px rgba(0,0,0,.45);
  font-family: var(--serif); font-size: 30px; color: #5A2C08;
  animation: bob 2s ease-in-out infinite;
}
.boot-title {
  font-family: var(--serif); font-size: 21px; letter-spacing: 7px; font-weight: 700;
  color: #FFF6E2; text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 26px rgba(255,190,90,.55);
  margin-top: 2px; padding-left: 7px;
}
.boot-sub { font-size: 10px; letter-spacing: 4px; color: rgba(255,236,200,.72); }
.boot-bar {
  width: 186px; height: 7px; border-radius: 6px; margin-top: 9px; overflow: hidden;
  background: rgba(255,255,255,.16); box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.boot-bar i {
  display: block; height: 100%; width: 0; border-radius: 6px;
  background: linear-gradient(90deg, #F2A03D, #FFD98A);
  box-shadow: 0 0 12px rgba(255,200,110,.9);
  animation: none;
  transition: width .1s linear;
}
.boot-pct { font-size: 10px; color: rgba(255,236,200,.8); letter-spacing: 1px; }
.boot-foot {
  position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom));
  text-align: center; font-size: 8.5px; line-height: 1.6; color: rgba(255,255,255,.5); padding: 0 24px;
}

/* 主城页需要撑满高度（#view 默认是块级滚动容器） */
#view.view-home { display: flex; flex-direction: column; overflow: hidden; padding: 0; }

/* ══════════ 战斗单位 v2：全身立绘站在场上 ══════════ */
.bt-field { padding: 2px 6px; }
.bt-row { gap: 2px; }

.bt-unit {
  --uh: 98px;
  position: relative; display: flex; flex-direction: column; align-items: center;
  border: 0; background: none; padding: 0; box-shadow: none; border-radius: 0;
  overflow: visible; text-align: center;
  animation: unitIn .5s cubic-bezier(.2,1.15,.35,1) backwards;
}
.bt-row.back .bt-unit { --uh: 80px; }
.bt-row.front .bt-unit { --uh: 100px; }
@keyframes unitIn {
  from { opacity: 0; transform: translateY(var(--from, 26px)) scale(.86); }
  to { opacity: 1; transform: none; }
}
.bt-unit.side-b { --from: -26px; }

.bt-unit .bd { position: relative; height: var(--uh); width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bt-unit .bd > img,
.bt-unit .bd > svg { height: 100%; width: auto; max-width: 100%; display: block; mix-blend-mode: multiply; }
.bt-unit .bd > img { animation: unitIdle 3.6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes unitIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.bt-unit.dead .bd > img { animation: none; }

/* 脚下光晕与投影 */
.bt-unit .gnd {
  position: absolute; left: 50%; bottom: -1px; width: 58%; height: 12px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(110,72,28,.34) 0%, rgba(110,72,28,.14) 42%, transparent 72%);
}
.bt-unit .aura {
  position: absolute; left: 50%; bottom: -4px; width: 92%; aspect-ratio: 1 / .42;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none; opacity: .30;
  background: radial-gradient(ellipse at center, var(--fc, #F2A03D) 0%, transparent 68%);
  filter: blur(6px);
}

/* 头顶血条 / 怒气 */
.bt-unit .bar {
  position: absolute; left: 50%; top: -13px; transform: translateX(-50%);
  width: 70%; max-width: 74px; z-index: 3;
}
.bt-unit .hb { height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.55); box-shadow: 0 1px 2px rgba(90,60,25,.25); }
.bt-unit .rb { height: 3px; margin-top: 1.5px; border-radius: 2px; overflow: hidden; background: rgba(255,255,255,.4); }

.bt-unit .un {
  font-size: 9px; font-weight: 600; line-height: 1.3; margin-top: 1px;
  padding: 0 3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #54330F; text-shadow: 0 1px 0 rgba(255,255,255,.75);
}

/* 状态 */
.bt-unit.dead { opacity: .45; }
.bt-unit.dead .bd > img {
  transform: rotate(-74deg) translate(6px, 12px); transform-origin: 50% 90%;
  filter: grayscale(.85) brightness(.92);
  transition: transform .55s cubic-bezier(.3,.9,.4,1), filter .55s;
}
.bt-unit.dead .bar, .bt-unit.dead .aura { opacity: 0; }
.bt-unit.dead .un { opacity: .5; }

.bt-unit.acting .bd > img { filter: drop-shadow(0 0 10px rgba(255,190,90,.95)) drop-shadow(0 0 18px rgba(255,160,60,.6)); }
.bt-unit.hurt .bd > img { animation: hurtShake .26s; }
@keyframes hurtShake {
  0%, 100% { transform: none; }
  22% { transform: translateX(7px) rotate(4deg); }
  52% { transform: translateX(-6px) rotate(-4deg); }
  78% { transform: translateX(3px) rotate(2deg); }
}
.bt-unit.lunging.side-a { animation: lungeA .34s cubic-bezier(.2,1.4,.5,1); }
@keyframes lungeA { 0%, 100% { transform: none; } 42% { transform: translateY(-22px) scale(1.06); } }
.bt-unit.lunging.side-b { animation: lungeB .34s cubic-bezier(.2,1.4,.5,1); }
@keyframes lungeB { 0%, 100% { transform: none; } 42% { transform: translateY(22px) scale(1.06); } }

/* 护盾：包住整个立绘的青色轮廓 */
.bt-unit .sh {
  position: absolute; inset: 4px 8px 6px; border-radius: 42%;
  border: 2px solid rgba(120,180,255,.8); opacity: 0; transition: opacity .25s;
  box-shadow: 0 0 14px rgba(120,180,255,.55), inset 0 0 16px rgba(120,180,255,.25);
  pointer-events: none;
}
/* 怒气满徽标 */
.bt-unit .ultb { right: 6px; top: 2px; }

/* 立绘边缘羽化：去掉方形底色的硬边 */
.bt-unit .bd > img {
  -webkit-mask-image: radial-gradient(ellipse 60% 66% at 50% 45%, #000 54%, rgba(0,0,0,.55) 76%, transparent 92%);
  mask-image: radial-gradient(ellipse 60% 66% at 50% 45%, #000 54%, rgba(0,0,0,.55) 76%, transparent 92%);
}
/* 竖向空间收紧，四排都能站下 */
.bt-unit { --uh: 88px; }
.bt-row.front .bt-unit { --uh: 92px; }
.bt-row.back .bt-unit { --uh: 74px; }
.bt-unit .un { font-size: 8.5px; margin-top: 0; }
.bt-unit .bar { top: -11px; width: 64%; max-width: 66px; }
.bt-side { margin: 0 0 2px; font-size: 9px; }
.bt-vs { margin: 4px 0; }
.bt-field { padding: 0 6px; }

/* 修正入场动画不锁死 transform，让出手/受击动画能生效 */
.bt-unit { animation-fill-mode: backwards; }
.bt-unit.acting {
  box-shadow: none; z-index: 4;
  transform: translateY(-5px);
  transition: transform .12s ease;
}
.bt-unit.hurt { animation: none; }
/* 尺寸放大一档，站位更饱满 */
.bt-unit { --uh: 92px; }
.bt-row.front .bt-unit { --uh: 100px; }
.bt-row.back .bt-unit { --uh: 82px; }

/* ══════════ 结算画面 v2 ══════════ */
.bt-result {
  position: absolute; inset: 0; z-index: 45; display: none;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(52,26,6,.95) 0%, rgba(74,40,12,.93) 42%, rgba(34,18,4,.97) 100%);
  overflow: hidden;
}
.bt-result.show { display: flex; animation: rsIn .32s ease-out; }
@keyframes rsIn { from { opacity: 0; } to { opacity: 1; } }
.rs-glow {
  position: absolute; left: 50%; top: 6%; width: 170vmax; height: 170vmax; margin-left: -85vmax;
  pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255,206,120,.14) 0deg 3deg, transparent 3deg 13deg);
  animation: rsSpin 26s linear infinite;
}
@keyframes rsSpin { to { transform: rotate(360deg); } }

.rs-top { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; padding: 0 8px 4px; }

.rs-word {
  position: absolute; left: 4%; bottom: 6%; z-index: 3;
  font-family: var(--serif); font-size: 54px; font-weight: 900; letter-spacing: 4px; line-height: 1;
  background: linear-gradient(178deg, #FFF7D6 8%, #FFE9A8 24%, #F5C257 48%, #C98A20 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: rotate(-7deg);
  filter: drop-shadow(0 5px 0 rgba(58,24,0,.55)) drop-shadow(0 0 22px rgba(255,190,90,.75));
  animation: rsWordIn .55s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes rsWordIn {
  0% { opacity: 0; transform: rotate(-14deg) scale(.5); }
  60% { opacity: 1; transform: rotate(-4deg) scale(1.12); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}
.bt-result.lose .rs-word { background: linear-gradient(178deg, #E8E2D8, #9E9384 60%, #6E6252); -webkit-background-clip: text; background-clip: text; }
.bt-result.draw .rs-word { background: linear-gradient(178deg, #FFF, #CFC6B6 60%, #8E8371); -webkit-background-clip: text; background-clip: text; }

.rs-hero { position: relative; margin-left: auto; width: 62%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rs-art { position: relative; height: 100%; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rs-art img, .rs-art svg {
  height: 104%; width: auto; max-width: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.5));
  animation: rsArtIn .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes rsArtIn { from { opacity: 0; transform: translateX(34px) scale(.94); } to { opacity: 1; transform: none; } }
.rs-best {
  position: absolute; right: 4px; bottom: 12%; z-index: 3; text-align: right;
  animation: rsTxtIn .5s .18s both;
}
.rs-best em {
  display: block; font-style: normal; font-family: var(--serif); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; color: #4A2400; padding: 2px 10px; border-radius: 4px;
  background: linear-gradient(90deg, #FFDE9A, #E8A63C);
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.rs-best b { display: block; font-family: var(--serif); font-size: 17px; color: #FFE9BE; margin-top: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

.rs-mid { position: relative; z-index: 2; padding: 2px 14px 8px; animation: rsTxtIn .5s .12s both; }
.rs-stage { font-family: var(--serif); font-size: 12.5px; letter-spacing: 1px; color: #FFD98A; }
.bt-result .sub { font-size: 10.5px; color: rgba(255,236,200,.72); margin-top: 2px; }

.rs-bottom { position: relative; z-index: 2; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,214,130,.18); }
.rs-title {
  text-align: center; font-family: var(--serif); font-size: 12px; letter-spacing: 4px;
  color: #FFD98A; margin-bottom: 8px;
}
.rs-title::before, .rs-title::after { content: '—'; margin: 0 8px; color: rgba(255,214,130,.45); }

.bt-result .rw { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rw-item {
  flex: 0 1 auto; min-width: 62px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,246,228,.08); border: 1.5px solid rgba(255,214,130,.28);
  border-radius: 10px; padding: 6px 8px 4px;
  animation: rsTxtIn .45s both;
}
.rw-item:nth-child(2) { animation-delay: .05s; }
.rw-item:nth-child(3) { animation-delay: .1s; }
.rw-item:nth-child(4) { animation-delay: .15s; }
.rw-item:nth-child(5) { animation-delay: .2s; }
.rw-item .ri {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 700; color: #3A1E06;
  background: linear-gradient(160deg, #FFE9B0, #E0A73C);
  box-shadow: 0 0 10px rgba(240,180,80,.5);
}
.rw-item .ri.jade { background: linear-gradient(160deg, #C8F2E6, #45A392); color: #073B33; }
.rw-item .ri.soul { background: linear-gradient(160deg, #E2D2FA, #8B6BC8); color: #2A1546; }
.rw-item .ri.exp { background: linear-gradient(160deg, #D6E9FF, #5B8FF9); color: #0C2450; }
.rw-item .ri.art { background: linear-gradient(160deg, #FFD9E6, #D86A96); color: #4A0F2A; }
.rw-item b { font-size: 12px; color: #FFF1CE; font-weight: 700; }
.rw-item span { font-size: 8.5px; color: rgba(255,236,200,.6); }
.rw-empty { font-size: 11px; color: rgba(255,236,200,.55); padding: 10px 0; }

.bt-result-btns { display: flex; gap: 10px; margin-top: 12px; }
.bt-result-btns .btn {
  flex: 1; background: rgba(255,246,228,.12); border: 2px solid rgba(255,214,130,.4);
  color: #FFE9BE; box-shadow: none;
}
.bt-result-btns .btn.primary {
  background: linear-gradient(180deg, #FFD98A, #E8A63C); color: #4A2400; border-color: #FFEABB;
  box-shadow: 0 4px 0 rgba(150,90,20,.5);
}
@keyframes rsTxtIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 结算立绘：做成金框肖像，避免奶油色方块直接贴在深色背景上 */
.rs-art { padding: 0 0 6px; }
.rs-art::before {
  content: ''; position: absolute; left: 50%; bottom: 4%; width: 78%; aspect-ratio: 1 / 1.1;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,190,90,.35) 0%, rgba(255,160,60,.12) 46%, transparent 70%);
  filter: blur(10px);
}
.rs-art img, .rs-art svg {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  border-radius: 20px;
  border: 2.5px solid rgba(255,214,130,.62);
  box-shadow: 0 10px 26px rgba(0,0,0,.55), 0 0 30px rgba(255,180,80,.25);
  background: #FBF3E4;
}

/* 结算版式收紧：金框肖像不压标题 */
.rs-hero {
  width: 66%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 6px;
}
.rs-art { width: 100%; height: auto; display: flex; align-items: flex-end; justify-content: center; }
.rs-art::before { bottom: 10%; }
.rs-art img, .rs-art svg {
  height: 286px; width: 236px; object-fit: cover; object-position: 50% 26%;
}
.rs-best { position: static; margin-top: 6px; text-align: center; }
.rs-best b { margin-top: 2px; font-size: 15px; }
.rs-word { left: 3%; bottom: 17%; font-size: 50px; }

.rs-word { left: 2%; bottom: 20%; font-size: 46px; letter-spacing: 6px; }
.rs-hero { width: 62%; margin-left: auto; padding-right: 4px; }

/* 胜利二字改为顶部横幅，彻底避开肖像 */
.rs-word {
  left: 50%; top: 16px; bottom: auto;
  transform: translateX(-50%) rotate(-3deg);
  font-size: 44px; letter-spacing: 10px; padding-left: 10px;
}
@keyframes rsWordIn {
  0% { opacity: 0; transform: translateX(-50%) rotate(-12deg) scale(.5); }
  60% { opacity: 1; transform: translateX(-50%) rotate(-2deg) scale(1.1); }
  100% { opacity: 1; transform: translateX(-50%) rotate(-3deg) scale(1); }
}
.rs-top { padding-top: 58px; }

/* ══════════ 武将大卡 v2 ══════════ */
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rcard {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 14px; border: 2.5px solid #fff; background: #FFF6E2;
  box-shadow: 0 4px 10px rgba(150,110,60,.22);
  transition: transform .12s, box-shadow .16s, border-color .16s;
  animation: rcIn .34s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes rcIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.rcard:active { transform: translateY(1px) scale(.985); }
.rcard .rc-art { position: relative; width: 100%; aspect-ratio: 1 / 1.06; overflow: hidden; }
.rcard .rc-art > img, .rcard .rc-art > svg {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 12%;
}
.rcard .rc-shade {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 6px 5px;
  background: linear-gradient(180deg, transparent, rgba(52,28,8,.82));
  text-align: center;
}
.rcard .rname { font-family: var(--serif); font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rcard .rc-stars { font-size: 8.5px; color: #FFD36B; letter-spacing: -1px; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.rcard .rc-lv {
  position: absolute; right: 4px; top: 4px; z-index: 2;
  font-size: 8.5px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 7px;
  background: rgba(60,32,10,.62); backdrop-filter: blur(2px);
}
.rcard .rc-q {
  position: absolute; left: 4px; top: 4px; z-index: 2;
  width: 17px; height: 17px; border-radius: 5px; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(150deg, #C9C1B4, #8E8375);
}
.rcard.q-tian .rc-q { background: linear-gradient(150deg, #FFD98A, #D89A20); color: #4A2A00; }
.rcard.q-di .rc-q { background: linear-gradient(150deg, #C6AEF0, #7A5FBF); }
.rcard .rc-fac {
  position: absolute; right: 4px; bottom: 30px; z-index: 2;
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  font-size: 8px; color: #fff; font-weight: 700; border: 1.5px solid rgba(255,255,255,.85);
}
.rcard .rc-pow {
  text-align: center; font-size: 9.5px; font-weight: 700; color: #A9762F;
  padding: 2px 0 3px; background: #FFF9EC; font-variant-numeric: tabular-nums;
}
.rcard.q-tian { border-color: #FFD98A; }
.rcard.sel { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,160,61,.28), 0 4px 12px rgba(150,110,60,.25); }

/* 有未分配符诏点时的提示点 */
.rcard .rc-pt {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 3;
  width: 7px; height: 7px; border-radius: 50%; background: #E4572E;
  border: 1.5px solid #fff; box-shadow: 0 0 6px rgba(228,87,46,.8);
  animation: dotPulse 1.7s ease-in-out infinite;
}

/* 透明底全身立绘：不吃混色与遮罩 */
.bt-unit .bd > img.cut {
  mix-blend-mode: normal;
  -webkit-mask-image: none; mask-image: none;
  height: calc(var(--uh) * 1.16);
  width: auto;
  filter: drop-shadow(0 4px 5px rgba(90,60,25,.32));
}
.rs-art img.cut {
  background: none; border: 0; border-radius: 0;
  height: 420px; width: auto; object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.65));
}
.rs-hero { justify-content: center; }

/* ══════════ v1.8.0 全员透明立绘接入 ══════════ */

/* 通用：透明立绘在小容器里 contain 底对齐站立 */
.pv > img.cut {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: normal;
}

/* 武将大卡：立绘站品质渐变底 */
.rcard .rc-art { background: linear-gradient(180deg, #F7EDD8 0%, #D9C69B 100%); }
.rcard.q-tian .rc-art { background: linear-gradient(180deg, #FFEDC0 0%, #E8B44C 100%); }
.rcard.q-di .rc-art { background: linear-gradient(180deg, #F0E6FA 0%, #A98FD6 100%); }
.rcard.q-ren .rc-art { background: linear-gradient(180deg, #E4F2EA 0%, #7FC0B3 100%); }
.rcard .rc-art > img.cut {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 4px 4px rgba(90,60,25,.25));
  transition: transform .18s ease;
}
.rcard:active .rc-art > img.cut { transform: translateY(-3px) scale(1.03); }

/* 抽卡卡面：立绘 + 品质渐变底 */
.gc-front { background: linear-gradient(180deg, #F7EDD8, #D9C69B); }
.gc-card.q-tian .gc-front { background: linear-gradient(180deg, #FFEDC0, #E8B44C); }
.gc-card.q-di .gc-front { background: linear-gradient(180deg, #F0E6FA, #A98FD6); }
.gc-card.q-ren .gc-front { background: linear-gradient(180deg, #E4F2EA, #7FC0B3); }
.gc-front > img.cut {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%; mix-blend-mode: normal;
  filter: drop-shadow(0 3px 3px rgba(90,60,25,.2));
}

/* 天品展示层：立绘金光 */
.gc-tian .t-art img.cut {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 62%;
  mix-blend-mode: normal;
}

/* 技能特写（cutin）：立绘 contain 站底 */
.cutin .ci-art img.cut {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 6px 10px rgba(60,30,5,.35));
}

/* 神威大招全屏演出：透明立绘 */
.ult-stage .us-art img.cut {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: normal;
}

/* 详情页 hero：立绘站奶油渐变底 */
.hero > img.cut {
  mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 6px 8px rgba(160,110,40,.22));
}
.hero .veil { background: linear-gradient(180deg, transparent 55%, rgba(255,250,240,.35) 72%, rgba(255,250,240,.96) 96%); }

/* 关卡节点敌方首领：立绘圆形徽章 */
.mn-face img.cut {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  mix-blend-mode: normal;
}

/* 结算页 MVP 立绘：入场后接呼吸 */
.rs-art img.cut {
  animation: rsArtIn .6s cubic-bezier(.16,1,.3,1) both, rsIdle 3.4s ease-in-out .72s infinite;
}
@keyframes rsIdle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ══════════ v1.9.0 兑换码 ══════════ */
.redeem-in {
  flex: 1; min-width: 0; height: 34px; padding: 0 10px;
  border: 2px solid #E8D3AE; border-radius: 10px;
  background: #FFFDF8; color: #5A4026; font-size: 12.5px;
  font-family: inherit; letter-spacing: .5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.redeem-in::placeholder { color: #BEA98A; font-size: 11.5px; }
.redeem-in:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,160,61,.18); }
.redeem-get { margin-top: 4px; }
.redeem-get .rg-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; margin-bottom: 6px; border-radius: 10px;
  background: linear-gradient(180deg, #FFF8E8, #FBEBC8);
  border: 1.5px solid #F0DFBC;
}
.redeem-get .rg-row span { font-size: 12px; color: #8A6A3E; }
.redeem-get .rg-row b { font-size: 15px; color: #C07A18; font-variant-numeric: tabular-nums; }

/* ══════════ v1.10.0 折叠面板 / 台词字幕 / 编队瘦身 ══════════ */

/* 折叠卡：头部整行可点，内容默认收起 */
.card.fold { padding: 0; overflow: hidden; }
.card.fold .fhead {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 11px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card.fold .fhead b {
  font-family: var(--serif); font-size: 13px; font-weight: 600;
  letter-spacing: 1px; color: var(--gold-lit); flex: 0 0 auto;
}
.card.fold .fhead .fsub {
  font-size: 9.5px; color: var(--muted); flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card.fold .fhead .btn { flex: 0 0 auto; }
.card.fold .far {
  flex: 0 0 auto; width: 14px; height: 14px; position: relative;
  transition: transform .22s ease; opacity: .6;
}
.card.fold .far::before {
  content: ''; position: absolute; left: 3px; top: 4px;
  width: 6px; height: 6px; border-right: 2px solid #8A6A3E; border-bottom: 2px solid #8A6A3E;
  transform: rotate(-45deg); border-radius: 1px;
}
.card.fold.open .far { transform: rotate(90deg); }
.card.fold .fbody { display: none; padding: 0 11px 11px; }
.card.fold.open .fbody { display: block; animation: foldIn .22s ease; }
@keyframes foldIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 羁绊两列紧凑 */
.bond-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bond-grid .bond-item { margin: 0; padding: 6px 8px; }
.bond-grid .bond-item .bn { font-size: 11px; }
.bond-grid .bond-item .bd { font-size: 9px; line-height: 1.35; }

/* 编队阵位卡压缩 */
.form-grid .rcard .rhead { height: 52px; }
.form-grid .rcard .rbody { padding: 4px 6px 5px; }
.form-grid .rcard .rbody .rname { font-size: 11.5px; }
.form-grid .rcard .rbody .rmeta { font-size: 8.5px; margin-top: 0; gap: 3px; }
.form-grid .rcard .rbody .rp { font-size: 9.5px; margin-top: 1px; }

/* 台词字幕条 */
#voiceLine {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(10px);
  z-index: 95; max-width: 88%; padding: 9px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(58,34,12,.94), rgba(40,22,6,.96));
  border: 1.5px solid rgba(255,208,120,.55);
  box-shadow: 0 6px 20px rgba(60,30,0,.45), inset 0 0 14px rgba(255,190,90,.12);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  text-align: center;
}
#voiceLine.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#voiceLine b {
  display: block; font-family: var(--serif); font-size: 10.5px; color: #FFD98A;
  letter-spacing: 2px; margin-bottom: 2px;
}
#voiceLine span {
  display: block; font-family: var(--serif); font-size: 13px; color: #FFF6E2;
  letter-spacing: .5px; line-height: 1.4;
}

/* 天品台词行 */
.gc-tian .t-line {
  display: block; margin-top: 6px; font-family: var(--serif); font-size: 12px;
  color: #FFF0CE; letter-spacing: 1px; text-decoration: none;
  text-shadow: 0 0 12px rgba(255,190,90,.65); animation: tLineIn .5s .3s both;
}
@keyframes tLineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 顶栏资源：大额数字压缩后的余量 */
.coin { padding: 4px 6px; }
.coin .v { font-size: 10.5px; letter-spacing: -.2px; }

/* ══════════ v1.11.0 战斗冲击感 ══════════ */

/* 贴地冲击波：两圈错开扩散的椭圆涟漪 */
.fx-impact .ripple {
  position: absolute; left: -62px; top: -15px; width: 124px; height: 36px;
  border: 2.5px solid var(--c); border-radius: 50%;
  transform: scale(.2); opacity: 0;
  box-shadow: 0 0 22px var(--c), inset 0 0 12px var(--c);
  animation: fxRipple .68s cubic-bezier(.15,.75,.25,1) forwards;
}
.fx-impact .ripple.d2 { border-color: #fff; animation-delay: .1s; }
@keyframes fxRipple {
  0% { transform: scale(.18) rotateX(58deg); opacity: .95; }
  55% { opacity: .5; }
  100% { transform: scale(2.7) rotateX(58deg); opacity: 0; }
}

/* 尘土：贴地向外抛物飞散 */
.fx-impact .dust {
  position: absolute; left: -4px; top: 2px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,246,222,.95), rgba(190,160,110,.5) 60%, transparent 74%);
  opacity: 0; animation: fxDust .62s cubic-bezier(.2,.6,.4,1) forwards; animation-delay: var(--dl);
}
@keyframes fxDust {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(4px) scale(.4); }
  22% { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) translateY(-18px) scale(1.6); }
}

/* 全屏白闪（暴击/大招） */
.fx-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 52%, rgba(255,255,255,.8), rgba(255,240,210,.26) 42%, transparent 72%);
  opacity: 0; animation: fxScreenFlash .16s ease-out forwards;
}
@keyframes fxScreenFlash { 0% { opacity: 0; } 24% { opacity: 1; } 100% { opacity: 0; } }

/* 出手残影 */
.fx-ghost {
  position: absolute; object-fit: contain; object-position: 50% 100%;
  opacity: .32; filter: blur(1.5px) brightness(1.7) saturate(1.15);
  mix-blend-mode: screen; pointer-events: none;
  animation: fxGhostOut .42s ease-out forwards;
}
@keyframes fxGhostOut { 0% { opacity: .38; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05) translateY(-5px); } }

/* 冲刺：上下对攻是纵向推进 —— 我方上冲 / 敌方下冲（原来用横向位移，角色会横着滑） */
.bt-unit.lunging.side-a { animation: lungeA .42s cubic-bezier(.3,.9,.35,1); z-index: 6; }
.bt-unit.lunging.side-b { animation: lungeB .42s cubic-bezier(.3,.9,.35,1); z-index: 6; }
@keyframes lungeA {
  0% { transform: none; }
  15% { transform: translateY(7px) scale(.97); }
  44% { transform: translateY(-44px) scale(1.12); }
  64% { transform: translateY(-26px) scale(1.05); }
  100% { transform: none; }
}
@keyframes lungeB {
  0% { transform: none; }
  15% { transform: translateY(-7px) scale(.97); }
  44% { transform: translateY(44px) scale(1.12); }
  64% { transform: translateY(26px) scale(1.05); }
  100% { transform: none; }
}

/* 受击：击退 + 闪白 + 回弹（原来只是左右抖） */
.bt-unit.hurt .bd > img { animation: hurtKick .3s cubic-bezier(.25,.8,.4,1); }
@keyframes hurtKick {
  0% { transform: none; }
  20% { transform: translate(0, var(--kb, 18px)) rotate(4deg) scale(.97); filter: brightness(1.26) saturate(.92) contrast(1.08); }
  52% { transform: translate(0, calc(var(--kb, 18px) * .38)) rotate(-2deg) scale(1.02); filter: brightness(1.1); }
  100% { transform: none; }
}

/* 阵亡：向后击飞翻滚 + 落地沉降（原来只转 74 度） */
.bt-unit.dead .bd > img {
  transform: translate(var(--fbx, -12px), var(--fly, 36px)) rotate(-118deg) scale(.78);
  transform-origin: 50% 88%;
  filter: grayscale(.92) brightness(.8);
  transition: transform .66s cubic-bezier(.2,.8,.3,1), filter .5s ease;
}

/* 战场氛围：内阴影暗角让角色更突出、前后排有纵深 */
.bt-field { box-shadow: inset 0 0 64px 22px rgba(30,18,6,.32); }
.bt-row.back .bt-unit .bd > img { filter: brightness(.93) saturate(.95); }
.bt-row.back .bt-unit .bd > img.cut { filter: drop-shadow(0 4px 5px rgba(90,60,25,.3)) brightness(.93); }

/* ══════════ v1.13.0 星级进度条 ══════════ */
.star-bar {
  height: 6px; margin-top: 6px; border-radius: 3px; overflow: hidden;
  background: #F2E4C8; box-shadow: inset 0 1px 2px rgba(160,120,60,.18);
}
.star-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #FFD98A, #E8A93C);
  box-shadow: 0 0 8px rgba(232,169,60,.5);
  transition: width .35s ease;
}
/* S+ 品质角标更醒目 */
.rcard .rc-q[style*="FF7040"] { box-shadow: 0 0 8px rgba(255,112,64,.7); }

/* ══════════ v1.14.0 资料编辑 / 编队大卡 ══════════ */

/* 顶栏头像：支持自定义角色图 */
.avatar { overflow: hidden; cursor: pointer; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 50%; display: block; }
.who .nm { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.who .nm .edit-dot { font-size: 9px; opacity: .45; font-weight: 400; }

/* 资料弹层：头像九宫格 */
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 6px; }
.av-cell {
  position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  border: 2.5px solid #F0E0C6; background: #FFF9EC;
  display: grid; place-items: center; cursor: pointer;
  font-family: var(--serif); font-size: 18px; color: #A9762F;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.av-cell img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.av-cell i {
  position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 8px;
  text-align: center; color: #fff; padding: 7px 0 2px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
}
.av-cell.on { border-color: var(--orange); box-shadow: 0 0 0 2.5px rgba(242,160,61,.3); }
.av-cell.on::after {
  content: '✓'; position: absolute; right: 3px; top: 3px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--orange); color: #fff; font-size: 9px;
  display: grid; place-items: center; font-weight: 700;
}
.av-cell:active { transform: scale(.96); }

/* 编队阵位卡：阵眼徽章 */
.rcard .rc-lead {
  position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 3;
  font-size: 8px; font-weight: 700; color: #4A2A00; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 7px;
  background: linear-gradient(150deg, #FFE9A8, #E8B44C);
  box-shadow: 0 1px 4px rgba(160,110,30,.35);
}

/* ══════════ v1.15.0 悬浮强化 / 护法卡片 / 性别 ══════════ */

/* 右下角悬浮一键强化 */
#fab { position: absolute; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 24; display: none; }
#fab.show { display: block; }
.fab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 64px; height: 64px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(150deg, #FFB03D 0%, #EF5A22 62%, #D63A12 100%);
  border: 2.5px solid rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(200,80,20,.42), inset 0 2px 0 rgba(255,255,255,.38);
  color: #fff; font-family: var(--serif);
  animation: fabIn .32s cubic-bezier(.2,1.35,.4,1);
}
.fab-btn b { font-size: 21px; line-height: 1; text-shadow: 0 1px 2px rgba(120,40,0,.35); }
.fab-btn span { font-size: 8.5px; letter-spacing: .5px; opacity: .96; }
.fab-btn:active { transform: scale(.93); }
@keyframes fabIn { from { opacity: 0; transform: translateY(14px) scale(.82); } to { opacity: 1; transform: none; } }

/* 护法：三列卡片（替代 11 行长列表） */
.gd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.gd-card {
  position: relative; padding: 11px 6px 9px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, #FFFCF4, #FBF0D9);
  border: 2px solid #F0E0C6; cursor: pointer;
  transition: transform .12s, border-color .15s, box-shadow .15s;
}
.gd-card:active { transform: scale(.97); }
.gd-card.on {
  border-color: var(--gold);
  background: linear-gradient(180deg, #FFF7E2, #F6E2B0);
  box-shadow: 0 0 0 2.5px rgba(201,165,92,.26);
}
.gd-card.lock { opacity: .45; cursor: default; filter: grayscale(.4); }
.gd-seal {
  width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: #7A4A12;
  background: radial-gradient(circle at 35% 28%, #FFE9B8, #E5BC6C 72%);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(170,120,40,.28);
}
.gd-card.on .gd-seal { background: radial-gradient(circle at 35% 28%, #FFF6CC, #E8A93C 72%); color: #5A3000; }
.gd-name {
  font-family: var(--serif); font-size: 10.5px; font-weight: 600; color: #5A4026;
  line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-desc { font-size: 8.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.gd-tag {
  position: absolute; right: 4px; top: 4px; font-size: 7.5px; font-weight: 700;
  padding: 1px 4px; border-radius: 5px; background: rgba(201,165,92,.18); color: #8A6A2E;
}
.gd-card.on .gd-tag { background: var(--gold); color: #fff; }
.gd-card.lock .gd-tag { background: rgba(120,110,100,.16); color: #8A8175; }

/* 性别选择 */
.sex-row { display: flex; gap: 8px; margin-top: 5px; }
.sex-btn {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
  border: 2px solid #F0E0C6; background: #FFFDF8; color: #8A6A3E;
  font-family: var(--serif); font-size: 13px; letter-spacing: 2px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sex-btn.on {
  border-color: var(--orange);
  background: linear-gradient(180deg, #FFF0DC, #FFDCB4);
  color: #A9531A; box-shadow: 0 0 0 2.5px rgba(242,160,61,.22);
}
/* 女性玩家默认头像配色 */
.avatar.female { background: linear-gradient(180deg, #FFD9E6, #F58FB2); color: #8C3A5A; }

/* ══════════ v1.16.0 阵营光环 / 升星面板 ══════════ */

/* 编队页阵营光环 */
.aura-line { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 2px 0; }
.aura-chip {
  font-size: 9.5px; font-weight: 600; padding: 2px 7px; border-radius: 8px;
  border: 1.5px solid; background: rgba(255,255,255,.72);
}
.aura-line.dim { font-size: 9.5px; color: var(--dim); }

/* 升星面板 */
.star-panel { padding: 12px 13px; }
.sp-top { display: flex; align-items: center; gap: 8px; }
.sp-tier {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff; flex: 0 0 auto;
  box-shadow: 0 2px 5px rgba(120,70,20,.25);
}
.sp-stars {
  font-size: 15px; letter-spacing: 1px; color: #E8A93C; flex: 1 1 auto; min-width: 0;
  overflow: hidden; white-space: nowrap; text-shadow: 0 1px 2px rgba(180,120,30,.25);
}
.sp-count { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.sp-mats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 11px; }
.sp-mat {
  text-align: center; padding: 9px 4px 7px; border-radius: 11px;
  border: 2px solid #EFE0C4; background: #FFFCF4;
  transition: border-color .2s, background .2s;
}
.sp-mat.ok { border-color: #9AD9C4; background: #F3FBF7; }
.sp-mat-ic {
  width: 34px; height: 34px; margin: 0 auto 4px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-weight: 700;
  color: #7A4A12; background: linear-gradient(160deg, #FFE9B8, #E5BC6C);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(170,120,40,.22);
}
.sp-mat.soul .sp-mat-ic { background: linear-gradient(160deg, #E3D4F7, #A98FD6); color: #4A2A6A; }
.sp-mat-n { font-size: 11px; font-weight: 700; color: #5A4026; font-variant-numeric: tabular-nums; }
.sp-mat-l { font-size: 8.5px; color: var(--dim); margin-top: 1px; }
.sp-talent {
  margin-top: 10px; padding: 8px 10px; border-radius: 9px; font-size: 10.5px; color: #7A5A2E;
  background: linear-gradient(90deg, #FFF6DF, #FBEBC8); border: 1.5px solid #F0DFBC;
}
.sp-talent b { color: #B4761A; }
.sp-gots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sp-gots span {
  font-size: 8.5px; color: #4E7A6C; background: rgba(127,192,179,.16);
  padding: 1px 6px; border-radius: 7px;
}
.sp-rows { margin-top: 9px; border-top: 1px dashed #EEDFC2; padding-top: 3px; }
.sp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 10.5px;
}
.sp-row > span { color: var(--muted); flex: 0 0 auto; }
.sp-row b {
  color: #5A4026; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden;
}
.sp-row b i { font-style: normal; color: #C9A55C; font-size: 13px; flex: 0 0 auto; }
.sp-row b.sp-line { font-size: 12px; color: #D89A20 !important; letter-spacing: .5px; }
.sp-btn { margin-top: 8px; }

/* ══════════ v1.17.0 同盟 / 灵脉 / 试炼 ══════════ */

/* 同盟商店 */
.ally-shops { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ally-shop {
  padding: 9px 10px 10px; border-radius: 11px; text-align: center;
  background: linear-gradient(180deg, #FFFCF4, #FBF0D9); border: 2px solid #F0E0C6;
}
.ally-shop.sold { opacity: .55; }
.ally-shop .as-name { font-family: var(--serif); font-size: 11px; color: #5A4026; font-weight: 600; line-height: 1.3; }
.ally-shop .as-cost { font-size: 9px; color: #B4761A; margin: 3px 0 6px; }
.ally-shop .btn { width: 100%; }

/* 灵脉矿位 */
.mine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mine-slot {
  position: relative; border-radius: 13px; padding: 8px 7px 9px; text-align: center;
  background: linear-gradient(180deg, #FFFDF7, #F7ECD6); border: 2px solid #F0E0C6;
  overflow: hidden; min-height: 168px;
}
.mine-slot.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border-style: dashed; background: #FFFBF2; min-height: 168px;
}
.mine-slot .ms-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 18px; color: #C9A55C; background: #FFF3DA; border: 1.5px dashed #E6D2B2;
}
.mine-slot .ms-t { font-family: var(--serif); font-size: 10.5px; color: #8A6A3E; letter-spacing: 1px; }
.mine-slot .ms-d { font-size: 8.5px; color: var(--dim); }
.mine-slot .ms-head { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.mine-slot .ms-head b { font-family: var(--serif); font-size: 11px; color: #5A4026; }
.mine-slot .ms-head span { font-size: 8px; color: #B4761A; }
.mine-slot .ms-art { height: 66px; display: flex; align-items: flex-end; justify-content: center; margin: 2px 0 1px; }
.mine-slot .ms-art img { max-height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 2px 3px rgba(90,60,25,.25)); }
.mine-slot .ms-get { font-size: 10px; font-weight: 700; color: #C07A18; font-variant-numeric: tabular-nums; }

/* 试炼窟 */
.trial-card {
  padding: 11px 12px 12px; border-radius: 13px; margin-bottom: 9px;
  background: linear-gradient(180deg, #FFFDF7, #F9EFD9); border: 2px solid #F0E0C6;
  box-shadow: 0 2px 8px rgba(170,130,70,.1);
}
.trial-card .tc-head { display: flex; align-items: baseline; justify-content: space-between; }
.trial-card .tc-head b { font-family: var(--serif); font-size: 13px; color: #5A4026; letter-spacing: 1px; }
.trial-card .tc-head span { font-size: 9.5px; color: #B4761A; font-variant-numeric: tabular-nums; }
.trial-card .tc-reward { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
.trial-card .tc-reward span {
  font-size: 9px; color: #6E8A7E; background: rgba(127,192,179,.16);
  padding: 2px 6px; border-radius: 7px;
}

/* ══════════ v1.18.0 图标化按钮 / BOSS 舞台 ══════════ */
.btn .ic { width: 15px; height: 15px; flex: 0 0 auto; }
.btn .ic.big { width: 18px; height: 18px; }
.btn.primary .ic { filter: drop-shadow(0 1px 1px rgba(120,40,0,.35)); }

/* 同盟 BOSS 舞台：把它当"关卡图"来做，而不是一行按钮 */
.boss-stage {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 10px;
  min-height: 240px; display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(ellipse 62% 52% at 50% 36%, rgba(120,40,150,.42), transparent 68%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(60,20,80,.55), transparent 70%),
    linear-gradient(180deg, #2A1636 0%, #3B2140 52%, #1E1226 100%);
  border: 2.5px solid rgba(255,214,140,.32);
  box-shadow: inset 0 0 42px rgba(0,0,0,.55), 0 6px 18px rgba(60,20,60,.28);
}
.boss-stage .bs-rays {
  position: absolute; left: 50%; top: 34%; width: 300px; height: 300px; transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, rgba(255,220,150,.16), transparent 22%, rgba(255,220,150,.16) 44%, transparent 66%, rgba(255,220,150,.16) 88%, transparent);
  animation: bsRaySpin 16s linear infinite; opacity: .7;
}
@keyframes bsRaySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.boss-stage .bs-floor {
  position: absolute; left: 50%; bottom: 44px; width: 210px; height: 34px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(ellipse, rgba(160,90,220,.5), transparent 70%);
  filter: blur(3px);
}
.boss-art {
  position: relative; width: 100%; height: 100%; min-height: 240px;
  display: flex; align-items: flex-end; justify-content: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.boss-art img {
  height: 208px; width: auto; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.6)) drop-shadow(0 0 22px rgba(170,90,230,.55));
  animation: bossIdle 3.2s ease-in-out infinite;
  transition: transform .12s, filter .12s;
}
@keyframes bossIdle { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.015); } }
.boss-art:active img { transform: scale(.97); filter: brightness(1.5) drop-shadow(0 0 26px #FF6B4A); }
.boss-art .bs-tag {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: #FFE1A8;
  padding: 3px 8px; border-radius: 7px; background: rgba(90,30,110,.75); border: 1.5px solid rgba(255,210,140,.4);
}
.boss-art .bs-name {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 3; text-align: center;
  font-family: var(--serif); font-size: 19px; font-weight: 800; letter-spacing: 3px;
  color: #FFF0CC; text-shadow: 0 2px 8px rgba(0,0,0,.85), 0 0 18px rgba(255,120,60,.55);
}
.boss-art .bs-cta {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 3;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #3A1600;
  padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
  box-shadow: 0 3px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6);
  animation: bsCtaPulse 1.8s ease-in-out infinite;
}
@keyframes bsCtaPulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.06); } }
.boss-art.done .bs-cta { background: rgba(120,110,120,.9); color: #E6E0E8; animation: none; }
.boss-art .bs-name { bottom: 14px; font-size: 18px; }
.boss-art .bs-title {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 3; text-align: center;
  font-size: 9px; letter-spacing: .14em; color: rgba(255,226,190,.86);
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.boss-stage { display: block; }
.bs-info {
  margin-top: -14px; position: relative; z-index: 4;
  background: linear-gradient(180deg, #2B1038, #1C0A28);
  border-radius: 14px; padding: 12px 14px 12px;
  border: 1px solid rgba(255,200,150,.18);
  box-shadow: 0 10px 24px rgba(30,8,40,.35);
}
.bs-info .bs-hp {
  height: 10px; border-radius: 6px; background: rgba(20,6,30,.72);
  border: 1px solid rgba(255,200,150,.26); overflow: hidden; margin-bottom: 8px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
}
.bs-info .bs-hp i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #FF7A5C, #FFCB75);
  box-shadow: 0 0 10px rgba(255,140,90,.6);
  transition: width .5s cubic-bezier(.2,.9,.3,1);
}
.bs-hprow { display: flex; align-items: baseline; gap: 6px; margin-bottom: 9px; }
.bs-hprow span { font-size: 9px; color: #B79AC4; letter-spacing: .1em; }
.bs-hprow b { font-size: 12px; color: #FFE2B0; font-variant-numeric: tabular-nums; margin-left: auto; }
.bs-hprow i { font-style: normal; font-size: 10px; color: #FF9E6A; font-weight: 700; }
.boss-art .bs-cta,
.bs-info .bs-cta {
  position: static; transform: none; display: block; width: 100%;
  padding: 9px 0; border-radius: 10px; border: none;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #3A1600;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
  box-shadow: 0 3px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.55);
  animation: none; cursor: pointer;
}
.bs-info .bs-cta[disabled] { background: rgba(120,110,120,.5); color: #CFC6D4; box-shadow: none; }
.bs-info .bs-cta.summon { background: linear-gradient(180deg, #9BE3B2, #4FA97A); color: #07301D; }
.boss-art.done img { filter: grayscale(.65) brightness(.7) drop-shadow(0 6px 12px rgba(0,0,0,.6)); }

.boss-art::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(40,12,54,0), rgba(26,8,38,.9));
}
.boss-art .bs-hpnum { font-weight: 700; color: #FFE2B0; }

/* BOSS 击打反馈 */
.boss-art.hit img { animation: bossHit .32s ease-out; }
@keyframes bossHit {
  0% { transform: translateX(0) rotate(0); }
  22% { transform: translateX(9px) rotate(3deg) scale(1.04); filter: brightness(2) saturate(.6); }
  55% { transform: translateX(-6px) rotate(-2deg); }
  100% { transform: none; }
}

/* 卡片顶部高光条，增加层次 */
.card { position: relative; }
.card::before {
  content: ''; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,225,170,.75), transparent);
  pointer-events: none;
}
.sec-title { position: relative; }
.sec-title::before {
  content: ''; position: absolute; left: -2px; top: 50%; width: 3px; height: 12px;
  transform: translateY(-50%); border-radius: 2px;
  background: linear-gradient(180deg, #FFD98A, #D08A2A);
}
.sec-title { padding-left: 8px; }

/* ══════════ v1.19.0 物品图标体系 ══════════ */

/* 物资徽章：彩色底 + 白色图形（替代文字名） */
.it {
  width: 17px; height: 17px; border-radius: 5px; flex: 0 0 auto;
  display: inline-grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(120,80,30,.22);
  vertical-align: -3px;
}
.it svg { width: 11px; height: 11px; }
.it.tiny { width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; }
.it.tiny svg { width: 8.5px; height: 8.5px; }
.it.big { width: 32px; height: 32px; border-radius: 9px; }
.it.big svg { width: 19px; height: 19px; }
.it-gold    { background: linear-gradient(160deg, #FFE1A4, #D8912B); }
.it-jade    { background: linear-gradient(160deg, #A8EEDC, #2E9C86); }
.it-soul    { background: linear-gradient(160deg, #D6BCF7, #7A5FBF); }
.it-stam    { background: linear-gradient(160deg, #FFB0A0, #CE4526); }
.it-shard   { background: linear-gradient(160deg, #C6DCFF, #4A7BD6); }
.it-exp     { background: linear-gradient(160deg, #FFE9AE, #C79A3A); }
.it-contrib { background: linear-gradient(160deg, #CBEAB8, #5E9E4A); }
.it-star    { background: linear-gradient(160deg, #FFDD92, #E8A93C); }

/* 顶栏：图标 + 数字，去掉文字标签 */
.coin { gap: 5px; }
.coin .v { font-size: 11.5px; font-weight: 700; }
.coin .k { display: none; }

/* 奖励行：图标 + 数字 */
.reward-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.reward-line > span, .reward-line > i, .reward-line > b { display: inline-flex; align-items: center; gap: 3px; }
.reward-line b { font-variant-numeric: tabular-nums; color: #8A5A20; font-size: 11px; }

/* 商店：大图标 + 名称 + 贡献价 */
.ally-shop .it.big { margin-bottom: 5px; }
.ally-shop .as-name { font-size: 10.5px; margin-bottom: 2px; }
.ally-shop .as-cost { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 0 0 7px; }
.ally-shop .as-cost b { font-size: 10px; color: #4E7A3C; font-variant-numeric: tabular-nums; }

/* ══════════ v1.20.0 抽卡页重做 / 导航图标化 ══════════ */

/* 底部导航：字形块 → 线性图标 */
.nav-item .gl svg { width: 19px; height: 19px; transition: transform .18s; }
.nav-item.on .gl svg { transform: translateY(-1px) scale(1.06); }
.nav-item .gl { color: #A8916E; transition: color .18s; }
.nav-item.on .gl { color: #E07A22; }

/* 玩法页签图标 */
.mode-tab { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.mode-tab svg { width: 13px; height: 13px; opacity: .8; }
.mode-tab.on svg { opacity: 1; }

/* ── 保底进度卡 ── */
.pity-card {
  margin-top: 10px; padding: 10px 12px 9px; border-radius: 13px;
  background: linear-gradient(180deg, #FFFCF3, #FBF0D8);
  border: 2px solid #F0E0C2;
  box-shadow: 0 2px 0 rgba(200,170,120,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--serif); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; color: #A9762F;
}
.pc-label svg { width: 13px; height: 13px; color: #E8A93C; }
.pc-left { font-size: 9.5px; color: var(--muted); }
.pc-left b { font-size: 13px; color: #D9502E; font-variant-numeric: tabular-nums; }
.pc-left em { font-style: normal; font-weight: 700; color: #C07A18; }
.pc-track {
  position: relative; height: 9px; margin-top: 7px; border-radius: 6px; overflow: hidden;
  background: #F1E2C6; box-shadow: inset 0 1px 2px rgba(160,120,60,.2);
}
.pc-track.slim { height: 7px; margin-top: 0; flex: 1; }
.pc-track i {
  display: block; height: 100%; border-radius: 6px; position: relative;
  background: linear-gradient(90deg, #FFD98A, #F2A03D 72%, #E86A2A);
  box-shadow: 0 0 9px rgba(242,160,61,.55);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.pc-track i > s {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  background-size: 42% 100%; background-repeat: no-repeat;
  animation: pcShine 2.4s ease-in-out infinite;
}
@keyframes pcShine { 0% { background-position: -60% 0; } 60%, 100% { background-position: 160% 0; } }
.pc-bot {
  display: flex; justify-content: space-between; margin-top: 3px;
  font-size: 8.5px; color: var(--dim); font-variant-numeric: tabular-nums;
}

/* ── 抽卡按钮：图文大卡 ── */
.gacha-btns { display: flex; gap: 9px; margin-top: 11px; }
.gbtn {
  position: relative; flex: 1; overflow: hidden; cursor: pointer;
  padding: 12px 10px 11px; border-radius: 15px; text-align: center;
  border: 2px solid #EDD9B6; background: linear-gradient(180deg, #FFFDF6, #F9EBCD);
  font-family: var(--serif); color: #7A5426;
  box-shadow: 0 3px 0 rgba(200,165,105,.28), inset 0 1px 0 #fff;
  transition: transform .11s, box-shadow .11s;
}
.gbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(200,165,105,.28), inset 0 1px 0 #fff; }
.gbtn .gb-main {
  display: block; font-size: 17px; font-weight: 800; letter-spacing: 4px;
  line-height: 1.2; text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.gbtn .gb-cost {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.72);
  border: 1px solid rgba(200,170,120,.4);
}
.gbtn .gb-cost b {
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: #8A5A20;
}
.gbtn .gb-glow {
  position: absolute; left: 50%; top: -34px; width: 110px; height: 70px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,225,160,.7), transparent 70%);
  pointer-events: none;
}
/* 十连：橙金主按钮 */
.gbtn.hot {
  flex: 1.38; border-color: #E88A34;
  background: linear-gradient(180deg, #FFB13E 0%, #F58322 52%, #DD5C14 100%);
  color: #fff;
  box-shadow: 0 3px 0 #B84A0C, 0 8px 18px rgba(220,100,20,.34), inset 0 1px 0 rgba(255,255,255,.55);
}
.gbtn.hot:active { box-shadow: 0 1px 0 #B84A0C, 0 4px 10px rgba(220,100,20,.3), inset 0 1px 0 rgba(255,255,255,.55); }
.gbtn.hot .gb-main { font-size: 19px; text-shadow: 0 2px 3px rgba(140,50,0,.42); }
.gbtn.hot .gb-cost { background: rgba(120,40,0,.26); border-color: rgba(255,255,255,.34); }
.gbtn.hot .gb-cost b { color: #FFF3D6; }
.gbtn.hot .gb-glow { background: radial-gradient(ellipse, rgba(255,255,220,.85), transparent 70%); }
.gbtn .gb-tag {
  position: absolute; right: 0; top: 0; z-index: 2;
  font-size: 8px; font-weight: 700; letter-spacing: .5px; color: #8A3A00;
  padding: 2px 7px 2px 8px; border-radius: 0 13px 0 10px;
  background: linear-gradient(150deg, #FFF0B8, #FFC85C);
  box-shadow: 0 1px 3px rgba(140,60,0,.25);
}
.gbtn .gb-shine {
  position: absolute; left: -70%; top: 0; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.62), transparent);
  animation: gbShine 3.1s ease-in-out infinite; pointer-events: none;
}
@keyframes gbShine { 0% { left: -70%; } 45%, 100% { left: 130%; } }

/* ── 免费抽卡 ── */
.free-card {
  display: flex; align-items: center; gap: 9px; width: 100%; cursor: pointer;
  margin-top: 9px; padding: 9px 11px; border-radius: 13px; text-align: left;
  border: 2px dashed #E7D3AE; background: #FFFBF1;
  font-family: inherit; transition: border-color .16s, background .16s;
}
.free-card:active { background: #FFF4E0; }
.free-card.on { border-style: solid; border-color: #9AD9C4; background: linear-gradient(180deg, #F5FCF8, #E8F7F1); }
.free-card.off { opacity: .62; }
.fc-ic {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, #CBEAB8, #5E9E4A); color: #fff;
  box-shadow: 0 2px 5px rgba(70,120,50,.28);
}
.fc-ic svg { width: 17px; height: 17px; }
.free-card.off .fc-ic { background: linear-gradient(160deg, #DCD5C8, #A79C8A); box-shadow: none; }
.fc-txt { flex: 1; min-width: 0; }
.fc-txt b { display: block; font-family: var(--serif); font-size: 12.5px; font-weight: 700; color: #4E7A3C; letter-spacing: 1px; }
.fc-txt i { display: block; font-style: normal; font-size: 9px; color: var(--dim); margin-top: 1px; }
.free-card.off .fc-txt b { color: #8A8175; }
.fc-tag {
  flex: 0 0 auto; font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 9px; border-radius: 999px; color: #fff;
  background: linear-gradient(150deg, #7FC96A, #4E9E3C);
  box-shadow: 0 2px 5px rgba(70,120,50,.3);
  animation: fcPulse 2s ease-in-out infinite;
}
@keyframes fcPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.free-card.off .fc-tag { background: #B4AC9E; box-shadow: none; animation: none; }

/* ── 概率卡 ── */
.prob-card { padding: 11px 12px 10px; }
.prob-bar {
  display: flex; height: 12px; border-radius: 7px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(120,80,30,.2);
}
.prob-bar i { height: 100%; }
.pb-tian { background: linear-gradient(180deg, #FFE9A8, #E8A93C); }
.pb-di { background: linear-gradient(180deg, #E2D2FA, #A98FD6); }
.pb-ren { background: linear-gradient(180deg, #CBE8DF, #7FC0B3); }
.prob-rows { margin-top: 9px; }
.prob-row {
  display: flex; align-items: center; gap: 7px; padding: 6px 0;
  border-top: 1px dashed rgba(230,214,182,.75);
}
.prob-row:first-child { border-top: 0; }
.pr-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.pr-name { font-size: 11px; font-weight: 600; color: #5A4026; flex: 0 0 auto; }
.pr-name .pr-sub { font-size: 8.5px; color: var(--dim); margin-left: 4px; font-weight: 400; }
.pr-pct {
  margin-left: auto; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  flex: 0 0 auto;
}
.pr-pct.pb-tian { background-image: linear-gradient(150deg, #F0B23C, #D07A18); }
.pr-pct.pb-di { background-image: linear-gradient(150deg, #A98FD6, #7A5FBF); }
.pr-pct.pb-ren { background-image: linear-gradient(150deg, #7FC0B3, #4E9C8A); }
.pr-note { font-size: 8.5px; color: var(--dim); flex: 0 0 auto; min-width: 64px; text-align: right; }
.prob-foot {
  display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(230,214,182,.9);
}
.prob-foot > span { font-size: 9px; color: var(--muted); flex: 0 0 auto; }
.prob-foot > b { font-size: 9.5px; color: #A9762F; font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* ── 将魂兑换：3 列立绘卡 ── */
.soul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.soul-card {
  border-radius: 12px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #FFFDF7, #F7ECD8);
  border: 2px solid #F0E0C6; box-shadow: 0 2px 6px rgba(180,140,80,.12);
  text-align: center; padding-bottom: 6px;
}
.soul-card.poor { opacity: .72; }
.soul-card .sc-art {
  position: relative; aspect-ratio: 1 / 1.12; overflow: hidden;
  background: linear-gradient(180deg, #F3E7FA, #C6B0E8);
  display: flex; align-items: flex-end; justify-content: center;
}
.soul-card .sc-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 3px 4px rgba(90,60,25,.28)); }
.soul-card .sc-fac {
  position: absolute; right: 3px; top: 3px; z-index: 2;
  font-size: 7.5px; font-weight: 700; color: #fff;
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.soul-card .sc-name {
  font-family: var(--serif); font-size: 10.5px; font-weight: 600; color: #4A3520;
  margin: 5px 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.soul-card .sc-buy {
  display: inline-flex; align-items: center; gap: 3px; cursor: pointer;
  padding: 2px 9px; border-radius: 999px; border: 1.5px solid #D9C4A0;
  background: linear-gradient(180deg, #FFF9EC, #F6E6C8);
  font-family: inherit; font-size: 10px; font-weight: 700; color: #8A5A20;
  font-variant-numeric: tabular-nums; transition: transform .11s, background .15s;
}
.soul-card .sc-buy:active { transform: scale(.94); background: #FFEFD2; }
.soul-card.poor .sc-buy { color: #A89C8A; border-color: #E2D8C8; background: #FAF6EE; }

/* ══════════ v1.20.0 万仙阵舞台 / 十绝阵印章 ══════════ */

/* 万仙阵头部 */
.tw-head .cp { font-size: 10px; font-weight: 700; color: #C07A18; white-space: nowrap; }

/* 守阵者舞台 */
.tw-stage {
  position: relative; border-radius: 16px; overflow: hidden;
  padding: 40px 12px 14px; margin-bottom: 10px; min-height: 234px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background:
    radial-gradient(ellipse 58% 46% at 50% 30%, rgba(90,150,180,.34), transparent 70%),
    radial-gradient(ellipse 96% 54% at 50% 104%, rgba(20,60,80,.5), transparent 72%),
    linear-gradient(180deg, #23384A 0%, #2E4E60 48%, #16303C 100%);
  border: 2.5px solid rgba(180,225,240,.26);
  box-shadow: inset 0 0 44px rgba(0,0,0,.55), 0 6px 18px rgba(20,50,70,.3);
}
.tw-stage .tw-sky {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 22%, rgba(255,240,190,.9), transparent),
    radial-gradient(1.3px 1.3px at 42% 12%, rgba(255,240,190,.75), transparent),
    radial-gradient(1.5px 1.5px at 68% 26%, rgba(255,240,190,.85), transparent),
    radial-gradient(1.2px 1.2px at 84% 16%, rgba(255,240,190,.7), transparent),
    radial-gradient(1.4px 1.4px at 30% 40%, rgba(255,240,190,.6), transparent),
    radial-gradient(1.3px 1.3px at 76% 44%, rgba(255,240,190,.55), transparent);
  animation: twTwinkle 4.2s ease-in-out infinite;
}
@keyframes twTwinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.tw-stage .tw-ray {
  position: absolute; left: 50%; top: -40%; width: 320px; height: 320px;
  transform: translateX(-50%);
  background: conic-gradient(from 0deg, rgba(170,225,245,.14), transparent 20%, rgba(170,225,245,.14) 40%, transparent 60%, rgba(170,225,245,.14) 80%, transparent);
  animation: twRay 22s linear infinite;
}
@keyframes twRay { to { transform: translateX(-50%) rotate(360deg); } }
.tw-stage .tw-ground {
  position: absolute; left: 50%; bottom: 42px; width: 250px; height: 40px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(120,200,220,.36), transparent 70%);
  filter: blur(4px);
}
/* 层数徽章（左上） */
.tw-floor {
  position: absolute; left: 10px; top: 10px; z-index: 4;
  display: flex; align-items: baseline; gap: 1px;
  padding: 3px 10px 3px 9px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,225,160,.96), rgba(232,150,50,.96));
  border: 1.5px solid rgba(255,255,255,.7);
  box-shadow: 0 3px 9px rgba(0,0,0,.4);
}
.tw-floor b {
  font-family: var(--serif); font-size: 19px; font-weight: 800; color: #5A2A00;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.tw-floor span { font-size: 9px; font-weight: 700; color: #7A4200; }
/* 守阵者群像 */
.tw-cast {
  position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: center;
  gap: 2px; width: 100%;
}
.tw-unit {
  position: relative; width: 33%; max-width: 104px; height: 142px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  animation: twUnitIn .6s cubic-bezier(.2,1.2,.4,1) both; animation-delay: var(--d);
}
@keyframes twUnitIn {
  from { opacity: 0; transform: translateY(16px) scale(.86); }
  to { opacity: 1; transform: none; }
}
.tw-unit.mid { height: 172px; width: 36%; max-width: 116px; z-index: 2; }
.tw-unit img.cut, .tw-unit .pv {
  max-width: 100%; max-height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(120,200,230,.4));
  animation: twFloat 3.6s ease-in-out infinite;
}
.tw-unit:nth-child(2) img.cut { animation-delay: -1.2s; }
.tw-unit:nth-child(3) img.cut { animation-delay: -2.4s; }
@keyframes twFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.tw-unit .tw-uname {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  font-family: var(--serif); font-size: 9px; font-weight: 700; white-space: nowrap;
  padding: 1px 6px; border-radius: 7px; background: rgba(15,35,45,.82);
  border: 1px solid rgba(180,225,240,.3);
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
/* 词缀条 */
.tw-affix {
  position: relative; z-index: 4; display: flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(200,50,50,.24); border: 1.5px solid rgba(255,140,120,.5);
  color: #FFD6CC; font-size: 9px; max-width: 96%;
}
.tw-affix svg { width: 12px; height: 12px; flex: 0 0 auto; color: #FF9A80; }
.tw-affix b { font-weight: 700; color: #FFB8A6; flex: 0 0 auto; }
.tw-affix span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 入阵按钮 */
.tw-enter {
  position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 78%; margin-top: 10px; padding: 10px 0; border-radius: 13px; cursor: pointer;
  font-family: var(--serif); font-size: 15px; font-weight: 800; letter-spacing: 5px; color: #3A1600;
  background: linear-gradient(180deg, #FFE49A 0%, #FFB44E 55%, #E88A24 100%);
  border: 2px solid rgba(255,255,255,.75); text-indent: 5px;
  box-shadow: 0 4px 0 #B8681A, 0 8px 20px rgba(255,160,60,.36), inset 0 1px 0 rgba(255,255,255,.7);
  animation: twEnterPulse 2.2s ease-in-out infinite;
}
.tw-enter svg { width: 16px; height: 16px; text-indent: 0; }
.tw-enter:active { transform: translateY(3px); box-shadow: 0 1px 0 #B8681A, 0 3px 10px rgba(255,160,60,.3); }
@keyframes twEnterPulse {
  0%, 100% { box-shadow: 0 4px 0 #B8681A, 0 8px 20px rgba(255,160,60,.36), inset 0 1px 0 rgba(255,255,255,.7); }
  50% { box-shadow: 0 4px 0 #B8681A, 0 8px 30px rgba(255,180,80,.62), inset 0 1px 0 rgba(255,255,255,.7); }
}
/* 数据卡 */
.tw-meta { padding: 10px 12px 11px; }
.tw-row { display: flex; align-items: baseline; gap: 8px; }
.tw-k { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: #A8916E; flex: 0 0 auto; }
.tw-v { font-size: 10.5px; color: #5A4026; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-mile { margin: 7px 0 2px; }
.tw-mile-top {
  display: flex; justify-content: space-between; margin-bottom: 3px;
  font-size: 9px; color: var(--muted);
}
.tw-mile-top b { color: #C07A18; font-variant-numeric: tabular-nums; }
/* 层塔 */
.tw-steps { display: flex; align-items: center; gap: 3px; }
.tw-step {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 9px;
  border: 2px solid #EFE0C6; background: #FFFCF4;
  font-variant-numeric: tabular-nums;
}
.tw-step b { font-size: 11px; color: #A8916E; font-weight: 700; }
.tw-step.done { border-color: #C9E4D8; background: linear-gradient(180deg, #F3FBF7, #E0F2EA); }
.tw-step.done b { color: #4E9C82; }
.tw-step.cur {
  border-color: #E8A93C; background: linear-gradient(180deg, #FFF3D2, #FFDC9A);
  box-shadow: 0 0 0 2.5px rgba(232,169,60,.24), 0 2px 8px rgba(232,169,60,.3);
  animation: twStepPulse 1.9s ease-in-out infinite;
}
.tw-step.cur b { color: #A9530A; font-size: 13px; }
@keyframes twStepPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.tw-step.next { opacity: .6; }
.tw-link { flex: 0 0 6px; height: 2px; border-radius: 2px; background: #E7D9BE; }
.tw-link.done { background: #B7DCCC; }

/* ── 十绝阵 ── */
.arr-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 2px solid #F0E3CC; border-radius: 14px; padding: 11px 11px 11px 10px;
  background: #fff; margin-bottom: 9px;
  box-shadow: 0 2px 0 rgba(200,170,120,.16), 0 3px 10px rgba(170,130,70,.07);
  position: relative; overflow: hidden;
}
.arr-card::before { display: none; }
.arr-card.cleared { border-color: #F3C98F; background: linear-gradient(180deg, #FFFDF8, #FFF7E9); }
.arr-card.locked { opacity: .6; }
.arr-seal {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #FFE0C4, #E8804A);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(200,100,40,.28), inset 0 1px 0 rgba(255,255,255,.55);
}
.arr-seal b {
  font-family: var(--serif); font-size: 21px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 3px rgba(140,50,10,.42);
}
.arr-card.cleared .arr-seal { background: linear-gradient(160deg, #CBEAB8, #5E9E4A); box-shadow: 0 3px 8px rgba(70,120,50,.26); }
.arr-card.locked .arr-seal { background: linear-gradient(160deg, #E4DCD0, #A79C8A); box-shadow: none; }
.arr-done {
  position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px;
  border-radius: 50%; background: #4E9E3C; color: #fff; font-size: 9px;
  display: grid; place-items: center; border: 1.5px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.arr-body { flex: 1; min-width: 0; }
.arr-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.arr-head .an {
  font-family: var(--serif); font-size: 14px; font-weight: 700; color: #4A3520; letter-spacing: 1px;
}
.arr-head .ao { font-size: 9px; color: var(--dim); }
.arr-tag {
  font-size: 8px; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 6px;
  background: linear-gradient(150deg, #7FC96A, #4E9E3C); letter-spacing: .5px;
}
.arr-card .ad { font-size: 10px; color: #6E5A40; line-height: 1.45; margin-top: 4px; }
.arr-card .ah {
  display: flex; align-items: flex-start; gap: 4px; margin-top: 6px;
  padding: 5px 8px; border-radius: 8px;
  background: rgba(127,192,179,.14); border-left: 2.5px solid #7FC0B3;
  font-size: 9px; color: #4E7A6C; line-height: 1.4;
}
.arr-card .ah svg { width: 11px; height: 11px; flex: 0 0 auto; margin-top: 1px; }
.arr-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.arr-need { font-size: 9px; color: var(--dim); margin-right: auto; }
.arr-foot .btn { flex: 0 0 auto; min-width: 74px; }

/* 章节头右上角数值：加胶囊底提升可读性 */
.tw-head .cp {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.82); border: 1.5px solid rgba(232,169,60,.5);
  box-shadow: 0 1px 4px rgba(180,130,60,.16);
}
/* 锁定印章保留色调（降饱和而非去色），避免整列发灰 */
.arr-card.locked .arr-seal {
  background: linear-gradient(160deg, #F3DCC2, #C9A582);
  box-shadow: none;
}
.arr-card.locked .arr-seal b { color: rgba(255,255,255,.92); }

/* ══════════ v1.20.0 竞技场 / 折叠行图标 ══════════ */

/* 折叠行图标徽章 */
.f-ic {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 1.5px 4px rgba(120,80,30,.24), inset 0 1px 0 rgba(255,255,255,.45);
}
.f-ic svg { width: 13px; height: 13px; }
.f-ic.ic-gift  { background: linear-gradient(160deg, #FFC98A, #E88A2A); }
.f-ic.ic-quest { background: linear-gradient(160deg, #A8D8F0, #3F86B8); }
.f-ic.ic-ach   { background: linear-gradient(160deg, #FFE08A, #D9A22A); }
.f-ic.ic-stam  { background: linear-gradient(160deg, #FFB0A0, #CE4526); }
.card.fold .fhead b { margin-left: 1px; }

/* ── 竞技场：段位面板 ── */
.ar-panel {
  display: flex; align-items: center; gap: 10px; margin-bottom: 9px;
  padding: 12px 13px; border-radius: 15px;
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255,205,120,.35), transparent 62%),
    linear-gradient(180deg, #FFF8E8, #FBE9C6);
  border: 2px solid #F0D9AE;
  box-shadow: 0 3px 0 rgba(220,180,120,.26), inset 0 1px 0 rgba(255,255,255,.9);
}
.ar-score { text-align: center; flex: 0 0 auto; padding-right: 10px; border-right: 1.5px dashed rgba(200,165,110,.45); }
.ar-score-n {
  font-family: var(--serif); font-size: 30px; font-weight: 800; line-height: 1;
  background: linear-gradient(160deg, #FFB44E, #D06E14);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6));
}
.ar-score-l { font-size: 8.5px; letter-spacing: 2px; color: #A8916E; margin-top: 3px; }
.ar-side { display: flex; flex: 1; gap: 4px; }
.ar-stat {
  flex: 1; text-align: center; padding: 3px 0; border-radius: 9px;
  background: rgba(255,255,255,.72);
}
.ar-stat b { display: block; font-size: 14px; font-weight: 800; color: #4E9C82; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ar-stat.loss b { color: #C25A4A; }
.ar-stat span { font-size: 8px; color: var(--dim); }
.ar-next {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 7px 11px; border-radius: 11px;
  background: #FFFCF4; border: 1.5px solid #F0E3CC;
  font-size: 9.5px; color: var(--muted);
}
.ar-next span { flex: 0 0 auto; }
.ar-next b { flex: 0 0 auto; color: #A9762F; font-variant-numeric: tabular-nums; }

/* ── 竞技场：对手卡 ── */
.foe-card {
  display: flex; align-items: center; gap: 9px; margin-bottom: 8px;
  padding: 7px 9px 7px 7px; border-radius: 13px;
  background: linear-gradient(180deg, #FFFDF8, #FBF2E2);
  border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.16);
  position: relative; overflow: hidden;
  animation: foeIn .38s cubic-bezier(.2,1.2,.4,1) both;
}
.foe-card:nth-child(2) { animation-delay: .07s; }
.foe-card:nth-child(3) { animation-delay: .14s; }
@keyframes foeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.foe-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #E8A93C;
}
.foe-card.easy::before { background: #7FC96A; }
.foe-card.hard::before { background: #E0603E; }
.foe-art {
  flex: 0 0 auto; width: 42px; height: 50px; border-radius: 9px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #F7EDD8, #DFC9A0);
  border: 1.5px solid #fff; box-shadow: 0 1.5px 4px rgba(150,110,50,.2);
}
.foe-art img.cut, .foe-art .pv {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 2px 3px rgba(90,60,25,.3));
}
.foe-info { flex: 1; min-width: 0; }
.foe-name {
  font-family: var(--serif); font-size: 12.5px; font-weight: 700; color: #4A3520;
  letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.foe-row { display: flex; gap: 8px; margin-top: 3px; }
.foe-pow, .foe-score {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.foe-pow svg, .foe-score svg { width: 10px; height: 10px; }
.foe-pow svg { color: #B08A5A; }
.foe-score { color: #C07A18; font-weight: 700; }
.foe-score svg { color: #E8A93C; }
.foe-btn {
  flex: 0 0 auto; padding: 6px 13px; border-radius: 10px; cursor: pointer;
  font-family: var(--serif); font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px;
  color: #fff; text-indent: 1.5px;
  background: linear-gradient(180deg, #FFA95E, #E8701E);
  border: 1.5px solid rgba(255,255,255,.6);
  box-shadow: 0 2px 0 #B85614, 0 3px 8px rgba(220,110,30,.28);
  transition: transform .11s;
}
.foe-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #B85614, 0 1px 4px rgba(220,110,30,.24); }

/* 修行记图标 */
.f-ic.ic-log { background: linear-gradient(160deg, #C9B6E8, #7A5FBF); }

/* 竞技场对手头像：方图聚焦上半身，看清脸 */
.foe-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; display: block; }
.foe-art .pv { border-radius: 0; background: transparent; }

/* ══════════ v1.20.0 详情属性图标 / 页签图标 / 关卡快捷 ══════════ */

/* 属性格：左图标 + 右数值 */
.stat-cell { display: flex; align-items: center; gap: 7px; padding: 7px 9px; }
.stat-cell > div { min-width: 0; }
.stat-cell .k { font-size: 9px; letter-spacing: .5px; }
.stat-cell .sc-ic {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1.5px 4px rgba(120,80,30,.2);
}
.stat-cell .sc-ic svg { width: 13px; height: 13px; }
.stat-cell.st-hp   .sc-ic { background: linear-gradient(160deg, #FF9E96, #D24A38); }
.stat-cell.st-atk  .sc-ic { background: linear-gradient(160deg, #FFB776, #DE6A1E); }
.stat-cell.st-def  .sc-ic { background: linear-gradient(160deg, #A9C4E8, #4A6FA8); }
.stat-cell.st-res  .sc-ic { background: linear-gradient(160deg, #C9B6E8, #7A5FBF); }
.stat-cell.st-spd  .sc-ic { background: linear-gradient(160deg, #9FE0D2, #3E9C88); }
.stat-cell.st-crit .sc-ic { background: linear-gradient(160deg, #FFE08A, #D9A22A); }

/* 页签图标 */
.seg .s { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.seg .s svg { width: 13px; height: 13px; opacity: .72; }
.seg .s.on svg { opacity: 1; }
.seg .s span { letter-spacing: .5px; }

/* 关卡快捷入口：字形块 → 圆角图标块 */
.fn-bar { display: flex; gap: 7px; margin-bottom: 10px; }
.fn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.2);
  transition: transform .11s;
}
.fn:active { transform: translateY(2px); box-shadow: none; }
.fn svg { width: 17px; height: 17px; }
.fn-gacha svg { color: #E8A93C; }
.fn-grow  svg { color: #4E9C82; }
.fn-equip svg { color: #4A6FA8; }
.fn-gift  svg { color: #DE6A1E; }
.fn .ft { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: 1px; }

/* ══════════ v1.20.0 全局动效 ══════════ */

/* 页面入场：淡入 + 轻微上移（切页触发一次） */
#view.pg-in { animation: pgIn .2s cubic-bezier(.25,.9,.35,1); }
@keyframes pgIn {
  from { opacity: .74; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* 顶栏资源数字变化：弹一下 */
.coin .v.pop { animation: coinPop .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes coinPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.32); color: #FF9A3C; }
  100% { transform: scale(1); }
}
.coin .v { display: inline-block; will-change: transform; }

/* 卡片列表 stagger 入场 */
.rc-grid .rcard { animation: cardIn .38s cubic-bezier(.2,1.15,.4,1) both; }
.rc-grid .rcard:nth-child(1) { animation-delay: .02s; }
.rc-grid .rcard:nth-child(2) { animation-delay: .06s; }
.rc-grid .rcard:nth-child(3) { animation-delay: .1s; }
.rc-grid .rcard:nth-child(4) { animation-delay: .14s; }
.rc-grid .rcard:nth-child(5) { animation-delay: .18s; }
.rc-grid .rcard:nth-child(6) { animation-delay: .22s; }
.rc-grid .rcard:nth-child(n+7) { animation-delay: .26s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.soul-card { animation: cardIn .36s cubic-bezier(.2,1.15,.4,1) both; }
.soul-card:nth-child(1) { animation-delay: .03s; }
.soul-card:nth-child(2) { animation-delay: .07s; }
.soul-card:nth-child(3) { animation-delay: .11s; }
.soul-card:nth-child(4) { animation-delay: .15s; }
.soul-card:nth-child(5) { animation-delay: .19s; }
.soul-card:nth-child(6) { animation-delay: .23s; }
.arr-card { animation: cardIn .38s cubic-bezier(.2,1.15,.4,1) both; }
.arr-card:nth-of-type(1) { animation-delay: .04s; }
.arr-card:nth-of-type(2) { animation-delay: .09s; }
.arr-card:nth-of-type(3) { animation-delay: .14s; }
.arr-card:nth-of-type(n+4) { animation-delay: .18s; }

/* 底部导航：图标浮动 + 选中光晕 */
.nav-item.on::before {
  content: ''; position: absolute; left: 50%; top: 1px; width: 34px; height: 34px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,190,90,.34), transparent 70%);
  animation: navGlow 2.6s ease-in-out infinite;
}
@keyframes navGlow { 0%,100% { opacity: .6; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.12); } }
.nav-item .gl { position: relative; z-index: 1; }

/* 抽卡/概率条数字入场 */
.prob-row { animation: rowIn .34s ease both; }
.prob-row:nth-child(1) { animation-delay: .05s; }
.prob-row:nth-child(2) { animation-delay: .1s; }
.prob-row:nth-child(3) { animation-delay: .15s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* 折叠行图标 hover 微动 */
.card.fold .fhead:active .f-ic { transform: scale(.92); }
.card.fold .f-ic { transition: transform .12s; }

/* 图鉴品质角标 */
.codex-cell { position: relative; }
.codex-cell .cx-q {
  position: absolute; left: 3px; top: 3px; z-index: 3;
  font-size: 7.5px; font-weight: 800; color: #fff; letter-spacing: .3px;
  min-width: 16px; height: 13px; padding: 0 3px; border-radius: 5px;
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(120,70,20,.3), inset 0 1px 0 rgba(255,255,255,.35);
}
.codex-cell.locked .cn2 { color: #B4AC9E; letter-spacing: 1px; }

/* 主城建筑标签微调，减少视觉噪音 */
.spot .sp-name { font-size: 11.5px; box-shadow: 0 2px 6px rgba(140,100,50,.22); }
.spot .sp-tag {
  background: none; color: #8A6A3E; opacity: .82;
  text-shadow: 0 1px 2px rgba(255,250,240,.9);
}

/* 抽卡页精修 */
.gbtn .gb-tag {
  right: 5px; top: 3px; border-radius: 8px;
  font-size: 7.5px; padding: 1.5px 6px;
}
.pr-note { font-size: 8px; min-width: 0; padding-right: 1px; opacity: .92; }
.prob-row { gap: 6px; }
.pr-pct { font-size: 13.5px; }
/* 空进度条：斜纹底，避免看起来像坏掉 */
.pc-track {
  background-image: repeating-linear-gradient(-45deg, rgba(200,170,120,.16) 0 4px, transparent 4px 9px);
  background-color: #F1E2C6;
}
/* 保底条起点小标记 */
.pc-track::after {
  content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px;
  transform: translateY(-50%); border-radius: 50%;
  background: rgba(160,120,60,.45); z-index: 2;
}
.pc-track i { position: relative; z-index: 1; }
/* 单抽/十连价格胶囊稍大一点，触控更舒服 */
.gbtn .gb-cost { padding: 2.5px 9px; }
.gbtn .gb-cost b { font-size: 11.5px; }

/* 卡面副标题：负字距只适用于纯星号串，含文字会粘连（"锋·★5"糊成一条） */
.rc-stars { letter-spacing: 0; font-size: 9px; }
.form-grid .rcard .rc-stars { font-size: 9px; }
/* 阵位卡：立绘再露多一点，避免只看到胸口以上 */
.form-grid .rcard .rc-art { aspect-ratio: 1 / 1.1; }
.form-grid .rcard .rc-art > img { object-position: 50% 8%; }
/* 护法空位：加虚线圈 + 图标，减少"未设"空白感 */
.slot-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px dashed #E6D4B4; border-radius: 12px; background: rgba(255,251,242,.7);
}

/* 编队阵位卡：立绘完整站姿（不裁切），配合品质渐变底 */
.form-grid .rcard .rc-art > img,
.form-grid .rcard .rc-art > img.cut {
  object-fit: contain !important;
  object-position: 50% 100% !important;
  width: 100%; height: 100%;
}
.form-grid .rcard .rc-art { background: linear-gradient(180deg, #FFFDF7 0%, #E8D7B4 100%); }
.form-grid .rcard.q-tian .rc-art { background: linear-gradient(180deg, #FFF6DC 0%, #E8C078 100%); }
.form-grid .rcard.q-di .rc-art { background: linear-gradient(180deg, #F6EEFF 0%, #C2AEDE 100%); }
.form-grid .rcard.q-ren .rc-art { background: linear-gradient(180deg, #EEF8F3 0%, #A8D2C6 100%); }
.form-grid .rcard .rc-stars { font-size: 10px; letter-spacing: .3px; text-shadow: 0 1px 1px rgba(0,0,0,.4); }

/* 编队卡立绘放大一档（脚部被底部遮罩压住，像站在卡面上） */
.form-grid .rcard .rc-art > img,
.form-grid .rcard .rc-art > img.cut {
  transform: scale(1.14);
  transform-origin: 50% 100%;
}

/* 护法位卡：空位用大加号，已设用盾徽 */
.slot-empty.gd-slot {
  min-height: 62px; gap: 0; padding: 6px 4px;
  background: linear-gradient(180deg, rgba(255,252,244,.92), rgba(250,240,220,.8));
  transition: border-color .15s, background .15s;
}
.gd-slot:active { background: #FFF3DC; }
.gd-slot-plus {
  font-family: var(--serif); font-size: 20px; font-weight: 300; line-height: 1;
  color: #C9B08A; margin-bottom: 1px;
}
.gd-slot-ic {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(160deg, #FFE08A, #D9A22A); color: #fff; margin-bottom: 1px;
  box-shadow: 0 1.5px 4px rgba(160,110,30,.28);
}
.gd-slot-ic svg { width: 12px; height: 12px; }
.gd-slot-n {
  font-family: var(--serif); font-size: 10.5px; font-weight: 700; color: #7A4A18;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.gd-slot-n.dim { color: #B4A488; font-weight: 400; letter-spacing: 1px; }
.gd-slot-d { font-size: 8px; color: var(--dim); margin-top: 1px; }

/* ══════════ v1.21.0 法宝模块 ══════════ */

/* 品质色变量（r1-r5） */
.art-eq.r1, .art-card.r1, .ap-row.r1 { --qr: #8a8175; --qr2: #E7E3DB; }
.art-eq.r2, .art-card.r2, .ap-row.r2 { --qr: #4E9C82; --qr2: #DCF1E9; }
.art-eq.r3, .art-card.r3, .ap-row.r3 { --qr: #4A7BD6; --qr2: #DEE9FB; }
.art-eq.r4, .art-card.r4, .ap-row.r4 { --qr: #8A5FBF; --qr2: #EADFF8; }
.art-eq.r5, .art-card.r5, .ap-row.r5 { --qr: #C08A24; --qr2: #FBEBC8; }

/* 已装配部位行 */
.art-eqs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.art-eq {
  display: flex; align-items: center; gap: 9px; padding: 8px 9px;
  border-radius: 12px; cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(90deg, var(--qr2, #FFFCF4), #FFFDF9 62%);
  border: 2px solid var(--qr, #EFE0C6);
  box-shadow: 0 2px 0 rgba(160,130,90,.14);
  transition: transform .11s;
}
.art-eq:active { transform: scale(.985); }
.art-eq::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--qr, #D9C4A0);
}
.art-eq.empty {
  background: #FFFBF3; border: 2px dashed #E6D4B4; box-shadow: none;
}
.art-eq .ae-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--qr, #C9B08A), var(--qr2, #E7D9BE));
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(120,90,40,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.art-eq.empty .ae-ic {
  background: #FFF3DC; color: #C9B08A; border: 1.5px dashed #E0CBAA; box-shadow: none;
}
.art-eq .ae-ic svg { width: 17px; height: 17px; }
.art-eq .ae-body { flex: 1; min-width: 0; }
.art-eq .ae-name {
  font-family: var(--serif); font-size: 12px; font-weight: 700; color: #4A3520;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-eq .ae-name b { font-size: 9.5px; color: var(--qr, #8A6A3E); margin-left: 3px; }
.art-eq .ae-name.dim { color: #A8917A; font-weight: 400; }
.art-eq .ae-main { font-size: 9px; color: #7A6448; margin-top: 1px; }
.art-eq .ae-main.dim { color: #B4A488; }
.art-eq .ae-score {
  flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--qr, #8A6A3E);
  padding: 2px 7px; border-radius: 8px; background: rgba(255,255,255,.75);
  border: 1.5px solid rgba(200,170,120,.36); font-variant-numeric: tabular-nums;
}
.art-eq .ae-plus {
  flex: 0 0 auto; font-family: var(--serif); font-size: 20px; font-weight: 300;
  color: #C9B08A; line-height: 1;
}

/* 法宝囊 2 列卡 */
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.art-card {
  position: relative; padding: 8px 8px 9px; border-radius: 13px; overflow: hidden;
  background: linear-gradient(180deg, #FFFDF8, var(--qr2, #F7ECD8));
  border: 2px solid var(--qr, #EFE0C6);
  box-shadow: 0 2px 0 rgba(160,130,90,.14), 0 3px 10px rgba(170,130,70,.08);
  animation: cardIn .36s cubic-bezier(.2,1.15,.4,1) both;
}
.art-card:nth-child(2n) { animation-delay: .05s; }
.art-card:nth-child(3n) { animation-delay: .1s; }
.art-card .ac-q {
  position: absolute; left: 0; top: 0; z-index: 2;
  font-size: 8px; font-weight: 700; color: #fff;
  padding: 2px 7px 2px 6px; border-radius: 0 0 9px 0;
}
.art-card .ac-score {
  position: absolute; right: 6px; top: 6px; z-index: 2;
  font-size: 8.5px; font-weight: 800; color: var(--qr, #8A6A3E);
  padding: 1px 5px; border-radius: 7px; background: rgba(255,255,255,.85);
  border: 1px solid rgba(200,170,120,.4); font-variant-numeric: tabular-nums;
}
.art-card .ac-art {
  position: relative; height: 52px; margin: 10px 0 5px;
  display: grid; place-items: center; color: var(--qr, #8A6A3E);
}
.art-card .ac-art svg {
  width: 34px; height: 34px; opacity: .92;
  filter: drop-shadow(0 2px 4px rgba(120,90,40,.26));
}
.art-card .ac-art b {
  position: absolute; right: 2px; bottom: -2px; font-size: 9.5px; font-weight: 800;
  color: #fff; padding: 1px 5px; border-radius: 7px;
  background: linear-gradient(150deg, var(--qr, #C9B08A), #8A6A3E);
  box-shadow: 0 1px 3px rgba(120,90,40,.3);
}
.art-card .ac-name {
  font-family: var(--serif); font-size: 11px; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art-card .ac-main {
  font-size: 8.5px; color: #6E5A40; text-align: center; margin-top: 2px;
  line-height: 1.35; min-height: 22px;
}
.art-card .ac-btns { display: flex; gap: 4px; margin-top: 5px; }
.art-card .ac-btns .btn { flex: 1; padding: 4px 0; font-size: 10px; min-height: 0; }

/* 部位装配弹层 */
.ap-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; }
.ap-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px;
  border-radius: 11px; cursor: pointer;
  background: linear-gradient(90deg, var(--qr2, #FFFCF4), #FFFDF9 68%);
  border: 2px solid var(--qr, #EFE0C6);
  transition: transform .11s;
}
.ap-row:active { transform: scale(.985); }
.ap-row.on { border-style: solid; box-shadow: 0 0 0 2.5px rgba(232,169,60,.24); }
.ap-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--qr, #C9B08A), var(--qr2, #E7D9BE));
  border: 1.5px solid #fff; box-shadow: 0 1.5px 4px rgba(120,90,40,.2);
}
.ap-ic svg { width: 15px; height: 15px; }
.ap-body { flex: 1; min-width: 0; }
.ap-name {
  font-family: var(--serif); font-size: 11.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-name b { font-size: 9px; margin-left: 3px; opacity: .8; }
.ap-main { font-size: 8.5px; color: #7A6448; margin-top: 1px; }
.ap-score {
  flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--qr, #8A6A3E);
  font-variant-numeric: tabular-nums;
}
.ap-on {
  flex: 0 0 auto; font-size: 8px; font-weight: 700; color: #fff;
  padding: 2px 6px; border-radius: 6px; letter-spacing: .5px;
  background: linear-gradient(150deg, #FFC46B, #E88A24);
}

/* 法宝卡：属性最多两行，避免卡片高低不齐 */
.art-card .ac-main {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 23px; max-height: 23px;
}
/* 法宝卡统一高度，底按钮对齐 */
.art-grid { align-items: stretch; }
.art-card { display: flex; flex-direction: column; }
.art-card .ac-btns { margin-top: auto; }

/* ══════════ v1.21.0 抽卡结果页放大 ══════════ */

/* 十连卡组：加宽 + 衬底面板，从背景里浮出来 */
.gc-cards.ten {
  grid-template-columns: repeat(5, 62px);
  gap: 7px;
  padding: 14px 12px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,250,238,.86), rgba(250,235,205,.72));
  border: 2px solid rgba(255,225,170,.9);
  box-shadow: 0 10px 32px rgba(140,90,30,.24), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(2px);
}
.gc-cards.one {
  padding: 12px;
  border-radius: 18px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,250,238,.8), rgba(250,235,205,.6));
  border: 2px solid rgba(255,225,170,.85);
  box-shadow: 0 10px 30px rgba(140,90,30,.22);
}
.gc-cards.ten .gc-inner { padding-top: 148%; }
.gc-cards.ten .gc-q {
  width: 18px; height: 18px; font-size: 9.5px; border-radius: 5px; left: 2px; top: 2px;
}
.gc-cards.ten .gc-name { font-size: 9.5px; padding: 10px 2px 3px; letter-spacing: 0; }
/* NEW 改为名字旁的小徽章，不再挡脸 */
.gc-name .gc-new {
  display: inline-block; margin-left: 1px; vertical-align: 1px;
  font-size: 6.5px; font-weight: 800; letter-spacing: .3px;
  padding: 0 2.5px; border-radius: 3px; line-height: 8px;
  background: linear-gradient(150deg, #7FE0C0, #2E9C86); color: #fff;
  box-shadow: 0 1px 2px rgba(30,100,80,.35);
}
/* 单抽卡也放大一点 */
.gc-cards.one { grid-template-columns: 156px; }
.gc-cards.one .gc-inner { padding-top: 142%; }

/* 十连小卡：立绘聚焦上半身（小尺寸下看清脸比看清脚重要） */
.gc-cards.ten .gc-front > img,
.gc-cards.ten .gc-front > img.cut {
  object-fit: cover !important;
  object-position: 50% 16% !important;
}
.gc-cards.ten .gc-inner { padding-top: 140%; }
.gc-cards.ten .gc-front { background: linear-gradient(180deg, #FFF6E2, #EBD9B4); }
.gc-cards.ten .gc-card.q-tian .gc-front { background: linear-gradient(180deg, #FFF2CF, #E8C078); }
.gc-cards.ten .gc-card.q-di .gc-front { background: linear-gradient(180deg, #F7F0FF, #C9B4E4); }
.gc-cards.ten .gc-card.q-ren .gc-front { background: linear-gradient(180deg, #F0FAF6, #AED6CA); }

/* 抽卡结果页构图：卡组下移到视觉中心，按钮抬高 */
.gc-cards.ten { margin-top: 72px; }
.gc-cards.one { margin-top: 56px; }
.gc-foot { bottom: calc(46px + env(safe-area-inset-bottom)); }

/* ══════════ v1.21.0 设置面板重做 ══════════ */

.set-group {
  border-radius: 14px; overflow: hidden; margin-bottom: 9px;
  background: #FFFCF4; border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.16);
}
.set-row {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px;
  border-top: 1.5px solid #F5EAD6; cursor: pointer;
  transition: background .14s;
}
.set-row:first-child { border-top: 0; }
.set-row:active { background: #FFF6E4; }
.set-row.static { cursor: default; }
.set-row.static:active { background: transparent; }
.sr-ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #DCD2C0, #B0A490);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  transition: background .18s;
}
.sr-ic svg { width: 15px; height: 15px; }
.sr-ic.on { background: linear-gradient(160deg, #FFC46B, #E88A24); box-shadow: 0 1.5px 5px rgba(220,140,40,.3), inset 0 1px 0 rgba(255,255,255,.45); }
.sr-body { flex: 1; min-width: 0; }
.sr-body b {
  display: block; font-family: var(--serif); font-size: 12.5px; font-weight: 700;
  color: #4A3520; letter-spacing: .5px;
}
.sr-body i {
  display: block; font-style: normal; font-size: 8.5px; color: var(--dim); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-val {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #8A6A3E;
  font-variant-numeric: tabular-nums;
}
/* 行内开关（无文字标签） */
.set-row .switch { padding: 0; flex: 0 0 auto; }
.set-row .switch .track { width: 42px; height: 23px; border-radius: 12px; }
.set-row .switch .track::after { width: 19px; height: 19px; }
.set-row .switch.on .track::after { transform: translateX(19px); }

/* 存档码输入框：浅色，跟整体风格一致 */
.save-box {
  width: 100%; height: 72px; padding: 8px 10px; resize: none;
  background: #FFFDF7; border: 2px solid #F0E3CC; border-radius: 11px;
  color: #6E5A40; font-size: 10px; line-height: 1.5;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.save-box::placeholder { color: #BEA98A; font-family: inherit; }
.save-box:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,160,61,.16); }

/* 危险按钮 */
.btn.danger {
  color: #B23A28; border-color: #F0C4B8; background: linear-gradient(180deg, #FFF6F3, #FCE8E2);
  box-shadow: 0 2px 0 rgba(200,110,90,.2);
}
.btn.danger:active { background: #FBE0D8; }
.btn.danger .ic { color: #C25A4A; }

/* ══════════ v1.22.0 战斗开场对峙 ══════════ */
.bt-intro {
  position: absolute; inset: 0; z-index: 62; display: none; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 52% at 50% 46%, rgba(60,26,6,.5), transparent 72%),
    radial-gradient(ellipse 110% 80% at 50% 110%, rgba(20,8,2,.9), transparent 76%),
    linear-gradient(180deg, rgba(18,8,2,.86), rgba(8,4,1,.94));
  cursor: pointer;
}
.bt-intro.on { display: block; animation: biFade .26s ease both; }
@keyframes biFade { from { opacity: 0; } to { opacity: 1; } }

/* 斜切色带 */
.bi-band {
  position: absolute; left: -12%; right: -12%; top: 48%; height: 108px;
  transform: translateY(-50%) rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(255,170,70,.2) 28%, rgba(255,205,120,.3) 50%, rgba(255,170,70,.2) 72%, transparent);
  box-shadow: 0 0 40px rgba(255,170,60,.16);
  animation: biBandIn .5s .05s ease both;
}
@keyframes biBandIn { from { opacity: 0; transform: translateY(-50%) rotate(-7deg) scaleX(.4); } to { opacity: 1; transform: translateY(-50%) rotate(-7deg) scaleX(1); } }

/* 放射线 */
.bi-rays {
  position: absolute; left: 50%; top: 48%; width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,220,150,.13) 0deg 5deg, transparent 5deg 18deg);
  mask-image: radial-gradient(circle, #000 12%, transparent 66%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 66%);
  animation: biRaySpin 14s linear infinite;
}
@keyframes biRaySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 左右首领立绘 */
.bi-side {
  position: absolute; bottom: 0; width: 52%; height: 74%; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
}
.bi-side.ally { left: -2%; animation: biInL .58s cubic-bezier(.16,1.15,.35,1) both; }
.bi-side.foe { right: -2%; animation: biInR .58s cubic-bezier(.16,1.15,.35,1) both; }
@keyframes biInL {
  from { opacity: 0; transform: translateX(-58%) rotate(-7deg) scale(.86); }
  to { opacity: 1; transform: none; }
}
@keyframes biInR {
  from { opacity: 0; transform: translateX(58%) rotate(7deg) scale(.86); }
  to { opacity: 1; transform: none; }
}
.bi-side img, .bi-side img.cut, .bi-side .pv {
  max-width: 100%; max-height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.7));
  animation: biFloat 3.2s ease-in-out infinite;
}
.bi-side.foe img { animation-delay: -1.4s; }
@keyframes biFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.bi-glow {
  position: absolute; left: 50%; bottom: 4%; width: 190px; height: 190px;
  transform: translateX(-50%); border-radius: 50%; filter: blur(18px);
  background: radial-gradient(circle, rgba(255,190,90,.42), transparent 68%);
}
.bi-glow.foe { background: radial-gradient(circle, rgba(220,90,80,.44), transparent 68%); }
.bi-tag {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgba(20,10,4,.8); border: 1.5px solid;
  font-family: var(--serif); font-size: 11px; font-weight: 700; color: #FFF2D8;
  letter-spacing: 1px; white-space: nowrap;
  animation: biTagIn .4s .34s both;
}
@keyframes biTagIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%); } }
.bi-tag i {
  width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 9px; font-weight: 700; color: #fff;
}

/* VS 印章 */
.bi-vs {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; z-index: 5; display: grid; place-items: center;
  animation: biVsIn .5s .16s cubic-bezier(.2,1.7,.4,1) both;
}
@keyframes biVsIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-32deg); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(.92) rotate(4deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
}
.bi-vs-txt {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  font-family: var(--serif); line-height: .86; color: #5A2400;
  text-shadow: 0 2px 0 rgba(255,255,255,.6);
}
.bi-vs-txt b {
  font-size: 26px; font-weight: 900; letter-spacing: 0;
  background: linear-gradient(160deg, #FFE9A8, #F2A03D 55%, #D06E14);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1.5px 0 rgba(160,70,0,.5));
}
.bi-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255,200,110,.9);
  box-shadow: 0 0 26px rgba(255,180,70,.7), inset 0 0 20px rgba(255,180,70,.4);
  animation: biRing .7s .12s cubic-bezier(.15,.8,.25,1) both;
}
.bi-ring.d2 { animation-delay: .26s; border-color: rgba(255,240,200,.75); }
@keyframes biRing {
  0% { transform: scale(.3); opacity: .95; }
  70% { opacity: .5; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* 底部关卡名 */
.bi-foot {
  position: absolute; left: 0; right: 0; bottom: 9%; z-index: 3; text-align: center;
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 3px;
  color: #FFF0CE; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 22px rgba(255,150,60,.5);
  animation: biFootIn .5s .3s both;
}
@keyframes biFootIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 开场层移到 #phone 顶层：盖住 toast，且立绘放大 */
.bt-intro {
  position: absolute; z-index: 130;
  background:
    radial-gradient(ellipse 66% 48% at 50% 44%, rgba(70,30,6,.62), transparent 74%),
    radial-gradient(ellipse 120% 86% at 50% 112%, rgba(14,6,2,.96), transparent 74%),
    linear-gradient(180deg, rgba(14,6,2,.93), rgba(6,3,1,.97));
}
.bi-side { height: 80%; width: 56%; bottom: 6%; }
.bi-side img, .bi-side img.cut, .bi-side .pv {
  height: 100%; width: auto; max-width: 100%;
}
.bi-vs { top: 50%; }
.bi-foot { bottom: 15%; font-size: 14px; }
.bi-band { top: 52%; }
.bi-rays { top: 50%; }

/* 开场：关卡名移到顶部标题位，VS 加金色圆盘 */
.bi-foot {
  top: 11%; bottom: auto;
  font-size: 13px; letter-spacing: 2px; color: #FFE6B8;
  animation: biFootIn .5s .1s both;
}
.bi-foot::after {
  content: ''; display: block; width: 48px; height: 2px; margin: 7px auto 0;
  border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,200,120,.85), transparent);
}
.bi-vs {
  background: radial-gradient(circle at 38% 30%, #FFE9A8, #E8952A 62%, #B8641A);
  border: 3px solid rgba(255,240,200,.92);
  box-shadow: 0 0 32px rgba(255,180,70,.75), inset 0 3px 10px rgba(255,255,255,.5), inset 0 -6px 14px rgba(150,70,0,.4);
  border-radius: 26%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 84px; height: 84px;
}
@keyframes biVsIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-40deg); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(.92) rotate(2deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
}
.bi-vs-txt b {
  font-size: 27px; line-height: .84;
  background: linear-gradient(160deg, #FFF7DC, #FFE0A0 45%, #FFF3D0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(120,50,0,.55));
}
.bi-side { bottom: 9%; }
.bi-glow { bottom: 8%; }

/* ══════════ v1.22.0 图鉴视觉分级 ══════════ */
.codex-stat {
  padding: 10px 12px 11px; border-radius: 13px; margin-bottom: 2px;
  background: linear-gradient(180deg, #FFFCF3, #FBF0D8);
  border: 2px solid #F0E0C2;
  box-shadow: 0 2px 0 rgba(200,170,120,.14), inset 0 1px 0 rgba(255,255,255,.9);
}
.codex-stat .cs-top { display: flex; align-items: baseline; justify-content: space-between; }
.codex-stat .cs-top span { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.codex-stat .cs-top b {
  font-family: var(--serif); font-size: 17px; font-weight: 800; color: #C07A18;
  font-variant-numeric: tabular-nums;
}
.codex-stat .cs-top b i { font-style: normal; font-size: 10px; color: var(--dim); font-weight: 400; }
.codex-stat .pc-track { margin-top: 7px; }
.codex-stat .cs-rows {
  display: flex; gap: 5px; margin-top: 9px;
}
.codex-stat .cs-cell {
  flex: 1; display: flex; align-items: center; gap: 4px; justify-content: center;
  padding: 3px 0; border-radius: 8px; background: rgba(255,255,255,.72);
}
.cs-cell .cs-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.cs-cell b { font-size: 9px; font-weight: 800; color: #6E5A40; }
.cs-cell .cs-n { font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 卡格：拥有 = 品质色描边，未解锁 = 浅底剪影 + 锁 */
.codex-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
.codex-cell.have {
  border-width: 2px;
  box-shadow: 0 2px 0 rgba(200,170,120,.18), 0 0 0 1px rgba(255,255,255,.8) inset;
}
.codex-cell.have .pv { background: linear-gradient(180deg, #FFF9EC, #F4E4C6); }
.codex-cell.locked {
  opacity: 1; filter: none;
  border-style: dashed; border-color: #E4D5BC; background: #FBF5E8;
}
.codex-cell.locked .pv,
.codex-cell.locked .pv img,
.codex-cell.locked .pv svg {
  filter: brightness(0) opacity(.16) !important;
  background: transparent;
}
.codex-cell.locked .cn2 { color: #B4A48A; }
.codex-cell.locked .cn2 i { font-style: normal; font-size: 8px; letter-spacing: 1px; }
.codex-cell .cx-lock {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,252,244,.92); color: #B4A48A;
  box-shadow: 0 1px 4px rgba(160,130,90,.2);
}
.codex-cell .cx-lock svg { width: 12px; height: 12px; }

/* ══════════ v1.22.0 主城氛围动态 ══════════ */
.sc-decor {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
  contain: strict;
}

/* 暖阳光斑：缓慢呼吸 */
.sc-sun {
  position: absolute; left: 68%; top: 6%; width: 260px; height: 260px; margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,190,.75), rgba(255,220,150,.28) 42%, transparent 70%);
  filter: blur(10px);
  animation: scSun 9s ease-in-out infinite;
}
@keyframes scSun {
  0%, 100% { opacity: .62; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}

/* 云：横向漂移 + 缓慢明暗 */
.sc-cloud {
  position: absolute; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.92), rgba(255,252,244,.5) 46%, transparent 72%);
  filter: blur(7px); opacity: .68;
}
.sc-cloud.c1 { width: 168px; height: 54px; top: 9%; left: -34%; animation: scCloud 52s linear infinite; }
.sc-cloud.c2 { width: 220px; height: 66px; top: 27%; left: -46%; opacity: .52; animation: scCloud 74s linear -22s infinite; }
.sc-cloud.c3 { width: 130px; height: 44px; top: 52%; left: -24%; opacity: .44; animation: scCloud 63s linear -40s infinite; }
@keyframes scCloud {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(calc(50vw + 200px)) translateY(-6px); }
  100% { transform: translateX(calc(100vw + 420px)) translateY(0); }
}

/* 飞鸟：掠过天空 + 扇翅 */
.sc-bird { position: absolute; width: 20px; height: 8px; }
.sc-bird svg { width: 100%; height: 100%; display: block; animation: scFlap 0.62s ease-in-out infinite; }
@keyframes scFlap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.42); } }
.sc-bird.b1 { top: 15%; left: -12%; animation: scFly1 26s linear infinite; }
.sc-bird.b2 { top: 21%; left: -18%; animation: scFly1 33s linear -9s infinite; }
@keyframes scFly1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate(48vw, -16px) scale(.9); }
  92% { opacity: .9; }
  100% { transform: translate(96vw, -26px) scale(.8); opacity: 0; }
}

/* 花瓣：旋转飘落 */
.sc-petal {
  position: absolute; width: 7px; height: 7px; border-radius: 7px 2px 7px 2px;
  background: linear-gradient(150deg, #FFD9E4, #F5A8C0);
  opacity: 0;
  animation: scPetal 13s linear infinite;
}
.sc-petal.p1 { left: 12%; top: -4%; animation-delay: 0s; }
.sc-petal.p2 { left: 34%; top: -4%; animation-delay: -2.4s; animation-duration: 16s; }
.sc-petal.p3 { left: 58%; top: -4%; animation-delay: -5.1s; animation-duration: 12s; }
.sc-petal.p4 { left: 76%; top: -4%; animation-delay: -7.6s; animation-duration: 15s; }
.sc-petal.p5 { left: 88%; top: -4%; animation-delay: -9.2s; animation-duration: 11s; }
.sc-petal.p6 { left: 44%; top: -4%; animation-delay: -11.5s; animation-duration: 18s; }
@keyframes scPetal {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  8% { opacity: .85; }
  50% { transform: translate(26px, 46vh) rotate(220deg); opacity: .8; }
  92% { opacity: .55; }
  100% { transform: translate(-14px, 96vh) rotate(430deg); opacity: 0; }
}

/* 四周暗角，压住画面边缘、突出建筑 */
.sc-vig {
  position: absolute; inset: 0; border-radius: 0;
  box-shadow: inset 0 0 70px 26px rgba(120,80,30,.16), inset 0 -40px 50px -20px rgba(120,80,30,.2);
}

/* 结算战报三格 */
.rs-stats {
  display: flex; gap: 6px; margin-top: 9px; justify-content: center;
}
.rs-stat {
  flex: 0 1 88px; text-align: center; padding: 5px 4px 4px; border-radius: 9px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,214,150,.22);
  animation: rsStatIn .4s both;
}
.rs-stat:nth-child(2) { animation-delay: .07s; }
.rs-stat:nth-child(3) { animation-delay: .14s; }
@keyframes rsStatIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rs-stat b {
  display: block; font-family: var(--serif); font-size: 13px; font-weight: 800;
  color: #FFD98A; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.rs-stat span { font-size: 8px; color: rgba(255,240,214,.6); letter-spacing: .5px; }

/* 结算："我方最佳"贴立绘右下角，不与关卡名重叠 */
.rs-best { bottom: 2%; right: 2%; }
.rs-best em { font-size: 11px; }
.rs-best b { font-size: 14px; }
.rs-mid { padding-top: 8px; }
.rs-stats { margin-bottom: 2px; }

/* 结算："我方最佳"改为 mid 区首行（不再绝对定位压住关卡名） */
.rs-best {
  position: static; display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 5px; text-align: left;
}
.rs-best em {
  display: inline-block; margin: 0;
  font-size: 9px; letter-spacing: 1px; padding: 1.5px 7px; border-radius: 999px;
}
.rs-best b { display: inline-block; font-size: 13px; }

/* ══════════ v1.22.0 关卡地图路径与锁定节点 ══════════ */
/* 路径：已走段橙色实线，未走段灰虚线 */
.map::before {
  width: 8px; margin-left: -4px;
  background:
    linear-gradient(180deg, rgba(242,160,61,.9) 0 var(--prog, 0%), rgba(242,160,61,0) var(--prog, 0%)),
    repeating-linear-gradient(180deg, #E7D5B6 0 10px, rgba(255,255,255,0) 10px 21px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 1px 4px rgba(180,140,80,.2);
  border-radius: 5px;
}
/* 节点间连接点 */
.map-row::after { background: #F2E2C6; box-shadow: 0 0 0 2px rgba(255,252,244,.9); }
.map-row.done::after { background: #F2A03D; }

/* 锁定节点：虚线圆框 + 锁 + 剪影，比原来的整体淡化更可读 */
.map-row.lock .mn-face {
  border-style: dashed; border-color: #E3D2B6; background: #FAF3E4;
  box-shadow: none;
}
.map-row.lock .mn-face img, .map-row.lock .mn-face svg {
  filter: brightness(0) opacity(.14);
}
.map-row.lock .mn-lv { color: #B4A48A; }
.map-row.lock .mn-name { color: #BCAE97; letter-spacing: 1px; }
.map-row .mn-lock {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,252,244,.95); color: #B4A48A;
  box-shadow: 0 1px 4px rgba(160,130,90,.22);
}
.map-row .mn-lock svg { width: 12px; height: 12px; }
/* 当前节点：外圈进度环 */
.map-row.cur .mn-face { border-color: #F2A03D; }
.map-row.sel .mn-face { box-shadow: 0 0 0 3px rgba(242,160,61,.28), 0 4px 12px rgba(200,140,60,.3); }

/* 关卡节点精修：锁定更可读，"战"标缩小不挡脸 */
.map-row.lock .mn-face { border-color: #DFCBA8; background: #F8F0DE; }
.map-row.lock .mn-face img, .map-row.lock .mn-face svg { filter: brightness(0) opacity(.2); }
.map-row.lock .mn-name { color: #A8977C; }
.map-row.lock .mn-lock { color: #A8977C; }

.map-row.cur .mn-here, .mn-here {
  top: auto; bottom: -3px; left: 50%; transform: translateX(-50%);
  font-size: 8.5px; padding: 1px 6px; border-radius: 7px; letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(180,60,30,.4);
}
.map-row.cur .mn-face { background: #FFF6E6; }

/* "战"标改为右上角小圆徽，不再挡脸 */
.mn-here {
  left: auto; right: -5px; top: -3px; bottom: auto; transform: none;
  width: 19px; height: 19px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; font-size: 9px; letter-spacing: 0;
  border: 2px solid #fff;
  animation: hereBounce 1.6s ease-in-out infinite;
}
@keyframes hereBounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.map-row.cur .mn-face { overflow: visible; }
.map-row.cur .mn-face > img { border-radius: 50%; }

/* "战"标内改用剑图标（文字在 19px 圆里会被裁） */
.mn-here svg { width: 11px; height: 11px; color: #fff; }
.mn-here { font-size: 0; }

/* 覆盖高特异性旧规则：徽章固定在节点右上角、正圆 */
.map-row.cur .mn-here,
.map-row .mn-here {
  left: auto !important; right: -6px !important;
  top: -4px !important; bottom: auto !important;
  transform: none !important;
  width: 19px; height: 19px; padding: 0;
  border-radius: 50% !important;
  display: grid; place-items: center;
  font-size: 0; text-indent: 0;
  border: 2px solid #fff;
}

/* ══════════ v1.22.0 新手引导要点化 ══════════ */
.tut-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tut-head h3 { flex: 1; min-width: 0; letter-spacing: 1px; font-size: 15px; line-height: 1.3; }
.tut-badge {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, #FFC46B, #E07A22);
  box-shadow: 0 2px 6px rgba(200,120,40,.32), inset 0 1px 0 rgba(255,255,255,.5);
}
.tut-lead {
  font-size: 11.5px; color: #7A6448; line-height: 1.6;
  padding: 7px 10px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(90deg, #FFF6E2, #FDF0D6);
  border-left: 3px solid #F2A03D;
}
.tut-points { display: flex; flex-direction: column; gap: 6px; }
.tut-points .tp {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: 11px; background: #FFFCF4; border: 1.5px solid #F2E6D0;
}
.tp-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1.5px 4px rgba(120,80,30,.2);
}
.tp-ic svg { width: 14px; height: 14px; }
.tp-body { flex: 1; min-width: 0; }
.tp-body b {
  display: inline-block; font-family: var(--serif); font-size: 11.5px; font-weight: 700;
  color: #4A3520; letter-spacing: 1px; margin-right: 5px;
}
.tp-body i {
  display: block; font-style: normal; font-size: 9.5px; color: var(--muted); margin-top: 1px;
}
/* 启程礼条 */
.tut-gift {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px;
  border-radius: 12px; background: linear-gradient(180deg, #FFF8E4, #FBEBC4);
  border: 1.5px solid #F0DFBC;
}
.tg-ic {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #CBEAB8, #5E9E4A); color: #fff;
}
.tg-ic svg { width: 14px; height: 14px; }
.tut-gift b { display: block; font-family: var(--serif); font-size: 11.5px; color: #4E7A3C; }
.tut-gift i { display: block; font-style: normal; font-size: 8.5px; color: var(--dim); }
.tg-num {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: #8A5A20; font-variant-numeric: tabular-nums;
}
/* 分页点 */
.tut-dots { display: flex; gap: 5px; align-items: center; }
.tut-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: #E2D4BB;
  transition: all .2s;
}
.tut-dots i.on { width: 16px; border-radius: 4px; background: linear-gradient(90deg, #FFC46B, #E88A24); }

/* 引导面板紧凑一点，三页都能一屏放下 */
.tut-points { gap: 5px; }
.tut-points .tp { padding: 6px 9px; }
.tut-lead { margin-bottom: 8px; padding: 6px 10px; }
.tut-gift { margin-top: 8px; padding: 7px 10px; }

/* 万仙阵守阵者：中间主位立绘不裁头 */
.tw-cast { overflow: visible; padding-top: 2px; }
.tw-unit { overflow: visible; }
.tw-unit.mid { height: 152px; }
.tw-unit img.cut, .tw-unit .pv { object-fit: contain; object-position: 50% 100%; }
.tw-stage { padding-top: 46px; }

/* ══════════ v1.24.0 选服 / 多角色 ══════════ */
.sv-layer {
  position: absolute; inset: 0; z-index: 200; display: none; overflow: hidden;
  background: #1A1208;
}
.sv-layer.show { display: block; animation: svFade .35s ease both; }
@keyframes svFade { from { opacity: 0; } to { opacity: 1; } }
.sv-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62) saturate(1.05);
  animation: svZoom 26s ease-out both;
}
@keyframes svZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.sv-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(20,10,2,.2), transparent 60%),
    linear-gradient(180deg, rgba(16,8,2,.55) 0%, rgba(14,7,2,.72) 46%, rgba(10,5,1,.92) 100%);
}
.sv-cloud {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,240,210,.34), transparent 70%);
  filter: blur(16px);
}
.sv-cloud.c1 { width: 260px; height: 90px; top: 12%; left: -30%; animation: svCloud 46s linear infinite; }
.sv-cloud.c2 { width: 320px; height: 110px; top: 34%; left: -40%; opacity: .7; animation: svCloud 64s linear -20s infinite; }
@keyframes svCloud { to { transform: translateX(calc(100vw + 340px)); } }

.sv-wrap {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column;
  padding: calc(38px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
}
.sv-head { text-align: center; }
.sv-logo {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  font-family: var(--serif); font-size: 30px; font-weight: 800; color: #4A2200;
  background: linear-gradient(160deg, #FFE9A8, #E8A93C 62%, #C07A18);
  border: 2.5px solid rgba(255,255,255,.8);
  box-shadow: 0 6px 20px rgba(200,130,40,.45), inset 0 2px 0 rgba(255,255,255,.7);
  animation: svLogoIn .6s cubic-bezier(.2,1.5,.4,1) both;
}
@keyframes svLogoIn { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.sv-title {
  margin-top: 10px; font-family: var(--serif); font-size: 23px; font-weight: 800;
  letter-spacing: 6px; color: #FFF3D6;
  text-shadow: 0 2px 0 rgba(120,60,10,.6), 0 0 26px rgba(255,180,80,.5);
}
.sv-sub {
  margin-top: 6px; font-size: 10px; letter-spacing: 4px; color: rgba(255,232,196,.62);
}
.sv-count {
  margin: 16px 0 9px; text-align: center; font-size: 9.5px; color: rgba(255,232,196,.55);
}
.sv-count b { color: #FFC46B; font-size: 12px; font-variant-numeric: tabular-nums; }

.sv-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px; padding: 2px 1px 8px;
}
.sv-list::-webkit-scrollbar { width: 0; }
.sv-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, rgba(60,38,16,.82), rgba(42,26,10,.9));
  border: 2px solid rgba(255,205,130,.28);
  box-shadow: 0 3px 12px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,220,160,.16);
  transition: transform .12s, border-color .15s, background .15s;
  animation: svItemIn .4s cubic-bezier(.2,1.2,.4,1) both;
}
.sv-item:nth-child(1) { animation-delay: .04s; }
.sv-item:nth-child(2) { animation-delay: .09s; }
.sv-item:nth-child(3) { animation-delay: .14s; }
.sv-item:nth-child(4) { animation-delay: .19s; }
.sv-item:nth-child(5) { animation-delay: .24s; }
@keyframes svItemIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sv-item:active { transform: scale(.985); }
.sv-item.cur {
  border-color: rgba(255,196,107,.85);
  background: linear-gradient(180deg, rgba(96,58,20,.92), rgba(62,36,12,.94));
  box-shadow: 0 4px 16px rgba(200,130,40,.28), inset 0 1px 0 rgba(255,220,160,.24);
}
.sv-item.empty { background: linear-gradient(180deg, rgba(40,28,16,.72), rgba(28,18,9,.82)); border-style: dashed; }
.sv-item.soon { opacity: .5; }

.sv-badge {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 12px; font-weight: 800; color: #4A2200;
  background: linear-gradient(160deg, #FFE9A8, #E8A93C 66%, #C07A18);
  border: 2px solid rgba(255,255,255,.72);
  box-shadow: 0 2px 8px rgba(0,0,0,.32);
}
.sv-badge.dim { background: linear-gradient(160deg, #6E5A42, #4A3A26); color: rgba(255,235,200,.6); border-color: rgba(255,220,170,.24); }
.sv-body { flex: 1; min-width: 0; }
.sv-name {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 13px; font-weight: 700; color: #FFF1D4; letter-spacing: .5px;
}
.sv-tag {
  font-style: normal; font-size: 7.5px; font-weight: 700; letter-spacing: .5px;
  padding: 1px 5px; border-radius: 5px; color: #FFEAC2;
  background: rgba(255,200,110,.24); border: 1px solid rgba(255,200,110,.36);
}
.sv-tag.hot { color: #4A1A00; background: linear-gradient(150deg, #FFD98A, #F09A2A); border-color: rgba(255,255,255,.5); }
.sv-role { font-size: 9.5px; color: rgba(255,232,196,.72); margin-top: 2px; }
.sv-role.dim { color: rgba(255,232,196,.42); }
.sv-time { font-size: 8.5px; color: rgba(255,232,196,.4); margin-top: 1px; }
.sv-go {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #4A2200;
  padding: 5px 12px; border-radius: 9px;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
  box-shadow: 0 2px 0 #A86414, inset 0 1px 0 rgba(255,255,255,.6);
}
.sv-go.new { background: linear-gradient(180deg, #9AE0C4, #3E9C82); box-shadow: 0 2px 0 #2A6E5A, inset 0 1px 0 rgba(255,255,255,.5); color: #fff; }
.sv-go.off { background: rgba(120,105,85,.6); box-shadow: none; color: rgba(255,240,214,.5); }
.sv-del {
  position: absolute; right: -4px; top: -6px;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; color: rgba(255,214,180,.8);
  background: rgba(60,26,14,.9); border: 1px solid rgba(255,150,110,.4);
}
.sv-foot {
  text-align: center; font-size: 8.5px; color: rgba(255,232,196,.38);
  padding-top: 6px; letter-spacing: .5px;
}

/* 选服层：boot 提前 return 时 #phone 会塌高，改用 fixed 铺满视口 */
.sv-layer {
  position: fixed; inset: 0; z-index: 200;
  height: 100dvh; max-height: 100dvh;
}
.sv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-wrap { height: 100%; }

/* 选服：内容整体居中，列表超长才滚动 */
.sv-wrap { justify-content: center; }
.sv-list { flex: 0 1 auto; max-height: 54vh; justify-content: flex-start; }
.sv-head { margin-bottom: 4px; }
.sv-foot { margin-top: 4px; }

/* ══════════ v1.24.0 七日目标 ══════════ */

/* 主城右上角入口 */
.home-entry { position: absolute; right: 10px; top: 10px; z-index: 6; }
.he-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(160deg, #FFE9A8, #EF9A2E 62%, #D06E14);
  border: 2.5px solid rgba(255,255,255,.9);
  box-shadow: 0 5px 14px rgba(200,120,30,.4), inset 0 1px 0 rgba(255,255,255,.6);
  color: #5A2A00; font-family: var(--serif);
  animation: heIn .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes heIn { from { opacity: 0; transform: scale(.6) rotate(-10deg); } to { opacity: 1; transform: none; } }
.he-btn svg { width: 18px; height: 18px; }
.he-btn span { font-size: 8.5px; font-weight: 800; letter-spacing: .5px; }
.he-btn:active { transform: scale(.94); }
.he-dot {
  position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #FF6B4A, #D02C10);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(180,40,20,.5);
  animation: dotPulse 1.6s ease-in-out infinite;
}
.he-dot.inline { position: static; display: inline-block; margin: 0 3px; width: 8px; height: 8px; border-width: 1.5px; }
@keyframes dotPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.f-ic.ic-seven { background: linear-gradient(160deg, #FFD98A, #E08A1E); }

/* 页面 */
.seven-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.sh-txt { flex: 1; min-width: 0; }
.sh-txt b {
  display: block; font-family: var(--serif); font-size: 17px; font-weight: 800;
  letter-spacing: 4px; color: #8A4A18;
}
.sh-txt i { display: block; font-style: normal; font-size: 9px; color: var(--dim); letter-spacing: 1px; margin-top: 1px; }
.sh-day {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; color: #C07A18;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.8); border: 1.5px solid rgba(232,169,60,.45);
}

/* 七天进度点 */
.seven-dots {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 13px; margin-bottom: 9px;
  background: linear-gradient(180deg, #FFFCF3, #FBF0D8);
  border: 2px solid #F0E0C2;
}
.sd-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #F5E8CE; border: 2px solid #E8D6B4;
  font-family: var(--serif); font-size: 11px; font-weight: 800; color: #A8916E;
}
.sd-dot.done { background: linear-gradient(160deg, #CBEAB8, #5E9E4A); border-color: #fff; color: #fff; }
.sd-dot.cur {
  background: linear-gradient(160deg, #FFD98A, #E8A93C); border-color: #fff; color: #5A2A00;
  box-shadow: 0 0 0 3px rgba(232,169,60,.28); animation: dotPulse 1.8s ease-in-out infinite;
}
.sd-dot.lock { opacity: .5; }
.sd-line { flex: 1; height: 2px; background: #EADCC2; margin: 0 2px; border-radius: 2px; }

.seven-tip {
  font-size: 9px; color: var(--dim); text-align: center; margin-bottom: 10px; letter-spacing: .3px;
}

/* 天卡 */
.seven-card {
  border-radius: 14px; padding: 11px 12px 11px; margin-bottom: 9px;
  background: #FFFCF4; border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.16);
}
.seven-card.alldone { background: linear-gradient(180deg, #FFFDF8, #FFF4E0); border-color: #F3C98F; }
.seven-card.lock { opacity: .56; }
.sc-head { display: flex; align-items: baseline; gap: 6px; }
.sc-day {
  font-size: 9px; font-weight: 800; color: #fff; padding: 1.5px 7px; border-radius: 6px;
  background: linear-gradient(150deg, #FFB44E, #E07A1E);
}
.sc-name { font-family: var(--serif); font-size: 13px; font-weight: 700; color: #4A3520; letter-spacing: 1px; }
.sc-prog { margin-left: auto; font-size: 9px; color: #4E9C82; font-weight: 700; }
.sc-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: var(--dim); }
.sc-lock svg { width: 11px; height: 11px; }
.sc-sub { font-size: 9.5px; color: var(--dim); margin: 2px 0 8px; }

/* 任务行 */
.st-tasks { display: flex; flex-direction: column; gap: 5px; }
.st-task {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 10px; background: #FFFDF8; border: 1.5px solid #F4E8D4;
}
.st-task.got { background: #F6FBF7; border-color: #CFE8DA; }
.st-ic {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #FFC46B, #E08A24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.st-task.got .st-ic { background: linear-gradient(160deg, #CBEAB8, #5E9E4A); }
.st-ic svg { width: 13px; height: 13px; }
.st-body { flex: 1; min-width: 0; }
.st-name { font-size: 10.5px; color: #4A3520; font-weight: 600; }
.st-bar { height: 5px; border-radius: 3px; background: #F2E6CE; margin-top: 3px; overflow: hidden; }
.st-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #FFD98A, #F2A03D);
  transition: width .4s ease;
}
.st-task.got .st-bar i { background: linear-gradient(90deg, #9AE0C4, #4E9C82); }
.st-num { font-size: 8px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.st-task .btn { flex: 0 0 auto; min-width: 56px; padding: 4px 8px; font-size: 10px; min-height: 0; }

/* 日礼 */
.sc-gift {
  display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed #EEDFC2;
}
.sg-label { font-size: 9px; color: #B4761A; font-weight: 700; letter-spacing: 1px; flex: 0 0 auto; }
.sg-items { flex: 1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-items b { font-size: 10px; color: #8A5A20; font-variant-numeric: tabular-nums; }
.sg-role {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: #C08A24;
  padding: 1px 6px; border-radius: 6px; background: rgba(232,169,60,.16);
}
.sg-role svg { width: 10px; height: 10px; }
.sc-gift .btn { flex: 0 0 auto; padding: 4px 10px; font-size: 10px; min-height: 0; }

/* ══════════ v1.24.0 活动系统 ══════════ */
.home-entry { display: flex; flex-direction: column; gap: 7px; }
.he-btn.ev {
  background: linear-gradient(160deg, #CFE3FF, #4A7BD6 62%, #2E56A8);
  color: #FFF6E0;
}
.he-btn.ev svg { color: #fff; }

/* 活动横幅 */
.events-banner {
  position: relative; overflow: hidden; border-radius: 15px; margin-bottom: 11px;
  padding: 15px 14px; min-height: 74px;
  display: flex; align-items: center;
  background:
    radial-gradient(120% 140% at 8% 0%, rgba(255,225,150,.5), transparent 60%),
    linear-gradient(120deg, #C98A2E, #8A4F12 58%, #5A2E0A);
  border: 2px solid rgba(255,225,170,.45);
  box-shadow: 0 5px 16px rgba(140,80,20,.28), inset 0 1px 0 rgba(255,230,180,.3);
}
.eb-glow {
  position: absolute; right: -30px; top: -40px; width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,235,170,.5), transparent 68%);
  animation: ebGlow 5s ease-in-out infinite;
}
@keyframes ebGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .95; transform: scale(1.12); } }
.eb-txt { position: relative; z-index: 2; }
.eb-txt b {
  display: block; font-family: var(--serif); font-size: 19px; font-weight: 800;
  letter-spacing: 5px; color: #FFF4D8;
  text-shadow: 0 2px 0 rgba(90,40,0,.5), 0 0 20px rgba(255,200,90,.5);
}
.eb-txt span { display: block; font-size: 9px; color: rgba(255,238,205,.78); letter-spacing: 1.5px; margin-top: 3px; }

/* 活动卡 */
.ev-card {
  border-radius: 14px; overflow: hidden; margin-bottom: 10px;
  background: #FFFCF4; border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.16);
}
.ev-card.end { opacity: .62; }
.ev-head { display: flex; align-items: center; gap: 9px; padding: 10px 11px; }
.ev-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 2px 6px rgba(120,80,30,.24);
}
.ev-ic svg { width: 17px; height: 17px; }
.ev-title { flex: 1; min-width: 0; }
.ev-title b {
  display: block; font-family: var(--serif); font-size: 13px; font-weight: 700;
  color: #4A3520; letter-spacing: 1px;
}
.ev-title i { display: block; font-style: normal; font-size: 9px; color: var(--dim); margin-top: 1px; }
.ev-state {
  flex: 0 0 auto; font-size: 8.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: #fff; background: #B4AC9E;
}
.ev-state.on { background: linear-gradient(150deg, #7FC96A, #4E9C3C); }
.ev-state.soon { background: #9AA6B5; }
.ev-time {
  display: flex; align-items: center; gap: 4px;
  padding: 0 11px 8px; font-size: 9px; color: #B4761A;
}
.ev-time svg { width: 11px; height: 11px; }

/* 登录礼 7 格 */
.ev-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 11px 11px; }
.ev-day {
  border-radius: 10px; padding: 6px 4px 5px; text-align: center;
  background: #FFFDF8; border: 1.5px solid #F2E6D0;
}
.ev-day.can {
  border-color: #E8A93C; background: linear-gradient(180deg, #FFF8E4, #FBEBC4);
  box-shadow: 0 0 0 2px rgba(232,169,60,.18);
  animation: evCan 1.8s ease-in-out infinite;
}
@keyframes evCan { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.ev-day.got { opacity: .55; background: #F7F4EC; }
.ev-day.lock { opacity: .5; }
.ed-n { font-size: 8px; color: var(--muted); }
.ed-items { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 3px 0 4px; flex-wrap: wrap; }
.ed-items b { font-size: 8.5px; color: #8A5A20; font-variant-numeric: tabular-nums; }
.ed-btn {
  font-size: 8px; font-weight: 700; color: #fff; padding: 1.5px 0; border-radius: 6px;
  background: #C9BCA6;
}
.ev-day.can .ed-btn { background: linear-gradient(150deg, #FFB44E, #E07A1E); }
.ev-day.got .ed-btn { background: #B4C9BE; }

/* 冲层奖励行 */
.ev-rows { display: flex; flex-direction: column; gap: 5px; padding: 0 11px 11px; }
.ev-row {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  border-radius: 9px; background: #FFFDF8; border: 1.5px solid #F4E8D4;
}
.ev-row.got { background: #F6FBF7; border-color: #CFE8DA; opacity: .7; }
.ev-need {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  font-size: 9.5px; font-weight: 700; color: #7A5FBF;
}
.ev-need svg { width: 11px; height: 11px; }
.ev-give { flex: 1; display: flex; align-items: center; gap: 5px; }
.ev-give b { font-size: 9.5px; color: #8A5A20; font-variant-numeric: tabular-nums; }
.ev-row .btn { flex: 0 0 auto; padding: 3px 8px; font-size: 9.5px; min-height: 0; min-width: 52px; }

/* 灵脉活动 */
.ev-mine { display: flex; align-items: center; gap: 10px; padding: 2px 11px 12px; }
.em-big {
  font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1;
  background: linear-gradient(160deg, #7FE0C0, #2E9C86);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.em-txt { flex: 1; font-size: 9.5px; color: #6E5A40; line-height: 1.5; }
.em-txt i { font-style: normal; color: var(--dim); font-size: 8.5px; }

/* ══════════ v1.24.0 宝石系统 ══════════ */
.gem-panel { padding-top: 2px; }
.gem-sum { padding: 9px 11px 10px; }
.gsm-head { display: flex; align-items: baseline; justify-content: space-between; }
.gsm-head b { font-family: var(--serif); font-size: 12.5px; color: #4A3520; letter-spacing: 1px; }
.gsm-head span { font-size: 9px; color: var(--dim); }
.gb-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.gb-chip {
  font-size: 9.5px; font-weight: 700; color: #4E7A3C;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(127,192,179,.16); border: 1px solid rgba(127,192,179,.3);
  font-variant-numeric: tabular-nums;
}
.gb-chip.dim { color: #A8917E; background: rgba(180,160,130,.12); border-color: rgba(180,160,130,.24); font-weight: 400; }

/* 6 孔 */
.gs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gs-slot {
  position: relative; aspect-ratio: 1; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #FFFCF4; border: 2px solid #EDDFC6; cursor: pointer;
  transition: transform .12s, border-color .15s;
}
.gs-slot:active { transform: scale(.96); }
.gs-slot.empty { border-style: dashed; background: #FFFBF2; }
.gs-slot.lock { opacity: .55; cursor: default; border-style: dashed; }
.gs-slot.filled { background: linear-gradient(180deg, #FFFDF8, #FBF3E2); }
.gs-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; border: 1.5px solid rgba(255,255,255,.7);
  box-shadow: 0 2px 6px rgba(120,80,30,.22), inset 0 1px 0 rgba(255,255,255,.45);
}
.gs-ic svg { width: 16px; height: 16px; }
.gs-slot b { font-size: 9.5px; font-weight: 700; color: #6E5A40; }
.gs-slot i { font-style: normal; font-size: 8px; color: var(--dim); font-variant-numeric: tabular-nums; }
.gs-plus { font-family: var(--serif); font-size: 22px; font-weight: 300; color: #C9B08A; line-height: 1; }
.gs-lock { color: #B4A48A; }
.gs-lock svg { width: 15px; height: 15px; }

/* 宝石囊 */
.gem-list { display: flex; flex-direction: column; gap: 6px; }
.gem-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px;
  border-radius: 11px; background: #FFFDF8; border: 1.5px solid #F2E6D0;
}
.gem-item .gi-ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  box-shadow: 0 1.5px 5px rgba(120,80,30,.2);
}
.gem-item .gi-ic svg { width: 15px; height: 15px; }
.gi-body { flex: 1; min-width: 0; }
.gi-body b {
  display: block; font-family: var(--serif); font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gi-body i { display: block; font-style: normal; font-size: 8.5px; color: var(--muted); margin-top: 1px; }
.gi-n { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: #8A6A3E; font-variant-numeric: tabular-nums; }
.gem-item .btn { flex: 0 0 auto; padding: 3px 9px; font-size: 9.5px; min-height: 0; min-width: 52px; }

/* ══════════ v1.24.0 套装 / 法宝操作 ══════════ */
.set-card { padding: 9px 11px 10px; margin-bottom: 8px; }
.set-card.dim { background: #FFFCF4; }
.set-head {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 11.5px; font-weight: 700; color: #4A3520;
  letter-spacing: 1px; margin-bottom: 6px;
}
.set-head svg { width: 13px; height: 13px; color: #A9762F; }
.set-row {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 5px 0; border-top: 1px dashed #F0E3CC;
}
.set-row:first-of-type { border-top: 0; }
.set-n {
  font-family: var(--serif); font-size: 10.5px; font-weight: 700; color: #5A4026;
  flex: 0 0 auto;
}
.set-n i { font-style: normal; font-size: 8.5px; color: var(--dim); margin-left: 3px; font-weight: 400; }
.set-b {
  font-size: 8.5px; color: #A8917E; padding: 1px 6px; border-radius: 6px;
  background: rgba(180,160,130,.14);
}
.set-b.on { color: #4E7C3C; background: rgba(127,201,106,.2); font-weight: 700; }

/* 法宝卡"查看/强化"提示 */
.art-card .ac-more {
  font-size: 8.5px; color: var(--dim); text-align: center; margin-top: 4px;
  padding-top: 4px; border-top: 1px dashed rgba(220,200,170,.7);
}

/* 法宝操作弹层 */
.ad-top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ad-ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(120,80,30,.25), inset 0 1px 0 rgba(255,255,255,.5);
}
.ad-ic svg { width: 23px; height: 23px; }
.ad-info { flex: 1; min-width: 0; }
.ad-name { font-family: var(--serif); font-size: 14px; font-weight: 800; }
.ad-main { font-size: 10px; color: #6E5A40; margin-top: 2px; line-height: 1.4; }
.ad-score { font-size: 9px; color: var(--dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ad-set {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 7px 10px; border-radius: 10px; margin-bottom: 10px;
  background: linear-gradient(90deg, #FFF6E2, #FDF0D6);
  border-left: 3px solid #F2A03D;
  font-size: 9px; color: #7A6448;
}
.ad-set svg { width: 12px; height: 12px; color: #A9762F; flex: 0 0 auto; }
.ad-set b { font-family: var(--serif); font-size: 10.5px; color: #5A4026; }
.ad-btns .btn .ic { width: 13px; height: 13px; }

/* ══════════ v1.24.0 符诏分支 ══════════ */
.rune-sum { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.rs-left { flex: 0 0 auto; text-align: center; padding-right: 11px; border-right: 1.5px dashed rgba(200,165,110,.45); }
.rs-left b {
  display: block; font-family: var(--serif); font-size: 26px; font-weight: 800; line-height: 1;
  background: linear-gradient(160deg, #FFB44E, #D06E14);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.rs-left span { display: block; font-size: 8.5px; color: var(--dim); margin-top: 3px; letter-spacing: .5px; }
.rs-mid { flex: 1; min-width: 0; }
.rs-bar { height: 7px; border-radius: 4px; background: #F1E2C6; overflow: hidden; }
.rs-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FFD98A, #F2A03D); }
.rs-tip { font-size: 8.5px; color: var(--dim); margin-top: 4px; }

.rune-card {
  border-radius: 14px; padding: 10px 11px 11px; margin-bottom: 9px;
  background: #FFFCF4; border: 2px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.14);
}
.rc-head { display: flex; align-items: center; gap: 8px; }
.rc-ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  box-shadow: 0 2px 6px rgba(120,80,30,.22);
}
.rc-ic svg { width: 16px; height: 16px; }
.rc-title { flex: 1; min-width: 0; }
.rc-title b { display: block; font-family: var(--serif); font-size: 12.5px; font-weight: 700; color: #4A3520; letter-spacing: 1px; }
.rc-title i { display: block; font-style: normal; font-size: 8.5px; color: var(--dim); margin-top: 1px; }
.rc-prog {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; color: var(--rc, #A9762F);
  padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.8);
  border: 1px solid rgba(200,170,120,.36); font-variant-numeric: tabular-nums;
}

/* 节点链 */
.rn-row { display: flex; align-items: flex-start; margin-top: 9px; }
.rn-item {
  flex: 1 1 0; min-width: 0; text-align: center; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.rn-item.next { cursor: pointer; }
.rn-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 9.5px; font-weight: 800; font-family: var(--serif);
  background: #F4E8D2; border: 2px solid #E4D4B6; color: #B4A48A;
  transition: all .18s;
}
.rn-item.on .rn-dot { background: linear-gradient(160deg, #FFD98A, #E8A93C); border-color: #fff; color: #5A2A00; box-shadow: 0 2px 6px rgba(200,140,40,.3); }
.rn-item.next .rn-dot {
  background: linear-gradient(160deg, #9AE0C4, #3E9C82); border-color: #fff; color: #fff;
  box-shadow: 0 0 0 3px rgba(62,156,130,.24);
  animation: rnPulse 1.7s ease-in-out infinite;
}
@keyframes rnPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.rn-item b {
  font-size: 8.5px; font-weight: 700; color: #A8917E;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.rn-item.on b { color: #5A4026; }
.rn-item.next b { color: #2E7C66; }
.rn-item i {
  font-style: normal; font-size: 7.5px; color: #BEAE94;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.rn-link {
  flex: 0 0 8px; height: 2px; margin-top: 10px; border-radius: 2px; background: #E7D9BE;
}
.rn-link.on { background: #F2C06A; }
.rc-done {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 8px; font-size: 9px; font-weight: 700; color: #C08A24;
}
.rc-done svg { width: 12px; height: 12px; }

/* 主城入口：定位父级补 relative（原来顶到屏幕顶部压住顶栏），并改为横排 */
.scene-wrap { position: relative; }
.home-entry {
  position: absolute; right: 10px; top: 8px;
  z-index: 8; display: flex; flex-direction: row; gap: 7px;
}
.he-btn { width: 46px; height: 46px; border-radius: 12px; }
.he-btn svg { width: 16px; height: 16px; }
.he-btn span { font-size: 8px; }

/* ══════════ v1.26.0 点将台宝鼎（用图代替文字） ══════════ */
.gacha-stage {
  position: relative; height: 322px; margin-bottom: 10px;
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 46% at 50% 62%, rgba(255,226,160,.55), transparent 72%),
    linear-gradient(180deg, #FBF1DC 0%, #F3E2C2 60%, #E9D3AE 100%);
  border: 2.5px solid #F0D9AE;
  box-shadow: 0 6px 20px rgba(150,110,50,.2), inset 0 1px 0 rgba(255,255,255,.9);
}
.gs-art {
  position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%);
  width: 108%; height: auto; object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(120,80,30,.32));
  animation: gsFloat 4.6s ease-in-out infinite;
}
@keyframes gsFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-9px) scale(1.012); }
}
.gs-glow {
  position: absolute; left: 50%; bottom: 6%; width: 300px; height: 120px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,200,90,.55), transparent 70%);
  filter: blur(16px); animation: gsGlow 3.6s ease-in-out infinite;
}
@keyframes gsGlow { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.gs-halo {
  position: absolute; left: 50%; top: 42%; width: 420px; height: 420px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,210,120,.18), transparent 18%, rgba(255,210,120,.18) 36%, transparent 54%, rgba(255,210,120,.18) 72%, transparent 90%);
  animation: gsHalo 20s linear infinite;
}
@keyframes gsHalo { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* 顶部金框提示（保底信息用一条代替整块） */
.gs-tip {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(90,48,10,.88), rgba(60,30,6,.92));
  border: 1.5px solid rgba(255,205,120,.7);
  box-shadow: 0 3px 10px rgba(80,40,0,.3);
  font-size: 9.5px; color: #FFE9C0;
}
.gs-tip svg { width: 11px; height: 11px; color: #FFC46B; }
.gs-tip b { color: #FFD98A; font-size: 11px; font-variant-numeric: tabular-nums; }
.gs-tip em { font-style: normal; font-weight: 800; color: #FFB44E; }
/* 底部保底进度细条 */
.gs-track {
  position: absolute; left: 16px; right: 16px; bottom: 8px; height: 5px;
  border-radius: 3px; background: rgba(255,255,255,.55); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(160,120,60,.2);
}
.gs-track i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #FFD98A, #F2A03D);
  box-shadow: 0 0 8px rgba(242,160,61,.7);
  transition: width .4s ease;
}

/* 品质概率：四枚圆章 */
.prob-trio { display: flex; gap: 7px; margin-bottom: 10px; }
.pt { flex: 1; text-align: center; cursor: default; }
.pt[data-act] { cursor: pointer; }
.pt-ring {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: baseline; justify-content: center;
  padding-top: 30%;
  background: radial-gradient(circle at 38% 28%, #fff, #F6E8CE 68%);
  border: 2.5px solid #EFDFC2;
  box-shadow: inset 0 2px 6px rgba(255,255,255,.9), 0 2px 6px rgba(150,110,50,.16);
}
.pt-ring b {
  font-family: var(--serif); font-size: 16px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pt-ring i { font-style: normal; font-size: 7.5px; color: var(--dim); margin-left: 1px; }
.pt-lab { display: block; font-size: 8.5px; color: var(--muted); margin-top: 3px; letter-spacing: .5px; }
.pt-tian .pt-ring { border-color: #E8C078; background: radial-gradient(circle at 38% 28%, #FFFDF4, #FBEBC8 70%); }
.pt-tian .pt-ring b { background: linear-gradient(160deg, #F0B23C, #C9760F); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-di .pt-ring { border-color: #C6AEF0; background: radial-gradient(circle at 38% 28%, #FDFAFF, #EADFF8 70%); }
.pt-di .pt-ring b { background: linear-gradient(160deg, #A98FD6, #7A5FBF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-ren .pt-ring { border-color: #A8D2C6; background: radial-gradient(circle at 38% 28%, #FAFFFD, #DFF3EC 70%); }
.pt-ren .pt-ring b { background: linear-gradient(160deg, #7FC0B3, #3E9C88); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pt-dex .pt-ring { border-color: #E2D4BB; }
.pt-dex .pt-ring b { font-size: 13px; color: #8A6A3E; }

/* ══════════ v1.26.0 敌方群像（关卡详情） ══════════ */
.foe-stage {
  position: relative; height: 148px; margin-top: 8px; border-radius: 12px;
  overflow: hidden; background: #E8D6B6;
  border: 2px solid #EEDCBC;
}
.fs-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 62%; filter: saturate(1.05) brightness(.92);
}
.fs-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(60,36,10,.28) 0%, transparent 34%, rgba(60,30,6,.42) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(80,44,10,.4), transparent 70%);
}
.fs-line {
  position: absolute; left: 0; right: 0; bottom: 4px; height: 100%;
  display: flex; align-items: flex-end; justify-content: center; gap: 0;
}
.fs-unit {
  position: relative; flex: 0 1 auto; height: 76%; display: flex;
  align-items: flex-end; justify-content: center;
  animation: fsIn .5s cubic-bezier(.2,1.2,.4,1) both; animation-delay: var(--dl, 0ms);
}
.fs-unit.mid { height: 92%; z-index: 2; }
@keyframes fsIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
.fs-unit img.cut, .fs-unit .pv {
  height: 100%; width: auto; max-width: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 4px 8px rgba(40,20,0,.55));
}
.fs-unit .pv { height: 100%; }
/* 名字胶囊压在脚下 */
.fs-name {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px; white-space: nowrap;
  padding: 1px 5px 1px 1px; border-radius: 999px;
  background: rgba(24,12,2,.78); border: 1.5px solid;
  font-size: 8px; color: #FFF0D4; letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.fs-name i {
  width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 7px; font-weight: 700; color: #fff;
}
.fs-name em { font-style: normal; font-size: 7px; opacity: .8; margin-left: 1px; }

/* 敌方群像在 flex 容器里必须撑满宽度（否则宽度塌成 0） */
.enemy-row { display: block; }
.foe-stage { flex: 1 1 auto; width: 100%; }

/* 群像：最多 4 尊，放大显示 */
.foe-stage { height: 156px; }
.fs-unit { height: 84%; }
.fs-unit.mid { height: 100%; }
.fs-line { gap: 0; }
.fs-name { font-size: 7.5px; padding: 0 4px 0 0; }
.fs-name i { width: 11px; height: 11px; font-size: 6.5px; }
.fs-more {
  position: absolute; right: 6px; bottom: 6px; z-index: 3;
  font-size: 8px; font-weight: 700; color: #fff;
  padding: 1px 6px; border-radius: 7px;
  background: rgba(24,12,2,.72); border: 1px solid rgba(255,205,120,.4);
}

/* ══════════ v1.26.0 选服首屏（全屏主视觉） ══════════ */
.sv-veil2 {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20,10,3,.34) 0%, transparent 22%, transparent 46%, rgba(14,7,2,.55) 72%, rgba(10,5,1,.86) 100%);
}
.sv-top {
  position: absolute; left: 0; right: 0; top: calc(16px + env(safe-area-inset-top));
  z-index: 3; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.sv-logo-sm {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; font-weight: 800; color: #4A2200;
  background: linear-gradient(160deg, #FFE9A8, #E8A93C 62%, #C07A18);
  border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 3px 10px rgba(200,130,40,.4);
}
.sv-app {
  font-family: var(--serif); font-size: 12.5px; font-weight: 700; letter-spacing: 3px;
  color: #FFF3D6; text-shadow: 0 2px 6px rgba(0,0,0,.7);
}

.sv-bottom {
  position: absolute; left: 0; right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 4; padding: 0 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
/* 服务器条 */
.sv-server {
  display: flex; align-items: center; gap: 9px; width: 100%; cursor: pointer;
  padding: 8px 10px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(60,36,14,.82), rgba(36,20,6,.9));
  border: 1.5px solid rgba(255,205,120,.42);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,220,160,.18);
  backdrop-filter: blur(3px);
}
.sv-sv-ic {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 11px; font-weight: 800; color: #4A2200;
  background: linear-gradient(160deg, #FFE9A8, #E8A93C);
  border: 1.5px solid rgba(255,255,255,.7);
}
.sv-sv-txt { flex: 1; min-width: 0; text-align: left; }
.sv-sv-txt b {
  display: block; font-family: var(--serif); font-size: 12.5px; font-weight: 700;
  color: #FFF1D4; letter-spacing: .5px;
}
.sv-sv-txt i {
  display: block; font-style: normal; font-size: 9px; color: rgba(255,232,196,.68); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv-sv-go { flex: 0 0 auto; font-size: 9.5px; color: #FFD98A; letter-spacing: .5px; }

/* 进入游戏大按钮 */
.sv-enter {
  width: 100%; padding: 13px 0; border-radius: 14px; cursor: pointer;
  font-family: var(--serif); font-size: 18px; font-weight: 800; letter-spacing: 8px;
  color: #5A2600; text-indent: 8px;
  background: linear-gradient(180deg, #FFF0B8 0%, #FFCB62 42%, #E8952A 100%);
  border: 2.5px solid rgba(255,255,255,.85);
  box-shadow: 0 5px 0 #B0641A, 0 12px 28px rgba(255,170,60,.4), inset 0 2px 0 rgba(255,255,255,.8);
  animation: svEnterPulse 2.4s ease-in-out infinite;
}
@keyframes svEnterPulse {
  0%, 100% { box-shadow: 0 5px 0 #B0641A, 0 12px 28px rgba(255,170,60,.4), inset 0 2px 0 rgba(255,255,255,.8); }
  50% { box-shadow: 0 5px 0 #B0641A, 0 12px 40px rgba(255,190,90,.7), inset 0 2px 0 rgba(255,255,255,.8); }
}
.sv-enter:active { transform: translateY(3px); box-shadow: 0 2px 0 #B0641A, 0 6px 16px rgba(255,170,60,.3); }
.sv-enter.off { background: linear-gradient(180deg, #C9C0B0, #9A9186); color: rgba(255,255,255,.7); box-shadow: 0 3px 0 #6E655A; animation: none; }
.sv-foot2 {
  text-align: center; font-size: 8px; line-height: 1.6; color: rgba(255,232,196,.42);
}

/* 选服抽屉行 */
.sv-list2 { display: flex; flex-direction: column; gap: 6px; }
.sv-row {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 12px; cursor: pointer;
  background: #FFFCF4; border: 2px solid #F0E3CC;
}
.sv-row.on { border-color: #E8A93C; background: linear-gradient(180deg, #FFF8E4, #FBEBC4); }
.sv-row.soon { opacity: .55; cursor: default; }
.sv-row .sv-badge { width: 34px; height: 34px; font-size: 10.5px; }
.sv-row .sv-name { color: #4A3520; font-size: 12px; }
.sv-row .sv-role { color: var(--muted); }
.sv-row .sv-role.dim { color: #B4A488; }
.sv-check {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; color: #fff;
  background: linear-gradient(150deg, #FFB44E, #E07A1E);
}
.sv-row .sv-del {
  position: absolute; right: -4px; top: -5px; width: 17px; height: 17px; font-size: 9px;
  background: #F0DCD4; color: #C25A4A; border: 1px solid #E8C4B8;
  border-radius: 50%; display: grid; place-items: center;
}

/* 选服条右侧"点击选服"：改为绝对定位，避免被文本挤掉 */
.sv-server { position: relative; padding-right: 82px; }
.sv-sv-go {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 9.5px; color: #FFD98A; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,200,110,.16); border: 1px solid rgba(255,205,120,.34);
}

/* 用 grid 三列保证"点击选服"始终可见 */
.sv-server {
  display: grid !important; grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px !important; align-items: center;
  padding: 8px 10px !important;
}
.sv-sv-go {
  position: static !important; transform: none !important;
  display: inline-block !important; white-space: nowrap;
}

/* ══════════ v1.27.0 武将详情：横幅式立绘 + 紧凑首屏 ══════════ */
.dt-page { padding-bottom: 18px; }
.dt-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.dt-back {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid #fff; background: linear-gradient(180deg,#FFFDF8,#F7E9D0);
  color: #A6682C; font-size: 20px; line-height: 1; padding-bottom: 3px;
  box-shadow: 0 2px 0 rgba(200,170,120,.4); cursor: pointer;
}
.dt-back:active { transform: translateY(1px); }
.dt-crumb { font-size: 9.5px; color: var(--dim); letter-spacing: .5px; margin-left: auto; }

.hero2 {
  position: relative; height: 196px; border-radius: 16px; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(160,120,60,.18);
  background: radial-gradient(80% 70% at 72% 26%, #FFF0CE, #FBE2BC 70%, #F2D6AC);
}
.h2-art { position: absolute; inset: -6% -8% 0 18%; }
.h2-art img {
  width: 100%; height: 100%; object-fit: contain; object-position: 78% 100%;
  filter: drop-shadow(0 6px 10px rgba(150,100,40,.22));
  animation: heroFloat 6s ease-in-out infinite;
}
.h2-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,250,240,.92) 0%, rgba(255,250,240,.5) 30%, transparent 52%),
    linear-gradient(180deg, transparent 46%, rgba(255,250,240,.55) 72%, rgba(255,250,240,.96) 97%);
}
.h2-badges { position: absolute; left: 10px; top: 9px; display: flex; gap: 4px; align-items: center; }
.h2-tier {
  color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  padding: 1px 7px; border-radius: 7px; box-shadow: 0 1.5px 0 rgba(0,0,0,.14);
}
.h2-tag {
  font-size: 9px; font-weight: 700; padding: 1.5px 6px; border-radius: 6px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(200,170,120,.5); color: var(--ink2);
}
.h2-lv {
  position: absolute; right: 10px; top: 9px;
  font-size: 10px; font-weight: 800; color: #7A4A18;
  background: rgba(255,255,255,.82); border: 1.5px solid rgba(217,164,65,.55);
  border-radius: 8px; padding: 1px 7px;
}
.h2-info { position: absolute; left: 12px; right: 12px; bottom: 8px; }
.h2-row { display: flex; align-items: center; gap: 8px; }
.h2-name {
  font-family: var(--serif); font-size: 23px; font-weight: 800; letter-spacing: 2px;
  color: #6B3A12; text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,255,255,.9);
}
.h2-pow {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 800; color: #B4551C;
  background: linear-gradient(180deg,#FFE9BF,#FFD89A);
  border: 1.5px solid #E8B96B; border-radius: 8px; padding: 1px 6px 1px 4px;
  font-variant-numeric: tabular-nums;
}
.h2-pow svg { width: 10px; height: 10px; }
.h2-title { font-size: 10px; color: #A6682C; font-weight: 600; letter-spacing: .5px; margin-top: -1px; }
.h2-pips { display: flex; align-items: center; gap: 2.5px; margin-top: 4px; }
.h2-pips i {
  width: 11px; height: 4px; border-radius: 2px; background: #E4D3B4;
  box-shadow: inset 0 1px 1px rgba(150,110,60,.18);
}
.h2-pips i.on { background: linear-gradient(90deg,#FFC64D,#F2913A); box-shadow: 0 0 5px rgba(242,145,58,.6); }
.h2-pips i.mile { width: 3px; }
.h2-pips b { margin-left: 4px; font-size: 9.5px; color: #A6682C; font-weight: 800; }

/* 属性格紧凑版 */
.stat-grid.tight { gap: 5px; margin-top: 7px; }
.stat-grid.tight .stat-cell { padding: 4px 6px; gap: 5px; border-radius: 9px; border-width: 1.5px; }
.stat-grid.tight .stat-cell .sc-ic { width: 18px; height: 18px; border-radius: 6px; }
.stat-grid.tight .stat-cell .sc-ic svg { width: 11px; height: 11px; }
.stat-grid.tight .stat-cell .k { font-size: 8px; }
.stat-grid.tight .stat-cell .v { font-size: 11.5px; }

/* 技能折叠条 */
.sk-fold {
  display: flex; align-items: center; gap: 7px; margin-top: 7px;
  background: #fff; border: 1.5px solid #F0E3CC; border-radius: 11px;
  padding: 6px 9px; box-shadow: 0 2px 0 rgba(200,170,120,.16);
  cursor: pointer; flex-wrap: wrap;
}
.sk-fold:active { transform: translateY(1px); }
.sk-ic {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg,#FFA95E,#EE8A33);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.sk-ic svg { width: 12px; height: 12px; }
.sk-main { flex: 1 1 auto; min-width: 0; }
.sk-n { font-family: var(--serif); font-size: 11.5px; font-weight: 700; color: #8A5320; letter-spacing: .5px; }
.sk-n i { font-family: var(--sans); font-style: normal; font-size: 8.5px; color: var(--dim); margin-left: 5px; font-weight: 500; }
.sk-sub { font-size: 9px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-arrow { flex: 0 0 auto; font-size: 9px; color: var(--dim); }
.sk-body { flex: 1 0 100%; border-top: 1px dashed #F0E3CC; margin-top: 5px; padding-top: 5px; }
.sk-line { font-size: 9.5px; color: var(--ink2); line-height: 1.55; }
.sk-line b {
  display: inline-block; font-size: 8px; font-weight: 800; color: #fff;
  background: #EE8A33; border-radius: 4px; padding: 0 4px; margin-right: 5px;
  vertical-align: 1px;
}
.sk-line b.pas { background: #3FA796; }
.sk-line + .sk-line { margin-top: 3px; }

/* 页签更紧凑 */
.dt-page .seg { margin: 8px 0 8px; }
.dt-body { animation: pageIn .22s ease both; }

/* ── 渡劫面板 ── */
.lv-card {
  background: var(--card); border: 2px solid #F0E3CC; border-radius: 14px;
  padding: 11px 12px 12px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.lv-head { display: flex; align-items: baseline; justify-content: space-between; }
.lv-t { font-family: var(--serif); font-size: 14px; font-weight: 800; color: #7A4A18; letter-spacing: 2px; }
.lv-cap { font-size: 9px; color: var(--dim); }
.lv-track {
  position: relative; height: 26px; margin-top: 7px; border-radius: 13px;
  background: #F4E7D0; border: 2px solid #EBDCC2; overflow: hidden;
}
.lv-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, #FFC65C, #F2913A 70%, #EE7F2A);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  animation: lvFill .5s cubic-bezier(.2,.9,.3,1) both;
}
.lv-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%);
}
@keyframes lvFill { from { transform: scaleX(0); transform-origin: left; } }
.lv-num {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(150,80,20,.5);
}
.lv-gain { display: flex; gap: 6px; margin-top: 8px; }
.lg {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #FFF8EC; border: 1.5px solid #F3E4CB; border-radius: 9px; padding: 5px 2px;
}
.lg-ic { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; color: #fff; }
.lg-ic svg { width: 11px; height: 11px; }
.lg-ic.hp { background: linear-gradient(180deg,#FF9C8F,#E0523A); }
.lg-ic.atk { background: linear-gradient(180deg,#FFB968,#E8862A); }
.lg-ic.def { background: linear-gradient(180deg,#8FC6F0,#4682C4); }
.lg b { font-size: 10.5px; color: #6B3A12; font-variant-numeric: tabular-nums; }
.lg i { font-style: normal; font-size: 8px; color: var(--dim); }
.lv-cost {
  display: flex; align-items: center; gap: 8px; margin-top: 9px;
  background: #FFFBF2; border: 1.5px dashed #EBDCC2; border-radius: 10px; padding: 6px 9px;
}
.lc-ico .it.big { width: 26px; height: 26px; border-radius: 8px; }
.lc-ico .it.big svg { width: 15px; height: 15px; }
.lc-n { font-size: 10.5px; color: var(--ink2); }
.lc-n b { font-size: 14px; margin: 0 2px; }
.lc-n i { font-style: normal; font-size: 9px; color: var(--dim); }
.lack-t { color: #C24A32; }
.lv-b1 { flex: 1; }
.lv-b10 { flex: 1.35; display: flex; flex-direction: column; gap: 0; line-height: 1.2; padding: 6px 4px; }
.lv-b10 span { font-size: 13.5px; }
.lv-b10 i { font-style: normal; font-size: 8.5px; opacity: .82; font-weight: 500; }
.lv-warn { margin-top: 7px; font-size: 9px; color: #C24A32; text-align: center; }

/* ── 点星面板 ── */
.st-card {
  background: var(--card); border: 2px solid #F0E3CC; border-radius: 14px;
  padding: 10px 12px 11px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.st-head { display: flex; align-items: center; gap: 7px; }
.st-chip {
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 1px 8px; border-radius: 7px;
}
.st-num { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-num b { font-size: 16px; color: #7A4A18; font-weight: 800; }
.st-lock { margin-left: auto; font-size: 9px; color: #fff; background: #C8A26A; border-radius: 6px; padding: 1px 6px; }
.st-hp {
  margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 800; color: #C24A32;
}
.st-hp svg { width: 10px; height: 10px; }
.st-track { display: flex; gap: 3px; margin-top: 7px; align-items: center; }
.st-track i {
  flex: 1 1 auto; height: 12px; border-radius: 4px; position: relative;
  background: #F1E3CA; box-shadow: inset 0 1px 2px rgba(150,110,60,.16);
}
.st-track i.on {
  background: linear-gradient(180deg, #FFD166, #F09430);
  box-shadow: 0 0 6px rgba(242,148,48,.5), inset 0 1px 0 rgba(255,255,255,.6);
}
.st-track i.tal::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(45deg);
  width: 4px; height: 4px; background: #fff; border-radius: 1px; opacity: .95;
}
.st-track i.tal:not(.on)::after { background: #C9A87A; }
.sm-row { display: flex; gap: 7px; margin-top: 9px; }
.sm {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px; padding: 5px 7px;
}
.sm.ok { border-color: #BEDFC8; background: #F6FCF6; }
.sm.no { border-color: #F3CFC6; background: #FFF7F5; }
.sm-ic { flex: 0 0 auto; }
.sm-ic .it.big { width: 26px; height: 26px; border-radius: 8px; }
.sm-ic .it.big svg { width: 15px; height: 15px; }
.sm-t { min-width: 0; line-height: 1.25; }
.sm-t b { display: block; font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
.sm-t i { font-style: normal; font-size: 8px; color: var(--dim); }
.st-talent {
  display: flex; align-items: center; gap: 5px; margin-top: 8px;
  background: linear-gradient(180deg,#FFF6E2,#FFEFD2);
  border: 1.5px solid #F2DDB4; border-radius: 9px; padding: 5px 8px;
  font-size: 9.5px; color: #8A5320; font-weight: 600;
}
.st-talent svg { width: 11px; height: 11px; flex: 0 0 auto; }
.st-tb { font-size: 8px; font-weight: 800; color: #fff; background: #E8892F; border-radius: 4px; padding: 0 4px; }
.st-tb.alt { background: #3FA796; }
.st-rows { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; }
.sr { display: flex; align-items: center; justify-content: space-between; font-size: 9.5px; }
.sr-k { color: var(--dim); }
.sr-v { color: var(--ink2); font-variant-numeric: tabular-nums; }
.sr-v i { font-style: normal; color: var(--dim); margin: 0 4px; }
.sr-v b { color: #C4661C; }
.st-btn { margin-top: 9px; }
.st-cost { margin-top: 5px; text-align: center; font-size: 8.5px; color: var(--dim); }
.st-craft { margin-top: 7px; font-size: 11.5px; letter-spacing: .04em; }
.dt-sell { margin-left: 6px; color: #B06A52; border-color: #E6C7B8; }
.odds-tier { display: flex; gap: 10px; justify-content: center; margin-top: 6px; font-size: 9.5px; color: var(--dim); }
.odds-tier b { color: #7A5A34; font-weight: 700; }
.odds-tier .ot-bag { margin-left: auto; color: #8A6A44; }
.odds-tier .ot-bag b { color: #D07A24; }
.cx-rule {
  margin-left: 8px; font-size: 9.5px; font-weight: 500; color: #8A6A44;
  background: #FBF1DF; border: 1px solid #EBD9BC; border-radius: 999px; padding: 2px 8px;
  vertical-align: 2px;
}
.rr-sec { margin-top: 12px; }
.rr-sec > b { font-size: 12px; color: #6B4E2E; letter-spacing: .08em; }
.rr-note { display: block; margin-top: 3px; font-size: 9.5px; color: var(--dim); line-height: 1.5; }
.rr-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 7px; }
.rr-tiers > div { background: #FDF7EC; border: 1px solid #F0E2C9; border-radius: 9px; padding: 7px 4px; text-align: center; }
.rr-tiers b { display: block; font-size: 15px; color: #6B4E2E; margin-top: 2px; }
.rr-tiers i { display: block; font-size: 8px; color: var(--dim); font-style: normal; margin-top: 1px; }
.rr-t { font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 4px; color: #fff; }
.rr-t.sp { background: #FF7040; } .rr-t.s { background: #E8B44C; }
.rr-t.a { background: #A98FD6; } .rr-t.b { background: #7FC0B3; }
.rr-list { margin-top: 6px; }
.rr-row {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px;
  font-size: 10px; color: #6B5334;
}
.rr-row:nth-child(odd) { background: #FDF8EF; }
.rr-row b { min-width: 40px; font-size: 10.5px; color: #8A5A1E; }
.rr-row span { flex: 1; }
.rr-row i { font-style: normal; font-size: 9px; color: var(--dim); }
.rr-row.a b { color: #6C5A94; }
/* ── 升星选卡弹层 ── */
/* ── 盟坛场景头 ── */
.ally-hero {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 10px;
  min-height: 132px; display: flex; align-items: flex-end;
  box-shadow: 0 8px 22px rgba(60,40,20,.18);
}
.ah-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,16,10,.15) 0%, rgba(28,14,8,.72) 62%, rgba(24,12,6,.9) 100%);
}
.ah-in { position: relative; z-index: 2; padding: 12px 14px 13px; width: 100%; }
.ah-name {
  font-family: var(--serif); font-size: 17px; color: #FFE8BE; letter-spacing: .16em;
  display: flex; align-items: baseline; gap: 7px; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.ah-name em { font-style: normal; font-size: 9.5px; color: #E7C89A; letter-spacing: .04em; }
.ah-sub { font-size: 9.5px; color: rgba(255,235,210,.72); margin-top: 2px; }
.ah-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px solid rgba(255,235,210,.14);
}
.ah-stats > div { display: flex; flex-direction: column; min-width: 0; }
.ah-stats b { font-size: 13px; color: #FFD98A; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.01em; }
.ah-stats i { font-style: normal; font-size: 8px; color: rgba(255,235,210,.62); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 试炼秘境 ── */
.td-list { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.td-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 14px; background: #FFFDF8; border: 1px solid #EFE0C8;
  box-shadow: 0 2px 8px rgba(120,86,40,.07); position: relative; overflow: hidden;
}
.td-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--dc), transparent);
}
.td-card.off { opacity: .55; }
.td-ic {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--dc) 18%, #FFF8EE);
  border: 1px solid color-mix(in srgb, var(--dc) 34%, #fff);
}
.td-ic .it { width: 22px; height: 22px; color: var(--dc); }
.td-body { flex: 1; min-width: 0; }
.td-top { display: flex; align-items: baseline; gap: 6px; }
.td-top b { font-family: var(--serif); font-size: 13px; color: #4A3520; letter-spacing: .08em; }
.td-top em { font-style: normal; font-size: 8.5px; color: var(--dim); }
.td-pow { margin-left: auto; font-size: 9px; color: #8A6A44; display: inline-flex; align-items: center; gap: 2px; }
.td-pow svg { width: 10px; height: 10px; }
.td-desc { font-size: 9px; color: var(--muted); margin-top: 2px; }
.td-pips { display: flex; gap: 4px; margin-top: 6px; }
.td-pips i {
  width: 18px; height: 6px; border-radius: 3px; background: #EFE2CB; font-size: 0;
}
.td-pips i.on { background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 60%, #fff)); }
.td-pips i.next { background: #EFE2CB; box-shadow: 0 0 0 1px var(--dc) inset; }
.td-left { font-size: 8px; color: var(--dim); margin-top: 4px; }
.td-left b { color: #C07A18; font-weight: 700; }
.td-btn {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 10px; border: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: linear-gradient(180deg, #F5A94E, #E07B22);
  box-shadow: 0 3px 8px rgba(224,123,34,.3);
  display: inline-flex; align-items: center; gap: 3px;
}
.td-btn[disabled] { background: #E2D7C4; color: #9C8A70; box-shadow: none; }
.td-btn svg { width: 12px; height: 12px; }
.td-acts { flex: 0 0 auto; display: flex; flex-direction: column; gap: 5px; }
.td-acts .td-btn { width: 100%; justify-content: center; padding: 6px 9px; }
.td-btn.sweep {
  background: #FFF6E6; color: #96702E;
  border: 1px solid #EBD5AC; box-shadow: none;
}
.td-btn.sweep[disabled] { background: #F1EADF; color: #B4A491; border-color: #E6DCCC; }
.mn-tips .mt b { color: #C0632A; font-weight: 700; }

/* ── 坊市 ── */
.shop-head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.shop-title { font-family: var(--serif); font-size: 19px; color: var(--gold-lit); letter-spacing: .18em; }
.shop-sub { font-size: 9px; color: var(--dim); margin-top: 3px; letter-spacing: .06em; }
.shop-wallet { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 10px; color: #7A6448; }
.shop-wallet b { margin-right: 6px; font-variant-numeric: tabular-nums; }
.shop-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.spt {
  flex: 1; padding: 8px 0; border-radius: 10px; font-size: 12px; letter-spacing: .1em;
  background: #F6EAD6; color: #8A7152; border: 1px solid #EBD9BC;
}
.spt.on {
  background: linear-gradient(180deg, #FFCB75, #EFA23C); color: #fff;
  border-color: transparent; box-shadow: 0 3px 10px rgba(232,150,60,.32); font-weight: 700;
}
.shop-note {
  display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: var(--dim);
  margin-bottom: 8px;
}
.shop-note i.it { width: 12px; height: 12px; }
.shop-note span { line-height: 1.4; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-card {
  background: #FFFDF8; border: 1px solid #EFE0C8; border-radius: 12px;
  padding: 5px 5px 7px; text-align: center; position: relative;
  box-shadow: 0 2px 6px rgba(120,86,40,.06);
}
.sh-card.sold { opacity: .58; }
.sh-art { position: relative; border-radius: 9px; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(180deg, #F3E7D2, #EADCC2); }
.sh-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.sh-tier, .sh-fac {
  position: absolute; top: 3px; font-size: 8px; color: #fff; border-radius: 4px; padding: 0 4px; font-weight: 700;
}
.sh-tier { left: 3px; }
.sh-fac { right: 3px; }
.sh-name { font-size: 11px; color: #4A3520; margin-top: 5px; letter-spacing: .04em; }
.sh-cost { font-size: 9px; color: #8A6A44; display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 2px; }
.sh-icon { height: 64px; display: grid; place-items: center; }
.sh-icon .it { width: 34px; height: 34px; }
.sh-buy {
  margin-top: 5px; width: 100%; padding: 5px 0; border-radius: 8px;
  font-size: 10px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #F5A94E, #E07B22);
  box-shadow: 0 2px 6px rgba(224,123,34,.28);
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
}
.sh-buy.poor { background: #D9CDB9; box-shadow: none; }
.sh-buy.done { background: #E7DCC9; color: #9C8A70; box-shadow: none; }
.gacha-shop { margin-top: 10px; font-size: 11.5px; letter-spacing: .06em; }

/* ── 符诏（天赋树） ── */
.rt-sum {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(135deg, #2E2116 0%, #4A3220 60%, #5C3D22 100%);
  box-shadow: 0 6px 16px rgba(60,36,12,.22), inset 0 1px 0 rgba(255,220,160,.18);
  margin-bottom: 10px;
}
.rt-pt { text-align: center; min-width: 58px; }
.rt-pt b { display: block; font-size: 26px; line-height: 1; color: #FFD98A; letter-spacing: .02em; text-shadow: 0 2px 6px rgba(255,190,90,.35); }
.rt-pt span { display: block; font-size: 8.5px; color: #C9AE86; margin-top: 3px; letter-spacing: .1em; }
.rt-meta { flex: 1; }
.rt-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.13); overflow: hidden; }
.rt-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #F7C976, #E8973A); box-shadow: 0 0 8px rgba(247,201,118,.6); }
.rt-tip { font-size: 9px; color: #BFA382; margin-top: 5px; }
.rt-tip b { color: #FFD98A; }
.rt-ring { display: none; }

.rt-card {
  position: relative; margin-bottom: 10px; padding: 10px 11px 9px;
  border-radius: 14px; background: #FFFDF8;
  border: 1px solid #EFE0C8;
  box-shadow: 0 2px 8px rgba(120,86,40,.07);
  overflow: hidden;
}
.rt-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--rc), transparent);
}
.rt-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.rt-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(155deg, var(--rc), color-mix(in srgb, var(--rc) 72%, #000));
  box-shadow: 0 3px 8px color-mix(in srgb, var(--rc) 40%, transparent);
}
.rt-ic svg { width: 16px; height: 16px; }
.rt-tt { flex: 1; min-width: 0; }
.rt-tt b { display: block; font-size: 13px; color: #4A3520; letter-spacing: .06em; }
.rt-tt i { display: block; font-size: 8.5px; color: #A08A6C; font-style: normal; margin-top: 1px; }
.rt-prog { font-size: 15px; font-weight: 700; color: var(--rc); }
.rt-prog em { font-size: 9px; font-style: normal; color: #B8A489; font-weight: 500; }
.rt-prog.done { color: #3F8A5E; }

.rt-track { display: flex; align-items: flex-start; }
.rt-node { flex: 1 1 0; min-width: 0; text-align: center; position: relative; }
.rt-orb {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  background: #F3E9D8; color: #B29C7C;
  border: 1.5px solid #E6D6BC;
  transition: transform .16s ease, box-shadow .16s ease;
}
.rt-node b { display: block; font-size: 9.5px; color: #7C6647; margin-top: 4px; letter-spacing: .04em; }
.rt-node i { display: block; font-size: 7.5px; color: #B3A088; font-style: normal; margin-top: 1px; line-height: 1.25; }
.rt-node.on .rt-orb {
  background: linear-gradient(160deg, var(--rc), color-mix(in srgb, var(--rc) 70%, #000));
  color: #fff; border-color: transparent;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 16%, transparent), 0 3px 8px color-mix(in srgb, var(--rc) 30%, transparent);
}
.rt-node.on b { color: #4A3520; }
.rt-node.next .rt-orb {
  background: #FFFDF8; color: var(--rc);
  border: 1.5px dashed color-mix(in srgb, var(--rc) 60%, #fff);
}
.rt-node.next.can { cursor: pointer; }
.rt-node.next.can .rt-orb { animation: rtPulse 1.8s ease-in-out infinite; }
.rt-node.next.can:active .rt-orb { transform: scale(.92); }
@keyframes rtPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rc) 40%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rc) 0%, transparent); }
}
.rt-line { flex: 0 0 6%; height: 2px; margin-top: 14px; border-radius: 2px; background: #EADCC6; }
.rt-line.on { background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 60%, #fff)); box-shadow: 0 0 6px color-mix(in srgb, var(--rc) 40%, transparent); }
.rt-next { margin-top: 9px; text-align: center; font-size: 8.5px; color: #A88E6A; }
.rt-done { margin-top: 9px; text-align: center; font-size: 9px; color: #3F8A5E; display: flex; align-items: center; justify-content: center; gap: 4px; }
.rt-done svg { width: 11px; height: 11px; }
.rt-note { text-align: center; font-size: 8.5px; color: var(--dim); margin-top: 2px; }

.sc-head { background: #FDF7EC; border: 1px solid #F0E2C9; border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; }
.sc-top b { font-size: 13px; color: #6B4E2E; }
.sc-top span { font-size: 9.5px; color: var(--dim); margin-left: 8px; }
.sc-need { display: flex; gap: 10px; flex-wrap: wrap; font-size: 9.5px; color: #7A6A56; margin-top: 5px; }
.sc-fac { gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.sc-tip { font-size: 8.5px; color: var(--dim); margin-bottom: 7px; line-height: 1.5; }
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 44vh; overflow-y: auto; padding: 2px; }
.ck { border: 1.5px solid #EFE0C8; border-radius: 9px; background: #FFFDF8; padding: 3px; position: relative; }
.ck.on { border-color: #E8963C; box-shadow: 0 0 0 2px rgba(232,150,60,.18); background: #FFF6E6; }
.ck.same { border-color: #E0B25E; }
.ck-f { position: relative; border-radius: 7px; overflow: hidden; aspect-ratio: 1 / 1; background: #F6EEDF; }
.ck-f img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.ck-st { position: absolute; left: 2px; bottom: 2px; font-size: 8px; background: rgba(60,40,20,.72); color: #FFD98A; border-radius: 4px; padding: 0 3px; font-style: normal; }
.ck-tag { position: absolute; right: 2px; top: 2px; font-size: 7.5px; background: #E8963C; color: #fff; border-radius: 4px; padding: 0 3px; font-style: normal; }
.ck-n { font-size: 9px; text-align: center; margin-top: 2px; color: #6B5334; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-p { font-size: 7.5px; text-align: center; color: var(--dim); }
.sc-bar { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #7A6A56; margin-top: 8px; }
.sc-bar .ok { color: #3F8A5E; font-weight: 700; font-style: normal; }
.st-gots { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.st-gots span {
  font-size: 8.5px; color: #7A6A56; background: #FBF3E4;
  border: 1px solid #EFE0C8; border-radius: 6px; padding: 1px 5px;
}
.st-gots b { color: #E8892F; margin-right: 3px; }
.st-note {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 9px;
  font-size: 9.5px; color: var(--ink2); line-height: 1.55;
  background: #FFFBF2; border: 1.5px dashed #EBDCC2; border-radius: 9px; padding: 7px 8px;
}
.st-note b { color: #7A5FBF; }

/* 渡劫进度数字：保证在任何填充比例下都可读 */
.lv-num {
  left: 6px; color: #7A4A18; text-shadow: none;
  background: rgba(255,255,255,.88); border-radius: 8px;
  padding: 0 6px; line-height: 16px; font-size: 10.5px;
  box-shadow: 0 1px 2px rgba(150,100,40,.16);
}

/* ── 段位之路 ── */
.tr-road { display: flex; align-items: flex-start; margin: 8px 0 2px; padding: 0 2px; }
.tr-node { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 0 0 auto; width: 42px; }
.tr-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #C0AC90;
  background: linear-gradient(180deg,#FFFDF8,#F3E7D2);
  border: 2px solid #E6D6BB; box-shadow: inset 0 1px 0 #fff;
  transition: all .2s;
}
.tr-dot svg { width: 15px; height: 15px; }
.tr-node.on .tr-dot {
  color: #fff; border-color: #E8A33E;
  background: linear-gradient(180deg, #FFC65C, #EE8A33);
  box-shadow: 0 2px 6px rgba(232,140,50,.4), inset 0 1px 0 rgba(255,255,255,.5);
}
.tr-node.cur .tr-dot {
  transform: scale(1.16);
  box-shadow: 0 0 0 4px rgba(238,138,51,.18), 0 3px 8px rgba(232,140,50,.5);
  animation: trPulse 1.8s ease-in-out infinite;
}
@keyframes trPulse { 50% { box-shadow: 0 0 0 7px rgba(238,138,51,.05), 0 3px 8px rgba(232,140,50,.5); } }
.tr-n { font-size: 8px; color: var(--dim); letter-spacing: .3px; white-space: nowrap; }
.tr-node.on .tr-n { color: #A6682C; font-weight: 700; }
.tr-link { flex: 1 1 auto; height: 2.5px; margin-top: 14px; border-radius: 2px; background: #EBDFC8; }
.tr-link.on { background: linear-gradient(90deg,#F5B245,#EE8A33); }

/* ── 封神榜 ── */
.lb-card {
  background: var(--card); border: 2px solid #F0E3CC; border-radius: 14px;
  padding: 10px 10px 8px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.lb-pod { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 8px; }
.lb-p { flex: 0 0 31%; display: flex; flex-direction: column; align-items: center; position: relative; }
.lb-p1 { order: 2; padding-bottom: 10px; }
.lb-p2 { order: 1; }
.lb-p3 { order: 3; }
.lb-medal {
  position: absolute; top: -2px; right: 50%; margin-right: -22px;
  width: 15px; height: 15px; border-radius: 50%; z-index: 3;
  font-size: 9px; font-weight: 800; color: #fff; display: grid; place-items: center;
  border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(120,80,30,.3);
}
.lb-medal.m1 { background: linear-gradient(180deg,#FFD35C,#E2951F); }
.lb-medal.m2 { background: linear-gradient(180deg,#D8DEE6,#9AA6B4); }
.lb-medal.m3 { background: linear-gradient(180deg,#E8B98A,#B57A48); }
.lb-pav {
  position: relative; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  border: 2.5px solid #fff; background: #FBEED8;
  box-shadow: 0 3px 8px rgba(150,105,45,.22);
  display: grid; place-items: center;
}
.lb-p1 .lb-pav { width: 66px; height: 66px; border-color: #FFD98A; box-shadow: 0 0 0 3px rgba(255,199,90,.35), 0 4px 10px rgba(180,120,40,.28); }
.lb-pav img { width: 100%; height: 100%; object-fit: cover; }
.lb-pav b { font-family: var(--serif); font-size: 16px; color: #A6682C; }
.lb-pn { font-size: 9.5px; color: var(--ink2); font-weight: 700; margin-top: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-ps { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; color: #B4551C; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-ps svg { width: 9px; height: 9px; }
.lb-p.me .lb-pn { color: #C4661C; }
.lb-p.me .lb-pav { border-color: #FFB35C; }
.lb-list { border-top: 1px dashed #EFE0C8; padding-top: 4px; }
.lb-row {
  display: flex; align-items: center; gap: 7px; padding: 4px 2px;
  border-radius: 8px;
}
.lb-row + .lb-row { border-top: 1px solid #F7EEDD; }
.lb-row.me { background: linear-gradient(90deg, rgba(255,205,120,.22), transparent); }
.lb-rk { flex: 0 0 12px; font-size: 9.5px; color: var(--dim); font-weight: 800; text-align: center; }
.lb-rav {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid #fff; background: #FBEED8; display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(150,105,45,.2);
}
.lb-rav img { width: 100%; height: 100%; object-fit: cover; }
.lb-rav b { font-size: 9px; color: #A6682C; }
.lb-rn { flex: 1 1 auto; min-width: 0; font-size: 10px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-rn i { font-style: normal; font-size: 8px; color: #C4661C; background: #FFEBCB; border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.lb-rp { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.lb-rp svg { width: 9px; height: 9px; }
.lb-rs { flex: 0 0 auto; font-size: 10px; color: #B4551C; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }

/* ══════════ 灵脉开采 ══════════ */
.mn-page { padding-bottom: 18px; }
.mn-hero {
  position: relative; height: 128px; border-radius: 15px; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 5px 16px rgba(160,120,60,.2);
}
.mn-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.mn-ov {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(52,32,16,.72) 0%, rgba(52,32,16,.3) 52%, rgba(52,32,16,.05) 78%),
              linear-gradient(180deg, transparent 40%, rgba(30,18,8,.42) 100%);
}
.mn-ht { position: absolute; left: 13px; top: 14px; }
.mn-hn {
  font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: 4px;
  color: #FFF3D9; text-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.mn-hs { font-size: 9px; color: rgba(255,243,217,.86); letter-spacing: .5px; margin-top: 2px; }
.mn-rate { position: absolute; left: 13px; bottom: 11px; display: flex; gap: 6px; }
.mn-rate .mr {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px; font-weight: 800; color: #FFF3D9;
  background: rgba(38,24,10,.42); border: 1px solid rgba(255,224,160,.35);
  border-radius: 20px; padding: 2px 8px 2px 4px; backdrop-filter: blur(3px);
}
.mn-rate .it { vertical-align: 0; }

.mn-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding: 8px 11px;
  background: linear-gradient(180deg,#FFF6E2,#FFEFD2);
  border: 2px solid #F2DDB4; border-radius: 12px;
  box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.mb-l { display: flex; flex-direction: column; }
.mb-l span { font-size: 8.5px; color: #A6682C; letter-spacing: 1px; }
.mb-l b { font-size: 17px; color: #B4551C; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.mb-r { font-size: 9.5px; color: #A6682C; font-weight: 700; background: #fff; border-radius: 8px; padding: 3px 9px; border: 1.5px solid #F0DEBE; }

.mn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.mn-cell {
  position: relative; background: var(--card); border: 2px solid #F0E3CC; border-radius: 13px;
  padding: 10px 6px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: 0 2px 0 rgba(200,170,120,.2); overflow: hidden; cursor: pointer;
}
.mn-cell:active { transform: translateY(1px); }
.mn-cell.empty {
  border-style: dashed; border-color: #DFCDB0; background: #FFFBF2;
}
.mn-ph {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: #C9A87A; background: #FBF1DE; border: 2px dashed #E3D2B4;
}
.mn-ph svg { width: 22px; height: 22px; }
.mn-plus {
  position: absolute; right: 7px; top: 6px; font-size: 13px; color: #C9A87A; font-weight: 700;
}
.mn-cell.busy::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(255,208,120,.28), transparent 70%);
}
.mn-ring {
  width: 58px; height: 58px; border-radius: 50%; position: relative;
  display: grid; place-items: center;
  background: conic-gradient(#F5A93F calc(var(--p) * 1%), #F0E1C6 0);
  box-shadow: 0 2px 6px rgba(180,120,50,.2);
}
.mn-rin {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg,#FFF6E2,#FBE7C6);
  border: 2px solid #fff; display: grid; place-items: center;
}
.mn-rin img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.mn-cell .mn-t {
  font-size: 10px; font-weight: 700; color: var(--ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-cell.empty .mn-t { color: var(--muted); letter-spacing: 1px; }
.mn-s { font-size: 8px; color: var(--dim); }
.mn-kind { display: inline-flex; align-items: center; gap: 2px; font-size: 8px; color: var(--muted); }
.mn-get {
  font-size: 13px; font-weight: 800; color: #B4551C;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.mn-pill {
  margin-top: 1px; font-size: 9px; font-weight: 800; color: #A08A72;
  background: #F4EAD8; border-radius: 20px; padding: 2px 10px; letter-spacing: 1px;
}
.mn-pill.on {
  color: #fff; background: linear-gradient(180deg,#FFB055,#EE8A33);
  box-shadow: 0 2px 5px rgba(232,140,50,.35); animation: pillGlow 1.6s ease-in-out infinite;
}
@keyframes pillGlow { 50% { filter: brightness(1.1); } }

.mn-tips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.mn-tips .mt {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.5px; color: var(--muted);
  background: rgba(255,255,255,.7); border: 1px solid #EFE0C8;
  border-radius: 20px; padding: 2px 7px;
  flex: 0 0 auto; white-space: nowrap;
}
.mn-tips svg { width: 9px; height: 9px; color: #C9A87A; }

/* ══════════ 试炼窟 ══════════ */
.tv-hero .mn-bg { object-position: 50% 55%; }
.tv-left {
  position: absolute; right: 11px; bottom: 11px;
  font-size: 9.5px; color: #FFF3D9; font-weight: 600;
  background: rgba(38,24,10,.45); border: 1px solid rgba(255,224,160,.35);
  border-radius: 20px; padding: 2px 9px; backdrop-filter: blur(3px);
}
.tv-left b { font-size: 13px; color: #FFD98A; font-weight: 800; }
.tv-list { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.trial2 {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 2px solid #F0E3CC; border-radius: 13px;
  padding: 8px 9px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
  position: relative; overflow: hidden;
}
.trial2::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg,#FFC65C,#EE8A33);
}
.trial2.off { opacity: .62; filter: saturate(.5); }
.tv-art {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(180deg,#FFF6E2,#FBE7C6); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(150,105,45,.2); display: grid; place-items: center;
}
.tv-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.tv-body { flex: 1 1 auto; min-width: 0; }
.tv-top { display: flex; align-items: baseline; gap: 6px; }
.tv-top b { font-family: var(--serif); font-size: 12.5px; color: #7A4A18; letter-spacing: 1px; }
.tv-pow {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8.5px; color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums;
}
.tv-pow svg { width: 9px; height: 9px; }
.tv-rew { display: flex; gap: 7px; margin-top: 4px; }
.tr-i {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8.5px; color: var(--ink2); font-variant-numeric: tabular-nums;
}
.tv-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: 1px;
  background: linear-gradient(180deg,#FFB055,#EE8A33);
  border: none; border-radius: 20px; padding: 6px 11px;
  box-shadow: 0 2px 0 #C9701F, 0 3px 8px rgba(232,140,50,.3);
  cursor: pointer;
}
.tv-btn svg { width: 11px; height: 11px; }
.tv-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #C9701F; }
.tv-btn[disabled] { background: #E3D6C2; box-shadow: 0 2px 0 #CBB99E; color: #FFF; }

/* 七日目标标题防换行 */
.seven-head .cn, .sv-head .cn, .tw-head .cn { white-space: nowrap; }

/* 七日/活动标题：字号略缩 + 字距收紧，避免换行 */
.sh-txt b { font-size: 15px; letter-spacing: 2.5px; white-space: nowrap; }

/* ══════════ 武将修行：阵营筛选 + 总览 ══════════ */
.gw-page { padding-bottom: 18px; }
.gw-filter { display: flex; gap: 6px; margin-bottom: 9px; }
.gf {
  flex: 1; text-align: center; font-size: 10px; font-weight: 700; color: var(--muted);
  background: #fff; border: 2px solid #F0E3CC; border-radius: 10px;
  padding: 5px 2px 4px; line-height: 1.25; cursor: pointer;
  box-shadow: 0 2px 0 rgba(200,170,120,.18); transition: all .16s;
}
.gf i { display: block; font-style: normal; font-size: 8px; color: var(--dim); }
.gf.on {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #FFA95E, #EE8A33);
  box-shadow: 0 2px 0 #C9701F, 0 3px 8px rgba(232,140,50,.28);
}
.gf.on i { color: rgba(255,255,255,.85); }

.gw-sum {
  margin-top: 10px; background: var(--card); border: 2px solid #F0E3CC; border-radius: 14px;
  padding: 10px 11px 11px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.gws-h { display: flex; align-items: center; gap: 5px; font-family: var(--serif); font-size: 12.5px; color: #8A5320; font-weight: 700; letter-spacing: 1.5px; }
.gws-h svg { width: 13px; height: 13px; color: #C9A87A; }
.gws-rings { display: flex; justify-content: space-around; margin: 11px 0 12px; }
.gs-ring {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), #F1E6D2 0);
  box-shadow: 0 2px 6px rgba(180,130,70,.16);
  position: relative;
}
.gs-ring::before {
  content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #FFFDF8;
}
.gs-in { position: relative; text-align: center; line-height: 1.15; }
.gs-in b { display: block; font-size: 14px; font-weight: 800; color: #7A4A18; font-variant-numeric: tabular-nums; }
.gs-in i { font-style: normal; font-size: 7.5px; color: var(--dim); }
.gs-ring.a { --rc: #F2913A; }
.gs-ring.b { --rc: #E8A93C; }
.gs-ring.c { --rc: #3FA796; }
.gs-ring.c { background: conic-gradient(#3FA796 0 100%); }
.gs-ring.b .gs-in b { color: #B4551C; }
.gs-ring.c .gs-in b { color: #2C7F72; font-size: 12.5px; }

.gws-aura { display: flex; flex-direction: column; gap: 5px; border-top: 1px dashed #EFE0C8; padding-top: 8px; }
.ga-row { display: flex; align-items: center; gap: 7px; }
.ga-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.ga-n { font-size: 9.5px; color: var(--ink2); width: 34px; flex: 0 0 auto; }
.ga-bar { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #F4E9D6; overflow: hidden; }
.ga-bar i { display: block; height: 100%; border-radius: 3px; opacity: .8; }
.ga-row b { font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; width: 16px; text-align: right; }

/* ══════════ 法宝四格槽位 ══════════ */
.art-slots4 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.as4 {
  position: relative; background: var(--card); border: 2px solid #F0E3CC;
  border-radius: 13px; padding: 9px 9px 8px; min-height: 84px;
  display: flex; flex-direction: column; gap: 1px; cursor: pointer;
  box-shadow: 0 2px 0 rgba(200,170,120,.18); overflow: hidden;
}
.as4:active { transform: translateY(1px); }
.as4.empty { border-style: dashed; border-color: #DFCDB0; background: #FFFBF2; }
.as4-ic {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; margin-bottom: 3px;
  background: linear-gradient(160deg, #FFC97A, #E08E2E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 2px 5px rgba(180,120,40,.25);
}
.as4-ic svg { width: 18px; height: 18px; }
.as4 .dim-ic {
  background: linear-gradient(160deg, #F3E7D2, #E2D0B2); color: #BFA582;
  box-shadow: none;
}
.as4-q {
  position: absolute; left: 8px; top: 8px; width: 14px; height: 14px; border-radius: 4px;
  font-size: 8px; font-weight: 800; color: #fff; display: grid; place-items: center;
  border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(120,80,30,.28);
  transform: translate(-50%, -50%); opacity: 0;
}
.as4-lv {
  position: absolute; right: 8px; top: 8px;
  font-size: 9px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#FFA95E,#E8722A); border-radius: 7px; padding: 0 5px;
}
.as4-n { font-size: 10.5px; font-weight: 700; color: #6B3A12; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as4-v { font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as4-sc {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 2px;
  font-size: 8.5px; color: #B4551C; font-weight: 800;
}
.as4-sc svg { width: 9px; height: 9px; }
.as4-plus {
  position: absolute; right: 8px; top: 7px; font-size: 14px; color: #C9A87A; font-weight: 700;
}
.as4.r2 { border-color: #BFD8A6; background: #FCFEF8; }
.as4.r3 { border-color: #B9CFEF; background: #FAFCFF; }
.as4.r4 { border-color: #DCC2F0; background: #FDFAFF; }
.as4.r5 { border-color: #F2C98A; background: #FFFCF3; box-shadow: 0 2px 0 rgba(217,164,65,.35), 0 0 12px rgba(255,190,90,.3); }
.as4.r2 .as4-ic { background: linear-gradient(160deg,#BFE09A,#6FA845); }
.as4.r3 .as4-ic { background: linear-gradient(160deg,#96C4F2,#4376BE); }
.as4.r4 .as4-ic { background: linear-gradient(160deg,#C9A6F2,#8A5FC7); }
.as4.r5 .as4-ic { background: linear-gradient(160deg,#FFD98A,#E2951F); }

/* 宝石锁定槽位更直观 */
.gs-slot.lock {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 4px;
}
.gs-slot.lock .gs-lock {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: #F4EAD8; color: #C4AB88;
}
.gs-slot.lock .gs-lock svg { width: 12px; height: 12px; }
.gs-slot.lock b { font-size: 8px; color: #C4AB88; font-weight: 700; }

/* 宝石锁定槽：提高可读性 */
.gs-slot.lock { border-style: dashed; }
.gs-slot.lock .gs-lock { background: #EFE2CB; color: #A08560; border: 1.5px solid #E0CDAE; }
.gs-slot.lock b { color: #A0856A; font-size: 8.5px; }
.gs-slot.lock i { font-style: normal; font-size: 7.5px; color: #C4AB88; }

/* ══════════ 关卡地图：里程碑宝箱 + 地形点缀 ══════════ */
.mn-mile {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: .95;
}
.map-row.left .mn-mile { right: 12%; }
.map-row.right .mn-mile { left: 12%; }
.mm-chest {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg,#FFD98A,#E2951F);
  box-shadow: 0 2px 6px rgba(200,140,50,.35), inset 0 1px 0 rgba(255,255,255,.5);
  animation: chestFloat 3.2s ease-in-out infinite;
}
.mm-chest svg { width: 15px; height: 15px; }
@keyframes chestFloat { 50% { transform: translateY(-3px); } }
.mn-mile i { font-style: normal; font-size: 7.5px; color: #B5844A; letter-spacing: .5px; }
.mn-mile.got { opacity: .5; filter: saturate(.4); }
.mn-mile.got .mm-chest { animation: none; }

.mn-deco {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; opacity: .5;
}
.map-row.left .mn-deco { right: 14%; }
.map-row.right .mn-deco { left: 14%; }
.mn-deco span {
  display: block; width: 100%; height: 100%;
  background:
    radial-gradient(60% 40% at 50% 62%, rgba(190,165,130,.55), transparent 70%),
    radial-gradient(38% 30% at 62% 40%, rgba(190,165,130,.42), transparent 70%);
  border-radius: 50%;
}
.map-row:nth-child(3n) .mn-deco { transform: translateY(-50%) scale(.72); opacity: .4; }

/* 关卡地图：节点到中轴的水平虚线，视觉上把地图连起来 */
.map-row.left::before, .map-row.right::before {
  content: ''; position: absolute; top: 50%; height: 0; margin-top: -1px;
  border-top: 2px dashed #E7D5B6; opacity: .85;
}
.map-row.left::before { left: calc(9% + 84px); right: 50%; }
.map-row.right::before { left: 50%; right: calc(9% + 84px); }
.map-row.done::before { border-color: #F2C98A; opacity: 1; }
.map-row.cur::before { border-color: #F2A03D; opacity: 1; }

/* 章节头与快捷条再紧凑一点，给地图腾出空间 */
.map-pad .chapter-head { padding: 9px 12px; }
.map-pad .fn-bar { margin-bottom: 8px; }
.map-pad .fn { padding: 5px 0 4px; }

/* 锁定关卡：从「几乎看不见」调到「看得见但明显未解锁」 */
.map-row.lock { opacity: .82; filter: none; }
.map-row.lock .mn-face {
  border-color: #DCC7A4; border-style: dashed; background: #FBF2DF;
}
.map-row.lock .mn-face img, .map-row.lock .mn-face svg {
  filter: grayscale(1) sepia(.25) opacity(.55);
}
.map-row.lock .mn-lock { color: #A98C62; }
.map-row.lock .mn-name { color: #B09A78; letter-spacing: 1px; }
.map-row.lock .mn-lv { color: #B09A78; }

/* 昵称旁的编辑按钮：矢量小铅笔 */
.edit-dot {
  display: inline-grid; place-items: center; width: 14px; height: 14px;
  margin-left: 3px; vertical-align: -1px;
  border-radius: 5px; background: rgba(242,160,61,.16);
  color: #C97F2C;
}
.edit-dot svg { width: 8.5px; height: 8.5px; }

/* 试炼窟：掉落预览 */
.tvd-card {
  margin-top: 10px; background: var(--card); border: 2px solid #F0E3CC;
  border-radius: 13px; padding: 9px 10px 10px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.tvd-h {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 12px; font-weight: 700; color: #8A5320; letter-spacing: 1.5px;
}
.tvd-h svg { width: 13px; height: 13px; color: #C9A87A; }
.tvd-row { display: flex; gap: 7px; margin-top: 8px; }
.tvd {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px; padding: 8px 4px 7px;
}
.tvd b { font-size: 10px; color: #7A4A18; font-weight: 800; font-variant-numeric: tabular-nums; }
.tvd i { font-style: normal; font-size: 8px; color: var(--dim); }

/* ══════════ 万仙阵：层塔徽章 / 守阵头像 / 词缀条 ══════════ */
.tw-step {
  position: relative; flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 10px;
}
.tw-step b { font-size: 12px; line-height: 1.1; }
.tw-step .ts-ic { display: grid; place-items: center; color: #BFAE93; }
.tw-step .ts-ic svg { width: 10px; height: 10px; }
.tw-step .ts-ic.on { color: #E8722A; }
.tw-step.done .ts-ic { color: #4E9C82; font-size: 9px; font-weight: 800; }
.tw-step.mile { border-color: #EBCF9A; }
.tw-step .ts-gift {
  position: absolute; right: -3px; top: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg,#FFD98A,#E2951F);
  box-shadow: 0 1px 3px rgba(180,120,40,.35);
}
.tw-step .ts-gift svg { width: 8px; height: 8px; }
.tw-step.next { opacity: .72; }

.tw-chips { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tw-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-style: normal; font-size: 9px; color: var(--ink2);
  background: #FFFBF2; border: 1.5px solid #F0E3CC; border-radius: 20px;
  padding: 1px 7px 1px 2px;
}
.tw-chip img { width: 17px; height: 17px; border-radius: 50%; object-fit: cover; }

.tw-affix-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: linear-gradient(180deg,#FFF6E2,#FFEFD2);
  border: 1.5px solid #F2DDB4; border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 2px 0 rgba(200,170,120,.18);
}
.tat-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg,#9B7EDE,#6B54A8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.tat-ic svg { width: 13px; height: 13px; }
.tat-b { flex: 1 1 auto; display: flex; flex-direction: column; }
.tat-b b { font-size: 10.5px; color: #7A4A18; letter-spacing: 1px; }
.tat-b i { font-style: normal; font-size: 8.5px; color: var(--dim); }
.tat-n {
  flex: 0 0 auto; font-size: 8.5px; font-weight: 700; color: #7A5FBF;
  background: #F1EAFF; border-radius: 20px; padding: 2px 8px;
}

/* 层塔徽章：加高，状态图标不再被裁 */
.tw-steps { align-items: stretch; }
.tw-step { padding: 7px 0 6px; gap: 2px; min-height: 46px; justify-content: center; }
.tw-step b { font-size: 12px; }
.tw-step .ts-ic { height: 11px; }
.tw-step .ts-ic svg { width: 9.5px; height: 9.5px; }
.tw-step.cur b { font-size: 14px; }

/* 层塔状态角标：只在角上，不占正文 */
.tw-step .ts-ic { display: none; }
.tw-step .ts-ck {
  position: absolute; left: -3px; top: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  display: grid; place-items: center;
  font-style: normal; font-size: 8px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg,#7FD1B4,#3E9C82);
  border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(60,140,110,.3);
}
.tw-step .ts-lk {
  position: absolute; right: -3px; top: -5px;
  width: 14px; height: 14px; border-radius: 50%;
  display: grid; place-items: center; color: #A8977C;
  background: #F6EEDF; border: 1.5px solid #fff;
}
.tw-step .ts-lk svg { width: 7.5px; height: 7.5px; }
.tw-step.cur { min-height: 50px; }

/* 角标改为箱内第二行：数字上、状态下，永不裁切 */
.tw-step { min-height: 54px; padding: 6px 0 7px; justify-content: center; gap: 3px; overflow: visible; }
.tw-step .ts-ck, .tw-step .ts-lk {
  position: static; width: auto; height: auto; border: none; background: none;
  box-shadow: none; font-size: 8px; color: #4E9C82; font-weight: 800;
}
.tw-step .ts-lk { color: #B8A488; }
.tw-step .ts-lk svg { width: 9px; height: 9px; }
.tw-step .ts-gift { right: 6px; top: -6px; width: 15px; height: 15px; }
.tw-steps { overflow: visible; }

.tw-step .ts-now { font-style: normal; font-size: 8px; font-weight: 800; color: #D2701C; letter-spacing: .5px; }

/* 十绝阵：守阵者头像条 */
.arr-foes { display: flex; align-items: center; gap: -2px; margin-top: 6px; }
.arr-foes i {
  width: 26px; height: 26px; border-radius: 50%; overflow: hidden;
  border: 2px solid #EADFCB; background: #FBEED8; margin-right: -5px;
  box-shadow: 0 1px 3px rgba(150,105,45,.18); position: relative;
}
.arr-foes i img { width: 100%; height: 100%; object-fit: cover; }
.arr-foes em {
  font-style: normal; font-size: 8px; color: var(--muted);
  margin-left: 9px; background: #F7EEDD; border-radius: 8px; padding: 1px 5px;
}
.arr-card.locked .arr-foes i img { filter: grayscale(1) opacity(.5); }

/* 十绝阵头像条：取头部、放大、锁定时仍可辨 */
.arr-foes i { width: 30px; height: 30px; }
.arr-foes i img { object-position: 50% 14%; }
.arr-card.locked .arr-foes i img { filter: grayscale(.65) opacity(.75); }

/* 护法空位：印章剪影 + 锁等级 */
.gd-slot-plus {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #BFA582; background: #FBF1DE; border: 2px dashed #E3D2B4;
}
.gd-slot-plus svg { width: 17px; height: 17px; }
.gd-slot-d.gd-lk { display: inline-flex; align-items: center; gap: 2px; color: #B8A488; }
.gd-slot-d.gd-lk svg { width: 8px; height: 8px; }

/* ══════════ 灵脉：待命武将条 ══════════ */
.mn-idle {
  margin-top: 10px; background: var(--card); border: 2px solid #F0E3CC;
  border-radius: 13px; padding: 9px 10px 10px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.mi-h {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 11.5px; font-weight: 700; color: #8A5320; letter-spacing: 1px;
}
.mi-h svg { width: 12px; height: 12px; color: #C9A87A; }
.mi-h span {
  margin-left: auto; font-family: var(--sans); font-size: 8px;
  color: var(--dim); letter-spacing: 0; font-weight: 400;
}
.mi-row { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.mi-cell { flex: 0 0 auto; width: 54px; text-align: center; cursor: pointer; }
.mi-cell:active { transform: translateY(1px); }
.mi-av {
  width: 48px; height: 48px; margin: 0 auto; border-radius: 14px; overflow: hidden;
  border: 2px solid #EADFCB; background: linear-gradient(180deg,#FFF6E2,#FBE7C6);
  box-shadow: 0 2px 5px rgba(150,105,45,.18);
}
.mi-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.mi-cell i {
  display: block; font-style: normal; font-size: 8.5px; color: var(--ink2);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mi-cell em { display: block; font-style: normal; font-size: 7.5px; color: var(--dim); }
.mi-none { font-size: 9px; color: var(--dim); padding: 12px 4px; }

/* 灵脉：满仓预估 + 空态按钮 */
.mn-pre {
  margin-top: 10px; background: var(--card); border: 2px solid #F0E3CC;
  border-radius: 13px; padding: 9px 10px 10px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.mp-h {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 11.5px; font-weight: 700; color: #8A5320; letter-spacing: 1px;
}
.mp-h svg { width: 12px; height: 12px; color: #C9A87A; }
.mp-h span { margin-left: auto; font-family: var(--sans); font-size: 8px; color: var(--dim); letter-spacing: 0; font-weight: 400; }
.mp-row { display: flex; gap: 7px; margin-top: 8px; }
.mp {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px; padding: 7px 4px 6px;
}
.mp b { font-size: 12px; color: #7A4A18; font-weight: 800; font-variant-numeric: tabular-nums; }
.mp i { font-style: normal; font-size: 8px; color: var(--dim); }
.mi-none {
  display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--dim);
  padding: 8px 2px 4px;
}
.mi-none svg { width: 14px; height: 14px; color: #C9A87A; }
.mi-go {
  margin-left: auto; font-size: 9px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#FFB055,#EE8A33); border: none;
  border-radius: 20px; padding: 4px 10px; cursor: pointer;
  box-shadow: 0 2px 0 #C9701F;
}

/* 结算奖励图标：改用矢量图，不再用汉字 */
.rw-item .ri svg { width: 17px; height: 17px; }
.rw-item .ri { color: #3A1E06; }
.rw-item .ri.jade svg, .rw-item .ri.soul svg, .rw-item .ri.exp svg, .rw-item .ri.art svg { color: inherit; }

/* ══════════ 选服首屏 v2（玉牌选服 / 轻量按钮） ══════════ */
#modal { z-index: 320; }   /* 弹层必须盖在选服层(200)之上，否则点选服像“没反应” */

.sv2-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.58) saturate(1.1);
  animation: sv2Zoom 30s ease-out both;
}
@keyframes sv2Zoom { from { transform: scale(1.06); } to { transform: scale(1.0); } }
.sv2-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 50% at 50% 18%, rgba(255,214,140,.16), transparent 62%),
    linear-gradient(180deg, rgba(20,12,4,.42) 0%, rgba(20,12,4,.05) 34%, rgba(16,9,2,.72) 74%, rgba(12,7,2,.94) 100%);
}
.sv2-cloud {
  position: absolute; width: 240px; height: 90px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,238,200,.30), transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.sv2-cloud.c1 { left: -70px; top: 16%; animation: cloudDrift 26s ease-in-out infinite alternate; }
.sv2-cloud.c2 { right: -80px; top: 30%; width: 300px; animation: cloudDrift 32s ease-in-out infinite alternate-reverse; }
.sv2-cloud.c3 { left: 20%; bottom: 16%; width: 260px; opacity: .6; animation: cloudDrift 38s ease-in-out infinite alternate; }
@keyframes cloudDrift {
  from { transform: translate3d(0,0,0) scale(1); opacity: .55; }
  to { transform: translate3d(26px,-14px,0) scale(1.08); opacity: .8; }
}
.sv2-motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sv2-motes i {
  position: absolute; bottom: -12px; left: var(--x);
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,170,.95), rgba(255,200,110,.25) 60%, transparent 70%);
  box-shadow: 0 0 8px rgba(255,214,140,.65);
  animation: moteRise var(--t) linear infinite; animation-delay: var(--d);
}
@keyframes moteRise {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  12% { opacity: .9; }
  80% { opacity: .55; }
  100% { transform: translateY(-92vh) scale(1.15); opacity: 0; }
}

.sv2-brand { position: absolute; left: 0; right: 0; top: 11%; text-align: center; z-index: 4; }
.sv2-seal {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  font-family: var(--serif); font-size: 24px; font-weight: 800; color: #FFE8B4;
  background: linear-gradient(160deg, rgba(190,58,38,.92), rgba(126,26,16,.95));
  border: 2px solid rgba(255,214,140,.7);
  box-shadow: 0 4px 16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,160,.5);
  animation: sealBreath 3.4s ease-in-out infinite;
}
@keyframes sealBreath {
  50% { box-shadow: 0 4px 22px rgba(255,170,80,.45), inset 0 1px 0 rgba(255,220,160,.6); transform: translateY(-2px); }
}
.sv2-brand h1 {
  margin-top: 8px; font-family: var(--serif); font-size: 25px; font-weight: 800;
  letter-spacing: 5px; color: #FFF3D6; text-indent: 5px;
  text-shadow: 0 2px 10px rgba(0,0,0,.7), 0 0 22px rgba(255,200,120,.35);
}
.sv2-brand p {
  margin-top: 3px; font-size: 9.5px; letter-spacing: 3px; color: rgba(255,232,196,.72);
  text-indent: 3px;
}

.sv2-panel {
  position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 5; padding: 0 16px; display: flex; flex-direction: column; gap: 9px;
}
.sv2-card {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(58,34,12,.78), rgba(30,17,4,.88));
  border: 1.5px solid rgba(255,205,120,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,220,160,.14);
  backdrop-filter: blur(4px);
}
.sv2-av {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; color: #4A2200;
  font-family: var(--serif); font-size: 15px; font-weight: 800;
  background: linear-gradient(160deg,#FFE9A8,#E8A93C);
  border: 1.5px solid rgba(255,255,255,.65);
}
.sv2-av.empty { background: rgba(255,220,160,.14); color: rgba(255,232,196,.6); border-style: dashed; }
.sv2-av img { width: 100%; height: 100%; object-fit: cover; }
.sv2-info { flex: 1; min-width: 0; }
.sv2-info b {
  display: block; font-family: var(--serif); font-size: 12.5px; color: #FFF1D4;
  letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv2-info i {
  display: block; font-style: normal; font-size: 8.5px; color: rgba(255,232,196,.6);
  margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sv2-mng {
  flex: 0 0 auto; font-size: 9px; color: #FFD98A; letter-spacing: .5px;
  background: rgba(255,200,110,.14); border: 1px solid rgba(255,205,120,.3);
  border-radius: 999px; padding: 3px 9px; cursor: pointer;
}

.sv2-svs { display: flex; gap: 6px; }
.sv2-sv {
  position: relative; flex: 1 1 0; min-width: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 2px 5px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(180deg, rgba(52,32,12,.62), rgba(28,16,4,.72));
  border: 1.5px solid rgba(255,205,120,.2);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.sv2-sv:active { transform: scale(.95); }
.sv2-sv-seal {
  font-family: var(--serif); font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  color: rgba(255,232,196,.75);
}
.sv2-sv b {
  font-size: 9.5px; font-weight: 700; color: rgba(255,244,220,.9);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv2-sv i { font-style: normal; font-size: 7.5px; color: rgba(255,232,196,.45); }
.sv2-sv.on {
  border-color: rgba(255,208,120,.9);
  background: linear-gradient(180deg, rgba(120,74,20,.85), rgba(72,40,8,.9));
  box-shadow: 0 0 0 2px rgba(255,198,100,.18), 0 4px 14px rgba(255,170,60,.22);
}
.sv2-sv.on b { color: #FFE9B8; }
.sv2-sv.on .sv2-sv-seal { color: #FFD98A; }
.sv2-sv.lock { opacity: .38; }
.sv2-sv-pick {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 18px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,214,140,0), #FFD98A, rgba(255,214,140,0));
}

.sv2-go {
  position: relative; align-self: center; width: 62%; min-width: 180px; max-width: 240px;
  padding: 10px 0; border-radius: 12px; cursor: pointer; overflow: hidden;
  font-family: var(--serif); font-size: 14px; font-weight: 800; letter-spacing: 4px;
  color: #5A2600; text-indent: 4px;
  background: linear-gradient(180deg, #FFF0B8 0%, #FFCB62 45%, #E8952A 100%);
  border: 2px solid rgba(255,255,255,.8);
  box-shadow: 0 3px 0 #B0641A, 0 8px 20px rgba(255,170,60,.32), inset 0 1.5px 0 rgba(255,255,255,.8);
  transition: transform .14s, box-shadow .14s;
}
.sv2-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #B0641A, 0 4px 10px rgba(255,170,60,.28); }
.sv2-go.off { background: linear-gradient(180deg,#C9C0B0,#9A9186); color: rgba(255,255,255,.72); box-shadow: 0 3px 0 #6E655A; }
.sv2-go-shine {
  position: absolute; top: 0; left: -40%; width: 34%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg); animation: goShine 3.2s ease-in-out infinite;
}
@keyframes goShine { 0%, 62% { left: -40%; } 92%, 100% { left: 118%; } }
.sv2-foot {
  text-align: center; font-size: 8px; letter-spacing: .3px;
  color: rgba(255,232,196,.38);
}

/* ══════════════════════════════════════════════════════════
   v1.28.0 灵动化：全局光尘 / 入场动效 / 呼吸与流光
   ══════════════════════════════════════════════════════════ */
:root {
  --spring: cubic-bezier(.18,.92,.24,1);
  --soft: cubic-bezier(.33,1,.42,1);
}

/* ── 全局仙气层 ── */
#ambient {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
#ambient .mt {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,160,.9), rgba(255,196,110,.28) 55%, transparent 72%);
  box-shadow: 0 0 7px rgba(255,206,130,.55);
  animation: ambientRise linear infinite;
  opacity: 0;
}
@keyframes ambientRise {
  0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; }
  10% { opacity: .85; }
  55% { transform: translate3d(10px,-46vh,0) scale(1); opacity: .7; }
  85% { opacity: .35; }
  100% { transform: translate3d(-8px,-96vh,0) scale(1.1); opacity: 0; }
}
#ambient .orb {
  position: absolute; border-radius: 50%; filter: blur(14px); opacity: .5;
  background: radial-gradient(circle, rgba(255,214,150,.35), transparent 68%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
#ambient .o1 { width: 130px; height: 130px; left: -30px; top: 12%; }
#ambient .o2 { width: 170px; height: 170px; right: -50px; top: 34%; animation-duration: 28s; animation-delay: -6s; }
#ambient .o3 { width: 120px; height: 120px; left: 30%; bottom: 8%; animation-duration: 34s; animation-delay: -12s; }
@keyframes orbDrift {
  from { transform: translate3d(0,0,0) scale(1); opacity: .32; }
  to { transform: translate3d(18px,-26px,0) scale(1.18); opacity: .58; }
}
#view { position: relative; z-index: 1; }

/* ── 入场：页面与卡片分层浮现 ── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px) scale(.986); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.9); }
  62% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
#view.pg-in { animation: pgIn .34s var(--spring) both; }
@keyframes pgIn {
  from { opacity: 0; transform: translateY(14px) scale(.992); }
  to { opacity: 1; transform: none; }
}

/* 页内一级块依次升起 */
.pad > * { animation: riseIn .42s var(--spring) both; }
.pad > *:nth-child(1) { animation-delay: .01s; }
.pad > *:nth-child(2) { animation-delay: .05s; }
.pad > *:nth-child(3) { animation-delay: .09s; }
.pad > *:nth-child(4) { animation-delay: .13s; }
.pad > *:nth-child(5) { animation-delay: .17s; }
.pad > *:nth-child(6) { animation-delay: .21s; }
.pad > *:nth-child(7) { animation-delay: .25s; }
.pad > *:nth-child(8) { animation-delay: .29s; }
.pad > *:nth-child(n+9) { animation-delay: .32s; }

/* 网格子项弹入（限制在前 8 个，避免长列表拖慢首帧） */
.rc-grid > *, .form-grid > *, .mn-grid > *, .art-slots4 > *, .foe-grid > * ,
.tvd-row > *, .mp-row > *, .ar-side > *, .stat-grid > * {
  animation: popIn .38s var(--spring) both;
}
.rc-grid > *:nth-child(2), .mn-grid > *:nth-child(2), .art-slots4 > *:nth-child(2) { animation-delay: .04s; }
.rc-grid > *:nth-child(3), .mn-grid > *:nth-child(3), .art-slots4 > *:nth-child(3) { animation-delay: .08s; }
.rc-grid > *:nth-child(4), .mn-grid > *:nth-child(4), .art-slots4 > *:nth-child(4) { animation-delay: .12s; }
.rc-grid > *:nth-child(5), .stat-grid > *:nth-child(5) { animation-delay: .16s; }
.rc-grid > *:nth-child(6), .stat-grid > *:nth-child(6) { animation-delay: .2s; }
.rc-grid > *:nth-child(n+7) { animation-delay: .24s; }
.stat-grid > *:nth-child(2) { animation-delay: .03s; }
.stat-grid > *:nth-child(3) { animation-delay: .06s; }
.stat-grid > *:nth-child(4) { animation-delay: .09s; }

/* ── 呼吸 / 漂浮：让画面始终有细微运动 ── */
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes bobY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sway { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
@keyframes glowBreath {
  0%,100% { box-shadow: 0 6px 20px rgba(160,120,60,.18); }
  50% { box-shadow: 0 8px 28px rgba(230,160,70,.34); }
}

/* 主城建筑：漂浮 + 轻微摆动 */
.spot .sp-pad { animation: bobY 5.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.spot.big .sp-pad { animation-duration: 6.4s; }
.spot .sp-pad img { animation: sway 7s ease-in-out infinite; animation-delay: var(--d, 0s); }

/* 武将立绘：呼吸 + 浮动 */
.hero2 { animation: glowBreath 4.6s ease-in-out infinite; }
.h2-art img { animation: heroFloat2 6.5s ease-in-out infinite; }
@keyframes heroFloat2 {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.025); }
}
.rc-grid .rcard img, .mn-rin img, .mi-av img { transition: transform .3s var(--soft); }
.rc-grid .rcard:active img { transform: scale(1.06); }

/* 编队/敌人立绘缓缓呼吸 */
.tw-unit, .fs-unit { animation: bobY 4.8s ease-in-out infinite; }
.tw-unit:nth-child(2), .fs-unit:nth-child(2) { animation-delay: -1.2s; }
.tw-unit:nth-child(3), .fs-unit:nth-child(3) { animation-delay: -2.4s; }

/* ── 流光：主按钮扫光 / 标签微微发亮 ── */
@keyframes sheen {
  0%, 58% { transform: translateX(-120%) skewX(-18deg); }
  92%, 100% { transform: translateX(220%) skewX(-18deg); }
}
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after {
  content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%) skewX(-18deg);
  animation: sheen 4.4s ease-in-out infinite;
  pointer-events: none;
}
.btn:active { transform: translateY(1px) scale(.99); }

/* 顶栏资源变化：更明显的一次跳动 */
@keyframes coinPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); color: #E4572E; }
  100% { transform: scale(1); }
}
.coin .v.pop { animation: coinPop .45s var(--spring); display: inline-block; }

/* 页签选中：轻微弹起 + 光晕 */
.seg .s, .nav-item { transition: transform .18s var(--spring), box-shadow .18s, background .18s; }
.seg .s.on { animation: popIn .3s var(--spring) both; }
.nav-item.on .ni-ic, .nav-item.on svg { animation: bobY 2.6s ease-in-out infinite; }

/* 关卡当前节点：更强的呼吸光 */
.map-row.cur .mn-face { animation: nodePulse 1.9s ease-in-out infinite, breathe 3.4s ease-in-out infinite; }

/* 战斗单位待机呼吸 */
.bt-unit { animation: bobY 3.6s ease-in-out infinite; }
.bt-unit:nth-child(2) { animation-delay: -1.1s; }
.bt-unit:nth-child(3) { animation-delay: -2.2s; }

/* 减少动态偏好：全部收敛，避免晕眩 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
}

/* 主城建筑：整体漂浮（标签跟随，不会脱节） */
.spot .sp-pad { animation: none !important; }
.spot { animation: spotIn .44s var(--spring) both, spotBob 5.4s ease-in-out infinite; }
.spot { animation-delay: calc(var(--i,0) * .05s), calc(.46s + var(--i,0) * .22s); }
@keyframes spotBob {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 6px)); }
}
.spot .sp-pad img { animation: sway 7.5s ease-in-out infinite; animation-delay: calc(var(--i,0) * -.9s); }

/* ── 全屏流光：每 12s 一次极淡的斜向扫光，画面不再“死” ── */
#phone::after {
  content: ''; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(104deg, transparent 42%, rgba(255,248,225,.16) 48%, rgba(255,236,190,.06) 54%, transparent 60%);
  transform: translateX(-60%);
  animation: pageSheen 13s ease-in-out infinite;
}
@keyframes pageSheen {
  0%, 72% { transform: translateX(-60%); opacity: 0; }
  78% { opacity: 1; }
  96%, 100% { transform: translateX(60%); opacity: 0; }
}

/* 主行动按钮：旋转光边 */
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.sf-go, .fb-go, .tw-enter, .sv2-go { position: relative; }
.sf-go::before, .fb-go::before, .tw-enter::before {
  content: ''; position: absolute; inset: -2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from 0deg, rgba(255,220,150,0), rgba(255,235,180,.85), rgba(255,220,150,0) 42%);
  animation: ctaSpin 5s linear infinite;
  opacity: .75;
}

/* 卡片按下反馈：轻微下沉 + 内阴影 */
.card:active, .rcard:active, .foe-card:active, .arr-card:active, .trial2:active, .mn-cell:active, .as4:active {
  transform: scale(.985);
  filter: brightness(.985);
}
.card, .rcard, .foe-card, .arr-card, .trial2, .mn-cell, .as4 { transition: transform .14s var(--spring), filter .14s; }

/* 顶栏头像：柔光呼吸 */
.avatar { animation: avGlow 4.2s ease-in-out infinite; }
@keyframes avGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,200,120,0); }
  50% { box-shadow: 0 0 0 3px rgba(255,200,120,.18), 0 0 12px rgba(255,190,90,.25); }
}

/* 详情页：材料获取途径 */
.dt-src {
  margin-top: 9px; background: var(--card); border: 1.5px solid #F0E3CC; border-radius: 12px;
  padding: 8px 9px 9px; box-shadow: 0 2px 0 rgba(200,170,120,.16);
}
.ds-h {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: #8A5320; letter-spacing: 1px;
}
.ds-h svg { width: 11px; height: 11px; color: #C9A87A; }
.ds-row { display: flex; gap: 6px; margin-top: 7px; }
.ds-i {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #FFFBF2; border: 1px solid #F5EAD8; border-radius: 9px; padding: 6px 2px 5px;
  cursor: pointer; transition: transform .14s var(--spring);
}
.ds-i:active { transform: scale(.95); }
.ds-ic {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(160deg,#FFC97A,#E08E2E);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.ds-ic svg { width: 12px; height: 12px; }
.ds-i b { font-size: 8.5px; color: var(--ink2); font-weight: 700; }
.ds-i i { font-style: normal; font-size: 7.5px; color: var(--dim); }

/* ══════════ 关卡地图：节点放大 & 章节奖励条 ══════════ */
.map-node { width: 84px; }
.mn-face { width: 70px; height: 70px; }
.mn-lv { font-size: 10.5px; }
.map-row.left { padding-left: 7%; }
.map-row.right { padding-right: 7%; }
.map-row.left::after { left: calc(7% + 84px); }
.map-row.right::after { right: calc(7% + 84px); }
.map-row.left::before { left: calc(7% + 92px); }
.map-row.right::before { right: calc(7% + 92px); }
.map-row.left .mn-mile { right: 15%; }
.map-row.right .mn-mile { left: 15%; }

.ch-reward {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  background: linear-gradient(180deg,#FFF6E2,#FFEFD2);
  border: 1.5px solid #F2DDB4; border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 2px 0 rgba(200,170,120,.18);
}
.cr-ic {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg,#FFD98A,#E2951F);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.cr-ic svg { width: 14px; height: 14px; }
.cr-b { flex: 1; min-width: 0; }
.cr-b b { display: block; font-size: 10.5px; color: #7A4A18; letter-spacing: .5px; }
.cr-b i { font-style: normal; font-size: 8.5px; color: var(--dim); }
.cr-track { flex: 0 0 74px; height: 6px; border-radius: 3px; background: #F0E1C6; overflow: hidden; }
.cr-track i { display: block; height: 100%; background: linear-gradient(90deg,#FFC65C,#EE8A33); border-radius: 3px; }
.cr-n { flex: 0 0 auto; font-size: 9px; font-weight: 800; color: #B4551C; font-variant-numeric: tabular-nums; }

/* 关卡地图行高压缩，保证首屏能看到 4 个节点 */
.map-row { padding: 1px 0; }
.map-row .mn-stars { margin-top: 1px; }
.map-row .mn-name { margin-top: -1px; }
.map-pad .chapter-head { padding: 7px 11px; }
.map-pad .ch-reward { margin-top: 7px; padding: 6px 9px; }

/* 花瓣更明显一点（覆盖全站，不只是主城） */
#petals { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.petal { box-shadow: 0 1px 3px rgba(200,140,160,.18); }

/* 全局流云：两块大范围柔光缓慢横移，静止截图也能看出层次 */
#ambient .wisp {
  position: absolute; width: 320px; height: 120px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,240,205,.34), rgba(255,226,170,.10) 62%, transparent 74%);
  filter: blur(10px); animation: wispMove 34s ease-in-out infinite alternate;
}
#ambient .w1 { left: -120px; top: 8%; }
#ambient .w2 { right: -140px; top: 42%; animation-duration: 44s; animation-delay: -12s; }
@keyframes wispMove {
  from { transform: translate3d(0,0,0) scale(1); opacity: .28; }
  to { transform: translate3d(70px,18px,0) scale(1.16); opacity: .5; }
}

/* ══════════ 洞府分组 ══════════ */
.cave-sec {
  display: flex; align-items: baseline; gap: 7px; margin: 12px 2px 7px;
}
.cave-sec:first-child { margin-top: 2px; }
.cave-sec b {
  font-family: var(--serif); font-size: 12.5px; font-weight: 800; color: #8A5320; letter-spacing: 2px;
  position: relative; padding-left: 9px;
}
.cave-sec b::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 11px; border-radius: 2px;
  background: linear-gradient(180deg,#FFC65C,#EE8A33);
}
.cave-sec i { font-style: normal; font-size: 8.5px; color: var(--dim); letter-spacing: .5px; }

/* ══════════ 活动页：主视觉插画 ══════════ */
.events-banner { position: relative; overflow: hidden; }
.eb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 38%; opacity: .92;
  animation: ebZoom 18s ease-in-out infinite alternate;
}
@keyframes ebZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.eb-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(52,26,6,.72) 0%, rgba(52,26,6,.28) 58%, rgba(52,26,6,.05) 100%),
              linear-gradient(180deg, rgba(52,26,6,.15), rgba(52,26,6,.42));
}
.eb-txt { position: relative; z-index: 2; }
.eb-txt b { color: #FFF3D6; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.eb-txt span { color: rgba(255,240,214,.85); }
.eb-lan {
  position: absolute; width: 9px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,120,.95), rgba(230,120,40,.6) 70%, transparent 78%);
  box-shadow: 0 0 10px rgba(255,180,90,.75);
  animation: lanFloat 4.6s ease-in-out infinite;
}
.eb-lan.l1 { left: 16%; top: 22%; }
.eb-lan.l2 { left: 52%; top: 16%; animation-delay: -1.4s; }
.eb-lan.l3 { left: 80%; top: 30%; animation-delay: -2.8s; }
@keyframes lanFloat {
  0%,100% { transform: translateY(0) scale(1); opacity: .85; }
  50% { transform: translateY(-7px) scale(1.12); opacity: 1; }
}

/* 点将台：封神榜画卷作背景，宝鼎居中 */
.gs-scroll {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 132%; height: 100%; object-fit: cover; object-position: 50% 40%;
  opacity: .5; filter: saturate(.9) blur(.4px);
  animation: gsScroll 26s ease-in-out infinite alternate;
}
@keyframes gsScroll { from { transform: translateX(-52%) scale(1.02); } to { transform: translateX(-48%) scale(1.06); } }
.gs-scroll-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 62%, rgba(251,241,220,.55), rgba(251,241,220,.86) 62%, rgba(243,226,194,.95) 100%);
}
/* 活动横幅：回到渐变 + 灯笼 */
.eb-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 18% 60%, rgba(255,190,90,.28), transparent 68%),
    linear-gradient(100deg, #B4551C 0%, #D9762A 46%, #E8A33E 100%);
}
.eb-txt { position: relative; z-index: 2; }

/* 画卷更明显：降低遮罩、提高不透明度 */
.gs-scroll { opacity: .92; filter: saturate(1) blur(0); animation-duration: 30s; }
.gs-scroll-veil {
  background:
    radial-gradient(46% 42% at 50% 66%, rgba(251,241,220,.72), rgba(251,241,220,.30) 62%, rgba(243,226,194,.10) 100%),
    linear-gradient(180deg, rgba(251,241,220,.18), rgba(243,226,194,.06));
}

/* 封神台：封神榜画卷主视觉 */
.ar-hero {
  position: relative; height: 108px; border-radius: 15px; overflow: hidden;
  border: 2.5px solid #fff; box-shadow: 0 5px 16px rgba(160,120,60,.22); margin-bottom: 9px;
}
.ar-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%;
  animation: arHeroZoom 20s ease-in-out infinite alternate;
}
@keyframes arHeroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.ar-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(40,22,6,.78) 0%, rgba(40,22,6,.34) 46%, rgba(40,22,6,.04) 78%),
    linear-gradient(180deg, transparent 40%, rgba(30,16,4,.35));
}
.ar-hero-t { position: absolute; left: 13px; bottom: 12px; z-index: 2; }
.ar-hero-t b {
  display: block; font-family: var(--serif); font-size: 19px; font-weight: 800; letter-spacing: 4px;
  color: #FFF3D6; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.ar-hero-t i { font-style: normal; font-size: 8.5px; letter-spacing: 1.5px; color: rgba(255,238,206,.8); }
.ar-hero-tier {
  position: absolute; right: 11px; top: 10px; z-index: 2;
  font-size: 9.5px; font-weight: 700; color: #5A2600; letter-spacing: 1px;
  background: linear-gradient(180deg,#FFE9A8,#E8A93C);
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 20px; padding: 2px 9px;
  box-shadow: 0 2px 6px rgba(120,70,20,.3);
}

.ar-hero { height: 118px; }
.ar-hero-img { object-position: 50% 30%; opacity: .95; }
.ar-hero-veil {
  background:
    linear-gradient(90deg, rgba(28,14,2,.86) 0%, rgba(28,14,2,.5) 38%, rgba(28,14,2,.06) 72%),
    linear-gradient(180deg, rgba(28,14,2,.12) 0%, transparent 40%, rgba(20,10,2,.5) 100%);
}

/* 图鉴：收集里程奖励 */
.cx-miles { display: flex; gap: 5px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.cx-mile {
  flex: 1 0 auto; min-width: 52px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #FFFBF2; border: 1.5px solid #F0E3CC; border-radius: 9px; padding: 5px 4px 4px;
  position: relative;
}
.cx-mile.can {
  border-color: #E8A93C; background: linear-gradient(180deg,#FFF6E2,#FFEBC4);
  box-shadow: 0 0 0 2px rgba(232,169,60,.16); animation: pulseMile 1.8s ease-in-out infinite;
}
@keyframes pulseMile { 50% { box-shadow: 0 0 0 5px rgba(232,169,60,.06); } }
.cx-mile.got { opacity: .6; }
.cm-n { font-size: 8px; color: var(--dim); }
.cm-r { display: inline-flex; align-items: center; gap: 2px; font-size: 9px; font-weight: 800; color: #2E8A78; }
.cm-go {
  font-size: 8px; font-weight: 800; color: #fff; background: linear-gradient(180deg,#FFB055,#EE8A33);
  border-radius: 8px; padding: 0 5px;
}
.cm-ok { font-size: 9px; color: #4E9C82; font-weight: 800; }
.cm-lk { display: grid; place-items: center; color: #C4AB88; }
.cm-lk svg { width: 8px; height: 8px; }

/* 选服抽屉：白底行内的标签/徽章对比度修正 */
.sv-row .sv-tag {
  color: #8A5320; background: #FFF0D2; border-color: #EAD3A6;
}
.sv-row .sv-tag.hot { color: #4A1A00; background: linear-gradient(150deg,#FFD98A,#F09A2A); border-color: #fff; }
.sv-row .sv-badge {
  color: #4A2200;
  background: linear-gradient(160deg,#FFE9A8,#E8A93C 66%,#C07A18);
  border-color: #fff;
}
.sv-row .sv-badge.dim { color: #AB9B84; background: #F1E6D2; border-color: #fff; }
.sv-row .sv-role { color: #9A8570; }
.sv-row.soon .sv-badge { opacity: .7; }

/* ══════════════════════════════════════════════════════════
   v1.29.0 登录首屏（单按钮）+ 选服列表（游戏常规）
   ══════════════════════════════════════════════════════════ */
.sv3-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.66) saturate(1.06);
  animation: sv3Zoom 34s ease-out both;
}
@keyframes sv3Zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.sv3-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 44% at 50% 16%, rgba(255,214,140,.14), transparent 62%),
    linear-gradient(180deg, rgba(14,8,2,.52) 0%, rgba(14,8,2,.04) 26%, rgba(12,7,2,.42) 72%, rgba(10,6,2,.9) 100%);
}
.sv3-cloud {
  position: absolute; width: 260px; height: 96px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,238,200,.26), transparent 72%);
  filter: blur(8px); pointer-events: none;
}
.sv3-cloud.c1 { left: -90px; top: 14%; animation: cloudDrift 28s ease-in-out infinite alternate; }
.sv3-cloud.c2 { right: -100px; top: 38%; width: 320px; animation: cloudDrift 36s ease-in-out infinite alternate-reverse; }
.sv3-motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sv3-motes i {
  position: absolute; bottom: -10px; left: var(--x);
  width: 3.5px; height: 3.5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,170,.95), rgba(255,200,110,.2) 60%, transparent 72%);
  box-shadow: 0 0 8px rgba(255,214,140,.6);
  animation: moteRise var(--t) linear infinite; animation-delay: var(--d);
}

.sv3-brand { position: absolute; left: 0; right: 0; top: 13%; text-align: center; }
.sv3-seal {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-family: var(--serif); font-size: 25px; font-weight: 800; color: #FFE8B4;
  background: linear-gradient(160deg, rgba(190,58,38,.94), rgba(120,24,14,.96));
  border: 2px solid rgba(255,214,140,.72);
  box-shadow: 0 5px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,220,160,.5);
  animation: sealBreath 3.6s ease-in-out infinite;
}
.sv3-brand h1 {
  margin-top: 9px; font-family: var(--serif); font-size: 26px; font-weight: 800;
  letter-spacing: 6px; color: #FFF3D6; text-indent: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.72), 0 0 24px rgba(255,200,120,.3);
}
.sv3-brand p {
  margin-top: 4px; font-size: 9px; letter-spacing: 4px; color: rgba(255,232,196,.7); text-indent: 4px;
}

.sv3-bottom {
  position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 0 22px;
}
.sv3-sv {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 9px; color: rgba(255,232,196,.62); letter-spacing: .5px;
  background: rgba(28,16,4,.42); border: 1px solid rgba(255,205,120,.24);
  border-radius: 20px; padding: 3px 11px; backdrop-filter: blur(3px);
}
.sv3-sv b { font-size: 10px; color: #FFD98A; font-weight: 700; }
.sv3-sv i {
  font-style: normal; font-size: 8px; color: #4A2200; font-weight: 800;
  background: linear-gradient(160deg,#FFD98A,#F09A2A); border-radius: 6px; padding: 0 4px;
}
.sv3-go {
  position: relative; overflow: hidden; width: 66%; min-width: 190px; max-width: 250px;
  padding: 12px 0; border-radius: 13px; cursor: pointer;
  font-family: var(--serif); font-size: 15px; font-weight: 800; letter-spacing: 5px;
  color: #5A2600; text-indent: 5px;
  background: linear-gradient(180deg, #FFF3C4 0%, #FFD274 42%, #E89A2E 100%);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 0 #B0641A, 0 10px 24px rgba(255,170,60,.34), inset 0 1.5px 0 rgba(255,255,255,.85);
  animation: sv3GoBreath 2.6s ease-in-out infinite;
  transition: transform .14s;
}
@keyframes sv3GoBreath {
  0%,100% { box-shadow: 0 4px 0 #B0641A, 0 10px 24px rgba(255,170,60,.34), inset 0 1.5px 0 rgba(255,255,255,.85); }
  50% { box-shadow: 0 4px 0 #B0641A, 0 12px 34px rgba(255,196,96,.6), inset 0 1.5px 0 rgba(255,255,255,.85); }
}
.sv3-go:active { transform: translateY(3px); box-shadow: 0 1px 0 #B0641A, 0 5px 12px rgba(255,170,60,.3); }
.sv3-go.off { background: linear-gradient(180deg,#C9C0B0,#9A9186); color: rgba(255,255,255,.72); box-shadow: 0 3px 0 #6E655A; animation: none; }
.sv3-go-shine {
  position: absolute; top: 0; left: -40%; width: 34%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.8), transparent);
  transform: skewX(-18deg); animation: goShine 3.4s ease-in-out infinite;
}
.sv3-links { display: flex; align-items: center; gap: 10px; }
.sv3-links span {
  font-size: 9.5px; color: rgba(255,232,196,.6); letter-spacing: 1px; cursor: pointer;
  padding: 2px 4px;
}
.sv3-links span:active { color: #FFD98A; }
.sv3-links s { width: 1px; height: 9px; background: rgba(255,232,196,.24); display: block; }
.sv3-foot { font-size: 8px; color: rgba(255,232,196,.34); letter-spacing: .3px; }

/* ── 选服列表（全屏） ── */
.sv-list-layer {
  position: fixed; inset: 0; z-index: 260; display: none;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(96,58,20,.55), transparent 62%),
    linear-gradient(180deg, #241505 0%, #1A0F04 52%, #120A02 100%);
  flex-direction: column;
}
.sv-list-layer.show { display: flex; animation: slIn .26s var(--spring) both; }
@keyframes slIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sl-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 8px;
}
.sl-back {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgba(255,205,120,.32); background: rgba(255,255,255,.06);
  color: #FFD98A; font-size: 19px; line-height: 1; padding-bottom: 3px;
}
.sl-title b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 3px; color: #FFF1D4; }
.sl-title i { display: block; font-style: normal; font-size: 8.5px; color: rgba(255,232,196,.5); margin-top: 1px; }
.sl-tabs { flex: 0 0 auto; display: flex; gap: 8px; padding: 4px 14px 10px; }
.sl-tabs span {
  font-size: 10px; color: rgba(255,232,196,.55); padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255,205,120,.18);
}
.sl-tabs span.on {
  color: #5A2600; font-weight: 800;
  background: linear-gradient(180deg,#FFE9A8,#E8A93C); border-color: rgba(255,255,255,.6);
}
.sl-list {
  flex: 1 1 auto; overflow-y: auto; padding: 0 12px 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.sl-list::-webkit-scrollbar { width: 0; }
.sl-row {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 10px 11px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(60,38,14,.82), rgba(34,20,7,.9));
  border: 1.5px solid rgba(255,205,120,.2);
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  transition: transform .14s var(--spring), border-color .16s;
}
.sl-row:active { transform: scale(.985); }
.sl-row.on { border-color: rgba(255,205,120,.75); box-shadow: 0 0 0 2px rgba(255,198,100,.14), 0 4px 16px rgba(255,170,60,.16); }
.sl-row.soon { opacity: .45; cursor: default; }
.sl-state {
  flex: 0 0 auto; width: 42px; text-align: center;
  font-size: 8.5px; font-weight: 800; letter-spacing: .5px;
  border-radius: 7px; padding: 3px 0;
}
.sl-state.hot { color: #4A1A00; background: linear-gradient(160deg,#FFD98A,#F09A2A); }
.sl-state.ok { color: #0B3A2E; background: linear-gradient(160deg,#BDEEDD,#57B79E); }
.sl-state.have { color: #3A1E5E; background: linear-gradient(160deg,#DFCDF8,#9B7EDE); }
.sl-state.soon { color: #C9BFAE; background: rgba(255,255,255,.12); }
.sl-main { flex: 1 1 auto; min-width: 0; }
.sl-main b {
  display: block; font-family: var(--serif); font-size: 12.5px; color: #FFF1D4; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-main i {
  display: block; font-style: normal; font-size: 8.5px; color: rgba(255,232,196,.52); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-on {
  flex: 0 0 auto; font-size: 8px; color: #FFD98A;
  border: 1px solid rgba(255,205,120,.4); border-radius: 20px; padding: 1px 6px;
}
.sl-go {
  flex: 0 0 auto; font-size: 10px; font-weight: 800; color: #5A2600; letter-spacing: 1px;
  background: linear-gradient(180deg,#FFE9A8,#E8A93C); border-radius: 20px; padding: 4px 11px;
  box-shadow: 0 2px 0 #B0641A;
}
.sl-row.soon .sl-go { background: rgba(255,255,255,.14); color: rgba(255,255,255,.5); box-shadow: none; }
.sl-arrow { flex: 0 0 auto; font-style: normal; font-size: 12px; color: rgba(255,232,196,.35); }
.sl-foot {
  flex: 0 0 auto; text-align: center; font-size: 8.5px; color: rgba(255,232,196,.4);
  padding: 8px 0 calc(14px + env(safe-area-inset-bottom));
}

/* ── 建号表单里的小件 ── */
.cr-sv {
  display: flex; align-items: center; gap: 6px;
  background: #FFF8EA; border: 1.5px solid #F0E3CC; border-radius: 10px; padding: 7px 10px;
}
.cr-sv svg { width: 13px; height: 13px; color: #C9A87A; }
.cr-sv b { font-size: 11px; color: #7A4A18; font-family: var(--serif); letter-spacing: .5px; }
.cr-sv span { margin-left: auto; font-size: 9px; color: #B4551C; }
.nt-card { background: #FFFBF2; border: 1.5px solid #F2E4CB; border-radius: 10px; padding: 8px 10px; margin-top: 8px; }
.nt-card b { display: block; font-size: 10.5px; color: #7A4A18; letter-spacing: .5px; }
.nt-card i { display: block; font-style: normal; font-size: 9px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* 建号：道号 + 随机 */
.cr-name-row { display: flex; gap: 7px; margin-top: 5px; }
.cr-name-row .redeem-in { flex: 1 1 auto; margin-top: 0; }
.cr-rand {
  flex: 0 0 auto; padding: 0 12px; border-radius: 9px; cursor: pointer;
  font-size: 10px; font-weight: 800; color: #7A4A18;
  background: linear-gradient(180deg,#FFF3D2,#FFE0A4);
  border: 1.5px solid #EFCF92; box-shadow: 0 2px 0 rgba(200,160,90,.35);
}
.cr-rand:active { transform: translateY(1px); box-shadow: none; }

/* 选服列表：角色删除 */
.sl-del {
  flex: 0 0 auto; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9px; font-weight: 700;
  color: #E8A08E; background: rgba(232,120,90,.16);
  border: 1px solid rgba(232,140,110,.35); cursor: pointer;
}
.sl-del:active { background: rgba(232,120,90,.3); }

/* ══════════════════════════════════════════════════════════
   v1.30.0 洞府卡片化 / 克制图谱 / 设置兑换
   ══════════════════════════════════════════════════════════ */
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-grid.one { grid-template-columns: 1fr; }
.cv-c {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--card); border: 2px solid #F0E3CC;
  box-shadow: 0 3px 0 rgba(200,170,120,.22), 0 6px 14px rgba(160,120,60,.08);
  transition: transform .15s var(--spring), box-shadow .15s;
}
.cv-c:active { transform: scale(.975); }
.cv-c-img { position: relative; height: 76px; overflow: hidden; }
.cv-c-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
  transform: scale(1.02); transition: transform .5s var(--soft);
}
.cv-c:active .cv-c-img img { transform: scale(1.08); }
.cv-c-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,250,240,0) 30%, rgba(255,251,242,.72) 78%, #FFFDF8 100%);
}
.cv-c-tag {
  position: absolute; right: 6px; top: 6px; z-index: 2;
  font-style: normal; font-size: 8px; font-weight: 800; color: #4A2200;
  background: linear-gradient(160deg,#FFE9A8,#E8A93C);
  border: 1.5px solid rgba(255,255,255,.8); border-radius: 20px; padding: 1px 7px;
  box-shadow: 0 2px 5px rgba(160,100,30,.28);
}
.cv-c-tag.hot { background: linear-gradient(160deg,#FFB26B,#E4572E); color: #fff; animation: pillGlow 1.8s ease-in-out infinite; }
.cv-c-f { padding: 1px 9px 9px; }
.cv-c-f b {
  display: block; font-family: var(--serif); font-size: 12.5px; font-weight: 800;
  color: #6B3A12; letter-spacing: 1px;
}
.cv-c-f i {
  display: block; font-style: normal; font-size: 8.5px; color: var(--dim); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cv-dot {
  position: absolute; right: 8px; bottom: 10px; width: 7px; height: 7px; border-radius: 50%;
  background: #E4572E; box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(228,87,46,.7);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse { 50% { transform: scale(1.35); opacity: .75; } }

/* 单列卡：左图右字 */
.cv-grid.one .cv-c { display: flex; align-items: center; }
.cv-grid.one .cv-c-img { flex: 0 0 76px; height: 62px; }
.cv-grid.one .cv-c-shade { background: linear-gradient(90deg, transparent 26%, rgba(255,251,242,.9) 92%); }
.cv-grid.one .cv-c-f { flex: 1; padding: 8px 10px; }
.cv-grid.one .cv-dot { bottom: auto; top: 50%; transform: translateY(-50%); right: 12px; }

/* 体力条 */
.cv-stam {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  background: linear-gradient(180deg,#FFF8EA,#FFEFD6);
  border: 2px solid #F2DDB4; border-radius: 14px; padding: 9px 11px;
  box-shadow: 0 3px 0 rgba(200,170,120,.2);
}
.cv-stam-ic .it.big { width: 34px; height: 34px; border-radius: 10px; }
.cv-stam-ic .it.big svg { width: 17px; height: 17px; }
.cv-stam-b { flex: 1; min-width: 0; }
.cv-stam-b b { display: block; font-size: 16px; color: #B4551C; font-weight: 800; font-variant-numeric: tabular-nums; }
.cv-stam-b b span { font-size: 9px; color: var(--dim); font-weight: 400; }
.cv-stam-b i { font-style: normal; font-size: 8.5px; color: var(--dim); }
.cv-stam-btn {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .5px;
  background: linear-gradient(180deg,#FFB055,#EE8A33); border: none; border-radius: 20px;
  padding: 6px 14px; cursor: pointer; box-shadow: 0 2px 0 #C9701F;
}
.cv-stam-btn:active { transform: translateY(1px); box-shadow: none; }

/* 离线收益横幅 */
.cv-off {
  position: relative; display: flex; align-items: center; gap: 8px;
  border-radius: 14px; overflow: hidden; margin-bottom: 10px; padding: 11px 11px 11px 13px;
  border: 2px solid rgba(255,214,140,.4);
  box-shadow: 0 4px 14px rgba(120,70,20,.22);
}
.cv-off-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cv-off-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,22,6,.88) 0%, rgba(40,22,6,.66) 52%, rgba(40,22,6,.42) 100%);
}
.cv-off-b { position: relative; z-index: 1; flex: 1; min-width: 0; }
.cv-off-t { font-family: var(--serif); font-size: 12px; color: #FFEFD0; letter-spacing: 1px; }
.cv-off-t b { color: #FFD98A; font-size: 14px; }
.cv-off-r { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: #FFF1CE; font-weight: 700; }
.cv-off-btn {
  position: relative; z-index: 1; flex: 0 0 auto;
  font-size: 11px; font-weight: 800; color: #5A2600; letter-spacing: 1px;
  background: linear-gradient(180deg,#FFF0B8,#FFCB62 46%,#E8952A);
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 20px; padding: 6px 14px;
  cursor: pointer; box-shadow: 0 2px 0 #B0641A;
}
.cv-off-ad {
  position: relative; z-index: 1; flex: 0 0 auto; margin-left: 4px;
  font-size: 9px; font-weight: 700; color: #FFD98A;
  background: rgba(255,205,120,.16); border: 1px solid rgba(255,205,120,.4);
  border-radius: 20px; padding: 4px 9px; cursor: pointer;
}

/* 克制图谱 */
.ct-hint {
  font-size: 9.5px; color: var(--muted); line-height: 1.6;
  background: #FFFBF2; border: 1.5px dashed #EBDCC2; border-radius: 10px; padding: 7px 9px;
}
.ct-hint b { color: #C4661C; }
.ct-ring { position: relative; height: 176px; margin: 12px 0 8px; }
.ct-ring::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 118px; height: 118px;
  margin: -59px 0 0 -59px; border-radius: 50%;
  border: 2px dashed #EBD9BC; animation: ctaSpin 26s linear infinite;
}
.ct-node {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #FFFBF2;
  font-family: var(--serif); font-size: 21px; font-weight: 800;
  border: 3px solid; box-shadow: 0 3px 10px rgba(150,105,45,.2);
  animation: bobY 4.4s ease-in-out infinite;
}
.ct-node.n0 { left: 50%; top: 0; transform: translateX(-50%); animation-delay: 0s; }
.ct-node.n1 { right: 4px; top: 50%; transform: translateY(-50%); animation-delay: -1.1s; }
.ct-node.n2 { left: 50%; bottom: 0; transform: translateX(-50%); animation-delay: -2.2s; }
.ct-node.n3 { left: 4px; top: 50%; transform: translateY(-50%); animation-delay: -3.3s; }
.ct-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-top: 5px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px;
  border-left: 3px solid var(--fc);
}
.ct-name { font-family: var(--serif); font-size: 11px; font-weight: 800; color: var(--fc); width: 42px; }
.ct-arrow { font-size: 8px; color: var(--dim); background: #F6EBD8; border-radius: 5px; padding: 0 4px; }
.ct-beat { font-size: 10.5px; color: #B4551C; font-weight: 700; flex: 1; }
.ct-lose { font-size: 8.5px; color: var(--dim); }

/* 设置里的兑换 */
.set-redeem { display: flex; gap: 6px; }
.set-redeem .redeem-in { flex: 1 1 auto; margin-top: 0; }
.ach-list { display: flex; flex-direction: column; gap: 6px; }

/* 宝石图鉴：六属性 */
.gb-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gb-t {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px; padding: 8px 4px 7px;
  opacity: .5;
}
.gb-t.have { opacity: 1; border-color: currentColor; box-shadow: 0 2px 6px rgba(150,105,45,.14); }
.gb-t-ic {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; background: currentColor;
}
.gb-t-ic svg { width: 13px; height: 13px; color: #fff; }
.gb-t b { font-size: 9.5px; color: var(--ink2); }
.gb-t i { font-style: normal; font-size: 7.5px; color: var(--dim); }

/* ══════════ 编队：快捷条 / 换角标 / 选将器 / 羁绊总览 ══════════ */
.team-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 9px; }
.tq {
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
  background: #fff; border: 2px solid #F0E3CC; border-radius: 11px; padding: 6px 0 5px;
  box-shadow: 0 2px 0 rgba(200,170,120,.22); color: #A6682C;
  font-size: 9px; font-weight: 700; letter-spacing: .5px;
  transition: transform .14s var(--spring);
}
.tq:active { transform: translateY(2px); box-shadow: none; }
.tq svg { width: 15px; height: 15px; color: #C08A3A; }
.tq span { color: var(--ink2); }

.slot-swap {
  position: absolute; right: 5px; top: 22px; z-index: 3;
  font-size: 8px; font-weight: 800; color: #fff;
  background: rgba(60,36,14,.6); border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px; padding: 0 5px; backdrop-filter: blur(2px);
}

/* 选将器 */
.tp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tp-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 11px; padding: 6px 3px 5px;
  cursor: pointer; transition: transform .14s var(--spring);
}
.tp-cell:active { transform: scale(.95); }
.tp-cell.used { opacity: .55; }
.tp-av {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden;
  border: 2px solid #EADFCB; background: linear-gradient(180deg,#FFF6E2,#FBE7C6);
}
.tp-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.tp-cell b { font-size: 9px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-cell i { font-style: normal; font-size: 7.5px; color: var(--dim); }
.tp-used {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  font-size: 7px; color: #fff; background: rgba(120,90,60,.75); border-radius: 4px; padding: 0 4px;
}

/* 羁绊总览 */
.bd-row {
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 11px;
  padding: 8px 9px; margin-bottom: 7px;
}
.bd-row.on { border-color: #BEDFC8; background: #F6FCF6; }
.bd-head { display: flex; align-items: baseline; }
.bd-head b { font-family: var(--serif); font-size: 11.5px; color: #7A4A18; letter-spacing: 1px; }
.bd-n { margin-left: auto; font-size: 9px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-row.on .bd-n { color: #3E9C82; font-weight: 700; }
.bd-avs { display: flex; gap: 5px; margin: 6px 0 4px; }
.bd-av {
  width: 40px; border-radius: 9px; overflow: hidden; border: 2px solid #EADFCB;
  background: #FBEED8; opacity: .5; position: relative;
}
.bd-av.on { opacity: 1; border-color: #BEDFC8; }
.bd-av img { width: 100%; height: 40px; object-fit: cover; object-position: 50% 14%; display: block; }
.bd-av i {
  display: block; font-style: normal; font-size: 7px; text-align: center; color: var(--muted);
  padding: 1px 0; background: #fff;
}
.bd-b { font-size: 9px; color: var(--muted); }
.bd-row.on .bd-b { color: #2E8A78; }

/* 换角标：移到右下角，避开星级与等级 */
.slot-swap { top: auto; bottom: 6px; right: 6px; }

/* 详情页：重生按钮 */
.dt-reborn {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
  color: #A0563A; background: #FFF1EA; border: 1.5px solid #F0C9BC;
  border-radius: 20px; padding: 3px 9px; cursor: pointer;
}
.dt-reborn:active { transform: translateY(1px); }

/* 游戏内确认弹层 */
.cf-row {
  font-size: 10.5px; color: var(--ink2); line-height: 1.7;
  padding: 7px 10px; margin-bottom: 6px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 10px;
}

/* 选将器：已上阵不再整体变淡，只在角上标记 */
.tp-cell.used { opacity: 1; background: #FFF6E4; border-color: #EBD9BC; }
.tp-cell.used .tp-av { filter: saturate(.9); }
.tp-used {
  position: absolute; right: 3px; top: 3px; left: auto; bottom: auto; transform: none;
  font-size: 7px; font-weight: 700; color: #8A5320;
  background: #FFEBCB; border: 1px solid #EFD3A6; border-radius: 5px; padding: 0 3px;
}
.tp-av { width: 50px; height: 50px; border-radius: 13px; }

/* 结算评星 */
.rs-stars { display: flex; justify-content: center; gap: 5px; margin-top: 2px; }
.rstar {
  font-style: normal; font-size: 19px; color: rgba(255,220,160,.22);
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.rstar.on {
  color: #FFD35C;
  text-shadow: 0 0 10px rgba(255,190,80,.8), 0 2px 6px rgba(0,0,0,.4);
  animation: starPop .5s cubic-bezier(.2,1.6,.4,1) both;
  animation-delay: var(--d, 0s);
}
@keyframes starPop {
  0% { transform: scale(.2) rotate(-40deg); opacity: 0; }
  70% { transform: scale(1.25) rotate(6deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* 评星：放在结算中段，居中 */
.rs-stars { display: flex; justify-content: center; gap: 7px; margin: -2px 0 7px; }

.rstar { font-size: 22px; }

/* 十绝阵：卡片底纹插画 */
.arr-card { position: relative; overflow: hidden; }
.arr-card::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--bg) center/cover no-repeat;
  opacity: .17; transform: scale(1.03);
  filter: saturate(.85) brightness(1.05);
}
.arr-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(255,252,244,.62) 0%, rgba(255,252,244,.86) 55%, rgba(255,252,244,.95) 100%);
}
.arr-card > * { position: relative; z-index: 1; }
.arr-card.locked::before { opacity: .09; filter: grayscale(1); }

.arr-card::before { opacity: .26; }
.arr-card::after { background: linear-gradient(180deg, rgba(255,252,244,.5) 0%, rgba(255,252,244,.82) 52%, rgba(255,252,244,.94) 100%); }

/* 每日登录礼 */
.dl-hero { position: relative; height: 96px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.dl-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.dl-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,22,6,.82), rgba(40,22,6,.28)); }
.dl-t {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  font-family: var(--serif); font-size: 12.5px; color: #FFEFD0; letter-spacing: 1px;
}
.dl-t b { color: #FFD98A; font-size: 16px; }
.dl-row { display: flex; gap: 7px; }
.dl-i {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 11px; padding: 8px 4px 7px;
}
.dl-i b { font-size: 12px; color: #7A4A18; font-weight: 800; font-variant-numeric: tabular-nums; }
.dl-i i { font-style: normal; font-size: 8px; color: var(--dim); }

/* 开场：战力对比条 */
.bi-power {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: center; gap: 7px; width: 74%;
  animation: rsTxtIn .5s .25s both;
}
.bp-l, .bp-r { font-size: 9px; color: rgba(255,236,200,.72); white-space: nowrap; }
.bp-l b { color: #9BE6CC; font-size: 11px; }
.bp-r b { color: #FFB07A; font-size: 11px; }
.bp-bar {
  flex: 1; height: 6px; border-radius: 3px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,140,90,.55), rgba(255,140,90,.2));
  position: relative;
}
.bp-bar s {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7FD1B4, #3E9C82);
  box-shadow: 0 0 8px rgba(94,200,170,.6);
}

/* 战力条：不用 transform 居中，避免被入场动画覆盖 */
.bi-power {
  left: 0; right: 0; margin: 0 auto; transform: none; width: 76%; bottom: 116px;
  animation: biPwIn .45s .25s both;
}
@keyframes biPwIn { from { opacity: 0; } to { opacity: 1; } }

.bi-power { bottom: 158px; }

/* 战力条移到标题下方空白区 */
.bi-power { top: 116px; bottom: auto; width: 66%; }
.bp-l, .bp-r { text-shadow: 0 1px 4px rgba(0,0,0,.7); }

/* 阵容预设 */
.preset-row { display: flex; gap: 6px; margin: 8px 0 2px; }
.ps {
  position: relative; flex: 1; text-align: center; cursor: pointer;
  background: #fff; border: 2px solid #F0E3CC; border-radius: 11px;
  padding: 6px 4px 5px; box-shadow: 0 2px 0 rgba(200,170,120,.2);
  transition: transform .14s var(--spring);
}
.ps:active { transform: translateY(1px); }
.ps b { display: block; font-size: 10.5px; color: var(--ink2); font-weight: 700; letter-spacing: 1px; }
.ps i { display: block; font-style: normal; font-size: 8px; color: var(--dim); }
.ps.on { border-color: #E8A93C; background: linear-gradient(180deg,#FFF8E4,#FBEBC4); }
.ps.on b { color: #A9530A; }
.ps-save {
  position: absolute; right: 4px; top: 3px;
  font-size: 7.5px; font-weight: 800; color: #7A4A18;
  background: #FFEBCB; border: 1px solid #EFD3A6; border-radius: 5px; padding: 0 3px;
}
.ps-save:active { background: #FFD98A; }

/* 出手顺序条 */
.bt-order {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; z-index: 6;
  padding: 3px 7px; border-radius: 20px;
  background: rgba(24,14,4,.5); border: 1px solid rgba(255,214,140,.28);
  backdrop-filter: blur(4px); max-width: 88%;
}
.bt-order:empty { display: none; }
.bt-order .ord {
  position: relative; width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.45); background: #2A1A08;
  flex: 0 0 auto; opacity: .62; transition: opacity .2s, transform .2s;
}
.bt-order .ord img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.bt-order .ord.mine { border-color: #7FD1B4; }
.bt-order .ord.foe { border-color: #E08A6A; }
.bt-order .ord.now {
  opacity: 1; transform: scale(1.28);
  box-shadow: 0 0 0 2px rgba(255,214,140,.8), 0 0 10px rgba(255,190,90,.7);
}
.bt-order .ord em {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  font-style: normal; font-size: 7px; color: #FFD98A; background: rgba(30,16,4,.8);
  border-radius: 4px; padding: 0 2px; line-height: 1.2;
}

/* 出手顺序条：移到顶栏与战场之间的独立一条 */
.bt-order {
  position: relative; left: auto; top: auto; transform: none;
  margin: 0 auto 2px; width: auto; max-width: 92%;
  align-self: center; z-index: 6;
}

/* 战场顶部留出顺序条的高度，避免压住"敌阵"标签 */
.bt-field { padding-top: 16px; }

/* 顺序条靠左，给中间的"敌阵"标签让位 */
.bt-order { margin: 0 0 2px 10px; align-self: flex-start; }
.bt-field { padding-top: 10px; }

/* 技能升级条 */
.sk-up {
  display: flex; align-items: center; gap: 7px; margin-top: 6px;
  background: #fff; border: 1.5px solid #F0E3CC; border-radius: 11px; padding: 6px 9px;
  box-shadow: 0 2px 0 rgba(200,170,120,.16);
}
.su-tag { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.su-tag b { color: #7A4A18; font-size: 11px; }
.su-bar { flex: 1 1 auto; height: 5px; border-radius: 3px; background: #F2E6D2; overflow: hidden; }
.su-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg,#FFC65C,#EE8A33); }
.su-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#FFB055,#EE8A33); border: none; border-radius: 20px;
  padding: 4px 9px; cursor: pointer; box-shadow: 0 2px 0 #C9701F;
}
.su-btn:not(.on) { background: #E3D6C2; box-shadow: 0 2px 0 #CBB99E; }
.su-btn:active { transform: translateY(1px); box-shadow: none; }
.su-max { font-size: 9px; color: #3E9C82; font-weight: 800; }

/* 首破宝箱 */
.chest-layer {
  position: absolute; inset: 0; z-index: 150; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .26s ease;
}
.chest-layer.on { opacity: 1; }
.cl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-veil {
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(60,32,8,.55), rgba(12,6,2,.92) 78%);
}
.cl-chest {
  position: relative; width: 92px; height: 92px; border-radius: 22px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 40px; font-weight: 800; color: #5A2600;
  background: linear-gradient(160deg,#FFE9A8,#E8A93C 60%,#B8791E);
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(255,170,60,.45), inset 0 2px 0 rgba(255,255,255,.8);
  animation: chestPop .6s cubic-bezier(.2,1.5,.4,1) both, chestFloat 2.6s ease-in-out .6s infinite;
}
@keyframes chestPop { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes chestFloat { 50% { transform: translateY(-6px); } }
.cl-t {
  position: relative; margin-top: 6px; font-family: var(--serif); font-size: 17px;
  letter-spacing: 3px; color: #FFF3D6; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.cl-sub { position: relative; font-size: 9px; color: rgba(255,232,196,.7); letter-spacing: 1px; }
.cl-row { position: relative; display: flex; gap: 8px; margin-top: 12px; }
.cl-i {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,246,228,.1); border: 1.5px solid rgba(255,214,130,.32);
  border-radius: 12px; padding: 9px 12px 7px;
  animation: riseIn .4s .18s both;
}
.cl-i b { font-size: 12px; color: #FFE9BE; font-variant-numeric: tabular-nums; }
.cl-i i { font-style: normal; font-size: 8px; color: rgba(255,232,196,.6); }
.cl-ok { position: relative; margin-top: 18px; min-width: 150px; }

/* ══════════ 主线剧情 / 守关者登场 ══════════ */
.story-layer {
  position: absolute; inset: 0; z-index: 250; display: none;
  opacity: 0; transition: opacity .26s ease;
}
.story-layer.on { display: block; opacity: 1; }
.sp-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.68) saturate(1.06);
  animation: spZoom 22s ease-out both;
}
@keyframes spZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.sp-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 44% at 50% 10%, rgba(255,214,140,.18), transparent 62%),
    linear-gradient(180deg, rgba(16,9,2,.86) 0%, rgba(16,9,2,.5) 34%, rgba(12,7,2,.72) 68%, rgba(10,6,2,.96) 100%);
}
.sp-veil.boss {
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(255,120,70,.22), transparent 66%),
    linear-gradient(180deg, rgba(24,8,4,.9) 0%, rgba(20,6,2,.55) 40%, rgba(12,4,1,.95) 100%);
}
.sp-head { position: absolute; left: 0; right: 0; top: 12%; text-align: center; z-index: 2; }
.sp-no {
  display: inline-block; font-size: 9.5px; letter-spacing: 5px; color: #FFD98A;
  border: 1px solid rgba(255,205,120,.4); border-radius: 20px; padding: 2px 12px 2px 17px;
}
.sp-title {
  margin-top: 10px; font-family: var(--serif); font-size: 26px; font-weight: 800;
  letter-spacing: 6px; color: #FFF3D6; text-indent: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 0 26px rgba(255,200,120,.28);
}
.sp-sub { margin-top: 5px; font-size: 9.5px; letter-spacing: 3px; color: rgba(255,232,196,.62); text-indent: 3px; }

.sp-lines {
  position: absolute; left: 18px; right: 18px; bottom: 96px; z-index: 2;
  display: flex; flex-direction: column; gap: 8px;
}
.sp-line {
  background: linear-gradient(180deg, rgba(30,18,6,.7), rgba(20,12,4,.82));
  border: 1px solid rgba(255,205,120,.24); border-left: 3px solid rgba(255,205,120,.5);
  border-radius: 11px; padding: 9px 11px; opacity: .55;
  animation: spLineIn .32s var(--spring) both;
}
.sp-line.now { opacity: 1; border-left-color: #FFD98A; box-shadow: 0 0 16px rgba(255,180,80,.18); }
@keyframes spLineIn { from { opacity: 0; transform: translateY(10px); } }
.sp-line b {
  display: block; font-family: var(--serif); font-size: 11px; color: #FFD98A; letter-spacing: 1px;
}
.sp-line span { display: block; font-size: 11.5px; color: #FFF1D8; line-height: 1.65; margin-top: 2px; }

.sp-foot { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; z-index: 2; }
.sp-next, .sp-go {
  font-family: var(--serif); font-size: 13px; letter-spacing: 4px; text-indent: 4px;
  color: #5A2600; background: linear-gradient(180deg,#FFF0B8,#FFCB62 46%,#E8952A);
  border: 2px solid rgba(255,255,255,.8); border-radius: 12px; padding: 9px 30px;
  cursor: pointer; box-shadow: 0 3px 0 #B0641A, 0 8px 20px rgba(255,170,60,.3);
  animation: sv3GoBreath 2.6s ease-in-out infinite;
}
.sp-next:active, .sp-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #B0641A; }

/* 守关者 */
.bs-tag {
  position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 2;
  font-size: 9px; letter-spacing: 5px; color: #FFB48A; text-indent: 5px;
  border: 1px solid rgba(255,140,90,.45); border-radius: 20px; padding: 2px 12px 2px 17px;
  background: rgba(60,16,6,.5);
  animation: pillGlow 2.2s ease-in-out infinite;
}
.bs-name {
  position: absolute; left: 0; right: 0; top: 22%; text-align: center; z-index: 2;
  font-family: var(--serif); font-size: 34px; font-weight: 900; letter-spacing: 8px; text-indent: 8px;
  color: #FFE0C2; text-shadow: 0 3px 0 rgba(90,20,0,.6), 0 0 30px rgba(255,110,60,.5);
  animation: bsNameIn .6s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes bsNameIn { from { opacity: 0; transform: scale(.8); letter-spacing: 20px; } }
.bs-line {
  position: absolute; left: 26px; right: 26px; top: 40%; text-align: center; z-index: 2;
  font-size: 13px; line-height: 1.8; color: #FFEFD8;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
  animation: spLineIn .5s .2s both;
}
.bs-title {
  position: absolute; left: 0; right: 0; top: 52%; text-align: center; z-index: 2;
  font-size: 9.5px; letter-spacing: 3px; color: rgba(255,232,196,.55);
}
.bs-btns {
  position: absolute; left: 0; right: 0; bottom: 60px; z-index: 2;
  display: flex; justify-content: center; gap: 10px;
}
.bs-back, .bs-go {
  font-family: var(--serif); font-size: 12.5px; letter-spacing: 2px;
  border-radius: 11px; padding: 9px 20px; cursor: pointer;
}
.bs-back { color: #FFE9C8; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,205,120,.35); }
.bs-go {
  color: #5A2600; background: linear-gradient(180deg,#FFF0B8,#FFCB62 46%,#E8952A);
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 3px 0 #B0641A;
  animation: sv3GoBreath 2.4s ease-in-out infinite;
}
.bs-back:active, .bs-go:active { transform: translateY(2px); }

/* 关卡地图：章末 BOSS 节点 */
.mn-lv.boss {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 800; color: #B4551C; letter-spacing: .5px;
  background: linear-gradient(180deg,#FFE9B8,#FFD07A);
  border: 1px solid #E8B96B; border-radius: 20px; padding: 1px 7px 1px 5px;
  box-shadow: 0 1px 4px rgba(200,140,50,.3);
}
.mn-lv.boss svg { width: 10px; height: 10px; }
.map-row .mn-lv.boss + .mn-face { box-shadow: 0 0 0 3px rgba(255,196,96,.35), 0 4px 12px rgba(200,140,50,.3); }

/* 剧情回顾列表 */
.slv-row {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  background: #FFFBF2; border: 1.5px solid #F3E4CB; border-radius: 11px;
  padding: 8px 10px; margin-bottom: 6px;
}
.slv-row.lock { opacity: .5; cursor: default; }
.slv-row:active:not(.lock) { transform: scale(.99); }
.slv-no {
  flex: 0 0 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 11px; font-weight: 800; color: #5A2600;
  background: linear-gradient(160deg,#FFE9A8,#E8A93C);
}
.slv-b { flex: 1; min-width: 0; }
.slv-b b { display: block; font-family: var(--serif); font-size: 11.5px; color: #7A4A18; letter-spacing: .5px; }
.slv-b i { display: block; font-style: normal; font-size: 8.5px; color: var(--dim); }
.slv-tag {
  flex: 0 0 auto; font-size: 8px; font-weight: 800; color: #B4551C;
  background: #FFEBCB; border-radius: 20px; padding: 1px 7px;
}
.slv-tag.read { color: #2E8A78; background: #E6F6F0; }
.slv-tag.lock { color: #B0A088; background: #F1E8D8; }

/* 剧情背景再压暗一点，保证文字优先 */
.sp-bg { filter: brightness(.32) saturate(.9) blur(1.5px); }
.sp-veil {
  background:
    radial-gradient(70% 44% at 50% 12%, rgba(255,214,140,.14), transparent 60%),
    linear-gradient(180deg, rgba(12,7,2,.8) 0%, rgba(12,7,2,.62) 40%, rgba(10,6,2,.9) 100%);
}

/* 守关者立绘 */
.bs-art {
  position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%);
  width: 74%; height: 56%; display: flex; align-items: flex-end; justify-content: center;
  z-index: 1; animation: bsArtIn .6s cubic-bezier(.2,1,.3,1) both;
}
.bs-art img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.6)) drop-shadow(0 0 24px rgba(255,120,60,.25));
}
@keyframes bsArtIn { from { opacity: 0; transform: translateX(-50%) translateY(24px) scale(.94); } }
.bs-art-glow {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  width: 260px; height: 260px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,120,60,.22), transparent 68%);
  filter: blur(16px); animation: breathe 4s ease-in-out infinite;
}
.bs-name, .bs-line, .bs-title, .bs-tag, .bs-btns { z-index: 3; }
.bs-line { bottom: 30%; top: auto; }
.bs-title { top: auto; bottom: 22%; }

/* 守关者版式：名字/台词在上，立绘在下，互不遮挡 */
.bs-name { top: 13%; font-size: 30px; }
.bs-line { top: 23%; bottom: auto; left: 30px; right: 30px; font-size: 12px; }
.bs-title { top: 32%; bottom: auto; }
.bs-art { bottom: 96px; height: 46%; width: 66%; }
.bs-art-glow { bottom: 90px; }
.bs-btns { bottom: 44px; }

.bs-tag { top: 7%; }

/* ══════════════════════════════════════════════════════════
   v1.34.0 战斗：图标按钮 + 战报折叠
   ══════════════════════════════════════════════════════════ */

/* ── 战场底部：撤退 / 再战 圆形图标键 ── */
.bt-bottom {
  justify-content: flex-end; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(255,251,242,.72), #FFFBF2 42%);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
}
/* 底部操作：胶囊按钮，图标 + 文字，比原来的悬浮圆球更像 HUD */
.bt-pill {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 15px 8px 12px; border-radius: 999px;
  font-family: var(--serif); font-size: 12.5px; font-weight: 700; letter-spacing: 2px;
  color: #8A5A20; background: linear-gradient(180deg, #FFFDF7, #F7EAD2);
  border: 1.5px solid #EAD6B4;
  box-shadow: 0 2px 0 rgba(200,170,120,.5), 0 6px 14px rgba(160,120,60,.16);
  transition: transform .12s var(--spring), box-shadow .12s;
}
.bt-pill svg { width: 15px; height: 15px; opacity: .9; }
.bt-pill:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.bt-pill.main {
  color: #5A2A08;
  background: linear-gradient(180deg, #FFEFC0 0%, #F6C560 48%, #DF9526 100%);
  border-color: #FFF0C8;
  box-shadow: 0 2.5px 0 #B0641A, 0 8px 18px rgba(220,150,60,.3), inset 0 1px 0 rgba(255,255,255,.8);
}
.bt-pill.main:active { box-shadow: 0 1px 0 #B0641A; }

/* ── 结算：战报折叠条 ── */
.rp-toggle {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: 10px auto 0; padding: 5px 12px 5px 9px; width: fit-content;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #FFE0AE;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,214,150,.3);
  border-radius: 20px; cursor: pointer;
  transition: background .16s, border-color .16s, transform .14s;
}
.rp-toggle svg { width: 12px; height: 12px; color: #FFC46B; }
.rp-toggle:active { transform: scale(.97); }
.rp-toggle.on { background: rgba(255,201,110,.18); border-color: rgba(255,206,120,.6); color: #FFF1D2; }
.rp-cv {
  width: 7px; height: 7px; margin-left: 1px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .22s var(--spring);
}
.rp-toggle.on .rp-cv { transform: rotate(-135deg) translateY(-2px); }

/* ── 结算：战报列表 ── */
.rs-report {
  position: relative; z-index: 3; flex: 0 0 auto;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .3s var(--spring), opacity .22s, margin .3s;
  margin: 0 12px;
}
.bt-result.rep-on .rs-report {
  max-height: 46vh; opacity: 1; margin-bottom: 6px;
  overflow-y: auto;
}
.bt-result.rep-on .rs-top { display: none; }
.bt-result.rep-on .rs-best { display: none !important; }

.rp-head {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 10px 6px;
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(58,32,8,.98), rgba(46,24,5,.94));
  border-bottom: 1px solid rgba(255,214,150,.16);
}
.rp-head b {
  font-family: var(--serif); font-size: 11.5px; font-weight: 800;
  letter-spacing: 2px; color: #FFD98A;
}
.rp-head span { font-size: 8.5px; color: rgba(255,236,200,.55); margin-left: auto; }

.rp-list { display: flex; flex-direction: column; gap: 5px; padding: 7px 8px 8px; }
.rp-none { font-size: 9.5px; color: rgba(255,236,200,.5); text-align: center; padding: 10px 0; }

.rp-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 6px;
  border-radius: 9px; background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,214,150,.12);
  animation: rpIn .32s var(--spring) both;
}
@keyframes rpIn { from { opacity: 0; transform: translateX(-8px); } }
.rp-row.mvp {
  background: linear-gradient(90deg, rgba(255,196,96,.2), rgba(255,255,255,.05));
  border-color: rgba(255,206,120,.42);
}
.rp-row.dead { opacity: .55; }
.rp-av {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.35); background: #2A1A08;
}
.rp-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.rp-row.dead .rp-av img { filter: grayscale(1); }

.rp-b { flex: 1 1 auto; min-width: 0; }
.rp-n {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--serif); font-size: 10.5px; color: #FFEFD4; letter-spacing: .5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rp-n em {
  font-style: normal; font-size: 7px; font-weight: 800; color: #4A2400;
  background: linear-gradient(180deg,#FFE9A8,#E8A93C); border-radius: 4px; padding: 0 3px;
}
.rp-n s {
  font-style: normal; font-size: 7px; color: rgba(255,236,200,.6);
  border: 1px solid rgba(255,236,200,.3); border-radius: 4px; padding: 0 3px;
}
.rp-bar { height: 3.5px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 3px; overflow: hidden; }
.rp-bar s {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, #FFB65C, #E8632A);
  box-shadow: 0 0 6px rgba(255,150,70,.5);
  animation: rpBar .5s var(--soft) both;
}
@keyframes rpBar { from { transform: scaleX(0); transform-origin: left; } }

.rp-nums { flex: 0 0 auto; display: flex; gap: 7px; text-align: right; }
.rp-nums span { display: flex; flex-direction: column; align-items: flex-end; min-width: 30px; }
.rp-nums b {
  font-size: 9.5px; font-weight: 800; color: #FFD98A; font-variant-numeric: tabular-nums; line-height: 1.2;
}
.rp-nums span:nth-child(2) b { color: #F2A98E; }
.rp-nums span:nth-child(3) b { color: #9BE6CC; }
.rp-nums i { font-style: normal; font-size: 7px; color: rgba(255,236,200,.45); }

/* ── 结算：底部图标按钮 ── */
.bt-result-btns { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 12px; }
.rsb {
  position: relative; display: grid; place-items: center; border-radius: 50%;
  cursor: pointer; border: none; padding: 0;
  transition: transform .14s var(--spring), box-shadow .14s;
}
.rsb svg { width: 50%; height: 50%; }
.rsb:active { transform: translateY(3px) scale(.96); }
.rsb.ghost {
  width: 46px; height: 46px; color: #FFE4B8;
  background: rgba(255,246,228,.1); border: 2px solid rgba(255,214,150,.35);
  box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.rsb.main {
  width: 60px; height: 60px; color: #5A2600;
  background: linear-gradient(180deg, #FFF0B8 0%, #FFC862 46%, #E8932A 100%);
  border: 2.5px solid #FFEABB;
  box-shadow: 0 4px 0 rgba(150,90,20,.6), 0 8px 20px rgba(255,170,60,.35), inset 0 1.5px 0 rgba(255,255,255,.8);
  animation: btIcoBreath 2.6s ease-in-out infinite;
}
.rsb-free {
  position: absolute; right: -3px; top: -3px;
  font-style: normal; font-size: 7px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#FF7B5C,#D8442A);
  border: 1.5px solid #FFF3D9; border-radius: 20px; padding: 0 4px;
  box-shadow: 0 1px 4px rgba(180,50,20,.45);
}

/* 结算按钮：横向一排 */
.bt-result-btns { display: flex; flex-direction: row; justify-content: center; width: auto; gap: 16px; margin-top: 12px; }
/* 战报展开时，收起"我方最佳"与立绘已经隐藏，中段紧凑一些 */
.bt-result.rep-on .rs-mid { padding-bottom: 4px; }
.bt-result.rep-on .rp-toggle { margin-top: 7px; }

/* 图标更大更清楚 */
.bt-ico svg { width: 58%; height: 58%; }
.rsb svg { width: 56%; height: 56%; }

/* 战报展开：保留紧凑的胜利标题，不整块抽掉 */
.bt-result.rep-on .rs-top { display: flex; flex: 0 0 96px; align-items: flex-end; padding-bottom: 0; }
.bt-result.rep-on .rs-hero { display: none; }
.bt-result.rep-on .rs-word { font-size: 32px; left: 6%; bottom: 6%; letter-spacing: 2px; }
.bt-result.rep-on .rs-mid { padding-top: 0; }

/* 展开战报时 rs-top 收窄会失去宽度基准，显式撑满，避免"胜/利"竖排 */
.bt-result.rep-on .rs-top { width: 100%; }
.bt-result.rep-on .rs-word { white-space: nowrap; }

/* 展开战报：直接收起立绘区，避免顶部残留一大块空白 */
.bt-result.rep-on .rs-top { display: none; }
.bt-result.rep-on .rs-mid { padding-top: 6px; }
.bt-result.rep-on .rs-report { max-height: 52vh; }

/* 结算中段不该抢剩余高度（.rs-mid 也被别处用作 flex:1，需显式收回） */
.bt-result .rs-mid { flex: 0 0 auto; }

/* 结算中段撑满宽度，避免统计格被挤窄后「最佳输出」折行 */
.bt-result .rs-mid { width: 100%; max-width: 100%; }
.bt-result .rs-stat { flex: 1 1 0; min-width: 0; }
.rs-stat span, .rs-stat b { white-space: nowrap; }
.rs-stats { width: 100%; }

/* 中段撑满后需要重新居中 */
.bt-result .rs-mid { text-align: center; }

/* 底部两键分居左右，战意条上移让位 */
.bt-bottom { justify-content: space-between; }
#battle .ult-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }

.bt-ico.ghost svg { width: 62%; height: 62%; }

/* ══════════════════════════════════════════════════════════
   v1.35.0 关卡页重做：章节目录 + 关卡格 + 详情卡
   ══════════════════════════════════════════════════════════ */
.stage-page { padding: 9px 10px 16px; }

.stage-head { display: flex; align-items: flex-end; gap: 8px; margin: 0 2px 8px; }
.sh-l { flex: 1; min-width: 0; }
.sh-n {
  font-family: var(--serif); font-size: 16px; font-weight: 800; letter-spacing: 2px;
  color: #6B3A12; text-shadow: 0 1px 0 #fff;
}
.sh-s { font-size: 9px; color: var(--dim); letter-spacing: 1px; margin-top: 1px; }
.sh-r {
  flex: 0 0 auto; display: flex; align-items: baseline; gap: 2px;
  background: linear-gradient(180deg,#FFF6E2,#FFEBC4);
  border: 1.5px solid #F2DDB4; border-radius: 20px; padding: 2px 10px;
  box-shadow: 0 2px 0 rgba(200,170,120,.2);
}
.sh-r b { font-family: var(--serif); font-size: 15px; color: #B4551C; font-variant-numeric: tabular-nums; }
.sh-r i { font-style: normal; font-size: 9px; color: #B5844A; }

/* 章节目录 */
.ch-strip {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px;
  scrollbar-width: none;
}
.ch-strip::-webkit-scrollbar { height: 0; }
.ch-chip {
  position: relative; flex: 0 0 auto; min-width: 52px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 4px 8px 5px; border-radius: 11px;
  background: #fff; border: 1.5px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.18);
  transition: transform .14s var(--spring), border-color .16s;
}
.ch-chip:active { transform: scale(.95); }
.ch-chip b { font-family: var(--serif); font-size: 13px; font-weight: 800; color: #B5844A; line-height: 1.1; }
.ch-chip span {
  font-size: 8.5px; color: var(--muted); letter-spacing: .5px;
  white-space: nowrap; max-width: 100%;
}
.ch-chip.on {
  background: linear-gradient(180deg,#FFD98A,#EE9A2E); border-color: #FFE9BE;
  box-shadow: 0 3px 0 #C9701F, 0 5px 12px rgba(232,140,50,.3);
}
.ch-chip.on b, .ch-chip.on span { color: #4A2400; }
.ch-chip.lock { opacity: .42; cursor: default; }
.ch-lk {
  position: absolute; right: 3px; top: 2px; display: grid; place-items: center; color: #A8977C;
}
.ch-lk svg { width: 8px; height: 8px; }

/* 关卡格 */
.stage-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stage-tile {
  position: relative; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 15px 2px 4px; border-radius: 12px;
  background: var(--card); border: 1.5px solid #F0E3CC;
  box-shadow: 0 2px 0 rgba(200,170,120,.18);
  transition: transform .14s var(--spring), border-color .16s, box-shadow .16s;
}
.stage-tile:active { transform: scale(.95); }
.st-no {
  position: absolute; left: 0; right: 0; top: 0; text-align: center;
  font-size: 8px; font-weight: 800; color: #B5844A; letter-spacing: .5px;
  background: rgba(250,238,214,.7); line-height: 13px;
}
.st-face {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 40px;
  border-radius: 10px; overflow: hidden; border: 1.5px solid #EADFCB;
  background: linear-gradient(180deg,#FFF6E2,#FBE7C6);
}
.st-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.st-nm {
  font-size: 8px; color: var(--ink2); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-star { font-size: 6.5px; color: #E8A93C; letter-spacing: -.3px; height: 8px; }

.stage-tile.done { border-color: #BFD8A6; background: #FBFDF7; }
.stage-tile.done .st-no { background: rgba(210,236,190,.8); color: #3F7A46; }
.stage-tile.done .st-face img { filter: saturate(.95); }
.stage-tile.cur {
  border-color: #E8A93C; background: linear-gradient(180deg,#FFF9EC,#FFEECB);
  box-shadow: 0 2px 0 #E0B36B, 0 0 0 2px rgba(255,196,96,.25), 0 4px 12px rgba(232,150,60,.25);
}
.stage-tile.cur .st-no { background: linear-gradient(180deg,#FFD98A,#EE9A2E); color: #4A2400; }
.stage-tile.cur .st-star { color: #C4511C; font-weight: 800; }
.stage-tile.lock { opacity: .58; }
.stage-tile.lock .st-face img { filter: grayscale(1) opacity(.6); }
.stage-tile.boss { border-color: #E8C88A; }
.stage-tile.sel {
  box-shadow: 0 0 0 2.5px #E8722A, 0 4px 12px rgba(232,114,42,.28);
  transform: translateY(-1px);
}
.st-lk, .st-crown {
  position: absolute; right: 1px; bottom: 1px; display: grid; place-items: center;
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: #A8977C;
  box-shadow: 0 1px 3px rgba(120,90,50,.25);
}
.st-lk svg { width: 7px; height: 7px; }
.st-crown { color: #B4551C; background: linear-gradient(180deg,#FFE9B8,#FFD07A); }
.st-crown svg { width: 8px; height: 8px; }

/* 选中关卡详情 */
.stage-card {
  margin-top: 9px; background: var(--card); border: 2px solid #F0E3CC;
  border-radius: 15px; padding: 8px 9px 10px;
  box-shadow: 0 3px 0 rgba(200,170,120,.2), 0 8px 18px rgba(160,120,60,.08);
  animation: riseIn .3s var(--spring) both;
}
.sc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sc-no { font-family: var(--serif); font-size: 14px; font-weight: 800; color: #7A4A18; letter-spacing: 1px; }
.sc-boss {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8.5px; font-weight: 800; color: #fff; letter-spacing: .5px;
  background: linear-gradient(180deg,#FF8A5C,#D8442A); border-radius: 20px; padding: 1px 7px 1px 5px;
}
.sc-boss svg { width: 9px; height: 9px; }
.sc-rec { margin-left: auto; font-size: 9px; color: var(--muted); }
.sc-counter { font-size: 9px; text-align: center; margin-top: 3px; }
.sc-btns { display: flex; gap: 8px; margin-top: 9px; }
.sc-go { flex: 1.6; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.sc-sweep { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.sc-go svg, .sc-sweep svg { width: 13px; height: 13px; }
.stage-card .enemy-row { margin-top: 2px; }
.stage-card.lock .stage-card-inner { opacity: .8; }

/* 锁定关卡：底部提示 */
.stage-tile.lock + .stage-tile.lock .st-nm { color: #B0A088; }

/* 章节条：右侧渐隐提示可滑动 */
.ch-strip {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
  padding-right: 14px;
}
.ch-chip { min-width: 48px; padding: 4px 7px 5px; }
.ch-chip.lock { opacity: .5; }
.ch-lk {
  right: 2px; top: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: #F1E6D2; color: #9C8B70;
}
.ch-lk svg { width: 7px; height: 7px; }

/* 锁定关卡提示 */
.sc-locktip {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 7px; padding: 6px 10px; border-radius: 10px;
  font-size: 9.5px; color: #A0856A;
  background: #FFFBF2; border: 1.5px dashed #EBDCC2;
}
.sc-locktip svg { width: 11px; height: 11px; }
.stage-card.lock .enemy-row { opacity: .72; filter: saturate(.6); }

/* ══════════════════════════════════════════════════════════
   v1.36.0 仙侠底纹：飘带 / 云头 / 纸纹 / 卷轴角
   ══════════════════════════════════════════════════════════ */

/* ── 全局飘带层（压在内容之下） ── */
#ribbons {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  opacity: .9;
}
#ribbons .rb {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(13px); opacity: .55;
  will-change: transform;
}
#ribbons .rb1 {
  width: 170%; height: 90px; left: -35%; top: 8%;
  transform: rotate(-15deg);
  background: linear-gradient(90deg, transparent 4%, rgba(242,160,61,.34) 34%, rgba(245,190,120,.30) 52%, rgba(63,167,150,.22) 74%, transparent 96%);
  animation: rbDrift1 28s ease-in-out infinite alternate;
}
#ribbons .rb2 {
  width: 150%; height: 70px; left: -28%; top: 42%;
  transform: rotate(13deg);
  background: linear-gradient(90deg, transparent 6%, rgba(63,167,150,.26) 32%, rgba(155,126,222,.20) 62%, transparent 94%);
  animation: rbDrift2 34s ease-in-out infinite alternate;
  animation-delay: -8s;
}
#ribbons .rb3 {
  width: 180%; height: 110px; left: -40%; bottom: 6%;
  transform: rotate(-9deg);
  background: linear-gradient(90deg, transparent 8%, rgba(245,139,168,.22) 38%, rgba(242,160,61,.26) 66%, transparent 95%);
  animation: rbDrift3 40s ease-in-out infinite alternate;
  animation-delay: -14s;
}
#ribbons .rb4 {
  width: 120%; height: 46px; left: -10%; top: 66%;
  filter: blur(7px); opacity: .45;
  transform: rotate(-24deg);
  background: linear-gradient(90deg, transparent 10%, rgba(255,236,190,.75) 44%, rgba(255,246,214,.5) 60%, transparent 92%);
  animation: rbDrift2 22s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes rbDrift1 {
  from { transform: rotate(-15deg) translate3d(-14px, 0, 0) scaleY(1); }
  to { transform: rotate(-11deg) translate3d(26px, 16px, 0) scaleY(1.22); }
}
@keyframes rbDrift2 {
  from { transform: rotate(13deg) translate3d(10px, 0, 0) scaleY(1); }
  to { transform: rotate(9deg) translate3d(-24px, -14px, 0) scaleY(1.18); }
}
@keyframes rbDrift3 {
  from { transform: rotate(-9deg) translate3d(-8px, 8px, 0) scaleY(1); }
  to { transform: rotate(-5deg) translate3d(22px, -10px, 0) scaleY(1.15); }
}

/* ── 云头墨晕：四角淡墨，给米白纸底一点山水气 ── */
#ribbons .ink-c {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(24px); opacity: .55;
  background: radial-gradient(circle, rgba(63,167,150,.20), rgba(63,167,150,.06) 55%, transparent 72%);
}
#ribbons .c-tl { width: 320px; height: 220px; left: -120px; top: -60px; }
#ribbons .c-br {
  width: 300px; height: 200px; right: -110px; bottom: 30px;
  background: radial-gradient(circle, rgba(242,160,61,.22), rgba(242,160,61,.06) 55%, transparent 72%);
}

/* ── 纸纹：极淡的斜向纤维 ── */
#phone::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(42deg, rgba(191,165,125,.045) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-48deg, rgba(191,165,125,.035) 0 1px, transparent 1px 9px);
  opacity: .9;
}

/* ── 章节/段落标题：云头 + 竖封 ── */
.sec-title { position: relative; padding-left: 13px; }
.sec-title::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px;
  background: linear-gradient(135deg, #F2B45C, #D9812A);
  border-radius: 2px 6px 2px 6px;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.9), 0 2px 5px rgba(200,140,60,.35);
}

/* ── 画卷角：金线包角 ── */
.ornate { position: relative; }
.ornate::after {
  content: ''; position: absolute; inset: 3px; border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(217,164,65,.55) 0 0) 0 0 / 13px 2px no-repeat,
    linear-gradient(135deg, rgba(217,164,65,.55) 0 0) 0 0 / 2px 13px no-repeat,
    linear-gradient(225deg, rgba(217,164,65,.55) 0 0) 100% 0 / 13px 2px no-repeat,
    linear-gradient(225deg, rgba(217,164,65,.55) 0 0) 100% 0 / 2px 13px no-repeat,
    linear-gradient(45deg, rgba(217,164,65,.55) 0 0) 0 100% / 13px 2px no-repeat,
    linear-gradient(45deg, rgba(217,164,65,.55) 0 0) 0 100% / 2px 13px no-repeat,
    linear-gradient(315deg, rgba(217,164,65,.55) 0 0) 100% 100% / 13px 2px no-repeat,
    linear-gradient(315deg, rgba(217,164,65,.55) 0 0) 100% 100% / 2px 13px no-repeat;
  opacity: .8;
}

/* ══════════════════════════════════════════════════════════
   v1.36.0 点将台：宝鼎祭坛 + 名榜概率 + 将魂长廊
   ══════════════════════════════════════════════════════════ */
.gacha-page { padding-top: 6px; }

/* ── 祭坛 ── */
.altar {
  position: relative; height: 320px; border-radius: 18px; overflow: hidden;
  border: 2.5px solid #fff;
  background: radial-gradient(70% 60% at 50% 38%, #FFF7E4, #F6E5C6 68%, #EFD8B2);
  box-shadow: 0 12px 32px rgba(150,105,45,.24), 0 0 0 1px rgba(217,164,65,.28);
  margin-bottom: 11px;
}
.al-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 44%;
  animation: alBreath 14s ease-in-out infinite;
}
@keyframes alBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.al-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 54% at 50% 40%, transparent 42%, rgba(244,222,183,.34) 76%, rgba(240,214,172,.72) 100%),
    linear-gradient(180deg, rgba(255,248,232,.42), transparent 22%, transparent 68%, rgba(255,248,232,.92));
}

/* 旋转符文环 */
.al-ring {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: 1;
}
.al-ring.r1 {
  width: 232px; height: 232px; border: 2px dashed rgba(217,164,65,.42);
  animation: alSpin 38s linear infinite;
}
.al-ring.r2 {
  width: 288px; height: 288px; border: 1px solid rgba(63,167,150,.26);
  box-shadow: inset 0 0 30px rgba(63,167,150,.10);
  animation: alSpin 62s linear infinite reverse;
}
@keyframes alSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* 飘带（前景） */
.al-silk {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  filter: blur(3px); opacity: .62;
}
.al-silk.s1 {
  width: 150%; height: 22px; left: -28%; top: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,242,206,.95), rgba(255,208,130,.5) 62%, transparent);
  transform: rotate(-16deg);
  animation: silkSway1 9s ease-in-out infinite alternate;
}
.al-silk.s2 {
  width: 140%; height: 16px; left: -22%; top: 62%;
  background: linear-gradient(90deg, transparent, rgba(214,244,232,.85), rgba(120,196,176,.42) 60%, transparent);
  transform: rotate(11deg);
  animation: silkSway2 11s ease-in-out infinite alternate;
}
.al-silk.s3 {
  width: 120%; height: 12px; left: -10%; top: 46%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), transparent);
  transform: rotate(-6deg);
  animation: silkSway1 7s ease-in-out infinite alternate-reverse;
  opacity: .5;
}
@keyframes silkSway1 {
  from { transform: rotate(-16deg) translate3d(-16px, 0, 0) scaleY(.9); }
  to { transform: rotate(-12deg) translate3d(24px, -10px, 0) scaleY(1.3); }
}
@keyframes silkSway2 {
  from { transform: rotate(11deg) translate3d(12px, 4px, 0) scaleY(.9); }
  to { transform: rotate(8deg) translate3d(-20px, -8px, 0) scaleY(1.25); }
}

/* 光尘 */
.al-motes { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.al-motes i {
  position: absolute; left: var(--x); bottom: 16%;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #FFF6D8, rgba(255,206,120,.5) 60%, transparent 72%);
  box-shadow: 0 0 10px rgba(255,214,140,.85);
  animation: moteUp 6.5s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes moteUp {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  18% { opacity: .95; }
  70% { opacity: .6; }
  100% { transform: translateY(-190px) scale(1.15); opacity: 0; }
}

/* 标题 */
.al-title { position: absolute; left: 15px; top: 13px; z-index: 4; }
.al-title b {
  display: block; font-family: var(--serif); font-size: 23px; font-weight: 900;
  letter-spacing: 6px; color: #6B3A12; text-indent: 6px;
  text-shadow: 0 2px 0 rgba(255,255,255,.95), 0 0 20px rgba(255,255,255,.9), 0 3px 10px rgba(160,110,50,.28);
}
.al-title span {
  display: block; margin-top: 2px; font-size: 8.5px; letter-spacing: 2px;
  color: #A6682C; text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.al-tip {
  position: absolute; right: 12px; top: 15px; z-index: 4;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8.5px; font-weight: 700; color: #6B3A12;
  background: rgba(255,250,238,.86); border: 1.5px solid rgba(217,164,65,.55);
  border-radius: 20px; padding: 2px 8px; backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(150,110,60,.18);
}
.al-tip svg { width: 10px; height: 10px; color: #D9A441; }
.al-tip b { color: #C4511C; }
.al-tip em { font-style: normal; color: #7A5FBF; font-weight: 800; }

/* 保底条 */
.al-pity {
  position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 4;
  background: linear-gradient(180deg, rgba(255,252,244,.92), rgba(255,243,220,.92));
  border: 1.5px solid rgba(217,164,65,.5); border-radius: 13px;
  padding: 6px 10px 7px; backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(150,110,60,.2);
}
.ap-top { display: flex; align-items: baseline; gap: 4px; }
.ap-top span { font-size: 8.5px; color: #A6682C; letter-spacing: .5px; }
.ap-top span em { font-style: normal; font-weight: 800; color: #C4511C; }
.ap-top b {
  margin-left: auto; font-family: var(--serif); font-size: 17px; font-weight: 800;
  color: #B4551C; font-variant-numeric: tabular-nums; line-height: 1;
}
.ap-top i { font-style: normal; font-size: 8.5px; color: #A6682C; }
.ap-track {
  height: 6px; border-radius: 3px; margin-top: 4px; overflow: hidden;
  background: rgba(220,198,160,.55);
  box-shadow: inset 0 1px 2px rgba(150,110,60,.2);
}
.ap-track i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #FFD98A, #F2A03D 70%, #E8632A);
  box-shadow: 0 0 8px rgba(242,160,61,.6);
  animation: lvFill .6s cubic-bezier(.2,.9,.3,1) both;
}

/* ── 名榜概率 ── */
.odds {
  position: relative; margin-top: 11px; padding: 10px 10px 11px;
  border-radius: 16px; border: 2px solid #F0E0C6;
  background:
    radial-gradient(100% 70% at 50% 0%, rgba(255,244,220,.9), transparent 60%),
    linear-gradient(180deg, #FFFDF7, #FAEEDA);
  box-shadow: 0 3px 0 rgba(200,170,120,.22), 0 8px 18px rgba(160,120,60,.08);
}
.odds-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.odds-h b { font-family: var(--serif); font-size: 13px; font-weight: 800; letter-spacing: 3px; color: #7A4A18; }
.odds-h span { margin-left: auto; font-size: 8.5px; color: var(--muted); }
.odds-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.od { display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: default; }
.od-dex { cursor: pointer; }
.od-ring {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; line-height: 1;
  background: radial-gradient(circle at 38% 30%, #fff 0%, var(--c1) 52%, var(--c2) 100%);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,.85),
    inset 0 -3px 8px rgba(150,110,60,.16),
    0 4px 12px rgba(150,110,60,.2),
    0 0 0 2px rgba(255,255,255,.9);
}
.od-ring::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px dashed rgba(217,164,65,.4);
  animation: alSpin 34s linear infinite;
}
.od-ring b {
  font-family: var(--serif); font-size: 19px; font-weight: 900; color: #5A3A18;
  font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.od-ring i { font-style: normal; font-size: 8.5px; color: #8A6A45; margin-left: 1px; }
.od > span {
  font-size: 9px; font-weight: 700; color: var(--ink2); letter-spacing: .5px; margin-top: 4px;
  white-space: nowrap;
}
.od > em { font-style: normal; font-size: 7.5px; color: var(--dim); }
.od-sp { --c1: #FFE3B0; --c2: #F0A63C; }
.od-di { --c1: #EFE3FF; --c2: #B08FE0; }
.od-ren { --c1: #DFF3ED; --c2: #79C6B4; }
.od-dex { --c1: #FFF0D6; --c2: #E3BE86; }

/* ── 将魂长廊 ── */
.soul-head { display: flex; align-items: baseline; gap: 8px; margin: 13px 2px 7px; }
.soul-head b { font-family: var(--serif); font-size: 13px; font-weight: 800; letter-spacing: 3px; color: #7A4A18; }
.soul-head span { margin-left: auto; font-size: 8.5px; color: var(--dim); }
.soul-rail {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 7px;
  scrollbar-width: none;
}
.soul-rail::-webkit-scrollbar { height: 0; }
.soul-rail .soul-card {
  flex: 0 0 31%; border-radius: 13px;
  background: linear-gradient(180deg, #FFFDF8, #F6E9D2);
  border: 2px solid #EFDFC4;
  box-shadow: 0 3px 8px rgba(170,130,70,.16);
}
.soul-rail .soul-card .sc-art { aspect-ratio: 1 / 1; }
.soul-rail .soul-card .sc-q {
  position: absolute; left: 3px; top: 3px; z-index: 2;
  font-size: 7.5px; font-weight: 800; color: #fff;
  border-radius: 5px; padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.soul-none {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 9.5px; color: var(--muted); padding: 18px 0;
  background: #FFFBF2; border: 1.5px dashed #EBDCC2; border-radius: 12px;
}
.soul-none svg { width: 16px; height: 16px; color: #C9A87A; }
.soul-tip {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 8.5px; color: var(--dim); margin-top: 3px;
}
.soul-tip svg { width: 10px; height: 10px; color: #C9A87A; }

/* 概率章：数字与 % 同行 */
.od-ring { display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.od-ring b { font-size: 20px; }
.od-ring i { font-size: 9px; }
.od-dex .od-ring b { font-size: 18px; }

/* 概率章文字居中（flex baseline 会顶到上沿） */
.od-ring { align-items: center; }
.od-ring i { position: relative; top: 3px; font-size: 8.5px; }
.od-dex .od-ring i { top: 2px; }

/* 保底条：右端 S 目标刻度 */
.ap-track { position: relative; }
.ap-track::after {
  content: ''; position: absolute; right: -1px; top: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(180deg,#FFD98A,#E28A2A);
  box-shadow: 0 0 0 1.5px #FFF8E8, 0 0 6px rgba(242,160,61,.7);
}

/* 飘带加强：米白底上要看得见丝缕 */
#ribbons { opacity: 1; }
#ribbons .rb { filter: blur(9px); opacity: .8; }
#ribbons .rb1 {
  height: 104px;
  background: linear-gradient(90deg, transparent 4%, rgba(242,160,61,.5) 34%, rgba(255,203,128,.46) 52%, rgba(63,167,150,.34) 74%, transparent 96%);
}
#ribbons .rb2 {
  background: linear-gradient(90deg, transparent 6%, rgba(63,167,150,.4) 32%, rgba(155,126,222,.28) 62%, transparent 94%);
}
#ribbons .rb3 {
  background: linear-gradient(90deg, transparent 8%, rgba(245,139,168,.34) 38%, rgba(242,160,61,.38) 66%, transparent 95%);
}

/* ── 飘带改 SVG：丝缕状，比模糊色块更像"衣带当风" ── */
#ribbons {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .85;
  filter: blur(.7px);
}
#ribbons .rbg { transform-origin: 50% 40%; will-change: transform; }
#ribbons .g1 { animation: rbA 19s ease-in-out infinite alternate; opacity: .62; }
#ribbons .g2 { animation: rbB 24s ease-in-out infinite alternate; opacity: .5; animation-delay: -6s; }
#ribbons .g3 { animation: rbA 27s ease-in-out infinite alternate-reverse; opacity: .5; animation-delay: -11s; }
#ribbons .g4 { animation: rbC 15s ease-in-out infinite alternate; opacity: .55; }
@keyframes rbA {
  from { transform: translate3d(-10px, 0, 0) rotate(-.6deg) scale(1); }
  to { transform: translate3d(16px, 14px, 0) rotate(.9deg) scale(1.04); }
}
@keyframes rbB {
  from { transform: translate3d(12px, -6px, 0) rotate(.8deg); }
  to { transform: translate3d(-16px, 12px, 0) rotate(-.7deg) scale(1.05); }
}
@keyframes rbC {
  from { transform: translate3d(-6px, 8px, 0); opacity: .35; }
  to { transform: translate3d(14px, -10px, 0); opacity: .7; }
}

/* ── 每页场景垫图：极淡，只做"纸背后有山水"的层次 ── */
#pagebg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .45s ease;
  background-size: cover; background-position: 50% 34%; background-repeat: no-repeat;
  filter: saturate(.95) blur(1.5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 52%, rgba(0,0,0,.25) 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.75) 52%, rgba(0,0,0,.25) 88%, transparent 100%);
}

/* 垫图用正片叠底，浅色插画也能透出层次 */
#pagebg { mix-blend-mode: multiply; }

/* ── 卡片通用"绢本"质感：内金线 + 顶部高光 + 柔和落影 ── */
.card, .stage-card, .odds, .gw-sum, .lb-card, .st-card, .mn-idle, .mn-pre, .tvd-card,
.map-card, .ar-hero, .cv-c, .stage-tile, .soul-rail .soul-card {
  outline: 1px solid rgba(217,164,65,.20);
  outline-offset: -4px;
  box-shadow:
    0 2px 0 rgba(200,170,120,.22),
    0 10px 22px rgba(160,120,60,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.card {
  background-image: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,251,242,0));
}
.stage-tile, .soul-rail .soul-card { outline-offset: -3px; }
.stage-tile.sel { outline-color: rgba(232,114,42,.55); }

/* ══════════════════════════════════════════════════════════
   v1.37.0 编队：山水布阵台
   ══════════════════════════════════════════════════════════ */
.array-stage {
  position: relative; height: 348px; border-radius: 18px; overflow: hidden;
  border: 2.5px solid #fff;
  background: radial-gradient(70% 60% at 50% 46%, #FFF7E6, #F3E0BE 72%, #EBD3AE);
  box-shadow: 0 10px 26px rgba(150,105,45,.22), 0 0 0 1px rgba(217,164,65,.28);
  margin-bottom: 2px;
}
.as-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  opacity: .6; filter: saturate(.92);
}
.as-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(66% 48% at 50% 40%, rgba(255,250,238,.28) 0%, rgba(255,248,232,.72) 58%, rgba(250,238,214,.95) 100%),
    linear-gradient(180deg, rgba(255,250,238,.55), transparent 34%, rgba(255,250,238,.82) 100%);
}
.as-ring {
  position: absolute; left: 50%; border-radius: 50%;
  transform: translateX(-50%); pointer-events: none;
}
.as-ring.r1 {
  width: 300px; height: 96px; bottom: 34px;
  border: 2px dashed rgba(217,164,65,.42);
  box-shadow: inset 0 0 22px rgba(242,160,61,.10);
  animation: asSpinB 40s linear infinite;
}
.as-ring.r2 {
  width: 232px; height: 72px; bottom: 46px;
  border: 1px solid rgba(63,167,150,.3);
  animation: asSpinB 28s linear infinite reverse;
}
@keyframes asSpinB { to { transform: translateX(-50%) rotate(360deg); } }
.as-silk {
  position: absolute; height: 34px; border-radius: 50%;
  filter: blur(6px); pointer-events: none;
}
.as-silk.k1 {
  width: 130%; left: -15%; top: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,232,180,.7), rgba(190,232,220,.5), transparent);
  transform: rotate(-12deg);
  animation: silkSway1 10s ease-in-out infinite alternate;
}
.as-silk.k2 {
  width: 120%; left: -10%; bottom: 22%;
  background: linear-gradient(90deg, transparent, rgba(255,205,215,.55), rgba(255,226,170,.6), transparent);
  transform: rotate(9deg);
  animation: silkSway2 13s ease-in-out infinite alternate;
}
.as-seal {
  position: absolute; left: 12px; top: 11px; z-index: 3;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 800; color: #FFE8B4;
  background: linear-gradient(160deg, rgba(190,58,38,.94), rgba(120,24,14,.96));
  border: 2px solid rgba(255,214,140,.7);
  box-shadow: 0 4px 12px rgba(120,40,10,.35), inset 0 1px 0 rgba(255,220,160,.5);
  animation: sealBreath 3.6s ease-in-out infinite;
}

.as-row { position: absolute; left: 0; right: 0; display: flex; justify-content: space-around; align-items: flex-end; z-index: 2; }
.as-row.back { top: 24px; padding: 0 14px; }
.as-row.front { bottom: 42px; padding: 0 8px; z-index: 3; }

.as-unit {
  position: relative; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform .16s var(--spring);
}
.as-unit:active { transform: translateY(2px) scale(.98); }
.as-unit.sel .au-art { filter: drop-shadow(0 0 10px rgba(232,114,42,.75)); }
.as-unit.sel .au-plate { border-color: #E8722A; box-shadow: 0 0 0 2px rgba(232,114,42,.3); }

.au-art {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 6px 10px rgba(140,95,45,.3));
  animation: bobY 5.2s ease-in-out infinite;
}
.as-row.front .au-art { height: 128px; width: 104px; }
.as-row.back .au-art { height: 104px; width: 88px; animation-duration: 6.4s; }
.as-row.back .au-unit { opacity: .94; }
.au-art img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--fc, #3FA796) 30%, transparent));
}
.au-q {
  position: absolute; right: 0; top: 4px;
  font-size: 8px; font-weight: 800; color: #fff;
  border-radius: 5px; padding: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.au-lead {
  position: absolute; left: 50%; top: -2px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 7.5px; font-weight: 800; color: #5A2600; white-space: nowrap;
  background: linear-gradient(180deg,#FFE9A8,#E8A93C);
  border: 1.5px solid rgba(255,255,255,.85); border-radius: 20px; padding: 0 5px;
  box-shadow: 0 2px 5px rgba(160,100,30,.3);
}
.au-lead svg { width: 8px; height: 8px; }

.au-plate {
  margin-top: -4px; padding: 1px 8px 2px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,253,246,.96), rgba(250,238,214,.96));
  border: 1.5px solid #EBD9BC;
  box-shadow: 0 2px 6px rgba(150,105,45,.2);
  text-align: center; min-width: 56px;
  backdrop-filter: blur(2px);
}
.au-plate b { display: block; font-family: var(--serif); font-size: 10px; color: #6B3A12; letter-spacing: .5px; line-height: 1.2; }
.au-plate i { display: block; font-style: normal; font-size: 7.5px; color: #A6682C; }

.as-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 92px; height: 118px; cursor: pointer;
  border: 2px dashed rgba(200,170,120,.7); border-radius: 16px;
  background: rgba(255,252,244,.6);
  transition: all .16s;
}
.as-slot.on { border-color: #E8722A; background: rgba(255,240,220,.8); }
.as-slot:active { transform: scale(.97); }
.as-plus { display: grid; place-items: center; color: #C4AA84; font-size: 22px; line-height: 1; }
.as-plus svg { width: 18px; height: 18px; }
.as-slot i { font-style: normal; font-size: 8.5px; color: #B09A78; letter-spacing: 1px; }

.as-legend {
  position: absolute; left: 0; right: 0; bottom: 9px; z-index: 3;
  display: flex; justify-content: center; gap: 8px;
}
.as-legend span {
  display: inline-flex; align-items: baseline; gap: 4px;
  font-size: 8.5px; color: #8A5320; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,250,238,.9); border: 1px solid rgba(217,164,65,.4);
  border-radius: 20px; padding: 1px 9px;
}
.as-legend i { font-style: normal; font-size: 8px; color: #A0856A; font-weight: 400; letter-spacing: 0; }

/* 阵眼标记改到名牌左上，避免压住立绘 */
.au-lead {
  position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 7px; font-weight: 800; color: #fff; white-space: nowrap; letter-spacing: .5px;
  background: linear-gradient(180deg,#FF8A5C,#D8442A);
  border: 1.5px solid rgba(255,255,255,.9); border-radius: 20px; padding: 0 5px;
  box-shadow: 0 2px 5px rgba(160,60,20,.35);
  z-index: 2;
}
.au-lead svg { width: 7px; height: 7px; }
.au-plate { position: relative; }
.au-plate.lead { border-color: #E8722A; }
.as-bg { opacity: .74; }
.as-veil {
  background:
    radial-gradient(66% 48% at 50% 40%, rgba(255,250,238,.16) 0%, rgba(255,248,232,.58) 58%, rgba(250,238,214,.9) 100%),
    linear-gradient(180deg, rgba(255,250,238,.42), transparent 34%, rgba(255,250,238,.72) 100%);
}

/* 布阵台：立绘再放大一档，阵盘更有气势 */
.array-stage { height: 362px; }
.as-row.front .au-art { height: 142px; width: 112px; }
.as-row.back .au-art { height: 114px; width: 94px; }
.as-row.back { top: 20px; }
.as-row.front { bottom: 40px; }
.as-slot { width: 100px; height: 132px; }

/* ══════════════════════════════════════════════════════════
   v1.37.0 卷轴分栏 / 金线画框 / 战斗转场
   ══════════════════════════════════════════════════════════ */

/* ── 洞府：卷轴式分栏头 ── */
.cave-sec {
  position: relative; display: flex; align-items: baseline; gap: 8px;
  margin: 16px 0 9px; padding: 6px 16px 6px 18px;
  background:
    linear-gradient(180deg, rgba(255,252,244,.96), rgba(250,238,216,.96));
  border-top: 1.5px solid rgba(217,164,65,.45);
  border-bottom: 1.5px solid rgba(217,164,65,.45);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(160,120,60,.10), inset 0 1px 0 rgba(255,255,255,.9);
}
.cave-sec::before, .cave-sec::after {
  content: ''; position: absolute; top: -4px; bottom: -4px; width: 9px; border-radius: 5px;
  background: linear-gradient(90deg, #E8C88A, #C98F3E 58%, #A9711F);
  box-shadow: 0 1px 3px rgba(120,80,30,.35), inset 0 1px 0 rgba(255,240,200,.7);
}
.cave-sec::before { left: 0; }
.cave-sec::after { right: 0; }
.cave-sec b {
  position: static; padding-left: 0;
  font-family: var(--serif); font-size: 12.5px; font-weight: 800;
  color: #7A4A18; letter-spacing: 3px;
}
.cave-sec b::before { display: none; }
.cave-sec i { margin-left: auto; font-size: 8.5px; color: #A0856A; }
.cave-page .cave-sec:first-child { margin-top: 4px; }

/* ── 武将详情：立绘横幅加金线包角 ── */
.hero2::after {
  content: ''; position: absolute; inset: 4px; border-radius: 13px;
  pointer-events: none; z-index: 3;
  border: 1px solid rgba(217,164,65,.35);
  background:
    radial-gradient(circle at 0 0, rgba(255,240,200,.9) 0 3px, transparent 3px),
    radial-gradient(circle at 100% 0, rgba(255,240,200,.9) 0 3px, transparent 3px),
    radial-gradient(circle at 0 100%, rgba(255,240,200,.9) 0 3px, transparent 3px),
    radial-gradient(circle at 100% 100%, rgba(255,240,200,.9) 0 3px, transparent 3px);
  background-repeat: no-repeat;
}

/* ── 战斗结算：双线金框 ── */
.bt-result::before {
  content: ''; position: absolute; inset: 7px; z-index: 5; pointer-events: none;
  border: 1.5px solid rgba(217,164,65,.42);
  border-radius: 16px;
  box-shadow: inset 0 0 0 3px rgba(255,246,225,.08), inset 0 0 26px rgba(255,190,90,.08);
}
.bt-result::after {
  content: ''; position: absolute; inset: 11px; z-index: 5; pointer-events: none;
  border: 1px solid rgba(255,214,150,.16);
  border-radius: 12px;
}

/* ── 战斗开场：飘带横扫 ── */
.bt-intro .bi-silk {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 2;
  filter: blur(5px); opacity: 0;
}
.bt-intro.on .bi-silk.s1 {
  width: 160%; height: 44px; left: -30%; top: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,214,140,.85), rgba(255,246,214,.5), transparent);
  transform: rotate(-14deg);
  animation: biSilk1 1.5s ease-out both;
}
.bt-intro.on .bi-silk.s2 {
  width: 150%; height: 30px; left: -25%; top: 58%;
  background: linear-gradient(90deg, transparent, rgba(120,210,190,.6), rgba(255,226,170,.45), transparent);
  transform: rotate(11deg);
  animation: biSilk2 1.7s .12s ease-out both;
}
@keyframes biSilk1 {
  0% { opacity: 0; transform: rotate(-14deg) translate3d(-40%,0,0) scaleY(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-9deg) translate3d(40%,0,0) scaleY(1.2); }
}
@keyframes biSilk2 {
  0% { opacity: 0; transform: rotate(11deg) translate3d(40%,0,0) scaleY(.6); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: rotate(7deg) translate3d(-40%,0,0) scaleY(1.2); }
}

/* ── 修行总览：圆环加大加厚，弧线更清楚 ── */
.gs-ring {
  width: 82px; height: 82px;
  box-shadow: 0 3px 10px rgba(180,130,70,.18), 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px rgba(217,164,65,.22);
}
.gs-ring::before { inset: 6px; box-shadow: inset 0 1px 4px rgba(200,170,120,.16); }
.gs-in b { font-size: 15px; }
.gs-in i { font-size: 7.5px; letter-spacing: .3px; }
.gs-ring.a { --rc: linear-gradient(180deg,#FFB055,#E8722A); }
.gs-ring.a { background: conic-gradient(from -90deg, #F2913A calc(var(--p) * 1%), #F3E7D2 0); }
.gs-ring.b { background: conic-gradient(from -90deg, #E8A93C calc(var(--p) * 1%), #F3E7D2 0); }

/* ══════════════════════════════════════════════════════════
   v1.37.1 顶栏 / 底栏：卷轴质感
   ══════════════════════════════════════════════════════════ */
#topbar {
  background:
    linear-gradient(180deg, rgba(255,252,244,.96), rgba(252,242,224,.92));
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(217,164,65,.35), 0 3px 10px rgba(160,120,60,.10);
}
#topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background:
    linear-gradient(90deg, transparent, rgba(217,164,65,.55) 18%, rgba(255,238,200,.9) 50%, rgba(217,164,65,.55) 82%, transparent);
  animation: tbSheen 6s ease-in-out infinite;
  background-size: 40% 100%; background-repeat: no-repeat;
}
@keyframes tbSheen {
  0%, 100% { background-position: -40% 0; opacity: .45; }
  50% { background-position: 120% 0; opacity: .9; }
}
.avatar {
  box-shadow: 0 0 0 2px rgba(217,164,65,.45), 0 3px 8px rgba(160,110,50,.25);
}

#nav {
  background: linear-gradient(180deg, rgba(255,251,241,.96), rgba(252,240,220,.98));
  border-top: none;
  box-shadow: 0 -1px 0 rgba(217,164,65,.35), 0 -6px 16px rgba(160,120,60,.08);
}
.nav-item.on {
  background: linear-gradient(180deg, rgba(255,238,200,.9), rgba(255,220,150,.55));
  box-shadow: inset 0 0 0 1.5px rgba(217,164,65,.45), 0 2px 8px rgba(200,140,50,.18);
}
.nav-item.on::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 12px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #E8722A, transparent);
}

/* 设置页：台词试听 */
.set-test {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; margin-top: 8px; padding: 8px 0; cursor: pointer;
  font-size: 10.5px; font-weight: 700; letter-spacing: 2px; color: #7A4A18;
  background: linear-gradient(180deg,#FFF8E4,#FBEBC4);
  border: 1.5px solid #EFCF92; border-radius: 10px;
  box-shadow: 0 2px 0 rgba(200,160,90,.3);
}
.set-test:active { transform: translateY(1px); box-shadow: none; }
.set-test svg { width: 12px; height: 12px; color: #C08A3A; }

/* ══════════ 弹层：吸顶标题 + 常驻关闭 ══════════ */
.sheet { padding: 0 14px calc(20px + env(safe-area-inset-bottom)); }
.sheet-h {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  margin: -14px -14px 0; padding: 14px 14px 8px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, #FFFAF0 0%, #FFFAF0 74%, rgba(255,250,240,0) 100%);
}
.sheet-h h3 { flex: 1; min-width: 0; margin-bottom: 0; }
.sheet-x {
  flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; color: #A6682C;
  background: linear-gradient(180deg,#FFFFFF,#F6E8CE);
  border: 1.5px solid #EFCF92;
  box-shadow: 0 2px 0 rgba(200,160,90,.3);
}
.sheet-x:active { transform: translateY(1px); box-shadow: none; }
.sheet-x svg { width: 13px; height: 13px; }
.sheet-b { padding-top: 2px; }

/* ══════════════════════════════════════════════════════════
   v1.38.0 结算页重排：居中画卡
   ══════════════════════════════════════════════════════════ */
.bt-result {
  display: none; position: absolute; inset: 0; z-index: 45;
  align-items: center; justify-content: center; padding: 16px;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(90,48,14,.55), transparent 70%),
    linear-gradient(180deg, rgba(30,15,4,.92), rgba(16,8,2,.96));
}
.bt-result.show { display: flex; animation: rsIn .3s ease-out; }
.bt-result::before, .bt-result::after { display: none; }

.rs-card {
  position: relative; width: 100%; max-width: 352px; max-height: 100%;
  display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(120,70,22,.55), transparent 62%),
    linear-gradient(180deg, #4A2A0C 0%, #3A1F07 46%, #261303 100%);
  border: 2px solid rgba(255,214,140,.55);
  box-shadow:
    0 0 0 1px rgba(255,240,200,.2) inset,
    0 18px 44px rgba(0,0,0,.55),
    0 0 30px rgba(255,170,60,.16);
  animation: rsCardIn .42s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes rsCardIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.rs-top { position: relative; flex: 0 0 196px; overflow: hidden; }
.rs-word {
  position: absolute; left: 14px; bottom: 16px; z-index: 3;
  font-family: var(--serif); font-size: 46px; font-weight: 900; letter-spacing: 3px; line-height: 1;
  background: linear-gradient(178deg, #FFF7D6 8%, #FFE9A8 24%, #F5C257 52%, #C98A20 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(58,24,0,.6)) drop-shadow(0 0 18px rgba(255,190,90,.6));
  animation: rsWordIn .5s cubic-bezier(.2,1.4,.4,1) both;
}
.rs-hero {
  position: absolute; right: -6px; bottom: 0; width: 62%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.rs-art { height: 100%; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rs-art img, .rs-art svg {
  height: 100%; width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.5));
  animation: rsArtIn .5s cubic-bezier(.16,1,.3,1) both;
}
.rs-best {
  position: absolute; left: 14px; bottom: 64px; z-index: 3; text-align: left;
  animation: rsTxtIn .45s .16s both;
}
.rs-best em {
  display: inline-block; font-style: normal; font-family: var(--serif);
  font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #4A2400;
  padding: 1px 7px; border-radius: 4px;
  background: linear-gradient(90deg, #FFDE9A, #E8A63C);
}
.rs-best b { display: inline-block; font-family: var(--serif); font-size: 13px; color: #FFE9BE; margin-left: 4px; }

.rs-mid { position: relative; z-index: 2; padding: 8px 14px 10px; text-align: center; }
.rs-stars { display: flex; justify-content: center; gap: 7px; margin: 0 0 6px; }
.rstar { font-size: 21px; }
.rs-stage { font-family: var(--serif); font-size: 11.5px; letter-spacing: 1px; color: #FFD98A; }
.bt-result .sub { font-size: 9.5px; color: rgba(255,236,200,.66); margin-top: 2px; }

.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 9px; }
.rs-stat {
  padding: 6px 4px 5px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,214,150,.22);
}
.rs-stat b { display: block; font-family: var(--serif); font-size: 14px; font-weight: 800; color: #FFD98A; line-height: 1.15; }
.rs-stat span { font-size: 8px; color: rgba(255,240,214,.58); letter-spacing: .5px; }

.rp-toggle { margin: 9px auto 0; }
.rs-report { margin: 0 12px; }
.bt-result.rep-on .rs-report { max-height: 38vh; margin-bottom: 6px; }

.rs-bottom {
  flex: 0 0 auto; padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.26); border-top: 1px solid rgba(255,214,130,.18);
}
.rs-title {
  text-align: center; font-family: var(--serif); font-size: 11px; letter-spacing: 4px;
  color: #FFD98A; margin-bottom: 7px;
}
.rs-title::before, .rs-title::after { content: '—'; margin: 0 7px; color: rgba(255,214,130,.4); }
.bt-result .rw { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.bt-result .rw-item {
  flex: 1 1 0; min-width: 0; padding: 7px 4px 6px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,214,150,.2);
}

/* 结算按钮：图标 + 短标签的药丸 */
.bt-result-btns { display: flex; gap: 9px; margin-top: 11px; }
.rsb {
  position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 0; border-radius: 12px; cursor: pointer; border: 1.5px solid rgba(255,214,150,.42);
  background: rgba(255,246,228,.1); color: #FFE9BE;
  font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 1px;
  transition: transform .14s var(--spring), box-shadow .14s;
}
.rsb svg { width: 15px; height: 15px; }
.rsb:active { transform: translateY(2px); }
.rsb.main {
  border: 2px solid #FFEABB; color: #4A2400;
  background: linear-gradient(180deg, #FFF0B8 0%, #FFC862 46%, #E8932A 100%);
  box-shadow: 0 3px 0 rgba(150,90,20,.6), 0 6px 16px rgba(255,170,60,.32), inset 0 1px 0 rgba(255,255,255,.8);
  animation: btIcoBreath 2.8s ease-in-out infinite;
}
.rsb-free {
  position: absolute; right: -4px; top: -6px;
  font-style: normal; font-size: 7px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#FF7B5C,#D8442A);
  border: 1.5px solid #FFF3D9; border-radius: 20px; padding: 0 4px;
  box-shadow: 0 1px 4px rgba(180,50,20,.45);
}

/* 胜利字样：清掉旧的旋转动画，避免斜着溢出被裁 */
.bt-result .rs-word {
  transform: none; left: 14px; bottom: 18px;
  animation: rsWordIn2 .52s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes rsWordIn2 {
  0% { opacity: 0; transform: translateY(10px) scale(.8); }
  62% { opacity: 1; transform: translateY(0) scale(1.08); }
  100% { opacity: 1; transform: none; }
}
/* 立绘往右靠一点，给大字让位 */
.rs-hero { right: -14px; width: 60%; }
.rs-best { bottom: 70px; }

/* 立绘不顶到卡片上沿 */
.rs-art img, .rs-art svg { max-height: 96%; }
.rs-hero { top: 4px; }

/* ══════════ 万仙阵：守阵者登场 ══════════ */
.ti-tag {
  position: absolute; left: 50%; top: 11%; transform: translateX(-50%); z-index: 3;
  font-size: 9px; letter-spacing: 5px; color: #FFB48A; text-indent: 5px;
  border: 1px solid rgba(255,140,90,.45); border-radius: 20px; padding: 2px 12px 2px 17px;
  background: rgba(60,16,6,.5);
}
.ti-floor {
  position: absolute; left: 50%; top: 16%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: baseline; gap: 3px;
}
.ti-floor b {
  font-family: var(--serif); font-size: 42px; font-weight: 900; color: #FFE0C2;
  text-shadow: 0 3px 0 rgba(90,20,0,.55), 0 0 26px rgba(255,110,60,.5);
  animation: bsNameIn .5s cubic-bezier(.2,1.4,.4,1) both;
}
.ti-floor span { font-size: 12px; color: rgba(255,232,196,.75); letter-spacing: 2px; }
.ti-cast {
  position: absolute; left: 0; right: 0; bottom: 168px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
}
.ti-unit {
  position: relative; width: 33%; height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  animation: tiIn .5s var(--spring) both; animation-delay: var(--d, 0s);
}
@keyframes tiIn { from { opacity: 0; transform: translateY(26px) scale(.94); } }
.ti-unit.mid { height: 240px; }
.ti-unit img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(255,120,60,.22));
  animation: bobY 5s ease-in-out infinite;
}
.ti-nm {
  margin-top: 2px; font-size: 9.5px; color: #FFEFD8; letter-spacing: 1px;
  background: rgba(28,14,4,.7); border: 1.5px solid rgba(255,214,150,.4);
  border-radius: 20px; padding: 1px 9px;
}
.ti-affix {
  position: absolute; left: 24px; right: 24px; bottom: 128px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(50,20,60,.55); border: 1px solid rgba(190,150,240,.4);
  border-radius: 10px; padding: 6px 10px; color: #E8D8FF;
}
.ti-affix svg { width: 12px; height: 12px; }
.ti-affix b { font-size: 10px; letter-spacing: 1px; }
.ti-affix span { font-size: 8.5px; color: rgba(232,216,255,.72); }
.ti-btns { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.ti-silk { position: absolute; height: 30px; border-radius: 50%; filter: blur(6px); pointer-events: none; }
.ti-silk.s1 {
  width: 150%; left: -25%; top: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,190,120,.5), rgba(255,150,90,.3), transparent);
  transform: rotate(-13deg); animation: silkSway1 9s ease-in-out infinite alternate;
}
.ti-silk.s2 {
  width: 140%; left: -20%; bottom: 26%;
  background: linear-gradient(90deg, transparent, rgba(190,150,240,.35), rgba(255,200,150,.35), transparent);
  transform: rotate(9deg); animation: silkSway2 12s ease-in-out infinite alternate;
}

/* ══════════ 图鉴：按品质分厅 ══════════ */
.codex-body { display: flex; flex-direction: column; gap: 4px; }
.cx-hall {
  display: flex; align-items: baseline; gap: 8px;
  margin: 10px 0 6px; padding: 4px 10px;
  border-left: 3px solid var(--tc, #E8A93C);
  background: linear-gradient(90deg, rgba(255,248,232,.98), rgba(255,248,232,.2));
  border-radius: 0 8px 8px 0;
}
.cx-hall b {
  font-family: var(--serif); font-size: 11.5px; font-weight: 800; letter-spacing: 2px;
  color: var(--tc, #B4551C);
}
.cx-hall span { margin-left: auto; font-size: 9px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.codex-cell .pv { height: 78px; }
.codex-cell.have { box-shadow: 0 2px 0 rgba(200,170,120,.2), 0 4px 10px rgba(160,120,60,.10); }

/* 吸顶标题：底部不留透明，避免下层内容透出来 */
.sheet-h {
  background: linear-gradient(180deg, #FFFAF0 0%, #FFFAF0 86%, rgba(255,250,240,.92) 96%, rgba(255,250,240,0) 100%);
  backdrop-filter: blur(6px);
  padding-bottom: 10px;
}

/* ══════════════════════════════════════════════════════════
   v1.39.0 顶栏单行化 / 底部导航换底
   ══════════════════════════════════════════════════════════ */

/* 顶栏：头像 + 名字 + 资源，一行放下 */
#topbar { padding: 7px 10px 6px; padding-top: calc(7px + env(safe-area-inset-top)); }
.tb-row { gap: 7px; align-items: center; }
.avatar { width: 34px; height: 34px; }
.who { flex: 0 1 auto; min-width: 58px; max-width: 108px; }
.who .nm { font-size: 12.5px; letter-spacing: .5px; }
.who .lv { font-size: 8.5px; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .expbar { height: 3.5px; margin-top: 2px; }
.coins {
  flex: 1 1 auto; margin-top: 0; gap: 4px; margin-left: auto;
  justify-content: flex-end; min-width: 0;
}
.coin {
  flex: 0 1 auto; padding: 2px 6px 2px 4px; gap: 3px; border-width: 1.5px;
  border-radius: 9px; font-size: 10px; box-shadow: 0 1.5px 0 rgba(200,170,120,.22);
}
.coin .it { width: 14px; height: 14px; }
.coin .it svg { width: 9px; height: 9px; }
.coin .v { font-size: 10px; }
.coin.stam { flex: 0 0 auto; }

/* 去掉底部条后：场景铺满可用高度 */
.scene-wrap { flex: 1 1 auto; min-height: 0; }
.scene { height: 100%; }

/* ── 底部导航：卷轴 + 云纹 + 金线 ── */
#nav {
  position: relative;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(242,160,61,.18), transparent 62%),
    linear-gradient(180deg, #FFF7E7 0%, #FBEBCF 58%, #F6E2C0 100%);
  border-top: none;
  box-shadow: 0 -1px 0 rgba(217,164,65,.5), 0 -8px 20px rgba(160,120,60,.10);
}
#nav::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background-image: radial-gradient(circle at 50% 0, rgba(217,164,65,.5) 0 1px, transparent 1.5px);
  background-size: 12px 10px; opacity: .5; pointer-events: none;
}
.nav-item {
  border-radius: 14px; padding: 3px 0 2px; min-height: 50px; gap: 0;
  transition: background .2s, transform .16s;
}
.nav-item .gl {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  transition: all .2s var(--spring);
}
.nav-item .gl svg { width: 19px; height: 19px; }
.nav-item .tl { font-size: 9px; letter-spacing: 1.5px; color: #A0856A; margin-top: 1px; }
.nav-item.on {
  background: none;
}
.nav-item.on .gl {
  color: #fff;
  background: linear-gradient(180deg, #FFD98A 0%, #F2A03D 58%, #E0722A 100%);
  box-shadow:
    0 3px 0 rgba(180,100,30,.55),
    0 6px 14px rgba(232,140,50,.4),
    inset 0 1.5px 0 rgba(255,255,255,.85);
  transform: translateY(-4px) scale(1.06);
}
.nav-item.on .gl svg { filter: drop-shadow(0 1px 1px rgba(120,50,0,.4)); }
.nav-item.on .tl { color: #B4551C; font-weight: 800; }
.nav-item.on::after {
  content: ''; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 14px; height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #E8722A, transparent);
}
.nav-item:active .gl { transform: scale(.92); }
.nav-item .nav-dot { right: 3px; top: 2px; }

/* 主城：左上的章节进度签（替代被去掉的挑战条信息） */
.scene-ch {
  position: absolute; left: 12px; top: 10px; z-index: 6;
  min-width: 118px; padding: 5px 10px 6px;
  background: linear-gradient(180deg, rgba(255,251,242,.92), rgba(252,240,220,.9));
  border: 1.5px solid rgba(217,164,65,.5); border-radius: 12px;
  box-shadow: 0 3px 10px rgba(150,105,45,.2);
  backdrop-filter: blur(4px);
}
.scene-ch b {
  display: block; font-family: var(--serif); font-size: 11.5px; font-weight: 800;
  color: #7A4A18; letter-spacing: 1px;
}
.scene-ch i { display: block; font-style: normal; font-size: 8px; color: #A0856A; margin-top: 1px; }
.scb { height: 3.5px; border-radius: 2px; background: rgba(220,198,160,.6); margin-top: 4px; overflow: hidden; }
.scb s { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg,#FFD98A,#E8722A); }

/* 主城浮动入口：统一成玉/金两色，贴合仙侠配色 */
.he-btn {
  width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(160deg, #FFF0C2, #F2A63C 58%, #CF7414);
  border: 2.5px solid rgba(255,255,255,.92);
  box-shadow: 0 4px 12px rgba(200,130,40,.36), inset 0 1.5px 0 rgba(255,255,255,.75);
}
.he-btn.ev {
  background: linear-gradient(160deg, #D8F0E8, #57B79E 56%, #2E7F6B);
  box-shadow: 0 4px 12px rgba(40,140,115,.34), inset 0 1.5px 0 rgba(255,255,255,.7);
}
.he-btn.ev svg { color: #F2FFF9; }
.he-btn span { letter-spacing: .5px; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.he-btn.ev span { color: #F4FFFB; text-shadow: 0 1px 2px rgba(10,60,50,.35); }

/* ══════════════════════════════════════════════════════════
   v1.42.0 抽卡：金光四起 + 金色收下按钮
   ══════════════════════════════════════════════════════════ */

/* 全屏金光闪 */
.gc-gold {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background:
    radial-gradient(circle at 50% 46%, #FFFFFF 0%, var(--c, #FFD98A) 18%, rgba(255,190,90,.28) 42%, transparent 66%);
  mix-blend-mode: screen;
}
.gc-gold.on { animation: gcGoldFlash .78s ease-out forwards; }
@keyframes gcGoldFlash {
  0% { opacity: 0; transform: scale(.4); }
  12% { opacity: 1; }
  46% { opacity: .55; }
  100% { opacity: 0; transform: scale(1.18); }
}

/* 金屑飞散 */
.gc-flakes { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.gc-flakes i {
  position: absolute; top: -6%; display: block;
  width: var(--s, 7px); height: var(--s, 7px);
  background: linear-gradient(160deg, #FFF6D2, #FFC85C 55%, #D98A22);
  box-shadow: 0 0 8px rgba(255,196,96,.85);
  border-radius: 2px;
  transform: rotate(0deg);
  animation: gcFlakeFall var(--t, 1.4s) var(--d, 0s) cubic-bezier(.3,.6,.4,1) forwards;
  opacity: 0;
}
@keyframes gcFlakeFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(.6); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(104vh) rotate(var(--r, 360deg)) scale(1); }
}

/* 稀有卡：放大 + 光晕描边 */
.gc-card.big { z-index: 8; }
.gc-card.big .gc-inner {
  transform: rotateY(180deg) scale(1.62);
  transition: transform .5s cubic-bezier(.2,1.45,.45,1);
  box-shadow: 0 0 0 2px rgba(255,236,180,.9), 0 0 34px rgba(255,196,96,.85), 0 18px 40px rgba(120,60,10,.45);
}
#gacha.rare::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(255,214,130,.22), transparent 62%);
  animation: rarePulse 1.6s ease-in-out infinite;
}
@keyframes rarePulse { 50% { opacity: .45; } }

/* 天品幕：加一层金色绽放 + 角标 + 序号 */
.gc-tian .t-bloom {
  position: absolute; left: 50%; top: 42%; width: 92vmin; height: 92vmin;
  margin: -46vmin 0 0 -46vmin; border-radius: 50%;
  background: radial-gradient(circle, var(--c, #FFD98A) 0%, rgba(255,190,90,.28) 38%, transparent 68%);
  filter: blur(2px);
  animation: tBloom .9s cubic-bezier(.15,.8,.3,1) both;
}
@keyframes tBloom {
  0% { opacity: 0; transform: scale(.2); }
  40% { opacity: .95; }
  100% { opacity: .55; transform: scale(1.15); }
}
.gc-tian .t-rank {
  position: absolute; left: 50%; top: 9%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 15px; font-weight: 900; letter-spacing: 2px;
  color: #4A2400; text-indent: 2px;
  padding: 3px 14px; border-radius: 20px;
  background: linear-gradient(180deg,#FFF3C4,#F5C257 60%,#D98A22);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 16px rgba(255,170,60,.6);
  animation: tRankIn .6s .1s cubic-bezier(.2,1.5,.4,1) both;
}
@keyframes tRankIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.7); } }
.gc-tian .t-idx {
  position: absolute; right: 16px; top: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #FFE9BE;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,214,150,.45);
  border-radius: 20px; padding: 2px 9px;
}

/* 多 S：欧气爆棚横幅 */
#gacha .gc-ouqi, .gc-ouqi {
  position: absolute; left: 50%; top: 15%; transform: translate(-50%, -12px) scale(.9);
  z-index: 10; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .26s, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.gc-ouqi.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gc-ouqi b {
  display: block; font-family: var(--serif); font-size: 22px; font-weight: 900; letter-spacing: 6px;
  color: #FFF6D8; text-indent: 6px;
  text-shadow: 0 3px 0 rgba(120,50,0,.65), 0 0 26px rgba(255,190,90,.9);
}
.gc-ouqi span {
  display: inline-block; margin-top: 4px; font-size: 9.5px; letter-spacing: 2px; color: #FFE9BE;
  background: rgba(60,26,4,.55); border: 1px solid rgba(255,214,150,.45);
  border-radius: 20px; padding: 2px 10px;
}

/* ══════════════════════════════════════════════════════════
   v1.43.0 招募演出重制：暗场星图 · 名榜法阵 · 逐人名帖
   —— 无「收下」按钮，点画面任意处即收起
   ══════════════════════════════════════════════════════════ */

#gacha.gacha-layer {
  position: absolute; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; overflow: hidden;
  background: #04080A;
  --gold: #E8B44C;
  --gold-hi: #FFE7B0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#gacha.gacha-layer.show { display: flex; animation: gc43Open .42s ease-out; }
@keyframes gc43Open { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ── 舞台：深空 + 星屑 + 法阵 ── */
#gacha .gcs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#gacha .gcs-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(72% 48% at 50% 34%, rgba(54,96,94,.55) 0%, rgba(15,30,32,.92) 46%, rgba(4,8,9,1) 80%),
    linear-gradient(180deg, #081113 0%, #050A0B 62%, #020404 100%);
}
#gacha .gcs-sky::before {
  content: ''; position: absolute; inset: -16%;
  background:
    radial-gradient(closest-side at 24% 20%, rgba(88,152,140,.18), transparent 70%),
    radial-gradient(closest-side at 80% 70%, rgba(118,84,150,.13), transparent 70%);
  animation: gcsDrift 30s ease-in-out infinite alternate;
}
@keyframes gcsDrift { from { transform: translate(-2%, 1%) scale(1); } to { transform: translate(3%, -2%) scale(1.08); } }

#gacha .gcs-stars {
  position: absolute; inset: 0; opacity: .8;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 1.2px, transparent 2px),
    radial-gradient(circle, rgba(178,226,214,.75) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,214,130,.8) .9px, transparent 1.6px);
  background-size: 117px 117px, 173px 173px, 229px 229px;
  background-position: 12px 24px, 64px 92px, 128px 44px;
  animation: gcsTwinkle 6s ease-in-out infinite;
}
@keyframes gcsTwinkle { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

#gacha .gcs-sigil {
  position: absolute; left: 50%; top: 44%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
#gacha .gcs-sigil.s1 {
  width: 132vw; height: 132vw; max-width: 640px; max-height: 640px;
  background: repeating-conic-gradient(from 0deg, rgba(232,180,76,.22) 0deg 1.1deg, transparent 1.1deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 61.5%, #000 62.5%, #000 67%, transparent 68%);
          mask: radial-gradient(circle, transparent 61.5%, #000 62.5%, #000 67%, transparent 68%);
  animation: gcsSpin 52s linear infinite;
}
#gacha .gcs-sigil.s2 {
  width: 84vw; height: 84vw; max-width: 400px; max-height: 400px;
  border: 1px solid rgba(232,180,76,.20);
  box-shadow: inset 0 0 70px rgba(232,180,76,.08);
  animation: gcsSpin 36s linear infinite reverse;
}
#gacha .gcs-sigil.s2::after {
  content: ''; position: absolute; inset: 16px; border-radius: 50%;
  border: 1px dashed rgba(232,180,76,.16);
}
@keyframes gcsSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

#gacha .gcs-halo {
  position: absolute; left: 50%; top: 46%; width: 118vw; height: 118vw; max-width: 540px; max-height: 540px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,130,.20) 0%, rgba(255,190,90,.07) 42%, transparent 68%);
  filter: blur(3px);
  animation: gcsHalo 7s ease-in-out infinite;
}
@keyframes gcsHalo { 0%,100% { opacity: .55; transform: translate(-50%,-50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04); } }

#gacha .gcs-beam { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; z-index: 2; }
#gacha .gcs-beam i {
  position: absolute; left: 50%; top: -12%; width: 0; height: 124%;
  transform: translateX(-50%); opacity: 0;
  background: linear-gradient(180deg, transparent 0%, var(--c, #F0BE5A) 28%, #FFFDF4 50%, var(--c, #F0BE5A) 72%, transparent 100%);
  filter: blur(15px);
}
#gacha.charging .gcs-beam i { animation: gcsBeam .95s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes gcsBeam {
  0% { opacity: 0; width: 0; }
  26% { opacity: .5; width: 10px; }
  62% { opacity: .85; width: 64px; }
  100% { opacity: 0; width: 190px; }
}
#gacha .gcs-beam b {
  position: absolute; left: 50%; top: 44%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fff; opacity: 0;
}
#gacha.charging .gcs-beam b { animation: gcsCore .95s ease-out forwards; }
@keyframes gcsCore {
  0% { opacity: 0; transform: scale(.2); box-shadow: 0 0 0 0 rgba(255,214,130,.9); }
  34% { opacity: 1; transform: scale(1); box-shadow: 0 0 26px 8px rgba(255,214,130,.85); }
  72% { opacity: 1; transform: scale(1.6); box-shadow: 0 0 42px 16px rgba(255,214,130,.6); }
  100% { opacity: 0; transform: scale(4.2); box-shadow: 0 0 60px 24px rgba(255,214,130,0); }
}
#gacha .gcs-vig {
  position: absolute; inset: 0;
  background:
    radial-gradient(82% 62% at 50% 40%, transparent 38%, rgba(0,0,0,.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, transparent 16%, transparent 72%, rgba(0,0,0,.9) 100%);
}

/* ── 匾额 ── */
#gacha .gc-brand {
  position: absolute; left: 0; right: 0; top: calc(20px + env(safe-area-inset-top));
  z-index: 6; text-align: center; transition: opacity .35s;
  animation: gcsFade .9s ease-out backwards;
}
@keyframes gcsFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
#gacha .gc-brand .gb-seal {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px;
  font-family: var(--serif); font-size: 13px; font-weight: 700; text-decoration: none;
  color: #1B0F02; background: linear-gradient(160deg, #FFE7B0, #D9A02C);
  box-shadow: 0 0 14px rgba(232,180,76,.5); margin-bottom: 8px;
}
#gacha .gc-brand b {
  display: block; font-family: var(--serif); font-size: 22px; font-weight: 700;
  letter-spacing: 10px; text-indent: 10px; color: #F2DCA8;
  text-shadow: 0 0 22px rgba(232,180,76,.45), 0 2px 10px rgba(0,0,0,.8);
}
#gacha .gc-brand i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 4px; color: rgba(232,180,76,.5); margin-top: 7px; }

/* ── 卡阵 ── */
#gacha .gc-cards {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 0; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none;
  transition: opacity .2s, transform .2s;
}
#gacha .gc-row { display: flex; gap: 9px; justify-content: center; }
#gacha .gc-cards.ten .gc-card { width: 84px; }
#gacha .gc-cards.one .gc-card { width: 182px; }
#gacha .gc-cards.one .gc-row { gap: 0; }

#gacha .gc-card {
  perspective: 800px; opacity: 0;
  animation: gc43CardIn .5s cubic-bezier(.2,1.2,.4,1) forwards;
  animation-delay: calc(.66s + var(--dl, 0s));
}
@keyframes gc43CardIn {
  from { opacity: 0; transform: translateY(24px) scale(.9); }
  to { opacity: 1; transform: none; }
}
#gacha .gc-inner {
  position: relative; width: 100%; padding-top: 142%;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2,.9,.3,1.1);
}
#gacha .gc-card.on .gc-inner { transform: rotateY(180deg); }
#gacha .gc-face {
  position: absolute; inset: 0; border-radius: 9px; overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: 1px solid rgba(232,180,76,.34);
  box-shadow: 0 8px 20px rgba(0,0,0,.6);
}
#gacha .gc-back {
  display: grid; place-items: center;
  background: linear-gradient(165deg, #1C2C2D 0%, #0C1415 58%, #16211F 100%);
}
#gacha .gc-back::before {
  content: ''; position: absolute; inset: 5px; border-radius: 5px;
  border: 1px solid rgba(232,180,76,.24);
  background: radial-gradient(circle at 50% 42%, rgba(232,180,76,.14), transparent 62%);
}
#gacha .gc-back::after { content: none; }
#gacha .gc-back s {
  position: relative; font-family: var(--serif); font-size: 26px; text-decoration: none;
  color: #D9B36A; opacity: .82; text-shadow: 0 0 18px rgba(232,180,76,.55);
}
#gacha .gc-front {
  transform: rotateY(180deg);
  background: linear-gradient(180deg, #17262A 0%, #0A1314 100%);
}
#gacha .gc-front img.cut {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover !important; object-position: 50% 6% !important;
}
#gacha .gc-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  font-family: var(--serif); font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
  color: #F4E3BE; text-align: center; padding: 14px 2px 4px;
  background: linear-gradient(180deg, transparent, rgba(3,8,9,.9));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#gacha .gc-q {
  position: absolute; left: 3px; top: 3px; z-index: 3;
  min-width: 17px; height: 17px; padding: 0 3px; border-radius: 4px;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #2B1B02;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
#gacha .gc-fac {
  position: absolute; right: 3px; top: 3px; z-index: 3;
  width: 15px; height: 15px; border-radius: 3px;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
#gacha .gc-new {
  position: absolute; right: 3px; top: auto; bottom: 22px; z-index: 3;
  font-size: 8px; font-weight: 800; letter-spacing: .5px; color: #2A1206;
  padding: 1px 4px; border-radius: 2px;
  background: linear-gradient(160deg, #FFE7B0, #E8A93C);
  box-shadow: 0 1px 5px rgba(232,180,76,.6);
}
#gacha .gc-glint {
  position: absolute; top: -40%; left: -70%; width: 45%; height: 180%; z-index: 4;
  transform: rotate(16deg); opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
}
#gacha .gc-card.on .gc-glint { animation: gc43Glint .62s ease-out forwards; }
@keyframes gc43Glint { 0% { left: -70%; opacity: 0; } 20% { opacity: 1; } 100% { left: 132%; opacity: 0; } }

#gacha .gc-card.q-tian .gc-face { border-color: rgba(240,196,96,.9); }
#gacha .gc-card.q-tian .gc-front {
  box-shadow: 0 0 0 1px rgba(255,226,160,.5), 0 0 26px rgba(232,180,76,.5), 0 8px 20px rgba(0,0,0,.55);
}
#gacha .gc-card.q-di .gc-front { box-shadow: 0 0 18px rgba(169,143,214,.32), 0 8px 20px rgba(0,0,0,.55); }

#gacha .gc-cards.ten .gc-card.q-ren .gc-name,
#gacha .gc-cards.ten .gc-card.q-di .gc-name { font-size: 10px; }

/* ── 天品单人戏 ── */
#gacha.reveal-on .gc-cards,
#gacha.reveal-on .gc-brand { opacity: 0; pointer-events: none; }
#gacha.reveal-on .gc-cards { transform: translateY(-50%) scale(.97); }

#gacha .gc-reveal { position: absolute; inset: 0; z-index: 8; display: none; }
#gacha .gc-reveal.on { display: block; }
#gacha .rv { position: absolute; inset: 0; overflow: hidden; }
#gacha .rv.out { animation: rv43Out .4s ease-out forwards; pointer-events: none; }
@keyframes rv43Out { to { opacity: 0; transform: scale(1.03); } }

#gacha .rv-bloom {
  position: absolute; left: 50%; top: 32%; width: 122vmin; height: 122vmin;
  margin: -61vmin 0 0 -61vmin; border-radius: 50%;
  background: radial-gradient(circle, var(--c, #F5C257) 0%, rgba(255,190,90,.16) 32%, transparent 64%);
  opacity: .45; animation: rv43Bloom .9s ease-out both;
}
@keyframes rv43Bloom { 0% { opacity: 0; transform: scale(.35); } 45% { opacity: .6; } 100% { opacity: .4; transform: scale(1.05); } }
#gacha .rv-pillar {
  position: absolute; left: 50%; top: -6%; width: 66vw; height: 74%;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,214,130,.14) 22%, rgba(255,236,190,.22) 56%, transparent 88%);
  filter: blur(9px);
  animation: rv43Pillar 1.1s ease-out both;
}
@keyframes rv43Pillar {
  from { opacity: 0; transform: translateX(-50%) scaleY(.35); }
  to { opacity: 1; transform: translateX(-50%) scaleY(1); }
}
#gacha .rv-rays {
  position: absolute; left: 50%; top: 14%; width: 210vmax; height: 210vmax;
  margin: -105vmax 0 0 -105vmax; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,130,.14) 0deg 2.4deg, transparent 2.4deg 12deg);
  animation: gcsSpin 26s linear infinite;
}
#gacha .rv-art {
  position: absolute; left: 50%; top: 3%; width: min(98vw, 440px); height: 57.5%;
  transform: translateX(-50%);
}
#gacha .rv-art img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,.8)) drop-shadow(0 0 22px rgba(255,196,96,.45));
  animation: rv43Art .5s cubic-bezier(.2,1.14,.35,1) both;
}
@keyframes rv43Art {
  from { opacity: .35; transform: translateY(26px) scale(.94); }
  to { opacity: 1; transform: none; }
}
#gacha .rv-loot {
  position: absolute; left: 50%; top: 39.5%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 7px 22px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(10,16,16,0), rgba(12,20,20,.94) 14%, rgba(12,20,20,.94) 86%, rgba(10,16,16,0));
  border-top: 1px solid rgba(232,180,76,.34);
  border-bottom: 1px solid rgba(232,180,76,.34);
  animation: rv43Txt .42s .3s both;
}
#gacha .rv-loot b { font-size: 11px; font-weight: 500; letter-spacing: 1px; color: rgba(240,228,205,.72); }
#gacha .rv-loot span { font-size: 13px; font-weight: 700; color: #FFE0A0; letter-spacing: 1px; }

#gacha .rv-ribbon {
  position: absolute; left: 0; right: 0; top: 54.5%; height: 96px;
  background: linear-gradient(180deg, transparent 42%, rgba(255,214,130,.055) 52%, transparent 64%);
  animation: rv43Line .7s .06s both;
}
#gacha .rv-ribbon svg { width: 100%; height: 100%; overflow: visible; }
#gacha .rv-ribbon path {
  fill: none; stroke: rgba(255,219,150,.9); stroke-width: 1.2;
  filter: drop-shadow(0 0 7px rgba(255,200,100,.95));
}
@keyframes rv43Line { from { opacity: 0; transform: scaleX(.2); } to { opacity: 1; transform: none; } }

#gacha .rv-info {
  position: absolute; left: 26px; right: 26px; top: 59.5%;
  display: flex; align-items: center; gap: 13px;
}
#gacha .rv-rank {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 36% 28%, #FFE2A0, #C08A24 58%, #7A4E0C 100%);
  border: 1.5px solid rgba(255,232,180,.7);
  box-shadow: 0 0 20px rgba(232,180,76,.5), inset 0 0 14px rgba(60,30,0,.45);
  animation: rv43Rank .56s .14s cubic-bezier(.2,1.5,.4,1) both;
}
#gacha .rv-rank.sp {
  background: radial-gradient(circle at 36% 28%, #FFA374, #C0392B 58%, #781B13 100%);
  box-shadow: 0 0 22px rgba(255,104,60,.55), inset 0 0 14px rgba(60,0,0,.5);
}
#gacha .rv-rank b {
  font-family: var(--serif); font-size: 23px; font-weight: 900; letter-spacing: .5px;
  color: #FFF7E6; text-shadow: 0 2px 4px rgba(60,20,0,.6);
}
@keyframes rv43Rank {
  from { opacity: 0; transform: scale(.3) rotate(-30deg); }
  to { opacity: 1; transform: none; }
}
#gacha .rv-main { min-width: 0; flex: 1 1 auto; }
#gacha .rv-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 29px; font-weight: 800; letter-spacing: 3px;
  color: #FFF9EC; text-shadow: 0 0 22px rgba(255,214,130,.4), 0 3px 10px rgba(0,0,0,.85);
  animation: rv43Txt .44s .1s both;
}
#gacha .rv-new {
  font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0;
  color: #3A1204; padding: 1px 5px; border-radius: 2px;
  background: linear-gradient(160deg, #FFD59A, #D8503A);
  box-shadow: 0 0 12px rgba(216,80,58,.6);
  transform: rotate(-6deg);
}
#gacha .rv-stars { display: flex; align-items: center; gap: 3px; margin-top: 6px; animation: rv43Txt .44s .17s both; }
#gacha .rv-stars i { font-style: normal; font-size: 13px; line-height: 1; color: rgba(255,255,255,.15); }
#gacha .rv-stars i.on { color: #FFC85C; text-shadow: 0 0 10px rgba(255,200,92,.9); }
#gacha .rv-stars em { font-style: normal; font-size: 10px; color: #E8C078; margin-left: 5px; letter-spacing: 1px; }
#gacha .rv-tags { display: flex; align-items: center; gap: 7px; margin-top: 8px; animation: rv43Txt .44s .24s both; }
#gacha .rv-fac {
  width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #10100A;
  background: var(--fc, #C8A055);
  box-shadow: 0 0 10px rgba(0,0,0,.5);
}
#gacha .rv-job { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: #EBD3A0; }
#gacha .rv-tags i { font-style: normal; font-size: 11px; letter-spacing: 1px; color: rgba(240,228,205,.55); }
#gacha .rv-line {
  margin-top: 11px; font-size: 11.5px; letter-spacing: .5px; line-height: 1.65;
  color: rgba(255,231,176,.72); text-shadow: 0 2px 8px rgba(0,0,0,.9);
  animation: rv43Txt .44s .36s both;
}
#gacha .rv-idx {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 18px;
  font-size: 11px; letter-spacing: 2px; color: rgba(255,231,176,.72);
  border: 1px solid rgba(232,180,76,.34); border-radius: 20px; padding: 2px 10px;
  background: rgba(6,12,12,.6);
}
@keyframes rv43Txt { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── 结果态：底部提示 / 再招 / 英魂条 ── */
#gacha .gc-loot { position: absolute; left: 0; right: 0; bottom: calc(112px + env(safe-area-inset-bottom)); z-index: 8; display: flex; justify-content: center; }
#gacha .gcl {
  display: flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px;
  background: rgba(8,16,16,.72); border: 1px solid rgba(232,180,76,.22);
  font-size: 11px; color: rgba(240,228,205,.66);
  animation: rv43Txt .4s both;
}
#gacha .gcl b { font-weight: 500; letter-spacing: 1px; }
#gacha .gcl i { font-style: normal; font-weight: 700; color: #EBD3A0; letter-spacing: 1px; }
#gacha .gcl.new b { color: #FFE0A0; letter-spacing: 3px; }

#gacha .gc-foot {
  position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 11px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
#gacha .gc-foot.on { opacity: 1; }
#gacha .gc-again {
  display: block; padding: 9px 28px; border-radius: 999px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 4px; text-indent: 4px;
  color: #F3DCA8; border: 1px solid rgba(232,180,76,.5);
  background: linear-gradient(180deg, rgba(48,42,26,.92), rgba(20,24,22,.92));
  box-shadow: 0 0 20px rgba(232,180,76,.16), inset 0 1px 0 rgba(255,235,190,.18);
  pointer-events: auto;
  animation: rv43Txt .4s .1s both;
}
#gacha .gc-again:active { transform: translateY(1px); background: linear-gradient(180deg, rgba(64,54,32,.95), rgba(26,30,26,.95)); }
#gacha .gc-hint {
  display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; letter-spacing: 2px; color: rgba(240,228,205,.42);
  animation: gc43Hint 2.8s ease-in-out infinite;
}
#gacha .gc-hint i { display: block; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232,180,76,.55)); }
@keyframes gc43Hint { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* 光效层级压到卡阵之上 */
#gacha .gc-gold { z-index: 7; }
#gacha .gc-flakes { z-index: 7; }

/* 阶印按品质分色 */
#gacha .rv-rank.a {
  background: radial-gradient(circle at 36% 28%, #D8C4F6, #7A5FBF 58%, #43306B 100%);
  box-shadow: 0 0 20px rgba(150,120,220,.5), inset 0 0 14px rgba(30,10,60,.5);
}
#gacha .rv-rank.b {
  background: radial-gradient(circle at 36% 28%, #C8EDE0, #3E8E7A 58%, #1E5145 100%);
  box-shadow: 0 0 18px rgba(90,190,165,.4), inset 0 0 14px rgba(0,40,30,.5);
}
#gacha .rv-rank.a b, #gacha .rv-rank.b b { font-size: 21px; }

/* 技能 / 天赋小牌 */
#gacha .rv-chips { display: flex; gap: 7px; margin-top: 8px; animation: rv43Txt .44s .3s both; }
#gacha .rv-chips span {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px;
  border-radius: 3px; font-size: 10.5px; letter-spacing: .5px; color: rgba(240,228,205,.74);
  background: rgba(10,18,18,.66); border: 1px solid rgba(232,180,76,.22);
  max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#gacha .rv-chips i {
  flex: 0 0 auto; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 2px;
  font-style: normal; font-size: 9px; font-weight: 700; color: #2A1A02;
  background: linear-gradient(160deg, #FFE7B0, #D9A02C);
}

/* 竖屏小机（≤700px 高）收紧 */
@media (max-height: 700px) {
  #gacha .gc-cards.ten .gc-card { width: 74px; }
  #gacha .gc-cards { gap: 8px; }
  #gacha .rv-art { height: 50%; top: 3%; }
  #gacha .rv-info { top: 55%; }
  #gacha .rv-ribbon { top: 50%; }
  #gacha .rv-name { font-size: 25px; }
  #gacha .rv-rank { width: 48px; height: 48px; }
  #gacha .rv-rank b { font-size: 20px; }
  #gacha .rv-line { font-size: 10.5px; margin-top: 7px; }
}

/* ══════════════════════════════════════════════════════════
   v1.45.0 克制环顺时针箭头 + 招募「直接出结果」模式
   ══════════════════════════════════════════════════════════ */

/* 四个顺时针箭头：指向的阵营克前一个 */
.ct-flow {
  position: absolute; left: 50%; top: 50%; font-style: normal;
  font-size: 12px; line-height: 1; color: #D9A441; opacity: .72;
  text-shadow: 0 1px 2px rgba(255,255,255,.8);
}
.ct-flow.f1 { margin: -52px 0 0 33px; transform: rotate(45deg); }
.ct-flow.f2 { margin: 40px 0 0 33px; transform: rotate(135deg); }
.ct-flow.f3 { margin: 40px 0 0 -44px; transform: rotate(225deg); }
.ct-flow.f4 { margin: -52px 0 0 -44px; transform: rotate(315deg); }
.ct-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 8.5px; letter-spacing: 1px; color: #C6A87C; white-space: nowrap;
}
.ct-key { text-align: center; font-size: 9px; color: #A98A63; margin: -2px 0 8px; }

/* 招募：关闭演出时，卡阵不做入场动画，直接摊牌 */
#gacha.fast .gc-card { animation: none; opacity: 1; }
#gacha.fast .gc-cards { transition: none; }
#gacha.fast .gc-gold, #gacha.fast .gc-flakes { display: none; }

/* ══════════════════════════════════════════════════════════
   v1.46.0 招募演出：暖色回归（金环宣纸底，去掉暗场）
   ══════════════════════════════════════════════════════════ */

#gacha.gacha-layer { background: #FBF1DC; }

/* 底：原来的八卦金环图，压一层暖白纱让字站得住 */
#gacha .gcs-sky {
  background: url('art/gacha-bg.jpg') center 46% / cover no-repeat, #FBF1DC;
}
#gacha .gcs-sky::before {
  content: ''; position: absolute; inset: 0; animation: none;
  background:
    radial-gradient(56% 36% at 50% 40%, rgba(255,252,240,.62) 0%, rgba(255,249,235,.18) 56%, transparent 74%),
    linear-gradient(180deg, rgba(255,250,238,.94) 0%, rgba(255,248,232,.42) 16%, transparent 32%,
      transparent 58%, rgba(252,242,222,.82) 84%, rgba(251,238,214,1) 100%);
}
#gacha .gcs-stars, #gacha .gcs-sigil { display: none; }
#gacha .gcs-halo {
  background: radial-gradient(circle, rgba(255,226,160,.62) 0%, rgba(255,232,180,.24) 40%, transparent 68%);
  filter: blur(2px);
}
#gacha .gcs-vig {
  background:
    radial-gradient(84% 62% at 50% 42%, transparent 48%, rgba(206,166,110,.26) 100%),
    linear-gradient(180deg, rgba(255,249,236,.5) 0%, transparent 14%, transparent 70%, rgba(250,236,210,.9) 100%);
}

/* 匾额 */
#gacha .gc-brand b {
  color: #8A4A18;
  text-shadow: 0 3px 0 rgba(255,255,255,.95), 0 0 26px rgba(255,236,190,.95), 0 6px 14px rgba(160,110,50,.18);
}
#gacha .gc-brand i { color: #B5844A; }
#gacha .gc-brand .gb-seal {
  background: linear-gradient(160deg, #F7D08A, #C9761B); color: #FFF6E0;
  box-shadow: 0 3px 10px rgba(180,110,40,.35);
}

/* 名帖 */
#gacha .gc-face {
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 6px 16px rgba(150,110,60,.26);
}
#gacha .gc-back {
  background: linear-gradient(165deg, #F7C46B 0%, #E9743A 62%, #D8502A 100%);
}
#gacha .gc-back::before {
  border-color: rgba(255,242,210,.6);
  background: radial-gradient(circle at 50% 40%, rgba(255,248,225,.45), transparent 64%);
}
#gacha .gc-back s { color: #FFF6DE; text-shadow: 0 2px 0 rgba(150,60,20,.38); }
#gacha .gc-front { background: linear-gradient(180deg, #FFF8E8 0%, #EFDDBB 100%); }
#gacha .gc-card.q-tian .gc-face { border-color: #FFF; }
#gacha .gc-card.q-tian .gc-front {
  box-shadow: 0 0 0 2.5px rgba(232,180,76,.85), 0 0 22px rgba(232,180,76,.5), 0 6px 16px rgba(150,110,60,.3);
}
#gacha .gc-card.q-di .gc-front {
  box-shadow: 0 0 0 2px rgba(169,143,214,.55), 0 6px 16px rgba(150,110,60,.24);
}
#gacha .gc-name { color: #FFF8E6; background: linear-gradient(180deg, transparent, rgba(92,52,16,.82)); }
#gacha .gc-q { color: #FFFBF0; text-shadow: 0 1px 2px rgba(90,50,10,.55); }
#gacha .gc-fac { color: #fff; text-shadow: 0 1px 2px rgba(60,30,10,.4); }
#gacha .gc-new {
  background: linear-gradient(160deg, #C4511C, #9C3A10); color: #FFF3D8;
  box-shadow: 0 2px 6px rgba(140,50,10,.35);
}
#gacha .gc-card.on .gc-front::after, #gacha .gc-glint { mix-blend-mode: screen; }

/* 特写：暖色，底部压一层纸色，字压在上面 */
#gacha .rv-pillar { display: none; }
#gacha .rv-bloom {
  background: radial-gradient(circle, rgba(255,240,200,.95) 0%, rgba(255,214,130,.42) 32%, transparent 64%);
  opacity: .85;
}
#gacha .rv-rays {
  opacity: .16;
  background: repeating-conic-gradient(from 0deg, rgba(200,140,40,.55) 0deg 2deg, transparent 2deg 12deg);
  mix-blend-mode: multiply;
}
#gacha .rv-art img {
  filter: drop-shadow(0 14px 28px rgba(140,90,40,.35)) drop-shadow(0 0 20px rgba(255,204,120,.6));
}
#gacha .rv::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 1;
  background: linear-gradient(180deg, rgba(255,248,234,0) 0%, rgba(255,247,232,.82) 46%, rgba(255,244,224,.98) 100%);
  pointer-events: none;
}
#gacha .rv-info, #gacha .rv-line, #gacha .rv-idx, #gacha .rv-loot { z-index: 2; }
#gacha .rv-ribbon { z-index: 1; }
#gacha .rv-ribbon path { stroke: rgba(214,160,70,.85); filter: drop-shadow(0 0 6px rgba(255,224,160,.95)); }
#gacha .rv-name {
  color: #5E3210;
  text-shadow: 0 2px 0 rgba(255,255,255,.98), 0 0 18px rgba(255,255,255,.9), 0 4px 10px rgba(150,100,40,.18);
}
#gacha .rv-job { color: #8A5A20; }
#gacha .rv-tags i { color: #A98A63; }
#gacha .rv-fac { color: #FFFBF0; text-shadow: 0 1px 2px rgba(60,30,10,.45); }
#gacha .rv-stars i { color: rgba(150,120,80,.28); }
#gacha .rv-stars i.on { color: #E8A93C; text-shadow: 0 0 8px rgba(255,196,96,.8); }
#gacha .rv-stars em { color: #A98A63; }
#gacha .rv-chips span {
  background: rgba(255,251,240,.9); border-color: rgba(217,164,65,.4); color: #7A5426;
  box-shadow: 0 2px 6px rgba(160,120,60,.12);
}
#gacha .rv-chips i { background: linear-gradient(160deg, #F7C87A, #D08A28); color: #FFFBF0; }
#gacha .rv-line { color: #8A5A20; text-shadow: 0 1px 0 rgba(255,255,255,.9); }
#gacha .rv-loot {
  background: linear-gradient(90deg, rgba(255,250,238,0), rgba(255,250,238,.95) 14%, rgba(255,250,238,.95) 86%, rgba(255,250,238,0));
  border-color: rgba(217,164,65,.45);
}
#gacha .rv-loot b { color: #8A5A20; }
#gacha .rv-loot span { color: #B4551C; }
#gacha .rv-idx {
  color: #8A5A20; border-color: rgba(217,164,65,.55); background: rgba(255,251,240,.88);
}

/* 结算：金卷轴按钮 + 纸色药丸 */
#gacha .gc-again {
  color: #5A2A08; border-color: #FFE7B0;
  background: linear-gradient(180deg, #FFF0C4 0%, #F7C75F 48%, #DF9526 100%);
  box-shadow: 0 4px 0 #B0641A, 0 10px 22px rgba(220,150,60,.34), inset 0 1.5px 0 rgba(255,255,255,.85);
}
#gacha .gc-again:active {
  background: linear-gradient(180deg, #FFE7A8 0%, #EEB84C 48%, #CE8418 100%);
  box-shadow: 0 1px 0 #B0641A, 0 5px 12px rgba(220,150,60,.3);
}
#gacha .gc-hint { color: rgba(140,100,60,.62); }
#gacha .gc-hint i { background: linear-gradient(90deg, transparent, rgba(200,150,80,.6)); }
#gacha .gcl {
  background: rgba(255,251,242,.92); border-color: rgba(217,164,65,.45); color: #8A5A20;
  box-shadow: 0 3px 10px rgba(160,120,60,.14);
}
#gacha .gcl i { color: #B4551C; }
#gacha .gcl.new b { color: #B4551C; }

/* 金光：浅底上改成暖金闪，不用 screen */
#gacha .gc-gold {
  mix-blend-mode: normal;
  background: radial-gradient(circle at 50% 46%, #FFFDF6 0%, rgba(255,214,130,.72) 20%, rgba(255,206,140,.28) 44%, transparent 66%);
}
#gacha .gc-ouqi b { color: #7A3A0E; text-shadow: 0 2px 0 rgba(255,255,255,.9), 0 0 22px rgba(255,216,140,.95); }
#gacha .gc-ouqi span {
  color: #8A4A18; background: rgba(255,250,238,.9); border-color: rgba(217,164,65,.55);
}

/* 暖色名帖：名字改回深褐，别再压一条黑带 */
#gacha .gc-name {
  color: #5E3210;
  background: linear-gradient(180deg, rgba(255,250,238,0) 0%, rgba(255,250,238,.9) 42%, rgba(255,247,230,.99) 100%);
  text-shadow: 0 1px 0 rgba(255,255,255,.95);
  letter-spacing: .5px;
}
#gacha .gc-new { bottom: 24px; right: 3px; }
#gacha .gc-hint { color: rgba(122,86,50,.7); }
#gacha .rv-chips span { color: #6B3A12; }
#gacha .rv-line { color: #7A4A18; }

/* ══════════════════════════════════════════════════════════
   v1.47.0 阵容：三队切换 · 护法配图 · 抽卡动画开关
   ══════════════════════════════════════════════════════════ */

/* 点将台：抽卡按钮下的「跳过招募动画」 */
.fx-row {
  display: flex; align-items: center; gap: 9px; margin-top: 9px;
  padding: 8px 11px; border-radius: 12px; cursor: pointer;
  background: rgba(255,251,242,.9); border: 1.5px solid #F0E3CC;
  transition: border-color .15s, background .15s;
}
.fx-row:active { background: #FFF6E4; }
.fx-box {
  flex: 0 0 auto; width: 17px; height: 17px; border-radius: 5px;
  border: 1.5px solid #DCC49B; background: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; line-height: 1;
}
.fx-box.on { background: linear-gradient(160deg, #F3BE55, #D98A22); border-color: #D98A22; }
.fx-txt { display: flex; align-items: baseline; gap: 8px; font-size: 11px; color: #7A5426; font-weight: 600; }
.fx-txt i { font-style: normal; font-size: 9px; color: #A98A63; font-weight: 400; }

/* 队伍 tab：在编 / 待编 */
.ps.empty { background: rgba(255,253,248,.7); border-style: dashed; }
.ps-on, .ps-new {
  position: absolute; right: 4px; top: 3px;
  font-size: 7.5px; font-weight: 800; letter-spacing: .5px;
  padding: 1px 4px; border-radius: 5px;
}
.ps-on { background: #E8A93C; color: #FFFBF0; }
.ps-new { background: #EFE2C9; color: #A98A63; }

/* 护法：三张带图卡位 */
.guard-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.gd-card2 {
  position: relative; padding: 8px 6px 7px; border-radius: 13px; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, #FFFCF4, #F9EBD0);
  border: 2px dashed #E6D2B2;
  transition: transform .12s, border-color .15s, background .15s;
}
.gd-card2:active { transform: scale(.97); }
.gd-card2.on { border-style: solid; border-color: #E6C27A; background: linear-gradient(180deg, #FFF8E6, #F8E4B6); box-shadow: 0 0 0 2px rgba(201,165,92,.18); }
.gd-card2.lock { filter: grayscale(.5); opacity: .62; }
.gd2-art {
  position: relative; width: 54px; height: 54px; margin: 0 auto 5px; border-radius: 50%;
  overflow: hidden; background: radial-gradient(circle at 35% 26%, #FFF4DA, #E7CFA4 74%);
  border: 2px solid #fff; box-shadow: 0 3px 9px rgba(160,110,50,.22);
  display: grid; place-items: center;
}
.gd-card2.on .gd2-art { border-color: #FFE7B0; box-shadow: 0 3px 10px rgba(200,140,50,.3); }
.gd2-art svg { width: 122%; height: 122%; margin: -8% 0 0 -11%; display: block; }
.gd2-lock { font-size: 16px; color: #C6AC82; }
.gd2-ix {
  position: absolute; right: 2px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 8px; font-weight: 700;
  color: #7A4A12; background: rgba(255,249,235,.92); border: 1px solid #E6CFA4;
}
.gd2-name { display: block; font-family: var(--serif); font-size: 10px; font-weight: 700; color: #5A4026; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd2-sub { display: block; font-style: normal; font-size: 8px; color: #A98A63; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 十二金仙长廊 */
.guard-strip {
  display: flex; gap: 7px; margin-top: 8px; padding: 8px 2px 6px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guard-strip::-webkit-scrollbar { display: none; }
.gs-mini { flex: 0 0 56px; text-align: center; opacity: .95; }
.gs-mini.lock { opacity: .42; filter: grayscale(.55); }
.gsm-face {
  display: block; width: 44px; height: 44px; margin: 0 auto 3px; border-radius: 50%;
  overflow: hidden; background: radial-gradient(circle at 35% 26%, #FFF4DA, #E7CFA4 74%);
  border: 1.5px solid #fff; box-shadow: 0 2px 6px rgba(160,110,50,.18);
}
.gsm-face svg { width: 122%; height: 122%; margin: -8% 0 0 -11%; display: block; }
.gs-mini b { display: block; font-family: var(--serif); font-size: 8.5px; color: #5A4026; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-mini i { display: block; font-style: normal; font-size: 7.5px; color: #A98A63; }

/* 护法弹层里的头像替换印章 */
.gd-seal.gd-face { display: block; overflow: hidden; padding: 0; background: radial-gradient(circle at 35% 28%, #FFF3DA, #E5CFA6 72%); }
.gd-seal.gd-face svg { width: 124%; height: 124%; margin: -10% 0 0 -12%; display: block; }
.gd-card.on .gd-seal.gd-face { background: radial-gradient(circle at 35% 28%, #FFF6CC, #EFC072 72%); }

/* 护法区收紧：三张卡做小一点，把视觉重心让给十二金仙长廊 */
.guard-row { gap: 7px; }
.gd-card2 { padding: 7px 5px 6px; border-radius: 11px; display: flex; flex-direction: column; align-items: center; }
.gd2-art { width: 46px; height: 46px; margin-bottom: 4px; }
.gd2-lock { font-size: 14px; }
.gd2-name { font-size: 9.5px; }
.gd2-sub { font-size: 7.5px; margin-top: 0; }
.guard-strip { margin-top: 7px; padding: 6px 0 2px; gap: 6px; }
.gs-mini { flex: 0 0 52px; }
.gsm-face { width: 40px; height: 40px; }
.gs-mini.lock { opacity: .55; filter: grayscale(.35); }
.gs-mini b { font-size: 8px; }
.gs-mini i { font-size: 7px; }
/* 长廊里的护法不做灰化，只压一点亮度，保持「有图」的观感 */
.gs-mini.lock { opacity: .88; filter: none; }
.gsm-face { position: relative; }
.gd2-plus { font-size: 20px; font-weight: 300; line-height: 1; color: #C9A063; }
.gd-card2:not(.on):not(.lock) { border-color: #E3C58C; background: linear-gradient(180deg,#FFFDF6,#FBEFD6); }

/* 十二金仙头像（生成图切图）：圆形裁切，脸略上移 */
.gd2-art img.gdf,
.gsm-face img.gdf,
.gd-seal.gd-face img.gdf {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 26%;
  transform: scale(1.08); border-radius: 50%;
}
.gsm-face img.gdf { object-position: 50% 24%; }

/* ══════════════════════════════════════════════════════════
   v1.49.0 出手分化：近战冲刺 + 武器/弹道分家
   ══════════════════════════════════════════════════════════ */

.bt-unit.dashing { filter: drop-shadow(0 12px 16px rgba(90,50,10,.38)); }

/* 刀剑：三道错开的弧形刀光 */
.fx-weapon { position: absolute; z-index: 9; pointer-events: none; }
.fx-weapon .w-arc {
  position: absolute; left: 0; top: 0; width: var(--w, 78px); height: var(--w, 78px);
  margin: calc(var(--w, 78px) / -2) 0 0 calc(var(--w, 78px) / -2);
  border-radius: 50%; border: 3px solid transparent;
  border-top-color: #fff; border-left-color: var(--c);
  opacity: 0; transform: rotate(var(--a, 0deg)) scale(.35);
  filter: drop-shadow(0 0 10px var(--c));
  animation: wArc .32s cubic-bezier(.2,.9,.3,1) forwards;
  animation-delay: var(--dl, 0s);
}
@keyframes wArc {
  0% { opacity: 0; transform: rotate(var(--a, 0deg)) scale(.35); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--a, 0deg) + 48deg)) scale(1.12); }
}

/* 长兵：一道贯穿突刺 + 尖端亮点 */
.fx-weapon .w-spear {
  position: absolute; left: 0; top: -2px; height: 4px; width: 128px; border-radius: 3px;
  transform-origin: 0 50%; transform: rotate(var(--ang, 0deg)) scaleX(.2);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.96) 58%, var(--c));
  box-shadow: 0 0 14px var(--c);
  animation: wSpear .3s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes wSpear {
  0% { opacity: 0; transform: rotate(var(--ang, 0deg)) scaleX(.2); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--ang, 0deg)) scaleX(1.12); }
}
.fx-weapon .w-tip {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px var(--c), 0 0 34px var(--c);
  animation: wTip .3s ease-out forwards;
}
@keyframes wTip {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  55% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--tx, 110px), var(--ty, 0)) scale(1.1); }
}

/* 拂尘：一束白丝扫过 */
.fx-weapon .w-strand {
  position: absolute; left: 0; top: 0; width: var(--l, 64px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.05));
  transform-origin: 0 50%; transform: rotate(var(--a)) scaleX(.1);
  filter: blur(.3px);
  animation: wStrand .34s cubic-bezier(.2,.9,.3,1) forwards;
  animation-delay: var(--dl, 0s);
}
@keyframes wStrand {
  0% { opacity: 0; transform: rotate(var(--a)) scaleX(.1); }
  30% { opacity: .95; }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 16deg)) scaleX(1); }
}
.fx-weapon .w-puff {
  position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 66%);
  animation: wPuff .32s ease-out forwards;
}
@keyframes wPuff { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }

/* 火球 */
.fx-bolt.b-fire i.flame {
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: radial-gradient(circle, #FFFBE6 8%, #FFC65C 38%, #F05A22 66%, rgba(200,60,10,0) 78%);
  box-shadow: 0 0 20px #FF8A3C, 0 0 40px rgba(240,90,34,.7);
  animation: fxBoltMove .3s cubic-bezier(.4,0,.7,1) forwards, firePulse .18s ease-in-out infinite alternate;
}
@keyframes firePulse { from { box-shadow: 0 0 18px #FF8A3C; } to { box-shadow: 0 0 32px #FFB26B; } }
.fx-bolt.b-fire .ember {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #FFCF6E; box-shadow: 0 0 10px #FF8A3C;
  animation: fxBoltMove .3s cubic-bezier(.4,0,.7,1) forwards;
}
.fx-bolt.b-fire .e1 { margin: -4px 0 0 -16px; opacity: .85; }
.fx-bolt.b-fire .e2 { margin: 7px 0 0 -24px; width: 5px; height: 5px; opacity: .6; }
.fx-bolt.b-fire .e3 { margin: -10px 0 0 -6px; width: 4px; height: 4px; opacity: .5; }
.fx-bolt.b-fire b.flame-trail {
  top: -6px; height: 12px;
  background: linear-gradient(90deg, transparent, rgba(255,140,60,.75));
}

/* 符箓 */
.fx-bolt.b-talis i.paper {
  width: 15px; height: 21px; margin: -10px 0 0 -7px; border-radius: 2px;
  background: linear-gradient(180deg, #FFF9E8, #EFD7A6);
  border: 1px solid #D9A441; box-shadow: 0 0 14px rgba(232,180,76,.9);
  animation: fxBoltMove .3s cubic-bezier(.4,0,.7,1) forwards;
}
.fx-bolt.b-talis i.paper s {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--serif); font-size: 11px; color: #B4361F; text-decoration: none;
  animation: talisSpin .42s linear infinite;
}
@keyframes talisSpin { to { transform: rotate(360deg); } }
.fx-bolt.b-talis b.talis-trail {
  top: -2px; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(217,164,65,.85));
}

/* 拂尘：一缕柔白拂过 */
.fx-bolt.b-whisk i.silk {
  width: 28px; height: 3px; margin: -1.5px 0 0 -14px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 58%, rgba(210,240,230,.5));
  box-shadow: 0 0 12px rgba(224,246,238,.95);
  animation: fxBoltMove .3s cubic-bezier(.4,0,.7,1) forwards;
}
.fx-bolt.b-whisk b.silk-trail {
  top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232,249,242,.9));
}

/* 武器特效再放大一点，别被命中爆点吃掉 */
.fx-weapon.w-blade .w-arc { width: var(--w, 92px); height: var(--w, 92px); }
.fx-weapon.w-spear .w-spear { width: 150px; height: 5px; }
.fx-weapon.big .w-spear { width: 186px; height: 7px; }
.fx-weapon.w-whisk .w-strand { height: 2.5px; }

/* 冲刺速度线 */
.fx-dash { position: absolute; z-index: 8; pointer-events: none; transform: rotate(var(--ang, 0deg)); transform-origin: 0 50%; }
.fx-dash i {
  display: block; height: 5px; width: var(--len, 80px); border-radius: 5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.85), var(--c, #F2A03D));
  filter: blur(1px); opacity: 0;
  animation: fxDash .32s ease-out forwards;
}
@keyframes fxDash {
  0% { opacity: 0; transform: scaleX(.2); }
  22% { opacity: .95; }
  100% { opacity: 0; transform: scaleX(1); }
}

/* 结算按钮：主按钮独占一行，次按钮并排 */
.bt-result-btns { display: flex; flex-direction: column; gap: 8px; }
.bt-result-btns .rsb.wide { flex: 0 0 auto; width: 100%; padding: 13px 0; font-size: 14px; letter-spacing: 2px; }
.bt-result-btns .rsb.wide svg { width: 17px; height: 17px; }
.bt-result-btns .rsb-row { display: flex; gap: 8px; }
.bt-result-btns .rsb-row .rsb { flex: 1; }

/* 新版本提示条 */
.ver-bar {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,246,222,.98), rgba(250,228,186,.98));
  border: 1.5px solid #E8B44C;
  box-shadow: 0 6px 20px rgba(120,70,20,.28), inset 0 1px 0 #fff;
  font-size: 11px; color: #7A4A18; white-space: nowrap;
  animation: verIn .4s cubic-bezier(.2,1.3,.4,1) both;
}
.ver-bar b {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #FFF8E8;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #F3BE55, #D9822B);
}
@keyframes verIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 关卡页：次要的扫荡靠左压成灰调，主要的挑战靠右 */
.sc-sweep {
  background: #F3EFE7 !important; color: #9C8E7A !important;
  border-color: #E4DCCD !important; box-shadow: 0 2px 0 rgba(180,168,148,.35) !important;
  font-weight: 600;
}
.sc-sweep svg { opacity: .7; }
.sc-sweep:not(:disabled):active { background: #EAE4D8 !important; }
.sc-btns { gap: 9px; }
.sc-go { flex: 1.75; }

/* 扬尘 */
.fx-dust { position: absolute; z-index: 7; pointer-events: none; }
.fx-dust .d {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,252,240,.95), rgba(210,180,140,.35) 70%, transparent 78%);
  opacity: 0; transform: rotate(var(--a)) translateX(2px);
  animation: fxDustFly .42s ease-out forwards; animation-delay: var(--dl, 0s);
}
@keyframes fxDustFly {
  0% { opacity: 0; transform: rotate(var(--a)) translateX(2px) scale(.5); }
  25% { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(20px) scale(1.4); }
}

/* 关卡页入场：章节格逐格落下，详情卡随后浮起 */
.stage-grid .stage-tile { animation: stTileIn .34s cubic-bezier(.2,1,.3,1) both; }
.stage-grid .stage-tile:nth-child(1) { animation-delay: .02s; }
.stage-grid .stage-tile:nth-child(2) { animation-delay: .05s; }
.stage-grid .stage-tile:nth-child(3) { animation-delay: .08s; }
.stage-grid .stage-tile:nth-child(4) { animation-delay: .11s; }
.stage-grid .stage-tile:nth-child(5) { animation-delay: .14s; }
.stage-grid .stage-tile:nth-child(6) { animation-delay: .17s; }
.stage-grid .stage-tile:nth-child(7) { animation-delay: .2s; }
.stage-grid .stage-tile:nth-child(8) { animation-delay: .23s; }
.stage-grid .stage-tile:nth-child(9) { animation-delay: .26s; }
.stage-grid .stage-tile:nth-child(10) { animation-delay: .29s; }
@keyframes stTileIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.stage-card { animation: stCardIn .4s .24s cubic-bezier(.2,1,.3,1) both; }
@keyframes stCardIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   v1.52.0 战斗手感：连击分档 / 暴击顿感
   ══════════════════════════════════════════════════════════ */

/* 连击：挪到战场左侧，不压人；分三档上色 */
.fx-combo {
  position: absolute; left: 12px; top: 44%; transform: none;
  z-index: 8; text-align: left; pointer-events: none;
  opacity: 0; transition: opacity .2s;
  padding: 6px 12px 6px 10px; border-radius: 4px 14px 14px 4px;
  background: linear-gradient(90deg, rgba(255,246,226,.92), rgba(255,246,226,0));
  border-left: 3px solid #E8A93C;
}
.fx-combo.on { opacity: 1; }
.fx-combo b {
  display: block; font-family: var(--serif); font-size: 34px; line-height: .95;
  color: #C4511C; text-shadow: 0 2px 0 #fff, 0 0 18px rgba(232,120,40,.55);
}
.fx-combo span { font-size: 9px; letter-spacing: 3px; color: #A6682C; }
.fx-combo.t1 { border-left-color: #E4572E; }
.fx-combo.t1 b { color: #D8421C; }
.fx-combo.t2 { border-left-color: #B4361F; background: linear-gradient(90deg, rgba(255,232,206,.95), rgba(255,232,206,0)); }
.fx-combo.t2 b { color: #A82F14; font-size: 40px; }
.fx-combo.t3 { border-left-color: #8A3AB4; background: linear-gradient(90deg, rgba(245,230,255,.95), rgba(245,230,255,0)); }
.fx-combo.t3 b {
  font-size: 46px; color: #6E2AA0;
  text-shadow: 0 2px 0 #fff, 0 0 22px rgba(150,80,220,.6);
}
.fx-combo.t3 span { color: #6E2AA0; letter-spacing: 2px; }
.fx-combo.pop b { animation: comboPop .3s cubic-bezier(.2,1.7,.4,1); }

/* 暴击数字再大一号，带金边 */
.fnum.crit.big {
  font-size: 23px; color: #E07A0A;
  text-shadow: 0 2px 0 #fff, 0 0 12px rgba(255,170,40,.9), 0 0 22px rgba(255,120,20,.6);
}

/* 关卡页：扫荡 / 挑战 收益对比 */
.sc-yield { display: flex; gap: 7px; margin-top: 8px; }
.sc-yield .sy {
  flex: 1; padding: 7px 8px 6px; border-radius: 10px; text-align: left;
  background: rgba(255,251,242,.9); border: 1.5px solid #EFE2CB;
}
.sc-yield .sy.hot { background: linear-gradient(180deg,#FFF6E2,#FDEAC2); border-color: #E8C27A; }
.sc-yield .sy i {
  display: flex; align-items: center; gap: 3px; font-style: normal;
  font-size: 9px; letter-spacing: 1px; color: #8A6A3E;
}
.sc-yield .sy i svg { width: 10px; height: 10px; }
.sc-yield .sy b {
  display: block; font-family: var(--serif); font-size: 15px; line-height: 1.25; color: #6B3A12;
  font-variant-numeric: tabular-nums;
}
.sc-yield .sy b s { font-size: 8.5px; font-weight: 400; color: #A98A63; text-decoration: none; margin-left: 3px; }
.sc-yield .sy.hot b { color: #B4551C; }
.sc-yield .sy em { display: block; font-style: normal; font-size: 8px; color: #A98A63; margin-top: 1px; }
.sc-yield .sy.hot em { color: #9C6A2A; }

/* 首通金印 */
.fcl-layer {
  position: absolute; inset: 0; z-index: 88; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 44%, rgba(60,26,4,.55), rgba(20,8,2,.86));
  animation: fclIn .22s ease-out both; overflow: hidden;
}
.fcl-layer.out { animation: fclOut .45s ease-in forwards; }
@keyframes fclIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fclOut { to { opacity: 0; } }
.fcl-layer .fcl-rays {
  position: absolute; left: 50%; top: 44%; width: 160vmax; height: 160vmax;
  margin: -80vmax 0 0 -80vmax; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,130,.28) 0deg 1.6deg, transparent 1.6deg 10deg);
  animation: gcsSpin 18s linear infinite;
}
.fcl-layer .fcl-burst {
  position: absolute; left: 50%; top: 44%; width: 40vmin; height: 40vmin;
  margin: -20vmin 0 0 -20vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,190,.9) 0%, rgba(255,200,110,.35) 40%, transparent 68%);
  animation: fclBurst .9s cubic-bezier(.15,.8,.3,1) both;
}
@keyframes fclBurst { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; } 100% { opacity: .55; transform: scale(1.5); } }
.fcl-seal {
  position: relative; width: 126px; height: 126px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  border: 4px solid #FFE2A0; background: radial-gradient(circle at 36% 28%, #E4572E, #A82F14 70%);
  box-shadow: 0 0 0 6px rgba(228,87,46,.28), 0 0 40px rgba(255,150,70,.8), inset 0 0 22px rgba(90,10,0,.5);
  animation: fclSeal .6s cubic-bezier(.2,1.5,.4,1) both;
}
.fcl-seal em {
  font-style: normal; font-family: var(--serif); font-size: 40px; font-weight: 900; color: #FFF6DE;
  text-shadow: 0 3px 0 rgba(120,40,10,.55);
}
@keyframes fclSeal {
  0% { opacity: 0; transform: scale(2.6) rotate(-18deg); }
  60% { opacity: 1; transform: scale(.92) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.fcl-txt {
  position: absolute; left: 0; right: 0; top: 62%; text-align: center;
  animation: fclTxt .5s .22s both;
}
.fcl-txt b { display: block; font-family: var(--serif); font-size: 18px; color: #FFE9BE; letter-spacing: 2px; }
.fcl-txt span { display: block; font-size: 11px; color: rgba(255,231,176,.72); margin-top: 3px; letter-spacing: 1px; }
.fcl-txt i { display: block; margin-top: 8px; font-style: normal; font-size: 10px; letter-spacing: 3px; color: #FFC862; }
@keyframes fclTxt { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 大招余韵：影像残影 / 战场推近 / 落地光柱 */
.ult-dive .ud-trail { filter: blur(2px) drop-shadow(0 0 16px var(--c)); }
#battle .bt-field { transition: transform .42s cubic-bezier(.2,.8,.3,1); }
#battle.ult-zoom .bt-field { transform: scale(1.045); }
.fx-beam { position: absolute; z-index: 8; pointer-events: none; }
.fx-beam i {
  position: absolute; left: -44px; bottom: 0; width: 88px; height: 0;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(0deg, rgba(255,214,140,.55), rgba(255,255,255,.12) 60%, transparent);
  filter: blur(7px);
  animation: fxBeamUp .52s ease-out forwards;
}
@keyframes fxBeamUp {
  0% { height: 0; opacity: 0; }
  30% { height: 130px; opacity: .9; }
  100% { height: 190px; opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   v1.53.0 去闪屏：列表入场动画只在换页时播一次
   ══════════════════════════════════════════════════════════ */

/* 默认不播：内容重绘（点选、领取、折叠…）不再让整屏卡片重新落下 */
.stage-grid .stage-tile,
.stage-card,
.rc-grid .rcard,
.soul-card,
.arr-card,
.cx-grid .cx-card { animation: none; }

/* 仅在刚切页的 0.7s 内播放入场 */
#view.just-in .stage-grid .stage-tile { animation: stTileIn .34s cubic-bezier(.2,1,.3,1) both; }
#view.just-in .stage-card { animation: stCardIn .4s .24s cubic-bezier(.2,1,.3,1) both; }
#view.just-in .rc-grid .rcard { animation: cardIn .38s cubic-bezier(.2,1.15,.4,1) both; }
#view.just-in .soul-card { animation: cardIn .36s cubic-bezier(.2,1.15,.4,1) both; }
#view.just-in .arr-card { animation: cardIn .38s cubic-bezier(.2,1.15,.4,1) both; }
#view.just-in .cx-grid .cx-card { animation: cardIn .36s cubic-bezier(.2,1.15,.4,1) both; }

/* 快捷栏 5 项排一行（法宝加进来之后原来 4 列会掉行） */
.team-quick { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.team-quick .tq { font-size: 8.5px; padding: 6px 0 5px; }
.team-quick .tq svg { width: 16px; height: 16px; }

/* 点将台：跳过动画收进祭坛左上角，不占版面 */
.gacha-page .altar .al-fx {
  position: absolute; right: 9px; top: 9px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 7px 4px; border-radius: 10px; cursor: pointer;
  background: rgba(255,251,242,.9); border: 1.5px solid #E7D3AE;
  color: #A6682C; font-size: 8px; line-height: 1; font-family: inherit;
  box-shadow: 0 2px 6px rgba(150,110,60,.16);
}
.gacha-page .altar .al-fx svg { width: 14px; height: 14px; }
.gacha-page .altar .al-fx i { font-style: normal; letter-spacing: 1px; }
.gacha-page .altar .al-fx.on {
  background: linear-gradient(180deg, #FFF3D2, #F7DFA8);
  border-color: #E8A93C; color: #B4551C;
  box-shadow: 0 0 0 2px rgba(232,169,60,.18);
}


/* 怒气满：武将卡点亮 + 徽章脉动，让「可以放大招」一眼看见 */
.bt-unit.rage-full { filter: drop-shadow(0 0 10px rgba(255,180,80,.75)); }
.bt-unit.rage-full .rb i { background: linear-gradient(90deg, #FFF0B8, #FFB43C 60%, #E4572E); }
.bt-unit.rage-full .ultb { display: grid; animation: ultPulse 1.15s ease-in-out infinite; }


/* 概率卡：S+ / S / A / B 四档 + 图鉴小条 */
.odds .od-s .od-ring {
  background: radial-gradient(circle at 36% 28%, #FFF3CE, #E8B44C 66%, #B4801F 100%);
  box-shadow: inset 0 0 10px rgba(120,80,10,.25), 0 2px 8px rgba(220,160,60,.3);
}
.odds .od-s .od-ring b { color: #6A4408; }
.odds .od-sp .od-ring b { font-size: 15px; }
.odds .od-s .od-ring b { font-size: 15px; }
.odds-dex {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; cursor: pointer;
  padding: 6px 10px; border-radius: 10px;
  background: rgba(255,251,242,.9); border: 1.5px solid #F0E3CC;
  font-size: 10px; color: #8A5A20;
}
.odds-dex svg { width: 13px; height: 13px; color: #C08A24; }
.odds-dex i { margin-left: auto; font-style: normal; font-size: 9px; color: #B5844A; }
.odds-dex:active { background: #FFF4E0; }


/* ══════════ 编队（按玩法分套） ══════════ */
.team-hero {
  position: relative; border-radius: 14px; padding: 12px 14px; margin-bottom: 9px;
  background: linear-gradient(135deg, #2A1B10 0%, #4A2F1B 62%, #5E3C22 100%);
  box-shadow: 0 6px 18px rgba(60,36,12,.22), inset 0 1px 0 rgba(255,220,160,.16);
}
.th-t { display: flex; align-items: baseline; gap: 8px; }
.th-t b { font-family: var(--serif); font-size: 17px; color: #FFE2B0; letter-spacing: .14em; }
.th-t em { font-style: normal; font-size: 9px; color: #C9AE86; letter-spacing: .08em; }
.th-s { font-size: 9.5px; color: #BCA084; margin-top: 3px; line-height: 1.5; }
.th-pow {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 8px;
  font-size: 9.5px; color: #E9D3AE;
  background: rgba(255,225,170,.1); border: 1px solid rgba(255,220,160,.2);
  border-radius: 20px; padding: 3px 9px;
}
.th-pow b { color: #FFD98A; font-size: 12px; font-variant-numeric: tabular-nums; }
.th-pow svg { width: 11px; height: 11px; }

.tst-row { display: flex; gap: 5px; margin-bottom: 10px; }
.tst {
  flex: 1; padding: 7px 2px; border-radius: 10px; border: 1px solid #EBD9BC;
  background: #F9F1E1; color: #8A7152; text-align: center; line-height: 1.25;
}
.tst b { display: block; font-size: 10.5px; letter-spacing: .02em; }
.tst i { display: block; font-style: normal; font-size: 8px; color: #B29C7C; margin-top: 2px; }
.tst.on {
  background: linear-gradient(180deg, #FFCB75, #EFA23C); border-color: transparent;
  box-shadow: 0 3px 10px rgba(232,150,60,.32);
}
.tst.on b { color: #fff; }
.tst.on i { color: rgba(255,255,255,.85); }

.tac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.tac {
  text-align: left; padding: 8px 9px; border-radius: 11px;
  border: 1px solid #EFE0C8; background: #FFFDF8; line-height: 1.3;
}
.tac b { display: block; font-size: 11.5px; color: #4A3520; letter-spacing: .06em; }
.tac i { display: block; font-style: normal; font-size: 8px; color: var(--dim); margin-top: 3px; }
.tac.on {
  border-color: #E8A24C; background: #FFF6E6;
  box-shadow: 0 0 0 2px rgba(232,150,60,.14);
}
.tac.on b { color: #A2541B; }

.sc-btns .sc-team {
  flex: 0 0 auto; padding: 0 12px; font-size: 11.5px;
  background: #FFF6E6; color: #96702E; border: 1px solid #EBD5AC;
  display: inline-flex; align-items: center; gap: 3px;
}
.bs-team {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; margin: 0 0 7px; padding: 6px 0; border-radius: 9px;
  background: rgba(255,225,170,.1); border: 1px solid rgba(255,220,160,.22);
  color: #EAD2AC; font-size: 10px; letter-spacing: .04em;
}
.td-team { margin-top: 9px; font-size: 11px; }

/* ══════════ 特权（VIP / 充值） ══════════ */
.vip-hero {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 10px;
  min-height: 154px; display: flex; align-items: flex-end;
  box-shadow: 0 8px 22px rgba(60,40,20,.2);
}
.vh-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vh-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24,14,8,.2), rgba(22,12,6,.86)); }
.vh-in { position: relative; z-index: 2; padding: 14px 14px 15px; width: 100%; }
.vh-top { display: flex; align-items: center; gap: 9px; }
.vh-crown {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, #FFD98A, #D9922C); color: #4A2A05;
  box-shadow: 0 3px 10px rgba(217,146,44,.4);
}
.vh-crown svg { width: 18px; height: 18px; }
.vh-lv { font-family: var(--serif); font-size: 21px; line-height: 1.1; color: #FFE2B0; letter-spacing: .04em; }
.vh-lv em { font-style: normal; font-size: 9px; color: #C9AE86; margin-left: 4px; letter-spacing: .1em; }
.vh-yuan { font-size: 8.5px; color: #BCA084; margin-top: 1px; }
.vh-gift {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 9px; border-radius: 20px; font-size: 9.5px;
  background: rgba(255,225,170,.14); border: 1px solid rgba(255,220,160,.28); color: #EAD2AC;
}
.vh-gift.on {
  background: linear-gradient(180deg, #FFCB75, #E8973A); color: #4A2A05; border-color: transparent;
  font-weight: 700; animation: vgPulse 1.6s ease-in-out infinite;
}
@keyframes vgPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,190,90,.5); } 50% { box-shadow: 0 0 0 6px rgba(255,190,90,0); } }
.vh-gift svg { width: 11px; height: 11px; }
.vh-bar { height: 6px; border-radius: 6px; background: rgba(0,0,0,.4); margin-top: 10px; overflow: hidden; }
.vh-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFCB75, #FF8A4C); box-shadow: 0 0 8px rgba(255,170,90,.6); transition: width .4s ease; }
.vh-next { font-size: 8.5px; color: #C9AE86; margin-top: 5px; }

.vkp-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.vkp {
  display: flex; align-items: center; gap: 7px; padding: 6px 9px;
  background: #FFFDF8; border: 1px solid #EFE0C8; border-radius: 9px;
  font-size: 10px; color: #6B5334;
}
.vkp-lv {
  flex: 0 0 auto; font-size: 8px; font-weight: 700; color: #fff;
  background: linear-gradient(160deg, #F0B45C, #D9832A); border-radius: 5px; padding: 1px 5px;
}
.vkp.none { color: var(--dim); justify-content: center; }

.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.ct-item {
  position: relative; padding: 9px 4px 8px; border-radius: 12px;
  background: #FFFDF8; border: 1px solid #EFE0C8; text-align: center;
  box-shadow: 0 2px 7px rgba(120,86,40,.06);
}
.ct-item .ct-jade { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ct-item .ct-jade .it { width: 26px; height: 26px; }
.ct-item .ct-jade b { font-size: 11.5px; color: #6B4E2E; font-variant-numeric: tabular-nums; }
.ct-name { font-size: 8.5px; color: var(--dim); margin-top: 2px; }
.ct-price {
  margin-top: 5px; padding: 3px 0; border-radius: 7px; font-size: 11px; font-weight: 700; color: #4A2A05;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
}
.ct-tag {
  position: absolute; right: -2px; top: -6px; font-size: 7.5px; color: #fff; font-style: normal;
  background: linear-gradient(160deg, #FF8A5C, #E0503A); border-radius: 6px; padding: 1px 5px;
  box-shadow: 0 2px 6px rgba(224,80,58,.4);
}
.ct-double {
  position: absolute; left: 50%; transform: translateX(-50%); top: -6px;
  font-size: 7.5px; font-style: normal; color: #4A2A05; white-space: nowrap;
  background: linear-gradient(180deg, #FFE9A8, #FFC44E); border-radius: 6px; padding: 1px 5px;
}
.vip-note {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 8.5px; color: var(--dim); margin-top: 7px;
}
.vip-note svg { width: 9px; height: 9px; }

.mc-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 13px; background: linear-gradient(120deg, #FFF8E8, #FBEBD0);
  border: 1px solid #EFDCB8; box-shadow: 0 2px 8px rgba(120,86,40,.07);
}
.mc-l .it { width: 30px; height: 30px; }
.mc-m { flex: 1; min-width: 0; }
.mc-m b { display: block; font-size: 12.5px; color: #6B4E2E; letter-spacing: .06em; }
.mc-m i { display: block; font-style: normal; font-size: 8.5px; color: var(--dim); margin-top: 2px; }
.mc-btn {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 9px; border: none;
  font-size: 11px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #F5A94E, #E07B22);
}
.mc-btn.claim { background: linear-gradient(180deg, #9BE3B2, #4FA97A); color: #07301D; }
.mc-btn.done { background: #E7DCC9; color: #9C8A70; }

.fd-card {
  padding: 11px 12px; border-radius: 13px; background: #FFFDF8;
  border: 1px solid #EFE0C8; box-shadow: 0 2px 8px rgba(120,86,40,.07);
}
.fd-head { display: flex; align-items: center; gap: 8px; }
.fd-head b { font-size: 12.5px; color: #6B4E2E; }
.fd-head i { display: block; font-style: normal; font-size: 8.5px; color: var(--dim); margin-top: 2px; }
.fd-buy {
  margin-left: auto; padding: 6px 12px; border-radius: 9px; border: none;
  font-size: 11px; font-weight: 700; color: #4A2A05;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
}
.fd-buy.done { background: #EFE4D1; color: #9C8A70; font-size: 9.5px; }
.fd-bar { height: 5px; border-radius: 5px; background: #F1E6D2; margin: 8px 0 7px; overflow: hidden; }
.fd-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFCB75, #E8973A); }
.fd-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fd-row {
  padding: 6px 2px; border-radius: 8px; border: 1px solid #F0E2C9; background: #FBF5E9;
  text-align: center; line-height: 1.25;
}
.fd-row b { display: block; font-size: 9px; color: #7A5A34; }
.fd-row span { display: inline-flex; align-items: center; gap: 1px; font-size: 9px; color: #B0762A; }
.fd-row span .it { width: 9px; height: 9px; }
.fd-row i { display: block; font-style: normal; font-size: 7.5px; color: var(--dim); margin-top: 1px; }
.fd-row.can { border-color: #E8A24C; background: #FFF6E6; box-shadow: 0 0 0 2px rgba(232,150,60,.12); }
.fd-row.can i { color: #C0632A; font-weight: 700; }
.fd-row.done { opacity: .55; }
.fd-row.lock { opacity: .6; }

/* ══════════ 七日签到 ══════════ */
.sg-hint {
  font-size: 10px; color: #7A6A56; margin-bottom: 12px; padding: 7px 10px;
  background: #FBF3E4; border-radius: 9px; border: 1px solid #F0E2C9;
}
.sg-hint b { color: #C0632A; }
.sg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; margin-top: 2px; }
.sg-cell {
  position: relative; padding: 7px 3px; border-radius: 10px; text-align: center;
  background: #FBF5E9; border: 1px solid #F0E2C9; line-height: 1.3;
}
.sg-cell b { display: block; font-size: 9px; color: #7A5A34; margin-bottom: 3px; }
.sg-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.sg-items span { display: inline-flex; align-items: center; gap: 1px; font-size: 7.5px; color: #8A6A44; }
.sg-items .it { width: 9px; height: 9px; }
.sg-cell.today { border-color: #E8A24C; background: #FFF6E6; box-shadow: 0 0 0 2px rgba(232,150,60,.15); }
.sg-cell.done { opacity: .55; }
.sg-ok, .sg-today {
  position: absolute; right: 3px; top: -6px; font-style: normal; font-size: 7px;
  border-radius: 5px; padding: 0 4px; color: #fff; line-height: 12px;
}
.sg-ok { background: #9C8A70; }
.sg-today { background: linear-gradient(160deg, #F5A94E, #E07B22); }

/* ══════════ 试炼秘境 · 卡片墙 ══════════ */
.tdg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.tdg {
  position: relative; display: flex; flex-direction: column;
  border-radius: 15px; overflow: hidden;
  background: #FFFDF8; border: 1px solid #EFE0C8;
  box-shadow: 0 6px 16px rgba(120,86,40,.12), 0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tdg:active { transform: scale(.975); }
.tdg.done { opacity: .92; }

/* 图片区：大图 + 彩色光晕 + 暗角 */
.tdg-art {
  position: relative; height: 122px; overflow: hidden;
  background: #2A1B10;
}
.tdg-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.08) contrast(1.04) brightness(1.05);
  transform: scale(1.02);
}
.tdg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,10,4,0) 0%, rgba(20,10,4,.16) 58%, rgba(20,10,4,.62) 100%);
}
.tdg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 18% 12%, color-mix(in srgb, var(--dc) 55%, transparent) 0%, transparent 62%),
    radial-gradient(90% 70% at 92% 96%, color-mix(in srgb, var(--dc) 38%, transparent) 0%, transparent 60%);
  mix-blend-mode: screen; opacity: .8;
}
.tdg-orb {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  border: 1px solid color-mix(in srgb, var(--dc) 50%, #fff);
  box-shadow: 0 3px 10px rgba(20,10,0,.35), 0 0 12px color-mix(in srgb, var(--dc) 55%, transparent);
  backdrop-filter: blur(3px);
}
.tdg-orb .it { width: 17px; height: 17px; color: var(--dc); }
.tdg-floor {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  font-size: 8.5px; font-weight: 700; letter-spacing: .06em; color: #fff;
  padding: 2px 7px; border-radius: 999px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--dc) 92%, #fff), color-mix(in srgb, var(--dc) 72%, #000));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--dc) 55%, transparent), 0 1px 0 rgba(255,255,255,.35) inset;
}
.tdg.done .tdg-floor { background: linear-gradient(160deg, #8FD3A6, #4E9C74); box-shadow: 0 2px 8px rgba(78,156,116,.5); }
.tdg-pow {
  position: absolute; right: 8px; bottom: 9px; z-index: 3;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8px; color: #FFF0D2; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.tdg-pow svg { width: 9px; height: 9px; }

/* 信息区 */
.tdg-body { padding: 7px 9px 0; }
.tdg-name {
  font-family: var(--serif); font-size: 14px; color: #43301C; letter-spacing: .1em;
  line-height: 1.2;
}
.tdg-sub { font-size: 8px; color: var(--dim); margin-top: 1px; letter-spacing: .04em; }
.tdg-pips { display: flex; gap: 3px; margin-top: 6px; }
.tdg-pips i {
  flex: 1; height: 4px; border-radius: 3px; background: #EFE2CB;
  transition: background .2s ease;
}
.tdg-pips i.on { background: linear-gradient(90deg, var(--dc), color-mix(in srgb, var(--dc) 55%, #fff)); }
.tdg-pips i.next { background: #EFE2CB; box-shadow: 0 0 0 1px var(--dc) inset; }
.tdg-meta { font-size: 8px; color: var(--dim); margin-top: 5px; letter-spacing: -.01em; }
.tdg-meta b { color: #B0762A; font-weight: 700; }

/* 按钮 */
.tdg-acts { display: flex; gap: 5px; padding: 7px 9px 9px; margin-top: auto; }
.tdg-btn {
  flex: 1; min-width: 0; padding: 7px 2px; border-radius: 9px; border: none;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #F7A94C, #DF7A20);
  box-shadow: 0 3px 8px rgba(223,122,32,.32), 0 1px 0 rgba(255,255,255,.35) inset;
  white-space: nowrap;
}
.tdg-btn svg { width: 10px; height: 10px; flex: 0 0 auto; }
.tdg-btn.sweep {
  background: #FFF8EC; color: #8C6A2E;
  border: 1px solid #EBD5AC; box-shadow: none;
}
.tdg-btn[disabled] { background: #E7DCC9; color: #A08F76; box-shadow: none; border-color: #E2D6C2; }
.tdg-btn.sweep[disabled] { background: #F2EBDD; color: #B6A78F; border-color: #E6DCCC; }

/* ══════════ 活动中心卡片墙 ══════════ */
.ev-hero .mn-bg { object-position: 50% 42%; }
.evc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.evc {
  position: relative; border-radius: 15px; overflow: hidden;
  background: #FFFDF8; border: 1px solid #EFE0C8;
  box-shadow: 0 6px 16px rgba(120,86,40,.13);
  transition: transform .16s ease;
}
.evc:active { transform: scale(.975); }
.evc-art { position: relative; height: 108px; overflow: hidden; background: #2A1B10; }
.evc-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.08) brightness(1.04); }
.evc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,9,3,.02) 0%, rgba(18,9,3,.2) 55%, rgba(18,9,3,.66) 100%); }
.evc-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .75;
  background:
    radial-gradient(115% 80% at 15% 8%, color-mix(in srgb, var(--c1) 60%, transparent) 0%, transparent 62%),
    radial-gradient(90% 70% at 95% 100%, color-mix(in srgb, var(--c2) 45%, transparent) 0%, transparent 60%);
}
.evc-tag {
  position: absolute; right: 7px; top: 7px; z-index: 3;
  font-size: 7.5px; font-weight: 700; color: #fff; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 999px;
  background: linear-gradient(160deg, #FF9B6A, #D8402B);
  box-shadow: 0 2px 8px rgba(216,64,43,.45);
}
.evc-tag.hot { background: linear-gradient(160deg, #FFD98A, #E07A1E); color: #4A2A05; }
.evc-dot {
  position: absolute; left: 7px; top: 7px; z-index: 3;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  font-size: 8.5px; font-weight: 800; color: #fff; display: grid; place-items: center;
  background: #E0503A; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 2px 8px rgba(224,80,58,.5);
}
.evc-go {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 8.5px; color: #FFF3DA; letter-spacing: .04em;
  background: rgba(30,16,6,.5); border: 1px solid rgba(255,225,175,.3);
  border-radius: 999px; padding: 2px 8px; backdrop-filter: blur(3px);
}
.evc-go svg { width: 9px; height: 9px; }
.evc-body { padding: 7px 9px 9px; }
.evc-name { font-family: var(--serif); font-size: 14px; color: #43301C; letter-spacing: .1em; }
.evc-sub { font-size: 8px; color: var(--dim); margin-top: 1px; }
.evc-stat { font-size: 8px; color: #B0762A; font-weight: 700; margin-top: 5px; }

/* ══════════ 天命战令 ══════════ */
.ps-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 10px; min-height: 156px; display: flex; align-items: flex-end; box-shadow: 0 8px 22px rgba(60,40,20,.22); }
.ps-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,6,2,.42) 0%, rgba(12,6,2,.72) 46%, rgba(12,6,2,.94) 100%); }
.ps-in { position: relative; z-index: 2; padding: 13px 14px 14px; width: 100%; }
.ps-top { display: flex; align-items: baseline; gap: 8px; }
.ps-top b { font-family: var(--serif); font-size: 18px; color: #FFE2B0; letter-spacing: .16em; text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.ps-top em { font-style: normal; font-size: 9px; color: #E7C89A; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.ps-bar { height: 7px; border-radius: 6px; background: rgba(0,0,0,.42); margin-top: 10px; overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFD98A, #FF8A4C); box-shadow: 0 0 10px rgba(255,170,90,.6); transition: width .4s ease; }
.ps-exp { font-size: 8.5px; color: #C9AE86; margin-top: 5px; }
.ps-acts { display: flex; gap: 6px; margin-top: 9px; }
.ps-buy {
  flex: 1; padding: 8px 0; border-radius: 10px; border: none;
  font-size: 11.5px; font-weight: 800; color: #4A2A05;
  background: linear-gradient(180deg, #FFE08A, #E8A93C);
  box-shadow: 0 3px 10px rgba(232,169,60,.4);
}
.ps-owned {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 8px 0; border-radius: 10px; font-size: 10.5px; color: #FFD98A;
  background: rgba(255,215,140,.14); border: 1px solid rgba(255,215,140,.28);
}
.ps-owned svg { width: 12px; height: 12px; }
.ps-claimAll {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28);
  font-size: 10.5px; color: #FFF3DA; background: rgba(255,255,255,.1);
}
.ps-list { display: flex; flex-direction: column; gap: 6px; }
.ps-row { display: flex; align-items: stretch; gap: 6px; }
.ps-row.lock { opacity: .55; }
.ps-lv {
  flex: 0 0 34px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #F6EAD6; border: 1px solid #EBD9BC;
}
.ps-lv b { font-size: 13px; color: #8A5A1E; line-height: 1; }
.ps-lv i { font-style: normal; font-size: 7px; color: #B29C7C; margin-top: 1px; }
.ps-row.big .ps-lv { background: linear-gradient(160deg, #FFE2A8, #E8A93C); border-color: transparent; }
.ps-row.big .ps-lv b { color: #4A2A05; font-size: 14px; }
.ps-cell {
  position: relative; flex: 1; min-width: 0; text-align: left;
  padding: 6px 7px; border-radius: 10px;
  background: #FFFDF8; border: 1px solid #EFE0C8;
}
.ps-cell.paid { background: #FFF8E9; border-color: #EBD5AC; }
.ps-cell.can { border-color: #E8A24C; box-shadow: 0 0 0 2px rgba(232,150,60,.16); }
.ps-cell.got { opacity: .55; }
.ps-cell.off { opacity: .6; }
.ps-tag {
  display: inline-block; font-size: 7px; font-weight: 700; border-radius: 4px;
  padding: 0 4px; margin-bottom: 3px; color: #fff;
}
.ps-tag.free { background: #8FA9C7; }
.ps-tag.vip { background: linear-gradient(160deg, #F0B45C, #D9832A); }
.ps-items { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.ps-items b { font-size: 8px; color: #6B5334; font-weight: 600; }
.ps-items .it { width: 10px; height: 10px; }
.ps-ok {
  position: absolute; right: 5px; top: 4px; font-style: normal; font-size: 7px;
  color: #9C8A70; background: #F0E7D8; border-radius: 4px; padding: 0 4px;
}

/* ══════════ 限时礼包 ══════════ */
.pk-list { display: flex; flex-direction: column; gap: 8px; }
.pk-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 13px;
  background: linear-gradient(120deg, #FFF8E8, #FBECD2); border: 1px solid #EFDCB8;
}
.pk-l { flex: 1; min-width: 0; }
.pk-name { font-size: 13px; color: #5C3F1E; letter-spacing: .06em; display: flex; align-items: baseline; gap: 6px; }
.pk-was { font-size: 9px; color: #B9A88E; text-decoration: line-through; }
.pk-desc { font-size: 8.5px; color: #93795A; margin-top: 3px; line-height: 1.4; }
.pk-off {
  display: inline-block; margin-top: 4px; font-size: 7.5px; color: #fff;
  background: linear-gradient(160deg, #FF9B6A, #D8402B); border-radius: 4px; padding: 1px 5px;
}
.pk-buy {
  flex: 0 0 auto; min-width: 62px; padding: 9px 8px; border-radius: 11px; border: none;
  font-size: 13px; font-weight: 800; color: #4A2A05;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
  box-shadow: 0 3px 10px rgba(232,169,60,.35);
}
.pk-buy i { font-style: normal; font-size: 9px; margin-right: 1px; }
.pk-buy.done { background: #E7DCC9; color: #9C8A70; font-size: 9px; box-shadow: none; }

/* ══════════ 累充返利 ══════════ */
.rb-list { display: flex; flex-direction: column; gap: 7px; }
.rb-row { padding: 9px 10px; border-radius: 12px; background: #FFFDF8; border: 1px solid #EFE0C8; }
.rb-row.got { opacity: .6; }
.rb-top { display: flex; align-items: baseline; }
.rb-top b { font-size: 11.5px; color: #5C3F1E; }
.rb-top span { margin-left: auto; font-size: 8.5px; color: #B0762A; }
.rb-bar { height: 5px; border-radius: 5px; background: #F1E6D2; margin: 6px 0; overflow: hidden; }
.rb-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FFCB75, #E8973A); }
.rb-bot { display: flex; align-items: center; gap: 6px; }
.rb-give { display: flex; align-items: center; gap: 3px; flex: 1; }
.rb-give b { font-size: 9.5px; color: #6B5334; }
.rb-give .it { width: 11px; height: 11px; }

/* ══════════ 在线奖励 ══════════ */
.on-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.on-cell {
  padding: 7px 2px; border-radius: 10px; text-align: center;
  background: #FBF5E9; border: 1px solid #F0E2C9;
}
.on-cell b { display: block; font-size: 8.5px; color: #7A5A34; }
.on-give { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; margin: 4px 0 2px; }
.on-give span { font-size: 7px; color: #8A6A44; }
.on-give .it { width: 8px; height: 8px; }
.on-cell i { font-style: normal; font-size: 7px; color: var(--dim); }
.on-cell.can { border-color: #E8A24C; background: #FFF6E6; box-shadow: 0 0 0 2px rgba(232,150,60,.14); }
.on-cell.can i { color: #C0632A; font-weight: 700; }
.on-cell.got { opacity: .55; }

/* 活动弹层小横幅 */
.ev-mine-hero { position: relative; border-radius: 12px; overflow: hidden; height: 96px; margin-bottom: 8px; }
.ev-mine-hero img { width: 100%; height: 100%; object-fit: cover; }
.ev-mine-hero s { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(20,10,4,.7)); }
.evh-t, .emh-t { position: absolute; left: 10px; bottom: 9px; font-family: var(--serif); font-size: 14px; color: #FFE8BE; letter-spacing: .1em; }

/* ══════════ 战令 · 网格轨道 ══════════ */
.ps-legend { display: flex; align-items: center; gap: 6px; margin: 11px 0 7px; font-size: 8px; color: var(--dim); }
.ps-legend .lg { padding: 2px 8px; border-radius: 6px; font-size: 7.5px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.ps-legend .lg.free { background: #8FA9C7; }
.ps-legend .lg.paid { background: linear-gradient(160deg, #F0B45C, #D9832A); }
.ps-legend i { font-style: normal; margin-left: auto; font-size: 7.5px; opacity: .85; }

.ps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.psnode {
  border-radius: 11px; overflow: hidden; background: #FFFDF8;
  border: 1px solid #EFE0C8; box-shadow: 0 2px 7px rgba(120,86,40,.07);
  display: flex; flex-direction: column;
}
.psnode.lock { opacity: .5; }
.psnode.cur { border-color: #E8A24C; box-shadow: 0 0 0 2px rgba(232,150,60,.18), 0 3px 10px rgba(232,150,60,.18); }
.psnode-lv {
  position: relative; text-align: center; font-size: 9.5px; font-weight: 800; color: #8A5A1E;
  background: #F8EEDC; padding: 2px 0; letter-spacing: .02em; line-height: 1.4;
}
.psnode.cur .psnode-lv { background: linear-gradient(180deg, #FFD98A, #EFA23C); color: #4A2A05; }
.psnode-lv em {
  position: absolute; right: 2px; top: 1px; font-style: normal;
  font-size: 6.5px; color: #C0632A; background: #FFE9C4; border-radius: 3px; padding: 0 2px;
}
.psc {
  position: relative; display: block; width: 100%; padding: 4px 2px;
  border: none; background: transparent; min-height: 30px;
  border-top: 1px dashed #F1E6D2;
}
.psc.free { background: #F7FAFE; }
.psc.paid { background: #FFF9EC; }
.psnode.nobuy .psc.paid { background: #F3EEE5; }
.psc.can { background: #FFF1D8; box-shadow: inset 0 0 0 1.5px #E8A24C; animation: pscPulse 2s ease-in-out infinite; }
@keyframes pscPulse { 0%,100% { background-color: #FFF1D8; } 50% { background-color: #FFE7BE; } }
.psc.got { opacity: .5; }
.psc-items { display: flex; flex-direction: column; align-items: center; gap: 1px; font-style: normal; }
.psc-items span { display: inline-flex; align-items: center; gap: 1px; font-size: 7px; color: #6B5334; line-height: 1.2; }
.psc-items .it { width: 8px; height: 8px; }
.psc-ok {
  position: absolute; right: 2px; top: 2px; font-size: 7px; color: #3F8A5E; font-weight: 700;
}

/* 活动弹层顶部横幅 */
.sh-hero { position: relative; height: 94px; border-radius: 13px; overflow: hidden; margin: -2px 0 11px; background: #2A1B10; }
.sh-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero s { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,7,2,.12) 0%, rgba(14,7,2,.5) 58%, rgba(14,7,2,.85) 100%); }
.sh-hero b {
  position: absolute; left: 12px; bottom: 21px; font-family: var(--serif); font-size: 16px;
  color: #FFE8BE; letter-spacing: .16em; text-shadow: 0 2px 10px rgba(0,0,0,.8);
}
.sh-hero i {
  position: absolute; left: 12px; bottom: 7px; font-style: normal; font-size: 8.5px;
  color: rgba(255,236,208,.8); letter-spacing: .02em;
}

/* 同盟商店卡片 */
.ash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ash { border-radius: 13px; overflow: hidden; background: #FFFDF8; border: 1px solid #EFE0C8; box-shadow: 0 4px 12px rgba(120,86,40,.1); }
.ash.sold { opacity: .6; }
.ash-art { position: relative; height: 88px; background: #2A1B10; }
.ash-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.06) brightness(1.03); }
.ash-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,7,2,.05), rgba(14,7,2,.72)); }
.ash-name {
  position: absolute; left: 9px; bottom: 7px; font-size: 11.5px; color: #FFEBCB;
  letter-spacing: .06em; text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.ash-foot { display: flex; align-items: center; gap: 5px; padding: 7px 8px; }
.ash-cost { display: inline-flex; align-items: center; gap: 2px; font-size: 9.5px; color: #8A6A44; }
.ash-cost b { color: #B0762A; font-size: 11px; }
.ash-cost .it { width: 11px; height: 11px; }
.ash-buy {
  margin-left: auto; padding: 5px 10px; border-radius: 8px; border: none;
  font-size: 9.5px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #F5A94E, #E07B22);
  box-shadow: 0 2px 6px rgba(224,123,34,.3);
}
.ash-buy.poor { background: #D9CDB9; box-shadow: none; }
.ash-buy.done { background: #E7DCC9; color: #9C8A70; box-shadow: none; }

/* 将魂商店价格行 */
.sh-price { display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 9px; color: #8A6A44; margin-top: 2px; }
.sh-price b { color: #B0762A; font-size: 10.5px; }
.sh-price .it { width: 10px; height: 10px; }

/* ══════════ 抽卡池切换 ══════════ */
.gq-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.gq-t {
  flex: 1; padding: 9px 0; border-radius: 11px; border: 1px solid #EBD9BC;
  background: #F9F1E1; color: #8A7152; font-size: 11.5px; letter-spacing: .1em;
}
.gq-t.on { background: linear-gradient(180deg, #FFCB75, #EFA23C); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(232,150,60,.3); }
.gq-t.up.on { background: linear-gradient(180deg, #FF8A6A, #C93A2E); box-shadow: 0 3px 10px rgba(201,58,46,.35); }

/* ══════════ 限定池 ══════════ */
.up-hero {
  position: relative; border-radius: 16px; overflow: hidden; height: 238px;
  display: flex; align-items: flex-end; margin-bottom: 10px;
  box-shadow: 0 10px 26px rgba(40,10,6,.35);
}
.up-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.up-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,6,4,.25) 0%, rgba(30,6,4,.55) 52%, rgba(24,4,3,.92) 100%); }
.up-rays {
  position: absolute; inset: 0; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(60% 55% at 50% 30%, rgba(255,190,120,.55), transparent 70%);
}
.up-sp {
  position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%);
  width: 186px; height: 208px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.55));
  animation: upFloat 3.6s ease-in-out infinite;
}
.up-sp img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
@keyframes upFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
.up-info { position: relative; z-index: 3; padding: 0 14px 12px; width: 100%; }
.up-season { font-family: var(--serif); font-size: 11px; color: #FFD98A; letter-spacing: .18em; }
.up-title { font-family: var(--serif); font-size: 21px; color: #FFF3DA; letter-spacing: .14em; margin-top: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.85); display: flex; align-items: baseline; gap: 7px; }
.up-title em { font-style: normal; font-size: 8.5px; color: #FFC9A8; letter-spacing: .1em; }
.up-left { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: #FFC9A8; margin-top: 4px; }
.up-left svg { width: 9px; height: 9px; }
.up-badge {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  font-size: 9px; font-weight: 900; letter-spacing: .1em; color: #4A1004;
  padding: 3px 9px; border-radius: 8px;
  background: linear-gradient(160deg, #FFE08A, #FF8A4C);
  box-shadow: 0 3px 10px rgba(255,120,60,.5);
}
.up-side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.up-s {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 12px;
  background: #FFFDF8; border: 1px solid #EFE0C8;
}
.up-s.own { opacity: .68; }
.up-s-art {
  width: 42px; height: 48px; border-radius: 9px; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 22%, #FFF8EE), #F3E7D2);
}
.up-s-art img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.up-s b { font-size: 11px; color: #43301C; display: block; }
.up-s i { font-style: normal; font-size: 8px; color: var(--dim); }

.up-pity { padding: 10px 12px; border-radius: 12px; background: #FFF6E6; border: 1px solid #EBD5AC; margin-bottom: 9px; }
.up-pity-t { font-size: 10.5px; color: #7A5A34; }
.up-pity-t b { color: #C93A2E; font-size: 15px; font-weight: 800; margin-right: 2px; }
.up-pity-bar { height: 6px; border-radius: 6px; background: #F3E4CB; margin: 7px 0 5px; overflow: hidden; }
.up-pity-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #FFB36A, #E0503A); transition: width .4s ease; }
.up-pity-s { font-size: 8px; color: var(--dim); }

.up-miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.up-mile { padding: 7px 6px; border-radius: 10px; background: #FBF5E9; border: 1px solid #F0E2C9; text-align: center; }
.up-mile b { display: block; font-size: 9.5px; color: #8A5A1E; }
.up-mile span { display: inline-flex; align-items: center; gap: 2px; font-size: 8px; color: #8A6A44; margin-top: 3px; }
.up-mile span .it { width: 9px; height: 9px; }
.up-mile i { display: block; font-style: normal; font-size: 7.5px; color: var(--dim); margin-top: 2px; }
.up-mile.can { border-color: #E8A24C; background: #FFF6E6; }
.up-mile.can i { color: #C0632A; font-weight: 700; }
.up-mile.got { opacity: .55; }

/* ══════════ 战令每日任务 ══════════ */
.pt-box { margin-top: 10px; padding: 10px 11px; border-radius: 13px; background: #FFFDF8; border: 1px solid #EFE0C8; }
.pt-h { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #5C3F1E; letter-spacing: .06em; margin-bottom: 8px; }
.pt-h svg { width: 12px; height: 12px; color: #C08A24; }
.pt-h i { margin-left: auto; font-style: normal; font-size: 8.5px; color: var(--dim); }
.pt-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.pt-row + .pt-row { border-top: 1px dashed #F1E6D2; }
.pt-n { flex: 1; min-width: 0; font-size: 10px; color: #6B5334; }
.pt-n i { font-style: normal; font-size: 8.5px; color: var(--dim); margin-left: 5px; }
.pt-bar { width: 54px; height: 4px; border-radius: 4px; background: #F1E6D2; overflow: hidden; }
.pt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FFCB75, #E8973A); }
.pt-btn {
  flex: 0 0 auto; min-width: 42px; padding: 4px 8px; border-radius: 7px; border: none;
  font-size: 9px; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #F5A94E, #E07B22);
}
.pt-btn.can { box-shadow: 0 2px 8px rgba(224,123,34,.4); }
.pt-btn.done, .pt-btn[disabled] { background: #E7DCC9; color: #9C8A70; box-shadow: none; }
.pt-row.can .pt-btn { animation: pscPulse 2s ease-in-out infinite; }

.gc-up {
  position: absolute; left: 6px; top: 6px; z-index: 4;
  font-size: 8px; font-weight: 900; letter-spacing: .06em; color: #4A1004;
  padding: 1px 5px; border-radius: 5px;
  background: linear-gradient(160deg, #FFE08A, #FF8A4C);
  box-shadow: 0 2px 8px rgba(255,120,60,.55);
}
.evc-tag.up { background: linear-gradient(160deg, #FFE08A, #E0503A); color: #4A1004; font-weight: 900; }

/* ══════════ 一键变强 ══════════ */
.pw-boost {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(120deg, #2E2116 0%, #4A3220 58%, #5E3C22 100%);
  box-shadow: 0 6px 16px rgba(60,36,12,.22), inset 0 1px 0 rgba(255,220,160,.16);
  margin-bottom: 10px;
}
.pb-l { flex: 1; min-width: 0; }
.pb-pow { display: flex; align-items: center; gap: 4px; color: #FFD98A; font-size: 10px; }
.pb-pow svg { width: 12px; height: 12px; }
.pb-pow b { font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pb-pow i { font-style: normal; font-size: 8.5px; color: #C9AE86; }
.pb-tip { font-size: 8.5px; color: #BCA084; margin-top: 2px; }
.pb-go {
  flex: 0 0 auto; padding: 9px 13px; border-radius: 11px; border: none;
  font-size: 11.5px; font-weight: 800; color: #3A1600;
  background: linear-gradient(180deg, #FFD98A, #E8A93C);
  box-shadow: 0 3px 10px rgba(232,169,60,.4), inset 0 1px 0 rgba(255,255,255,.5);
  display: inline-flex; align-items: center; gap: 3px;
}
.pb-go svg { width: 12px; height: 12px; }

.pbr-total {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 22px; font-weight: 800; color: #B0762A; padding: 8px 0 10px;
  font-variant-numeric: tabular-nums;
}
.pbr-total svg { width: 18px; height: 18px; }
.pbr-total em { font-style: normal; font-size: 9px; color: var(--dim); font-weight: 400; margin-left: 3px; }
.pbr-list { display: flex; flex-direction: column; gap: 4px; }
.pbr {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  background: #FFFDF8; border: 1px solid #EFE0C8; border-radius: 9px; font-size: 10px;
}
.pbr span { color: #8A7152; }
.pbr b { margin-left: auto; color: #5C3F1E; font-size: 11px; }
.pbr i { font-style: normal; font-size: 8px; color: #C0632A; min-width: 34px; text-align: right; }
.pbr i.ok { color: #3F8A5E; }
.pbr.no { border-color: #F0C9B4; background: #FFF8F4; }

.bt-gap {
  font-size: 9.5px; color: #D8B48A; text-align: center; margin-bottom: 8px;
  background: rgba(255,214,160,.1); border: 1px solid rgba(255,214,160,.2);
  border-radius: 8px; padding: 5px 8px;
}
.bt-gap b { color: #FF9E6A; font-size: 11px; }

/* 主城限定池横幅 */
.up-banner {
  position: absolute; left: 10px; right: 10px; top: 58px; z-index: 9;
  display: block; height: 62px;
  border-radius: 13px; overflow: hidden; border: none; text-align: left;
  box-shadow: 0 6px 16px rgba(80,20,10,.3);
}
.up-banner .ubbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.up-banner .ubveil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40,8,4,.9) 0%, rgba(40,8,4,.55) 62%, rgba(40,8,4,.2) 100%);
}
.up-banner .ubtag {
  position: absolute; left: 10px; top: 9px; font-size: 7.5px; font-weight: 900;
  color: #4A1004; padding: 1px 6px; border-radius: 5px; letter-spacing: .06em;
  background: linear-gradient(160deg, #FFE08A, #FF8A4C);
}
.up-banner .ubtxt { position: absolute; left: 10px; bottom: 10px; }
.up-banner .ubtxt b {
  display: block; font-family: var(--serif); font-size: 13.5px; color: #FFF3DA; letter-spacing: .1em;
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.up-banner .ubtxt i { display: block; font-style: normal; font-size: 8px; color: #FFC9A8; margin-top: 1px; }
.up-banner .ubgo {
  position: absolute; right: 10px; bottom: 12px; font-size: 9.5px; color: #4A1004; font-weight: 800;
  background: linear-gradient(180deg, #FFE08A, #E8A93C); border-radius: 20px; padding: 3px 9px;
}

/* 主城「限定」入口 */
.he-btn.up {
  background: linear-gradient(160deg, #FFD98A, #E0503A);
  box-shadow: 0 4px 12px rgba(224,80,58,.4), inset 0 1px 0 rgba(255,255,255,.5);
  position: relative;
}
.he-btn.up span { color: #4A1004; font-weight: 800; }
.he-btn.up svg { color: #4A1004; }
.he-up {
  position: absolute; right: -3px; top: -5px; font-style: normal;
  font-size: 6.5px; font-weight: 900; color: #4A1004;
  background: #FFE08A; border-radius: 4px; padding: 0 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* ══════════ 封神台赛季 ══════════ */
.ar-season {
  margin-top: 8px; padding: 9px 11px; border-radius: 12px;
  background: linear-gradient(120deg, #2A1B10, #4A3220);
  box-shadow: 0 5px 14px rgba(60,36,12,.2), inset 0 1px 0 rgba(255,220,160,.15);
}
.as-l { display: flex; align-items: center; gap: 5px; }
.as-l svg { width: 13px; height: 13px; color: #FFD98A; }
.as-l b { font-size: 11.5px; color: #FFE2B0; letter-spacing: .08em; }
.as-l i { margin-left: auto; font-style: normal; font-size: 8.5px; color: #C9AE86; }
.as-r { font-size: 8.5px; color: #BCA084; margin-top: 3px; }
.as-r b { color: #FFD98A; font-size: 11px; }
.as-prize {
  display: flex; align-items: center; gap: 3px; margin-top: 6px; padding-top: 6px;
  border-top: 1px solid rgba(255,225,170,.14); font-size: 8px; color: #C9AE86;
}
.as-prize b { color: #FFD98A; font-size: 9px; }
.as-prize .it { width: 10px; height: 10px; }
.as-prize em { margin-left: auto; font-style: normal; color: #E7C89A; font-size: 8px; }
.cv-off-t i { font-style: normal; font-size: 8px; color: #C9AE86; margin-left: 5px; }

/* ══════════ UP 降临演出 ══════════ */
.gc-upb {
  position: absolute; left: 0; right: 0; top: 8%; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none; animation: upbIn .5s cubic-bezier(.2,.9,.3,1) both;
}
.gc-upb b {
  font-family: var(--serif); font-size: 26px; letter-spacing: .3em; text-indent: .3em;
  color: #FFF3D0;
  text-shadow: 0 0 14px rgba(255,190,90,.95), 0 0 34px rgba(255,140,50,.8), 0 3px 10px rgba(0,0,0,.6);
  animation: upbGlow 1.6s ease-in-out infinite;
}
.gc-upb i {
  font-style: normal; font-size: 9px; letter-spacing: .2em;
  color: #FFD98A; background: rgba(60,20,4,.5);
  padding: 2px 10px; border-radius: 20px; border: 1px solid rgba(255,215,140,.4);
}
@keyframes upbIn {
  0% { transform: scale(.6) translateY(-14px); opacity: 0; filter: blur(6px); }
  60% { transform: scale(1.08); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes upbGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(255,190,90,.9), 0 0 34px rgba(255,140,50,.7), 0 3px 10px rgba(0,0,0,.6); }
  50% { text-shadow: 0 0 22px rgba(255,215,140,1), 0 0 52px rgba(255,170,70,.9), 0 3px 12px rgba(0,0,0,.7); }
}

/* 导航红点改成带数字 */
.nav-dot {
  position: absolute; right: 4px; top: 2px;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; font-size: 8px; line-height: 14px; text-align: center;
  font-style: normal; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, #FF7A5C, #D8402B);
  box-shadow: 0 0 0 1.5px #FFF6E6, 0 2px 6px rgba(216,64,43,.5);
}

.as-next {
  display: flex; align-items: center; gap: 3px; margin-top: 5px;
  font-size: 8px; color: #C9AE86;
}
.as-next b { color: #FFD98A; font-size: 10px; }
.as-next .it { width: 9px; height: 9px; }
.as-next.done { color: #8FD3A6; }

/* ══════════════════════════════════════════════════════════
   v1.82.0 仙道同行：同盟 / 仙友 / 封神榜（服务器版）
   ══════════════════════════════════════════════════════════ */
.soc-wrap { padding-bottom: 22px; }
.soc-wrap .pad { padding: 0; }        /* 单机同盟页嵌进来时不要再套一层内边距 */

.soc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.soc-net {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 11px;
  background: #F3EADA; border: 1.5px solid #E7D9C0;
  font-size: 9.5px; color: #9A8570; letter-spacing: .5px; font-weight: 700;
}
.soc-net i { width: 6px; height: 6px; border-radius: 50%; background: #C9B79C; }
.soc-net.on { background: linear-gradient(180deg, #EAF7F2, #DCF1E9); border-color: #A9DCCB; color: #2C7A63; }
.soc-net.on i { background: #3FA796; box-shadow: 0 0 0 3px rgba(63,167,150,.18); animation: socPulse 2s ease-in-out infinite; }
@keyframes socPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.soc-hero {
  position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 10px;
  padding: 14px 16px 15px;
  background:
    radial-gradient(120% 150% at 12% 0%, rgba(255,238,196,.95), transparent 62%),
    linear-gradient(118deg, #FFF6E2, #FBE7C4 58%, #F6DDB4);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 14px rgba(190,140,70,.16), inset 0 1px 0 rgba(255,255,255,.8);
}
.sh-glow {
  position: absolute; right: -30px; top: -36px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,206,120,.55), transparent 66%);
  animation: shGlow 5.5s ease-in-out infinite;
}
@keyframes shGlow { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.14); opacity: 1; } }
.sh-t { position: relative; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 3px; color: #6B4218; }
.sh-s { position: relative; margin-top: 3px; font-size: 10.5px; color: #9A7248; letter-spacing: .6px; }

.soc-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.soc-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 7px; border-radius: 12px; cursor: pointer;
  background: #FFFDF8; border: 2px solid #EADFCB;
  color: #9A8570; transition: transform .12s, background .18s, border-color .18s;
}
.soc-tab svg { width: 17px; height: 17px; }
.soc-tab span { font-size: 10px; font-weight: 700; letter-spacing: .8px; font-family: var(--serif); }
.soc-tab.on {
  background: linear-gradient(180deg, #FFEFC9, #F7DDA6);
  border-color: #E7B96A; color: #7A4A12;
  box-shadow: 0 3px 10px rgba(200,150,60,.22), inset 0 1px 0 rgba(255,255,255,.7);
}
.soc-tab:active { transform: scale(.96); }

.soc-card {
  background: var(--card); border: 2px solid var(--line); border-radius: 15px;
  padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.soc-card.tight { padding: 11px 12px; }
.sc-t {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--serif); font-size: 13px; font-weight: 700; letter-spacing: 1.4px; color: #7A5430;
}
.sc-t svg { width: 15px; height: 15px; color: #C08A3A; }
.sc-t.small { font-size: 12px; letter-spacing: 1px; }
.sc-d { margin-top: 4px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.sc-row { display: flex; gap: 8px; margin-top: 9px; }
.sc-row .redeem-in { flex: 1; }
.sc-warn { margin-top: 6px; font-size: 10px; color: #C25A4A; }
.soc-note { margin-top: 10px; text-align: center; font-size: 9px; color: var(--dim); line-height: 1.7; }

.soc-notice {
  display: flex; gap: 7px; align-items: flex-start; margin-bottom: 10px;
  padding: 9px 11px; border-radius: 12px;
  background: #FFF9EC; border: 1.5px dashed #E7CFA4;
  font-size: 10.5px; color: #8C6A3E; line-height: 1.6;
}
.soc-notice svg { width: 14px; height: 14px; flex: 0 0 auto; color: #C08A3A; margin-top: 1px; }

/* 离线 / 空态 */
.soc-off {
  text-align: center; padding: 22px 18px 18px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(180deg, #FFFDF8, #FFF6E8);
  border: 2px dashed #E7D6BB;
}
.so-ring {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, #FFEFC9, #F7DFB0);
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(200,160,90,.25);
}
.so-ring svg { width: 24px; height: 24px; color: #B4802E; }
.soc-off b { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: 1.5px; color: #6B4218; }
.soc-off p { margin: 7px 0 10px; font-size: 10.5px; color: var(--muted); line-height: 1.8; }
.so-id { font-size: 10px; color: #8C6A3E; margin-bottom: 10px; }
.so-id code {
  font-family: ui-monospace, Menlo, monospace; background: #F4E8D2;
  padding: 2px 6px; border-radius: 5px; letter-spacing: .5px;
}
.so-addr { margin-top: 10px; font-size: 8.5px; color: var(--dim); word-break: break-all; }
.so-banner {
  margin: 4px 0 8px; padding: 7px 10px; border-radius: 10px;
  background: #FFF6E6; border: 1.5px solid #F0DDBB;
  font-size: 9.5px; color: #A07B48; text-align: center;
}
.soc-empty {
  padding: 24px 16px; text-align: center; border-radius: 14px;
  background: #FFFDF8; border: 2px dashed #EDE0CA;
  font-size: 10.5px; color: var(--muted); line-height: 1.8;
}
.soc-loading { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 30px 0; }
.soc-loading i {
  width: 7px; height: 7px; border-radius: 50%; background: #E0C58E;
  animation: socDot 1s ease-in-out infinite;
}
.soc-loading i:nth-child(2) { animation-delay: .15s; }
.soc-loading i:nth-child(3) { animation-delay: .3s; }
.soc-loading span { margin-left: 5px; font-size: 10px; color: var(--dim); }
@keyframes socDot { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* 同盟列表 */
.al-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; margin-bottom: 8px;
  border-radius: 13px; background: var(--card); border: 2px solid var(--line);
  box-shadow: var(--shadow);
}
.al-badge {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #FFE7B4, #E9A94E); color: #6B3A0C;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(190,140,60,.25);
}
.al-badge svg { width: 19px; height: 19px; }
.al-main { flex: 1; min-width: 0; }
.al-nm { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 13px; font-weight: 700; color: #6B4218; }
.al-nm em { font-style: normal; font-size: 9px; padding: 1px 5px; border-radius: 5px; background: #F4E5C8; color: #A0752E; font-family: var(--sans); }
.al-sub { margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.al-boss { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 9px; color: #A07B48; }
.al-bar { flex: 1; height: 4px; border-radius: 3px; background: #EFE1C7; overflow: hidden; }
.al-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #E9A94E, #D06E14); }
.al-boss b { font-variant-numeric: tabular-nums; color: #B4802E; }

/* 共享 BOSS 的伤害榜 */
.bs-rank { margin-top: 7px; }
.bs-rank-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 0;
  border-bottom: 1px solid #F2E7D3;
}
.bs-rank-row:last-child { border-bottom: 0; }
.bs-rank-row .rk {
  width: 17px; height: 17px; flex: 0 0 auto; border-radius: 5px; display: grid; place-items: center;
  font-size: 9px; font-weight: 800; font-style: normal; background: #F2E7D3; color: #A07B48;
}
.bs-rank-row .rk.top { background: linear-gradient(160deg, #FFD98A, #E09A2A); color: #fff; }
.rk-nm { flex: 1; min-width: 0; font-size: 11px; color: #6B5642; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-nm em { margin-left: 4px; font-style: normal; font-size: 8px; padding: 0 4px; border-radius: 4px; background: #FBEFD8; color: #B4802E; }
.bs-rank-row b { font-size: 11.5px; color: #C07A18; font-variant-numeric: tabular-nums; }
.bs-rank-empty { padding: 10px 0; text-align: center; font-size: 10px; color: var(--dim); }

/* 成员 */
.mb-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 7px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); }
.mb-av {
  position: relative; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: #7A4A12; background: linear-gradient(160deg, #FFEAC2, #F0CE96); border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(190,150,90,.22);
}
.mb-av i { position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: #CBBDA8; border: 1.5px solid #fff; }
.mb-av i.on { background: #3FA796; }
.mb-main { flex: 1; min-width: 0; }
.mb-nm { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #5C4028; }
.mb-nm em { font-style: normal; font-size: 8px; padding: 0 4px; border-radius: 4px; background: #FBEFD8; color: #B4802E; }
.mb-nm span { font-size: 8.5px; color: var(--dim); font-weight: 400; }
.mb-sub { margin-top: 1px; font-size: 9px; color: var(--muted); }
.mb-dmg { text-align: right; flex: 0 0 auto; }
.mb-dmg b { display: block; font-size: 11.5px; color: #C07A18; font-variant-numeric: tabular-nums; }
.mb-dmg i { font-style: normal; font-size: 8px; color: var(--dim); }

/* 仙友 */
.my-id { display: flex; align-items: center; gap: 10px; }
.my-id div { flex: 1; min-width: 0; }
.my-id i { display: block; font-style: normal; font-size: 9px; color: var(--dim); letter-spacing: .5px; }
.my-id b { display: block; margin-top: 2px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: 1.5px; color: #7A4A12; }
.my-stam { margin-left: 8px; font-size: 17px; color: #C07A18; font-variant-numeric: tabular-nums; }

.fr-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; margin-bottom: 7px;
  border-radius: 12px; background: var(--card); border: 1.5px solid var(--line);
}
.fr-row.req { background: #FFFBF0; border-color: #F0DDBA; }
.fr-av {
  position: relative; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 14px; font-weight: 700;
  color: #7A4A12; background: linear-gradient(160deg, #FFEAC2, #F0CE96); border: 2px solid #fff;
}
.fr-av i { position: absolute; right: 0; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: #CBBDA8; border: 1.5px solid #fff; }
.fr-av i.on { background: #3FA796; }
.fr-main { flex: 1; min-width: 0; }
.fr-nm { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #5C4028; }
.fr-nm span { font-size: 8.5px; color: var(--dim); font-weight: 400; }
.fr-sub { margin-top: 1px; font-size: 9px; color: var(--muted); }
.fr-done { font-size: 9.5px; color: #A99070; padding: 0 8px; }
.fr-found { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #EDE0CA; }
.soc-mini {
  margin-left: auto; border: 0; background: #FBEFD8; color: #A0752E;
  font-size: 9px; font-weight: 700; padding: 4px 9px; border-radius: 8px; cursor: pointer;
  font-family: var(--sans);
}

/* 封神榜 */
.rank-me {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  background: linear-gradient(125deg, #4A2E12, #7A4A1C 58%, #9A6428);
  border: 2px solid rgba(255,220,160,.4); color: #FFEFD2;
  box-shadow: 0 6px 18px rgba(90,50,10,.3), inset 0 1px 0 rgba(255,225,170,.35);
}
.rm-glow {
  position: absolute; right: -20px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,120,.35), transparent 68%);
  animation: shGlow 6s ease-in-out infinite;
}
.rm-no, .rm-sc { position: relative; }
.rm-no { flex: 1; }
.rm-no i, .rm-sc i { display: block; font-style: normal; font-size: 9px; color: rgba(255,235,200,.65); letter-spacing: 1px; }
.rm-no b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: #FFD98A; text-shadow: 0 2px 10px rgba(255,180,60,.45); }
.rm-sc { text-align: right; }
.rm-sc b { display: block; font-size: 19px; color: #FFE9B8; font-variant-numeric: tabular-nums; }
.rm-t { flex: 0 0 100%; display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(255,220,170,.22); }
.rm-t i { font-style: normal; font-size: 9.5px; color: rgba(255,235,200,.8); }
.rm-t span { font-size: 9.5px; color: rgba(255,225,180,.6); }

.rank-claim { background: linear-gradient(180deg, #FFFCF3, #FFF4DE); border-color: #F0D9AE; }
.rc-row { margin-top: 5px; font-size: 12px; color: #7A4A12; font-family: var(--serif); }
.rc-items { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.rc-items b { font-size: 11px; color: #8C6A3E; margin-right: 4px; font-variant-numeric: tabular-nums; }

.rk-list { display: flex; flex-direction: column; gap: 6px; }
.rk-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px;
  background: var(--card); border: 1.5px solid var(--line);
}
.rk-row.mine { background: linear-gradient(180deg, #FFF8E6, #FFF1D6); border-color: #EFC97E; }
.rk-no {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px; display: grid; place-items: center;
  font-style: normal; font-size: 10px; font-weight: 800; background: #F2E7D3; color: #A07B48;
}
.rk-no.top { background: linear-gradient(160deg, #FFD98A, #E09A2A); color: #fff; }
.rk-main { flex: 1; min-width: 0; }
.rk-nm { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: #5C4028; }
.rk-nm em { font-style: normal; font-size: 8px; padding: 0 4px; border-radius: 4px; background: #FBEFD8; color: #B4802E; }
.rk-sub { font-size: 8.5px; color: var(--dim); }
.rk-sc { font-size: 13px; color: #C07A18; font-variant-numeric: tabular-nums; }

.he-btn.soc {
  background: linear-gradient(160deg, #FFD9E4, #E86A8E 62%, #C6355E);
  color: #FFF3F7;
}
.he-btn.soc svg { color: #fff; }
/* 社交页里的按钮一律按内容宽（复制 / 领取 / 加入 这类短按钮不要被拉伸） */
.soc-wrap .btn { flex: 0 0 auto; }
.soc-top .btn { min-width: 74px; height: 30px; padding: 0 10px; }
