.collection-hall {
    --hall-muted: var(--text-secondary, #baafa8);
    --hall-ink: var(--text-white, #fff8f2);
    --hall-accent: #ffad58;
    --hall-gutter: clamp(.75rem, 2.5vw, 1.5rem);
    max-width: none;
    margin: clamp(1rem, 3vw, 2.5rem) 0;
    color: var(--hall-ink);
}
.collection-hall-ledger { overflow: hidden; }
.collection-hall-ledger-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem var(--hall-gutter);
    border-bottom: 1px solid #ffffff0d;
}
.collection-hall-title { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.collection-hall .collection-hall-title h1 {
    margin: 0;
    color: var(--hall-ink);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.08;
}
.collection-hall-count, .collection-hall-self-label {
    border: 1px solid #ffffff17;
    border-radius: 2rem;
    padding: .17rem .6rem;
    font-size: .73rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--hall-muted);
}
.collection-hall-ledger-heading p, .collection-hall-empty p {
    margin: .4rem 0 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--hall-muted);
}
.collection-hall .collection-link, .collection-hall .collection-pagination a {
    flex-shrink: 0;
    border-color: #ffffff20;
    border-radius: .55rem;
    background: transparent;
    color: var(--hall-ink);
    font-size: .78rem;
}
.collection-hall .collection-link i { color: var(--hall-accent); }
.collection-hall .collection-link:hover, .collection-hall .collection-pagination a:hover {
    background: #ff7a140b;
    border-color: #b9723c;
    color: var(--hall-accent);
}
.collection-hall-my-rank {
    margin: 0;
    padding: .65rem var(--hall-gutter);
    border-bottom: 1px solid #ffffff0d;
    color: var(--hall-accent);
    font-size: .8rem;
    font-weight: 700;
}
.collection-hall-my-rank i { margin-right: .35rem; }
.collection-hall-table {
    width: calc(100% - var(--hall-gutter));
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .875rem;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}
.collection-hall-table :is(th, td) { padding: .8rem .6rem; vertical-align: middle; }
.collection-hall-table thead th {
    padding-block: .7rem;
    border-bottom: 1px solid #ffffff12;
    color: var(--hall-muted);
    font-size: .75rem;
    font-weight: 600;
    text-align: left;
}
.collection-hall-table .collection-hall-rank { width: 4.2rem; color: var(--hall-muted); text-align: center; }
.collection-hall-table .collection-hall-discoveries { width: 20%; text-align: right; }
.collection-hall-table .collection-hall-completion { width: 18%; padding-right: calc(var(--hall-gutter) / 2); text-align: right; }
.collection-hall-table tbody tr + tr { border-top: 1px solid #ffffff0b; }
.collection-hall-table tbody tr:hover { background: #ffffff03; }
.collection-hall-table tbody .collection-hall-self {
    background: #ff7a140d;
    box-shadow: inset 2px 0 var(--hall-accent);
}
.collection-hall-table tbody :is(.collection-hall-leader, .collection-hall-self) .collection-hall-rank,
.collection-hall-table tbody .collection-hall-completion { color: var(--hall-accent); font-weight: 800; }
.collection-hall-player { display: flex; align-items: center; gap: .85rem; }
.collection-hall-table .collection-hall-avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.collection-hall-identity { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-width: 0; overflow-wrap: anywhere; text-align: left; }
.collection-hall-name { color: var(--hall-ink); font-weight: 800; }
.collection-hall-album {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    padding: .22rem .55rem;
    border: 1px solid #ffad584d;
    border-radius: .4rem;
    background: #ffad5808;
    color: var(--hall-accent);
    font-size: .76rem;
    font-weight: 600;
    overflow-wrap: normal;
    text-decoration: none;
}
.collection-hall-album:hover, .collection-hall-album:focus-visible { color: var(--hall-ink); border-color: var(--hall-accent); background: #ffad581a; }
.collection-hall-self-label {
    display: inline-block;
    margin-left: .15rem;
    padding: .02rem .4rem;
    border-color: #ff9d533d;
    color: var(--hall-accent);
    font-size: .65rem;
}
.collection-hall-discoveries strong { color: var(--hall-ink); font-weight: 800; }
.collection-hall-total { color: var(--hall-muted); font-size: .78em; white-space: nowrap; }
.collection-hall-empty { padding: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; }
.collection-hall-empty > i { color: var(--hall-accent); font-size: 2rem; }
.collection-hall-empty h3 { margin: .65rem 0 .3rem; }
.collection-hall .collection-pagination { color: var(--hall-muted); font-size: .8rem; }

@media (max-width: 600px) {
    .collection-hall-ledger-heading { flex-wrap: wrap; gap: .7rem; padding-block: 1rem; }
    .collection-hall .collection-link { min-height: 34px; padding: .32rem .6rem; }
    .collection-hall-title { gap: .4rem; }
    .collection-hall-count { padding-inline: .45rem; font-size: .67rem; }
    .collection-hall-table { width: calc(100% - .5rem); font-size: .8rem; }
    .collection-hall-table :is(th, td) { padding: .65rem .2rem; }
    .collection-hall-table thead th { font-size: .67rem; }
    .collection-hall-table .collection-hall-rank { width: 2.35rem; }
    .collection-hall-table .collection-hall-discoveries { width: 20%; }
    .collection-hall-table .collection-hall-completion { width: 20%; padding-right: .35rem; }
    .collection-hall-player { gap: .45rem; }
    .collection-hall-identity { display: block; }
    .collection-hall-album { display: flex; margin-top: .25rem; padding: .18rem .35rem; font-size: .68rem; }
    .collection-hall-table .collection-hall-avatar { width: 32px; height: 32px; border-radius: .45rem; }
}

@media (max-width: 375px) {
    .collection-hall-album i { display: none; }
}
