/* 888 Dragon Lotto Player v3.10.62
   Compact desktop brand header only.
   Reduces the oversized header brand card, logo and title while retaining
   the v3.10.61 containment fix and leaving wallet/actions/content untouched. */

@media (min-width: 1081px) {
  .header-brand-home {
    max-width: 400px !important;
    gap: 10px !important;
    padding: 7px 12px 7px 9px !important;
    border-radius: 18px !important;
  }

  .header-brand-mark,
  .header-brand-mark.has-logo {
    flex: 0 0 58px !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 17px !important;
  }

  .header-brand-mark img,
  .header-brand-mark.has-logo img {
    padding: 3px !important;
  }

  .header-brand-copy {
    gap: 2px !important;
  }

  .header-brand-copy strong {
    max-width: 300px !important;
    font-size: clamp(20px, 1.75vw, 24px) !important;
    letter-spacing: -0.025em !important;
  }

  .header-brand-copy small {
    font-size: 11px !important;
  }
}

@media (min-width: 1501px) {
  :root {
    --header-height: 88px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  :root {
    --header-height: 96px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    flex-wrap: nowrap !important;
    align-content: center !important;
  }

  .topbar-actions {
    order: initial !important;
    flex: 1 1 auto !important;
    width: auto !important;
    margin-left: auto !important;
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  :root {
    --header-height: 132px !important;
  }

  .portal,
  .portal.sidebar-collapsed,
  .portal.guest-mode {
    grid-template-rows: var(--header-height) minmax(0, 1fr) !important;
  }

  .topbar {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    row-gap: 8px !important;
  }
}
