.matches__banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--br-16);
    background-color: var(--card);
    min-height: 14rem;
    display: flex;
    align-items: flex-end;
}

.matches__banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    opacity: .35;
}

.matches__banner-shadow {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, var(--card), transparent);
    pointer-events: none;
    z-index: 1;
}

.matches__banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding: 1.5rem;
    max-width: 42rem;
}

.matches__banner-title {
    margin: 0;
    color: var(--text-default);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-7);
    text-transform: uppercase;
    line-height: 1.25;
    font-family: var(--font-family-1);
}

.matches__banner-accent {
    display: inline-block;
    width: 5rem;
    height: .3rem;
    border-radius: var(--br-6);
    background-color: var(--span);
}

.matches__banner-desc {
    margin: 0;
    color: var(--text-custom);
    font-size: var(--font-size-l);
    line-height: 1.45;
}

.matches__banner-content .active {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    width: max-content;
}

.matches__banner-content .active svg {
    width: 1rem;
    height: 1rem;
}

.matches__layout {
    align-items: start;
}

.matches__sidebar {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.matches__nav {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.matches__nav button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--text-custom);
    border: 1px solid transparent;
    border-radius: var(--br-8);
    padding: .5rem .5rem .5rem .7rem;
    transition: var(--transition-duration);
}

.matches__nav button:hover {
    background: var(--transparent-2-w);
    color: var(--text-default);
    cursor: pointer;
}

.matches__nav button.active {
    background: var(--button);
    color: var(--text-default);
}

.matches__nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding-inline: .4rem;
    border-radius: var(--br-6);
    background: var(--transparent-3-w);
    color: var(--text-custom);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-5);
}

.matches__nav button.active .matches__nav-count {
    background: var(--span);
    color: var(--text-default);
}

.matches__lobby-types {
    display: flex;
    gap: .5rem;
}

.matches__lobby-type {
    position: relative;
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.matches__lobby-type input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.matches__lobby-type span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--input-height);
    padding: .55rem .8rem;
    border-radius: var(--br-8);
    background: var(--button);
    color: var(--text-custom);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-m);
    text-align: center;
    transition: var(--transition-duration);
    user-select: none;
}

.matches__lobby-type:hover span {
    color: var(--text-default);
    background: var(--button-hover);
}

.matches__lobby-type input:checked+span {
    background: var(--span);
    color: var(--text-default);
}

.matches__lobby-type:hover input:checked+span {
    background: var(--span);
    color: var(--text-default);
}

.matches__toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    flex-wrap: wrap;
}

.matches__toolbar .adaptive-select-wrapper {
    min-width: 12rem;
    margin-bottom: 0;
}

.matches__toolbar .adaptive-select__fist-icon img,
.matches__toolbar .adaptive-select__icon img,
.matches__setting-control .adaptive-select__fist-icon img,
.matches__setting-control .adaptive-select__icon img {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: var(--br-4);
    object-fit: cover;
}

.matches__setting-control .adaptive-select__fist-icon {
    opacity: 1;
}

.matches__setting-control .adaptive-select:hover .adaptive-select__fist-icon {
    opacity: 1;
}

.matches__toolbar .adaptive-select [data-matches-ping] {
    flex-shrink: 0;
}

#matchesLocationSelect .adaptive-select__label [data-matches-region-option-ping] {
    margin-left: auto;
}

.matches__reset {
    flex-shrink: 0;
}

.matches__reset[hidden] {
    display: none !important;
}

.matches__search {
    position: relative;
    width: 16rem;
    margin-left: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

.matches__search svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: .9rem;
    height: .9rem;
    fill: var(--text-custom);
    z-index: 1;
    pointer-events: none;
}

.matches__search input[type="search"] {
    padding-left: 2.4rem;
    width: 100%;
}

.matches__list-card:has(.no-data) {
    min-height: calc(100dvh - 24rem);
    display: flex;
    flex-direction: column;
}

#matchesPagination {
    margin-top: .75rem;
}

#matchesPagination .pagination {
    justify-content: center;
}

#matchesListBody:has(.no-data) {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: inherit;
}

.matches__list-card .no-data {
    flex: 1;
    width: 100%;
    min-height: 22rem;
    margin: 0;
    align-self: stretch;
}

.matches__list {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    width: 100%;
    padding: .3rem;
}

.matches__list-item {
    display: grid;
    grid-template-columns: 3.4rem minmax(7rem, 1.35fr) 3.5rem 7.2rem minmax(6.5rem, 1fr) minmax(6rem, 8.5rem) 2.3rem;
    align-items: center;
    gap: .85rem;
    padding: .3rem;
    border-radius: var(--br-10);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-duration);
}

.matches__list-item:hover {
    background: var(--transparent-5-w);
}

.matches__list-item.is-mine {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--span) 80%, transparent);
}

.matches__list-map {
    width: 3.4rem;
    height: 2.2rem;
    object-fit: cover;
    border-radius: var(--br-6);
    display: block;
    flex-shrink: 0;
}

.matches__list-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-default);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
}

.matches__list-format {
    color: var(--text-custom);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
    text-align: center;
}

