/*
 TicketPrague v3.9.4 — Mobile Match Crest Containment Fix
 Presentation-only patch for event detail cards.
 Keeps desktop rendering unchanged.
*/

/* Mobile event detail: remove the legacy white crest tile and keep both
   original team marks fully contained inside their allocated area. */
@media (max-width:700px){
  body.tp-black-gold-2026 .tp-event-matchcard-v362__crest{
    width:112px!important;
    height:112px!important;
    aspect-ratio:1 / 1!important;
    padding:0!important;
    margin:0 auto 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  body.tp-black-gold-2026 .tp-event-matchcard-v362__crest img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0!important;
    transform:none!important;
    filter:drop-shadow(0 8px 14px rgba(0,0,0,.24))!important;
  }

  body.tp-black-gold-2026 .tp-event-matchcard-v362__team{
    min-width:0!important;
    overflow:hidden!important;
  }

  body.tp-black-gold-2026 .tp-event-matchcard-v362__teams{
    align-items:center!important;
  }
}

/* Narrow phones: give the VS column breathing room without allowing crests
   to escape their columns. */
@media (max-width:390px){
  body.tp-black-gold-2026 .tp-event-matchcard-v362__crest{
    width:92px!important;
    height:92px!important;
  }
}
