.game-hero {
    background: #060318;
    color: white;
    padding: 100px 0;
}

.game-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.game-hero p {
    max-width: 600px;
    opacity: 0.8;
}

.game-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-card {
    position: relative;
    height: 360px;
    perspective: 1200px;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.game-card:hover .game-card-inner {
    transform: rotateY(180deg);
}

.game-front,
.game-back {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
}

.game-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-front .info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.85)
    );
}

.game-front h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.game-front span {
    font-size: 12px;
    opacity: 0.85;
}

.game-back {
    background: #0f172a;
    color: #fff;
    transform: rotateY(180deg);
    padding: 24px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    text-align: center;
}

.game-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 10px 18px;
    border-radius: 999px;

    border: 1px solid #6366f1;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    background: transparent;
    transition: all 0.25s ease;
}

.game-action-btn svg {
    transition: transform 0.25s ease;
}

.game-action-btn:hover {
    background: linear-gradient(90deg, #4420A5 0%, #2C70BA 100%);
    border-color: transparent;
    color: #ffffff;
}

.game-action-btn:hover svg {
    transform: translate(4px, -4px);
}

.game-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    opacity: 0.75;
}

.game-empty h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.game-empty p {
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-hero h1 {
        font-size: 36px;
    }
}

#latest_game_content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    align-items: stretch;
}

.latest-game-card {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 28px;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: 0 40px 90px rgba(0,0,0,.65);
}

.latest-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.45) 38%,
        rgba(0,0,0,.15) 65%,
        rgba(0,0,0,0) 100%
    );
    z-index: 1;
}

.latest-game-blur {
    position: relative;
    z-index: 2;

    width: 48%;
    height: 100%;

    padding: 48px 42px 56px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background: rgba(18, 56, 102, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: #ffffff;
}

.latest-game-blur .platform {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #ffffff;
    opacity: 0.95;

    line-height: 1.6;
    margin-bottom: 12px;

    text-shadow: 0 2px 8px rgba(141, 103, 242, 0.4);
}

.latest-game-blur .title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.15;
    margin: 6px 0 8px;
}

.latest-game-blur .desc {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;

    max-height: 140px;
    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.latest-game-btn {
    margin-top: auto;
    width: fit-content;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 28px;
    border-radius: 999px;

    font-size: 0.875rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;

    background: linear-gradient(
        90deg,
        #8D67F2 0%,
        #117EF5 100%
    );

    transition: all .3s ease;
}

.latest-game-btn--center {
    margin-left: auto;
    margin-right: auto;
}

.latest-game-btn svg {
    transition: transform .3s ease;
}

.latest-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(141,103,242,.55);
    color: #ffffff;
}

.latest-game-btn:hover svg {
    transform: translate(4px, -4px);
}

@media (max-width: 1024px) and (min-width: 769px) {
    #latest_game_content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .latest-game-card {
        height: 380px;
    }

    .latest-game-blur {
        width: 50%;
        padding: 36px 28px 44px;
    }

    .latest-game-blur .platform {
        font-size: 12px;
        letter-spacing: 1.3px;
        margin-bottom: 10px;
    }

    .latest-game-blur .title {
        font-size: 1.75rem;
    }

    .latest-game-blur .desc {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
        max-height: 100px;
    }

    .latest-game-btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    #latest_game_content {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .latest-game-card {
        height: 380px;
    }

    .latest-game-blur {
        width: 50%;
        padding: 32px 24px 40px;
    }

    .latest-game-blur .platform {
        font-size: 11px;
        letter-spacing: 1.2px;
        margin-bottom: 8px;
    }

    .latest-game-blur .title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .latest-game-blur .desc {
        font-size: 0.95rem;
        line-height: 1.6;
        -webkit-line-clamp: 3;
        max-height: 90px;
    }

    .latest-game-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .latest-game-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 576px) {
    #latest_game_content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .latest-game-card {
        height: 360px;
    }

    .latest-game-blur {
        width: 50%;
        padding: 28px 18px 36px;
    }

    .latest-game-blur .platform {
        font-size: 11px;
        letter-spacing: 1.2px;
        margin-bottom: 8px;
    }

    .latest-game-blur .title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .latest-game-blur .desc {
        font-size: 0.9rem;
        line-height: 1.55;
        -webkit-line-clamp: 2;
        max-height: 60px;
    }

    .latest-game-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 6px;
    }

    .latest-game-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 380px) {
    .latest-game-card {
        height: 340px;
    }

    .latest-game-blur {
        width: 50%;
        padding: 24px 14px 32px;
    }

    .latest-game-blur .platform {
        font-size: 10px;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .latest-game-blur .title {
        font-size: 1.35rem;
        line-height: 1.2;
    }

    .latest-game-blur .desc {
        font-size: 0.85rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        max-height: 52px;
    }

    .latest-game-btn {
        padding: 9px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .latest-game-btn svg {
        width: 13px;
        height: 13px;
    }
}

@media (min-width: 700px) and (max-width: 820px) {

    main.flex-fill {
        background: #060318;
    }

}

@media (max-width: 992px) {
    .game-hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .game-hero h1 {
        font-size: 28px;
    }
}
