/* ─── COLLECTION OVERLAY ──────────────────────────────────────────────────── */
.map-collection-btn {
    background: var(--clr-bg-panel);
    border: 3px solid var(--border-ink);
    box-shadow: 3px 3px 0px #000;
    border-radius: 0;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: box-shadow 0.08s, transform 0.08s;
}
.map-collection-btn:active {
    box-shadow: 1px 1px 0px #000;
    transform: translate(2px, 2px);
}

#map-collection-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-modal);
    z-index: 250;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    animation: screen-fade-in 0.18s ease-out;
}

.map-collection-panel {
    background: var(--clr-bg-panel);
    border: 4px solid var(--border-ink);
    box-shadow: var(--shadow-raised);
    border-radius: 0;
    width: 520px; /* fast referenceopløsnings-px (var min(92vw,520px), #ui-scale-root skalerer nu hele UI'et) */
    max-height: 252px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotate(-1deg);
}

/* ── Tab bar ─────────────────────────────────────────────────────────────── */
.col-tabbar {
    display: flex;
    align-items: stretch;
    border-bottom: 4px solid var(--border-ink);
    flex-shrink: 0;
}

.col-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px 6px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -4px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.col-tab.active {
    color: #000;
    border-bottom-color: #000;
}
.col-tab-count {
    font-size: 10px;
    opacity: 0.5;
}

.col-close {
    background: none;
    border: none;
    border-left: 3px solid var(--border-ink);
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    padding: 0 14px;
    flex-shrink: 0;
    transition: background 0.12s;
}
.col-close:hover { background: var(--surface-dim); }

/* ── Tab content ─────────────────────────────────────────────────────────── */
.col-content { display: none; flex: 1; overflow-y: auto; }
.map-collection-panel[data-tab="caps"]     [data-content="caps"]     { display: flex; flex-direction: column; }
.map-collection-panel[data-tab="slammers"] [data-content="slammers"] { display: flex; flex-direction: column; }
.map-collection-panel[data-tab="relics"]   [data-content="relics"]   { display: flex; flex-direction: column; }
.map-collection-panel[data-tab="binders"]  [data-content="binders"]  { display: flex; flex-direction: column; }

/* ── Cap/slammer grid ───────────────────────────────────────────────────── */
.col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
}

.col-cap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.col-cap-img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.col-cap-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    color: var(--text-primary);
    line-height: 1.2;
    word-break: break-word;
}

.col-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    border: 2px solid var(--border-ink);
    padding: 1px 5px;
    line-height: 1.4;
    border-radius: 0;
}
.col-badge.effect  { background: #f5c842; color: #000; }
/* Passiv-variant (slammer) — teal, adskilt fra ability-guld. */
.col-badge.passive { background: #2e8fa3; color: #fff; }
/* Enchant — INGEN fast farve her, individuel pr. enchant, sat inline fra JS
   (samme princip som cap-detail-enchant-badge). */

/* ── Relics grid ────────────────────────────────────────────────────────── */
.col-relic-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}
.col-relic {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-faint);
    border: 3px solid var(--border-ink);
    box-shadow: 2px 2px 0px #000;
    padding: 10px 14px;
    border-radius: 0;
}
.col-relic-icon {
    font-size: 26px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}
.col-relic-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.col-relic-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.col-relics-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 20px;
    color: var(--text-muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Space Grotesk', sans-serif;
}
.col-relics-icon { font-size: 36px; opacity: 0.3; }

/* ── Footer bar ─────────────────────────────────────────────────────────── */
.col-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-top: 3px solid var(--border-ink);
    flex-shrink: 0;
    background: var(--surface-faint);
}
.col-footer-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--text-secondary);
}
.col-footer-stat b {
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}
.col-pip { color: #000; font-size: 14px; letter-spacing: 3px; }
