/* Free apps ----------------------------------------------------------- */

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 164px), 1fr));
    gap: 12px;
    margin-top: 24px;
}

.myButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.myButton img {
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    margin: 0 0 14px;
    border-radius: 18px;
    background: var(--surface-soft);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    object-fit: cover;
}

.app-name {
    display: -webkit-box;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
    font-weight: 550;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.app-platform {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.myButton:hover,
.myButton:focus-visible {
    border-color: var(--border-strong);
    background: var(--surface-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.myButton:active {
    border-color: var(--border-strong);
    background: var(--surface-active);
    transform: translateY(0) scale(.99);
}

@media (hover: none) {
    .myButton:hover {
        box-shadow: var(--shadow-sm);
        transform: none;
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .myButton {
        padding: 20px 10px 14px;
        font-size: 13.5px;
    }

    .myButton img {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
}
