/* The letters keep the box. The picture is painted from the header's top-left
   and does not change that box or the header row. */
.home-wordmark,
.jq-shell > .site-banner {
  position: relative;
}
/* The slot is the picture's anchor, so a grid header's padding does not shift it. */
.home-brand-slot {
  position: relative;
}
.home-brand,
a.home-mgfh {
  position: static !important;
}
.home-mgfh > .mgfh-mark,
.home-mgfh > .mgfh-mark-text {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: fill;
  pointer-events: none;
  display: block;
}
.home-mgfh > span[aria-hidden="true"] {
  color: transparent;
}

/* Word mark only. The picture matches the Home button's outer box.
   Width keeps 284:96. The shift is the same one the Home button already uses,
   so the top and the bottom land on the button. */
.home-mgfh > .mgfh-mark {
  height: 48px;
  width: calc(48px * 284 / 96);
  top: -6px;
}
html[data-bp-screen="ipad-p"] .home-mgfh > .mgfh-mark {
  height: 58px;
  width: calc(58px * 284 / 96);
  top: -8px;
}
html[data-bp-screen="small-p"] .home-mgfh > .mgfh-mark,
html[data-bp-screen="p61-p"] .home-mgfh > .mgfh-mark,
html[data-bp-screen="p67-p"] .home-mgfh > .mgfh-mark {
  height: 40px;
  width: calc(40px * 284 / 96);
  top: -6px;
}
html[data-bp-screen="small-p"] #join-queue-screen .home-mgfh > .mgfh-mark,
html[data-bp-screen="p61-p"] #join-queue-screen .home-mgfh > .mgfh-mark,
html[data-bp-screen="p67-p"] #join-queue-screen .home-mgfh > .mgfh-mark,
html[data-bp-screen="small-p"] #waiting-section .home-mgfh > .mgfh-mark,
html[data-bp-screen="p61-p"] #waiting-section .home-mgfh > .mgfh-mark,
html[data-bp-screen="p67-p"] #waiting-section .home-mgfh > .mgfh-mark {
  height: 38px;
  width: calc(38px * 284 / 96);
  top: -5px;
}
.home-mgfh > .mgfh-mark-text {
  display: none;
}

/* Sign In and header All Games grow to the Home button and use its shift.
   Dock icons are not these controls. */