.matches__list-slots {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.matches__list-fill {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    flex-shrink: 0;
    background: var(--have-slots, #76cb91);
}

.matches__list-fill--low {
    background: var(--have-slots, #76cb91);
}

.matches__list-fill--mid {
    background: var(--have-small-slots, #efa74e);
}

.matches__list-fill--full {
    background: var(--havent-slots, #ff5555);
}

.matches__list-count {
    color: var(--text-default);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
    white-space: nowrap;
}

.matches__list-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    height: 1.25rem;
    padding: 0 .35rem;
    border-radius: var(--br-4);
    background: color-mix(in srgb, var(--have-slots, #76cb91) 18%, transparent);
    color: var(--have-slots, #76cb91);
    font-size: var(--font-size-xs, .72rem);
    font-weight: var(--font-weight-7);
    line-height: 1;
}

.matches__list-host {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.matches__list-players {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px;
}

.matches__list-host-avatar {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: var(--br-50);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--transparent-5-w);
    position: relative;
    z-index: 1;
}

.matches__list-players .matches__list-host-avatar + .matches__list-host-avatar {
    margin-left: -.45rem;
}

.matches__list-host-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matches__list-host-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-default);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
}

.matches__list-time {
    color: var(--text-custom);
    font-size: var(--font-size-s);
    white-space: nowrap;
    text-align: right;
}

.matches__list-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: var(--br-8);
    background: var(--transparent-5-w);
    color: var(--text-custom);
    transition: var(--transition-duration);
}

.matches__list-item:hover .matches__list-go {
    background: var(--button-hover, var(--transparent-10-w));
    color: var(--text-default);
}

.matches__list-go svg {
    width: .7rem;
    height: .7rem;
    fill: currentColor;
}

.matches__list-go--lock svg {
    width: .85rem;
    height: .85rem;
}

@media (max-width: 991px) {
    .matches__list-item {
        grid-template-columns: 3.2rem minmax(0, 1fr) 2.3rem;
        grid-template-areas:
            "map name go"
            "map meta go";
        row-gap: .35rem;
    }

    .matches__list-map {
        grid-area: map;
    }

    .matches__list-name {
        grid-area: name;
    }

    .matches__list-go {
        grid-area: go;
        align-self: center;
    }

    .matches__list-format,
    .matches__list-slots,
    .matches__list-host,
    .matches__list-time {
        grid-area: meta;
    }

    .matches__list-format,
    .matches__list-host,
    .matches__list-time {
        display: none;
    }
}

#createLobby .matches__modal,
#matchesJoinPassword .matches__modal {
    width: 26rem;
    max-width: 96%;
    min-width: 0;
    gap: 0;
}

.matches__modal-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}

.matches__modal-title {
    color: var(--text-default);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-7);
    line-height: 1.2;
}

.matches__modal-accent {
    display: block;
    width: 3.2rem;
    height: .28rem;
    border-radius: var(--br-6);
    background: var(--span);
}

.matches__modal-body {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.matches__modal-label {
    color: var(--text-custom);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.matches__modal-types {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.matches__modal-type {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.matches__modal-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: .85rem 1rem;
    border-radius: var(--br-10);
    background: var(--button);
    transition: var(--transition-duration);
    overflow: hidden;
}

.matches__modal-type:hover .matches__modal-type-card {
    background: var(--button-hover);
}

.matches__modal-type input:checked+.matches__modal-type-card:hover {
    background: var(--button);
}

.matches__modal-type input:checked+.matches__modal-type-card:before {
    content: "";
    position: absolute;
    left: 50%;
    top: -1rem;
    transform: translateX(-50%);
    height: 1rem;
    border-radius: var(--br-50);
    width: 100%;
    background: var(--span);
    filter: blur(30px);
    -webkit-filter: blur(30px);
    transition: var(--transition-duration);
}

.matches__modal-type input:checked+.matches__modal-type-card .matches__modal-type-name {
    color: var(--span);
}

.matches__modal-type-main {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.matches__modal-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.matches__modal-type-icon svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: var(--text-custom);
    transition: var(--transition-duration);
}

.matches__modal-type input:checked+.matches__modal-type-card .matches__modal-type-icon svg {
    fill: var(--span);
}

.matches__modal-type-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.matches__modal-type-name {
    color: var(--text-default);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-7);
    line-height: 1.25;
}

.matches__modal-type-desc {
    color: var(--text-custom);
    font-size: var(--font-size-s);
    line-height: 1.35;
}

.matches__modal-type-pass {
    display: none;
    width: 100%;
    margin-top: .75rem;
}

.matches__modal-type:has(input:checked) .matches__modal-type-pass {
    display: block;
}

.matches__modal-type-pass .number {
    position: relative;
    width: 100%;
}

.matches__modal-type-pass input {
    width: 100%;
    padding-right: 2.8rem;
}

.matches__modal-type-pass .eye-password {
    z-index: 2;
}

.matches__modal-action {
    width: 100%;
    margin-top: .35rem;
    text-decoration: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768.9px) {
    .matches__banner {
        min-height: 12rem;
    }

    .matches__banner-content {
        padding: 1.1rem;
        max-width: 100%;
    }

    .matches__banner-title {
        font-size: var(--font-size-xl);
    }

    .matches__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .matches__toolbar .adaptive-select-wrapper,
    .matches__search,
    .matches__reset {
        width: 100%;
        min-width: 0;
    }

    .matches__sidebar {
        margin-bottom: .8rem;
    }

    #createLobby .matches__modal,
    #matchesJoinPassword .matches__modal {
        width: 100%;
    }
}

.matches__room-main {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.matches__room-map {
    position: relative;
    overflow: hidden;
    border-radius: var(--br-16);
    background: var(--card);
    display: flex;
    flex-direction: column;
    padding: .5rem;
}

.matches__room-map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    opacity: .5;
}

.matches__room-map-bar {
    position: absolute;
    width: auto;
    right: 0;
    left: 0;
    margin-inline: .5rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.matches__room-map-bar-left {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.matches__room-map-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    box-sizing: border-box;
    margin-top: 2.5rem;
}

.matches__room-score {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.matches__team {
    padding: .2rem;
    gap: .1rem;
    height: max-content;
}

.matches__team-edit,
.matches__team-edit:hover,
.matches__team-edit:focus {
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
}

.matches__room-score-box.winner {
    color: var(--green);
}

.matches__room-score-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3.2rem;
    padding-inline: .7rem;
    border-radius: var(--br-10);
    background: color-mix(in srgb, var(--bg) 42%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-default);
    font-family: var(--font-family-1);
    font-size: var(--font-size-xxxl);
    font-weight: var(--font-weight-7);
    line-height: unset;
}



.matches__room-score-sep {
    color: var(--text-default);
    font-family: var(--font-family-1);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-7);
    line-height: 1;
    opacity: .85;
}

.matches__room-connect {
    display: flex;
    align-items: stretch;
    gap: .35rem;
    width: 100%;
}

.matches__room-connect[hidden] {
    display: none !important;
}

.matches__room-connect-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 2.4rem;
    height: auto;
    padding: 1rem .85rem;
    gap: .5rem;
    border: none;
    border-radius: var(--br-8);
    background-color: var(--span);
    color: var(--text-default);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.matches__room-connect-play:hover,
.matches__room-connect-play:focus,
.matches__room-connect-play:focus-visible,
.matches__room-connect-play:active {
    background-color: var(--span);
    color: var(--text-default);
    outline: none;
    box-shadow: none;
    border: none;
}

.matches__room-connect-play svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.matches__room-connect-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    min-width: 2.4rem;
    min-height: 2.4rem;
    height: auto;
    padding: 1rem;
    gap: 0;
    background-color: var(--button);
    border: none;
    border-radius: var(--br-8);
    color: var(--text-custom);
    outline: none;
    box-shadow: none;
}

.matches__room-connect-copy:hover,
.matches__room-connect-copy:focus,
.matches__room-connect-copy:focus-visible,
.matches__room-connect-copy:active {
    background-color: var(--button-hover);
    color: var(--text-custom);
    border: none;
    outline: none;
    box-shadow: none;
}

.matches__room-connect-copy svg {
    width: 1.1rem;
    height: 1.1rem;
    opacity: .75;
    fill: currentColor;
}

.matches__room-map-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .54rem;
}

