/* Card detail actions, level-up / use-item dialogs, items and pity */
.cdm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.cdm-actions .btn.on { border-color: var(--gold); color: var(--gold); }
.lvl-items { display: flex; flex-direction: column; gap: 8px; }
.lvl-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit; text-align: left; }
.lvl-item .rw-ic { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
.lvl-item > div:not(.qty) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lvl-item b { font-size: 14px; }
.lvl-item small { font-size: 12.5px; color: var(--text-2); }
.lvl-item .qty button { height: 34px; width: 30px; }
.lvl-item .qty input { height: 34px; width: 46px; }
.lvl-item.pick { cursor: pointer; }
.lvl-item.pick:hover:not(:disabled) { border-color: var(--pink); }
.lvl-item.pick:disabled { opacity: .5; cursor: not-allowed; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.item-row div { flex: 1; display: flex; flex-direction: column; }
.item-row b { font-size: 14px; }
.item-row small { font-size: 12.5px; color: var(--text-2); }
.item-q { font-family: var(--font-display); font-size: 18px; font-weight: 800; }

.pity-claims { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.pity-claim { display: flex; align-items: center; gap: 14px; padding: 16px; }
.pity-claim.ready { border-color: #ff4db366; box-shadow: 0 0 26px #ff4db31a; }
.pity-claim div { flex: 1; display: flex; flex-direction: column; }
.pity-claim b { font-family: var(--font-display); font-size: 16px; }
.pity-claim small { color: var(--text-2); font-size: 13px; }
.pity-box { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pity-box .hub-bar { height: 10px; }
.pity-box .hub-bar > span { background: var(--rc); }
.pity-box .muted b { color: var(--text); }
.pity-rates { margin-top: 14px; padding: 18px; }
.pity-rate-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pity-rate-row span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.pity-rate-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.pity-rate-row b { color: var(--text); }
.pity-reveal { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pity-reveal img { width: 200px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 45%, transparent); }
.pity-reveal b { font-family: var(--font-display); font-size: 20px; }
.pity-reveal small { color: var(--text-2); }
.pity-reveal small.new { color: var(--green); font-weight: 700; }

/* Free pull */
.fp-panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fp-ready { align-items: center; text-align: center; padding: 34px 20px; }
.fp-ready p { max-width: 460px; }
.fp-hero { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: var(--brand-grad); font-size: 38px; box-shadow: 0 10px 40px #ff4db340; }
.fp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 16px; }
.fp-card { --rc: #888; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 10px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--rc) 55%, var(--line)); background: var(--panel); color: var(--text); font: inherit; text-align: center; cursor: pointer; box-shadow: 0 0 28px color-mix(in srgb, var(--rc) 28%, transparent); transition: transform .2s, box-shadow .2s, opacity .3s, filter .3s; }
.fp-card:hover:not(:disabled) { transform: translateY(-6px); box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 50%, transparent); }
.fp-card:disabled { cursor: default; }
.fp-card.dim { opacity: .35; filter: grayscale(.7); }
.fp-card.chosen { transform: translateY(-8px) scale(1.04); animation: fp-glow .9s ease-in-out infinite alternate; }
.fp-back { width: 100%; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: var(--bg-2); margin-bottom: 6px; }
.fp-back img { width: 100%; height: 100%; object-fit: cover; }
.fp-card b { font-family: var(--font-display); font-size: 15px; }
.fp-card small { font-size: 12.5px; color: var(--text-2); font-style: italic; }
.fp-cards.dealt .fp-card { animation: fp-deal .45s ease both; }
.fp-cards.dealt .fp-card:nth-child(2) { animation-delay: .12s; }
.fp-cards.dealt .fp-card:nth-child(3) { animation-delay: .24s; }
.fp-reveal { padding: 6px 0; animation: fp-deal .5s ease both; }
.fp-others { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.fp-other { --rc: #888; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--rc) 40%, var(--line)); background: var(--bg-2); }
.fp-other img { width: 30px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 5px; }
.fp-other b { font-size: 13px; }
.fp-other small { font-size: 11.5px; color: var(--text-3); }
@keyframes fp-deal { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fp-glow { to { box-shadow: 0 0 60px color-mix(in srgb, var(--rc) 70%, transparent); } }
@media (max-width: 760px) {
  .fp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fp-card { padding: 6px 6px 10px; }
  .fp-card small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fp-card, .fp-cards.dealt .fp-card, .fp-reveal, .fp-card.chosen { animation: none; transition: none; } }
.fp-reveal img { width: 220px; aspect-ratio: 5 / 7; }
