/* Homepage v2 — scoped styles, only loaded on the Windows index page */
.hp {
    padding: 28px 0 46px;
    color: #1b2733;
    background: #fff
}

.hp * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

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

.hp-container {
    width: 1300px;
    margin: 0 auto
}

/* platform tabs */
.hp-platforms {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e3eaf2
}

.hp-platform {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: #f0f5fa;
    color: #41556a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1
}

.hp-platform:hover {
    background: #e2eefa;
    color: #2b6095
}

.hp-platform.is-active {
    background: #2b6095;
    color: #fff
}

/* hero */
.hp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 24px;
    margin-bottom: 20px
}

.hp-hero-single {
    grid-template-columns: 1fr
}

.hp-featured {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #2b6095 0%, #1b4670 60%, #163a5c 100%)
}

.hp-featured-media {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #0f2c47
}

.hp-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform .4s ease;
    transition: transform .4s ease
}

.hp-featured-media:hover img {
    -webkit-transform: scale(1.03);
    transform: scale(1.03)
}

.hp-featured-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 14px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 20px 26px 24px
}

.hp-featured-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start
}

.hp-featured-logo {
    -ms-flex-negative: 0;
    flex: none;
    width: 84px;
    height: 84px;
    padding: 4px;
    border-radius: 20px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28)
}

.hp-featured-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2
}

.hp-featured-title a {
    color: #fff
}

.hp-featured-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #dbe9f6;
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

.hp-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto
}

.hp-btn {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 46px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    background: rgba(255, 255, 255, .14)
}

.hp-btn:hover {
    background: rgba(255, 255, 255, .24)
}

.hp-btn-primary {
    border-color: #1ca7e9;
    background: #1ca7e9;
    color: #fff
}

.hp-btn-primary:hover {
    border-color: #0f93d1;
    background: #0f93d1
}

/* meta + tags */
.hp-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    font-size: 13px
}

.hp-rating {
    color: #f5a623;
    font-weight: 700;
    white-space: nowrap
}

.hp-rating em {
    font-style: normal
}

.hp-tag {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #eef4fa;
    color: #4a6076;
    font-size: 12px;
    font-weight: 600
}

.hp-tag-free {
    background: #e6f7ec;
    color: #12873a
}

.hp-featured .hp-tag {
    background: rgba(255, 255, 255, .16);
    color: #dbe9f6
}

.hp-featured .hp-tag-free {
    background: #1ab148;
    color: #fff
}

/* top rated sidebar */
.hp-side {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 18px 18px 14px;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(30, 60, 90, .05)
}

.hp-side-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    margin-bottom: 10px
}

.hp-side-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 600
}

.hp-side-head a {
    color: #1ca7e9;
    font-size: 13px;
    font-weight: 600
}

.hp-rank {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none
}

.hp-rank-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid #eef2f7
}

.hp-rank-item:first-child {
    border-top: 0
}

.hp-rank-n {
    -ms-flex-negative: 0;
    flex: none;
    width: 18px;
    color: #9fb0c1;
    font-size: 14px;
    font-weight: 700;
    text-align: center
}

.hp-rank-item:nth-child(1) .hp-rank-n {
    color: #e8a33d
}

.hp-rank-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0
}

.hp-rank-logo {
    -ms-flex-negative: 0;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f4f8
}

.hp-rank-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0
}

.hp-rank-text strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis
}

.hp-rank-text small {
    overflow: hidden;
    color: #7a8b9c;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis
}

.hp-rank-dl {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-negative: 0;
    flex: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f6fc;
    color: #1ca7e9;
    font-size: 16px;
    font-weight: 700
}

.hp-rank-dl:hover {
    background: #1ca7e9;
    color: #fff
}

/* stats strip */
.hp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 34px;
    padding: 16px;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    background: #f4f8fc
}

.hp-stat {
    text-align: center
}

.hp-stat strong {
    display: block;
    color: #2b6095;
    font-size: 24px;
    line-height: 1.2
}

.hp-stat span {
    color: #6b7f92;
    font-size: 13px
}

/* sections */
.hp-section {
    margin-bottom: 38px
}

.hp-section-tint {
    padding: 22px 22px 26px;
    border: 1px solid #e8eff7;
    border-radius: 16px;
    background: #f4f8fc
}

.hp-section-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px
}

.hp-section-head h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 600
}

.hp-more {
    color: #1ca7e9;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap
}

.hp-more:hover {
    text-decoration: underline
}

/* category grid */
.hp-cats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px
}

.hp-cat {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 5px;
    padding: 14px 12px;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff
}

.hp-cat:hover {
    border-color: #b7dcf5;
    background: #f7fbfe
}

.hp-cat-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain
}

.hp-cat-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25
}

.hp-cat-num {
    color: #8a99a8;
    font-size: 12px
}