.matches__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    padding: .4rem .65rem;
    border-radius: var(--br-5);
    background: color-mix(in srgb, var(--bg) 42%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-custom);
    font-size: var(--font-size-s);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.matches__room-boards {
    display: grid;
    grid-template-columns: 1fr minmax(14rem, 17rem) 1fr;
    gap: 1rem;
    align-items: stretch;
}

.matches__team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    background-color: var(--transparent-5-w);
    border-radius: 14px 14px 0 0;
    padding: 1rem;
}

.matches__team-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-default);
    font-weight: var(--font-weight-7);
    line-height: normal;
}

.matches__team-side {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.matches__team-side--ct {
    background-color: var(--ct, #5c9cff);
    -webkit-mask-image: url("/app/modules/module_page_matches/assets/img/ct.svg");
    mask-image: url("/app/modules/module_page_matches/assets/img/ct.svg");
}

.matches__team-side--t {
    background-color: var(--t, #e8b04b);
    -webkit-mask-image: url("/app/modules/module_page_matches/assets/img/t.svg");
    mask-image: url("/app/modules/module_page_matches/assets/img/t.svg");
}

.matches__team--ct .matches__team-header {
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--ct, #5c9cff) 15%, transparent), transparent 70%);
}

.matches__team--t .matches__team-header {
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--t, #e8b04b) 15%, transparent), transparent 70%);
}

.matches__team-name {
    min-width: 1ch;
    max-width: 12rem;
    outline: none;
    border-radius: var(--br-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.matches__team-name[contenteditable="true"] {
    overflow: visible;
    text-overflow: clip;
    box-shadow: 0 0 0 1px var(--transparent-20-w);
    background: var(--transparent-5-w);
    padding: .1rem .35rem;
    cursor: text;
}

.matches__team-title .button-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.matches__team-title .button-icon svg {
    width: .8rem;
    height: .8rem;
}

.matches__team-size,
.matches__extra-count {
    display: inline-flex;
    align-items: stretch;
    height: 1.9rem;
    border-radius: var(--br-8);
    background: var(--transparent-5-w);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--transparent-10-w);
}

.matches__team-size button,
.matches__team-size span,
.matches__extra-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.9rem;
    height: 100%;
    padding: 0 .55rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-custom);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    line-height: 1;
}

.matches__team-size button {
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__team-size button:hover {
    background: var(--text-default);
    color: var(--bg);
}

.matches__team-size span {
    min-width: 2rem;
    border-inline: 1px solid var(--transparent-10-w);
    color: var(--text-default);
    font-weight: var(--font-weight-7);
}

.matches__team-size button[hidden],
.matches__team-edit[hidden] {
    display: none !important;
}

.matches__team-size:not(:has(button:not([hidden]))) span,
.matches__extra-count {
    border-inline: 0;
    min-width: 2.4rem;
    padding: 0 .7rem;
    color: var(--text-default);
    font-weight: var(--font-weight-7);
    height: 1.9rem;
}

.matches__team-slots {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.matches__slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem 1rem;
    height: 4rem;
    background-color: var(--transparent-1-w);
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__slot:hover {
    background-color: var(--transparent-5-w);
    color: var(--text-default);
}

.matches__slot-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: var(--br-50);
    border: 1px dashed var(--transparent-20-w);
    flex-shrink: 0;
}

.matches__slot-avatar svg {
    width: .6rem;
    height: .6rem;
    fill: var(--text-custom);
    transition: var(--transition-duration);
}

.matches__slot-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.matches__slot-name {
    color: var(--text-custom);
    font-weight: var(--font-weight-5);
}

.matches__slot-ping {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-custom);
}

.matches__slot-ping--low {
    color: var(--low-ping, #5fde74);
}

.matches__slot-ping--middle {
    color: var(--middle-ping, #f8c931);
}

.matches__slot-ping--high {
    color: var(--hight-ping, #e33d3d);
}

.matches__signal {
    width: .85rem;
    height: .85rem;
    display: block;
}

.matches__signal-bar {
    fill: var(--transparent-20-w);
}

.matches__slot-ping--low .matches__signal-bar,
.matches__slot-ping--middle .matches__signal-bar--1,
.matches__slot-ping--middle .matches__signal-bar--2,
.matches__slot-ping--high .matches__signal-bar--1 {
    fill: currentColor;
}

a.matches__slot {
    text-decoration: none;
    color: inherit;
}

.matches__slot--filled {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.matches__slot--filled > :not(.matches__slot-bg) {
    position: relative;
    z-index: 1;
}

.matches__slot--filled.is-ready::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(52, 211, 153, .4), rgba(52, 211, 153, .12) 58%, transparent);
}

.matches__slot-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    opacity: .2;
}

.matches__slot-bg img,
.matches__slot-bg video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matches__slot--filled:hover {
    background-color: var(--transparent-5-w);
}

.matches__slot--filled .matches__slot-avatar {
    border-style: solid;
    border-color: var(--transparent-10-w);
    overflow: hidden;
    padding: 0;
}

.matches__slot--filled .matches__slot-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.matches__slot--filled .matches__slot-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-default);
    font-weight: var(--font-weight-6);
}

.matches__slot-ready {
    position: relative;
    z-index: 2;
    margin-left: auto;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-8);
    background-color: rgb(34 197 94 / 18%);
    color: var(--green);
    pointer-events: none;
}

