/* 共用稀有度樣式（rarity.js）：普通 灰白／精良 綠／稀有 藍／傳說 金／神話 紅 */
.rt-common { --rt: #c9d3e0; --rt-d: #6f7c8e; }
.rt-fine { --rt: #4fcf5f; --rt-d: #1f7a2c; }
.rt-rare { --rt: #3a9cff; --rt-d: #1452a0; }
.rt-legend { --rt: #ffbe1a; --rt-d: #9a5b00; }
.rt-mythic { --rt: #ff3b5c; --rt-d: #9c0f2a; }

/* 文字色（單獨用在名稱上） */
.rt-c.rt-common, .rt-c.rt-fine, .rt-c.rt-rare, .rt-c.rt-legend, .rt-c.rt-mythic { color: var(--rt-d); font-weight: 700; }

/* 小標籤 */
.rt-tag { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 12px; line-height: 17px; font-weight: 700;
  color: #fff; background: var(--rt, #c9d3e0); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); white-space: nowrap; vertical-align: middle; }
.rt-tag.rt-common { color: #34404f; text-shadow: none; }
.rt-tag.rt-legend { color: #4a2400; text-shadow: none; background: linear-gradient(90deg, #ffd23a, #ffa000); }
.rt-tag.rt-mythic { background: linear-gradient(90deg, #ff3b5c, #c4122f); }

/* 外框（卡片、道具格） */
.rt-frame { border: 2px solid var(--rt, #c9d3e0) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }

/* 發光（傳說金光、神話紅光會呼吸） */
.rt-glow { box-shadow: 0 0 6px 1px var(--rt, transparent); }
.rt-glow.rt-common { box-shadow: none; }
.rt-glow.rt-legend, .rt-glow.rt-mythic { animation: rtPulse 1.6s ease-in-out infinite; }
@keyframes rtPulse { 0%, 100% { box-shadow: 0 0 5px 1px var(--rt); } 50% { box-shadow: 0 0 14px 4px var(--rt); } }
@media (prefers-reduced-motion: reduce) { .rt-glow.rt-legend, .rt-glow.rt-mythic { animation: none; } }

