/* ===========================================================================
   Cooldown Reference - styling
   Dark, dense, data-first: the u.gg / League wiki register.
   =========================================================================== */

:root {
    --bg:            #0b0e15;
    --bg-raised:     #12161f;
    --bg-panel:      #171c27;
    --bg-hover:      #1e2431;
    --bg-sunken:     #0d1118;

    --border:        #242b3a;
    --border-strong: #333c50;

    --text:          #e6eaf2;
    --text-dim:      #98a1b4;
    --text-faint:    #687186;

    --gold:          #c8aa6e;
    --gold-bright:   #f0e6d2;
    --blue:          #3c8cff;

    --slot-q:        #5a9cf8;
    --slot-w:        #45cf93;
    --slot-e:        #b584f5;
    --slot-r:        #e8b44a;

    --warn:          #e8a33d;
    --warn-bg:       rgba(232, 163, 61, 0.09);

    --radius:        6px;
    --picker-w:      272px;
    --topbar-h:      52px;
    --footer-h:      38px;
    --shell-h:       calc(100vh - 52px - 38px);

    --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
em { color: var(--gold); font-style: normal; }

kbd {
    font-family: var(--mono);
    font-size: 10px;
    background: var(--bg-sunken);
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    padding: 1px 5px;
    color: var(--text-dim);
}

/* -------------------------------------------------------------- topbar --- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, #121722 0%, #0e1219 100%);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 52px;
    padding: 0 18px;
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(145deg, var(--gold) 0%, #a9873f 100%);
    color: #1a1407;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-text {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.01em;
    color: var(--gold-bright);
}

.topbar-meta { display: flex; align-items: center; gap: 14px; }

.patch-badge {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 10px;
}

.topbar-hint { font-size: 11px; color: var(--text-faint); }

/* -------------------------------------------------------------- layout --- */

/* The sticky sidebar can only travel inside this grid, so the grid must be at
   least as tall as the sidebar - otherwise sticky silently has nowhere to go
   and the column renders at the container's top edge instead. */
.layout {
    display: grid;
    grid-template-columns: var(--picker-w) minmax(0, 1fr);
    align-items: start;
    gap: 0;
    min-height: var(--shell-h);
}

/* -------------------------------------------------------------- picker --- */

.picker {
    position: sticky;
    top: var(--topbar-h);
    display: flex;
    flex-direction: column;
    height: var(--shell-h);
    background: var(--bg-raised);
    border-right: 1px solid var(--border);
}

.picker-search {
    position: relative;
    padding: 12px 12px 8px;
}

.picker-search-icon {
    position: absolute;
    left: 23px;
    top: 50%;
    transform: translateY(-20%);
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--text-faint);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

#search {
    width: 100%;
    padding: 8px 10px 8px 32px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.12s, box-shadow 0.12s;
}
#search::placeholder { color: var(--text-faint); }
#search:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 170, 110, 0.12);
}
#search::-webkit-search-cancel-button { filter: invert(0.6); }

.picker-count {
    padding: 0 14px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.champ-list {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0 6px 14px;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.champ-list::-webkit-scrollbar { width: 9px; }
.champ-list::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 100px;
    border: 2px solid var(--bg-raised);
}

.champ-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
}
.champ-row:hover { background: var(--bg-hover); }

.champ-row.is-cursor {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.champ-row.is-active {
    background: rgba(200, 170, 110, 0.12);
    border-color: rgba(200, 170, 110, 0.45);
}
.champ-row.is-active .champ-row-name { color: var(--gold-bright); }

.champ-row-img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    flex: none;
    object-fit: cover;
}

.champ-row-text { min-width: 0; }

.champ-row-name {
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.champ-row-roles {
    font-size: 10px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.picker-none {
    padding: 18px 14px;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

/* -------------------------------------------------------------- detail --- */

.detail { padding: 0 0 40px; min-width: 0; }

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 60vh;
    padding: 40px;
    text-align: center;
    color: var(--text-dim);
}
.empty-icon {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.4em;
    color: var(--gold);
    opacity: 0.55;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    padding: 14px 18px;
}
.empty-state h2 { font-size: 18px; color: var(--text); }
.empty-state p { margin: 0; max-width: 42ch; font-size: 13px; line-height: 1.6; }

/* champion banner */

.champ-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    min-height: 132px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.champ-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 18%;
    opacity: 0.3;
    filter: saturate(0.85);
}
.champ-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg) 2%, rgba(11, 14, 21, 0.72) 45%, rgba(11, 14, 21, 0.92) 100%);
}

.champ-hero-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.champ-hero-img {
    width: 68px;
    height: 68px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    flex: none;
}

.champ-hero-name {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gold-bright);
    line-height: 1.15;
}

.champ-hero-title {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: capitalize;
}