.matches__slot-ready svg {
    width: .95rem;
    height: .95rem;
    fill: currentColor;
}

.matches__slot-kda {
    position: relative;
    z-index: 2;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-custom);
    font-weight: var(--font-weight-6);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.matches__team-kda-head {
    margin-left: auto;
    color: var(--text-custom);
    font-weight: var(--font-weight-6);
    letter-spacing: .05em;
    white-space: nowrap;
}

/* KDA only matters once the match has started; the team size control only before that. */
.matches__room[data-matches-status="waiting"] .matches__slot-kda,
.matches__room[data-matches-status="waiting"] .matches__team-kda-head,
.matches__room:not([data-matches-status="waiting"]) .matches__team-size {
    display: none;
}

.matches__slot-kda + .matches__slot-ready,
.matches__slot-kda + .matches__slot-kick {
    margin-left: .5rem;
}

.matches__slot-kick {
    position: relative;
    z-index: 2;
    margin-left: auto;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-6);
    background-color: var(--transparent-3-w);
    color: var(--text-default);
    transition: var(--transition-duration);
}

.matches__room:not([data-matches-host="1"]) .matches__slot-kick,
.matches__room:not([data-matches-status="waiting"]) .matches__slot-kick {
    display: none;
}

.matches__slot-kick:hover {
    background-color: color-mix(in srgb, var(--red, #ef4444) 20%, transparent);
    color: var(--red, #ef4444);
}

.matches__slot-kick.is-pending {
    opacity: .5;
    pointer-events: none;
}

.matches__slot-kick svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.matches__slot-ready + .matches__slot-kick {
    margin-left: .5rem;
}

.matches__slot--disabled {
    justify-content: center;
    cursor: default;
    pointer-events: none;
}

.matches__slot--disabled:hover {
    background-color: var(--transparent-1-w);
    color: inherit;
}

.matches__slot--disabled .matches__slot-name {
    text-align: center;
}

.matches__room-status {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.matches__room-status-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    min-height: 100%;
}

.matches__room-status-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    width: 100%;
    flex-shrink: 0;
}

.matches__room-status-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.4rem;
    padding: 1rem;
    border-radius: var(--br-8);
    border: 2px solid var(--transparent-20-w);
    color: var(--text-custom);
    font-size: var(--font-size-m);
    text-align: center;
    font-weight: var(--font-weight-6);
}

.matches__room-status-title[hidden] {
    display: none !important;
}

.matches__room-status-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.matches__room-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.matches__room-actions {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    height: 3rem;
    border-radius: var(--br-10);
    background: var(--transparent-3-w);
    flex-shrink: 0;
    gap: .2rem;
    padding: .2rem;
}

.matches__room-footer[hidden],
.matches__room-actions[hidden] {
    display: none !important;
}

.matches__room-start {
    width: 100%;
    flex-shrink: 0;
}

#matchesStartMatch[hidden],
#matchesToggleReady[hidden],
#matchesCancelReady[hidden] {
    display: none !important;
}

