/* ==================== DOWNLOAD PAGE ==================== */

.detected {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 6px 16px;
    font-size: 20px;
    animation: pop-in 0.6s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.detected[hidden] {
    display: none;
}

.detected strong {
    font-weight: normal;
    color: var(--label-green);
}

/* ==================== STORE LISTINGS ==================== */
.listings {
    display: grid;
    gap: 16px;
}

.listing {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 26px;
    padding: 18px 24px 18px 18px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s;
}

.listing:hover {
    transform: translateX(6px);
}

.listing.is-selected {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 4px var(--selection), 0 0 28px rgba(255, 230, 0, 0.25);
}

.listing-badge {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
}

.listing-badge img {
    filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.5));
    animation: bob 3.2s ease-in-out infinite;
}

.listing:nth-child(2n) .listing-badge img {
    animation-delay: -1.6s;
}

.listing-name {
    font-size: 30px;
}

.listing-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.listing-reqs {
    display: grid;
    gap: 4px;
    font-size: 15px;
}

.listing-reqs li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

.listing-reqs li span:first-child {
    font: 20px/1.3 var(--font-pixel);
    color: var(--gold-mid);
    text-shadow: 0.1em 0.1em 0 #000;
}

.listing-reqs li span:last-child {
    color: var(--text-dim);
    padding-top: 1px;
}

.listing .offer-label:not(:empty) {
    display: block;
    margin-top: 12px;
}

/* Tall enough for the tallest store icon (Apple, 38px) so every button matches. */
.listing-btn {
    min-width: 260px;
    min-height: 60px;
}

/* ==================== CROSS-PLAY ==================== */
.crossplay {
    padding: 30px 28px 26px;
    text-align: center;
}

.crossplay-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.crossplay-icons img {
    filter: drop-shadow(2px 2px 0 #000);
    animation: bob 2.6s ease-in-out infinite;
}

.crossplay-icons img:nth-child(2n) {
    animation-delay: -1.3s;
}

.crossplay-title {
    margin: 22px 0 10px;
    font-size: clamp(30px, 3.6vw, 40px);
}

.crossplay p {
    max-width: 640px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 16px;
    color: #dbe6ff;
    text-shadow: 0 1px 2px #000;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .listing {
        grid-template-columns: 110px 1fr;
        gap: 18px;
    }

    .listing-badge {
        width: 110px;
        height: 110px;
    }

    .listing-badge img {
        scale: 0.75;
    }

    .listing-btn {
        grid-column: 1 / -1;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .listing {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .listing-badge {
        width: 100%;
        height: 120px;
    }

    .listing-reqs li {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
