:root {
    --hall-ink: #252a31;
    --hall-muted: #6d747d;
    --hall-red: #d94335;
    --hall-green: #2eaa7b;
    --hall-paper: #f7f5f0;
    --hall-line: #e4e0d8;
}

.home-backdrop,
.hall-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, .82), rgba(247, 245, 240, .94)),
        url(/resources/images/home_bg.jpg) center bottom / cover no-repeat;
}

.home-games {
    width: 1000px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 28px 0 48px;
}

.home-games__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    padding: 24px 30px;
    overflow: hidden;
    border-bottom: 4px solid var(--hall-red);
    background-color: var(--hall-ink);
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #fff;
}

.home-games__header::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, var(--hall-ink) 0%, rgba(37, 42, 49, .94) 42%, rgba(37, 42, 49, .58) 100%),
        url(/resources/images/lot_img/CQSSC.png) 83% 54% / 170px 170px no-repeat,
        url(/resources/images/lot_img/azxy10pk10.png) 98% 44% / 185px 185px no-repeat;
    opacity: .46;
}

.home-games__header > * {
    position: relative;
    z-index: 1;
}

.home-games__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ef8c78;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-games__title {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.home-games__art {
    display: flex;
    align-items: center;
    height: 74px;
    padding-right: 8px;
}

.home-games__art img {
    width: 70px;
    height: 70px;
    margin-left: -10px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.home-games__art img:nth-child(2) {
    transform: translateY(-5px);
}

.home-games__body {
    padding: 24px;
    border: 1px solid var(--hall-line);
    border-top: 0;
    background: rgba(255, 255, 255, .9);
}

.home-games .content_list {
    display: none;
}

.home-games .content_list:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 162px;
    gap: 14px;
    padding: 0;
}

.home-games .content_list:first-child::before,
.home-games .content_list:first-child::after {
    display: none !important;
    content: none !important;
}

.home-games .content_list:first-child .k3_project {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    grid-template-areas:
        "visual name status"
        "visual period period"
        "visual action action";
    height: 100%;
    min-height: 0;
    padding: 18px !important;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--hall-line) !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(38, 42, 49, .08);
    text-align: left;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-games .content_list:first-child .k3_project:hover {
    transform: translateY(-3px);
    border-color: #d1c9bd !important;
    box-shadow: 0 12px 26px rgba(38, 42, 49, .14);
}

.game-card__visual {
    grid-area: visual;
    align-self: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef1f2;
}

.game-card__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-games .lottery-name {
    grid-area: name;
    align-self: end;
    padding-right: 8px;
    color: var(--hall-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left !important;
}

.home-games .lottery-period {
    grid-area: period;
    align-self: start;
    margin-top: 3px !important;
    color: var(--hall-muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: left !important;
}

.home-games .k3_project .help,
.home-games .k3_project .btn_beetting {
    grid-area: action;
    justify-self: start;
    align-self: end;
    min-width: 96px;
    margin-top: 10px;
    padding: 7px 14px !important;
    border-radius: 4px;
    background: var(--hall-red);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: background .18s ease;
}

.home-games .k3_project .help:hover,
.home-games .k3_project .btn_beetting:hover {
    background: #b93228;
}

.home-games .hot_h,
.home-games .hot_n {
    position: static;
    grid-area: status;
    align-self: start;
    justify-self: end;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6665f;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.home-games .hot_n {
    background: var(--hall-green);
}

@media (max-width: 900px) {
    .home-games .content_list:first-child {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .home-games {
        max-width: calc(100% - 20px);
        padding-top: 14px;
    }

    .home-games__header {
        min-height: 90px;
        padding: 18px 20px;
    }

    .home-games__title {
        font-size: 27px;
    }

    .home-games__art img {
        width: 52px;
        height: 52px;
    }

    .home-games__art img:first-child {
        display: none;
    }

    .home-games__body {
        padding: 14px;
    }

    .home-games .content_list:first-child {
        grid-template-columns: 1fr;
    }
}
