@import "/_assets/b88d45443fa2dbfe501f/live-drawer.css";

.topbar #nav-live {
  color: var(--ui-color-text);
  gap: 3px;
  padding-inline: 7px;
}
.topbar #nav-live[data-streaming="true"] {
  border-color: var(--ui-color-primary);
}
.topbar #nav-live .live-nav-caption {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.topbar #nav-live .live-nav-count {
  display: inline-block;
  min-width: 12px;
  padding: 1px 2px;
  background: var(--ui-color-surface-raised);
  color: var(--ui-color-text-muted);
  font: 700 11px/1.1 var(--ui-font-body);
  font-variant-numeric: tabular-nums;
}
.topbar #nav-live[data-streaming="true"] .live-nav-count {
  background: var(--ui-color-primary);
  color: white;
}
.topbar #navbar-live-slot {
  display: flex;
  flex: none;
  align-items: center;
}
.topbar #navbar-live-slot:empty { display: none; }
@media (max-width: 840px) {
  #game-shell .topbar #nav-live {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 54px;
    min-width: 54px;
    height: 44px;
    padding: 0;
    gap: 0;
  }
  #game-shell .topbar #nav-live > .ui-pixel-icon {
    width: 36px;
    height: 31px;
  }
  .topbar #nav-live .live-nav-caption {
    gap: 1px;
    font-size: 9px;
    line-height: 1;
  }
  #game-shell .topbar #nav-live .nav-label {
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0;
  }
  .topbar #nav-live .live-nav-count {
    min-width: 9px;
    padding: 1px;
    font-size: 9px;
  }
}
/* Direct destinations, including Game Pass, share two rows in narrow tiles.
   Keep the view trigger inside the second row instead of outside the HUD. */
@media (max-width: 540px) {
  #game-shell header.topbar[data-navbar-layout="compact"] {
    height: 120px;
    min-height: 120px;
  }
  #game-shell .topbar[data-navbar-layout="compact"] nav.top-actions {
    display: grid;
    grid-template-columns: minmax(51px, 1fr) minmax(60px, 1fr) minmax(46px, 1fr) minmax(55px, 1fr);
    grid-template-rows: 52px 52px;
    gap: 2px;
    width: calc(100vw - 22px);
    flex: none;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions .navbar-hunt-group {
    min-width: 0;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions #nav-hunt {
    width: 40px;
    min-width: 40px;
    flex: 0 0 40px;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions .navbar-hunt-toggle {
    width: 20px;
    flex: 0 0 20px;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions > #navbar-live-slot {
    grid-column: 4;
    grid-row: 1;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions > #nav-shop {
    grid-column: 2;
    grid-row: 2;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions > #nav-menu {
    grid-column: 3 / 5;
    grid-row: 2;
    width: calc(100% - 46px);
    min-width: 0;
    gap: 0;
    padding-inline: 0;
    justify-self: start;
    flex-direction: row;
    margin: 0;
  }
  #game-shell .topbar[data-navbar-layout="compact"] .navbar-view-controls {
    position: absolute;
    right: 4px;
    bottom: 8px;
  }
}

@media (max-width: 540px) {
  #game-shell .topbar[data-navbar-layout="compact"] .top-actions > #navbar-game-pass-slot { grid-column: 1; grid-row: 2; justify-content: center; }
  #game-shell .topbar[data-navbar-layout="compact"] #nav-battle-pass { width: 100%; }
}
