.team-color-overlay {
    position: relative;
    display: inline-block;
}

.team-color-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--team-color);
    opacity: 0.25;
    filter: blur(6px);
    border-radius: 0.25rem;
    z-index: -1;
}

.player-tabs-scroll {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.player-tabs-scroll [role="tab"] {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--bc) / 0.72);
    background-color: hsl(var(--b2) / 0.75);
}

.player-tabs-scroll [role="tab"]:checked {
    font-weight: 600;
    color: hsl(var(--bc));
    background-color: hsl(var(--b1));
}

@media (min-width: 640px) {
    .player-tabs-scroll [role="tab"] {
        font-size: 0.875rem;
    }
}

.overview-panel {
    box-shadow: 0 10px 26px hsl(var(--b3) / 0.2);
}

.overview-tile {
    border: 1px solid hsl(var(--b3));
    border-radius: 0.8rem;
    background: linear-gradient(180deg, hsl(var(--b1)), hsl(var(--b2) / 0.85));
    padding: 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 64px;
}

.overview-tile-team {
    min-height: 64px;
}

.overview-tile-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: hsl(var(--bc) / 0.7);
}

.overview-tile-value {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--bc));
    line-height: 1.35;
    word-break: break-word;
}

.overview-tile-sub {
    font-size: 0.78rem;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.overview-avatar-stage {
    border: 1px solid hsl(var(--b3));
    border-radius: 0.8rem;
    background: hsl(var(--b1));
    min-height: 220px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.overview-avatar-stage svg {
    width: auto;
    max-width: 220px;
    height: auto;
    max-height: 100%;
}

@media (min-width: 1280px) {
    .overview-avatar-stage {
        min-height: 0;
        height: 100%;
    }

    .overview-avatar-stage svg {
        max-height: calc(100% - 12px);
        max-width: 210px;
    }
}

.overview-avatar-stage svg path.outline,
.overview-avatar-stage svg rect.outline {
    display: none;
}

.overview-avatar-empty {
    background: repeating-linear-gradient(
        -45deg,
        hsl(var(--b1)),
        hsl(var(--b1)) 10px,
        hsl(var(--b2) / 0.75) 10px,
        hsl(var(--b2) / 0.75) 20px
    );
}
