/* GAME DRAWER ANIMATION */
.game-section-drawer {
    transition: max-height 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease, transform 0.5s ease, padding 0.8s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    display: block !important;
    pointer-events: none;
    visibility: hidden;

    /* Reset layout properties when closed */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
    margin: 0 !important;
}

.game-section-drawer.open {
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;

    /* Restore layout properties smoothly */
    padding-top: 4rem !important;
    /* py-16 */
    padding-bottom: 4rem !important;
    border-top-width: 1px !important;
}

/* Responsive adjustment for sm:py-20 */
@media (min-width: 640px) {
    .game-section-drawer.open {
        padding-top: 5rem !important;
        /* sm:py-20 */
        padding-bottom: 5rem !important;
    }
}

/* Ensure padding is handled or included inside the height calc */
.game-section-drawer.hidden {
    display: none !important;
}