/* Member nav — game_tgn_0038 Split-Flap */

.g40-nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

/* display:flex above overrides the HTML hidden attribute — keep JS hook node invisible */
.g40-nav-user[hidden],
.nav-user[hidden] {
  display: none !important;
}

.g40-nav-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.g40-nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 1px solid rgba(61, 90, 91, 0.75);
  background: #1c1d1f center/cover no-repeat;
  color: #f3efe6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none;
}

.g40-nav-user-avatar.has-img,
.g40-nav-user-avatar img {
  background: transparent;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g40-nav-user-name {
  font-size: 0.8rem;
  color: #f3efe6;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.g40-nav-user-logout {
  color: #8a847a;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.g40-nav-user-logout:hover { color: #e8a317; }

.g40-nav-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: #121314;
  border: 1px solid rgba(61, 90, 91, 0.75);
  border-radius: 2px;
  padding: 6px;
  z-index: 60;
}

.g40-nav-user-menu-item {
  display: block;
  padding: 8px 10px;
  color: #f3efe6;
  text-decoration: none;
  font-size: 0.85rem;
}

.g40-nav-user-menu-item:hover { background: rgba(240, 162, 2, 0.12); color: #e8a317; }

.g40-nav-user-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
