/* UNSEEN TOPBAR LAYOUT V7 — DIAGNOSTIC FIX
   Kaynak: 2026-10-05 gerçek diagnostic dosyaları.
   - Ana sahne topbarı değişmez.
   - Menü topbarı aktif scene-img görselini doğrudan kendi background'ında kullanır.
   - Observer / DOM taşıma / spacer / clone yoktur.
*/

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
> .topbar-slim.global-player-topbar {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;

  width: 100% !important;
  min-height: 76px !important;
  flex: 0 0 auto !important;

  grid-template-columns: 50px minmax(0,1fr) auto !important;
  gap: 6px !important;
  padding: 7px 9px 10px !important;
  align-items: center !important;

  background-image:
    linear-gradient(
      90deg,
      rgba(5,7,8,.16) 0%,
      rgba(5,7,8,.12) 28%,
      rgba(5,7,8,.075) 58%,
      rgba(5,7,8,.025) 86%,
      rgba(5,7,8,0) 100%
    ),
    var(--unseen-active-scene-bg, url("/images/game-scene.webp")) !important;
  background-size: 100% 100%, cover !important;
  background-position: center, center top !important;
  background-repeat: no-repeat, no-repeat !important;

  border: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  z-index: 20 !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
> .topbar-slim.global-player-topbar::before,
#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
> .topbar-slim.global-player-topbar::after {
  content: none !important;
  display: none !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
.global-level-wrap {
  border: 1px solid #9b7131 !important;
  border-radius: 11px !important;
  background: rgba(70,40,30,0.84) !important;
  box-shadow:inset 0 0 0 1px rgba(231,183,89,.05), 0 4px 0 rgba(0,0,0,.24)!important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
.global-identity-block {
  min-width: 0 !important;
  padding-right: 10px !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
#char-name {
  color: #e6cf95 !important;
  text-shadow:0 1px 0 rgba(0,0,0,.75)!important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
.global-xp-track {
  border-color: #6e542d !important;
  background: #5e3c2b !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
.global-currencies {
  gap: 4px !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
.global-currencies > span {
  border: 1px solid #80602e !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg,rgba(82,48,38,0.92),rgba(70,40,30,0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255,219,133,.06) !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
> #game-content {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
> .beta96-home-overlays {
  display: none !important;
}

#game-screen.character-ui-active > .topbar-slim.global-player-topbar {
  display: none !important;
}

@media (max-width: 380px) {
  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  > .topbar-slim.global-player-topbar {
    min-height: 70px !important;
    grid-template-columns: 46px minmax(0,1fr) auto !important;
    gap: 4px !important;
    padding: 6px 6px 9px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-level-wrap {
    width: 44px !important;
    height: 44px !important;
    padding: 3px !important;
    border-radius: 11px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  #char-name {
    font-size: 11.3px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-xp-line {
    font-size: 7.8px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-currencies {
    gap: 3px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-currencies span {
    min-height: 24px !important;
    padding: 3px 14px 3px 4px !important;
    border-radius: 8px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-currencies span::after {
    width: 12px !important;
    font-size: 10px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-currencies img {
    width: 12px !important;
    height: 12px !important;
  }

  #game-screen.premium-main-ui-v2:not(.premium-main-scene):not(.character-ui-active)
  .global-currencies b {
    font-size: 8.6px !important;
  }
}
