/* Banner behind a profile, plus the banner picker */
.banner-container {
    position: absolute;
    width: 100%;
    height: 225px;
    overflow: hidden;
    z-index: -1;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

.banner-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    z-index: -2;
}

.banner-selection {
    width: 100%;
    color: var(--sc-text);
}

.banner-selection::before {
    content: "Choose a banner";
    display: block;
    margin-bottom: 12px;
    font-family: var(--sc-font-display);
    font-size: 20px;
    font-weight: 600;
}

.tiny-banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 100%;
    overflow-y: auto;
}

.tiny-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--sc-surface-2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tiny-banner:hover {
    box-shadow: var(--sc-glow-primary);
}

.tiny-banner:active {
    transform: scale(0.96);
}

.tiny-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.locked-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(135deg, var(--sc-surface-2) 0 10px, var(--sc-surface) 10px 20px);
    color: var(--sc-text-faint);
    font-family: var(--sc-font-display);
    font-size: 26px;
    font-weight: 700;
}

/* Banner unlocked from a scan */
.tiny-banner-scanned {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 20px;
    text-align: center;
    animation: sc-fade-up 0.4s var(--sc-ease-out) backwards;
}

.tiny-banner-scanned .banner-image {
    position: relative;
    z-index: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: var(--sc-radius);
    box-shadow: 0 0 0 2px var(--sc-gold), 0 0 32px rgba(255, 200, 61, 0.45);
}

.tiny-banner-scanned p {
    margin: 0;
    font-family: var(--sc-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sc-gold);
}
