.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;
}

/* ---------- Banner: jonli statistika kartalari ---------- */
/* Katta ekranda matn va kartalar bitta qatorda turadi, banner balandligi o'zgarmaydi. */
.matches__banner-content {
    flex: 1 1 auto;
    min-width: 0;
}

.matches__stats {
    position: relative;
    z-index: 2;
    flex: 0 1 28rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    min-width: 0;
    margin-left: auto;
    align-self: center;
    padding: 1.5rem 1.5rem 1.5rem 0;
    box-sizing: border-box;
}

.matches__stat {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    min-width: 0;
    padding: .8rem 1rem;
    border-radius: var(--br-16);
    background-color: rgba(0, 0, 0, .2);
    border: 1px solid rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.matches__stat-label {
    color: var(--text-custom);
    font-size: .7rem;
    font-weight: var(--font-weight-6);
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
}

.matches__stat-value {
    color: var(--text-default);
    font-family: var(--font-family-1);
    font-size: 1.75rem;
    font-weight: var(--font-weight-7);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.matches__stat-total {
    color: var(--text-custom);
    font-size: 1.05rem;
}

.matches__stat-foot {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--text-default);
    font-size: var(--font-size-s);
}

.matches__stat-dot {
    width: .5rem;
    height: .5rem;
    flex-shrink: 0;
    border-radius: var(--br-50);
    background-color: var(--text-secondary);
}

.matches__stat-dot.is-live {
    background-color: var(--green);
    box-shadow: 0 0 0 0 var(--green);
    animation: matchesStatPulse 2s infinite;
}

@keyframes matchesStatPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .55); }
    70% { box-shadow: 0 0 0 .45rem rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.matches__stat-bar {
    display: block;
    height: .35rem;
    margin-top: auto;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, .1);
    overflow: hidden;
}

/* Rang bo'sh serverlar soniga qarab: yashil / sariq / qizil */
.matches__stat-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background-color: #22c55e;
    transition: width var(--transition-duration) ease, background-color var(--transition-duration) ease;
}

.matches__stat-bar-fill.is-warn {
    background-color: #eab308;
}

.matches__stat-bar-fill.is-low {
    background-color: #ef4444;
}

@media (max-width: 1199.9px) {
    .matches__banner {
        flex-wrap: wrap;
    }

    .matches__banner-content {
        flex-basis: 100%;
    }

    .matches__stats {
        flex: 1 1 100%;
        padding: 0 1.5rem 1.5rem;
    }
}

@media (max-width: 768.9px) {
    .matches__stats {
        padding: 0 1.1rem 1.1rem;
        gap: .5rem;
    }

    .matches__stat {
        padding: .9rem 1rem;
        gap: .6rem;
    }

    .matches__stat-label {
        letter-spacing: .03em;
        font-size: .7rem;
    }

    .matches__stat-value {
        font-size: 2rem;
    }

    .matches__stat-total {
        font-size: 1.2rem;
    }

    .matches__stat-foot {
        font-size: var(--font-size-s);
    }
}

@media (prefers-reduced-motion: reduce) {
    .matches__stat-dot.is-live {
        animation: none;
    }
}

.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;
}

/* FIX (cs2.uz): Ochiq / Parol bilan — minimal ikonka */
.matches__lobby-type span {
    gap: .45rem;
}

.matches__lobby-type-icon {
    width: .95rem;
    height: .95rem;
    flex-shrink: 0;
    fill: currentColor;
    opacity: .75;
}

.matches__lobby-type input:checked + span .matches__lobby-type-icon {
    opacity: 1;
}

.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: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)) 2.3rem /* FIX (cs2.uz): xarita (rasm+nom) kengroq, qolgan 5 ustun teng */; /* FIX (cs2.uz): ustunlar bir tekis */ /* FIX (cs2.uz): slotlar ustuni kengroq */
    align-items: center;
    gap: .85rem;
    padding: .3rem;
    border-radius: var(--br-10);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-duration);
}