.champ-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.tag {
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 2px 8px;
}
.tag.tag-resource { color: var(--slot-q); border-color: rgba(90, 156, 248, 0.35); }

/* haste control */

.haste-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.haste-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    flex: none;
}

.haste-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 260px;
    min-width: 200px;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 100px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #0b0e15;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--gold);
}
input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #0b0e15;
    cursor: pointer;
    box-shadow: 0 0 0 1px var(--gold);
}

#haste-number {
    width: 62px;
    padding: 5px 8px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--gold-bright);
    font-family: var(--mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: right;
    outline: none;
}
#haste-number:focus { border-color: var(--gold); }

.haste-presets { display: flex; gap: 5px; }

.haste-preset {
    font-family: var(--mono);
    font-size: 11px;
    padding: 4px 9px;
    background: var(--bg-sunken);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    cursor: pointer;
}
.haste-preset:hover { border-color: var(--border-strong); color: var(--text); }
.haste-preset.is-on {
    background: rgba(200, 170, 110, 0.14);
    border-color: var(--gold);
    color: var(--gold-bright);
}

.haste-equiv {
    font-size: 11px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.haste-equiv b { color: var(--text-dim); font-weight: 600; }

/* ---------------------------------------------------------- item browser --- */

.browser {
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--border);
}

/* --- current build --- */

.build-strip { padding: 11px 24px 10px; }

.build-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.build-total {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--slot-q);
    font-variant-numeric: tabular-nums;
}
.build-total.is-override { color: var(--warn); }

.build-clear {
    margin-left: auto;
    padding: 4px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.build-clear:hover:not(:disabled) {
    border-color: var(--warn);
    color: var(--warn);
    background: var(--warn-bg);
}
.build-clear:disabled { opacity: 0.35; cursor: default; }

.build-slots {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-height: 40px;
}

.build-empty {
    font-size: 11.5px;
    color: var(--text-faint);
    font-style: italic;
}

.build-slot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 4px;
    background: var(--bg-panel);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--sans);
}
.build-slot:hover { border-color: var(--warn); background: var(--warn-bg); }

.build-slot-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    flex: none;
}

.build-slot-haste {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
}

.build-slot-x { font-size: 13px; color: var(--text-faint); line-height: 1; }
.build-slot:hover .build-slot-x { color: var(--warn); }

/* --- category tabs --- */

.cat-tabs {
    display: flex;
    gap: 2px;
    padding: 0 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
    padding: 7px 13px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--text-faint);
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.cat-tab:hover { color: var(--text-dim); }
.cat-tab.is-on {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* --- item grid --- */

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
    padding: 12px 24px 14px;
    max-height: 208px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}
.item-grid::-webkit-scrollbar { width: 9px; }
.item-grid::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 100px;
    border: 2px solid var(--bg-sunken);
}

.item-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px 3px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}
.item-cell:hover { border-color: var(--border-strong); background: var(--bg-hover); }

.item-cell.is-owned {
    border-color: var(--gold);
    background: rgba(200, 170, 110, 0.14);
}
.item-cell.is-owned::after {
    content: "\2713";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 14px;
    height: 14px;
    display: grid;
    place-items: center;
    background: var(--gold);
    color: #1a1407;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    border: 1px solid #0b0e15;
}

.item-img {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: var(--bg-sunken);
    flex: none;
}

.item-haste {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    padding: 1px 5px;
    background: var(--slot-q);
    color: #06101f;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    border-radius: 100px;
    border: 1px solid #0b0e15;
}

.item-gold {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.item-cell.is-owned .item-gold { color: var(--gold); }

.grid-empty {
    grid-column: 1 / -1;
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-faint);
}

@media (max-width: 700px) {
    .build-strip { padding: 10px 14px; }
    .cat-tabs    { padding: 0 14px; }
    .item-grid   { padding: 10px 14px; max-height: 170px; }
}

/* ---------------------------------------------------------- ability table */

.panel { padding: 20px 24px 0; }

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.cd-table-wrap {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

table.cd-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.cd-table thead th {
    padding: 9px 10px;
    background: var(--bg-sunken);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
    white-space: nowrap;
}
.cd-table thead th.col-ability { text-align: left; width: 38%; min-width: 230px; }
.cd-table thead th.col-extra   { text-align: right; width: 110px; }

.cd-row { border-bottom: 1px solid var(--border); }
.cd-row:last-child { border-bottom: 0; }
.cd-row:hover { background: rgba(255, 255, 255, 0.018); }

/* ability name cell */

.cell-ability { padding: 10px; }

.ability-id {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ability-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
    background: var(--bg-sunken);
}

.ability-slot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    color: #0b0e15;
    border: 1px solid rgba(0, 0, 0, 0.5);
}
.slot-Q .ability-slot { background: var(--slot-q); }
.slot-W .ability-slot { background: var(--slot-w); }
.slot-E .ability-slot { background: var(--slot-e); }
.slot-R .ability-slot { background: var(--slot-r); }
.slot-P .ability-slot { background: var(--text-faint); }