.hp-cat-icon.mcat_1{background-image:url(../img/13.svg)}
.hp-cat-icon.mcat_8{background-image:url(../img/14.svg)}
.hp-cat-icon.mcat_16{background-image:url(../img/15.svg)}
.hp-cat-icon.mcat_21{background-image:url(../img/16.svg)}
.hp-cat-icon.mcat_28{background-image:url(../img/17.svg)}
.hp-cat-icon.mcat_36{background-image:url(../img/18.svg)}
.hp-cat-icon.mcat_43{background-image:url(../img/19.svg)}
.hp-cat-icon.mcat_60{background-image:url(../img/20.svg)}
.hp-cat-icon.mcat_66{background-image:url(../img/21.svg)}
.hp-cat-icon.mcat_77{background-image:url(../img/22.svg)}
.hp-cat-icon.mcat_84{background-image:url(../img/23.svg)}
.hp-cat-icon.mcat_88{background-image:url(../img/24.svg)}
.hp-cat-icon.mcat_106{background-image:url(../img/25.svg)}
.hp-cat-icon.mcat_113{background-image:url(../img/26.svg)}

/* cards */
.hp-grid {
    display: grid;
    gap: 18px
}

.hp-grid-2 {
    grid-template-columns: repeat(2, 1fr)
}

.hp-grid-3 {
    grid-template-columns: repeat(3, 1fr)
}

.hp-grid-4 {
    grid-template-columns: repeat(4, 1fr)
}

.hp-card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    background: #fff
}

.hp-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef3f8
}

.hp-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform .3s ease;
    transition: transform .3s ease
}

.hp-card:hover .hp-card-media img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04)
}

.hp-card-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 14px 16px 16px
}

.hp-card-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start
}

.hp-card-logo {
    -ms-flex-negative: 0;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9
}

.hp-card-info {
    min-width: 0
}

.hp-card-info h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical
}

.hp-card-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7f92;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
}

/* list rows */
.hp-rows {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 6px
}

.hp-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fafcfe
}

.hp-row:hover {
    border-color: #d7e8f6;
    background: #f4faff
}

.hp-row-logo {
    -ms-flex-negative: 0;
    flex: none;
    width: 56px;
    height: 56px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    object-fit: cover;
    background: #fff
}

.hp-row-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    gap: 3px;
    min-width: 0
}

.hp-row-text strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis
}

.hp-row-text small {
    overflow: hidden;
    color: #6b7f92;
    font-size: 12.5px;
    white-space: nowrap;
    text-overflow: ellipsis
}

.hp-row-rating {
    color: #f5a623;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap
}

.hp-row-sm {
    padding: 8px 10px;
    background: transparent
}

.hp-row-sm .hp-row-logo {
    width: 44px;
    height: 44px;
    border-radius: 11px
}

/* game cards */
.hp-game {
    overflow: hidden;
    border: 1px solid #e3eaf2;
    border-radius: 14px;
    background: #fff
}

.hp-game-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef3f8
}

.hp-game-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transition: -webkit-transform .3s ease;
    transition: transform .3s ease
}

.hp-game:hover .hp-game-media img {
    -webkit-transform: scale(1.04);
    transform: scale(1.04)
}

.hp-game-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    padding: 12px 14px
}

.hp-game-logo {
    -ms-flex-negative: 0;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f5f9
}

.hp-game-body h3 {
    display: -webkit-box;
    margin: 0 0 3px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical
}

.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.hp-split .hp-section {
    min-width: 0
}

/* web games */
.hp-webgames {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.hp-webgame {
    overflow: hidden;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: #fff
}

.hp-webgame img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef3f8
}

.hp-webgame-body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px
}

.hp-webgame-body strong {
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis
}

.hp-webgame-body small {
    color: #f5a623;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

/* bottom call to action */
.hp-cta {
    padding: 36px 20px;
    margin-top: 6px;
    border: 1px solid #dcecf9;
    border-radius: 16px;
    background: linear-gradient(135deg, #eaf5fd, #f6fbff);
    text-align: center
}

.hp-cta h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600
}

.hp-cta p {
    margin: 0 0 18px;
    color: #5d7287;
    font-size: 14px
}

/* responsive */
@media (max-width: 1340px) {
    .hp-container {
        width: auto;
        max-width: 1300px;
        padding: 0 20px
    }
}

@media (max-width: 1100px) {
    .hp-hero {
        grid-template-columns: 1fr
    }

    .hp-featured {
        min-height: 0
    }

    .hp-cats {
        grid-template-columns: repeat(4, 1fr)
    }

    .hp-grid-3,
    .hp-grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .hp-webgames {
        grid-template-columns: repeat(3, 1fr)
    }

    .hp-split {
        grid-template-columns: 1fr;
        gap: 0
    }
}

@media (max-width: 767px) {
    .hp {
        padding: 16px 0 32px
    }

    .hp-container {
        padding: 0 12px
    }

    .hp-platforms {
        gap: 6px
    }

    .hp-platform {
        padding: 8px 14px;
        font-size: 14px
    }

    .hp-featured-media {
        height: 180px
    }

    .hp-featured-body {
        padding: 16px
    }

    .hp-featured-title {
        font-size: 22px
    }

    .hp-featured-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px
    }

    .hp-featured-desc {
        -webkit-line-clamp: 3
    }

    .hp-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px
    }

    .hp-cats {
        grid-template-columns: repeat(2, 1fr)
    }

    .hp-grid-2,
    .hp-grid-3,
    .hp-grid-4 {
        grid-template-columns: 1fr
    }

    .hp-webgames {
        grid-template-columns: repeat(2, 1fr)
    }

    .hp-section-head h2 {
        font-size: 20px
    }
}
