/* =====================================================================
   决斗姬网页端 · 样式
   配色跟 fzcgqz.cn 的 anime 主题对齐（淡粉底 + 玫红点缀），
   里面的「卡片 / 动画」是服务端拼好的 HTML，样式不归这里管。
   ===================================================================== */
:root {
  --bg: #fff4f9;
  --panel: #ffffff;
  --line: #ffd4e9;
  --accent: #ff4f9e;
  --accent2: #7a5cff;
  --text: #463348;
  --sub: #a08fa8;
  --ok: #2fa84f;
  --bad: #e04747;
  --warn: #b8860b;
  --radius: 16px;
  --font: "等线", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* ⚠ 必须放在最前面：`.out` / `.modal` 都自带 display，会盖过 [hidden] 的
   UA 默认样式（display:none）—— 漏了这句，弹层一进页面就是开着的（踩过）。 */
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6;
  padding-bottom: 72px;
  background-image: radial-gradient(circle at 8% 4%, #ffe6f3 0, transparent 40%),
                    radial-gradient(circle at 92% 96%, #eee8ff 0, transparent 40%);
  background-attachment: fixed;
}
main { max-width: 860px; margin: 0 auto; padding: 12px 12px 0; }

/* ── 顶栏 ── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-top) * 0);
  background: rgba(255, 244, 249, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.top .brand .ttl, .top .brand .sub { white-space: nowrap; }
.top .mk { font-size: 22px; }
.top .ttl { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.top .sub { font-size: 12px; color: var(--sub); }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
/* 26.11：昵称太长也不许把顶栏顶爆（窄屏截断成省略号） */
.top .nm { font-size: 14px; color: var(--accent); font-weight: 700;
  max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ⚠ 26.11：版本号已经搬出顶栏（见下面的 .verbar），这里不再有 .top .ver */

/* ── 版本胶囊横幅（26.11）──
   用户 2026-10-27：「版本号和版本名会和登录名重合，把 logo 放到别处或者想别的办法」
   + 「共享荣光这四个字要酷炫好看二次元一点」
   ⇒ 顶栏只留 🐾决斗姬网页端 + 昵称/登录；版本自成一条横幅：
     渐变流光文字（pink→violet→cyan）+ 霓虹描边 + 每 6 秒扫一次光。 */
.verbar {
  position: relative; overflow: hidden;
  max-width: 860px; margin: 10px auto 0; padding: 7px 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 79, 158, .30);
  background:
    linear-gradient(100deg, rgba(255, 79, 158, .10), rgba(160, 107, 255, .10) 46%, rgba(90, 209, 255, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 4px 16px rgba(255, 79, 158, .10);
}
/* 扫光 */
.verbar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .78) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: vbSheen 6s ease-in-out infinite;
}
@keyframes vbSheen { 0%, 70% { transform: translateX(-130%); } 90%, 100% { transform: translateX(130%); } }

.vb-tag {
  flex: none; font-family: Bahnschrift, "Bahnschrift SemiBold", system-ui, sans-serif;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; line-height: 1;
  color: #fff; padding: 4px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #ff7ab8, #a06bff);
  box-shadow: 0 2px 8px rgba(160, 107, 255, .38);
}
.vb-name {
  font-size: 17px; font-weight: 900; letter-spacing: 5px; padding-left: 3px;
  background: linear-gradient(92deg, #ff0066 0%, #ff3d94 20%, #ff77bd 38%, #a259ff 62%, #00b3ff 88%);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* 透明字不认 text-shadow（会整块变黑），只好用 drop-shadow 堆出霓虹感 */
  filter: drop-shadow(0 0 5px rgba(255, 0, 102, .55)) drop-shadow(0 2px 3px rgba(162, 89, 255, .40));
  animation: vbFlow 5s linear infinite;
}
@keyframes vbFlow { 0% { background-position: 0 0; } 100% { background-position: 230% 0; } }
.vb-sub {
  font-family: Bahnschrift, system-ui, sans-serif; font-size: 9.5px; font-weight: 700;
  letter-spacing: 2px; color: #a888bf; opacity: .95;
}
.vb-star { font-size: 11px; color: #ff5aa8; opacity: .95; animation: vbTwinkle 2.6s ease-in-out infinite; }
.vb-star:last-child { animation-delay: 1.3s; }
@keyframes vbTwinkle {
  0%, 100% { opacity: .45; transform: scale(.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}
@media (max-width: 520px) {
  .verbar { margin: 8px 10px 0; padding: 6px 10px; gap: 7px; }
  .vb-name { font-size: 16px; letter-spacing: 3.5px; }
  .vb-sub { display: none; }
}
@media (max-width: 380px) {
  /* 极窄屏：连「网页端」也收起来，保证 🐾决斗姬 + 昵称/登录 不打架 */
  .top .sub { display: none; }
  .vb-name { font-size: 15px; letter-spacing: 2.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .verbar::after, .vb-name, .vb-star { animation: none; }
}

.silent {
  max-width: 860px; margin: 10px auto 0; padding: 10px 14px;
  background: #fff8e6; border: 1px solid #ffe0a3; color: #8a6d1f;
  border-radius: 12px; font-size: 14px;
}

/* ── 选项卡 ── */
.tabs {
  position: sticky; top: 51px; z-index: 19;
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
  background: rgba(255, 244, 249, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-family: var(--font); cursor: pointer;
}
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
/* 26.11a.4：捕捉页签有新遭遇时的小红点；手动点捕捉页签或遭遇结束时清掉 */
.tab.dot { position: relative; }
.tab.dot::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bad); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(224, 71, 71, .22);
}

.panel { display: none; }
.panel.on { display: block; }

/* ── 通用件 ── */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin: 12px 0; box-shadow: 0 4px 14px rgba(255, 79, 158, .06);
}
.ct { font-weight: 800; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }
.row { display: flex; gap: 8px; align-items: center; }
.row + .row { margin-top: 8px; }
.wrap-gap { flex-wrap: wrap; }
.input, select.input {
  flex: 1; min-width: 0; font-family: var(--font); font-size: 15px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none;
}
.input:focus { border-color: var(--accent); }
select.input { flex: none; }
.btn {
  font-family: var(--font); font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 16px; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--line); }
.btn.sm { font-size: 13.5px; padding: 6px 12px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.05); }
.tip { font-size: 13px; color: var(--sub); margin-top: 8px; }
.tip b, .tip code { color: var(--text); }
code { background: #fff0f7; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.big { font-size: 19px; font-weight: 800; }
.empty { color: var(--sub); font-size: 14px; padding: 10px 2px; }
.kvs { font-size: 15px; }
.kvs div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.kvs b { font-weight: 700; }

/* ── 列表 ── */
.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px; border-top: 1px dashed var(--line);
}
.item:first-child { border-top: 0; }
.item .main { flex: 1; min-width: 0; }
.item .t1 { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t2 { font-size: 12.5px; color: var(--sub); }
.item .win { color: var(--ok); font-weight: 800; }
.item .loss { color: var(--bad); font-weight: 800; }
.item .draw { color: var(--warn); font-weight: 800; }
.item .eff { font-size: 13px; color: var(--accent2); }
/* 26.12 多宠接力：一场决斗的 1→6 上场序列 */
.item .seq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 12.5px; color: var(--sub); }
.item .seq-n { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff0f7; color: var(--accent); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.item .seq-p { color: var(--text); font-weight: 600; }
.item .seq .tip, .item .t1 .tip { margin: 0; font-size: 12px; }

/* ── iframe 缩放容器 ── */
.frame-wrap { margin: 12px 0; overflow: hidden; }
.card-frame {
  width: 760px; border: 0; display: block;
  transform-origin: top left; background: transparent;
}

/* ── 底部回复面板 ── */
.out {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-height: 60vh; display: flex; flex-direction: column;
  background: #fffdfe; border-top: 2px solid var(--accent); border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 30px rgba(70, 51, 72, .18);
}
.out-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.out pre {
  margin: 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  overflow: auto; font-family: var(--font); font-size: 15px; white-space: pre-wrap; word-break: break-word;
}

/* ── 弹层 ── */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(46, 32, 46, .55); display: grid; place-items: center; padding: 16px; }
.sheet {
  background: var(--panel); border-radius: var(--radius); padding: 18px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.code {
  font-family: Bahnschrift, "Consolas", monospace; font-size: 40px; font-weight: 800; letter-spacing: 8px;
  text-align: center; color: var(--accent); background: #fff6fb; border: 2px dashed var(--line);
  border-radius: 12px; padding: 10px 4px 10px 12px; margin: 12px 0; user-select: all;
}
.steps { margin: 8px 0 0; padding-left: 22px; font-size: 14.5px; }
.steps li { margin: 5px 0; }
.anim-box { width: 100%; max-width: 940px; position: relative; }
.anim-frame { width: 100%; height: 78vh; border: 0; border-radius: 14px; background: #0e1116; display: block; }
.anim-close { position: absolute; right: 8px; top: -42px; }

.foot .verfoot { font-size: 12px; font-weight: 800; color: var(--accent); opacity: .9; white-space: nowrap; }
.foot {
  max-width: 860px; margin: 26px auto 12px; padding: 0 14px;
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--sub);
}
.foot a { color: var(--sub); text-decoration: none; }
.foot a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .tabs { top: 49px; }
  .anim-frame { height: 62vh; }
  .code { font-size: 34px; letter-spacing: 6px; }
}

/* ── 世界 Boss 面板（默认藏；服务端 WEB_BOSS=1 才显示）── */
.boss-card .boss-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.boss-card .boss-nm { font-size: 17px; font-weight: 800; color: var(--accent); }
.boss-card .tag {
  font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px;
  border: 1px solid currentColor; color: var(--sub);
}
.boss-bar {
  height: 14px; border-radius: 7px; overflow: hidden;
  background: #2a1420; border: 2px solid var(--border);
}
.boss-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(#ff6a7a, #c8203f); transition: width .35s; }
.boss-hp { font-size: 12px; color: var(--sub); margin: 5px 0 8px; font-variant-numeric: tabular-nums; }
.boss-meta { font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.boss-meta b { color: var(--accent); }
.boss-team { font-size: 13px; line-height: 1.7; }
.boss-team .mrow { display: flex; gap: 6px; align-items: baseline; }
.boss-team .lead { font-weight: 700; }
.boss-team .mrow.off { opacity: .5; }
.boss-team .mrow.off .tip { color: #c0392b; }
.boss-rank { font-size: 13px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.boss-rank .me { color: var(--accent); font-weight: 700; }

/* ── 背包（2026-10-20）── */
.bag-money { font-size: 15px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.bag-list { display: flex; flex-direction: column; gap: 8px; }
.bag-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nm btn" "desc desc";
  gap: 2px 10px; align-items: center;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.bag-row .bag-nm {
  grid-area: nm; font-size: 14px; font-weight: 700;
  /* 26.11：名字+价格在左，余量（不限量 / 1/1）在右，同一行 */
  display: flex; align-items: baseline; gap: 10px; min-width: 0;
  /* 一行放不下时（窄屏 + 长名字）余量自己换到下一行、仍然靠右 */
  flex-wrap: wrap; row-gap: 2px;
}
.bag-row .bag-nm > span:first-child { min-width: 0; white-space: nowrap; }
/* ⚠ 用户 2026-10-27：「0/1 1/1 也是黑体」⇒ 余量单独加粗、字号比名字略小一点但一眼看到 */
.bag-row .bag-nm .stock {
  margin-left: auto; flex: none; font-weight: 900; font-size: 13px;
  color: var(--accent); letter-spacing: .5px; white-space: nowrap;
}
.bag-row .bag-desc { grid-area: desc; font-size: 12px; color: var(--sub); }
.bag-row .btn, .bag-row .tip { grid-area: btn; }
/* 26.11：一行里可能有好几个按钮（买1/买5/卖1、加入/看排行），单独成组、会自动换行 */
.bag-row .bag-acts { grid-area: btn; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* 26.11：窄屏时「名字 | 按钮」两列会把名字挤成一字一行 ⇒ 改成三行堆叠 */
@media (max-width: 520px) {
  .bag-row { grid-template-columns: 1fr; grid-template-areas: "nm" "desc" "btn"; }
  .bag-row .bag-acts { justify-content: flex-start; }
}

/* ═════════════════════════════════════════════════════════════════════
   26.12 新功能：6 个宠物栏位 + 野外捕捉
   风格沿用上面的粉白卡片 / --accent / --line；动画一律 ≤600ms，
   并且可被 prefers-reduced-motion 关掉。
   ═════════════════════════════════════════════════════════════════════ */

/* ── 宠物栏位 ── */
.slot-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.slot {
  position: relative; min-width: 0; padding: 8px 8px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.slot:hover { border-color: #ff9ecb; }
.slot.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 4px 12px rgba(255, 79, 158, .14);
}
.slot.empty { border-style: dashed; opacity: .62; cursor: default; }
.slot.empty:hover { border-color: var(--line); }
.slot-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; font-size: 11px; font-weight: 800; color: var(--sub); }
.slot-img {
  display: block; width: 64px; height: 64px; margin: 2px auto 1px;
  object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 2px 2px rgba(70, 51, 72, .18));
}
.slot-nm { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-tp { font-size: 11px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-rel {
  position: absolute; right: 4px; bottom: 4px;
  font-family: var(--font); font-size: 10.5px; line-height: 1;
  color: var(--bad); background: #fff; border: 1px solid transparent;
  border-radius: 6px; padding: 3px 4px; cursor: pointer;
}
.slot-rel:hover { border-color: #f3c4c4; background: #fff5f5; }
.slot-detail { margin-top: 8px; }
.slot-detail:empty { display: none; }
.slot-detail-in {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; border-radius: 10px; background: #fff6fb; border: 1px dashed var(--line);
  font-size: 13px;
}
.slot-detail-in b { font-size: 15px; }
.slot-detail-in .tip { margin: 0; }

/* ── 捕捉 ── */
.cap-balls { font-size: 12px; font-weight: 800; color: var(--sub); letter-spacing: .2px; }
.cap-stage {
  position: relative; margin-top: 10px; padding: 12px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #e9f6ff 0%, #f4fff1 68%, #ddf3d6 100%);
}
.cap-sky { position: absolute; inset: 0; pointer-events: none; }
.cap-grass {
  position: absolute; left: -10%; right: -10%; bottom: -8%; height: 34%;
  background: radial-gradient(ellipse at 50% 0%, #c9ebc4 0%, #a9da9f 60%, #8fcb85 100%);
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
}
.cap-enc { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.cap-sprite {
  width: 120px; height: 120px; flex: 0 0 auto; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 5px rgba(40, 80, 40, .22));
}
.cap-info { flex: 1; min-width: 0; }
.cap-name { font-size: 19px; font-weight: 900; letter-spacing: .3px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cap-name .cap-lv { font-size: 13px; font-weight: 800; color: var(--accent2); }
.cap-meta { font-size: 12.5px; color: var(--sub); margin-top: 1px; }
.cap-hpbar { height: 10px; margin-top: 8px; background: #ffe4ef; border-radius: 6px; overflow: hidden; }
.cap-hpbar > i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #2fa84f, #8bd450); transition: width .35s; }
.cap-hptext { font-size: 11.5px; color: var(--sub); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cap-status { position: relative; z-index: 1; min-height: 22px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.cap-status.good { color: var(--ok); }
.cap-status.bad { color: var(--bad); }
.cap-ballrow { position: relative; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cap-ballrow .btn { min-width: 96px; }
/* 26.11a：离开 / 打倒并排；手机端各占一半，不挤爆 */
.cap-actions { position: relative; z-index: 2; margin-top: 8px; }
.cap-actions .btn { flex: 1 1 0; min-width: 112px; }

/* 球：从左侧草丛飞向野生宠，再晃两下 */
.cap-ball {
  position: absolute; left: 12%; bottom: 10%; z-index: 5;
  width: 24px; height: 24px; border-radius: 50%; opacity: 0; pointer-events: none;
  border: 2px solid #463348;
  background: radial-gradient(circle at 34% 28%, #fff 0 12%, #ff7ab8 40%, #ff4f9e 62%, #d81b6b 100%);
  box-shadow: 0 2px 5px rgba(70, 51, 72, .3);
}
.cap-ball.fly { animation: capFly .32s cubic-bezier(.22, .75, .3, 1) forwards; }
@keyframes capFly {
  0% { opacity: 1; left: 12%; bottom: 10%; transform: rotate(0deg); }
  100% { opacity: 1; left: 50%; bottom: 48%; transform: translate(-50%, 50%) rotate(720deg); }
}
.cap-sprite.shake { animation: capShake .24s ease-in-out 1; }
@keyframes capShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-6px) rotate(-3deg); }
  75% { transform: translateX(6px) rotate(3deg); }
}
.cap-stage.caught .cap-sprite { animation: capCatch .34s ease-out 1; }
@keyframes capCatch {
  0% { transform: scale(1); filter: drop-shadow(0 6px 5px rgba(40, 80, 40, .22)); }
  45% { transform: scale(1.12); filter: drop-shadow(0 0 18px rgba(255, 79, 158, .85)) brightness(1.5); }
  100% { transform: scale(1); filter: drop-shadow(0 6px 5px rgba(40, 80, 40, .22)); }
}
.cap-stage.fled .cap-sprite { animation: capFled .3s ease-in 1; }
@keyframes capFled {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(26px); opacity: 0; }
}
.cap-stage.caught { box-shadow: inset 0 0 0 2px rgba(255, 79, 158, .35); }
.cap-stage.fled { opacity: .86; }

/* 二次确认弹层 */
.confirm-sheet { max-width: 380px; }
.confirm-sheet .row { margin-top: 16px; justify-content: flex-end; }
.confirm-sheet .tip { margin: 0; font-size: 14px; line-height: 1.7; }

/* ── 26.12.1 宠物切换器（技能 / 佩；称号是账号级，不做）── */
.pet-pick-card { margin-top: 10px; }
.pet-pick-card .tip { margin: 0 0 8px; }
.pet-pick {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
}
.pet-pick .pp {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 7px 8px; font-family: var(--font); font-size: 12px; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pet-pick .pp:hover:not(:disabled) { border-color: #ff9ecb; }
.pet-pick .pp b {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; line-height: 1; color: var(--accent); background: #fff0f7;
  border: 1px solid var(--line);
}
.pet-pick .pp .pp-nm {
  flex: 1; min-width: 0; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pet-pick .pp .pp-lv { flex: none; font-size: 10.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.pet-pick .pp.on {
  border-color: var(--accent); background: #fff0f7;
  box-shadow: inset 0 0 0 1px var(--accent), 0 3px 9px rgba(255, 79, 158, .13);
}
.pet-pick .pp.on b { color: #fff; background: var(--accent); border-color: var(--accent); }
.pet-pick .pp:disabled { opacity: .45; border-style: dashed; cursor: default; }

@media (max-width: 520px) {
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-sprite { width: 96px; height: 96px; }
  .cap-name { font-size: 17px; }
  .pet-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pet-pick .pp .pp-lv { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pet-pick .pp { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-ball.fly, .cap-sprite.shake, .cap-stage.caught .cap-sprite, .cap-stage.fled .cap-sprite { animation: none !important; }
  .cap-hpbar > i, .slot { transition: none; }
}

/* ── 26.13 异色 ✨ / 专属进化形态 ──
   26.11a 起异色改用烘焙图 <key>-shiny-front/back.png（tools/make-shiny.py），
   这里不再叠加 hue-rotate，避免双重偏色；shiny=true 只负责徽章/文案。 */
.shiny-tag {
  display: inline-block; margin-left: 4px; padding: 0 5px;
  border-radius: 6px; vertical-align: middle;
  font-size: 10.5px; line-height: 1.65; font-weight: 800; letter-spacing: .2px;
  color: #fff; background: linear-gradient(135deg, #ffb020, #ff4f9e);
  white-space: nowrap;
}
.slot-form {
  font-size: 10.5px; font-weight: 700; color: var(--accent2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.evo-tag {
  display: inline-block; padding: 0 6px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; color: #6a54c8; background: #f1edff;
  white-space: nowrap;
}
.cap-name .shiny-tag { font-size: 11.5px; }
@media (max-width: 520px) {
  .slot-form { font-size: 10px; }
}

/* ── 26.14 已装配技能详情：补 desc / 定制标记（/api/skills 的 slots 新字段）── */
.skill-slot-list { display: flex; flex-direction: column; gap: 8px; }
.skill-slot {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fff8fc);
}
.skill-slot.custom { border-color: #ffb3d6; box-shadow: inset 3px 0 0 var(--accent); }
.skill-slot.empty { opacity: .7; }
.skill-slot .ss-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; font-weight: 800; }
.skill-slot .ss-n { flex: none; color: var(--accent); font-size: 12.5px; }
.skill-slot .ss-nm { color: var(--text); }
.skill-slot .ss-ty {
  font-size: 11.5px; line-height: 1.6; color: #fff; background: #7a5cff;
  border-radius: 999px; padding: 0 7px; font-weight: 700;
}
.skill-slot .ss-custom {
  font-size: 11.5px; line-height: 1.6; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px; padding: 0 8px;
}
.skill-slot .ss-meta { margin-top: 2px; font-size: 12px; color: var(--sub); }
.skill-slot .ss-desc { margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--text); }
@media (max-width: 520px) {
  .skill-slot .ss-hd { font-size: 13.5px; }
  .skill-slot .ss-desc { font-size: 12.5px; }
}

/* ── 26.11a.7 排行榜双榜（训练师 / 宠物）── */
.rank-main { max-width: 820px; margin: 0 auto; padding: 12px 12px 0; }
.rank-head { margin-bottom: 10px; }
.rank-head-tip { margin: 0; flex: none; }
.rank-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.rank-tabs .btn { flex: 1 1 0; min-width: 132px; }
.rank-tabs .btn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.rank-card { padding: 10px; }
.rank-frame-wrap { margin: 0; overflow: hidden; }
.rank-frame { width: 720px; border: 0; display: block; transform-origin: top left; background: transparent; }
.rank-loading { padding: 22px 2px; text-align: center; color: var(--sub); font-size: 14px; }
.rank-err { padding: 16px 2px; text-align: center; color: var(--bad); font-size: 14px; }
.rank-err .btn { margin-left: 8px; }
@media (max-width: 520px) {
  .rank-main { padding: 8px 8px 0; }
  .rank-card { padding: 6px; }
  .rank-tabs .btn { min-width: 0; }
}

/* ── 26.11a.8 任意栏位互换（每张卡左下角 ⇄ 换位 / 详情里换到任意栏位）── */
.slot.has-pet { padding-bottom: 28px; }
.slot-move {
  position: absolute; left: 4px; bottom: 4px; width: 72px; max-width: 72px; min-width: 0;
  font-family: var(--font); font-size: 10.5px; line-height: 1; color: var(--accent2);
  background: #fff; border: 1px solid transparent; border-radius: 6px;
  padding: 3px 2px; cursor: pointer;
}
.slot-move:hover { border-color: #ffc7e0; background: #fff6fb; }
.slot-detail-in .slot-move-detail {
  flex: none; width: auto; max-width: 96px;
  font-size: 12px; padding: 5px 8px;
}
@media (max-width: 520px) {
  .slot-move { width: 66px; max-width: 66px; font-size: 10px; }
  .slot-detail-in .slot-move-detail { max-width: 88px; font-size: 11.5px; }
}

