.a-team-page .team-grid {
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(190px, 218px));
    justify-content: start;
    gap: 40px 20px;
}

.a-team-page .team-section-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 52px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.a-team-page .team-section-heading::after {
    content: '';
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, #a855f7aa, #a855f710);
}

.a-team-page .team-card {
    width: 100%;
    height: 174px;
    min-height: 0;
    padding: 22px 12px 18px;
    overflow: visible;
    border: 1px solid #a855f76b;
    border-radius: 12px;
    background: linear-gradient(145deg, #191121, #100c18);
}

.a-team-page .team-card-owner {
    grid-column: auto;
    justify-self: start;
}

.a-team-page .team-card::before { content: none; }

/* The opaque badge interrupts the border exactly at its vertical midpoint. */
.a-team-page .team-rank {
    top: 0;
    transform: translate(-50%, -50%);
    padding: 7px 17px;
    font-size: 11px;
    line-height: 16px;
}

.a-team-page .deputy-rank { background: linear-gradient(135deg, #6d28d9, #9333ea); }

.a-team-page .team-avatar {
    width: 108px;
    height: 108px;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.a-team-page .team-avatar img {
    width: 108px;
    height: 108px;
    max-width: none;
    object-fit: contain;
}

.a-team-page .team-card h3 { font-size: 16px; line-height: 20px; }

@media (max-width: 480px) {
    .a-team-page .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; }
    .a-team-page .team-section-heading { font-size: 20px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .a-team-page .team-card, .a-team-page .team-avatar img { transition: none; }
    .a-team-page .team-card:hover, .a-team-page .team-card:hover .team-avatar img { transform: none; }
}