.matches__room-start:disabled {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

.matches__room-start.is-ready {
    background-color: var(--green);
    color: var(--text-default);
}

#matchesToggleReady:not([hidden]) {
    animation: matches-ready-pulse 1.4s ease-in-out infinite;
}

@keyframes matches-ready-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
    }
    50% {
        box-shadow: 0 0 0 .4rem rgba(52, 211, 153, .12);
    }
}

.matches__room-start.is-ready:hover {
    background-color: var(--green);
    color: var(--text-default);
}

.matches__room-start.is-ready:disabled {
    opacity: 1;
    pointer-events: none;
    cursor: default;
}

.matches__room-start.is-ready svg {
    fill: currentColor;
}

.matches__room-action {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 1px solid var(--transparent-5-w) !important;
    border-radius: var(--br-8);
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    background: var(--button);
    color: var(--text-custom);
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__room-action+.matches__room-action {
    border-left: 1px solid var(--transparent-10-w);
}

.matches__room-action:hover {
    background: var(--text-default);
    color: var(--bg);
}

.matches__room-action:focus,
.matches__room-action:focus-visible,
.matches__room-action:active {
    outline: none;
    box-shadow: none;
    border: 1px solid var(--transparent-5-w) !important;
}

.matches__room-action svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.matches__room-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.matches__room-status-row:last-child {
    padding-bottom: 0;
}

.matches__room-status-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    color: var(--text-custom);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
}

.matches__room-status-label svg {
    width: .95rem;
    height: .95rem;
    fill: currentColor;
    flex-shrink: 0;
}

.matches__room-status-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 0;
    color: var(--text-default);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    text-align: right;
}

.matches__room-status-value-link,
.matches__room-status-value-link:hover {
    color: var(--span) !important;
}

.matches__room-status-flag {
    width: 1rem;
    height: 1rem;
    border-radius: var(--br-50);
    object-fit: cover;
    flex-shrink: 0;
}

.matches__room-ping {
    display: inline-flex;
    align-items: center;
    gap: .22rem;
    font-size: var(--font-size-xs, .75rem);
    font-weight: var(--font-weight-6);
    color: var(--text-custom);
    white-space: nowrap;
    line-height: 1;
}

.matches__room-ping .matches__signal {
    width: .72rem;
    height: .72rem;
    flex-shrink: 0;
}

.matches__room-ping .matches__signal-bar {
    fill: currentColor;
    opacity: .35;
}

.matches__room-ping--low {
    color: var(--low-ping, #5fde74);
}

.matches__room-ping--middle {
    color: var(--middle-ping, #f8c931);
}

.matches__room-ping--high {
    color: var(--hight-ping, #e33d3d);
}

.matches__room-ping--low .matches__signal-bar,
.matches__room-ping--middle .matches__signal-bar--1,
.matches__room-ping--middle .matches__signal-bar--2,
.matches__room-ping--high .matches__signal-bar--1 {
    opacity: 1;
}

.matches__room-status-avatar img {
    width: 1.15rem;
    height: 1.15rem;
    fill: var(--text-custom);
    border-radius: var(--br-50);
}

.matches__extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    align-items: start;
}

.matches__room-aside {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.matches__room-tabs {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 4.2rem;
    padding: 1rem;
    background-color: var(--input-form);
    border-radius: var(--br-16) var(--br-16) 0 0;
}

.matches__room-panel {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .3rem;
}

.matches__room-panel[hidden] {
    display: none !important;
}

.matches__chat {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    min-height: 28rem;
}

.matches__chat-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-default);
    font-weight: var(--font-weight-5);
    font-size: var(--font-size-m);
    background-color: var(--input-form);
    padding-inline: 1rem;
    border-radius: var(--br-10);
    height: 3.2rem;
}

.matches__chat-title svg {
    width: .8rem;
    height: .8rem;
    fill: var(--text-custom);
}

.matches__chat-feed {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    max-height: 35.438rem;
    overflow: auto;
    padding-right: .2rem;
    border-radius: var(--br-12);
}

.matches__chat-system {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-s);
    line-height: 1.4;
}

.matches__chat-system strong {
    color: var(--text-custom);
    font-weight: var(--font-weight-6);
}

.matches__chat-event {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--text-custom);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
}

.matches__chat-event span {
    color: var(--text-secondary);
}

.matches__chat-event::before,
.matches__chat-event::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--transparent-4-w);
}

