.apg-archive-page {
    padding: clamp(24px, 4vw, 48px) 0;
}

.apg-archive-wrap {
    width: min(1360px, calc(100% - 32px));
    margin: 0 auto;
}

.apg-archive-header {
    margin: 0 0 28px;
}

.apg-archive-header h1 {
    margin: 0 0 10px;
    color: #19202d;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 850;
}

.apg-archive-header p {
    margin: 0;
    color: #5d6677;
    font-size: 18px;
    line-height: 1.6;
}

.apg-games {
    --apg-gap: 18px;
    display: grid;
    gap: var(--apg-gap);
    margin: 28px 0 34px;
}

.apg-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.apg-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apg-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apg-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.apg-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.apg-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.apg-card {
    margin: 0;
    min-width: 0;
}

.apg-card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none !important;
    color: #19202d;
}

.apg-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #eef7f5, #f8f0e6);
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(40,48,61,.10);
    box-shadow: 0 14px 30px rgba(23,33,47,.08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.apg-card-link:hover .apg-card-media,
.apg-card-link:focus-visible .apg-card-media {
    transform: translateY(-3px);
    border-color: rgba(57,126,121,.34);
    box-shadow: 0 18px 40px rgba(23,33,47,.12);
}

.apg-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.apg-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 32px;
    font-weight: 800;
    color: rgba(25,32,45,.36);
}

.apg-card-title {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: #19202d;
    text-align: center;
}

.apg-empty {
    padding: 18px 0;
    color: #5d6677;
    font-size: 16px;
}

@media (max-width: 1280px) {
    .apg-cols-5,
    .apg-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .apg-cols-4,
    .apg-cols-5,
    .apg-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .apg-cols-3,
    .apg-cols-4,
    .apg-cols-5,
    .apg-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .apg-card-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .apg-cols-2,
    .apg-cols-3,
    .apg-cols-4,
    .apg-cols-5,
    .apg-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.apg-single-download {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    margin: 44px 0;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(40, 48, 61, .12);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #f7fbfa 50%, #fbf5ec);
    box-shadow: 0 22px 62px rgba(23, 33, 47, .09);
}

.apg-single-media {
    overflow: hidden;
    border-radius: 22px;
    background: #eef7f5;
    box-shadow: 0 14px 34px rgba(23, 33, 47, .10);
}

.apg-single-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.apg-single-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.apg-single-content h2 {
    margin: 0;
    color: #19202d;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 850;
    line-height: 1.08;
}

.apg-single-content p {
    margin: 0;
    color: #566071;
    font-size: 17px;
    line-height: 1.7;
}

.apg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apg-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef7f5;
    color: #2f6965;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.apg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.apg-meta span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 12px;
    padding: 7px 10px;
    background: #f6f7f8;
    color: #566071;
    font-size: 13px;
    font-weight: 750;
    line-height: 1;
}

.apg-single-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-top: 6px;
    border-radius: 999px;
    padding: 15px 24px;
    background: #2f6965;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(47, 105, 101, .24);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.apg-single-button:hover,
.apg-single-button:focus-visible {
    transform: translateY(-2px);
    background: #275955;
    box-shadow: 0 18px 34px rgba(47, 105, 101, .30);
    outline: none;
}

@media (max-width: 760px) {
    .apg-single-download {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 24px;
    }

    .apg-single-button {
        width: 100%;
    }
}