/* FIX (cs2.uz): ustun sarlavhalari */
.matches__list-head {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)) 2.3rem /* FIX (cs2.uz): xarita (rasm+nom) kengroq, qolgan 5 ustun teng */;
    align-items: center;
    gap: .85rem;
    padding: .6rem .3rem;
    margin-bottom: .3rem;
    background: rgba(0, 0, 0, .08);
    border-radius: var(--br-10, 10px);
    color: var(--text-secondary, rgba(255,255,255,.5));
    font-size: var(--font-size-s, .8rem);
    white-space: nowrap;
    user-select: none;
}

.matches__list-head > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.matches__list-mapcell {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.matches__list-head-time {
    text-align: left;
}

.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: left; /* FIX (cs2.uz) */
}

.matches__list-slots {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    padding-left: 0; /* FIX (cs2.uz): oraliq endi ustun kengligi bilan beriladi */
}

/* FIX (cs2.uz): nuqta o'rniga vertikal to'lish chizig'i (pastdan yuqoriga, --fill %) */
.matches__list-fill {
    position: relative;
    width: 4px;
    height: 20px;
    border-radius: 999px;
    flex-shrink: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--text-default, #fff) 14%, transparent);
    --matches-fill-color: var(--have-slots, #76cb91);
}

.matches__list-fill::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--fill, 0%);
    min-height: 3px;
    border-radius: inherit;
    background: var(--matches-fill-color);
    transition: height .3s ease;
}

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

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

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

/* FIX (cs2.uz): ro'yxatdagi ping ustuni */
.matches__list-ping {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    color: var(--text-custom);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
    white-space: nowrap;
}

.matches__list-ping[hidden] {
    display: inline-flex;
    visibility: hidden; /* ustun joyi saqlanadi, qatorlar siljimaydi */
}

.matches__list-ping .matches__signal {
    width: .85rem;
    height: .85rem;
    flex-shrink: 0;
}

.matches__list-ping .matches__signal-bar {
    fill: currentColor;
    opacity: .3;
}

.matches__list-ping--low { color: var(--low-ping, #5fde74); }
.matches__list-ping--middle { color: var(--middle-ping, #f8c931); }
.matches__list-ping--high { color: var(--hight-ping, #e33d3d); }

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

.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: left; /* FIX (cs2.uz): sarlavha bilan bir chiziqda */
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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-ping,
    .matches__list-ping[hidden],
    .matches__list-host,
    .matches__list-time {
        display: none;
    }

    .matches__list-slots {
        padding-left: 0;
    }

    .matches__list-head {
        display: none;
    }

    .matches__list-mapcell {
        display: contents;
    }
}

#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-heading {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: .1rem;
}

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

.matches__team-elo {
    color: var(--text-custom);
    font-size: .72rem;
    font-weight: var(--font-weight-6);
    letter-spacing: .02em;
    line-height: 1.2;
    white-space: nowrap;
}

.matches__team-elo[hidden] {
    display: none;
}

/* Raqam "AVG ELO" yozuvi bilan bir xil: qalin emas, rangi ham bir xil */
.matches__team-title .matches__team-elo span {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.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_lobby/assets/img/ct.svg");
    mask-image: url("/app/modules/module_page_lobby/assets/img/ct.svg");
}

.matches__team-side--t {
    background-color: var(--t, #e8b04b);
    -webkit-mask-image: url("/app/modules/module_page_lobby/assets/img/t.svg");
    mask-image: url("/app/modules/module_page_lobby/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);
}

/* FIX (cs2.uz): ping noma'lum bo'lsa (o'yinchi serverda emas) belgi xira (kulrang) ko'rinadi */
.matches__slot-ping[hidden] {
    display: inline-flex;
    opacity: .6;
}

.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 {
    position: relative;
    border-style: solid;
    border-color: var(--transparent-10-w);
    overflow: visible;
    padding: 0;
}

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

/* ---------- Jamoa kapitani: avatar ustidagi toj ---------- */
.matches__captain {
    position: absolute;
    top: -.7rem;
    left: 50%;
    z-index: 2;
    display: block;
    width: .9rem;
    height: .72rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.matches__captain svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #e3e6ec;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7));
}

/* ---------- FACEIT level belgisi (avatar burchagida, NEO3 ikonalari) ---------- */
.matches__slot--filled .matches__slot-avatar img.matches__faceit {
    position: absolute;
    right: -.35rem;
    bottom: -.35rem;
    z-index: 1;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #12141a;
    box-shadow: 0 0 0 2px #12141a;
    object-fit: contain;
}

.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;
    }
}
/* FIX (cs2.uz): lobbi tugagach — banner o'ng yuqorisida "Demoni yuklab olish" */
.matches__room-demo-top {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    white-space: nowrap;
}

.matches__room-demo-top svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .matches__room-demo-top span {
        display: none;
    }
}

/* FIX (cs2.uz): demo tugmasi tayyor bo'lmaguncha yashirin */
.matches__room-demo-top[hidden] {
    display: none !important;
}

/* FIX (cs2.uz): o'yin tugagach g'olib jamoa hisobi yonida kubok */
.matches__room-score-trophy {
    display: none;
    width: 1.9rem;
    height: 1.9rem;
    flex-shrink: 0;
    fill: var(--green);
    color: var(--green);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--green) 45%, transparent));
}

