/* EMC effects footer final v2 - no margin hacks */

body.effects-body > .emc-footer,
body.effects-body > .emc-footer *,
body.effects-body > .emc-footer *::before,
body.effects-body > .emc-footer *::after {
    box-sizing: border-box !important;
}

/* Base: normal footer */
body.effects-body > .emc-footer {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    display: block !important;
    flex: 0 0 auto !important;
    z-index: 2 !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: clamp(42px, 6vh, 74px) 0 0 0 !important;
    padding: clamp(20px, 3vw, 30px) clamp(16px, 4vw, 46px) !important;

    background: linear-gradient(180deg, rgba(255, 232, 220, .20), rgba(255, 232, 220, .74)) !important;
    border-top: 1px solid rgba(42, 12, 11, .12) !important;
    color: rgba(42, 12, 11, .78) !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.effects-body > .emc-footer .emc-footer-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr) !important;
    align-items: center !important;
    gap: clamp(18px, 3vw, 34px) !important;
}

body.effects-body > .emc-footer .emc-footer-grid {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

/* Desktop effects grid: full viewport footer, centered inside grid area */
@media (min-width: 1241px) {
    body.effects-body:not(.player-selected) {
        overflow-x: hidden !important;
    }

    body.effects-body:not(.player-selected) > .emc-footer {
        grid-area: emc-footer !important;
        grid-column: 1 / -1 !important;

        justify-self: center !important;
        align-self: stretch !important;

        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;

        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

/* Player selected / tablet / mobile: normal page flow */
@media (max-width: 1240px) {
    body.effects-body > .emc-footer {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        justify-self: stretch !important;
        align-self: auto !important;

        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}

@media (max-width: 860px) {
    body.effects-body > .emc-footer {
        margin-top: 40px !important;
        padding: 18px 12px 20px !important;
    }

    body.effects-body > .emc-footer .emc-footer-card {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.effects-body > .emc-footer .emc-footer-title {
        text-align: center !important;
        font-size: 9px !important;
    }

    body.effects-body > .emc-footer .emc-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.effects-body > .emc-footer .emc-footer-btn {
        min-height: 40px !important;
        padding: 8px !important;
        font-size: 9.4px !important;
    }
}
