/* shell 屏幕样式 v3「全息卡修」：主城 / 图鉴 / 把玩 / 卡面组件（说明见 docs/UI-v3.md） */

/* 屏幕直接子元素默认为 relative，以便绘制在共享全息画布(z0)之上。0 特异性，任何类规则都可覆盖。 */
:where(.screen > :not(.holo-host)) { position: relative; }

/* ======================= 主城：卡修的工作室，桌上一台全息投影台，卡就是投影出来的 ======================= */
.hub-sky { position: absolute !important; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.screen.hub > .hub-top, .screen.hub > .hub-mid, .screen.hub > .hub-lower { z-index: 1; }

.hub-top { display: flex; align-items: center; gap: 8px; padding: calc(var(--safe-t) + 10px) 14px 6px; }
.res-bar { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; min-height: var(--chip-h); }
/* 资源读数：仪表小窗（标签在上、Chakra 数字在下），点一下解释用途 */
.res { flex: 1; min-width: 0; height: 44px; padding: 0 8px 0 7px; border-radius: 10px; cursor: pointer; text-align: left;
  color: var(--text); background: rgba(9,16,34,.86); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(170,205,255,.05);
  display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 6px; align-content: center;
  transition: translate var(--dur-press), border-color var(--dur-fast); }
.res:active { translate: 0 2px; border-color: var(--line-hi); }
.res i { grid-row: 1 / span 2; width: 20px; height: 20px; display: grid; place-items: center; color: var(--text-2); }
.res i svg { width: 20px; height: 20px; }
.res-l { font-size: var(--fs-tag); line-height: 1.1; color: var(--text-3); letter-spacing: .1em; }
.res b { font: 600 16px/1.15 var(--font-num); letter-spacing: .02em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res.crystal i { color: var(--text-2); } /* v3.1：青色只给能按 / 充能 / 选中指示线 */
.icon-btn.sm { width: 44px; height: 44px; flex: none; }
.icon-btn.sm svg { width: 20px; height: 20px; }

.hub-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 16px 8px; }
.hub-brand { position: relative; text-align: center; margin-top: 6px; padding-right: 0; }
/* 品牌字：青柯黄油的方折笔画 + 全息投影的细扫描线（字面上 1px 暗线，每 3px 一条） */
.hub-brand h1, .hub-brand.v3 h1 { font-family: var(--font-display); font-size: clamp(44px, 15vw, 62px); line-height: 1.02; font-weight: 400; letter-spacing: .08em; margin-right: -.08em; white-space: nowrap;
  color: var(--star);
  background: repeating-linear-gradient(180deg, #f4f8ff 0 2px, #b9d9f2 2px 3px); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(3,6,13,.85)) drop-shadow(0 0 18px rgba(3,6,13,.6)); }
.hub-brand .seal { display: none; }
/* 章节牌：发丝线小窗，左侧一段青色刻线 */
.hub-chapter { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 12px; border-radius: 6px; margin-top: 8px;
  background: rgba(7,13,27,.78); border: 1px solid var(--line); }
.hub-chapter::before { content: ""; width: 2px; height: 14px; border-radius: 1px; background: var(--line-hi); }
.hub-chapter b { font: 500 var(--fs-c) var(--font); color: var(--text-2); letter-spacing: var(--ls-cn); }

.hub-fan { position: relative; flex: 1; width: 100%; max-height: 260px; min-height: 150px; display: flex; align-items: center; justify-content: center; perspective: 900px; }
/* 投影台的光：卡脚下一圈淡青光晕 + 接触暗影（不发光的卡，只有台子在亮） */
.hub-fan::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 30%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(95,225,255,.12), transparent 70%); }
.hub-fan::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 16px; pointer-events: none; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.65), transparent 70%); }
.fan-card { position: absolute !important; z-index: 1; width: clamp(92px, 27vw, 128px); cursor: pointer; transition: transform var(--dur-base) var(--ease-spring), translate var(--dur-press); }
.fan-card.fan-0 { z-index: 3; --rot: 0deg; --tx: 0px; --s: 1.12; }
.fan-card.fan-1 { z-index: 2; --rot: -12deg; --tx: -28vw; --s: .92; }
.fan-card.fan-2 { z-index: 2; --rot: 12deg; --tx: 28vw; --s: .92; }
.fan-card { transform: translateX(clamp(-116px, var(--tx), 116px)) rotate(var(--rot)) scale(var(--s)); }
.fan-card:active { translate: 0 3px; }
/* v3.1 中位目标物：按钮外壳透明；全屏唯一的自发动效（呼吸 2.4s）；换场 = 扫描显现（--dur-reveal） */
.hub-obj { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: center; -webkit-tap-highlight-color: transparent;
  animation: breath var(--dur-breath) ease-in-out infinite; }
