:root {
    color-scheme: dark;
    --all-bg: #202431;
    --all-panel: #272d3d;
    --all-panel-2: #222735;
    --all-line: #3a4255;
    --all-muted: #99a2b9;
    --all-green: #09c978;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body.all-games-page {
    overflow-x: hidden;
    color: #fff;
    background: #40485b;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.all-games-shell {
    position: relative;
    width: min(100%, 470px);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--all-bg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.all-games-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    height: 55px;
    align-items: center;
    border-bottom: 1px solid #343b4c;
    background: #202431;
}

.all-games-back {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #c9d0df;
    text-decoration: none;
}

.all-games-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.all-games-title-button {
    display: inline-flex;
    justify-self: center;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.all-games-title-button i {
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 7px solid #7f879b;
    transition: transform .2s ease;
}

.all-games-title-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.all-games-main {
    min-height: calc(100vh - 55px);
    padding: 12px 10px 24px;
}

.all-games-search {
    position: relative;
    display: block;
    width: 100%;
    height: 32px;
}

.all-games-search input {
    width: 100%;
    height: 100%;
    border: 1px solid #667086;
    border-radius: 999px;
    outline: 0;
    padding: 0 42px 0 13px;
    color: #e9edf5;
    background: #202431;
    font-size: 14px;
}

.all-games-search input::placeholder {
    color: #8e98af;
}

.all-games-search svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #09d383;
    stroke-width: 2.4;
    stroke-linecap: round;
    transform: translateY(-50%);
}

.all-games-layout {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 11px;
    margin-top: 13px;
}

.all-games-provider-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.all-games-provider {
    display: grid;
    min-height: 66px;
    place-items: center;
    align-content: center;
    gap: 5px;
    overflow: hidden;
    border: 1px solid #384155;
    border-radius: 11px;
    padding: 7px 5px;
    color: #d9deea;
    background: linear-gradient(180deg, #2b3142 0%, #292f40 100%);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.all-games-provider:active {
    transform: scale(.98);
}

.all-games-provider img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.all-games-provider strong {
    display: grid;
    min-height: 23px;
    place-items: center;
    color: #f3f5fa;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
}

.all-games-provider span {
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
}

.all-games-provider.is-category {
    min-height: 66px;
}

.all-games-provider.is-active {
    border-color: var(--all-green);
    color: #fff;
    background: linear-gradient(180deg, #12d57f 0%, #08bd6d 100%);
    box-shadow: 0 8px 18px rgba(7, 190, 108, .18);
}

.all-games-results {
    min-width: 0;
}

.all-games-activity-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.all-games-activity-tabs a {
    display: inline-flex;
    height: 35px;
    align-items: center;
    justify-content: center;
    border: 1px solid #394155;
    border-radius: 8px;
    color: #d7dce7;
    background: #222735;
    text-decoration: none;
    font-size: 13px;
}

.all-games-activity-tabs a.is-active {
    border-color: var(--all-green);
    color: #fff;
    background: var(--all-green);
    box-shadow: 0 7px 16px rgba(9, 201, 120, .15);
}

.all-games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px 11px;
}

.all-games-card {
    min-width: 0;
    outline: 0;
}

.all-games-card.is-hidden {
    display: none;
}

.all-games-card-art {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 2 / 2.72;
    border-radius: 11px;
    background: #30384a;
    box-shadow: 0 7px 16px rgba(7, 10, 18, .18);
}

.all-games-card-art > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-games-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: #cdd3e0;
    background:
        radial-gradient(circle at 50% 30%, rgba(28, 211, 130, .18), transparent 34%),
        linear-gradient(145deg, #323a4d, #252b3b);
}

.all-games-placeholder strong {
    font-size: 20px;
}

.all-games-placeholder span {
    color: #98a2b8;
    font-size: 10px;
}

.all-games-card-shade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 47%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 18, .35) 42%, rgba(8, 11, 18, .88) 100%);
    pointer-events: none;
}

.all-games-card h2 {
    position: absolute;
    right: 5px;
    bottom: 8px;
    left: 5px;
    z-index: 2;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}

.all-games-favorite {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    display: inline-grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: #c9cfda;
    background: rgba(42, 48, 61, .78);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.all-games-favorite svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: rgba(255, 255, 255, .5);
    stroke-width: .7;
}

.all-games-favorite.is-active {
    color: #ffd83b;
    background: rgba(255, 255, 255, .85);
}

.all-games-favorite.is-loading {
    opacity: .55;
    pointer-events: none;
}

.all-games-empty {
    padding: 70px 12px;
    color: var(--all-muted);
    font-size: 14px;
    text-align: center;
}

.all-games-empty.is-hidden {
    display: none;
}

.all-games-category-layer {
    position: fixed;
    top: 55px;
    bottom: 0;
    left: 50%;
    z-index: 35;
    width: min(100%, 470px);
    transform: translateX(-50%);
}

.all-games-category-layer[hidden] {
    display: none;
}

.all-games-category-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(11, 15, 23, .72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.all-games-category-menu {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 11px;
    padding: 13px 12px 14px;
    border-radius: 0 0 10px 10px;
    background: #202431;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
    animation: allGamesMenuIn .18s ease-out;
}

.all-games-category-option {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 47px;
    align-items: center;
    gap: 5px;
    border: 1px solid #3a4356;
    border-radius: 8px;
    padding: 5px 7px;
    color: #d4d9e4;
    background: #282e3e;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.05;
}

.all-games-category-option img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: .72;
}

.all-games-category-option.is-active {
    border-color: var(--all-green);
    color: #fff;
    background: linear-gradient(180deg, #10d17b, #08bd6d);
}

.all-games-category-option.is-active img {
    opacity: 1;
    filter: brightness(1.55) saturate(.35);
}

@keyframes allGamesMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 390px) {
    .all-games-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .all-games-layout {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 9px;
    }

    .all-games-provider {
        min-height: 64px;
    }

    .all-games-grid {
        gap: 11px 9px;
    }

    .all-games-activity-tabs {
        gap: 8px;
    }

    .all-games-activity-tabs a {
        font-size: 12px;
    }

    .all-games-category-menu {
        gap: 10px 9px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .all-games-category-option {
        grid-template-columns: 25px minmax(0, 1fr);
        padding-right: 5px;
        padding-left: 5px;
        font-size: 11px;
    }

    .all-games-category-option img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 350px) {
    .all-games-layout {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 8px;
    }

    .all-games-provider span {
        font-size: 10px;
    }

    .all-games-grid {
        gap: 10px 7px;
    }

    .all-games-card h2 {
        font-size: 10px;
    }
}
