/* Optional presentation only: keeps the native category buttons and handlers. */
#app .tesla-home-games > .tesla-home-game-tabs {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: .12rem 0 0;
    margin: 0 0 .24rem;
    border-bottom: 1px solid var(--skin__border, currentColor);
    background: transparent;
}

#app .tesla-home-games > .tesla-home-game-tabs > button {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    min-height: 1.18rem;
    padding: .08rem .03rem .22rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--skin__neutral_1, currentColor);
    font-size: .24rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

#app .tesla-home-games > .tesla-home-game-tabs > button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: .14rem;
    right: .14rem;
    height: .04rem;
    border-radius: .04rem;
    background: var(--skin__primary, currentColor);
    opacity: 0;
    pointer-events: none;
}

#app .tesla-home-games > .tesla-home-game-tabs > button.is-active,
#app .tesla-home-games > .tesla-home-game-tabs > button[aria-current="page"] {
    color: var(--skin__primary, currentColor);
}

#app .tesla-home-games > .tesla-home-game-tabs > button.is-active::after,
#app .tesla-home-games > .tesla-home-game-tabs > button[aria-current="page"]::after {
    opacity: 1;
}

#app .tesla-home-games > .tesla-home-game-tabs > button:focus-visible {
    outline: 2px solid var(--skin__primary, currentColor);
    outline-offset: -.06rem;
}

#app .tesla-home-games > .tesla-home-game-tabs .tesla-home-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: .56rem;
    height: .5rem;
    margin-bottom: .08rem;
    flex: 0 0 .5rem;
    color: inherit;
}

#app .tesla-home-games > .tesla-home-game-tabs .tesla-home-tab-icon img {
    display: block;
    width: auto;
    height: .44rem;
    max-width: .56rem;
    object-fit: contain;
}

@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(n+2) .tesla-home-tab-icon img {
        display: none;
    }

    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(n+2) .tesla-home-tab-icon::before {
        content: "";
        display: block;
        width: .44rem;
        height: .44rem;
        background: currentColor;
        -webkit-mask: var(--transparent-category-icon) center / contain no-repeat;
        mask: var(--transparent-category-icon) center / contain no-repeat;
    }

    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(2) {
        --transparent-category-icon: url("./transparent-category-slots.20261206.svg");
    }

    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(2) .tesla-home-tab-icon::before {
        width: .56rem;
    }

    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(3) {
        --transparent-category-icon: url("./transparent-category-recent.20261206.svg");
    }

    #app .tesla-home-games > .tesla-home-game-tabs > button:nth-child(4) {
        --transparent-category-icon: url("./transparent-category-favorite.20261206.svg");
    }
}
