/* Редактор колоды */
.deck-count { font-weight: 600; color: var(--ok); font-size: 15px; }
.deck-count.short { color: var(--bad); }
.deck-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; justify-items: center; --cw: min(15vw, 60px); }
.deck-slots button { padding: 0; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(28, 42, 70, .55); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.chip:active { filter: brightness(1.3); }
/* «Случайная» и «Очистить» — отдельной строкой по центру, приглушённое золото */
.preset-extra { flex-basis: 100%; display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.chip.gold { background: rgba(207, 174, 106, .12); box-shadow: inset 0 0 0 1px rgba(207, 174, 106, .45); color: var(--brass-hi); }
.coll-group h3 { font-size: 15px; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.coll-row { display: flex; flex-wrap: wrap; gap: 8px; --cw: min(13.5vw, 54px); }
.coll-row button { position: relative; padding: 0; }
.coll-row .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brass); color: #1b1305; font-size: 12px; font-weight: 700; display: grid; place-items: center; z-index: 2; }
.legend { display: grid; gap: 10px; margin-top: 20px; --cw: 34px; }
.legend > div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #c3cddb; }
.legend .card::before { display: none; }
.bottombar { padding: 10px 16px max(env(safe-area-inset-bottom), 12px); background: linear-gradient(180deg, transparent, rgba(5, 7, 13, .95) 30%); }
