.coll-count { margin-top: -0.25rem; }
.filters { display: flex; flex-direction: column; gap: 0.6rem; }
.pill-select { min-height: 2.75rem; border-radius: 999px; padding-inline: 0.9rem; font-family: var(--font-display); font-weight: 800; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem 0.7rem; padding: 0.4rem 0.35rem 0.2rem; }
.grid-empty { grid-column: 1 / -1; }
.foot-note { text-align: center; font-size: 0.9rem; }
.foot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; position: sticky; bottom: 0; padding-block: 0.5rem; background: linear-gradient(transparent, var(--screen-bg) 30%); }

/* Cửa sổ xem thẻ lớn */
.detail-backdrop { align-items: start; }
.detail { width: min(100%, 22rem); margin-inline: auto; display: flex; flex-direction: column; gap: 0.6rem; padding-block: 0.5rem; }
.detail-card { width: min(78%, 17rem); margin: 0.3rem auto 0; }
.detail-sub { text-align: center; color: #fff6e0; font-weight: 800; }
.detail-kw p { font-size: 0.95rem; margin: 0; }
.detail-kw p + p { margin-top: 0.3rem; }
.kw-name { color: var(--keyword); }
.detail-owned { text-align: center; color: #fff6e0; font-size: 1.1rem; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.detail-hint { text-align: center; color: #e8d9b8; font-size: 0.85rem; }

/* Chế ngẫu nhiên */
.craft-box { text-align: center; }
.rarity-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.6rem; }
.rarity-pick { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; min-height: 4.2rem; border-width: 3px; color: #3a2616; background: #f6ecd6; }
.rarity-pick.r-R { border-color: #3f8ce0; } .rarity-pick.r-SR { border-color: #9a55e0; } .rarity-pick.r-L { border-color: #e0b013; background: #fff3c8; }
.rarity-pick b { font-size: 1.15rem; }
.cost-line { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 1rem; font-weight: 800; }
.spin-stage { display: grid; place-items: center; min-height: 14rem; }
.spin-slot { width: 9rem; padding: 0.3rem; border-radius: 1rem; background: rgb(0 0 0 / 0.08); }
.spin-slot.landed { animation: landed 0.5s ease-out; box-shadow: 0 0 30px 8px #ffd447; }
@keyframes landed { 0% { transform: scale(0.7) rotate(-6deg); } 60% { transform: scale(1.14) rotate(2deg); } 100% { transform: scale(1); } }
.craft-backdrop { align-items: center; }
.rarity-pick.is-locked, .rarity-pick.r-L.is-locked { background: #5a4636; border-color: #d3382a; color: #ffe1db; }
