/* Стили игры */
/* Главное меню */
.game-menu-wrap {
    margin: 14px 0 18px;
}

.game-menu-mobilebar {
    display: none;
}

.game-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.game-menu > li {
    display: flex;
}

.game-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 0;
    border: none;
    font-family: "Exo 2", "Trebuchet MS", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f376d;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.game-menu-item .gm-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(180deg, #5e9bea 0%, #4a89db 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.game-menu-item-link {
    background: linear-gradient(180deg, #6ea9ed 0%, #7fb6f5 100%);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(11, 58, 120, 0.45);
}

.game-menu-item-link:hover {
    background: linear-gradient(180deg, #5f9fe8 0%, #6caaf0 100%);
    box-shadow: 0 8px 16px rgba(22, 74, 152, 0.22);
    transform: translateY(-1px);
    text-decoration: none;
}

.game-menu-item-active {
    color: #ffffff;
    background: linear-gradient(180deg, #023fb0 0%, #034dd4 100%);
    box-shadow: 0 12px 22px rgba(2, 65, 173, 0.34);
    text-shadow: 0 1px 0 rgba(2, 44, 112, 0.5);
}

.game-menu-item-active .gm-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.game-menu-item-active:hover {
    transform: none;
    text-decoration: none;
    color: #dfeeff;
}

.game-menu-item-locked {
    cursor: not-allowed;
    user-select: none;
    color: #6d86a6;
    background: linear-gradient(180deg, #aac9f4 0%, #bcd6fb 100%);
    border: 1px dashed #93b4e2;
}

.game-menu-item-locked .gm-icon {
    background: linear-gradient(180deg, #8eafde 0%, #9dbce6 100%);
}

.game-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 34px;
    padding: 0;
    border: none;
    background: linear-gradient(180deg, #5f9fe8 0%, #6caaf0 100%);
    box-shadow: none;
    cursor: pointer;
}

.game-menu-toggle:hover,
.game-menu-toggle:focus {
    outline: none;
    text-decoration: none;
    background: linear-gradient(180deg, #4f93e2 0%, #5d9ee9 100%);
}

.game-menu-toggle-lines {
    position: relative;
    width: 18px;
    height: 12px;
    display: inline-block;
}

.game-menu-toggle-lines::before,
.game-menu-toggle-lines::after,
.game-menu-toggle-lines span {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.game-menu-toggle-lines::before {
    top: 0;
}

.game-menu-toggle-lines span {
    top: 5px;
}

.game-menu-toggle-lines::after {
    top: 10px;
}

.game-menu-wrap.is-open .game-menu-toggle-lines::before {
    transform: translateY(5px) rotate(45deg);
}

.game-menu-wrap.is-open .game-menu-toggle-lines span {
    opacity: 0;
}

.game-menu-wrap.is-open .game-menu-toggle-lines::after {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 992px) {
    .game-menu-item {
        min-height: 36px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .game-menu-mobilebar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
        min-height: 36px;
    }

    .game-menu-mobile-left {
        min-width: 1px;
        flex: 1 1 auto;
    }

    .game-menu {
        gap: 6px;
        justify-content: stretch;
        display: none;
    }

    .game-menu-wrap.is-open .game-menu {
        display: flex;
    }

    .game-menu > li {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .game-menu-item {
        width: 100%;
        min-height: 34px;
        padding: 0 10px;
        font-size: 14px;
    }

    .game-menu-item .gm-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .game-menu > li {
        flex-basis: 100%;
    }

    .game-menu-item {
        justify-content: flex-start;
        padding: 0 12px;
    }
}

/* Стили шадоу-листа. */
.shadowlist-legend {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.shadowlist-legend-toggle {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.shadowlist-legend-toggle:hover,
.shadowlist-legend-toggle:focus {
    color: inherit;
    text-decoration: none;
}

.shadowlist-legend-toggle::after {
    content: "";
    width: .5rem;
    height: .5rem;
    margin-left: .45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    transition: transform .18s ease;
}

.shadowlist-legend-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) translateY(-1px);
}

.shadowlist-legend-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.shadowlist-legend-color {
    width: 46px;
    height: 18px;
    margin-top: .4rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

.shadowlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
}

.shadowlist-cell {
    width: 40px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shadowlist-cell img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.shadowlist-cell-ready {
    background: #99ff66;
}

.shadowlist-cell-process {
    background: #ff6666;
}

.shadowlist-cell-empty {
    background: #e1f4fe;
}

@media (max-width: 767px) {
    .shadowlist-box {
        padding: 10px;
    }

    .shadowlist-legend {
        gap: 6px;
        margin-bottom: 10px;
    }

    .shadowlist-legend-item {
        align-items: start;
    }
}

/* Стили статистики. */
.game-stats-wrap {
    font-size: 14px;
}

.game-stats-card {
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 0.35rem 1rem rgba(3, 77, 212, .08);
    overflow: hidden;
}

.game-stats-head {
    background: linear-gradient(180deg, #0b4fbf 0%, #236ad9 100%);
    color: #fff;
    padding: .85rem 1rem;
}

.game-stats-head h5 {
    margin: 0;
    font-weight: 700;
}

.game-stats-titleline {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.game-stats-head h5 a {
    color: #ffffff;
    text-decoration: none;
}

.game-stats-head h5 a:hover,
.game-stats-head h5 a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.game-stats-head h5 a.game-stats-alllink:hover,
.game-stats-head h5 a.game-stats-alllink:focus {
    text-decoration: none;
}

.game-stats-headbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    flex-wrap: wrap;
}

.game-stats-headtools {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    padding-top: .3rem;
}

.game-stats-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: .2rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    overflow: hidden;
}

.game-stats-switch-slider {
    position: absolute;
    top: .2rem;
    bottom: .2rem;
    left: .2rem;
    width: calc(50% - .2rem);
    border-radius: .6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(231, 241, 255, .94) 100%);
    box-shadow: 0 .2rem .55rem rgba(4, 25, 64, .16);
    transition: transform .22s ease;
    pointer-events: none;
}

.game-stats-switch.is-user .game-stats-switch-slider {
    transform: translateX(0);
}

.game-stats-switch.is-all .game-stats-switch-slider {
    transform: translateX(100%);
}

.game-stats-switch-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    min-width: 6.2rem;
    min-height: 1.8rem;
    padding: .15rem .8rem;
    border-radius: .6rem;
    color: rgba(255, 255, 255, .94);
    text-decoration: none;
    background: transparent;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    transition: color .22s ease, opacity .22s ease;
}

.game-stats-switch-link:hover,
.game-stats-switch-link:focus {
    color: #ffffff;
    text-decoration: none;
}

.game-stats-switch-link.is-active {
    color: #163a72;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.game-stats-alllink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: .2rem .9rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    border-radius: .55rem;
    border: .2rem solid rgba(255, 255, 255, .92);
    text-shadow: 0 1px 0 rgba(7, 40, 95, .32);
    background: transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.game-stats-alllink:hover,
.game-stats-alllink:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 .2rem .7rem rgba(4, 25, 64, .18);
    transform: translateY(-1px);
}

.game-stats-search {
    display: flex;
    align-items: stretch;
    gap: .35rem;
    margin: 0;
}

.game-stats-search .form-control,
.game-stats-search .btn {
    border-radius: 0;
    min-height: 2rem;
}

.game-stats-search .form-control {
    min-width: 12rem;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .96);
}

.game-stats-search .form-control::placeholder {
    color: #6b7f96;
}

.game-stats-search .btn {
    padding: .35rem .8rem;
    font-weight: 700;
    white-space: nowrap;
    color: #163a72;
    border: .2rem solid rgba(255, 255, 255, .92);
    border-radius: .55rem;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.game-stats-search .btn:hover,
.game-stats-search .btn:focus {
    color: #0f2f60;
    background: linear-gradient(180deg, #ffffff 0%, #e2ecff 100%);
    box-shadow: 0 .2rem .7rem rgba(4, 25, 64, .16);
    transform: translateY(-1px);
}

.game-stats-head small {
    opacity: .92;
}

@media (min-width: 576px) {
    .game-stats-headtools {
        margin-left: auto;
    }
}

@media (min-width: 768px) {
    .game-stats-alllink {
        padding: .15rem .6rem;
        border-width: .15rem;
    }

    .game-stats-switch-link {
        min-width: 5.6rem;
        padding: .1rem .6rem;
        font-size: .92rem;
    }

    .game-stats-search .btn {
        border-width: .1rem;
    }
}

.game-stats-table thead th {
    font-weight: 700;
    white-space: nowrap;
}

.game-stats-table td,
.game-stats-table th {
    vertical-align: middle;
}

.game-stats-table th.sticky-left,
.game-stats-table td.sticky-left {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 210px;
    background: #fff;
}

.game-stats-table thead th.sticky-left {
    z-index: 3;
    background: #f8f9fa;
}

.game-stats-table .metric {
    font-weight: 600;
    color: #243a56;
}

.game-stats-table .metric-sub {
    color: #4d647f;
    font-weight: 500;
}

.game-stats-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #122c4d;
    font-weight: 700;
}

.game-stats-table .num-inner {
    display: inline-block;
    overflow: hidden;
    line-height: 1.2;
    transition: opacity .16s ease, transform .16s ease, color .16s ease;
    will-change: opacity, transform;
}

.game-stats-table .num-inner.is-switching-out {
    opacity: .4;
    transform: translateY(2px);
}

.game-stats-table .num-inner.is-switching-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .game-stats-head {
        padding: .75rem .85rem;
    }

    .game-stats-headbar {
        align-items: flex-start;
    }

    .game-stats-headtools {
        width: 100%;
    }

    .game-stats-search {
        flex: 1 1 100%;
    }

    .game-stats-search .form-control {
        min-width: 0;
        width: 100%;
    }

    .game-stats-alllink {
        font-size: 1rem;
    }

    .game-stats-switch-link {
        flex: 1 1 50%;
        min-width: 0;
        font-size: .92rem;
    }

    .game-stats-titleline {
        align-items: flex-start;
    }

    .game-stats-table {
        font-size: 13px;
    }

    .game-stats-table th.sticky-left,
    .game-stats-table td.sticky-left {
        min-width: 150px;
        font-size: .7rem;
    }
}

.game-stats-search .btn {
    max-height: 0rem;
    padding: .2rem .8rem;
}
