.footysim-ad-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0e1217;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;

    /* 🟢 REMOVED overflow: hidden; so the close button isn't cut off */

    height: var(--ad-h);
    padding-bottom: env(safe-area-inset-bottom);

    /* 🟢 NEW: Smooth Animation */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    transform: translateY(0);
    opacity: 1;
}

/* 🟢 NEW: Hidden State (Starts off-screen) */
.footysim-ad-wrapper.ad-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* 🟢 Stealth Close Button */
.footysim-close-ad {
    position: absolute;
    top: 2px;
    right: 1px;
    background: transparent; /* Remove the circle */
    border: none;            /* Remove the outline */
    box-shadow: none;        /* Remove the shadow */
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #444;             /* Dim, low-contrast grey */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 20001;
    padding: 0;
}

.footysim-close-ad:hover {
    color: #888; /* Brightens slightly when hovered, but still subtle */
    background: transparent;
}

/* 2. The Size Constraint Class */
.ad-size {
    width: 320px;
    height: 50px;
}

/* 3. The Dummy Prototype Box */
.dummy-ad-box {
    background: #1e2329;
    border: 1px dashed #3dd1dc;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}



/* 🖥️ DESKTOP OVERRIDES */
@media (min-width: 768px) {
    .ad-size {
        width: 728px;
        height: 90px;
    }
}