/* ===== 卡面（复刻定稿风格：镭射银边、银盾徽章、毛笔体渐变描边字） ===== */
@font-face { font-family: 'Brush'; src: url(/fonts/brush.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url(/fonts/cinzel.woff2) format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Label'; src: url(/fonts/label.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'NSerif'; src: url(/fonts/serif.woff2) format('woff2'); font-weight: 600; font-display: swap; }

.tier-N   { --t1: #F5F8FC; --t2: #AAB4C3; --glow: #CDD4E1; --lab: #3c4658; }
.tier-R   { --t1: #EBFFF0; --t2: #50C882; --glow: #78E6A0; --lab: #196e41; }
.tier-SR  { --t1: #FFFFFF; --t2: #6EBEFF; --glow: #78C8FF; --lab: #1e50a0; }
.tier-SSR { --t1: #FFF8D7; --t2: #F0B43C; --glow: #FFCD5A; --lab: #965f0f; }
.tier-UR  { --t1: #FFEBEB; --t2: #EB3C46; --glow: #FF5A64; --lab: #96141e; }
.tier-MR  { --t1: #fff; --t2: #fff; --glow: #E6AAFF; --lab: #6e32a0; }

.card {
  --navy: #162448; font-synthesis: none; font-weight: 400;
  container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1062 / 1482;
  border-radius: 4.2cqw; user-select: none; text-rendering: geometricPrecision; -webkit-user-select: none;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255,140,200,.35) 30%, rgba(140,220,255,.4) 38%, rgba(190,255,170,.35) 46%, transparent 56%),
    linear-gradient(160deg, #f4f6fa 0%, #b3bfd3 18%, #eef2f8 32%, #9eabc2 48%, #f6f8fb 62%, #aeb9cd 80%, #e9eef6 100%);
  background-size: 260% 260%, 100% 100%;
  animation: holoMove 6s ease-in-out infinite alternate;
  box-shadow: 0 .6cqw 2.5cqw rgba(10, 20, 50, .45), inset 0 0 0 .35cqw rgba(255,255,255,.7);
}
@keyframes holoMove { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 100%, 0 0; } }
.card-in { position: absolute; inset: 2.3cqw; border-radius: 2.8cqw; overflow: hidden; background: #2a3a4a; box-shadow: inset 0 0 0 .3cqw rgba(22,36,72,.55); }
.card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card .veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 56%, rgba(240,246,250,.45) 66%, rgba(236,243,248,.72) 78%, rgba(232,240,246,.86) 100%); }
.card .sheen { position: absolute; inset: 0; border-radius: 4.2cqw; pointer-events: none; mix-blend-mode: soft-light; opacity: .0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.9) 48%, transparent 60%); background-size: 300% 100%; }
.card.holo.tier-SR .sheen, .card.holo.tier-SSR .sheen, .card.holo.tier-UR .sheen, .card.holo.tier-MR .sheen { opacity: .55; animation: sheen 4.5s linear infinite; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* 艺术字：描边层 + 渐变填充层 */
.fx { position: relative; display: inline-block; line-height: 1; white-space: nowrap; }
.fx-s { color: var(--navy); -webkit-text-stroke: var(--sw, .95cqw) var(--navy); paint-order: stroke fill;
  text-shadow: 0 0 var(--gr, .8cqw) var(--glow), 0 0 calc(var(--gr, .8cqw) * 1.8) var(--glow); }
.fx-f { position: absolute; left: 0; top: 0; color: transparent; background: linear-gradient(to bottom, var(--t1) 12%, var(--t2) 92%); -webkit-background-clip: text; background-clip: text; }
.tier-MR .fx-f { background: linear-gradient(90deg, #ff788c, #ffd26e, #8cf0aa, #78beff, #d28cff); -webkit-background-clip: text; background-clip: text; }
.fx.brush { font-family: 'Brush', 'NSerif', serif; }
.fx.num { font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: -.02em; }

/* 左上：银色盾徽 */
.plate { position: absolute; left: 0; top: .5cqw; width: 18cqw; height: 8.6cqw; border-radius: 1.6cqw;
  background: linear-gradient(#fafcff, #b9c8dc 45%, #8ca0be 55%, #ebf2fc); box-shadow: 0 .4cqw .9cqw rgba(10,20,50,.35); }
.plate::before { content: ''; position: absolute; inset: .3cqw; border-radius: 1.3cqw; background: linear-gradient(rgba(245,250,255,.95), rgba(200,222,245,.88)); }
.shield { position: absolute; left: 1cqw; top: .6cqw; width: 7.4cqw; height: 8.3cqw; clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%);
  background: linear-gradient(#fafcff, #b9c8dc 45%, #8ca0be 55%, #ebf2fc); }
.shield-in { position: absolute; inset: .45cqw; clip-path: polygon(0 0, 100% 0, 100% 56%, 50% 100%, 0 56%); background: linear-gradient(#5a96d7, #12285c); }
.shield .fx { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) skewX(-8deg); --sw: .55cqw; --gr: .45cqw; }
.code-1 { font-size: 4.3cqw; } .code-2 { font-size: 3.6cqw; } .code-3 { font-size: 2.85cqw; }
.plate .tname { position: absolute; left: 8.6cqw; width: 9cqw; top: 1.3cqw; text-align: center; font-family: 'Label', sans-serif; font-size: 2.15cqw; color: var(--lab); white-space: nowrap; }
.plate .tstars { position: absolute; left: 8.6cqw; width: 9cqw; top: 4.7cqw; text-align: center; font-size: 1.6cqw; letter-spacing: -.05em; color: var(--lab); white-space: nowrap; }
.tier-UR .plate .tstars, .tier-MR .plate .tstars { font-size: 1.35cqw; }

.cname { position: absolute; left: 20.5cqw; top: 1.2cqw; font-size: 7.2cqw; --sw: 1cqw; }
.sci { position: absolute; left: 21cqw; top: 10.1cqw; font-family: 'NSerif', serif; font-style: italic; font-size: 2.35cqw; color: #283c69; text-shadow: 0 0 .35cqw #fff, 0 0 .7cqw #fff; white-space: nowrap; }
.pill { position: absolute; left: 7.2cqw; top: 14.1cqw; height: 3.3cqw; display: flex; align-items: center; gap: 1.6cqw; padding: 0 2.4cqw;
  background: rgba(28,40,70,.92); color: #ebf2ff; clip-path: polygon(1.6cqw 0, calc(100% - 1.6cqw) 0, 100% 50%, calc(100% - 1.6cqw) 100%, 1.6cqw 100%, 0 50%);
  box-shadow: 0 0 0 .3cqw #fff; outline: .25cqw solid rgba(255,255,255,.8); }
.p-iucn { font-kerning: none; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.9cqw; }
.p-cn { font-family: 'Label', sans-serif; font-size: 2.2cqw; }
.p-code { font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.1cqw; color: #ffd65a; }

.hp { position: absolute; right: 11.8cqw; top: 2.4cqw; display: flex; align-items: center; gap: .9cqw; }
.hp-l { font-family: 'Label', sans-serif; font-size: 2.4cqw; color: #1e325f; text-shadow: 0 0 .4cqw #fff, 0 0 .8cqw #fff; padding-top: 1.8cqw; }
.hp .fx { font-size: 5.6cqw; --sw: .8cqw; }
.hab { display: inline-grid; place-items: center; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--hc) 70%, #fff), var(--hc) 60%, color-mix(in srgb, var(--hc) 70%, #000));
  box-shadow: 0 0 0 .35cqw #eef3fa, 0 0 0 .6cqw #8b9ab3, 0 .3cqw .8cqw rgba(0,0,0,.35); }
.hab svg { width: 62%; height: 62%; }
.hab-top { position: absolute; right: 2.6cqw; top: 2.2cqw; width: 7cqw; height: 7cqw; }
.hab-sm { width: 3.6cqw; height: 3.6cqw; box-shadow: 0 0 0 .25cqw #eef3fa, 0 0 0 .4cqw #8b9ab3; }

.medal { position: absolute; width: 21cqw; left: 63.8cqw; top: 60.6cqw; filter: drop-shadow(0 .5cqw .7cqw rgba(10,20,40,.55)); }

/* 招式 */
.mv { position: absolute; left: 0; right: 0; height: 13cqw; }
.mv1 { top: 81.5cqw; } .mv2 { top: 94.9cqw; }
.mv-cost { position: absolute; left: 4.5cqw; top: 0; display: flex; gap: .7cqw; }
.en { width: 5.1cqw; height: 5.1cqw; border-radius: 50%; display: grid; place-items: center; font-size: 3.2cqw; line-height: 1; }
.en-c { background: radial-gradient(circle at 35% 30%, #fff, #dfe5ee 55%, #a9b4c6); color: #1b2236; box-shadow: 0 0 0 .3cqw #5d6a82, 0 .2cqw .5cqw rgba(0,0,0,.4); }
.en-h { color: #fff; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--hc) 65%, #fff), var(--hc) 60%, color-mix(in srgb, var(--hc) 70%, #000)); box-shadow: 0 0 0 .3cqw #e8eef7, 0 0 0 .5cqw #5d6a82, 0 .2cqw .5cqw rgba(0,0,0,.4); }
.en-h svg { width: 64%; height: 64%; }
.mv-name { position: absolute; left: 26cqw; top: -.6cqw; font-size: 6.1cqw; --sw: .9cqw; }
.mv-dmg { position: absolute; right: 5cqw; top: -.3cqw; font-size: 5cqw; --sw: .8cqw; }
.mv-text { position: absolute; left: 5.6cqw; right: 5cqw; top: 6.6cqw; font-family: 'NSerif', serif; font-weight: 600; font-size: 2.35cqw; color: #162448; line-height: 1.25;
  text-shadow: 0 0 .3cqw #fff, 0 0 .6cqw #fff, 0 0 1cqw rgba(255,255,255,.9); }

.wrr { position: absolute; left: 2.6cqw; right: 2.6cqw; top: 108.6cqw; height: 5.4cqw; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.6cqw; }
.wr-cell { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; background: linear-gradient(rgba(255,255,255,.55), rgba(220,232,244,.5));
  border: .25cqw solid rgba(255,255,255,.85); transform: skewX(-18deg); box-shadow: 0 .2cqw .6cqw rgba(20,40,80,.2); }
.wr-cell > * { transform: skewX(18deg); }
.lab { font-family: 'Label', sans-serif; font-size: 2.3cqw; color: #1e325f; }
.wr-cell .fx { font-size: 3.2cqw; --sw: .6cqw; }
.wr-cell .en { width: 3.4cqw; height: 3.4cqw; font-size: 2.1cqw; }
.wr-cell .zero { font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.6cqw; color: #1e325f; }

.abil { position: absolute; left: 4.6cqw; top: 115.8cqw; width: 50cqw; }
.ab-pill { position: absolute; left: 0; top: .2cqw; width: 11cqw; height: 3.7cqw; border-radius: 2cqw; display: grid; place-items: center;
  background: linear-gradient(#2c4478, #142450); color: #fff; font-family: 'Label', sans-serif; font-size: 2.3cqw; box-shadow: 0 0 0 .3cqw #fff, 0 .2cqw .5cqw rgba(0,0,0,.3); }
.ab-name { position: absolute; left: 14cqw; top: -.6cqw; font-size: 4.4cqw; --sw: .75cqw; }
.ab-text { position: absolute; left: 1cqw; top: 5.2cqw; width: 50cqw; font-family: 'NSerif', serif; font-weight: 600; font-size: 2.2cqw; line-height: 1.3; color: #162448;
  text-shadow: 0 0 .3cqw #fff, 0 0 .6cqw #fff; }
.flavor { position: absolute; left: 57cqw; right: 1.2cqw; top: 115.8cqw; height: 13.6cqw; display: flex; align-items: center; padding: 0 2.2cqw 0 4.4cqw;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hab, #3c6e5a) 65%, #0b1a2c), rgba(16,36,58,.78)); clip-path: polygon(3.4cqw 0, 100% 0, 100% 100%, 0 100%);
  color: #f2f7ff; font-family: 'NSerif', serif; font-weight: 600; font-size: 2.02cqw; line-height: 1.42; }
.flavor > div { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.foot { font-kerning: none; position: absolute; left: 4cqw; right: 3cqw; bottom: 1.4cqw; display: flex; align-items: center; gap: 3cqw; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.7cqw; color: #24345c; }
.foot .cno { margin-left: 14cqw; } .foot .fstar { font-size: 2cqw; } .foot .fhab { margin-left: auto; font-family: 'Label', sans-serif; font-weight: 400; font-size: 1.8cqw; }

/* 未拥有：剪影 */
.card.locked { background: linear-gradient(160deg, #6b7488, #3b4356); animation: none; }
.card.locked .art { filter: grayscale(1) brightness(.32) contrast(1.3) blur(1.2px); transform: scale(1.04); }
.card.locked .card-in { background: radial-gradient(circle at 50% 40%, #3d4a66, #101826); }
.lock-q { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Cinzel', serif; font-weight: 900; font-size: 30cqw; color: rgba(255,255,255,.18); }
.lock-no { position: absolute; bottom: 3cqw; width: 100%; text-align: center; font-family: 'Cinzel', serif; font-weight: 900; font-size: 7cqw; color: rgba(255,255,255,.6); }

/* 卡背 */
.card.back { background: linear-gradient(160deg, #e9d9a8, #9d7d3c 30%, #f3e3b4 55%, #8a6a2c 80%, #e6d39d); animation: none; }
.card.back .card-in { background: radial-gradient(circle at 50% 40%, #2a4478, #0e1a38 70%); }
.back-art { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4cqw; }
.back-art svg { width: 60cqw; }
.back-t { font-family: 'Brush', serif; font-size: 11cqw; color: #e7d29a; letter-spacing: .1em; }
