/* 888 DRAGON LOTTO Player V187
   QTech ONLY: logo-only site header; keep existing Exit Game overlay.
   Never change Lotto, wallet, game/provider iframe content, or transaction code.
   IMPORTANT: the remaining blank area INSIDE QTech's cross-origin iframe is
   not cropped or repositioned (may contain game/provider UI). */
body.qtech-immersive-v182 {
  --v183-qtech-header-height: 64px;
  --v184-header-h: 64px;
}
@media (max-width: 860px) {
  body.qtech-immersive-v182 {
    --v183-qtech-header-height: 64px;
    --v184-header-h: 64px;
  }
}
/* Only the branding stays in the SITE header during an active QTech game. */
body.qtech-immersive-v182 #portalScreen .topbar > :not(#headerBrandHomeButton) {
  display: none !important;
}
body.qtech-immersive-v182 #portalScreen .topbar {
  display: flex !important;
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100% !important;
  height: var(--v184-header-h) !important;
  min-height: var(--v184-header-h) !important;
  max-height: var(--v184-header-h) !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 10px !important;
}
body.qtech-immersive-v182 #portalScreen .topbar > #headerBrandHomeButton {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}
body.qtech-immersive-v182 #portalScreen .topbar #headerBrandHomeButton .header-brand-copy {
  display: none !important;
}
body.qtech-immersive-v182 #portalScreen .topbar #headerBrandHomeButton .header-brand-mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
}
body.qtech-immersive-v182 #portalScreen .topbar #headerBrandLogo {
  width: 50px !important;
  height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
}
/* V186 already keeps game frame full-height and its original Exit Game
   handler in a small overlay. Match the frame origin to the compact header. */
body.qtech-immersive-v182 #gameRuntime {
  top: var(--v184-header-h) !important;
  height: calc(100dvh - var(--v184-header-h)) !important;
}