.hub-obj.swap { animation: obj-in var(--dur-reveal) var(--ease-scan) both, breath var(--dur-breath) ease-in-out var(--dur-reveal) infinite; }
@keyframes obj-in { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(-20% -20% -20% -20%); opacity: 1; } }
.hub-obj:focus-visible { outline: 2px solid var(--energy); outline-offset: 4px; border-radius: var(--radius-card); }
.fan-side { pointer-events: none; filter: brightness(.62) saturate(.75); }
/* 卡包目标物：卡包立在投影台上，下沿一枚读数（×N / 免费计时） */
.hub-pack-obj { position: relative; display: flex; flex-direction: column; align-items: center; }
.hub-pack-obj img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; filter: drop-shadow(0 3px 0 var(--space-0)) drop-shadow(0 18px 18px rgba(0,0,0,.7)); }
.loc-sub { margin-top: 4px; padding: 0 8px; height: 22px; border-radius: var(--radius-tag); font: 600 var(--fs-n-s)/20px var(--font-num); letter-spacing: .02em; color: var(--text);
  background: rgba(7,13,27,.86); border: 1px solid var(--line-hi); white-space: nowrap; }
/* 地点卡 / 对手卡：深空卡底 + 场景图 + 左上类型图标 + 底部铭牌（与卡面同一比例） */
.cthumb.loc { --rc: var(--line-hi); }
.cthumb.loc .cthumb-art { background-color: var(--space-2); }
.cthumb.loc .cthumb-art::after { background: linear-gradient(180deg, rgba(7,13,27,0) 45%, rgba(7,13,27,.85) 100%); }
.loc-ico { position: absolute; z-index: 3; left: 6px; top: 6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px;
  color: var(--text); background: rgba(7,13,27,.82); border: 1px solid var(--line-hi); }
