/* カードの見た目（対戦画面とカード一覧で共通）。ダークファンタジー：金の額縁、種類ごとの宝石色、コストが高いほど豪華 */
.card {
  --c: #9a9280; --bgc: #0d0e16;
  position: relative; width: 100%; min-width: 74px; min-height: 100%; border-radius: 7px; padding: 4px;
  display: flex; flex-direction: column; text-align: center; user-select: none; overflow: hidden; color: #ece6d6;
  border: 2px solid #7a5c22;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #1a1508) 0%, var(--bgc) 60%),
    var(--bgc);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent);
}
.card.damage { --c: #d0435a; --bgc: #140a0e; }
.card.gauge { --c: #4f93ff; --bgc: #0a0e18; }
.card.special { --c: #d6b25e; --bgc: #141008; }
.card.leader { --c: #a77bff; --bgc: #110c1c; border-color: #f6e3a6; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px var(--c), 0 0 14px #a77bff88; }
.card.leader::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 30%, #fff3d622 45%, #a77bff22 55%, transparent 70%); background-size: 250% 100%; animation: holo 3.2s linear infinite; }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }

.card .art { position: relative; aspect-ratio: 1; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #05060a; box-shadow: 0 0 0 1px #000, 0 0 0 2px #7a5c2299; }
.card .art::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 14px #000c; }
.card .art svg, .card .art .art-img { display: block; width: 100%; height: 100%; }
.card .art .art-img { object-fit: cover; }
/* コスト：宝石 */
.card .cost {
  position: absolute; top: 3px; left: 3px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #f6e3a6; color: #fff; font-family: "Cinzel", "Times New Roman", serif; font-size: 13px; font-weight: 900; line-height: 19px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 40%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 40%, #000) 100%);
  text-shadow: 0 1px 2px #000; box-shadow: 0 1px 3px #000;
  clip-path: none;
}
.card .name {
  font-family: "Shippori Mincho B1", "Yu Mincho", serif; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; color: #f6eccd; text-shadow: 0 1px 2px #000;
}
.card .eff { font-size: 10px; color: #cfc6b0; line-height: 1.3; }
.card .req { font-size: 9px; line-height: 1.2; color: #1a1206; background: linear-gradient(180deg, #f6e3a6, #d6b25e); border-radius: 3px; padding: 1px 2px; margin-top: 3px; }

/* レア度（汎用↔局所的。強さではない） */
.card .rar { position: absolute; top: 4px; right: 4px; z-index: 1; min-width: 18px; height: 16px; padding: 0 3px; border-radius: 3px; font-family: "Cinzel", serif; font-size: 10px; font-weight: 900; line-height: 15px; background: #000c; color: #c8c0aa; border: 1px solid #6a6150; }
.card .rar.r-U { color: #cfe0ff; border-color: #7da7ff; }
.card .rar.r-R { color: #ffe9a8; border-color: #d6b25e; }
.card .rar.r-LR { color: #fff; border-color: #fff; background: linear-gradient(135deg, #a77bff, #d6b25e, #d0435a); }
.card .rar.r-SR { color: #fff; border-color: #fff; background: linear-gradient(135deg, #a77bff, #4f93ff); }

/* 額縁：コスト0〜1 銅 / 2〜3 銀 / 4〜5 金 / 6以上 輝く金＋角飾り */
.card.f0 { border-color: #6a4a2a; }
.card.f2 { border-color: #a9adb8; }
.card.f4 { border-color: #d6b25e; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), 0 0 10px #d6b25e66; }
.card.f6 { border: 2px solid #f6e3a6; padding: 5px; box-shadow: inset 0 0 0 1px #000, inset 0 0 0 3px #d6b25e, 0 0 16px #f0cf72aa; }
.card.f6::before, .card.f6::after { content: '◆'; position: absolute; left: 50%; transform: translateX(-50%); font-size: 9px; line-height: 1; color: #f6e3a6; z-index: 3; text-shadow: 0 0 6px #f0cf72; pointer-events: none; }
.card.f6::before { top: -1px; }
.card.f6::after { bottom: -1px; }