.ability-text { min-width: 0; }

.ability-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.slot-Q .ability-name { color: #a9ccff; }
.slot-W .ability-name { color: #a2e9c9; }
.slot-E .ability-name { color: #d7bdfa; }
.slot-R .ability-name { color: #f2d79a; }

.ability-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-faint);
    font-family: var(--mono);
}

/* cooldown cells */

.cell-cd {
    padding: 8px 6px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.025);
}

.cd-value {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.cd-base {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-faint);
    text-decoration: line-through;
    text-decoration-color: rgba(152, 161, 180, 0.45);
}

.cd-recharge {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--slot-w);
}

.cell-cd.is-best .cd-value { color: #7ee2b0; }
.cell-cd.is-flat .cd-value { color: var(--text-dim); }
.cell-cd.is-empty .cd-value { color: var(--text-faint); opacity: 0.45; }
.cd-row.is-unreliable .cd-value { color: var(--text-faint); }

/* extra cell */

.cell-extra {
    padding: 8px 12px 8px 8px;
    text-align: right;
    border-left: 1px solid rgba(255, 255, 255, 0.025);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}
.cell-extra .extra-dim { color: var(--text-faint); }

/* badges */

.badge {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    padding: 2px 5px;
    white-space: nowrap;
}
.badge-warn {
    color: var(--warn);
    background: var(--warn-bg);
    border: 1px solid rgba(232, 163, 61, 0.4);
    cursor: help;
}
.badge-flat {
    color: var(--text-faint);
    background: var(--bg-sunken);
    border: 1px solid var(--border);
}
.badge-charge {
    color: var(--slot-w);
    background: rgba(69, 207, 147, 0.1);
    border: 1px solid rgba(69, 207, 147, 0.35);
}
.badge-override {
    color: var(--gold);
    background: rgba(200, 170, 110, 0.1);
    border: 1px solid rgba(200, 170, 110, 0.35);
}

/* note rows */

.note-row td {
    padding: 0 10px 10px 58px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--text-dim);
}
.note-row .note-inner {
    border-left: 2px solid var(--warn);
    background: var(--warn-bg);
    border-radius: 0 4px 4px 0;
    padding: 7px 10px;
}
.note-row.note-plain .note-inner {
    border-left-color: var(--border-strong);
    background: var(--bg-sunken);
}

/* champion-level callout */

.callout {
    display: flex;
    gap: 10px;
    margin: 0 24px 4px;
    padding: 10px 12px;
    background: var(--warn-bg);
    border: 1px solid rgba(232, 163, 61, 0.3);
    border-radius: var(--radius);
    font-size: 12px;
    line-height: 1.55;
    color: #f0d9b0;
}
.callout-icon { color: var(--warn); font-weight: 700; flex: none; }

/* passive card */

.passive-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.passive-card img {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 5px;
    border: 1px solid var(--border-strong);
}
.passive-text { flex: 1; min-width: 0; }
.passive-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.passive-desc {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dim);
}
.passive-note {
    margin-top: 6px;
    padding: 5px 9px;
    border-left: 2px solid var(--border-strong);
    background: var(--bg-sunken);
    border-radius: 0 4px 4px 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-dim);
}

/* static cooldown chip - deliberately styled apart from the ability table's
   numbers, because this one does not move when ability haste changes */
.passive-cd {
    flex: none;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 108px;
    padding: 8px 12px;
    background: var(--bg-sunken);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}

.passive-cd-value {
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
    text-align: center;
    line-height: 1.25;
}
.passive-cd-value.is-varies { font-size: 13px; color: var(--warn); cursor: help; }

.passive-cd-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: center;
    cursor: help;
}

.passive-cd.is-none { border-style: dashed; border-color: var(--border); }
.passive-cd.is-none .passive-cd-value { color: var(--text-faint); opacity: 0.6; }

@media (max-width: 620px) {
    .passive-card { flex-wrap: wrap; }
    .passive-cd { align-self: flex-start; min-width: 0; }
}

/* -------------------------------------------------------------- footer --- */

.footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    height: 38px;
    padding: 0 18px;
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    font-size: 11px;
    color: var(--text-faint);
}
.footer-sep { opacity: 0.5; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1100px) {
    .col-hide-sm { display: none; }
}

@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .picker {
        position: static;
        height: auto;
        max-height: 44vh;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .cd-table thead th.col-ability { min-width: 150px; }
    .champ-hero { min-height: 100px; }
    .champ-hero-name { font-size: 21px; }
}