.loc-ico svg { width: 18px; height: 18px; }
.loc-name { position: absolute; z-index: 3; left: 6px; right: 6px; bottom: 6px; padding: 2px 4px; border-radius: 4px; text-align: center;
  font: 900 var(--fs-c)/1.35 var(--font-title); color: var(--text); background: linear-gradient(180deg, #1a2b55, #091127); border: 1px solid var(--line-hi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 待制卡剪影：中位显示卡名，告诉玩家要画的是哪张 */
.hub-obj .cthumb.locked .cthumb-foot { display: flex; justify-content: center; }
.hub-obj .cthumb.locked .cthumb-foot .rtag { display: none; }
.hub-obj .cthumb.locked .cthumb-name { flex: none; font-size: var(--fs-c); color: var(--text-2); }
.fan-card.fan-0 .cthumb-art { box-shadow: 0 3px 0 var(--space-0), 0 22px 28px -12px rgba(0,0,0,.9); }

.hub-lower { padding: 6px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.hub-story { min-height: 44px; font-size: var(--fs-b); }
.hub-story i, .st-subs.pair .btn i { display: grid; place-items: center; color: var(--text-2); }
.hub-story i svg { width: 20px; height: 20px; }
.st-subs.pair .hub-vision i { color: var(--energy); }

/* 设置面板图标 */
.set-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2);
  background: var(--space-1); border: 1px solid var(--line); }
.set-ico svg { width: 20px; height: 20px; }

@media (max-height: 700px) {
  .hub-brand h1, .hub-brand.v3 h1 { font-size: clamp(36px, 12vw, 46px); }
  .hub-fan { max-height: 180px; min-height: 110px; }
  .fan-card { width: 84px; }
}

/* ======================= 卡缩略图：全息卡的缩小版 =======================
   深空卡底 + 稀有度金属发丝边；SR 起叠五段镭射（SR 偏紫、SSR 偏金、UR 全彩且更粗）。
   边用“背景透出边框”的写法（padding-box 底 + border-box 镭射），圆角不丢。 */
:where(.cthumb, .ccard) { --rc: var(--r-N); } /* 零优先级默认值，.r-SR 等稀有度类总能覆盖 */
.cthumb { position: relative; min-width: 0; border-radius: var(--radius-card); --edge: linear-gradient(160deg, color-mix(in srgb, var(--rc) 92%, #fff), color-mix(in srgb, var(--rc) 55%, #070d1b)); --bw: 1.5px; }
.cthumb.r-SR { --edge: linear-gradient(color-mix(in srgb, var(--r-SR) 52%, transparent), color-mix(in srgb, var(--r-SR) 52%, transparent)), var(--foil); --bw: 2px; }
.cthumb.r-SSR { --edge: linear-gradient(color-mix(in srgb, var(--r-SSR) 42%, transparent), color-mix(in srgb, var(--r-SSR) 42%, transparent)), var(--foil); --bw: 2px; }
.cthumb.r-UR { --edge: var(--foil); --bw: 2.5px; }
.cthumb-art { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: 0 2px 0 var(--space-0), 0 10px 14px -8px rgba(0,0,0,.85); }
/* 背景（占位渐变 / 剪影）由 JS 写进 style.background，所以边框画在 ::before 上（压住卡图外缘 --bw），不和它抢 background */
.cthumb-art::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  border: var(--bw) solid transparent; background: var(--edge) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
.cthumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cthumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8px; text-align: center; }
.cthumb-ph b { font-family: var(--font-title); font-size: 16px; font-weight: 900; line-height: 1.3; color: var(--star); text-shadow: 0 1px 0 rgba(0,0,0,.85), 0 0 8px rgba(0,0,0,.55); writing-mode: vertical-rl; letter-spacing: .15em; }
/* 静态卡膜反光 + 内侧发丝（不做逐张循环动画） */
.cthumb-art::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: calc(var(--radius-card) - 2px);
  background: linear-gradient(125deg, transparent 42%, rgba(220,240,255,.10) 50%, transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(3,6,13,.55); }
.cthumb-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; height: 22px; margin-top: 6px; }
.cthumb-name { flex: 1; min-width: 0; font-family: var(--font-title); font-size: 14px; font-weight: 700; line-height: 22px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cthumb-name.dim { color: var(--text-3); }
.cthumb-foot .rtag { flex: none; padding: 0 5px; }
/* 持有份数「×2」：卡面右下角的读数小签（第 2 份 = 能带两张进卡组凑共鸣） */
.cthumb-count { position: absolute; z-index: 3; right: 5px; bottom: 5px; min-width: 26px; height: 20px; padding: 0 5px; border-radius: var(--radius-tag); text-align: center;
  font: 700 var(--fs-tag)/18px var(--font-num); color: var(--text); background: rgba(7,13,27,.9); border: 1px solid var(--line-hi); pointer-events: none; }
.cthumb-count.reso { border-color: var(--foil-3); color: #d6fff0; }
/* NEW：信号色小签，静止不跳 */
.cthumb-new { position: absolute; top: -6px; left: -4px; z-index: 3; height: 20px; padding: 0 6px; border-radius: var(--radius-tag);
  font: 700 var(--fs-tag)/20px var(--font-num); letter-spacing: .06em; color: var(--signal-ink);
  background: var(--signal); box-shadow: 0 0 0 2px var(--space-1); }
/* 未获得：深空剪影 + 虚线发丝框 */
.cthumb.locked .cthumb-art { background: linear-gradient(170deg, #0d1730, #060b17) !important; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.cthumb.locked .cthumb-art::before { background: none; border: 1px dashed var(--line); -webkit-mask: none; mask: none; }
.cthumb.locked .cthumb-art::after { display: none; }
.cthumb-silimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0) opacity(.55); }
.cthumb-sil { position: absolute; inset: 0; display: grid; place-items: center; }
.cthumb-sil span { font-family: var(--font-num); font-size: 32px; font-weight: 700; color: rgba(122,160,230,.32); }

/* ======================= 图鉴（旧 b-* 类，部分仍在用） ======================= */
.binder .b-top { padding-bottom: 6px; }
/* 收集进度：青色刻度环，环内两行「14/51 / 收集」 */
.b-ring { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--energy) var(--p, 0deg), rgba(95,225,255,.12) 0);
  box-shadow: 0 0 0 1px var(--space-0); }
.b-ring-in { width: 48px; height: 48px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--space-1); box-shadow: inset 0 0 0 1px var(--line); }
.b-ring b { font: 600 13px/1.1 var(--font-num); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-ring small { font-size: 12px; line-height: 1.1; color: var(--text-3); letter-spacing: .1em; margin-right: -.1em; }
.b-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 0 24px; }
.b-filters { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px;
  background: linear-gradient(180deg, rgba(7,13,27,.97) 70%, rgba(7,13,27,0)); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.rchip { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 45%, transparent); }
.rchip.on { background: var(--rc); color: #070d1b; border-color: var(--rc); }
.r-UR.rchip.on { background: var(--foil-h); }
.b-list { display: flex; flex-direction: column; gap: 14px; padding: 0 12px; }
.b-page { padding: 12px 12px 14px; }
.b-page.complete { border-color: var(--line-hi); }
.b-page-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.b-page-head h3 { font-family: var(--font-title); font-size: 18px; color: var(--text); letter-spacing: .06em; display: inline; }
.b-page-head small { margin-left: 8px; font: 600 14px var(--font-num); color: var(--text-2); }
.b-reward { font-size: 13px; color: var(--text-2); text-align: right; }
.b-reward.done { color: var(--ok); }
.b-claim .ico svg { width: 18px; height: 18px; display: block; }
.b-bar { height: 4px; margin: 8px 0 12px; border-radius: 2px; background: rgba(122,160,230,.12); overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--energy); }
.b-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.b-grid .cthumb { cursor: pointer; transition: translate var(--dur-press) ease-out; }
.b-grid .cthumb:active { translate: 0 2px; }
.b-empty { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; gap: 16px; align-items: center; color: var(--text-2); }

/* ======================= 把玩：卡悬在投影光里 ======================= */
.inspect { background: radial-gradient(80% 50% at 50% 34%, color-mix(in srgb, var(--rc, var(--energy)) 12%, transparent), transparent 70%); }
.screen-inspect .holo-host { bottom: var(--panel-h, 40%); }
.i-top { position: absolute !important; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-t) + 10px) 14px 0; pointer-events: none; }
.i-top > * { pointer-events: auto; }
.i-hint { min-width: 0; padding: 6px 12px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--text-2);
  background: rgba(7,13,27,.78); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.i-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: calc(var(--safe-t) + 64px) 24px 12px; touch-action: none; }
