.los-games {
    padding: 80px 0;
    background: var(--los-purple-900);
}

.los-games__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.los-game {
    background: var(--los-purple-card);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.los-game:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.los-game--hidden {
    display: none;
}

.los-game.is-visible {
    display: flex;
}

.los-game__cover {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #1a1245;
}

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

.los-game__body {
    padding: 16px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.los-game__name {
    font-family: var(--los-font-display);
    font-size: 18px;
    text-align: center;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.los-game__play {
    width: 100%;
    margin-top: 8px;
    padding: 12px 24px;
    font-size: 14px;
}

.los-games__view-all-wrap {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.los-games__view-all {
    padding: 12px 28px;
    font-size: 14px;
}

.los-game-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.los-game-modal.is-open {
    display: flex;
}

.los-game-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(6px);
}

.los-game-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: var(--los-purple-800);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}

.los-game-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s ease;
}

.los-game-modal__close:hover {
    background: rgba(0,0,0,0.65);
}

.los-game-modal__close svg {
    width: 20px;
    height: 20px;
}

.los-game-modal__title-bar {
    padding: 14px 56px 14px 20px;
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-family: var(--los-font-display);
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.los-game-modal__frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000;
}

.los-game-modal__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1100px) {
    .los-games__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .los-games__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .los-games__grid {
        grid-template-columns: 1fr;
    }
    .los-game-modal__frame-wrap {
        aspect-ratio: 9 / 16;
    }
}
