/* ============================================================
   JYC HoloCard Engine v2 — 数据驱动闪卡组件样式 (⑤五档新框接线版)
   命名空间: .hc (根容器) — 不污染宿主页面
   来源: layout.html v8 定案版式 (锚定网格/名签三件套/活价值/卡背数据面)
   多实例: 无 ID, 全部 class; frame 图经 --frame-url 变量注入
   ============================================================ */

/* ---------- 根容器 / 翻面 ---------- */
.hc { perspective: 1400px; }
.hc, .hc * { margin: 0; padding: 0; box-sizing: border-box; }
.hc .flipper { position: relative; width: 100%; aspect-ratio: 5/7;
  transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.9,.3,1); }
.hc .flipper.flipped { transform: rotateY(180deg); }
.hc .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 18px; }
.hc .face.back { transform: rotateY(180deg); }

/* ---------- 闪卡引擎 (正面) ---------- */
/* --kf = 卡实宽/750 (新框源图宽), JS(ResizeObserver) 注入宿主; .4 为 300px 宽兜底 */
.hc { --kf: .4; }
.hc .holo3d { --rx:0deg; --ry:0deg; --px:0; --py:0; --mx:50%; --my:50%; --hyp:0;
  --inx: calc(112px * var(--kf)); --iny: calc(117px * var(--kf));  /* \u540d\u7b7e/\u7f16\u53f7\u951a\u70b9: \u6cbf\u7528\u9a8c\u6536\u7248\u89c6\u89c9\u4f4d (300px\u5361\u2248\u65e7 --k \u4f53\u7cfb\u540c\u4f4d) */
  width: 100%; height: 100%; position: relative; border-radius: 18px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 26px 54px -18px rgba(0,0,0,.85);
  font-family: system-ui; }
.hc .holo3d.live { transition: transform .06s linear; }
.hc .layer { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; }
.hc .layer img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover;
  transform: translate(calc(var(--px)*var(--d)*14px), calc(var(--py)*var(--d)*14px));
  transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.hc .holo3d.live .layer img { transition: transform .06s linear; }
.hc .l-bg { --d: -0.25; }
.hc .l-fx { --d: 0.12; mix-blend-mode: screen; opacity: .85; }
/* 平面模式: composed 单图 (④分层存储落地前的真卡形态), 轻视差保留 holo 手感 */
.hc .l-art { --d: -0.12; background: #0b0d12; }
/* 五档新框系统: 源图 750×1050, 窗口 x50-698 y120-932 (五档几何已规整一致)
   图源经 JS 注入 --frame-url (按稀有度自动选 frame_{tier}.webp)
   overflow:visible — 扫光 ::after 用负 inset 盖框区, 不能被裁 */
.hc .l-frame { --d: 0; pointer-events: none; border-style: solid; overflow: visible;
  border-width: calc(120px*var(--kf)) calc(51px*var(--kf)) calc(117px*var(--kf)) calc(50px*var(--kf));
  border-image-source: var(--frame-url); border-image-slice: 120 51 117 50; border-image-repeat: stretch; }
/* 主体: 破框, 脚踩框底 */
.hc .l-subject { --d: 0.4; overflow: visible; }
.hc .l-subject img { inset: auto; left: 0; bottom: 4.5%; width: 100%; height: 94%;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); }

/* ---------- 名签三件套 (五行印+竖名+星级) ---------- */
.hc .namecol { position: absolute; left: calc(var(--inx)*.5); top: 50%; transform: translateY(-50%);
  --d: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 9px 5px 11px; border-radius: 999px;
  background: linear-gradient(to bottom, rgba(30,18,6,.9), rgba(14,8,3,.82));
  border: 1px solid rgba(252,211,77,.5);
  box-shadow: inset 1px 0 0 rgba(255,240,190,.2), 2px 2px 8px rgba(0,0,0,.55); }