/* Tugagan o'yinda ikkala tomonda ham joy ajratiladi (hisob markazda qoladi), kubok faqat g'olib tomonda ko'rinadi */
.matches__room[data-matches-status="finished"] .matches__room-score-trophy {
    display: block;
    visibility: hidden;
}

.matches__room[data-matches-status="finished"] .matches__room-score-trophy--a:has(+ .matches__room-score-box.winner),
.matches__room[data-matches-status="finished"] .matches__room-score-box.winner + .matches__room-score-trophy--b {
    visibility: visible;
}

@media (max-width: 576px) {
    .matches__room-score-trophy {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Best of 1/3/5 (dasturchi qo'shgan) */
.matches__best-of {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem;
    border: 1px solid var(--transparent-5-w);
    border-radius: var(--br-8);
    background: var(--transparent-2-w);
}

.matches__best-of .filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0 .6rem;
    border-radius: var(--br-6);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    line-height: 1;
}

.matches__best-of .filter:focus-visible {
    outline: 2px solid var(--span);
    outline-offset: 1px;
}

#matchesRoomMap .matches__map-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.matches__series-row,
.matches__maps-row {
    height: auto;
    min-height: 3.2rem;
    flex-wrap: wrap;
    padding-block: .4rem;
}

.matches__maps-row [data-matches-host-only],
.matches__maps-row .matches__setting-control {
    min-width: 0;
    max-width: 100%;
}

.matches__maps-row .matches__setting-control {
    width: 175px;
}

.matches__maps-row .adaptive-select {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.matches__maps-row .adaptive-select__span_text {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__maps-row .matches__setting-value {
    overflow-wrap: anywhere;
}

/* FIX (cs2.uz): karta tanlash ro'yxatida karta rasmi */
.matches__map-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
}

.matches__map-label > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__map-thumb {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    object-fit: contain; /* karta logotipi - butunligicha */
}

/* logotip topilmasa - karta rasmi (kesib, yumaloq burchak bilan) */
.matches__map-thumb--photo {
    border-radius: .4rem;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--transparent-5-w, rgba(255, 255, 255, .08));
}

.matches__maps-row .adaptive-select__span_text.matches__map-label {
    display: flex;
}

/* FIX (cs2.uz): "Hudud" maydoni "Xarita" bilan bir xil kenglikda */
.matches__setting-control:has(#matchesRoomRegion) {
    width: 175px;
    max-width: 100%;
}

.matches__setting-control:has(#matchesRoomRegion) .adaptive-select {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* FIX (cs2.uz): Best of 3/5 - seriya kartalari */
.matches__series {
    display: grid;
    gap: .6rem;
    margin-top: 0; /* FIX (cs2.uz): tepadagi blokka yaqinroq */
}

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

.matches__series-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-inline: .2rem;
    font-size: var(--font-size-s);
    color: var(--text-custom);
}

.matches__series-title {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: var(--font-weight-6);
}

.matches__series-total {
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-7);
    color: var(--text-default);
    font-variant-numeric: tabular-nums;
}

.matches__series-total .win {
    color: var(--green);
}

.matches__series-maps {
    display: grid;
    grid-template-columns: repeat(var(--series-count, 3), minmax(0, 1fr));
    gap: .6rem;
}

.matches__series-map {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 4.6rem;
    padding: .6rem .9rem;
    border-radius: var(--br-12, 12px);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--bg-block, #1e2533);
    isolation: isolate;
}

.matches__series-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: saturate(.85);
}

