/* The Golf Weekend mobile cleanup — Pass 4
   Leagues: tighter hero actions.
   Commissioner: compact private invite panel.
*/

@media (max-width: 639px) {
  /* LEAGUES ------------------------------------------------------------- */
  main:has(a[href="/create-league"]):has(a[href="/join-league"]) section:first-of-type {
    min-height: 205px !important;
  }

  main:has(a[href="/create-league"]):has(a[href="/join-league"]) section:first-of-type > div.relative.z-10 {
    min-height: 205px !important;
    padding: 0.9rem !important;
  }

  main:has(a[href="/create-league"]):has(a[href="/join-league"]) section:first-of-type .mt-3\.5.flex.flex-wrap {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-top: 0.7rem !important;
  }

  main:has(a[href="/create-league"]):has(a[href="/join-league"]) section:first-of-type .mt-3\.5.flex.flex-wrap > a {
    display: inline-flex !important;
    width: 100% !important;
    min-height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.4rem 0.5rem !important;
    text-align: center !important;
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
  }

  /* COMMISSIONER -------------------------------------------------------- */
  main:has(input[type="datetime-local"]) section.broadcast-panel {
    padding: 0.9rem !important;
    border-radius: 1.25rem !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid {
    gap: 0.8rem !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel h1 {
    font-size: 1.4rem !important;
    line-height: 1.05 !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid > div.rounded-2xl {
    padding: 0.75rem !important;
    border-radius: 0.9rem !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid > div.rounded-2xl p.font-mono {
    margin-top: 0.35rem !important;
    font-size: 1rem !important;
    letter-spacing: 0.12em !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid > div.rounded-2xl > p.mt-2 {
    display: none !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid > div.rounded-2xl .mt-3.flex.flex-wrap {
    margin-top: 0.55rem !important;
    gap: 0.4rem !important;
  }

  main:has(input[type="datetime-local"]) section.broadcast-panel > div.grid > div.rounded-2xl button {
    height: 2rem !important;
    padding-inline: 0.65rem !important;
    font-size: 0.62rem !important;
  }
}