.matches__chat-msg {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .3rem .5rem;
    border-radius: var(--br-6);
    transition: var(--transition-duration);
}

.matches__chat-msg:hover {
    background-color: var(--transparent-2-w);
}

.matches__chat-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: var(--br-50);
    object-fit: cover;
    flex-shrink: 0;
}

.matches__chat-msg-body {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.matches__chat-msg-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.matches__chat-name {
    color: var(--text-default);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-s);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__chat-channel {
    flex-shrink: 0;
    color: var(--span);
    font-size: var(--font-size-xs, .75rem);
    font-weight: var(--font-weight-6);
    white-space: nowrap;
}

.matches__chat-time {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-custom);
    font-size: var(--font-size-xs, .75rem);
}

.matches__chat-msg-text {
    color: var(--text-custom);
    font-size: var(--font-size-s);
    line-height: 1.4;
    word-break: break-word;
}

.matches__chat-compose {
    display: flex;
    align-items: center;
    gap: .35rem;
    height: 3.2rem;
    margin-top: auto;
    padding: 0 .35rem 0 .15rem;
    background-color: var(--input-form);
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-10);
}

.matches__chat-target {
    margin-bottom: 0;
    flex-shrink: 0;
}

.matches__chat-target .adaptive-select {
    min-width: max-content;
    width: max-content;
    height: 2.4rem;
    padding-inline: .7rem 0;
    background: transparent;
    border: 0;
}

.matches__chat-target .adaptive-select__dropdown-list {
    z-index: 8;
}

.matches__chat-target .adaptive-select__dropdown-list > li[hidden] {
    display: none;
}

.matches__chat-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--text-default);
    font-size: var(--font-size-s);
    outline: none;
    box-shadow: none;
    filter: none;
    -webkit-tap-highlight-color: transparent;
}

.matches__chat-input:hover,
.matches__chat-input:focus,
.matches__chat-input:focus-visible,
.matches__chat-input:active {
    outline: none;
    border: 0;
    box-shadow: none;
    filter: none;
    background: transparent;
}

.matches__chat-input::placeholder,
.matches__chat-input:focus::placeholder,
.matches__chat-input:focus::-webkit-input-placeholder,
.matches__chat-input:focus::-moz-placeholder {
    color: var(--text-custom);
    opacity: 1;
}

.matches__chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: var(--text-custom);
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: none;
    filter: none;
    -webkit-tap-highlight-color: transparent;
}

.matches__chat-send:hover,
.matches__chat-send:focus,
.matches__chat-send:focus-visible,
.matches__chat-send:active {
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
    filter: none;
    color: var(--text-default);
}

.matches__chat-send svg {
    width: 1.05rem;
    height: 1.05rem;
}

.matches__setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    height: 3.2rem;
    background-color: var(--transparent-2-w);
    border-radius: var(--br-10);
    padding-inline: .8rem .3rem;
}

.matches__setting-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-secondary);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-4);
    min-width: 0;
    user-select: none;
}

.matches__setting-label svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex-shrink: 0;
}

.matches__setting-value {
    color: var(--text-default);
    font-weight: var(--font-weight-6);
    font-size: var(--font-size-m);
    margin-right: .5rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.matches__room[data-matches-host="1"] [data-matches-guest-only],
.matches__room:not([data-matches-host="1"]) [data-matches-host-only],
.matches__room:not([data-matches-host="1"]) [data-matches-host-waiting],
.matches__room:not([data-matches-status="waiting"]) [data-matches-host-waiting],
[data-matches-host-only][hidden],
[data-matches-guest-only][hidden],
[data-matches-host-waiting][hidden],
.matches__setting-value[hidden] {
    display: none !important;
}

.matches__setting-control {
    margin-bottom: 0;
    width: max-content;
}

.matches__setting-control .adaptive-select {
    min-width: max-content;
    width: max-content;
    border: 1px solid var(--transparent-5-w);
}

.matches__setting-control .adaptive-select [data-matches-ping] {
    flex-shrink: 0;
}

.matches__setting-control[data-change-icon] .adaptive-select__fist-icon,
.matches__setting-control[data-change-icon] .adaptive-select:hover .adaptive-select__fist-icon {
    opacity: 1;
}

#matchesRoomRegion .adaptive-select__label [data-matches-region-option-ping] {
    margin-left: auto;
}

.matches__advanced {
    /* padding: 1rem; */
    background-color: transparent;
    border-radius: var(--br-10);
    border: 1px solid var(--transparent-10-w);
    margin-block: .3rem;
}

.matches__advanced>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    list-style: none;
    cursor: pointer;
    color: var(--text-default);
    font-weight: var(--font-weight-7);
    user-select: none;
    height: 3.2rem;
    padding-inline: 1rem;
}

.matches__advanced>summary::-webkit-details-marker {
    display: none;
}

.matches__advanced>summary svg {
    width: .9rem;
    height: .9rem;
    fill: var(--text-custom);
    transition: transform .2s ease;
}

.matches__advanced[open]>summary svg {
    transform: rotate(180deg);
}

.matches__advanced-group {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-block: .85rem;
    padding-inline: 1rem;
}

