/* ============ 图鉴页专用 ============ */
.dbar{position:sticky;top:var(--tbh,0px);z-index:40;background:rgba(245,247,250,.94);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.dbar .in{max-width:1000px;margin:0 auto;padding:11px 14px 9px}
.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e6ed;
  border-radius:12px;padding:9px 12px;box-shadow:var(--sh)}
.search svg{flex:0 0 auto;color:#9aa4b6}
.search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:15px}
.chips{display:flex;gap:7px;overflow-x:auto;padding:9px 0 1px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;border:1px solid #e2e6ed;background:#fff;border-radius:999px;
  padding:4px 12px;font-size:12.5px;font-weight:700;color:#5a6478;white-space:nowrap}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}
.dcount{font-size:12px;color:var(--ink4);padding:12px 2px 0;letter-spacing:.4px}

.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:560px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:860px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 10px 10px;
  text-align:center;transition:.16s;box-shadow:var(--sh);cursor:pointer}
.card:hover{transform:translateY(-2px);box-shadow:var(--sh2);border-color:#d7e0ee}
.card .pic{width:88px;height:88px;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;
  background:#f7f9fc;border-radius:12px}
@media(min-width:860px){.card .pic{width:104px;height:104px}}
.card .pic img{width:64px;height:64px}
@media(min-width:860px){.card .pic img{width:64px;height:64px}}
.card .no{font-size:11px;color:#a6afbf;letter-spacing:1px;font-weight:800;font-variant-numeric:tabular-nums}
.card .nm{font-size:14.5px;font-weight:800;margin:1px 0 6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tags{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}
.empty{padding:60px 0;text-align:center;color:#a6afbf;font-size:14px}

/* 详情 */
.overlay{position:fixed;inset:0;background:var(--bg);z-index:80;overflow-y:auto;
  opacity:0;pointer-events:none;transition:.18s;-webkit-overflow-scrolling:touch}
.overlay.on{opacity:1;pointer-events:auto}
.sheet{max-width:720px;margin:0 auto;padding:0 15px 70px}
.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;
  background:rgba(245,247,250,.96);backdrop-filter:blur(12px);
  padding:calc(12px + env(safe-area-inset-top)) 0 12px;border-bottom:1px solid var(--line)}
.bar button{border:1px solid #e2e6ed;background:#fff;border-radius:10px;width:34px;height:34px;
  display:grid;place-items:center;flex:0 0 auto}
.bar .t{font-weight:850;font-size:16px}
.bar .nav-sib{margin-left:auto;display:flex;gap:6px}
.bar .nav-sib button{width:30px;height:30px;color:#7d8798;font-size:15px;font-weight:800}
.sheet .hero{display:flex;gap:16px;align-items:center;padding:18px 0 4px}
.sheet .hero .big{width:136px;height:136px;position:relative;cursor:pointer;overflow:hidden;flex:0 0 auto;background:#fff;border:1px solid var(--line);
  border-radius:20px;display:flex;align-items:center;justify-content:center;box-shadow:var(--sh)}
.sheet .hero .big img{width:128px;height:128px}
.sheet .hero .meta{min-width:0}
.sheet .hero .nm{font-size:23px;font-weight:900;line-height:1.2;letter-spacing:.4px}
.sheet .hero .no{font-size:12px;color:var(--ink3);letter-spacing:1px;margin-top:3px;
  font-variant-numeric:tabular-nums}
.sheet .hero .tags{margin-top:7px;justify-content:flex-start}
@media(max-width:400px){.sheet .hero .big{width:114px;height:114px}.sheet .hero .big img{width:112px;height:112px}
  .sheet .hero .nm{font-size:20px}}
.sect{background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 14px;
  margin-top:13px;box-shadow:var(--sh)}
.sect h2{font-size:13px;font-weight:850;color:#4a5468;letter-spacing:1.2px;margin:0 0 10px;
  display:flex;align-items:center;gap:7px}
.sect h2:before{content:"";width:3px;height:12px;border-radius:2px;background:var(--blue)}
.sect h2 span{font-weight:700;color:var(--ink4);letter-spacing:0}
.dex p{font-size:14px;line-height:1.95;color:#333c50;margin:0}
.dex p + p{margin-top:1px}
/* 进化链 */
.chain{display:flex;align-items:flex-start;gap:6px;overflow-x:auto;padding:2px 0 4px;
  scrollbar-width:none}
.chain::-webkit-scrollbar{display:none}
.cnode{flex:0 0 auto;text-align:center;width:82px;cursor:pointer}
.cnode.cur{opacity:1}
.cnode.cur .cbox{border-color:var(--blue);background:#f5f9ff;box-shadow:0 0 0 3px rgba(47,111,235,.1)}
.cbox{width:72px;height:72px;margin:0 auto;background:#f7f9fc;border:1px solid #e9eef6;
  border-radius:14px;display:grid;place-items:center}
.cbox img{width:64px;height:64px}
.cnode .cn{font-size:12.5px;font-weight:750;margin-top:5px;line-height:1.25}
.cnode .cnx{font-size:10px;color:#8b98ab;margin-top:1px;line-height:1.2}
.cnode .cno{font-size:10.5px;color:var(--ink4);font-variant-numeric:tabular-nums}
.carw{flex:0 0 auto;align-self:center;text-align:center;padding:0 2px;margin-top:-16px;color:#9fb0cb}
.carw b{display:block;font-size:11px;font-weight:800;color:#6b788f;white-space:normal;max-width:104px;line-height:1.3;word-break:break-all}
.carw i{font-style:normal;font-size:15px}
/* 种族值 */
.stat{display:grid;grid-template-columns:46px 1fr 40px;align-items:center;gap:9px;margin-bottom:7px}
.stat .k{font-size:12.5px;color:#7d8798;font-weight:650}
.stat .track{height:9px;border-radius:999px;background:#f1f4f9;overflow:hidden;display:block}
.stat .fill{display:block;height:100%;border-radius:999px;width:var(--w);
  animation:grow .6s cubic-bezier(.22,.9,.3,1) both}
@keyframes grow{from{width:0}to{width:var(--w)}}
.stat .v{text-align:right;font-size:13.5px;font-weight:850;font-variant-numeric:tabular-nums}
.stat.tot{margin-top:11px;padding-top:11px;border-top:1px dashed #e6eaf1;margin-bottom:0}
.stat.tot .k{color:#4f46c8;font-weight:850}
.stat.tot .v{font-size:15px}
/* 招式 */
.mv{display:grid;grid-template-columns:52px 1fr;gap:3px 10px;font-size:14px}
.mv .l{color:#8b95a7;font-variant-numeric:tabular-nums;font-size:13px;padding-top:1px}
.mv .m{font-weight:650;color:#2c3448}
.mvtags{display:flex;flex-wrap:wrap;gap:6px}
.mvtags b{font-size:12px;font-weight:750;padding:4px 9px;border-radius:8px;background:#f6f8fc;
  color:#3b465e;border:1px solid #edf1f8}
.mvtags b i{font-style:normal;color:#9aa4b6;font-weight:700;margin-right:4px;font-size:11px}
details.fold{margin-top:12px}
details.fold summary{list-style:none;cursor:pointer;font-size:13px;font-weight:750;color:var(--blue-d);
  padding:8px 0;display:flex;align-items:center;gap:6px}
details.fold summary::-webkit-details-marker{display:none}
details.fold summary:after{content:"";width:6px;height:6px;border-right:2px solid #9bb0d4;
  border-bottom:2px solid #9bb0d4;transform:rotate(45deg);margin-left:auto;transition:.2s}
details.fold[open] summary:after{transform:rotate(-135deg)}
.sheet .foot{margin-top:20px;text-align:center;color:#aeb6c4;font-size:11.5px;line-height:1.9}

/* 异色 */
.shinybtn{flex:0 0 auto;border:1px solid #e2e6ed;background:#fff;border-radius:10px;
  padding:4px 10px;font-size:12.5px;font-weight:800;color:#8b95a7;transition:.15s}
.shinybtn.on{background:#fdf4e4;border-color:#f0d5a4;color:#a9761a}
.sheet .hero .big.is-shiny{background:#fffdf6;border-color:#f2dcb0}
.shiny-badge{position:absolute;right:6px;top:6px;font-size:10px;font-weight:900;
  padding:1px 7px;border-radius:999px;background:rgba(240,243,248,.92);color:#8b95a7;
  letter-spacing:.5px;pointer-events:none}
.shiny-badge.on{background:rgba(253,238,208,.95);color:#a9761a}
.shiny-tip{font-size:11.5px;color:#aab3c2;margin-top:7px}
.shiny-tip:before{content:"✦ ";color:#c9a04a}

/* 招式详情 */
.mvlink{border-bottom:1px dashed #c6d3e8;cursor:pointer}
.mvlink:active{color:var(--blue)}
.mvtags b{cursor:pointer}
.mvtags b:active{background:#eaf1fd;border-color:#cfe0fa}
.mwrap{position:fixed;inset:0;background:rgba(16,24,40,.38);z-index:120;
  opacity:0;pointer-events:none;transition:.18s;display:flex;align-items:center;justify-content:center;
  padding:18px}
.mwrap.on{opacity:1;pointer-events:auto}
.msheet{width:100%;max-width:420px;max-height:82vh;overflow-y:auto;background:#fff;
  border-radius:20px;padding:18px 16px 16px;box-shadow:0 18px 50px rgba(16,32,64,.24);
  transform:translateY(8px) scale(.97);opacity:0;transition:.22s cubic-bezier(.22,.9,.3,1);
  -webkit-overflow-scrolling:touch}
.mwrap.on .msheet{transform:none;opacity:1}
.mh{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.mh .mname{font-size:19px;font-weight:900;letter-spacing:.4px}
.mh .mcat{font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;background:#eef3fe;color:#2c5ec9}
.mh .mcat.chg{background:#f3f0fb;color:#5a48b8}
.mclose{margin-left:auto;width:30px;height:30px;border-radius:50%;background:#f4f6fa;
  color:#7d8798;font-size:12px;display:grid;place-items:center}
.mstats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mstats>div{background:#f7f9fc;border:1px solid #eef2f8;border-radius:12px;padding:10px 6px;text-align:center}
.mstats b{display:block;font-size:19px;font-weight:900;font-variant-numeric:tabular-nums;color:#1b2130}
.mstats span{font-size:11px;color:#8b95a7}
.mchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.mchips b{font-size:11.5px;font-weight:750;background:#f3f6fb;border:1px solid #e9eef6;
  color:#4a5468;border-radius:8px;padding:3px 9px}
.mdesc{margin-top:14px;border-top:1px dashed #e9eef6;padding-top:12px}
.mdesc summary{list-style:none;font-size:12.5px;font-weight:750;color:#8b95a7;cursor:pointer}
.mdesc summary::-webkit-details-marker{display:none}
.mdesc p{margin:8px 0 0;font-size:13.5px;line-height:1.75;color:#3d465c}
.mnote{font-size:11px;color:#b3bbc8;margin-top:6px}

/* 深色 */
[data-theme="dark"] .dbar{background:rgba(15,19,26,.94);border-bottom-color:var(--line)}
[data-theme="dark"] .search{background:#1a212c;border-color:#28313f}
[data-theme="dark"] .search input{color:#e7ecf4}
[data-theme="dark"] .search input::placeholder{color:#5d6779}
[data-theme="dark"] .chip{background:#1a212c;border-color:#28313f;color:#9aa6b8}
[data-theme="dark"] .chip.on{background:#2f6feb;border-color:#2f6feb;color:#fff}
[data-theme="dark"] .shinybtn{background:#1a212c;border-color:#28313f;color:#7c8798}
[data-theme="dark"] .shinybtn.on{background:#2a2317;border-color:#4a3c20;color:#d8b271}
[data-theme="dark"] .sortsel{background:#1a212c;border-color:#28313f;color:#9aa6b8}
[data-theme="dark"] .card{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .card:hover{border-color:#33405a}
[data-theme="dark"] .card .pic{background:#1a212c}
[data-theme="dark"] .card .no{color:#5d6779}
[data-theme="dark"] .card .nm{color:#e7ecf4}
[data-theme="dark"] .dcount,[data-theme="dark"] .empty{color:#5d6779}
[data-theme="dark"] .overlay{background:#0f131a}
[data-theme="dark"] .bar{background:rgba(15,19,26,.96);border-bottom-color:var(--line)}
[data-theme="dark"] .bar button{background:#1a212c;border-color:#28313f;color:#c8d2e2}
[data-theme="dark"] .sheet .hero .big{background:#1a212c;border-color:#28313f}
[data-theme="dark"] .sheet .hero .big.is-shiny{background:#221d13;border-color:#3d3320}
[data-theme="dark"] .shiny-badge{background:rgba(26,33,44,.92);color:#8b97a9}
[data-theme="dark"] .shiny-badge.on{background:rgba(42,35,23,.95);color:#d8b271}
[data-theme="dark"] .sect{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .sect h2{color:#9aa6b8}
[data-theme="dark"] .dex p{color:#c3cddb}
[data-theme="dark"] .cbox{background:#1a212c;border-color:#28313f}
[data-theme="dark"] .cnode.cur .cbox{background:#16243c;border-color:#3a6cc0}
[data-theme="dark"] .carw{color:#4a5a75}
[data-theme="dark"] .carw b{color:#8b97a9}
[data-theme="dark"] .stat .track{background:#1e2531}
[data-theme="dark"] .stat .k{color:#8b97a9}
[data-theme="dark"] .stat.tot{border-top-color:#232c3a}
[data-theme="dark"] .mv .m{color:#dbe4f2}
[data-theme="dark"] .mvtags b{background:#1a212c;border-color:#28313f;color:#c3cddb}
[data-theme="dark"] .mvlink{border-bottom-color:#3a4a66}
[data-theme="dark"] .msheet{background:#161c26;box-shadow:0 18px 50px rgba(0,0,0,.6)}
[data-theme="dark"] .mh .mname{color:#e7ecf4}
[data-theme="dark"] .mh .mcat{background:#1a2942;color:#8fb2ff}
[data-theme="dark"] .mh .mcat.chg{background:#241f33;color:#b6a2e8}
[data-theme="dark"] .mclose{background:#1e2531;color:#8b97a9}
[data-theme="dark"] .mstats>div{background:#1a212c;border-color:#242c39}
[data-theme="dark"] .mstats b{color:#e7ecf4}
[data-theme="dark"] .mchips b{background:#1a212c;border-color:#28313f;color:#b7c2d2}
[data-theme="dark"] .mdesc{border-top-color:#232c3a}
[data-theme="dark"] .mdesc p{color:#c3cddb}
[data-theme="dark"] .sheet .foot{color:#5d6779}

/* 无立绘时的文字占位块 */
.ph{width:64px;height:64px;border-radius:14px;display:grid;place-items:center;
  font-size:28px;font-weight:800;line-height:1;user-select:none}
.ph-big{width:128px;height:128px;border-radius:22px;font-size:52px}

/* 同族形态里没有立绘时的占位 */
.cn-ph{display:grid;place-items:center;width:100%;height:100%;font-size:22px;
  font-weight:800;color:#9aa4b5}

/* ---- 进化（分行视图） ---- */
.evolist{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 12px 8px}
.evosub{font-size:12px;font-weight:800;color:#6b788f;margin:10px 0 2px}
.evosub span{font-weight:600;color:#9aa7b8}
.evorow{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px dashed #eef1f6;cursor:pointer}
.evorow:first-of-type{border-top:0}
.evopic{width:44px;height:44px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;background:#f7f9fc;border-radius:10px}
.evopic img{width:40px;height:40px;image-rendering:pixelated}
.evotx{flex:0 0 auto;min-width:76px}
.evotx b{display:block;font-size:13px;font-weight:800;line-height:1.2}
.evotx i{font-style:normal;font-size:10.5px;color:#8b98ab;margin-right:5px}
.evotx span{font-size:10.5px;color:#a9b4c4}
.evohow{flex:1 1 auto;text-align:right;font-size:11.5px;color:#5b6577;background:#f2f6fd;border-radius:8px;padding:5px 9px;line-height:1.35}
[data-theme="dark"] .evolist{background:var(--card);border-color:var(--line)}
[data-theme="dark"] .evopic{background:#1a2130}
[data-theme="dark"] .evohow{background:#1c2634;color:#a9b7cb}
[data-theme="dark"] .evorow{border-top-color:#232c3a}

.pathwrap{flex:1 1 auto;font-size:12px;color:#4a5468;line-height:1.6}
.pathwrap b{font-weight:800;color:#2b3446}
.pathwrap em{font-style:normal;color:#c2ccdb;margin:0 4px}
.pathwrap i{font-style:normal;font-size:10px;color:#96a2b5;margin-left:4px}
.pathwrap .pa{font-size:10.5px;background:#eef3fc;color:#4a6ba8;border-radius:6px;padding:1px 5px;margin:0 4px}
[data-theme="dark"] .pathwrap{color:#a9b7cb}
[data-theme="dark"] .pathwrap b{color:#dbe4f2}
[data-theme="dark"] .pathwrap .pa{background:#1c2634;color:#8fb0e0}
.pathwrap .no{font-size:10px;color:#b3bdcc;margin-left:5px}
[data-theme="dark"] .pathwrap .no{color:#7f8b9d}
.no .hex{font-style:normal;font-size:11px;color:#aeb9c8;margin-left:2px;font-weight:600}
[data-theme="dark"] .no .hex{color:#7d8899}

/* ---- 图鉴网格：手机一行 4 只 ---- */
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media(max-width:340px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:860px){.grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}}
.card{padding:7px 5px 6px;border-radius:13px}
.card .pic{width:100%;height:auto;aspect-ratio:1/1;margin:0 auto 4px;border-radius:10px}
.card .pic img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.card .no{font-size:9px;letter-spacing:.2px}
.card .nm{font-size:11.5px;margin:1px 0 4px}
.card .tags{gap:3px}
.card .tags .tag{font-size:9px;padding:1px 5px}

/* ---- 图鉴列表：怪兽档案 / 科技风 ---- */
.grid{gap:8px}
.card{
  position:relative;overflow:hidden;
  background:linear-gradient(155deg,#131d2a 0%,#0b1119 55%,#0a0f16 100%);
  border:1px solid rgba(72,208,255,.30);
  border-radius:4px;
  padding:9px 6px 7px;
  box-shadow:0 6px 16px rgba(8,16,26,.28),inset 0 0 20px rgba(60,200,255,.05);
  clip-path:polygon(0 0,calc(100% - 11px) 0,100% 11px,100% 100%,11px 100%,0 calc(100% - 11px));
}
.card:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(0deg,rgba(90,220,255,.05) 0 1px,transparent 1px 3px);
}
.card:after{
  content:"";position:absolute;top:0;left:0;width:26px;height:2px;
  background:linear-gradient(90deg,#37d3ff,transparent);
}
.card:hover{
  transform:translateY(-2px);
  border-color:rgba(96,232,255,.70);
  box-shadow:0 10px 24px rgba(8,16,26,.45),inset 0 0 26px rgba(70,215,255,.14);
}
.card .pic{
  background:radial-gradient(circle at 50% 48%,rgba(64,200,255,.16),rgba(8,14,20,0) 72%);
  border:1px solid rgba(80,220,255,.14);
  border-radius:2px;
}
.card .no{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:9px;letter-spacing:1.1px;color:#5cd6ff;font-weight:700;
  text-shadow:0 0 8px rgba(70,200,255,.45);
}
.card .no:before{content:"#";opacity:.6;margin-right:1px}
.card .nm{
  font-size:11.5px;font-weight:800;color:#e6f3ff;letter-spacing:.2px;
  text-shadow:0 1px 0 rgba(0,0,0,.5);
}
.card .tags .tag{
  border-radius:2px;box-shadow:0 0 10px rgba(110,210,255,.10);opacity:.96;
}
[data-theme="dark"] .card{
  background:linear-gradient(155deg,#101a26 0%,#080d13 100%);
  border-color:rgba(72,208,255,.24);
}

/* 列表区做成深色数据面板，和卡片统一 */
#grid{
  padding:8px;border-radius:6px;
  background:linear-gradient(180deg,#0a1119,#070c12);
  border:1px solid rgba(72,208,255,.22);
  box-shadow:0 10px 26px rgba(10,18,28,.16),inset 0 0 46px rgba(50,180,255,.05);
}
#grid .empty{color:#7e95ab}
[data-theme="dark"] #grid{border-color:rgba(72,208,255,.16);box-shadow:inset 0 0 46px rgba(50,180,255,.04)}

/* 图鉴页：顶栏与筛选栏跟随页面滚动，整屏都是图鉴 */
body.in-dex .topbar{position:static;top:auto}
body.in-dex .dbar{position:static;top:auto}

/* ================= 特摄数据卡风格（怪獣データ） ================= */
.mdata-hd{
  display:flex;align-items:center;gap:9px;margin:13px 0 0;padding:8px 13px 8px 11px;
  background:linear-gradient(180deg,#e01f36 0%,#b4122a 55%,#8f0d1f 100%);
  color:#fff;
  clip-path:polygon(0 0,100% 0,calc(100% - 15px) 100%,0 100%);
  box-shadow:0 4px 14px rgba(170,20,40,.30);
}
.mdata-hd b{font-size:14.5px;font-weight:900;letter-spacing:2.5px;
  text-shadow:0 1px 0 rgba(0,0,0,.35),0 0 12px rgba(255,90,110,.5)}
.mdata-hd i{font-style:normal;font-size:9.5px;font-weight:800;letter-spacing:2.6px;color:rgba(255,255,255,.8)}
.mdata-hd:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(255,255,255,.65),transparent)}

.sheet .hero{
  gap:14px;padding:13px 13px 14px;margin-top:0;
  background:
    repeating-linear-gradient(0deg,rgba(0,0,0,.022) 0 1px,transparent 1px 3px),
    linear-gradient(180deg,#f3f4f6,#e6e8ec);
  border:1px solid #d5d8dd;border-left:5px solid #d81b31;
  clip-path:polygon(0 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%);
}
.sheet .hero .big{
  border:3px solid #d81b31;border-radius:2px;background:#eceef1;
  box-shadow:inset 0 0 0 2px #fff,0 3px 10px rgba(20,26,34,.14);
}
.sheet .hero .big img{image-rendering:pixelated}
.sheet .hero .nm{font-size:24px;font-weight:900;color:#14171b;letter-spacing:.5px;
  text-shadow:0 1px 0 #fff,0 2px 7px rgba(20,26,34,.14)}
.sheet .hero .no{color:#5b636d;font-weight:750;letter-spacing:.7px}
.sheet .hero .no .hex{color:#8b939d}
.sheet .hero .tags .tag{border-radius:2px;box-shadow:0 1px 0 rgba(20,26,34,.10)}
.sheet .hero .shiny-badge{border-radius:2px}
@media(max-width:400px){.sheet .hero .nm{font-size:21px}}

.sect{border-radius:3px;border-color:#dcdfe4}
.sect h2{color:#1a1e24;letter-spacing:1.4px}
.sect h2:before{width:4px;height:14px;border-radius:0;
  background:linear-gradient(180deg,#e0243c,#9d0f22)}
.sect h2 span{color:#8a929c}

/* 能力条：银灰轨道 + 洋红填充 */
.stat .track{background:#c9ccd1;box-shadow:inset 0 1px 2px rgba(20,26,34,.20);border-radius:3px}
.stat .fill{background:linear-gradient(90deg,#8b008b,#d81b31);border-radius:3px}
.stat .k{color:#4c545e}
.stat .v{color:#8b008b;font-weight:850}
.stat.tot{border-top:1px dashed #d3d7dd}
.stat.tot .k{color:#b4122a}
.stat.tot .v{color:#b4122a}

/* 进化链当前项：红框 */
.cnode.cur .cbox{border-color:#d81b31;background:#fdf3f4;box-shadow:0 0 0 3px rgba(216,27,49,.12)}
.cbox{border-radius:3px}
.carw b{color:#7a828c}
.carw i{color:#c08b94}

/* 列表：同色系红黑 */
.card{border-color:rgba(226,32,60,.34)}
.card:after{background:linear-gradient(90deg,#ff3b52,transparent)}
.card .no{color:#ff6d7f;text-shadow:0 0 9px rgba(255,60,90,.42)}
.card .no:before{color:rgba(255,109,127,.7)}
.card:hover{border-color:rgba(255,84,105,.72)}
.card .pic{background:radial-gradient(circle at 50% 48%,rgba(255,70,95,.16),rgba(8,14,20,0) 72%);
  border-color:rgba(230,50,75,.18)}
#grid{border-color:rgba(226,32,60,.22)}
[data-theme="dark"] .sheet .hero{
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.02) 0 1px,transparent 1px 3px),
             linear-gradient(180deg,#171b21,#11151a);
  border-color:#2a2f37;border-left-color:#d81b31;
}
[data-theme="dark"] .sheet .hero .big{background:#1b2027;box-shadow:inset 0 0 0 2px #2b323b}
[data-theme="dark"] .sheet .hero .nm{color:#f2f4f7;text-shadow:none}
[data-theme="dark"] .sheet .hero .no{color:#9aa3ae}

/* ---- 属性筛选：特摄数据卡风格 ---- */
.chips{gap:6px;padding:10px 0 2px}
.chip{
  border:1px solid rgba(216,27,49,.30);
  background:linear-gradient(180deg,#1a1f27,#12161c);
  color:#d9e1ea;
  border-radius:2px;
  padding:5px 11px;
  font-size:12px;font-weight:800;letter-spacing:.6px;
  clip-path:polygon(0 0,calc(100% - 7px) 0,100% 7px,100% 100%,7px 100%,0 calc(100% - 7px));
  box-shadow:inset 0 0 12px rgba(255,60,90,.06);
  transition:.14s;
}
.chip.on{
  background:linear-gradient(180deg,#e01f36,#a3122a 70%,#8a0e1f);
  border-color:#ff5566;color:#fff;
  box-shadow:0 3px 12px rgba(200,20,45,.35),inset 0 1px 0 rgba(255,255,255,.22);
  text-shadow:0 1px 0 rgba(0,0,0,.3);
}
.chip.all{border-color:rgba(120,130,145,.35);background:linear-gradient(180deg,#2a3038,#1b2027);color:#c8d2de}
.chip.dim{opacity:.42}
.chip.shake{animation:chipShake .3s}
@keyframes chipShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
.chip.all.on{background:linear-gradient(180deg,#e01f36,#a3122a 70%,#8a0e1f);
  border-color:#ff5566;color:#fff;box-shadow:0 3px 12px rgba(200,20,45,.35)}
