.teammate-game-switcher {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: 1rem;
}

.teammate-game-switcher a {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem .85rem;
    border: 1px solid var(--line);
    color: var(--ink-muted);
    background: var(--white);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.teammate-game-switcher a:hover,
.teammate-game-switcher a[aria-current="page"] {
    border-color: var(--maroon);
    color: var(--maroon);
    background: #fff6f3;
}

.teammate-game-switcher a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--maroon);
}

.teammate-route-warning {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-left: 4px solid var(--maroon);
    background: #fff2ef;
    color: #74130f;
    font-weight: 750;
    line-height: 1.5;
}

.teammate-hero {
    --teammate-accent: #d6a923;
    background:
        radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--teammate-accent) 42%, transparent), transparent 29%),
        linear-gradient(135deg, #17233b 0%, #243a5c 58%, #84651b 100%);
}

body[data-teammate-game="league-of-legends"] .teammate-hero {
    --teammate-accent: #0ac8b9;
    background:
        radial-gradient(circle at 88% 20%, rgba(10, 200, 185, .31), transparent 29%),
        linear-gradient(135deg, #071826 0%, #12334a 58%, #74551b 100%);
}

body[data-teammate-game="delta-force"] .teammate-hero {
    --teammate-accent: #a9d34f;
    background:
        radial-gradient(circle at 88% 20%, rgba(169, 211, 79, .3), transparent 29%),
        linear-gradient(135deg, #111914 0%, #273e2d 60%, #5f6f39 100%);
}

.teammate-hero-badge {
    border-radius: 50%;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    transform: none;
}

.teammate-id-guide {
    display: grid;
    grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
    margin: -1rem 0 2rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-left: 4px solid #cfac43;
    background: #fffaf0;
}

.teammate-id-guide h2 {
    margin: 0;
    color: var(--maroon);
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    line-height: 1.25;
}

.teammate-id-guide p:not(.valorant-eyebrow) {
    margin: 0;
    color: var(--ink-muted);
    font-size: .9rem;
    line-height: 1.65;
}

.teammate-account-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.teammate-account-fields-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.teammate-account-fields-grid.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teammate-account-fields-grid .valorant-field {
    margin-bottom: .2rem;
}

.teammate-account-note {
    display: block;
    margin-top: .7rem;
    color: var(--ink-muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
}

.teammate-channel-card.is-selected {
    border-color: var(--maroon);
    box-shadow: inset 0 0 0 1px var(--maroon);
    background: #fff9f8;
}

.teammate-channel-card .valorant-channel-fields {
    overflow: visible;
}

.teammate-channel-card input[type="url"] {
    overflow-wrap: anywhere;
}

.teammate-player-account-meta {
    display: block;
    margin-top: .18rem;
    color: var(--ink-muted);
    font-size: .78rem;
}

.teammate-invite-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: .45rem .65rem;
    border: 1px solid var(--maroon);
    color: var(--maroon);
    background: #fff;
    font-size: .82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.teammate-invite-link:hover {
    background: #fff2ef;
}

#teammate-directory-section {
    margin-top: 2rem;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .teammate-hero {
        background:
            radial-gradient(circle at 88% 20%, rgba(214, 169, 35, .34), transparent 29%),
            linear-gradient(135deg, #17233b 0%, #243a5c 58%, #84651b 100%);
    }
}

@media (max-width: 980px) {
    .teammate-game-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .teammate-game-switcher {
        grid-template-columns: 1fr;
    }

    .teammate-game-switcher a {
        justify-content: flex-start;
        text-align: left;
    }

    .teammate-id-guide,
    .teammate-account-fields-grid,
    .teammate-account-fields-grid.is-three,
    .teammate-account-fields-grid.is-four {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .teammate-game-switcher {
        gap: .45rem;
    }

    .teammate-game-switcher a {
        min-height: 48px;
    }

    .teammate-id-guide {
        padding: .9rem;
    }

    .teammate-channel-card .valorant-channel-select {
        padding: .8rem;
    }

    .teammate-channel-card .valorant-channel-fields {
        margin: 0 .8rem .8rem;
        padding: .75rem;
    }
}