html[data-bp-screen="small-p"] .home-wordmark .home-signin-icon,
html[data-bp-screen="p61-p"] .home-wordmark .home-signin-icon,
html[data-bp-screen="p67-p"] .home-wordmark .home-signin-icon,
html[data-bp-screen="small-p"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="p61-p"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="p67-p"] .home-wordmark .home-all-games .home-dock-grid {
  width: 40px !important;
  height: 40px !important;
}
html[data-bp-screen="small-p"] .home-wordmark .home-signin,
html[data-bp-screen="p61-p"] .home-wordmark .home-signin,
html[data-bp-screen="p67-p"] .home-wordmark .home-signin,
html[data-bp-screen="small-p"] .home-wordmark .home-all-games,
html[data-bp-screen="p61-p"] .home-wordmark .home-all-games,
html[data-bp-screen="p67-p"] .home-wordmark .home-all-games {
  transform: translateY(-6px);
}
html[data-bp-screen="small-p"] #join-queue-screen .jq-all-games .home-dock-grid,
html[data-bp-screen="p61-p"] #join-queue-screen .jq-all-games .home-dock-grid,
html[data-bp-screen="p67-p"] #join-queue-screen .jq-all-games .home-dock-grid,
html[data-bp-screen="small-p"] #waiting-section .jq-all-games .home-dock-grid,
html[data-bp-screen="p61-p"] #waiting-section .jq-all-games .home-dock-grid,
html[data-bp-screen="p67-p"] #waiting-section .jq-all-games .home-dock-grid {
  width: 38px !important;
  height: 38px !important;
}
html[data-bp-screen="small-p"] #join-queue-screen .jq-all-games,
html[data-bp-screen="p61-p"] #join-queue-screen .jq-all-games,
html[data-bp-screen="p67-p"] #join-queue-screen .jq-all-games,
html[data-bp-screen="small-p"] #waiting-section .jq-all-games,
html[data-bp-screen="p61-p"] #waiting-section .jq-all-games,
html[data-bp-screen="p67-p"] #waiting-section .jq-all-games {
  transform: translateY(-5px);
}
html[data-bp-screen="ipad-p"] .home-wordmark .home-signin-icon,
html[data-bp-screen="ipad-p"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="ipad-p"] .jq-all-games .home-dock-grid {
  width: 58px !important;
  height: 58px !important;
}
html[data-bp-screen="ipad-p"] .home-wordmark .home-signin,
html[data-bp-screen="ipad-p"] .home-wordmark .home-all-games,
html[data-bp-screen="ipad-p"] .jq-all-games {
  transform: translateY(-8px);
}
html[data-bp-screen="ipad-l"] .home-signin-icon,
html[data-bp-screen="p67-l"] .home-signin-icon,
html[data-bp-screen="p61-l"] .home-signin-icon,
html[data-bp-screen="small-l"] .home-signin-icon,
html[data-bp-screen="ipad-l"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="p67-l"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="p61-l"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="small-l"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="ipad-l"] .jq-all-games .home-dock-grid,
html[data-bp-screen="p67-l"] .jq-all-games .home-dock-grid,
html[data-bp-screen="p61-l"] .jq-all-games .home-dock-grid,
html[data-bp-screen="small-l"] .jq-all-games .home-dock-grid,
html[data-bp-screen="monitor"] .home-wordmark .home-signin-icon,
html[data-bp-screen="laptop"] .home-wordmark .home-signin-icon,
html[data-bp-screen="monitor"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="laptop"] .home-wordmark .home-all-games .home-dock-grid,
html[data-bp-screen="monitor"] .jq-all-games .home-dock-grid,
html[data-bp-screen="laptop"] .jq-all-games .home-dock-grid {
  width: 48px !important;
  height: 48px !important;
}
html[data-bp-screen="ipad-l"] .home-wordmark .home-signin,
html[data-bp-screen="p67-l"] .home-wordmark .home-signin,
html[data-bp-screen="p61-l"] .home-wordmark .home-signin,
html[data-bp-screen="small-l"] .home-wordmark .home-signin,
html[data-bp-screen="ipad-l"] .home-wordmark .home-all-games,
html[data-bp-screen="p67-l"] .home-wordmark .home-all-games,
html[data-bp-screen="p61-l"] .home-wordmark .home-all-games,
html[data-bp-screen="small-l"] .home-wordmark .home-all-games,
html[data-bp-screen="ipad-l"] .jq-all-games,
html[data-bp-screen="p67-l"] .jq-all-games,
html[data-bp-screen="p61-l"] .jq-all-games,
html[data-bp-screen="small-l"] .jq-all-games,
html[data-bp-screen="monitor"] .home-wordmark .home-signin,
html[data-bp-screen="laptop"] .home-wordmark .home-signin,
html[data-bp-screen="monitor"] .home-wordmark .home-all-games,
html[data-bp-screen="laptop"] .home-wordmark .home-all-games,
html[data-bp-screen="monitor"] .jq-all-games,
html[data-bp-screen="laptop"] .jq-all-games {
  transform: translateY(-6px);
}

/* Home keeps Play in the header on the phone and iPad portraits. It uses the same box. */
html[data-bp-screen="small-p"] .home-wordmark .home-play-now,
html[data-bp-screen="p61-p"] .home-wordmark .home-play-now,
html[data-bp-screen="p67-p"] .home-wordmark .home-play-now,
html[data-bp-screen="ipad-p"] .home-wordmark .home-play-now {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start !important;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
html[data-bp-screen="small-p"] .home-wordmark .home-play-now,
html[data-bp-screen="p61-p"] .home-wordmark .home-play-now,
html[data-bp-screen="p67-p"] .home-wordmark .home-play-now {
  height: 40px;
  transform: translateY(-6px);
}
html[data-bp-screen="ipad-p"] .home-wordmark .home-play-now {
  height: 58px;
  transform: translateY(-8px);
}

/* Monitor and laptop, where the site name is under MGFH. One size, ratio 284:120. */
html[data-bp-screen="monitor"] .home-brand:has(> .banner-title) > a.home-mgfh > .mgfh-mark,
html[data-bp-screen="laptop"] .home-brand:has(> .banner-title) > a.home-mgfh > .mgfh-mark {
  display: none;
}
html[data-bp-screen="monitor"] .home-brand:has(> .banner-title) > a.home-mgfh > .mgfh-mark-text,
html[data-bp-screen="laptop"] .home-brand:has(> .banner-title) > a.home-mgfh > .mgfh-mark-text,
html[data-bp-screen="monitor"] .jq-shell > .site-banner a.home-mgfh > .mgfh-mark-text,
html[data-bp-screen="laptop"] .jq-shell > .site-banner a.home-mgfh > .mgfh-mark-text {
  display: block;
  width: 200px;
  height: calc(200px * 120 / 284);
  /* The letters sit 18/120 down the file. Shift so those letters meet the Home button. */
  top: calc(-6px - (200px * 120 / 284) * 18 / 120);
}
html[data-bp-screen="monitor"] .home-brand:has(> .banner-title) > .banner-title,
html[data-bp-screen="laptop"] .home-brand:has(> .banner-title) > .banner-title {
  color: transparent !important;
}
