/* The wide player uses a poster and services panel, then one full-width catalogue. */
.bh-refined-theme body[data-variant="desktop"] { --page-width: 1192px; }
.xhrr-desktop-lead {
  display: grid;
  grid-template-columns: minmax(0, 2.65fr) minmax(220px, 1fr);
  gap: 18px;
  margin-block: 22px;
}
.bh-refined-theme body.bh-surface #page-home .xhrr-desktop-lead .hero {
  margin: 0;
  height: auto;
  min-height: 0;
  width: 100%;
  align-self: center;
  background: #131116;
  border: 0;
}
.bh-refined-theme #page-home .xhrr-desktop-lead .hero:not(:has(.carousel-full-image)) { aspect-ratio: 2.86; }
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-controls:not([hidden]) {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  grid-template-areas: "previous pages next";
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
}
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-arrow,
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-pagination {
  position: static;
  transform: none;
  height: 28px;
  border-radius: 14px;
}
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-prev { grid-area: previous; }
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-next { grid-area: next; }
.xhrr-desktop-lead .hero:has(.carousel-full-image) .carousel-pagination {
  grid-area: pages;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}
.bh-refined-theme body.bh-surface #page-home .xhrr-desktop-lead .welcome-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #302a38;
  border-radius: 14px;
  background: #151217;
}
.xhrr-services-heading { align-self: start; margin: 0; color: #faf6ff; font-size: 18px; }
.xhrr-desktop-lead .quick-actions {
  display: grid;
  align-content: center;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.bh-refined-theme body.bh-surface #page-home .xhrr-desktop-lead .quick-actions > * {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  height: 50px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: #221e28;
  color: #f4f0f8;
  font: inherit;
  box-shadow: none;
}
.xhrr-desktop-lead .quick-actions [data-nav="offers"] [data-icon] {
  display: block; width: 26px; height: 26px; background: url(./xhrr-art/portal-task.webp) center/contain no-repeat;
}
.xhrr-desktop-lead .quick-actions [data-nav="offers"] [data-icon] img { visibility: hidden; }
.bh-refined-theme body[data-variant="desktop"] #page-game .lobby-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
.bh-refined-theme body[data-variant="desktop"] #page-game #bh-lobby-categories {
  position: static; width: 100%; display: flex; align-items: center;
  gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none;
  background: #151317; border: 1px solid #342b3b; border-radius: 24px;
}
#bh-lobby-categories::-webkit-scrollbar,
#page-home #categories::-webkit-scrollbar { display: none; }
.bh-refined-theme body[data-variant="desktop"] #bh-lobby-categories .sidebar-title { display: none; }
.bh-refined-theme body[data-variant="desktop"] #page-game #bh-lobby-categories button {
  display: inline-flex; flex: 0 0 auto; white-space: nowrap; width: auto; min-height: 38px;
  border: 0; border-radius: 18px; padding: 4px 15px; gap: 6px; margin: 0; font-size: 14px;
}
.bh-refined-theme body[data-variant="desktop"] #bh-lobby-categories .category-mini-art { width: 22px; height: 22px; }
.bh-refined-theme body[data-variant="desktop"] :is(#page-game .lobby-main,#page-game .lobby-layout > *) { min-width: 0; }
.bh-refined-theme body[data-variant="desktop"] #page-game .search-bar { max-width: 540px; margin: 4px 0 12px; }
.bh-refined-theme body[data-variant="desktop"] #page-game #bh-game-count { white-space: nowrap; font-size: 12px; color: #c7c0cf; }
.bh-refined-theme body[data-variant="desktop"] #page-home #categories { scrollbar-width: none; margin-bottom: 8px; }
.bh-refined-theme body[data-variant="desktop"] #page-home #categories > .category { flex: 1 0 auto; }
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(134px,1fr)); gap: 15px;
}
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) .game-art {
  aspect-ratio: 1/1; height: auto; width: 100%;
}
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) .bh-game-wrap > .favorite-button {
  top: 6px; right: 6px; width: 26px; height: 26px; min-width: 0; min-height: 0; padding: 0;
}
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) .favorite-button [data-icon] { width: 13px; height: 13px; }
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) .favorite-button::after { content: none; }
.bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) .favorite-button::before { content: ""; position: absolute; inset: -5px; }
.bh-refined-theme body[data-variant="desktop"] .carousel-pagination { background: #141119aa; border: 0; }
.bh-refined-theme body[data-variant="desktop"] .carousel-pagination button { color: #fff; }
.bh-refined-theme body[data-variant="desktop"] .carousel-pagination button.is-active span { background: #e1ccff; }
@media (max-width: 840px) {
  .xhrr-desktop-lead { grid-template-columns: minmax(0,1fr); gap: 10px; margin: 14px 0; }
  .bh-refined-theme body.bh-surface #page-home .xhrr-desktop-lead .welcome-bar { display: block; padding: 2px 0; background: none; border: 0; }
  .xhrr-services-heading { display: none; }
  .xhrr-desktop-lead .quick-actions { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .bh-refined-theme body.bh-surface #page-home .xhrr-desktop-lead .quick-actions > * {
    flex-direction: column; justify-content: center; gap: 5px; min-height: 57px; height: auto;
    padding: 4px 0; background: transparent; font-size: 13px;
  }
}
@media (max-width: 720px) {
  .bh-refined-theme body[data-variant="desktop"] .container { width: calc(100% - 24px); min-width: 0; }
  .bh-refined-theme body[data-variant="desktop"] { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .bh-refined-theme body[data-variant="desktop"] .header-inner { flex-wrap: wrap; min-height: 54px; padding: 5px 0; }
  .bh-refined-theme body[data-variant="desktop"] .header-account { margin-left: auto; }
  .bh-refined-theme body[data-variant="desktop"] .site-header .main-nav {
    position: fixed; z-index: 30; inset: auto 10px max(8px,env(safe-area-inset-bottom));
    width: auto; min-height: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
    border: 1px solid #463d4c; background: #1b171ff5; padding: 3px; gap: 1px; border-radius: 27px;
  }
  .bh-refined-theme body[data-variant="desktop"] .site-header .main-nav a {
    flex-direction: column; justify-content: center; gap: 2px; min-width: 0;
    padding: 5px 0; font-size: 11px; line-height: 1.2; border-radius: 23px;
  }
  .bh-refined-theme body[data-variant="desktop"] .site-header .main-nav [data-icon] { width: 18px; height: 18px; }
  .bh-refined-theme body[data-variant="desktop"] :is(#game-grid,#bh-game-list) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .bh-refined-theme body[data-variant="desktop"] #page-game .library-toolbar { flex-wrap: wrap; gap: 4px; }
  .bh-refined-theme body[data-variant="desktop"] #page-game .pill-tabs button { padding-inline: 10px; font-size: 13px; }
  .bh-refined-theme body[data-variant="desktop"] .site-footer { margin-top: 24px; }
}
