/* SLOTSEPETİ P38R — favori düğmesini kartın sağ ÜSTÜNE sabitle;
   gerçek header CMS logosunu footer, auth ve gerçek oyun sahnesinde göster.
   Game launch, demo, favorite and provider APIs remain untouched. */
body #royalHomeGrid .nx-slot-card.ef-game,
body #royalHomeGrid .nx-slot-card {
  position:relative!important;
}
/* P35 applied position:relative!important to the body; that is why its
   absolutely-positioned favourite appeared beside the game name/footer. */
body #royalHomeGrid .nx-slot-card > .nx-slot-body,
body #royalHomeGrid .nx-slot-card > .nx-slot-body .nx-slot-actions {
  position:static!important;
}
body #royalHomeGrid .nx-slot-card button[data-game-favorite].ef-heart,
body #royalHomeGrid .nx-slot-card button[data-game-favorite]{
  position:absolute!important;
  inset:7px 7px auto auto!important;
  top:7px!important;right:7px!important;bottom:auto!important;left:auto!important;
  margin:0!important;
  z-index:30!important;
  width:31px!important;height:31px!important;min-width:31px!important;min-height:31px!important;
  display:grid!important;place-items:center!important;
  padding:0!important;
  border:1px solid #ecc184!important;border-radius:50%!important;
  background:#2e0d21e9!important;
  box-shadow:0 2px 9px #090208bd, inset 0 1px #ffe5ad55!important;
  line-height:1!important;
}
body #royalHomeGrid .nx-slot-card button[data-game-favorite] .nx36-heart-graphic{
  display:grid!important;place-items:center!important;width:22px!important;height:22px!important;
}
body #royalHomeGrid .nx-slot-card button[data-game-favorite] .nx36-heart-svg{
  display:block!important;width:21px!important;height:21px!important;
}
/* The demo remains bottom-right of the entire card, not the image. */
body #royalHomeGrid .nx-slot-card button[data-game-demo].nx36-demo-right{
  position:absolute!important;bottom:7px!important;right:6px!important;top:auto!important;
}
/* The source is the CURRENT header CMS image, cloned at runtime. No new artwork. */
.footer-brand.nx38r-logo-applied > .footer-logo-visual,
.footer-brand.nx38r-logo-applied > .brand-fallback,
.auth-brand.nx38r-logo-applied > .auth-logo,
.auth-brand.nx38r-logo-applied > .brand-fallback{
  display:none!important;
}
.nx38r-logo-holder{display:flex;align-items:center;justify-content:flex-start;max-width:100%;}
.nx38r-logo-holder > img{
  display:block!important;width:auto!important;height:auto!important;
  max-width:min(230px,100%)!important;max-height:83px!important;
  object-fit:contain!important;object-position:left center!important;
  filter:none!important;mix-blend-mode:normal!important;
}
.footer-brand.nx38r-logo-applied > .nx38r-logo-holder{margin:0 0 12px!important;}
.auth-brand.nx38r-logo-applied > .nx38r-logo-holder{margin:0 0 10px!important;}
/* P37 paints a crown glyph by ::before. Replace it only when logo img is loaded. */
body.nx37-game-open .nx-game-stage.nx37-live-stage .nx-game-tools > b.nx38r-stage-brand{
  font-size:0!important;line-height:0!important;letter-spacing:0!important;
  display:flex!important;align-items:center!important;
  min-width:0!important;max-width:45vw!important;overflow:hidden!important;
}
body.nx37-game-open .nx-game-stage.nx37-live-stage .nx-game-tools > b.nx38r-stage-brand::before{
  content:none!important;display:none!important;
}
body.nx37-game-open .nx-game-stage.nx37-live-stage .nx-game-tools > b.nx38r-stage-brand > img.nx38r-stage-logo{
  display:block!important;width:auto!important;height:auto!important;
  max-width:min(210px,43vw)!important;max-height:49px!important;
  object-fit:contain!important;object-position:left center!important;
  margin:0!important;filter:none!important;
}
@media(max-width:700px){
  body.nx37-game-open .nx-game-stage.nx37-live-stage .nx-game-tools > b.nx38r-stage-brand > img.nx38r-stage-logo{
    max-width:118px!important;max-height:38px!important;
  }
  .footer-brand.nx38r-logo-applied > .nx38r-logo-holder img{max-width:185px!important;max-height:63px!important;}
}

/* Deactivate legacy card-body positioning which was anchoring the heart at the footer. */
body #royalHomeGrid .nx-slot-card.ef-game > .nx-slot-body {position:static!important; transform:none!important;filter:none!important;contain:none!important;}
body #royalHomeGrid .nx-slot-card.ef-game > .nx-slot-body > .nx-slot-actions {position:static!important;transform:none!important;filter:none!important;contain:none!important;}
body #royalHomeGrid .nx-slot-card.ef-game > .nx-slot-body button[data-game-favorite] {position:absolute!important;inset:8px 8px auto auto!important;z-index:90!important;transform:none!important;}

/* P435 SLOTSEPETI BRAND UPSCALE */
.nx38r-logo-holder>img{max-width:min(280px,100%)!important;max-height:96px!important}.footer-brand.nx38r-logo-applied>.nx38r-logo-holder img{max-width:220px!important;max-height:74px!important}.auth-brand.nx38r-logo-applied>.nx38r-logo-holder img{max-width:240px!important;max-height:84px!important}body.nx37-game-open .nx-game-stage.nx37-live-stage .nx-game-tools>b.nx38r-stage-brand>img.nx38r-stage-logo{max-width:min(240px,45vw)!important;max-height:56px!important}
