.game-grid,
.editorial-grid {
    grid-template-columns: repeat(var(--wg-media-columns, 3), minmax(0, 1fr));
}

.game-grid { --wg-media-columns: 4; }

.game-card,
.editorial-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.game-card .card-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 5;
    overflow: hidden;
}

.game-card .card-image .wg-game-art {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.game-card .card-image .wg-game-art--contain {
    object-fit: contain;
    object-position: center;
    background: #17222b;
}
#juegos-destacados .card-image .wg-game-art-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
    filter: blur(15px) brightness(.42) saturate(1.12);
}
#juegos-destacados .card-image .wg-game-art-backdrop + .wg-game-art--contain {
    background: transparent;
}
.game-card .card-image .placeholder-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.game-card .card-image .badge { z-index: 1; }

.wg-game-art-frame {
    max-width: 640px;
    aspect-ratio: 8 / 5;
    display: grid;
    overflow: hidden;
    border-radius: 16px;
    background: #17222b;
}
.wg-game-art-frame .wg-game-art {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.wg-operator-logo {
    width: 144px;
    max-width: 100%;
    height: 62px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    margin: 0 0 12px;
    border: 1px solid var(--line, #2b3a44);
    border-radius: 10px;
    background-color: #111b24;
    overflow: hidden;
}
.wg-operator-logo--light { background-color: #e6edf2; }
.wg-operator-logo .wg-operator-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}
.wg-operator-logo--hero {
    width: 176px;
    height: 76px;
    margin-bottom: 16px;
}

@media (max-width: 960px) {
    .game-grid { --wg-media-columns: 3; }
    .editorial-grid { --wg-media-columns: 2; }
}
@media (max-width: 680px) {
    .game-grid { --wg-media-columns: 2; gap: 10px; }
    .editorial-grid { --wg-media-columns: 1; gap: 12px; }
    .game-card .card-body { padding: 10px; }
    .game-card .card-body h3 { font-size: clamp(.98rem, 4vw, 1.15rem); line-height: 1.25; }
    .game-card .card-image .badge { top: 6px; left: 6px; padding: 3px 6px; }
    .wg-operator-logo { width: 112px; height: 54px; }
    .wg-operator-logo--hero { width: 132px; height: 62px; }
}

.demo-visual .wg-game-art { object-fit: contain; object-position: center; }