.matches__advanced-title {
    color: var(--text-secondary);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    text-transform: uppercase;
    letter-spacing: .04em;
    user-select: none;
    border-bottom: 1px solid var(--transparent-3-w);
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.matches__switch {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    height: 3.2rem;
    background-color: var(--transparent-2-w);
    border-radius: var(--br-10);
    padding-inline: 1rem;
    align-items: center;
    margin-bottom: 0;
    width: auto;
}

.matches__switch label {
    margin: 0 !important;
    width: 100%;
    height: 100%;
    align-content: center;
    transition: var(--transition-duration);
}

.matches__switch:has(input.switch:checked) label {
    color: var(--span);
}

.matches__switch-control {
    flex: none;
}

.matches__range-row {
    display: flex;
    flex-direction: column;
    margin-block: .5rem;
}

.matches__range-head {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.matches__range-title {
    display: flex;
    align-items: center;
    gap: .3rem;
    color: var(--text-secondary);
    width: max-content;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-5);
}

.matches__range-value-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}

.matches__range-prefix {
    color: var(--text-secondary);
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-6);
    user-select: none;
}

.matches__range-value {
    width: 4.5rem !important;
    margin-left: auto;
}

.matches__range-value-wrap .matches__range-value {
    margin-left: 0;
    width: max-content;
    min-width: unset;
}

.matches__range {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 0;
    outline: none;
    width: 100%;
    height: 5px;
    margin-top: .8rem;
    padding: 0;
    transition: var(--transition-duration);
    background: -webkit-linear-gradient(to right, var(--span) 0%, var(--input-form) 0%);
    background: linear-gradient(to right, var(--span) 0%, var(--input-form) 0%);
    cursor: pointer;
}

.matches__range::-moz-range-track {
    -moz-appearance: none;
    appearance: none;
    border: none;
    border-radius: 0;
    outline: none;
    width: 0;
    height: 5px;
    transition: var(--transition-duration);
    background: linear-gradient(to right, var(--span) 0%, var(--input-form));
}

.matches__range::-ms-track {
    appearance: none;
    border: none;
    border-radius: 0;
    outline: none;
    width: 0;
    height: 5px;
    transition: var(--transition-duration);
    background: linear-gradient(to right, var(--span) 0%, var(--input-form));
}

.matches__range::-ms-fill-lower,
.matches__range:focus::-ms-fill-lower,
.matches__range::-ms-fill-upper,
.matches__range:focus::-ms-fill-upper {
    border: none;
    border-radius: 0;
    background: linear-gradient(to right, var(--span) 0%, var(--input-form));
}

.matches__range::-webkit-slider-runnable-track {
    background-color: transparent;
    border: none;
    outline: none;
}

.matches__range:focus {
    outline: none;
}

.matches__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: var(--br-50);
    border: 0;
    box-shadow: 0 0 0 4px inset var(--text-default);
    background-color: var(--button);
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__range::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: var(--br-50);
    border: 0;
    box-shadow: 0 0 0 4px inset var(--text-default);
    background-color: var(--button);
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__range::-ms-thumb {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: var(--br-50);
    border: 0;
    box-shadow: 0 0 0 4px inset var(--text-default);
    background-color: var(--button);
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__range::-webkit-slider-thumb:hover,
.matches__range::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px inset var(--text-default);
}

.matches__range::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 6px inset var(--text-default);
}

.matches__range::-moz-range-thumb:hover,
.matches__range::-moz-range-thumb:active {
    box-shadow: 0 0 0 5px inset var(--text-default);
}

.matches__range::-moz-range-thumb:active {
    box-shadow: 0 0 0 6px inset var(--text-default);
}

.matches__range:disabled::-webkit-slider-thumb,
.matches__range:disabled::-moz-range-thumb,
.matches__range:disabled::-ms-thumb {
    box-shadow: 0 0 0 4px inset var(--text-custom);
}

.matches__room-hint {
    margin: .3rem 0 0 0;
    color: var(--text-custom);
    font-size: var(--font-size-s);
    line-height: 1.4;
    text-align: center;
    padding: .5rem;
    background-color: var(--transparent-5-w);
    border-radius: var(--br-8) var(--br-8) var(--br-12) var(--br-12);
}

.matches__delete {
    background-color: var(--red) !important;
    color: var(--text-default) !important;
    transition: var(--transition-duration);
}

.matches__delete svg,
.matches__delete:hover svg {
    fill: var(--text-default);
}

.matches__delete:hover {
    filter: brightness(115%) !important;
}

#matchesLeaveLobby[hidden] {
    display: none !important;
}

.matches__room-apple {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    height: 32px;
    background: var(--bg);
    padding-inline: .3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    z-index: 2;
}

.matches__room-apple-text {
    color: var(--text-custom);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-7);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.matches__room-apple::before,
.matches__room-apple::after {
    content: "";
    background-color: var(--bg);
    width: 31px;
    height: 32.7px;
    transition: all .15s ease-in-out;
    position: absolute;
    top: 0;
    right: -29px;
    -webkit-mask-image: url(../../assets/img/angle.svg);
    mask-image: url(../../assets/img/angle.svg);
    -webkit-mask-size: cover;
    mask-size: cover;
}

.matches__room-apple::before {
    transform: scaleX(-1);
}

.matches__room-apple::after {
    left: -29px;
    right: unset;
}