.hc .cardname { writing-mode: vertical-rl; font-size: .98rem; font-weight: 900; letter-spacing: .24em; white-space: nowrap;
  background: linear-gradient(160deg, #fff3c4, #fcd34d 45%, #d99a35 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.hc .seal { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900; font-family: "Songti SC","STSong",serif;
  border: 1.5px solid; }
/* 五行五印 (篆刻风圆章五色) */
.hc .seal.wx-fire  { color: #ffd9c4; border-color: rgba(255,120,70,.85); box-shadow: 0 0 9px rgba(255,90,40,.6);
  background: radial-gradient(circle at 35% 30%, #b83a14, #5e1404 75%); }
.hc .seal.wx-water { color: #cfe8ff; border-color: rgba(80,160,255,.85); box-shadow: 0 0 9px rgba(60,140,255,.6);
  background: radial-gradient(circle at 35% 30%, #1a5db8, #082b5e 75%); }
.hc .seal.wx-wood  { color: #d8f5cf; border-color: rgba(110,220,110,.85); box-shadow: 0 0 9px rgba(80,200,90,.55);
  background: radial-gradient(circle at 35% 30%, #2e8b32, #0c3d10 75%); }
.hc .seal.wx-metal { color: #fffbe8; border-color: rgba(240,225,180,.9); box-shadow: 0 0 9px rgba(255,240,200,.6);
  background: radial-gradient(circle at 35% 30%, #a89263, #4f4326 75%); }
.hc .seal.wx-earth { color: #ffedc2; border-color: rgba(215,170,80,.9); box-shadow: 0 0 9px rgba(210,160,60,.55);
  background: radial-gradient(circle at 35% 30%, #8a6420, #402c08 75%); }
.hc .stars { display: flex; flex-direction: column; gap: 3px; }
.hc .stars i { width: 11px; height: 11px; display: inline-block;
  background: linear-gradient(135deg, #fff3c4, #fcd34d 50%, #b45309);
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  filter: drop-shadow(0 0 3px rgba(252,211,77,.8)); }

/* ---------- JB 活价值 (鎏金字入座框上铭牌槽 + 市场心跳) ----------
   铭牌槽内净空源图 x228-521 y953-1014, 中心 (50%, 93.7%) — 五档通用; 无底胶囊 */
.hc .jbcenter { position: absolute; left: 50%; top: 93.7%;
  transform: translate(-50%, -50%); --d: 0; pointer-events: none; white-space: nowrap;
  display: flex; align-items: baseline; gap: calc(12px * var(--kf)); line-height: 1;
  font-size: calc(40px * var(--kf)); font-weight: 900; font-variant-numeric: tabular-nums; }
.hc .jbcenter .jtxt { background: linear-gradient(175deg, #fffbe8 8%, #ffe58a 32%, #f5b93c 55%, #b4791d 78%, #ffd76e 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.hc .jbcenter small { font-size: calc(22px * var(--kf)); font-weight: 800; color: #e8c565;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
/* 心跳涨跌: 无底样式 → 整体辉光(drop-shadow)收尾归零 */
.hc .jbcenter.tick-up   { animation: hcTickUp .9s ease-out; }
.hc .jbcenter.tick-down { animation: hcTickDown .9s ease-out; }
@keyframes hcTickUp {
  0%   { filter: drop-shadow(0 0 10px rgba(74,222,128,.95)) drop-shadow(0 0 4px rgba(74,222,128,.7)); }
  100% { filter: none; } }
@keyframes hcTickDown {
  0%   { filter: drop-shadow(0 0 10px rgba(248,113,113,.95)) drop-shadow(0 0 4px rgba(248,113,113,.7)); }
  100% { filter: none; } }

/* ---------- 认证印 + 涨跌幅 ---------- */
.hc .certwrap { position: absolute; right: 6.5%; bottom: 14.5%; --d: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hc .certstamp { display: flex; width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ffd76e, #7ef2c0, #7eb8ff, #d98cff, #ffd76e);
  padding: 2.5px; align-items: center; justify-content: center;
  animation: hcCertSpin 7s linear infinite; box-shadow: 0 0 16px rgba(160,220,255,.5); }
@keyframes hcCertSpin { to { filter: hue-rotate(360deg); } }
.hc .certstamp b { width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #2c2158, #16103a 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #e9ddff; font-size: .52rem; font-weight: 900; letter-spacing: .08em; gap: 1px; }
.hc .certstamp b span { color: #fcd34d; font-size: .36rem; letter-spacing: .06em; }
.hc .delta { font-size: .55rem; font-weight: 800; border-radius: 999px; padding: 1px 7px;
  background: rgba(10,6,26,.7); }
.hc .delta.up   { color: #4ade80; border: 1px solid rgba(74,222,128,.45); text-shadow: 0 0 6px rgba(74,222,128,.5); }
.hc .delta.down { color: #f87171; border: 1px solid rgba(248,113,113,.45); text-shadow: 0 0 6px rgba(248,113,113,.5); }

/* ---------- 编号 / 版权 ---------- */
.hc .cardno { position: absolute; left: calc(var(--inx)*.55); bottom: calc(var(--iny)*.2);
  --d: 0; color: rgba(255,235,190,.6); font-size: 7px; letter-spacing: .16em;
  font-variant-numeric: tabular-nums; pointer-events: none; }
.hc .copyline { position: absolute; right: calc(var(--inx)*.55); bottom: calc(var(--iny)*.2); --d: 0;
  text-align: right; color: rgba(255,235,190,.5); font-size: 6.5px; letter-spacing: .2em;
  font-variant-numeric: tabular-nums; pointer-events: none; }

/* ---------- 闪箔 / 眩光 ---------- */
.hc .l-shine { --d: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg,
    hsla(283,70%,58%,.35) 0%, hsla(2,74%,59%,.35) 7%, hsla(53,90%,60%,.35) 14%,
    hsla(93,60%,52%,.35) 21%, hsla(176,70%,50%,.35) 28%, hsla(228,70%,60%,.35) 35%, hsla(283,70%,58%,.35) 42%);
  background-size: 400% 400%; background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge; opacity: calc(.16 + var(--hyp)*.42);
  filter: brightness(calc(.65 + var(--hyp)*.35)) contrast(1.9) saturate(1.35); }
.hc .l-glare { --d: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5) 0%, rgba(255,255,255,.1) 28%, transparent 60%);
  mix-blend-mode: overlay; opacity: calc(.28 + var(--hyp)*.5); }

/* ---------- 未鉴定态 (哑卡封印) ---------- */
.hc .sealed-hint { display: none; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--iny)*.75); --d: 0; white-space: nowrap; color: #8d80b8;
  font-size: .64rem; font-weight: 800; letter-spacing: .3em; pointer-events: none;
  border: 1px dashed rgba(148,120,255,.45); border-radius: 6px; padding: 4px 14px;
  background: rgba(10,6,26,.6); }
.hc .sealfilm { --d: 0; pointer-events: none; display: none; border-radius: 18px;
  background: repeating-linear-gradient(135deg, rgba(120,100,190,.07) 0 8px, rgba(255,255,255,.045) 8px 16px);
  backdrop-filter: saturate(.82) brightness(.94); }
.hc .sealwax { position: absolute; right: 8%; top: 34%; --d: 0; display: none; pointer-events: none;
  width: 64px; height: 64px; border-radius: 50%; transform: rotate(-12deg);
  background: radial-gradient(circle at 38% 32%, #8d7fd0, #4c3a8f 60%, #2c1f60);
  border: 2px dashed rgba(230,220,255,.55); box-shadow: 0 4px 14px rgba(0,0,0,.5), inset 0 0 12px rgba(0,0,0,.4);
  align-items: center; justify-content: center;
  color: #efe8ff; font-size: .6rem; font-weight: 900; letter-spacing: .15em; text-align: center; line-height: 1.35; }
.hc .unidentified .jbcenter, .hc .unidentified .certwrap, .hc .unidentified .namecol { display: none; }
.hc .unidentified .sealed-hint { display: block; }
.hc .unidentified .sealfilm { display: block; }
.hc .unidentified .sealwax { display: flex; }
.hc .unidentified .l-shine, .hc .unidentified .l-glare { opacity: 0 !important; }
.hc .unidentified { --damp: .45; }
.hc .unidentified .layer img { transform: translate(calc(var(--px)*var(--d)*14px*var(--damp,1)), calc(var(--py)*var(--d)*14px*var(--damp,1))); }

/* ---------- 五档框效 (新框本色体系: 框资产自带档色, 特效只做能量不做调色) ----------
   五色铁律: 普通白/稀有青/史诗紫/传说金/神话红
   旧滤镜调色(grayscale/sepia/hue-rotate)会污染新框本色 — 已全档替换
   扫光 ::after 负 inset = 新框 border-width (盖到框区) */
/* 普通白: 静谧微呼吸 (无调色) */
.hc .tier-common .l-frame { animation: hcBreathW 4.2s ease-in-out infinite; }
@keyframes hcBreathW {
  0%,100% { filter: brightness(.92); }
  50%     { filter: brightness(1.05) drop-shadow(0 0 5px rgba(229,231,235,.25)); } }
/* 稀有青: 青色扫光 (⑧密度升级: 主带+尾随细带双光) */
.hc .tier-rare .l-frame::after { content: ''; position: absolute;
  inset: calc(-120px*var(--kf)) calc(-51px*var(--kf)) calc(-117px*var(--kf)) calc(-50px*var(--kf));
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(125,211,252,.18) 41%, transparent 45%,
    transparent 46%, rgba(125,211,252,.5) 52%, transparent 60%);
  background-size: 240% 100%; animation: hcSweep 5.5s ease-in-out infinite; mix-blend-mode: screen; }
/* 史诗紫: 紫光明灭 + ⑧新增紫辉扫光 */
.hc .tier-epic .l-frame { animation: hcRuneP 3.2s ease-in-out infinite; }
@keyframes hcRuneP {
  0%,100% { filter: brightness(.9) drop-shadow(0 0 5px rgba(168,85,247,.3)); }
  50%     { filter: brightness(1.12) drop-shadow(0 0 14px rgba(192,132,252,.6)); } }
.hc .tier-epic .l-frame::after { content: ''; position: absolute;
  inset: calc(-120px*var(--kf)) calc(-51px*var(--kf)) calc(-117px*var(--kf)) calc(-50px*var(--kf));
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(216,180,254,.42) 50%, transparent 60%);
  background-size: 240% 100%; animation: hcSweep 4.4s ease-in-out infinite; mix-blend-mode: screen; }
/* 传说金: 鎏金扫光 (⑧密度升级: 前导细带+主带双光) */
.hc .tier-legend .l-frame::after { content: ''; position: absolute;
  inset: calc(-120px*var(--kf)) calc(-51px*var(--kf)) calc(-117px*var(--kf)) calc(-50px*var(--kf));
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, transparent 24%, rgba(255,244,200,.2) 32%, transparent 38%,
    transparent 40%, rgba(255,244,200,.55) 50%, transparent 62%);
  background-size: 250% 100%; animation: hcSweep 3.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes hcSweep { 0%,25% { background-position: 120% 0; } 65%,100% { background-position: -40% 0; } }
/* 神话红: 红呼吸 + 赤焰扫光 (⑧密度升级: 主焰+尾随余焰; 禁 hue-rotate 全彩轮转 — 破五色铁律) */
.hc .tier-mythic .l-frame { animation: hcRedBreath 3.6s ease-in-out infinite; }
@keyframes hcRedBreath {
  0%,100% { filter: brightness(1) drop-shadow(0 0 6px rgba(239,68,68,.35)); }
  50%     { filter: brightness(1.18) drop-shadow(0 0 16px rgba(239,68,68,.7)); } }
.hc .tier-mythic .l-frame::after { content: ''; position: absolute;
  inset: calc(-120px*var(--kf)) calc(-51px*var(--kf)) calc(-117px*var(--kf)) calc(-50px*var(--kf));
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, transparent 26%, rgba(255,110,80,.22) 33%, transparent 39%,
    transparent 40%, rgba(255,140,100,.45) 46%, rgba(255,70,70,.55) 50%, rgba(255,140,100,.45) 54%, transparent 66%);
  background-size: 250% 100%; animation: hcSweep 3.2s ease-in-out infinite; mix-blend-mode: screen; }
/* 普通白: ⑧新增静谧慢扫光 (极淡, 保持低调档感) */
.hc .tier-common .l-frame::after { content: ''; position: absolute;
  inset: calc(-120px*var(--kf)) calc(-51px*var(--kf)) calc(-117px*var(--kf)) calc(-50px*var(--kf));
  border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, transparent 43%, rgba(235,238,245,.24) 50%, transparent 57%);
  background-size: 240% 100%; animation: hcSweep 7.5s ease-in-out infinite; mix-blend-mode: screen; }

/* ---------- ⑧特效增强: 粒子浮尘/能量通道脉冲/宝石座微光 (纯CSS叠加层, 绝不烙图) ----------
   --fxc = 档能量色RGB / --fxi = 档强度权重 (五色铁律: 白/青/紫/金/红) */
.hc .tier-common { --fxc: 226,230,238; --fxi: .45; }
.hc .tier-rare   { --fxc: 96,211,240;  --fxi: .62; }
.hc .tier-epic   { --fxc: 192,132,252; --fxi: .78; }
.hc .tier-legend { --fxc: 255,214,110; --fxi: .9; }
.hc .tier-mythic { --fxc: 255,86,74;   --fxi: 1; }

/* ⑨线路流光: 光沿框上雕线/凹槽流转 (line_mask 从框图高通提取, 五档几何一致故一张通用;
   卡面比 5/7=750/1050, mask 整图拉伸与九宫格渲染等价 → 与框严丝合缝)
   三层背景: 主能量带(下行) + 反向细带(上行, 错速) + 常亮基底微光 */
.hc .l-circuit { --d: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: url('/static/holo/line_mask.webp?v1');
  mask-image: url('/static/holo/line_mask.webp?v1');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: calc(.5 + var(--fxi)*.5);
  background: rgba(var(--fxc), calc(.09 + var(--fxi)*.1));  /* 常亮基底: 线路微光(通电待机态) */
  filter: brightness(calc(1 + var(--hyp)*.5)); }
/* ⑩注: 原斜向扫光带(::before/::after)被用户否决"完全不行"已移除 — 流光职能移交 .l-rails 彗星系统 */

/* ---------- ⑪路线C 三级闭环导轨 (rails.json v2 手工定稿几何) ----------
   外环顺时针(2彗星对角错相) / 内环逆时针对转(1彗星) / 铭牌环(1小彗星)
   一条边=一条不断的光; 角座接力脉冲与彗星弧长占比精确同步; 次级饰槽只微光不跑彗星。
   五档现象阶梯不变: L1彗星→L2+余辉→L3+符文→L4+滴溅→L5+火星+涌浪 */
.hc .l-rails { --d: 0; pointer-events: none; overflow: visible; }
.hc .l-rails svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hc .l-rails path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* 常亮基底: 导轨待机微光 */
.hc .rl-base { stroke: rgba(var(--fxc), calc(.1 + var(--fxi)*.1)); stroke-width: 1.6; }
/* 次级饰槽: 只待机微光, 永不跑彗星(消灭碎闪) */
.hc .rl-deco { stroke: rgba(var(--fxc), calc(.07 + var(--fxi)*.07)); stroke-width: 1.3; }
/* 角座接力脉冲: 彗星经过宝石座时微爆一下"交棒", 周期=外环T/2 相位=gfrac·T */
.hc .rl-relay { fill: none; stroke: rgba(var(--fxc), .85); stroke-width: 2;
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: hcRlRelay linear infinite; }
@keyframes hcRlRelay {
  0% { opacity: .9; transform: scale(.24); stroke-width: 3; }
  9% { opacity: .45; transform: scale(.75); }
  18%, 100% { opacity: 0; transform: scale(1.15); stroke-width: .5; } }
/* 彗星: 亮头白芯光珠, 沿轨匀速巡航 (dasharray=珠长+轨长, offset 循环) */
.hc .rl-comet { stroke: rgb(var(--fxc)); stroke-width: 2.6;
  filter: drop-shadow(0 0 3px rgba(var(--fxc), .9)) drop-shadow(0 0 7px rgba(var(--fxc), .5));
  animation: hcRlRun linear infinite; }
/* 余辉尾迹(L2+): 更长更宽的半透明拖尾, 同轨同速滞后跟随 */
.hc .rl-trail { stroke: rgba(var(--fxc), .3); stroke-width: 5;
  filter: blur(2.2px); animation: hcRlRun linear infinite; }
@keyframes hcRlRun { to { stroke-dashoffset: calc(var(--cyc) * -1px); } }
/* 节点符文(L3+): 交叉点周期性爆亮紫环涟漪 */
.hc .rl-rune { fill: rgba(var(--fxc), .9); stroke: rgba(var(--fxc), .5); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: hcRlRune 3.4s ease-out infinite; }
@keyframes hcRlRune {
  0%, 72% { opacity: 0; transform: scale(.3); }
  78% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(2.6); } }
/* 熔金滴溅(L4+): 轨上溅出金珠, 短抛物线坠落熄灭 */
.hc .rl-drop { fill: rgb(var(--fxc));
  filter: drop-shadow(0 0 3px rgba(var(--fxc), .8));
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: hcRlDrop 5s ease-in infinite; }
@keyframes hcRlDrop {
  0%, 61% { opacity: 0; transform: translate(0, 0) scale(.4); }
  64% { opacity: 1; transform: translate(calc(var(--dx)*.3), calc(var(--dy)*-.4)) scale(1); }
  78% { opacity: .9; transform: translate(calc(var(--dx)*.75), calc(var(--dy)*.3)) scale(.8); }
  92%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.25); } }
/* 火星喷射(L5): 彗星过处甩出火星逃逸框外, 上飘散熄 */
.hc .rl-spark { fill: #ffb896;
  filter: drop-shadow(0 0 3px rgba(255,120,60,.9));
  transform-box: fill-box; transform-origin: center; opacity: 0;
  animation: hcRlSpark 2.8s ease-out infinite; }
@keyframes hcRlSpark {
  0%, 55% { opacity: 0; transform: translate(0, 0) scale(.5); }
  60% { opacity: 1; transform: translate(calc(var(--dx)*.25), calc(var(--dy)*.3)) scale(1.1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
/* 涌浪(能量呼吸): 铭牌槽⇄四角往返 (s-out 呼: 铭牌炸向全网 / s-in 吸: 四角回涌归元) */
.hc .rl-surge { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: url('/static/holo/line_mask.webp?v1'); mask-image: url('/static/holo/line_mask.webp?v1');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; opacity: 0; }
.hc .rl-surge.s-out { background: radial-gradient(circle at 50% 93.7%, rgba(var(--fxc), .95) 0%, rgba(var(--fxc), .4) 30%, transparent 60%);
  animation: hcSurgeOut 7.5s ease-out infinite; }
.hc .rl-surge.s-in { background:
  radial-gradient(circle at 8.3% 6%, rgba(var(--fxc), .8) 0%, transparent 42%),
  radial-gradient(circle at 91.7% 6%, rgba(var(--fxc), .8) 0%, transparent 42%),
  radial-gradient(circle at 8.3% 94%, rgba(var(--fxc), .8) 0%, transparent 42%),
  radial-gradient(circle at 91.7% 94%, rgba(var(--fxc), .8) 0%, transparent 42%);
  animation: hcSurgeIn 7.5s ease-in infinite; }
@keyframes hcSurgeOut {   /* 呼: 0-1.4s 从铭牌槽向外爆开 */
  0% { opacity: 0; background-size: 30% 30%; background-position: 50% 93.7%; }
  6% { opacity: 1; } 19% { opacity: 0; background-size: 340% 340%; background-position: 50% 93.7%; }
  100% { opacity: 0; } }
@keyframes hcSurgeIn {    /* 吸: 3.7-5.2s 四角辉光收拢回涌 */
  0%, 49% { opacity: 0; } 55% { opacity: .9; } 69%, 100% { opacity: 0; } }
/* 价值心跳小涌浪(全档): hb-tick 触发单次, 铭牌槽轻闪扩散 */
.hc .rl-surge.s-hb { background: radial-gradient(circle at 50% 93.7%, rgba(var(--fxc), .9) 0%, rgba(var(--fxc), .3) 35%, transparent 65%); }
.hc .l-rails.hb-tick .s-hb { animation: hcSurgeHb 1.1s ease-out 1; }
@keyframes hcSurgeHb {
  0% { opacity: 0; background-size: 24% 24%; background-position: 50% 93.7%; }
  15% { opacity: .95; }
  100% { opacity: 0; background-size: 260% 260%; background-position: 50% 93.7%; } }
/* 性能降级: 列表缩略图(<190px)只留彗星+尾迹 */
.hc .fx-lite .rl-rune, .hc .fx-lite .rl-drop, .hc .fx-lite .rl-spark,
.hc .fx-lite .rl-relay, .hc .fx-lite .rl-deco,
.hc .fx-lite .rl-surge { display: none; }
/* 封印/无障碍 */
.hc .unidentified .l-rails { opacity: 0 !important; }
.hc .unidentified .l-rails * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hc .l-rails * { animation: none !important; } }

/* 粒子浮尘: 双层错速上飘 + 明暗闪烁 (tile 平铺 background-position 无缝循环) */
.hc .l-dust { --d: 0; pointer-events: none; mix-blend-mode: screen;
  opacity: calc(.28 + var(--fxi)*.42); }
.hc .l-dust::before, .hc .l-dust::after { content: ''; position: absolute; inset: 0;
  border-radius: 18px; background-repeat: repeat; }
.hc .l-dust::before {
  background-image:
    radial-gradient(2.4px 2.4px at 31px 27px,  rgba(var(--fxc),.95), transparent 65%),
    radial-gradient(1.7px 1.7px at 118px 88px, rgba(var(--fxc),.7),  transparent 65%),
    radial-gradient(2px 2px at 74px 151px,     rgba(255,255,255,.8), transparent 65%),
    radial-gradient(1.4px 1.4px at 163px 43px, rgba(var(--fxc),.6),  transparent 65%);
  background-size: 190px 210px;
  animation: hcDustUpA 16s linear infinite, hcDustTwinkle 3.7s ease-in-out infinite; }
.hc .l-dust::after {
  background-image:
    radial-gradient(1.8px 1.8px at 52px 104px, rgba(var(--fxc),.85), transparent 65%),
    radial-gradient(1.3px 1.3px at 141px 33px, rgba(255,255,255,.65), transparent 65%),
    radial-gradient(2.2px 2.2px at 96px 66px,  rgba(var(--fxc),.55), transparent 65%);
  background-size: 230px 250px;
  animation: hcDustUpB 23s linear infinite, hcDustTwinkle 5.1s ease-in-out infinite reverse; }
@keyframes hcDustUpA { from { background-position: 0 0; } to { background-position: 0 -210px; } }
@keyframes hcDustUpB { from { background-position: 0 0; } to { background-position: 0 -250px; } }
@keyframes hcDustTwinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* 能量通道脉冲: 窗口沿内圈能量呼吸 (::before 贴 l-frame 窗沿, 不遮任何文字层) */
.hc .l-frame::before { content: ''; position: absolute; inset: calc(-5px*var(--kf));
  border-radius: calc(12px*var(--kf)); pointer-events: none;
  border: calc(2.5px*var(--kf)) solid rgba(var(--fxc), .07);
  animation: hcChanPulse 3.4s ease-in-out infinite; }
@keyframes hcChanPulse {
  0%,100% { border-color: rgba(var(--fxc), .06);
    box-shadow: 0 0 0 rgba(var(--fxc), 0), inset 0 0 0 rgba(var(--fxc), 0); }
  50% { border-color: rgba(var(--fxc), calc(.4*var(--fxi)));
    box-shadow: 0 0 calc(16px*var(--kf)) rgba(var(--fxc), calc(.42*var(--fxi))),
                inset 0 0 calc(20px*var(--kf)) rgba(var(--fxc), calc(.2*var(--fxi))); } }

/* 宝石座微光: 四角座辉光呼吸 (对位框源图四角座中心 ≈8.3%/5.9% 与 91.7%/94%), 倾卡增亮 */
.hc .l-gems { --d: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(calc(52px*var(--kf)) circle at 8.3% 5.9%,  rgba(var(--fxc),.85) 0, rgba(var(--fxc),.25) 45%, transparent 70%),
    radial-gradient(calc(52px*var(--kf)) circle at 91.7% 5.9%, rgba(var(--fxc),.85) 0, rgba(var(--fxc),.25) 45%, transparent 70%),
    radial-gradient(calc(52px*var(--kf)) circle at 8.3% 94%,   rgba(var(--fxc),.85) 0, rgba(var(--fxc),.25) 45%, transparent 70%),
    radial-gradient(calc(52px*var(--kf)) circle at 91.7% 94%,  rgba(var(--fxc),.85) 0, rgba(var(--fxc),.25) 45%, transparent 70%);
  animation: hcGemPulse 2.9s ease-in-out infinite;
  filter: brightness(calc(1 + var(--hyp)*.7)); }
@keyframes hcGemPulse { 0%,100% { opacity: .16; } 50% { opacity: calc(.32 + var(--fxi)*.42); } }

/* 未鉴定哑卡: 新特效层全部熄灭 (沿用 shine/glare 封印逻辑) */
.hc .unidentified .l-dust, .hc .unidentified .l-gems, .hc .unidentified .l-circuit { opacity: 0 !important; }
.hc .unidentified .l-dust::before, .hc .unidentified .l-dust::after,
.hc .unidentified .l-circuit::before, .hc .unidentified .l-circuit::after,
.hc .unidentified .l-gems, .hc .unidentified .l-frame::before { animation: none; }
.hc .unidentified .l-frame::before { border-color: transparent; box-shadow: none; }

/* 无障碍: 减少动态偏好时静止所有装饰动画 */
@media (prefers-reduced-motion: reduce) {
  .hc .l-dust::before, .hc .l-dust::after, .hc .l-gems, .hc .l-frame::before, .hc .l-frame::after,
  .hc .l-circuit::before, .hc .l-circuit::after,
  .hc .tier-common .l-frame, .hc .tier-epic .l-frame, .hc .tier-mythic .l-frame { animation: none; }
}

/* ============================================================
   卡背 数据面
   ============================================================ */
.hc .face.back { background: linear-gradient(165deg, #191036, #0d0824 65%);
  border: 1px solid rgba(148,120,255,.35); overflow: hidden;
  display: flex; flex-direction: column; padding: 14px 14px 12px;
  box-shadow: 0 26px 54px -18px rgba(0,0,0,.85);
  font-family: system-ui; color: #c9bfe8; }
.hc .bk-head { display: flex; justify-content: space-between; align-items: stretch;
  border-bottom: 1px solid rgba(252,211,77,.35); padding-bottom: 7px; }
.hc .bk-idblock { display: flex; flex-direction: column; justify-content: space-between; gap: 3px; }
.hc .bk-brand { color: #fcd34d; font-weight: 900; letter-spacing: .3em; font-size: .72rem; line-height: 1; }
.hc .bk-no { color: #8b7fb8; font-size: .55rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; line-height: 1; }
.hc .barcode-chip { background: #fff; border-radius: 4px; padding: 0 5px; display: flex; align-items: center; }
.hc .barcode-chip svg { display: block; }
.hc .bk-title { display: flex; justify-content: space-between; align-items: baseline; margin: 7px 0 5px; }
.hc .bk-title .n { color: #fff3d6; font-weight: 900; font-size: .85rem; letter-spacing: .1em; }
.hc .bk-title .r { color: #fcd34d; font-size: .55rem; font-weight: 800; letter-spacing: .2em; }
/* 战力行 */
.hc .bk-ad { display: flex; gap: 14px; align-items: center; margin: 6px 0 4px;
  padding: 6px 9px; border-radius: 8px;
  background: rgba(20,12,40,.55); border: 1px solid rgba(148,120,255,.28);
  font-size: .6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.hc .bk-ad .half { flex: 1; display: flex; align-items: center; gap: 6px; }
.hc .bk-ad .lbl { flex-shrink: 0; letter-spacing: .08em; }
.hc .bk-ad .half.atk2 .lbl { color: #ff9c66; }
.hc .bk-ad .half.def2 .lbl { color: #7db8f0; }
.hc .bk-ad .tr { flex: 1; height: 7px; border-radius: 99px; overflow: hidden;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.hc .bk-ad .tf { display: block; height: 100%; width: calc(var(--p)*100%); border-radius: 99px; position: relative; }
.hc .bk-ad .tf::before { content: ''; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,.7) 50%, transparent 68%);
  background-size: 230% 100%; animation: hcBarflow 2.4s linear infinite; mix-blend-mode: screen; }
@keyframes hcBarflow { from { background-position: 190% 0; } to { background-position: -90% 0; } }
.hc .bk-ad .half.def2 .tf::before { animation-delay: 1.2s; }
.hc .bk-ad .half.atk2 .tf { background: linear-gradient(90deg,#7a1a06,#ff6a2a 60%,#ffd08a); box-shadow: 0 0 6px rgba(255,110,40,.6); }
.hc .bk-ad .half.def2 .tf { background: linear-gradient(90deg,#0a2a52,#2e8fe0 60%,#a8dcff); box-shadow: 0 0 6px rgba(70,160,255,.6); }
.hc .bk-ad .num { flex-shrink: 0; color: #fff3d6; width: 30px; text-align: right; }
/* 15 元素表 */
.hc .el-table { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 0; }
.hc .el-row { display: flex; align-items: center; gap: 6px; padding: 1.5px 0;
  font-size: .55rem; border-bottom: 1px dashed rgba(148,120,255,.14); }
.hc .el-row .slot { color: #8b7fb8; width: 52px; flex-shrink: 0; }
.hc .el-row .nm { color: #ded4f5; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc .el-row .rr { width: 34px; text-align: center; font-weight: 800; font-size: .48rem; border-radius: 3px; }
.hc .rr.c { color: #9ca3af; } .hc .rr.r { color: #60a5fa; } .hc .rr.e { color: #c084fc; }
.hc .rr.l { color: #fcd34d; } .hc .rr.m { color: #f87171; }
.hc .el-row .cd { color: #7ef2c0; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
/* 元素单价列 (JB): 有价数据才渲染 */
.hc .el-row .pr { color: #f3d98a; width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
/* 首铸徽记 (内联于元素名后) */
.hc .el-row .fm { font-style: normal; color: #fcd34d; font-size: .44rem; font-weight: 800;
  margin-left: 3px; padding: 0 3px; border: 1px solid rgba(252,211,77,.5); border-radius: 3px; vertical-align: 1px; }
.hc .bk-lore { margin-top: 6px; color: #a396cc; font-size: .55rem; line-height: 1.65;
  border-left: 2px solid rgba(252,211,77,.4); padding-left: 8px; font-style: italic; }
.hc .bk-foot { margin-top: 8px; display: flex; align-items: stretch; justify-content: space-between; gap: 10px; }
.hc .bk-hashzone { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.hc .bk-hash { color: #6d6390; font-size: .48rem; letter-spacing: .05em; word-break: break-all; line-height: 1.5; }
.hc .bk-cond { color: #7ef2c0; font-size: .55rem; font-weight: 800; }
.hc .hc-qr { background: #fff; padding: 3px; border-radius: 5px; flex-shrink: 0; width: 56px; height: 56px; }
.hc .hc-qr img, .hc .hc-qr canvas { width: 50px !important; height: 50px !important; display: block; }