.has-holo .i-stage { pointer-events: none; }
/* 信息面板：稀有度 + 卡名 + 一行星级/类型 + 两个动作；其余在「详情」 */
.i-panel { margin: 0 12px calc(12px + var(--safe-b)); padding: 14px 16px; }
.i-title { display: flex; align-items: center; gap: 10px; }
.i-title h2 { flex: 1; min-width: 0; font-family: var(--font-title); font-size: 22px; font-weight: 900; letter-spacing: .04em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.i-count { flex: none; min-width: 30px; height: 22px; padding: 0 6px; border-radius: var(--radius-tag); text-align: center;
  font: 700 var(--fs-c)/20px var(--font-num); color: var(--text); background: var(--space-1); border: 1px solid var(--line-hi); }
.i-sub { display: flex; align-items: center; min-width: 0; margin-top: 6px; font-size: 14px; line-height: 20px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.i-sub > * + * { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line-hi); }
.i-stars { flex: none; color: var(--rc, var(--r-SSR)); letter-spacing: 1px; font-size: 15px; }
.i-star-foil { font-style: normal; } /* UR 星级依次取五段镭射色（fix7） */
.i-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.i-details { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); max-height: min(40vh, 320px); overflow-y: auto; overscroll-behavior: contain; }
.i-details[hidden] { display: none; }
.i-eff { font-size: 15px; line-height: 1.6; color: var(--text); }
.i-stats { display: flex; gap: 8px; margin-top: 10px; }
.i-stats .st { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: var(--space-1); border: 1px solid var(--line); }
.i-stats small { font-size: 12px; color: var(--text-3); }
.i-stats b { font: 600 19px/1.3 var(--font-num); font-variant-numeric: tabular-nums; }
.st.cost b { color: var(--energy); } .st.atk b { color: #ff8a7a; } .st.hp b { color: var(--ok); } .st.sh b { color: #8fc4ff; }
.i-who { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.i-flavor { margin-top: 8px; font-size: 14px; color: var(--text-2); }
.i-dust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.i-src { margin-right: auto; font-size: 13px; color: var(--text-3); }
.i-dust-row .btn { min-height: 44px; }
.i-dust-row .btn svg { width: 16px; height: 16px; flex: none; }
.i-gyro.on { border-color: var(--energy); color: var(--energy-hi); }
.i-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.i-actions .btn { min-height: 46px; padding: 0 12px; font-size: 16px; }
.i-actions .btn svg { width: 18px; height: 18px; flex: none; }

/* CSS 降级卡（holo 不可用时）：与全息卡同一套卡框 */
.ccard { width: min(68vw, calc((100dvh - var(--panel-h, 320px) - 120px) * .75), 300px); aspect-ratio: 3 / 4; perspective: 1000px; }
.ccard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: --flip .5s; }
.ccard-inner.flipped { --flip: 180deg; }
@property --flip { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.ccard-face, .ccard-back { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 3px solid color-mix(in srgb, var(--rc, var(--r-N)) 85%, #070d1b);
  box-shadow: 0 0 0 1px var(--space-0), 0 3px 0 1px var(--space-0), 0 26px 34px -18px rgba(0,0,0,.85); }
.ccard.r-SR .ccard-face, .ccard.r-SSR .ccard-face, .ccard.r-UR .ccard-face { border-color: transparent; background: var(--space-1) padding-box, var(--foil) border-box; }
.ccard-back { transform: rotateY(180deg); display: grid; place-items: center; border-color: var(--line-hi);
  background: center / cover no-repeat url("../../assets/ui/card_back.jpg"), radial-gradient(circle at 50% 45%, #13224a, #060b17 75%); }
.ccard-back-sigil { display: none; }
.ccard-bg { position: absolute; inset: -8px; transform: scale(1.06); }
.ccard-ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-title); font-size: 34px; font-weight: 900; color: rgba(233,241,255,.9);
  writing-mode: vertical-rl; letter-spacing: .2em; text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 0 14px rgba(0,0,0,.5); }
.ccard-subj { position: absolute; inset: 0; background: center bottom / cover no-repeat; }
.ccard-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,.5), transparent 45%); }
.ccard-foil { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 20%, rgba(255,143,184,.35) 32%, rgba(255,210,122,.35) 44%, rgba(124,240,196,.35) 56%, rgba(124,200,255,.35) 68%, transparent 80%);
  background-size: 200% 200%; background-position: var(--px, 50%) var(--py, 50%); }
