/* Commander: the public bracket checker, the commander pages and the deck tab (resources/views/commander). */
.cmd-page { max-width: 880px; margin: 0 auto; padding: 1.25rem 1rem 5rem; color: var(--text-primary, #f8f9fa); display: flex; flex-direction: column; gap: 1rem; }
.cmd-page *, .cmd-page *::before, .cmd-page *::after { box-sizing: border-box; }
.cmd-hero { padding: 1.4rem 0 0.4rem; }
.cmd-hero--slim { padding-top: 0.4rem; }
.cmd-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-secondary, #d998ff); }
.cmd-hero h1 { margin: 0 0 0.5rem; font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cmd-hero h1 span { color: var(--accent-secondary, #d998ff); }
.cmd-hero p { margin: 0; max-width: 60ch; font-size: 1.02rem; color: var(--text-muted, #a99fc4); }
.cmd-back { font-size: 14px; font-weight: 700; color: var(--text-muted, #a99fc4); text-decoration: none; }
.cmd-back:hover { color: #fff; }

.cmd-card { background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); border-radius: 16px; padding: 1.1rem 1.25rem; }
.cmd-card h2, .cmd-card h3 { margin: 0 0 0.7rem; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.cmd-card p { margin: 0 0 0.6rem; }
.cmd-muted { color: var(--text-muted, #a99fc4); font-size: 14px; }
.cmd-error { color: #fda4af; font-size: 14px; font-weight: 600; margin: 0.4rem 0 0; }
.cmd-warn { color: #fcd34d; }

/* the form */
.cmd-form { display: flex; flex-direction: column; gap: 0.5rem; }
.cmd-form label { display: flex; flex-direction: column; gap: 2px; }
.cmd-form label small { font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-form textarea, .cmd-form input[type="url"], .cmd-pick select { width: 100%; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.16)); background: #0d0914; color: #fff; font: inherit; font-size: 16px; }
.cmd-form textarea { min-height: 14rem; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; }
.cmd-form textarea:focus, .cmd-form input:focus, .cmd-pick select:focus { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.cmd-form__or { display: flex; align-items: center; gap: 0.8rem; margin: 0.4rem 0; color: var(--text-muted, #a99fc4); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cmd-form__or::before, .cmd-form__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
.cmd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.16)); background: transparent; color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.cmd-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.cmd-btn--primary { background: #7a42ee; border-color: #7a42ee; margin-top: 0.4rem; }
.cmd-btn--primary:hover { background: #8a58f2; }
.cmd-btn[disabled] { opacity: 0.6; cursor: progress; }
.cmd-btn:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-explain ul { margin: 0 0 0.8rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cmd-explain li { color: var(--text-secondary, #c4d1e3); }

/* the page of a result */
.cmd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 0.8rem; }
.cmd-share small { flex: 1 1 18rem; font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-pick__form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cmd-pick__form select { flex: 1 1 16rem; width: auto; }
.cmd-pick__form .cmd-btn { margin-top: 0; }
.cmd-cta { text-align: center; color: var(--text-muted, #a99fc4); }
.cmd-cta a { color: var(--accent-secondary, #d998ff); font-weight: 700; }

/* the analysis */
.cmd-analysis { display: flex; flex-direction: column; gap: 1rem; }
.cmd-commanders { display: flex; flex-wrap: wrap; gap: 1rem; }
.cmd-commander { display: flex; align-items: center; gap: 1rem; flex: 1 1 18rem; padding: 0.9rem; border-radius: 16px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); }
.cmd-commander img { width: 110px; height: auto; border-radius: 8px; flex: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.cmd-commander div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmd-commander small { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-commander b { font-size: 1.15rem; }
.cmd-commander span { font-size: 14px; color: var(--text-muted, #a99fc4); }
.cmd-pips { display: flex; gap: 4px; margin-top: 4px; }

.cmd-bracket { display: flex; align-items: center; gap: 1.2rem; background: linear-gradient(135deg, #2a1c52, #171220 70%); border-color: rgba(143, 92, 255, 0.5); }
.cmd-bracket__num { flex: none; width: 5.2rem; height: 5.2rem; display: grid; place-items: center; border-radius: 22px; background: #7a42ee; font-size: 3.2rem; font-weight: 800; line-height: 1; }
.cmd-bracket__body small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-bracket__body h2 { margin: 0.1rem 0 0.3rem; font-size: 1.7rem; }
.cmd-bracket__body p { margin: 0; color: var(--text-secondary, #c4d1e3); }
.cmd-reasons { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.cmd-reasons li { display: flex; flex-direction: column; gap: 0.3rem; }
.cmd-reasons li > span:not(.cmd-chips) { color: var(--text-muted, #a99fc4); font-size: 14px; }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cmd-chips em { font-style: normal; padding: 0.15rem 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.08); font-size: 13px; font-weight: 600; }
.cmd-limits { margin: 0; font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-limits a { color: var(--accent-secondary, #d998ff); }

.cmd-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.7rem; border-radius: 99px; font-size: 13px; font-weight: 800; }
.cmd-badge.is-ok { background: rgba(34, 197, 94, 0.18); color: #6ee7a8; }
.cmd-badge.is-bad { background: rgba(251, 113, 133, 0.18); color: #fda4af; }
.cmd-issues { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.cmd-issues li { display: flex; gap: 0.7rem; }
.cmd-issues li > i { margin-top: 3px; }
.cmd-issues li.is-error > i { color: #fda4af; }
.cmd-issues li.is-warning > i { color: #fcd34d; }
.cmd-issues li > div { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.cmd-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.6rem; margin-bottom: 1rem; }
.cmd-metric { padding: 0.7rem 0.9rem; border-radius: 12px; background: #110d18; border: 1px solid rgba(255, 255, 255, 0.08); border-left-width: 4px; }
.cmd-metric.is-ok { border-left-color: #22c55e; }
.cmd-metric.is-low, .cmd-metric.is-high { border-left-color: #fbbf24; }
.cmd-metric summary { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 0.5rem; list-style: none; cursor: pointer; min-height: 44px; }
.cmd-metric summary::-webkit-details-marker { display: none; }
.cmd-metric summary span { font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-metric summary b { font-size: 1.6rem; line-height: 1; }
.cmd-metric summary small { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted, #a99fc4); }
.cmd-metric .cmd-chips { margin-top: 0.5rem; }
.cmd-curve { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; align-items: end; height: 8rem; margin-bottom: 0.6rem; }
.cmd-curve__col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 2px; }
.cmd-curve__col i { display: block; width: 70%; min-height: 2px; border-radius: 4px 4px 0 0; background: #8f5cff; }
.cmd-curve__col b { position: absolute; top: 0; font-size: 12px; }
.cmd-curve__col span { font-size: 12px; color: var(--text-muted, #a99fc4); }

@media (max-width: 575.98px) {
    .cmd-bracket { flex-direction: column; align-items: flex-start; }
    .cmd-commander img { width: 88px; }
    .cmd-btn { width: 100%; }
    .cmd-share .cmd-btn { width: auto; }
}

/* the pages of the commanders */
.cmd-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.6rem; }
.cmd-list a { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 0.8rem 1rem; border-radius: 14px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); color: #fff; text-decoration: none; }
.cmd-list a:hover { border-color: rgba(143, 92, 255, 0.6); }
.cmd-list b { font-size: 1rem; }
.cmd-list span { font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-bars, .cmd-top { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 0.6rem; padding: 0; list-style: none; }
.cmd-bars__row, .cmd-top li { position: relative; display: grid; grid-template-columns: minmax(7rem, 14rem) 1fr 3rem; align-items: center; gap: 0.7rem; min-height: 32px; }
.cmd-top li { grid-template-columns: minmax(8rem, 18rem) 1fr 3.2rem; }
.cmd-bars__row i, .cmd-top li i { display: block; height: 10px; border-radius: 5px; background: #8f5cff; }
.cmd-bars__row b, .cmd-top li b { text-align: right; font-size: 14px; }
.cmd-top li span { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-gc { font-style: normal; margin-left: 0.3rem; padding: 0 0.45rem; border-radius: 99px; background: rgba(251, 191, 36, 0.18); color: #fcd34d; font-size: 11px; font-weight: 800; }
.cmd-decks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
.cmd-decks li { display: flex; flex-direction: column; gap: 1px; min-height: 48px; padding: 0.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cmd-decks li:first-child { border-top: 0; }
.cmd-decks a { color: #fff; text-decoration: none; }
.cmd-decks a:hover { color: var(--accent-secondary, #d998ff); }
.cmd-decks span { font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-deck { display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 575.98px) { .cmd-bars__row, .cmd-top li { grid-template-columns: minmax(6rem, 9rem) 1fr 2.6rem; } }

/* the Commander groups */
.cmd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.cmd-list--groups { margin-bottom: 0.4rem; }
.cmd-alert { border-color: rgba(251, 113, 133, 0.5); }
.cmd-alert p { margin: 0 0 0.3rem; color: #fda4af; font-weight: 600; }
.cmd-table-wrap { overflow-x: auto; }
.cmd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmd-table th { padding: 0.4rem 0.7rem; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #a99fc4); border-bottom: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; }
.cmd-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.cmd-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmd-field span { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.cmd-field--grow { flex: 1 1 14rem; }
.cmd-field input, .cmd-field select, .cmd-form input[type="text"] { width: 100%; min-height: 46px; padding: 0 0.8rem; border-radius: 12px; border: 1px solid var(--surface-border, rgba(255, 255, 255, 0.16)); background: #0d0914; color: #fff; font: inherit; font-size: 16px; }
.cmd-field input:focus, .cmd-field select:focus { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.cmd-game { display: flex; flex-direction: column; gap: 0.9rem; }
.cmd-game__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.7rem; }
.cmd-seats { display: flex; flex-direction: column; gap: 0.7rem; }
.cmd-seat { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; padding: 0.7rem; border-radius: 14px; background: #110d18; border: 1px solid rgba(255, 255, 255, 0.07); }
.cmd-win { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.cmd-win input { position: absolute; opacity: 0; pointer-events: none; }
.cmd-win span { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 800; color: var(--text-muted, #a99fc4); }
.cmd-win input:checked + span { background: rgba(34, 197, 94, 0.2); border-color: #22c55e; color: #6ee7a8; }
.cmd-win input:focus-visible + span { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-win--none input:checked + span { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cmd-game__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }
.cmd-game .cmd-btn--primary { margin-top: 0; }
.cmd-games { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cmd-games li { padding: 0.8rem 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cmd-games li:first-child { border-top: 0; padding-top: 0; }
.cmd-games__head { display: flex; align-items: center; gap: 0.8rem; }
.cmd-games__head form { margin: 0 0 0 auto; }
.cmd-games__seats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.cmd-games__seats span { padding: 0.2rem 0.7rem; border-radius: 99px; background: rgba(255, 255, 255, 0.06); font-size: 14px; }
.cmd-games__seats span.is-win { background: rgba(34, 197, 94, 0.16); color: #6ee7a8; }
.cmd-games__seats em { font-style: normal; color: var(--text-muted, #a99fc4); }
.cmd-games__seats .is-win em { color: #a7f3d0; }
.cmd-games p { margin: 0.3rem 0 0; }
.cmd-link { min-height: 44px; padding: 0 0.4rem; border: 0; background: none; color: #fda4af; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cmd-people { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cmd-people li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cmd-people li:first-child { border-top: 0; }
.cmd-people form { margin: 0; }
.cmd-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin-bottom: 1rem; }
.cmd-inline .cmd-btn { margin-top: 0; }
.cmd-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.8rem 1rem; margin-bottom: 1rem; border-radius: 14px; background: rgba(122, 66, 238, 0.14); border: 1px solid rgba(143, 92, 255, 0.5); }
.cmd-invite small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-invite b { font-size: 1.5rem; letter-spacing: 0.12em; }
.cmd-danger { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.cmd-danger form { margin: 0; }
.cmd-btn--danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.4); }
.cmd-btn--danger:hover { background: rgba(244, 63, 94, 0.18); color: #fecdd3; }
@media (max-width: 639.98px) {
    .cmd-table thead { display: none; }
    .cmd-table, .cmd-table tbody, .cmd-table tr, .cmd-table td { display: block; width: 100%; }
    .cmd-table tr { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .cmd-table td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; border: 0; text-align: right; }
    .cmd-table td::before { content: attr(data-label); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #a99fc4); text-align: left; }
    .cmd-seat .cmd-win { flex: 1 1 100%; }
    .cmd-seat .cmd-win span { width: 100%; }
}

/* the combos of Commander Spellbook */
.cmd-combos { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.cmd-combos li { display: flex; flex-direction: column; gap: 0.3rem; }
.cmd-combos__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.cmd-combos__link { font-size: 13px; color: var(--accent-secondary, #d998ff); }
.cmd-badge.is-warn { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.cmd-badge:not(.is-ok):not(.is-bad):not(.is-warn) { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary, #c4d1e3); }

/* a combo opens to show how it works */
.cmd-combo { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: #110d18; }
.cmd-combo.is-relevant { border-color: rgba(143, 92, 255, 0.45); }
.cmd-combo > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; min-height: 48px; padding: 0.6rem 0.9rem; cursor: pointer; list-style: none; }
.cmd-combo > summary::-webkit-details-marker { display: none; }
.cmd-combo > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 0.7rem; color: var(--text-muted, #a99fc4); }
.cmd-combo[open] > summary::after { transform: rotate(180deg); }
.cmd-combo > summary small { flex: 1 1 100%; }
.cmd-combo__body { display: grid; gap: 0.8rem; padding: 0 0.9rem 0.9rem; font-size: 14px; }
.cmd-combo__body h4 { margin: 0 0 0.25rem; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted, #a99fc4); }
.cmd-combo__body ul, .cmd-combo__body ol { margin: 0; padding-left: 1.2rem; }
.cmd-combo__body li { margin-bottom: 0.2rem; color: var(--text-secondary, #c4d1e3); }
.cmd-credit { margin: 0; text-align: center; font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-credit a { color: var(--accent-secondary, #d998ff); }
.cmd-keep { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-color: rgba(143, 92, 255, 0.5); }
.cmd-keep h2 { margin-bottom: 0.2rem; }
.cmd-keep p { margin: 0; }
.cmd-keep .cmd-btn--primary { margin-top: 0; }

/* the way in, like the form of a new deck: numbered steps and two ways to bring the list */
.cmd-form__head { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; }
.cmd-form__head h2 { margin: 0; font-size: 1.05rem; }
.cmd-step { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #7a42ee; font-size: 0.85rem; font-weight: 800; }
.cmd-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.6rem; }
.cmd-choice { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: center; min-height: 64px; padding: 0.7rem 1rem; text-align: left; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: #110d18; color: #fff; font: inherit; cursor: pointer; }
.cmd-choice i { grid-row: 1 / 3; font-size: 1.2rem; color: var(--accent-secondary, #d998ff); }
.cmd-choice span { font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-choice.is-on { border-color: #8f5cff; background: rgba(122, 66, 238, 0.18); }
.cmd-choice:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-source { display: flex; flex-direction: column; gap: 0.5rem; }
.cmd-source[hidden] { display: none; }

/* the list of commanders: a tile with the art of the card, search, colours and order */
.cmd-filter { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.cmd-filter__row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cmd-filter__search { flex: 1 1 16rem; }
.cmd-filter__sort { flex: 0 1 12rem; }
.cmd-filter__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.cmd-filter__label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #a99fc4); margin-right: 0.2rem; }
.cmd-colorbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.7rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.16); background: #110d18; color: #fff; font-weight: 700; cursor: pointer; opacity: 0.7; }
.cmd-colorbtn:hover { opacity: 1; }
.cmd-colorbtn[aria-pressed="true"] { opacity: 1; border-color: #8f5cff; background: rgba(143, 92, 255, 0.22); }
.cmd-colorbtn:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-filter__count { margin: 0; }
.cmd-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.7rem; }
.cmd-tiles li[hidden] { display: none; }
.cmd-tiles a { display: flex; flex-direction: column; overflow: hidden; height: 100%; border-radius: 16px; background: var(--bg-card, #171220); border: 1px solid var(--surface-border-soft, rgba(255, 255, 255, 0.08)); color: #fff; text-decoration: none; }
.cmd-tiles a:hover { border-color: rgba(143, 92, 255, 0.6); }
.cmd-tiles a:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-tile__art { display: block; height: 7.5rem; background: #221a33 center 22% / cover no-repeat; }
.cmd-tile__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.7rem 0.9rem 0.85rem; }
.cmd-tile__body b { font-size: 1rem; line-height: 1.25; }
.cmd-tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cmd-tile__meta .cmd-pips { margin-top: 0; }
.cmd-tile__meta em { font-style: normal; font-size: 13px; color: var(--text-muted, #a99fc4); }
.cmd-empty { padding: 1rem 0; text-align: center; }

.cmd-seat__decks { flex: 1 1 100%; }
.cmd-seat__decks[hidden] { display: none; }
.cmd-seat__decks select { width: 100%; }

.cmd-decks li[hidden] { display: none; }

/* the picture of a card, next to its name in a check */
.cmd-chips em[tabindex], .cmd-combo__body li[data-card] { cursor: help; }
.cmd-chips em[tabindex]:hover, .cmd-chips em[tabindex]:focus-visible { border-color: #8f5cff; outline: none; }
.cmd-peek { position: fixed; z-index: 1080; width: 244px; border-radius: 12px; overflow: hidden; background: #0b0813; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65); pointer-events: none; line-height: 0; }
.cmd-peek[hidden] { display: none; }
.cmd-peek img { width: 100%; height: auto; display: block; }
.cmd-pods p { margin: 0 0 0.4rem; }
@media (max-width: 575.98px) {
    .cmd-tiles { grid-template-columns: 1fr; gap: 0.5rem; }
    .cmd-tiles a { flex-direction: row; align-items: stretch; min-height: 4.6rem; }
    .cmd-tile__art { flex: none; width: 5.5rem; height: auto; background-position: center 20%; }
    .cmd-tile__body { flex: 1; min-width: 0; justify-content: center; padding: 0.6rem 0.8rem; }
}

.cmd-tile__facts { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.cmd-tile__facts span { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(143, 92, 255, 0.16); color: #d8c8ff; }

.cmd-more { display: flex; flex-direction: column; gap: 0.8rem; }
.cmd-more > summary { cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted, #a99fc4); min-height: 44px; display: flex; align-items: center; }
.cmd-more > summary:focus-visible { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 2px; }
.cmd-more[open] > summary { min-height: 28px; }
@media (max-width: 575.98px) { .cmd-filter__row .cmd-filter__sort { flex: 1 1 8rem; } }

/* a seat of a game: the number, the player, the commander (with the decks of the player under it) and the result, in one row */
.cmd-seat { display: grid; grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1.9fr) auto; align-items: start; gap: 0.6rem 0.8rem; padding: 0.8rem; }
.cmd-seat__n { display: grid; place-items: center; width: 2rem; height: 2rem; margin-top: 1.5rem; border-radius: 50%; background: rgba(143, 92, 255, 0.22); color: #d8c8ff; font-size: 14px; font-weight: 800; }
.cmd-seat__pick { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.cmd-seat__decks { display: block; margin: 0; }
.cmd-seat__decks[hidden] { display: none; }
.cmd-seat__decks select { width: 100%; min-height: 42px; padding: 0 0.8rem; border-radius: 12px; border: 1px dashed rgba(143, 92, 255, 0.55); background: rgba(143, 92, 255, 0.08); color: #e4d9ff; font: inherit; font-size: 15px; }
.cmd-seat__decks select:focus { outline: 2px solid var(--accent-secondary, #d998ff); outline-offset: 1px; }
.cmd-seat__result .cmd-win span { min-width: 6.5rem; gap: 0.45rem; font-size: 16px; text-transform: none; letter-spacing: 0; }
@media (max-width: 767.98px) {
    .cmd-seat { grid-template-columns: 2rem minmax(0, 1fr); }
    .cmd-seat__player, .cmd-seat__pick, .cmd-seat__result { grid-column: 2; }
    .cmd-seat__n { grid-row: 1; margin-top: 1.5rem; }
    .cmd-seat__result > span { display: none; }
    .cmd-seat__result .cmd-win { display: flex; }
    .cmd-seat__result .cmd-win span { width: 100%; }
}

/* the extra filters: bracket, Game Changers and number of decks in one row (one under the other on a phone) */
.cmd-more > summary { gap: 0.5rem; }
.cmd-more__body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem 1.2rem; }
.cmd-more__body .cmd-filter__colors { flex: 0 0 auto; }
.cmd-more__body .cmd-filter__row { display: contents; }
.cmd-more__body .cmd-filter__sort { flex: 1 1 11rem; max-width: 16rem; }
@media (max-width: 575.98px) { .cmd-more__body .cmd-filter__sort { max-width: none; } }