.matches__room-apple.success .matches__room-apple-text {
    color: var(--green);
}

.matches__room-apple.live .matches__room-apple-text {
    color: var(--span);
}

@media (max-width: 991.9px) {
    .matches__room-boards {
        grid-template-columns: 1fr;
    }

    .matches__extras {
        grid-template-columns: 1fr;
    }

    .matches__room-status-card {
        min-height: 0;
    }

    .matches__room-map-content {
        padding: 3.4rem 1rem 1rem;
        gap: .5rem;
    }

    .matches__room-map-meta {
        justify-content: center;
    }
}

@media (max-width: 768.9px) {
    .matches__room-map-bar {
        flex-wrap: wrap;
    }

    .matches__room-back-text {
        display: none;
    }

    .matches__room-back {
        aspect-ratio: 1;
        padding: 0;
        justify-content: center;
    }

    .matches__setting-row {
        flex-direction: column;
        align-items: stretch;
    }

    .matches__setting-control {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .matches__setting-value {
        text-align: left;
    }
}

.reports_instal_area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    position: relative;
}

.reports_instal_area img {
    width: 47%;
    opacity: 0.4;
    z-index: 1;
}

.reports_instal_area .btn {
    position: absolute;
    z-index: 2;
}

.report_name_module {
    position: absolute;
    font-size: var(--font-size-9xl);
    font-family: var(--font-family-1);
    font-weight: var(--font-weight-7);
    z-index: -1;
    color: var(--text-custom);
    opacity: 0.1;
    top: 52%;
    -webkit-user-select: none;
    user-select: none;
}

.kostily_ebanye {
    position: relative;
}

.kostily_ebanye button {
    cursor: pointer;
    position: absolute;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    right: 10px;
    background-color: rgb(255 255 255 / 5%);
    border-radius: var(--br-8);
    color: var(--text-custom);
}

.at__section {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.at__card-settings {
    padding: .5rem;
    gap: .5rem;
    flex: 1;
}

.at__settings-content {
    padding: 1rem;
    background-color: transparent;
    border-radius: var(--br-10);
    border: 1px solid var(--transparent-5-w);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}

.at__settings-subtitle {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-5);
    text-transform: uppercase;
    color: var(--text-secondary);
}

.at__settings-title {
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-6);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--transparent-5-w);
}

.at__settings-section {
    flex: 1;
    min-width: 0;
}

.at__sections-wrapper {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.at__settings-content > .at__sections-wrapper > .at__settings-section:only-child {
    flex: 0 1 calc(50% - .5rem);
}

.at__settings-section .no-data {
    margin-block: 1.5rem;
    min-height: 0;
    font-size: var(--font-size-l);
}

.matches__server-geo {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.matches__server-geo img {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: var(--br-24);
    object-fit: cover;
    flex-shrink: 0;
}

.matches__server-status {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-5);
    color: var(--text-default);
}

.matches__server-status--free {
    color: var(--have-slots, #76cb91);
}

.matches__server-status--busy {
    color: var(--have-small-slots, #efa74e);
}

.matches__server-status--offline {
    color: var(--text-secondary);
}

.at__mb0 {
    margin-bottom: 0;
}

.at__button-wrapper {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .5rem;
}

.at__settings-adding,
.at__settings-editing {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.at__button-setting {
    margin-top: .3rem;
}

.at__settings-info-text {
    padding: .5rem;
    font-size: var(--font-size-s);
    color: var(--text-secondary);
    background-color: var(--transparent-2-w);
    border-radius: var(--br-8);
    margin-bottom: .5rem;
    font-style: italic;
}

#matchesMapsPool {
    min-height: 12rem;
    resize: vertical;
}

.matches__vip-select {
    width: 100%;
    margin-bottom: 0;
}

.matches__vip-select .adaptive-select {
    width: 100%;
}

.matches__vip-select .adaptive-select__dropdown-list {
    width: 100%;
    max-width: 100%;
}

.matches__vip-select .adaptive-select__dropdown-list .inputs-inline {
    position: relative;
    margin-bottom: 0;
}

.matches__vip-select .adaptive-select__dropdown-list .inputs-inline svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: .9rem;
    height: .9rem;
    fill: var(--text-custom);
    z-index: 1;
    pointer-events: none;
}

.matches__vip-select .adaptive-select__dropdown-list .inputs-inline input[type="search"] {
    padding-left: 2.4rem;
    width: 100%;
}

.matches__vip-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding: .4rem 0 .2rem;
    text-align: center;
}

.matches__vip-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--br-50);
    background: var(--transparent-5-w);
    color: var(--span);
}

.matches__vip-gate-icon svg {
    width: 1.4rem;
    height: 1.4rem;
}

.matches__vip-gate-title {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-6);
    color: var(--text-custom);
}

.matches__vip-gate-text {
    font-size: var(--font-size-s);
    color: var(--text-secondary);
    max-width: 22rem;
}

.matches__vip-gate .matches__modal-action {
    margin-top: .2rem;
}

@media (max-width: 768px) {
    .at__section {
        height: auto;
    }

    .at__sections-wrapper {
        display: block;
    }

    .at__settings-content > .at__sections-wrapper > .at__settings-section:only-child {
        flex: none;
    }
}