.ccard.r-SR .ccard-foil { opacity: .4; } .ccard.r-SSR .ccard-foil { opacity: .55; } .ccard.r-UR .ccard-foil { opacity: .85; }
.ccard-frame { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; pointer-events: none; }
.ccard-top { display: flex; align-items: center; gap: 8px; }
.ccard-cost { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--font-num); color: var(--energy-ink);
  background: radial-gradient(circle at 35% 30%, #d9f9ff, var(--energy) 60%, #1d7f9c); box-shadow: 0 0 0 1px var(--space-0), 0 2px 0 var(--space-0); }
.ccard-name { flex: 1; min-width: 0; font-family: var(--font-title); font-size: 18px; font-weight: 900; color: var(--star); text-shadow: 0 1px 0 var(--space-0), 0 0 6px rgba(0,0,0,.7);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 卡底文字区：深空铭牌（和全息卡一致） */
.ccard-bot { padding: 8px 10px; border-radius: 8px; color: var(--text);
  background: linear-gradient(180deg, rgba(13,23,48,.94), rgba(7,13,27,.97)); border: 1px solid color-mix(in srgb, var(--rc) 45%, var(--line));
  box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.ccard-stars { color: var(--rc); font-size: 14px; letter-spacing: 1px; }
.ccard-type { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); font-weight: 700; }
.ccard-eff { font-size: 13px; line-height: 1.45; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .fan-card, .hub-pack, .pack-glow, .cthumb-new { animation: none !important; }
}
.cthumb-back { display: grid; place-items: center; --rc: var(--line-hi);
  background: center/cover no-repeat url("../../assets/ui/card_back.jpg"), radial-gradient(circle at 50% 45%, #13224a, #060b17 75%) !important; }
.cthumb-back span { font-family: var(--font-num); font-size: 36px; font-weight: 700; color: var(--text); text-shadow: 0 2px 0 var(--space-0); }
.fan-card .cthumb-foot, .fan-card .cthumb-new, .fan-card .cthumb-count { display: none; }
.hub-obj .cthumb.locked .cthumb-foot { display: flex; }
.sil-shape { position: absolute; left: 22%; right: 22%; top: 18%; bottom: 14%; border-radius: 40% 40% 12% 12% / 30% 30% 10% 10%;
  background: radial-gradient(circle at 50% 22%, rgba(122,160,230,.14) 0 18%, transparent 19%), linear-gradient(180deg, transparent 40%, rgba(122,160,230,.08) 41%);
  border-bottom: 2px solid color-mix(in srgb, var(--rc) 40%, transparent); }
.cthumb-ph { overflow: hidden; }
.cthumb-ph.long b { writing-mode: horizontal-tb; letter-spacing: .04em; font-size: 15px; }
@media (max-height: 700px) {
  .hub-chapter { display: none; }
  .hub-say { padding: 6px 12px 6px 8px; }
  .say-ava { width: 36px; height: 36px; font-size: 16px; }
  .hub-lower { gap: 8px; padding-bottom: 10px; }
}
.ccard { container-type: inline-size; }
@container (max-width: 210px) {
  .ccard-eff, .ccard-type { display: none; }
  .ccard-name { font-size: 15px; }
}
/* fix-flow：设置整行可点 */
.set-row { cursor: pointer; min-height: 56px; }
