.mobile-bottom-ad { display:none; }

@media (max-width:800px) {
  .mobile-bottom-ad:not([hidden]) {
    position:fixed;
    z-index:1300;
    left:8px;
    right:8px;
    bottom:calc(66px + env(safe-area-inset-bottom,0px));
    display:block;
  }
  .mobile-bottom-ad-card {
    position:relative;
    height:82px;
    overflow:hidden;
    border:1px solid rgba(255,204,64,.7);
    border-radius:12px;
    background:#17120b;
    box-shadow:0 8px 24px rgba(0,0,0,.42);
  }
  .mobile-bottom-ad-link,
  .mobile-bottom-ad img { display:block; width:100%; height:100%; }
  .mobile-bottom-ad img { object-fit:cover; object-position:center; }
  .mobile-bottom-ad-close {
    position:absolute;
    top:4px;
    right:4px;
    z-index:2;
    width:26px;
    height:26px;
    padding:0;
    border:1px solid rgba(255,255,255,.75);
    border-radius:50%;
    background:rgba(5,10,18,.82);
    color:#fff;
    font:700 20px/22px Arial,sans-serif;
    text-align:center;
    cursor:pointer;
    touch-action:manipulation;
  }
  .mobile-bottom-ad-close:focus-visible { outline:2px solid #35f29a; outline-offset:2px; }
}

@media (max-width:380px) {
  .mobile-bottom-ad-card { height:74px; }
}