.matches__series-map::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 14, 22, .78), rgba(10, 14, 22, .45) 50%, rgba(10, 14, 22, .78));
}

.matches__series-map.is-pending .matches__series-bg,
.matches__series-map.is-skipped .matches__series-bg {
    filter: grayscale(.6) brightness(.7);
}

.matches__series-map.is-skipped {
    opacity: .55;
}

.matches__series-map.is-live {
    border-color: var(--red, #e5484d);
    box-shadow: 0 0 18px color-mix(in srgb, var(--red, #e5484d) 35%, transparent);
}

.matches__series-live {
    position: absolute;
    top: 0;
    right: 0;
    padding: .08rem .35rem .1rem;
    border-bottom-left-radius: .4rem;
    background: var(--red, #e5484d);
    color: #fff;
    font-size: .56rem;
    font-weight: var(--font-weight-7);
    letter-spacing: .05em;
    line-height: 1.3;
}

.matches__series-live::before {
    content: "";
    display: inline-block;
    width: .3rem;
    height: .3rem;
    margin-right: .22rem;
    border-radius: 50%;
    background: #fff;
    vertical-align: .06rem;
    animation: matchesSeriesPulse 1.2s ease-in-out infinite;
}

@keyframes matchesSeriesPulse {
    50% { opacity: .25; }
}

.matches__series-score {
    min-width: 1.6rem;
    font-size: 1.6rem;
    font-weight: var(--font-weight-7);
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.matches__series-score.win {
    color: var(--green);
}

.matches__series-mid {
    display: grid;
    justify-items: center;
    gap: .15rem;
    min-width: 0;
    text-align: center;
}

.matches__series-name {
    display: flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
    color: #fff;
    font-weight: var(--font-weight-6);
}

.matches__series-name > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__series-mid small {
    color: rgba(255, 255, 255, .7);
    font-size: .72rem;
}

@media (prefers-reduced-motion: reduce) {
    .matches__series-live::before { animation: none; }
}

@media (max-width: 768px) {
    .matches__series-maps {
        grid-template-columns: 1fr;
    }
}

/* FIX (cs2.uz): BO3/BO5 da xaritalar yetarli tanlanmagan */
.matches__setting-control .adaptive-select.matches__maps-incomplete {
    border-color: var(--red, #e5484d);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--red, #e5484d) 25%, transparent);
}

/* FIX (cs2.uz): avtomatik saqlash holati ("Saqlash" tugmasi o'rnida) */
#matchesSaveSettings[hidden] {
    display: none !important;
}

.matches__autosave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.6rem;
    border-radius: var(--br-8, 8px);
    background: var(--transparent-2-w, rgba(255, 255, 255, .03));
    color: var(--text-custom);
    font-size: var(--font-size-s);
    transition: color .2s;
}

.matches__autosave::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.matches__autosave[data-state="saving"] {
    color: var(--span, #6c8cff);
}

.matches__autosave[data-state="saving"]::before {
    animation: matchesSeriesPulse 1s ease-in-out infinite;
}

.matches__autosave[data-state="saved"] {
    color: var(--green, #3ddc84);
}

.matches__autosave[data-state="wait"],
.matches__autosave[data-state="error"] {
    color: var(--red, #e5484d);
}

/* FIX (cs2.uz): ro'yxatda Best of belgisi */
.matches__list-bo {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .45rem;
    border-radius: var(--br-6, 6px);
    background: color-mix(in srgb, var(--span-color, #6c7cff) 18%, transparent);
    color: var(--span-color, #8b97ff);
    font-size: var(--font-size-xs, .72rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
}

.matches__list-bo small {
    font-size: inherit;
    font-weight: 600;
    opacity: .85;
}

.matches__list-bo.is-series {
    background: color-mix(in srgb, var(--red, #e5484d) 16%, transparent);
    color: var(--red, #ff6369);
}

.matches__list-bo.is-live small::before {
    content: '';
    display: inline-block;
    width: .38rem;
    height: .38rem;
    margin-right: .3rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
    animation: matchesSeriesPulse 1.4s ease-in-out infinite;
}

@media (max-width: 991px) {
    .matches__list-bo {
        grid-area: meta;
        justify-self: end;
    }
}

/* FIX (cs2.uz): mehmonlar uchun xaritalar (logotip, LIVE, hisob) */
.matches__guest-maps {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
}

.matches__guest-map {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

.matches__guest-map .matches__map-thumb {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    flex: none;
}

.matches__guest-map .matches__map-thumb--photo {
    object-fit: cover;
    border-radius: 4px;
}

.matches__guest-map-num {
    font-style: normal;
    font-size: var(--font-size-xs, .72rem);
    font-weight: 700;
    color: var(--text-custom);
    min-width: .8rem;
    text-align: right;
}

.matches__guest-maps.is-series .matches__guest-map.is-done .matches__guest-map-name,
.matches__guest-map.is-skipped {
    opacity: .55;
}

.matches__guest-map.is-skipped .matches__guest-map-name {
    text-decoration: line-through;
}

.matches__guest-map-live,
.matches__guest-map-score {
    font-style: normal;
    font-size: var(--font-size-xs, .72rem);
    font-weight: 700;
    padding: .15rem .35rem;
    border-radius: 5px;
    line-height: 1;
}

.matches__guest-map-live {
    background: var(--red, #e5484d);
    color: #fff;
}

.matches__guest-map-score {
    background: var(--transparent-10-w, rgba(255, 255, 255, .08));
    color: var(--text-default);
}

/* FIX (cs2.uz): "NEW" belgisi (Best of yangi rejim) - yashil */
.matches__new-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .4rem;
    border-radius: 3px !important;
    background-color: rgba(92, 212, 139, .15);
    color: #5cd48b;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
}

/* FIX (cs2.uz): BO3/BO5 - har xarita kartasidagi demo tugmasi ("Xarita 1" yonida, hisobni to'smaydi) */
.matches__series-mid small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}

.matches__series-map .matches__series-dl {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 5px;
    background: rgba(10, 12, 20, .6);
    color: var(--text-default, #fff);
    transition: background-color var(--transition-duration, .2s);
}

.matches__series-map .matches__series-dl:hover {
    background: var(--span-color, #6c7cff);
}

.matches__series-dl svg {
    width: .8rem;
    height: .8rem;
}

/* Tepadagi "Demolar (N)" ro'yxati */
.matches__demo-pop {
    position: fixed;
    z-index: 1000;
    min-width: 15rem;
    display: grid;
    gap: .25rem;
    padding: .4rem;
    border-radius: 10px;
    background: var(--bg-card, #1f2333);
    border: 1px solid var(--transparent-10-w, rgba(255, 255, 255, .08));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.matches__demo-pop[hidden] {
    display: none !important;
}

.matches__demo-pop-item {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr) auto 1rem;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border-radius: 7px;
    color: var(--text-default, #fff);
    text-decoration: none;
    font-size: var(--font-size-s, .85rem);
    transition: background-color var(--transition-duration, .2s);
}

.matches__demo-pop-item:hover {
    background: var(--transparent-10-w, rgba(255, 255, 255, .08));
}

.matches__demo-pop-item b {
    color: var(--text-custom);
    font-size: .75rem;
}

.matches__demo-pop-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__demo-pop-item em {
    font-style: normal;
    font-weight: 700;
    color: var(--text-custom);
}

.matches__demo-pop-item svg {
    width: 1rem;
    height: 1rem;
}

/* FIX (cs2.uz): "Kutishda" va "Tomoshabinlar" kartalari bir xil o'lchamda */
.matches__extras {
    align-items: stretch;
}

.matches__extras .matches__team-header {
    min-height: calc(1.9rem + 2rem);
    box-sizing: border-box;
}

/* FIX (cs2.uz): BO3/BO5 - xarita o'ynalish tartibi raqami (1, 2, 3) - NEW belgisi uslubida */
.matches__map-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    padding: 0;
    border-radius: 3px !important;
    background-color: color-mix(in srgb, var(--span-color, #6c7cff) 30%, transparent);
    color: color-mix(in srgb, var(--span-color, #6c7cff) 45%, #fff);
    font-style: normal;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

/* FIX (cs2.uz): tartib raqami qatorning o'ng chetida - logotiplar bir chiziqda turadi */
#matchesRoomMap label {
    display: flex;
    align-items: center;
}

#matchesRoomMap .adaptive-select__label-text.matches__map-label {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

#matchesRoomMap .matches__map-order {
    order: 3;
    margin-left: auto;
}

/* FIX (cs2.uz): ro'yxat - barcha ustunlar orasidagi masofa BIR XIL va butun kenglik bo'ylab.
   Qatorlar umumiy setkada (subgrid). Kichik ustunlar yozuvga teng qat'iy kenglikda,
   barcha ustunlar qat'iy kenglikda - Yangi/Faol/Yakunlangan/Mening o'yinlarim bo'limlarida bir xil.
   Bo'sh ustunlar (1fr) teng; vaqt qulf tugmasiga yaqin. */
@media (min-width: 992px) {
    .matches__list {
        display: grid;
        grid-template-columns:
            8.8rem minmax(.6rem, 1fr)
            2.1rem minmax(.6rem, 1fr)
            1.15rem minmax(.6rem, 1fr)
            1.9rem minmax(.6rem, 1fr)
            2rem minmax(.6rem, 1fr)
            12.5rem minmax(.6rem, 1fr) /* xost: 4 avatar + nom - hamma bo'limda bir xil */
            9.5rem 1rem
            2.3rem;
        row-gap: .25rem;
        column-gap: 0;
    }

    .matches__list > .matches__list-item,
    .matches__list > .matches__list-head {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: subgrid;
        column-gap: 0;
    }

    /* subgrid'ni bilmaydigan eski brauzerlar uchun zaxira */
    @supports not (grid-template-columns: subgrid) {
        .matches__list { display: flex; flex-direction: column; }
        .matches__list-item,
        .matches__list-head {
            grid-template-columns:
                8.8rem minmax(.6rem, 1fr) 2.1rem minmax(.6rem, 1fr) 1.15rem minmax(.6rem, 1fr)
                1.9rem minmax(.6rem, 1fr) 2rem minmax(.6rem, 1fr) 12.5rem minmax(.6rem, 1fr) 9.5rem 1rem 2.3rem !important;
        }
    }

    .matches__list-item .matches__list-mapcell { grid-column: 1; }
    .matches__list-item .matches__list-bo { grid-column: 3; justify-self: start; }
    .matches__list-item .matches__list-format { grid-column: 5; }
    .matches__list-item .matches__list-slots { grid-column: 7; }
    .matches__list-item .matches__list-ping { grid-column: 9; }
    .matches__list-item .matches__list-host { grid-column: 11; min-width: 0; overflow: hidden; }
    .matches__list-item .matches__list-time { overflow: hidden; text-overflow: ellipsis; justify-self: end; text-align: right; }
    .matches__list-item .matches__list-slots > * { flex-shrink: 0; }
    /* qisqa yozuv bo'yicha o'lchanadi; uzunrog'i (BO3 ● 2/3, 10/10 +2) oraliqqa chiqib turadi */
    .matches__list-item .matches__list-bo { width: max-content; white-space: nowrap; }
    .matches__list-item .matches__list-slots { width: max-content; white-space: nowrap; }
    .matches__list-item .matches__list-name { overflow: hidden; text-overflow: ellipsis; }
    .matches__list-item .matches__list-format,
    .matches__list-item .matches__list-ping { white-space: nowrap; width: max-content; }
    .matches__list-item .matches__list-time { grid-column: 13; }
    .matches__list-item .matches__list-go { grid-column: 15; margin-right: 4px; }
}

@media (min-width: 992px) {
    .matches__list-host-name {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* FIX (cs2.uz): tugagan xarita davomiyligi */
.matches__series-clock {
    width: .85rem;
    height: .85rem;
    flex: none;
    opacity: .85;
}


/* FIX (cs2.uz): lobbi belgilarida ikonka (Lobbi #, format, hudud bayrog'i, server ID) */
.matches__badge--ico {
    gap: .4rem;
}

.matches__badge--ico > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.matches__badge-ico {
    flex: 0 0 auto;
    width: .9rem;
    height: .9rem;
    fill: var(--span);
}

.matches__badge-flag {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    object-fit: cover;
}


/* FIX (cs2.uz): hisob ostidagi belgilar olib tashlandi - blok balandligi o'zgarmasin, hisob o'rtada turadi */
.matches__room-map-content {
    min-height: 5.6rem;
    padding-bottom: .3rem; /* hisob holat yorlig'i va blok pastki cheti o'rtasida aniq markazda */
}

@media (max-width: 991.9px) {
    /* telefonda belgilar yo'q - blok ixchamroq, hisob holat yorlig'iga yaqinroq */
    .matches__room-map-content {
        min-height: 0;
        padding-top: 1.5rem;
        padding-bottom: 2.3rem; /* blok balandligi o'zgarmaydi, hisob o'rtaga ko'tariladi */
    }
}

/* FIX (cs2.uz): xost uchun "Ko'chirish" tugmasi va menyusi */
.matches__slot-move {
    margin-left: auto;
}

.matches__slot-move + .matches__slot-kick {
    margin-left: .35rem;
}

.matches__slot-kda + .matches__slot-move {
    margin-left: .5rem;
}

.matches__slot-move:hover {
    background-color: color-mix(in srgb, var(--span) 22%, transparent);
    color: var(--span);
}

.matches__move-menu {
    position: fixed;
    z-index: 1000;
    min-width: 13rem;
    max-width: 18rem;
    padding: .4rem;
    border-radius: var(--br-8, 10px);
    background: var(--bg-secondary, #1e2232);
    border: 1px solid var(--transparent-3-w);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.matches__move-menu-title {
    padding: .35rem .6rem .45rem;
    color: var(--text-secondary);
    font-size: var(--font-size-s);
}

.matches__move-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    height: auto !important;
    min-height: 0 !important;
    gap: .55rem;
    width: 100%;
    padding: .55rem .6rem;
    border: 0;
    border-radius: var(--br-6);
    background: transparent;
    color: var(--text-default);
    font-size: var(--font-size-m);
    text-align: left;
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__move-menu-item svg {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    fill: var(--text-secondary);
    transition: var(--transition-duration);
}

.matches__move-menu-item:not(:disabled):hover svg {
    fill: var(--text-default);
}

/* jamoalar - o'z belgisi va rangi bilan (A - CT ko'k, B - T sariq), xuddi jamoa sarlavhasidagidek */
.matches__move-menu-side {
    width: 1.1rem !important;
    height: 1.1rem !important;
}

.matches__move-menu-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.matches__move-menu-item small {
    margin-left: auto;
    color: var(--text-secondary);
}

.matches__move-menu-item:not(:disabled):hover {
    background: var(--transparent-3-w);
}

.matches__move-menu-item:disabled {
    opacity: .45;
    cursor: default;
}

/* FIX (cs2.uz): "O'yinni yakunlash" - ko'zga tashlanmaydigan kichik tugma (adashib bosilmasin) */
.matches__room-endmatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    align-self: center;
    width: auto;
    height: auto;
    min-height: 0;
    margin: .1rem auto 0;
    padding: .3rem .7rem;
    border: 0;
    border-radius: var(--br-6);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--font-size-s);
    font-weight: 500;
    line-height: 1.2;
    opacity: .75;
    cursor: pointer;
    transition: var(--transition-duration);
}

.matches__room-endmatch svg {
    width: .7rem;
    height: .7rem;
    fill: currentColor;
}

.matches__room-endmatch:hover {
    opacity: 1;
    color: var(--red, #ef4444);
}

.matches__room-endmatch.is-confirm {
    opacity: 1;
    color: var(--red, #ef4444);
    background: color-mix(in srgb, var(--red, #ef4444) 12%, transparent);
}

.matches__room-endmatch:disabled {
    opacity: .4;
    cursor: default;
}

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

/* FIX (cs2.uz): ulanish bosqichida serverga hali kirmagan o'yinchi - sariq aylanuvchi halqa */
.matches__slot-ready.is-pending {
    background-color: transparent;
    pointer-events: auto;
}

.matches__slot-ready.is-pending i {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--orange, #f59e0b) 22%, transparent);
    border-top-color: var(--orange, #f59e0b);
    border-right-color: var(--orange, #f59e0b);
    animation: matchesPendingSpin 1s linear infinite;
}

@keyframes matchesPendingSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .matches__slot-ready.is-pending i {
        animation-duration: 3s;
    }
}

/* FIX (cs2.uz): "tayyor / serverga kirgan" belgisi - yumaloq yashil doira (A varianti),
   sariq aylanuvchi halqa bilan bir o'lchamda; paydo bo'lganda yengil "yonish". */
.matches__slot-ready.is-ready {
    width: 1.4rem;
    height: 1.4rem;
    margin-right: .175rem;
    border-radius: 50%;
    background-color: var(--green, #22c55e);
    color: #0b1a10;
    box-shadow: 0 0 0 3px rgb(34 197 94 / 18%), 0 0 12px rgb(34 197 94 / 35%);
    animation: matchesReadyPop .35s cubic-bezier(.22, 1, .36, 1);
}

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

@keyframes matchesReadyPop {
    from {
        transform: scale(.4);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .matches__slot-ready.is-ready {
        animation: none;
    }
}

/* FIX (cs2.uz): Best of xaritalari (mehmon ko'rinishi) - raqam, logotip va nom ustunlarda tekis turadi.
   Blok o'ng tomonda qoladi, ichidagi qatorlar esa chapdan bir chiziqda. */
.matches__guest-maps.is-series {
    display: grid;
    grid-template-columns: auto auto max-content auto;
    justify-content: end;
    align-items: center;
    column-gap: .4rem;
    row-gap: .35rem;
}

.matches__guest-maps.is-series .matches__guest-map {
    display: contents;
}

.matches__guest-maps.is-series .matches__guest-map-num {
    grid-column: 1;
}

.matches__guest-maps.is-series .matches__map-thumb {
    grid-column: 2;
}

.matches__guest-maps.is-series .matches__guest-map-name {
    grid-column: 3;
    text-align: left;
}

.matches__guest-maps.is-series .matches__guest-map-score {
    grid-column: 4;
}

.matches__guest-maps.is-series .matches__guest-map.is-skipped > * {
    opacity: .55;
}

/* FIX (cs2.uz): server navbati - ixcham blok (tor o'rta ustunga moslangan) */
.matches__room-queue {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: .6rem;
    row-gap: .35rem;
    width: 100%;
    padding: .7rem .8rem;
    border-radius: var(--br-8, 10px);
    background: color-mix(in srgb, var(--span) 12%, var(--transparent-3-w, rgba(255,255,255,.03)));
    border: 1px solid color-mix(in srgb, var(--span) 30%, transparent);
}

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

.matches__room-queue-spin {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--span) 25%, transparent);
    border-top-color: var(--span-ink, var(--span));
    border-right-color: var(--span-ink, var(--span));
    animation: matchesPendingSpin 1s linear infinite;
}

.matches__room-queue-body {
    display: contents;
}

.matches__room-queue-body b {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    min-width: 0;
    color: var(--text-default);
    font-size: var(--font-size-m);
    font-weight: 700;
    white-space: nowrap;
}

.matches__room-queue-body b span {
    color: var(--span-ink, var(--span));
    font-variant-numeric: tabular-nums;
}

.matches__room-queue-body small {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    font-size: var(--font-size-s);
    line-height: 1.35;
    text-align: left;
}

.matches__room-queue-cancel {
    grid-column: 1 / -1;
    justify-self: center;
    height: auto;
    padding: .25rem .7rem;
    border: 0;
    border-radius: var(--br-6);
    background: color-mix(in srgb, var(--red, #ef4444) 12%, transparent);
    color: var(--red, #ef4444);
    font-size: var(--font-size-s);
    font-weight: 600;
    cursor: pointer;
}

.matches__room-queue-cancel:hover {
    color: #fff;
    background: color-mix(in srgb, var(--red, #ef4444) 75%, transparent);
}

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

/* FIX (cs2.uz): server berilmaguncha "Server" qatori yashirin */
.matches__room-status-row[hidden],
.matches__room-status-list hr[hidden] {
    display: none !important;
}
